]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Development.lyx: Reflect recent label renaming of 'reverted' to 'inverted'
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 % the pages of the TOC is numbered roman
18 % and a pdf-bookmark for the TOC is added
19 \let\myTOC\tableofcontents
20 \renewcommand\tableofcontents{%
21   \frontmatter
22   \pdfbookmark[1]{\contentsname}{}
23   \myTOC
24   \mainmatter }
25
26 % increase link area for cross-references and autoname them,
27 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
28 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
29 \@ifpackageloaded{babel}{
30  \addto\extrasenglish{%
31   \renewcommand*{\equationautorefname}[1]{}%
32   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
33   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
35  }
36 }{}
37 \end_preamble
38 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
39 \use_default_options false
40 \begin_modules
41 logicalmkup
42 \end_modules
43 \maintain_unincluded_children false
44 \language english
45 \language_package default
46 \inputencoding auto
47 \fontencoding global
48 \font_roman "lmodern" "default"
49 \font_sans "lmss" "default"
50 \font_typewriter "lmtt" "default"
51 \font_math "auto" "auto"
52 \font_default_family default
53 \use_non_tex_fonts false
54 \font_sc false
55 \font_osf false
56 \font_sf_scale 100 100
57 \font_tt_scale 100 100
58 \graphics default
59 \default_output_format default
60 \output_sync 0
61 \bibtex_command default
62 \index_command default
63 \paperfontsize 12
64 \spacing single
65 \use_hyperref true
66 \pdf_title "LyX Configuration Manual"
67 \pdf_author "LyX Team"
68 \pdf_subject "LyX-documentation Customization"
69 \pdf_keywords "LyX, documentation, customization"
70 \pdf_bookmarks true
71 \pdf_bookmarksnumbered true
72 \pdf_bookmarksopen true
73 \pdf_bookmarksopenlevel 1
74 \pdf_breaklinks false
75 \pdf_pdfborder false
76 \pdf_colorlinks true
77 \pdf_backref false
78 \pdf_pdfusetitle false
79 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
80 \papersize default
81 \use_geometry false
82 \use_package amsmath 0
83 \use_package amssymb 0
84 \use_package cancel 0
85 \use_package esint 0
86 \use_package mathdots 1
87 \use_package mathtools 0
88 \use_package mhchem 0
89 \use_package stackrel 0
90 \use_package stmaryrd 0
91 \use_package undertilde 0
92 \cite_engine basic
93 \cite_engine_type default
94 \biblio_style plain
95 \use_bibtopic false
96 \use_indices false
97 \paperorientation portrait
98 \suppress_date false
99 \justification true
100 \use_refstyle 0
101 \branch OutDated
102 \selected 0
103 \filename_suffix 0
104 \color #f5fae7
105 \end_branch
106 \index Index
107 \shortcut idx
108 \color #008000
109 \end_index
110 \secnumdepth 3
111 \tocdepth 3
112 \paragraph_separation indent
113 \paragraph_indentation default
114 \quotes_language english
115 \papercolumns 1
116 \papersides 2
117 \paperpagestyle headings
118 \tracking_changes false
119 \output_changes false
120 \html_math_output 0
121 \html_css_as_file 0
122 \html_be_strict true
123 \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 IfStyle
9084 \end_layout
9085
9086 \end_inset
9087
9088  [
9089 \begin_inset Flex Code
9090 status collapsed
9091
9092 \begin_layout Plain Layout
9093 <style>
9094 \end_layout
9095
9096 \end_inset
9097
9098 ] Modifies the properties of the given paragraph style.
9099  If the style does not exist, the statement is ignored.
9100  Must end with 
9101 \begin_inset Quotes eld
9102 \end_inset
9103
9104
9105 \begin_inset Flex Code
9106 status collapsed
9107
9108 \begin_layout Plain Layout
9109 End
9110 \end_layout
9111
9112 \end_inset
9113
9114
9115 \begin_inset Quotes erd
9116 \end_inset
9117
9118 .
9119 \end_layout
9120
9121 \begin_layout Description
9122 \begin_inset Flex Code
9123 status collapsed
9124
9125 \begin_layout Plain Layout
9126 Input
9127 \end_layout
9128
9129 \end_inset
9130
9131  [
9132 \begin_inset Flex Code
9133 status collapsed
9134
9135 \begin_layout Plain Layout
9136 <filename>
9137 \end_layout
9138
9139 \end_inset
9140
9141 ] This allows you to include another layout definition file within yours
9142  to avoid duplicating commands.
9143  Common examples are the standard layout files, for example, 
9144 \begin_inset Flex Code
9145 status collapsed
9146
9147 \begin_layout Plain Layout
9148 stdclass.inc
9149 \end_layout
9150
9151 \end_inset
9152
9153 , which contains most of the basic layouts.
9154 \end_layout
9155
9156 \begin_layout Description
9157 \begin_inset Flex Code
9158 status collapsed
9159
9160 \begin_layout Plain Layout
9161 InsetLayout
9162 \end_layout
9163
9164 \end_inset
9165
9166  [
9167 \begin_inset Flex Code
9168 status collapsed
9169
9170 \begin_layout Plain Layout
9171 <type>
9172 \end_layout
9173
9174 \end_inset
9175
9176 ] This section (re-)defines the layout of an inset.
9177  It can be applied to an existing inset or to a new, user-defined inset,
9178  e.g., a new character style.
9179  Must end with 
9180 \begin_inset Quotes eld
9181 \end_inset
9182
9183
9184 \begin_inset Flex Code
9185 status collapsed
9186
9187 \begin_layout Plain Layout
9188 End
9189 \end_layout
9190
9191 \end_inset
9192
9193
9194 \begin_inset Quotes erd
9195 \end_inset
9196
9197 .
9198 \begin_inset Newline newline
9199 \end_inset
9200
9201 See 
9202 \begin_inset CommandInset ref
9203 LatexCommand ref
9204 reference "subsec:Flex-insets-and"
9205
9206 \end_inset
9207
9208  for more information.
9209  
9210 \end_layout
9211
9212 \begin_layout Description
9213 \begin_inset Flex Code
9214 status collapsed
9215
9216 \begin_layout Plain Layout
9217 LeftMargin
9218 \end_layout
9219
9220 \end_inset
9221
9222  [
9223 \begin_inset Flex Code
9224 status collapsed
9225
9226 \begin_layout Plain Layout
9227 string
9228 \end_layout
9229
9230 \end_inset
9231
9232 ] A string that indicates the width of the left margin on the screen, for
9233  example, 
9234 \begin_inset Quotes eld
9235 \end_inset
9236
9237
9238 \begin_inset Flex Code
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 MMMMM
9243 \end_layout
9244
9245 \end_inset
9246
9247
9248 \begin_inset Quotes erd
9249 \end_inset
9250
9251 .
9252  (Note that this is not a `length', like 
9253 \begin_inset Quotes eld
9254 \end_inset
9255
9256 2ex
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 Requires
9871 \end_layout
9872
9873 \end_inset
9874
9875  [
9876 \begin_inset Flex Code
9877 status collapsed
9878
9879 \begin_layout Plain Layout
9880 string
9881 \end_layout
9882
9883 \end_inset
9884
9885 ] Whether the class requires the feature 
9886 \begin_inset Flex Code
9887 status collapsed
9888
9889 \begin_layout Plain Layout
9890 string
9891 \end_layout
9892
9893 \end_inset
9894
9895 .
9896  Multiple features must be separated by commas.
9897  Note that you can only request supported features.
9898  (See 
9899 \begin_inset CommandInset ref
9900 LatexCommand ref
9901 reference "chap:List-of-functions"
9902
9903 \end_inset
9904
9905  for the list of features.).
9906  If you require a package with specific options, you can additionally use
9907  
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 PackageOptions
9913 \end_layout
9914
9915 \end_inset
9916
9917 .
9918 \end_layout
9919
9920 \begin_layout Description
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 RightMargin
9926 \end_layout
9927
9928 \end_inset
9929
9930  [
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 string
9936 \end_layout
9937
9938 \end_inset
9939
9940 ] A string that indicates the width of the right margin on the screen, for
9941  example, 
9942 \begin_inset Quotes eld
9943 \end_inset
9944
9945
9946 \begin_inset Flex Code
9947 status collapsed
9948
9949 \begin_layout Plain Layout
9950 MMMMM
9951 \end_layout
9952
9953 \end_inset
9954
9955
9956 \begin_inset Quotes erd
9957 \end_inset
9958
9959 .
9960 \end_layout
9961
9962 \begin_layout Description
9963 \begin_inset Flex Code
9964 status collapsed
9965
9966 \begin_layout Plain Layout
9967 SecNumDepth
9968 \end_layout
9969
9970 \end_inset
9971
9972  [
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 int=3
9978 \end_layout
9979
9980 \end_inset
9981
9982 ] Sets which divisions get numbered.
9983  Corresponds to the
9984 \begin_inset Newline newline
9985 \end_inset
9986
9987
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992 secnumdepth
9993 \end_layout
9994
9995 \end_inset
9996
9997  counter in \SpecialChar LaTeX
9998 .
9999 \end_layout
10000
10001 \begin_layout Description
10002 \begin_inset Flex Code
10003 status collapsed
10004
10005 \begin_layout Plain Layout
10006 Sides
10007 \end_layout
10008
10009 \end_inset
10010
10011  [
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016
10017 \emph on
10018 1
10019 \end_layout
10020
10021 \end_inset
10022
10023 ,
10024 \begin_inset space \thinspace{}
10025 \end_inset
10026
10027
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 2
10033 \end_layout
10034
10035 \end_inset
10036
10037 ] Whether the class-default should be printing on one or both sides of the
10038  paper.
10039  Can be changed in the 
10040 \begin_inset Flex Noun
10041 status collapsed
10042
10043 \begin_layout Plain Layout
10044 Document\SpecialChar menuseparator
10045 Settings
10046 \end_layout
10047
10048 \end_inset
10049
10050  dialog.
10051 \end_layout
10052
10053 \begin_layout Description
10054 \begin_inset Flex Code
10055 status collapsed
10056
10057 \begin_layout Plain Layout
10058 Style
10059 \end_layout
10060
10061 \end_inset
10062
10063  [
10064 \begin_inset Flex Code
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068 <name>
10069 \end_layout
10070
10071 \end_inset
10072
10073 ] This sequence defines a paragraph style.
10074  If the style does not yet exist, it is created; if it does exist, its parameter
10075 s are modified.
10076  Must end with 
10077 \begin_inset Quotes eld
10078 \end_inset
10079
10080
10081 \begin_inset Flex Code
10082 status collapsed
10083
10084 \begin_layout Plain Layout
10085 End
10086 \end_layout
10087
10088 \end_inset
10089
10090
10091 \begin_inset Quotes erd
10092 \end_inset
10093
10094 .
10095 \begin_inset Newline newline
10096 \end_inset
10097
10098 See 
10099 \begin_inset CommandInset ref
10100 LatexCommand ref
10101 reference "subsec:Paragraph-Styles"
10102
10103 \end_inset
10104
10105  for details on paragraph styles.
10106 \end_layout
10107
10108 \begin_layout Description
10109 \begin_inset Flex Code
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113 TitleLatexName
10114 \end_layout
10115
10116 \end_inset
10117
10118  [
10119 \begin_inset Flex Code
10120 status collapsed
10121
10122 \begin_layout Plain Layout
10123 string="maketitle"
10124 \end_layout
10125
10126 \end_inset
10127
10128 ] The name of the command or environment to be used with 
10129 \begin_inset Flex Code
10130 status collapsed
10131
10132 \begin_layout Plain Layout
10133 TitleLatexType
10134 \end_layout
10135
10136 \end_inset
10137
10138 .
10139 \end_layout
10140
10141 \begin_layout Description
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 TitleLatexType
10147 \end_layout
10148
10149 \end_inset
10150
10151  [
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156
10157 \emph on
10158 CommandAfter
10159 \end_layout
10160
10161 \end_inset
10162
10163
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 Environment
10169 \end_layout
10170
10171 \end_inset
10172
10173 ] Indicates what kind of markup is used to define the title of a document.
10174  
10175 \begin_inset Flex Code
10176 status collapsed
10177
10178 \begin_layout Plain Layout
10179 CommandAfter
10180 \end_layout
10181
10182 \end_inset
10183
10184  means that the macro with name 
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 TitleLatexName
10190 \end_layout
10191
10192 \end_inset
10193
10194  will be inserted after the last layout which has 
10195 \begin_inset Quotes eld
10196 \end_inset
10197
10198
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 InTitle
10204 \begin_inset space ~
10205 \end_inset
10206
10207 1
10208 \end_layout
10209
10210 \end_inset
10211
10212
10213 \begin_inset Quotes erd
10214 \end_inset
10215
10216 .
10217  
10218 \begin_inset Flex Code
10219 status collapsed
10220
10221 \begin_layout Plain Layout
10222 Environment
10223 \end_layout
10224
10225 \end_inset
10226
10227  corresponds to the case where all layouts which have 
10228 \begin_inset Quotes eld
10229 \end_inset
10230
10231
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 InTitle
10237 \begin_inset space ~
10238 \end_inset
10239
10240 1
10241 \end_layout
10242
10243 \end_inset
10244
10245
10246 \begin_inset Quotes erd
10247 \end_inset
10248
10249  should be enclosed into the 
10250 \begin_inset Flex Code
10251 status collapsed
10252
10253 \begin_layout Plain Layout
10254 TitleLatexName
10255 \end_layout
10256
10257 \end_inset
10258
10259  environment.
10260 \end_layout
10261
10262 \begin_layout Description
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 TocDepth
10268 \end_layout
10269
10270 \end_inset
10271
10272  [
10273 \begin_inset Flex Code
10274 status collapsed
10275
10276 \begin_layout Plain Layout
10277 int=3
10278 \end_layout
10279
10280 \end_inset
10281
10282 ] Sets which divisions are included in the table of contents.
10283  Corresponds to the 
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 tocdepth
10289 \end_layout
10290
10291 \end_inset
10292
10293  counter in \SpecialChar LaTeX
10294 .
10295 \end_layout
10296
10297 \begin_layout Subsection
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 ClassOptions
10303 \end_layout
10304
10305 \end_inset
10306
10307  section
10308 \begin_inset CommandInset label
10309 LatexCommand label
10310 name "subsec:ClassOptions"
10311
10312 \end_inset
10313
10314
10315 \end_layout
10316
10317 \begin_layout Standard
10318 The 
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 ClassOptions
10324 \end_layout
10325
10326 \end_inset
10327
10328  section can contain the following entries:
10329 \end_layout
10330
10331 \begin_layout Description
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 FontSize
10337 \end_layout
10338
10339 \end_inset
10340
10341  [
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 string="10|11|12"
10347 \end_layout
10348
10349 \end_inset
10350
10351 ] The list of available font sizes for the document's main font, separated
10352  by 
10353 \begin_inset Quotes eld
10354 \end_inset
10355
10356
10357 \begin_inset Flex Code
10358 status collapsed
10359
10360 \begin_layout Plain Layout
10361 |
10362 \end_layout
10363
10364 \end_inset
10365
10366
10367 \begin_inset Quotes erd
10368 \end_inset
10369
10370 .
10371 \end_layout
10372
10373 \begin_layout Description
10374 \begin_inset Flex Code
10375 status collapsed
10376
10377 \begin_layout Plain Layout
10378 Header
10379 \end_layout
10380
10381 \end_inset
10382
10383  Used to set the DTD line with XML-based output classes.
10384  E.
10385 \begin_inset space \thinspace{}
10386 \end_inset
10387
10388 g.: PUBLIC 
10389 \begin_inset Quotes eld
10390 \end_inset
10391
10392 -//OASIS//DTD DocBook V4.2//EN
10393 \begin_inset Quotes erd
10394 \end_inset
10395
10396 .
10397 \end_layout
10398
10399 \begin_layout Description
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404 PageStyle
10405 \end_layout
10406
10407 \end_inset
10408
10409  [
10410 \begin_inset Flex Code
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 string="empty|plain|headings|fancy"
10415 \end_layout
10416
10417 \end_inset
10418
10419 ] The list of available page sty\SpecialChar softhyphen
10420 les, separated by 
10421 \begin_inset Quotes eld
10422 \end_inset
10423
10424
10425 \begin_inset Flex Code
10426 status collapsed
10427
10428 \begin_layout Plain Layout
10429 |
10430 \end_layout
10431
10432 \end_inset
10433
10434
10435 \begin_inset Quotes erd
10436 \end_inset
10437
10438 .
10439 \end_layout
10440
10441 \begin_layout Description
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 Other
10447 \end_layout
10448
10449 \end_inset
10450
10451  [
10452 \begin_inset Flex Code
10453 status collapsed
10454
10455 \begin_layout Plain Layout
10456 string=""
10457 \end_layout
10458
10459 \end_inset
10460
10461 ] Some document class options, separated by a comma, that will be added
10462  to the optional part of the 
10463 \begin_inset Flex Code
10464 status collapsed
10465
10466 \begin_layout Plain Layout
10467
10468 \backslash
10469 documentclass
10470 \end_layout
10471
10472 \end_inset
10473
10474  command.
10475 \end_layout
10476
10477 \begin_layout Standard
10478 The 
10479 \begin_inset Flex Code
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483 ClassOptions
10484 \end_layout
10485
10486 \end_inset
10487
10488  section must end with 
10489 \begin_inset Quotes eld
10490 \end_inset
10491
10492
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 End
10498 \end_layout
10499
10500 \end_inset
10501
10502
10503 \begin_inset Quotes erd
10504 \end_inset
10505
10506 .
10507 \end_layout
10508
10509 \begin_layout Subsection
10510 Paragraph styles
10511 \begin_inset CommandInset label
10512 LatexCommand label
10513 name "subsec:Paragraph-Styles"
10514
10515 \end_inset
10516
10517
10518 \end_layout
10519
10520 \begin_layout Standard
10521 A paragraph style description looks like this:
10522 \begin_inset Foot
10523 status collapsed
10524
10525 \begin_layout Plain Layout
10526 Note that this will either define a new style or modify an existing one.
10527 \end_layout
10528
10529 \end_inset
10530
10531
10532 \end_layout
10533
10534 \begin_layout LyX-Code
10535 Style 
10536 \family roman
10537 \emph on
10538 name
10539 \end_layout
10540
10541 \begin_layout LyX-Code
10542  ...
10543 \end_layout
10544
10545 \begin_layout LyX-Code
10546 End
10547 \end_layout
10548
10549 \begin_layout Standard
10550 where the following commands are allowed:
10551 \end_layout
10552
10553 \begin_layout Description
10554 \begin_inset Flex Code
10555 status collapsed
10556
10557 \begin_layout Plain Layout
10558 Align
10559 \end_layout
10560
10561 \end_inset
10562
10563  [
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568
10569 \emph on
10570 block
10571 \emph default
10572 , left, right, center
10573 \end_layout
10574
10575 \end_inset
10576
10577 ] Paragraph alignment.
10578 \end_layout
10579
10580 \begin_layout Description
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 AlignPossible
10586 \end_layout
10587
10588 \end_inset
10589
10590  [
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595
10596 \emph on
10597 block
10598 \emph default
10599 , left, right, center
10600 \end_layout
10601
10602 \end_inset
10603
10604 ] A comma separated list of permitted alignments.
10605  (Some \SpecialChar LaTeX
10606  styles prohibit certain alignments, since those wouldn't make sense.
10607  For example a right-aligned or centered enumeration isn't possible.)
10608 \end_layout
10609
10610 \begin_layout Description
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 Argument
10616 \end_layout
10617
10618 \end_inset
10619
10620  [
10621 \begin_inset Flex Code
10622 status collapsed
10623
10624 \begin_layout Plain Layout
10625 int
10626 \end_layout
10627
10628 \end_inset
10629
10630 ] Defines argument number <int> of a command\SpecialChar breakableslash
10631 environment associated with
10632  the current style.
10633  This is useful for things like section headings, and only makes sense with
10634  \SpecialChar LaTeX
10635 .
10636  Every (optional or required) argument of a command or environment – except
10637  for the required argument that is associated with the content of the paragraph
10638  itself – has a separate definition, where the number specifies the order
10639  of the arguments.
10640  The definition must end with 
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 EndArgument
10646 \end_layout
10647
10648 \end_inset
10649
10650 .
10651  So a command with two optional arguments has:
10652 \begin_inset Separator parbreak
10653 \end_inset
10654
10655
10656 \end_layout
10657
10658 \begin_deeper
10659 \begin_layout Quote
10660
10661 \family typewriter
10662 Argument 1
10663 \end_layout
10664
10665 \begin_layout Quote
10666
10667 \family typewriter
10668 ...
10669 \end_layout
10670
10671 \begin_layout Quote
10672
10673 \family typewriter
10674 EndArgument
10675 \end_layout
10676
10677 \begin_layout Quote
10678
10679 \family typewriter
10680 Argument 2
10681 \end_layout
10682
10683 \begin_layout Quote
10684
10685 \family typewriter
10686 ...
10687 \end_layout
10688
10689 \begin_layout Quote
10690
10691 \family typewriter
10692 EndArgument
10693 \end_layout
10694
10695 \begin_layout Standard
10696 Inside the 
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 Argument
10702 \end_layout
10703
10704 \end_inset
10705
10706  definition, the following specifications are possible:
10707 \end_layout
10708
10709 \begin_layout Itemize
10710 \begin_inset Flex Code
10711 status collapsed
10712
10713 \begin_layout Plain Layout
10714 LabelString
10715 \end_layout
10716
10717 \end_inset
10718
10719  
10720 \begin_inset Flex Code
10721 status collapsed
10722
10723 \begin_layout Plain Layout
10724 [string]
10725 \end_layout
10726
10727 \end_inset
10728
10729  The string that will appear both in the menu (to insert this argument)
10730  and on the argument inset button (unless you also specify a separate 
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 MenuString
10736 \end_layout
10737
10738 \end_inset
10739
10740 ).
10741  For the menu, you can define an accelerator by appending the respective
10742  character to the string, divided by 
10743 \begin_inset Quotes eld
10744 \end_inset
10745
10746 |
10747 \begin_inset Quotes erd
10748 \end_inset
10749
10750  (e.
10751 \begin_inset space \thinspace{}
10752 \end_inset
10753
10754 g.
10755 \begin_inset space \space{}
10756 \end_inset
10757
10758
10759 \begin_inset Quotes eld
10760 \end_inset
10761
10762
10763 \begin_inset Flex Code
10764 status collapsed
10765
10766 \begin_layout Plain Layout
10767 Short Title|S
10768 \end_layout
10769
10770 \end_inset
10771
10772
10773 \begin_inset Quotes erd
10774 \end_inset
10775
10776 ).
10777 \end_layout
10778
10779 \begin_layout Itemize
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 MenuString
10785 \end_layout
10786
10787 \end_inset
10788
10789  
10790 \begin_inset Flex Code
10791 status collapsed
10792
10793 \begin_layout Plain Layout
10794 [string]
10795 \end_layout
10796
10797 \end_inset
10798
10799  A separate string for the menu.
10800  You can define an accelerator by appending the respective character to
10801  the string, divided by 
10802 \begin_inset Quotes eld
10803 \end_inset
10804
10805 |
10806 \begin_inset Quotes erd
10807 \end_inset
10808
10809  (e.
10810 \begin_inset space \thinspace{}
10811 \end_inset
10812
10813 g.
10814 \begin_inset space \space{}
10815 \end_inset
10816
10817
10818 \begin_inset Quotes eld
10819 \end_inset
10820
10821
10822 \begin_inset Flex Code
10823 status collapsed
10824
10825 \begin_layout Plain Layout
10826 Short Title|S
10827 \end_layout
10828
10829 \end_inset
10830
10831
10832 \begin_inset Quotes erd
10833 \end_inset
10834
10835 ).
10836  This specification is optional.
10837  If it is not given the 
10838 \begin_inset Flex Code
10839 status collapsed
10840
10841 \begin_layout Plain Layout
10842 LabelString
10843 \end_layout
10844
10845 \end_inset
10846
10847  will be used instead for the menu.
10848 \end_layout
10849
10850 \begin_layout Itemize
10851 \begin_inset Flex Code
10852 status collapsed
10853
10854 \begin_layout Plain Layout
10855 Tooltip
10856 \end_layout
10857
10858 \end_inset
10859
10860  
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865 [string]
10866 \end_layout
10867
10868 \end_inset
10869
10870  A longer explanatory text that appears in the tooltip when hovering over
10871  the argument inset.
10872 \end_layout
10873
10874 \begin_layout Itemize
10875 \begin_inset Flex Code
10876 status collapsed
10877
10878 \begin_layout Plain Layout
10879 Mandatory
10880 \end_layout
10881
10882 \end_inset
10883
10884  [
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889
10890 \emph on
10891 0
10892 \end_layout
10893
10894 \end_inset
10895
10896 ,
10897 \begin_inset space \thinspace{}
10898 \end_inset
10899
10900
10901 \begin_inset Flex Code
10902 status collapsed
10903
10904 \begin_layout Plain Layout
10905 1
10906 \end_layout
10907
10908 \end_inset
10909
10910 ] Declare if this is a mandatory (1) or an optional (0) argument.
10911  Mandatory arguments will be output empty if not given, while optional arguments
10912  will not be output at all.
10913  By default, mandatory arguments are delimited by 
10914 \begin_inset Flex Code
10915 status collapsed
10916
10917 \begin_layout Plain Layout
10918 {...}
10919 \end_layout
10920
10921 \end_inset
10922
10923 , while optional arguments are delimited by 
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 [...]
10929 \end_layout
10930
10931 \end_inset
10932
10933
10934 \end_layout
10935
10936 \begin_layout Itemize
10937 \begin_inset Flex Code
10938 status collapsed
10939
10940 \begin_layout Plain Layout
10941 Requires
10942 \end_layout
10943
10944 \end_inset
10945
10946  
10947 \begin_inset Flex Code
10948 status collapsed
10949
10950 \begin_layout Plain Layout
10951 [int=0]
10952 \end_layout
10953
10954 \end_inset
10955
10956  defines another argument (by its number) which this argument requires to
10957  be output if it is itself output.
10958  E.
10959 \begin_inset space \thinspace{}
10960 \end_inset
10961
10962 g., in \SpecialChar LaTeX
10963  commands, optional arguments often require previous optional arguments
10964  to be output (at least empty), as in 
10965 \begin_inset Flex Code
10966 status collapsed
10967
10968 \begin_layout Plain Layout
10969
10970 \backslash
10971 command[][argument]{text}
10972 \end_layout
10973
10974 \end_inset
10975
10976 .
10977  This can be achieved by the statement 
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 Requires 1
10983 \end_layout
10984
10985 \end_inset
10986
10987  within 
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 Argument 2
10993 \end_layout
10994
10995 \end_inset
10996
10997 .
10998 \end_layout
10999
11000 \begin_layout Itemize
11001 \begin_inset Flex Code
11002 status collapsed
11003
11004 \begin_layout Plain Layout
11005 LeftDelim
11006 \end_layout
11007
11008 \end_inset
11009
11010  
11011 \begin_inset Flex Code
11012 status collapsed
11013
11014 \begin_layout Plain Layout
11015 [string]
11016 \end_layout
11017
11018 \end_inset
11019
11020  defines a custom left delimiter (instead of 
11021 \begin_inset Flex Code
11022 status collapsed
11023
11024 \begin_layout Plain Layout
11025 {
11026 \end_layout
11027
11028 \end_inset
11029
11030  or 
11031 \begin_inset Flex Code
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 [
11036 \end_layout
11037
11038 \end_inset
11039
11040 ).
11041  A line break in the output can be indicated by 
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046 <br/>
11047 \end_layout
11048
11049 \end_inset
11050
11051 .
11052 \end_layout
11053
11054 \begin_layout Itemize
11055 \begin_inset Flex Code
11056 status collapsed
11057
11058 \begin_layout Plain Layout
11059 RightDelim
11060 \end_layout
11061
11062 \end_inset
11063
11064  
11065 \begin_inset Flex Code
11066 status collapsed
11067
11068 \begin_layout Plain Layout
11069 [string]
11070 \end_layout
11071
11072 \end_inset
11073
11074  defines a custom right delimiter (instead of 
11075 \begin_inset Flex Code
11076 status collapsed
11077
11078 \begin_layout Plain Layout
11079 }
11080 \end_layout
11081
11082 \end_inset
11083
11084  or 
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089 ]
11090 \end_layout
11091
11092 \end_inset
11093
11094 ).
11095  A line break in the output can be indicated by 
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 <br/>
11101 \end_layout
11102
11103 \end_inset
11104
11105 .
11106 \end_layout
11107
11108 \begin_layout Itemize
11109 \begin_inset Flex Code
11110 status collapsed
11111
11112 \begin_layout Plain Layout
11113 DefaultArg
11114 \end_layout
11115
11116 \end_inset
11117
11118  
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 [string]
11124 \end_layout
11125
11126 \end_inset
11127
11128  defines an argument that is inserted if and only if no user-specified arguments
11129  were given, i.
11130 \begin_inset space \thinspace{}
11131 \end_inset
11132
11133 e.
11134 \begin_inset space \space{}
11135 \end_inset
11136
11137 if no argument inset has been inserted (note that also an empty argument
11138  inset omits the DefaultArg).
11139  Multiple arguments need to be separated by comma.
11140 \end_layout
11141
11142 \begin_layout Itemize
11143 \begin_inset Flex Code
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 PresetArg
11148 \end_layout
11149
11150 \end_inset
11151
11152  
11153 \begin_inset Flex Code
11154 status collapsed
11155
11156 \begin_layout Plain Layout
11157 [string]
11158 \end_layout
11159
11160 \end_inset
11161
11162  defines an argument that is inserted in any case (alone or in addition
11163  to user-specified arguments).
11164  Multiple arguments need to be separated by comma.
11165 \end_layout
11166
11167 \begin_layout Itemize
11168 \begin_inset Flex Code
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172 Font
11173 \end_layout
11174
11175 \end_inset
11176
11177  The font used for the argument content, see 
11178 \begin_inset CommandInset ref
11179 LatexCommand ref
11180 reference "subsec:Font-description"
11181
11182 \end_inset
11183
11184 .
11185 \end_layout
11186
11187 \begin_layout Itemize
11188 \begin_inset Flex Code
11189 status collapsed
11190
11191 \begin_layout Plain Layout
11192 LabelFont
11193 \end_layout
11194
11195 \end_inset
11196
11197  The font used for the label; see 
11198 \begin_inset CommandInset ref
11199 LatexCommand ref
11200 reference "subsec:Font-description"
11201
11202 \end_inset
11203
11204 .
11205 \end_layout
11206
11207 \begin_layout Itemize
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212 Decoration
11213 \end_layout
11214
11215 \end_inset
11216
11217  [
11218 \begin_inset Flex Code
11219 status collapsed
11220
11221 \begin_layout Plain Layout
11222
11223 \emph on
11224 Classic
11225 \emph default
11226 , Minimalistic, Conglomerate
11227 \end_layout
11228
11229 \end_inset
11230
11231 ] describes the rendering style used for the inset's frame and buttons.
11232 \end_layout
11233
11234 \begin_layout Itemize
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 AutoInsert
11240 \end_layout
11241
11242 \end_inset
11243
11244  
11245 \begin_inset Flex Code
11246 status collapsed
11247
11248 \begin_layout Plain Layout
11249 [int=0]
11250 \end_layout
11251
11252 \end_inset
11253
11254  If this is set to 
11255 \begin_inset Flex Code
11256 status collapsed
11257
11258 \begin_layout Plain Layout
11259 1
11260 \end_layout
11261
11262 \end_inset
11263
11264 , this argument is automatically inserted when the respective style is selected.
11265  Currently, only one argument per style\SpecialChar breakableslash
11266 layout can be automatically inserted.
11267 \end_layout
11268
11269 \begin_layout Itemize
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274 InsertCotext
11275 \end_layout
11276
11277 \end_inset
11278
11279  
11280 \begin_inset Flex Code
11281 status collapsed
11282
11283 \begin_layout Plain Layout
11284 [int=0]
11285 \end_layout
11286
11287 \end_inset
11288
11289  If this is set to 
11290 \begin_inset Flex Code
11291 status collapsed
11292
11293 \begin_layout Plain Layout
11294 1
11295 \end_layout
11296
11297 \end_inset
11298
11299 , this argument will be inserted with a copy of the co-text (either selected
11300  text or the whole paragraph) as content.
11301 \end_layout
11302
11303 \begin_layout Itemize
11304 \begin_inset Flex Code
11305 status collapsed
11306
11307 \begin_layout Plain Layout
11308 PassThruChars
11309 \end_layout
11310
11311 \end_inset
11312
11313  [
11314 \begin_inset Flex Code
11315 status collapsed
11316
11317 \begin_layout Plain Layout
11318 string of characters
11319 \end_layout
11320
11321 \end_inset
11322
11323 ]
11324 \family typewriter
11325  
11326 \family default
11327 Defines individual characters that should be output in raw form, meaning
11328  without special translations that \SpecialChar LaTeX
11329  would require.
11330  Note that, contrary to PassThru, this needs to be explicitly defined for
11331  arguments.
11332  That is, arguments do not inherit PassThruChars from their parent inset
11333  or layout.
11334 \end_layout
11335
11336 \begin_layout Standard
11337 By default, the text entered in the \SpecialChar LyX
11338  workarea in the respective layout is
11339  the last (mandatory) argument of a command if the 
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 LatexType
11345 \end_layout
11346
11347 \end_inset
11348
11349  is 
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 Command
11355 \end_layout
11356
11357 \end_inset
11358
11359 .
11360  However, arguments with the prefix 
11361 \begin_inset Flex Code
11362 status collapsed
11363
11364 \begin_layout Plain Layout
11365 post:
11366 \end_layout
11367
11368 \end_inset
11369
11370  are output after this workarea argument.
11371  Note that post-argument numbering restarts at 1, so the first argument
11372  following the workarea argument is 
11373 \begin_inset Flex Code
11374 status collapsed
11375
11376 \begin_layout Plain Layout
11377 post:1
11378 \end_layout
11379
11380 \end_inset
11381
11382 .
11383  Post-arguments are ignored in any other 
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 LatexType
11389 \end_layout
11390
11391 \end_inset
11392
11393  than 
11394 \begin_inset Flex Code
11395 status collapsed
11396
11397 \begin_layout Plain Layout
11398 Command
11399 \end_layout
11400
11401 \end_inset
11402
11403 .
11404 \end_layout
11405
11406 \begin_layout Standard
11407 Arguments for list 
11408 \begin_inset Flex Code
11409 status collapsed
11410
11411 \begin_layout Plain Layout
11412
11413 \backslash
11414 item
11415 \end_layout
11416
11417 \end_inset
11418
11419 s (as in 
11420 \begin_inset Flex Code
11421 status collapsed
11422
11423 \begin_layout Plain Layout
11424
11425 \backslash
11426 item[foo]
11427 \end_layout
11428
11429 \end_inset
11430
11431 ) have the prefix 
11432 \begin_inset Flex Code
11433 status collapsed
11434
11435 \begin_layout Plain Layout
11436 item:
11437 \end_layout
11438
11439 \end_inset
11440
11441  followed by the number (e.
11442 \begin_inset space \thinspace{}
11443 \end_inset
11444
11445 g.
11446 \begin_inset space \space{}
11447 \end_inset
11448
11449
11450 \begin_inset Flex Code
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 Argument item:1
11455 \end_layout
11456
11457 \end_inset
11458
11459 )
11460 \end_layout
11461
11462 \end_deeper
11463 \begin_layout Description
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468 BabelPreamble
11469 \end_layout
11470
11471 \end_inset
11472
11473  Note that this will completely override any prior 
11474 \begin_inset Flex Code
11475 status collapsed
11476
11477 \begin_layout Plain Layout
11478 BabelPreamble
11479 \end_layout
11480
11481 \end_inset
11482
11483  declaration for this style.
11484  Must end with 
11485 \begin_inset Quotes eld
11486 \end_inset
11487
11488
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 EndBabelPreamble
11494 \end_layout
11495
11496 \end_inset
11497
11498
11499 \begin_inset Quotes erd
11500 \end_inset
11501
11502 .
11503  See 
11504 \begin_inset CommandInset ref
11505 LatexCommand ref
11506 reference "subsec:I18n"
11507
11508 \end_inset
11509
11510  for details on its use.
11511 \end_layout
11512
11513 \begin_layout Description
11514 \begin_inset Flex Code
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518 BottomSep
11519 \end_layout
11520
11521 \end_inset
11522
11523  [
11524 \begin_inset Flex Code
11525 status collapsed
11526
11527 \begin_layout Plain Layout
11528 float=0
11529 \end_layout
11530
11531 \end_inset
11532
11533 ]
11534 \begin_inset Foot
11535 status collapsed
11536
11537 \begin_layout Plain Layout
11538 Note that a `float' here is a real number, such as: 1.5.
11539 \end_layout
11540
11541 \end_inset
11542
11543  The vertical space with which the last of a chain of paragraphs with this
11544  style is separated from the following paragraph.
11545  If the next paragraph has another style, the separations are not simply
11546  added, but the maximum is taken.
11547 \end_layout
11548
11549 \begin_layout Description
11550 \begin_inset Flex Code
11551 status collapsed
11552
11553 \begin_layout Plain Layout
11554 Category
11555 \end_layout
11556
11557 \end_inset
11558
11559  [
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 string
11565 \end_layout
11566
11567 \end_inset
11568
11569 ] The category for this style.
11570  This is used to group related styles in the style combobox on the toolbar.
11571  Any string can be used, but you may want to use existing categories with
11572  your own styles.
11573  
11574 \end_layout
11575
11576 \begin_layout Description
11577 \begin_inset Flex Code
11578 status collapsed
11579
11580 \begin_layout Plain Layout
11581 CommandDepth
11582 \end_layout
11583
11584 \end_inset
11585
11586  Depth of XML command.
11587  Used only with XML-type formats.
11588 \end_layout
11589
11590 \begin_layout Description
11591 \begin_inset Flex Code
11592 status collapsed
11593
11594 \begin_layout Plain Layout
11595 CopyStyle
11596 \end_layout
11597
11598 \end_inset
11599
11600  [
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 string
11606 \end_layout
11607
11608 \end_inset
11609
11610 ] Copies all the features of an existing style into the current one.
11611  
11612 \end_layout
11613
11614 \begin_layout Description
11615 \begin_inset Flex Code
11616 status collapsed
11617
11618 \begin_layout Plain Layout
11619 DependsOn
11620 \end_layout
11621
11622 \end_inset
11623
11624  [
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 <name>
11630 \end_layout
11631
11632 \end_inset
11633
11634 ] The name of a style whose preamble should be output 
11635 \emph on
11636 before
11637 \emph default
11638  this one.
11639  This allows to ensure some ordering of the preamble snippets when macros
11640  definitions depend on one another.
11641 \begin_inset Foot
11642 status collapsed
11643
11644 \begin_layout Plain Layout
11645 Note that, besides that functionality, there is no way to ensure any ordering
11646  of preambles.
11647  The ordering that you see in a given version of \SpecialChar LyX
11648  may change without warning
11649  in later versions.
11650 \end_layout
11651
11652 \end_inset
11653
11654
11655 \end_layout
11656
11657 \begin_layout Description
11658 \begin_inset Flex Code
11659 status collapsed
11660
11661 \begin_layout Plain Layout
11662 EndLabeltype
11663 \end_layout
11664
11665 \end_inset
11666
11667  [
11668 \begin_inset Flex Code
11669 status collapsed
11670
11671 \begin_layout Plain Layout
11672
11673 \emph on
11674 No_Label
11675 \emph default
11676 , Box, Filled_Box, Static
11677 \end_layout
11678
11679 \end_inset
11680
11681 ] The type of label that stands at the end of the paragraph (or sequence
11682  of paragraphs if 
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687 LatexType
11688 \end_layout
11689
11690 \end_inset
11691
11692  is
11693 \begin_inset Newline newline
11694 \end_inset
11695
11696
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701 Environment
11702 \end_layout
11703
11704 \end_inset
11705
11706
11707 \begin_inset Flex Code
11708 status collapsed
11709
11710 \begin_layout Plain Layout
11711 Item_Environment
11712 \end_layout
11713
11714 \end_inset
11715
11716  or 
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 List_Environment
11722 \end_layout
11723
11724 \end_inset
11725
11726 ).
11727  
11728 \begin_inset Flex Code
11729 status collapsed
11730
11731 \begin_layout Plain Layout
11732 No_Label
11733 \end_layout
11734
11735 \end_inset
11736
11737  means 
11738 \begin_inset Quotes eld
11739 \end_inset
11740
11741 nothing
11742 \begin_inset Quotes erd
11743 \end_inset
11744
11745
11746 \begin_inset Flex Code
11747 status collapsed
11748
11749 \begin_layout Plain Layout
11750 Box
11751 \end_layout
11752
11753 \end_inset
11754
11755  (resp.
11756 \begin_inset space \space{}
11757 \end_inset
11758
11759
11760 \begin_inset Flex Code
11761 status collapsed
11762
11763 \begin_layout Plain Layout
11764 Filled_Box
11765 \end_layout
11766
11767 \end_inset
11768
11769 ) is a white (resp.
11770 \begin_inset space ~
11771 \end_inset
11772
11773 black) square suitable for end of proof markers, 
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 Static
11779 \end_layout
11780
11781 \end_inset
11782
11783  is an explicit text string.
11784 \end_layout
11785
11786 \begin_layout Description
11787 \begin_inset Flex Code
11788 status collapsed
11789
11790 \begin_layout Plain Layout
11791 EndLabelString
11792 \end_layout
11793
11794 \end_inset
11795
11796  [
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801 string=""
11802 \end_layout
11803
11804 \end_inset
11805
11806 ] The string used for a label with a 
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 Static
11812 \end_layout
11813
11814 \end_inset
11815
11816
11817 \begin_inset Newline newline
11818 \end_inset
11819
11820
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 EndLabelType
11826 \end_layout
11827
11828 \end_inset
11829
11830 .
11831  
11832 \end_layout
11833
11834 \begin_layout Description
11835 \begin_inset Flex Code
11836 status collapsed
11837
11838 \begin_layout Plain Layout
11839 Font
11840 \end_layout
11841
11842 \end_inset
11843
11844  The font used for both the text body 
11845 \emph on
11846 and
11847 \emph default
11848  the label.
11849  See 
11850 \begin_inset CommandInset ref
11851 LatexCommand ref
11852 reference "subsec:Font-description"
11853
11854 \end_inset
11855
11856 .
11857  Note that defining this font automatically defines the 
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 LabelFont
11863 \end_layout
11864
11865 \end_inset
11866
11867  to the same value.
11868  So you should define this one first if you also want to define 
11869 \begin_inset Flex Code
11870 status collapsed
11871
11872 \begin_layout Plain Layout
11873 LabelFont
11874 \end_layout
11875
11876 \end_inset
11877
11878 .
11879 \end_layout
11880
11881 \begin_layout Description
11882 \begin_inset Flex Code
11883 status collapsed
11884
11885 \begin_layout Plain Layout
11886 ForceLocal
11887 \end_layout
11888
11889 \end_inset
11890
11891  [
11892 \begin_inset Flex Code
11893 status collapsed
11894
11895 \begin_layout Plain Layout
11896 int=0
11897 \end_layout
11898
11899 \end_inset
11900
11901 ] Used for backporting new styles to stable \SpecialChar LyX
11902  versions.
11903  The first stable version that supports this tag is \SpecialChar LyX
11904  2.1.0.
11905  The argument is a number which may either be 0, -1 or any value greater
11906  than zero.
11907  If the 
11908 \begin_inset Flex Code
11909 status collapsed
11910
11911 \begin_layout Plain Layout
11912 ForceLocal
11913 \end_layout
11914
11915 \end_inset
11916
11917  flag of a style is greater than zero, it will always be written to the
11918  document header.
11919  If a .lyx file is read, the style definitions from the document header are
11920  added to the document class.
11921  Therefore even older \SpecialChar LyX
11922  versions can handle the style.
11923  The argument of 
11924 \begin_inset Flex Code
11925 status collapsed
11926
11927 \begin_layout Plain Layout
11928 ForceLocal
11929 \end_layout
11930
11931 \end_inset
11932
11933  is a version number: If the style is read, and the version number is less
11934  than the version number of the already existing style in the document class,
11935  the new style is ignored.
11936  If the version number is greater, the new style replaces the existing style.
11937  A value of -1 means an infinite version number, i.
11938 \begin_inset space \thinspace{}
11939 \end_inset
11940
11941 e.
11942 \begin_inset space \space{}
11943 \end_inset
11944
11945 the style is always used.
11946 \end_layout
11947
11948 \begin_layout Description
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953 FreeSpacing
11954 \end_layout
11955
11956 \end_inset
11957
11958  [
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963
11964 \emph on
11965 0
11966 \end_layout
11967
11968 \end_inset
11969
11970 ,
11971 \begin_inset space \thinspace{}
11972 \end_inset
11973
11974
11975 \begin_inset Flex Code
11976 status collapsed
11977
11978 \begin_layout Plain Layout
11979 1
11980 \end_layout
11981
11982 \end_inset
11983
11984 ] Usually \SpecialChar LyX
11985  does not allow you to insert more than one space between words,
11986  since a space is considered as the separation between two words, not a
11987  character or symbol of its own.
11988  This is a very fine thing but sometimes annoying, for example, when typing
11989  program code or plain \SpecialChar LaTeX
11990  code.
11991  For this reason, 
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  can be enabled.
12002  Note that \SpecialChar LyX
12003  will create protected blanks for the additional blanks when
12004  in another mode than \SpecialChar LaTeX
12005 -mode.
12006 \end_layout
12007
12008 \begin_layout Description
12009 \begin_inset Flex Code
12010 status collapsed
12011
12012 \begin_layout Plain Layout
12013 HTML*
12014 \end_layout
12015
12016 \end_inset
12017
12018  These tags are used with XHTML output.
12019  See 
12020 \begin_inset CommandInset ref
12021 LatexCommand ref
12022 reference "subsec:Paragraph-Style-XHTML"
12023
12024 \end_inset
12025
12026 .
12027 \end_layout
12028
12029 \begin_layout Description
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034 InnerTag
12035 \end_layout
12036
12037 \end_inset
12038
12039  [FIXME] (Used only with XML-type formats.)
12040 \end_layout
12041
12042 \begin_layout Description
12043 \begin_inset Flex Code
12044 status collapsed
12045
12046 \begin_layout Plain Layout
12047 InPreamble
12048 \end_layout
12049
12050 \end_inset
12051
12052  [
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057
12058 \emph on
12059 0
12060 \end_layout
12061
12062 \end_inset
12063
12064 ,
12065 \begin_inset space \thinspace{}
12066 \end_inset
12067
12068
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073 1
12074 \end_layout
12075
12076 \end_inset
12077
12078 ] If 
12079 \begin_inset Flex Code
12080 status collapsed
12081
12082 \begin_layout Plain Layout
12083 1
12084 \end_layout
12085
12086 \end_inset
12087
12088 , marks the style as to be included in the document preamble and not in
12089  the document body.
12090  This is useful for document classes that want such information as the title
12091  and author to appear in the preamble.
12092  Note that this works only for styles for which the 
12093 \begin_inset Flex Code
12094 status collapsed
12095
12096 \begin_layout Plain Layout
12097 LatexType
12098 \end_layout
12099
12100 \end_inset
12101
12102  is 
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107 Command
12108 \end_layout
12109
12110 \end_inset
12111
12112  or 
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 Paragraph
12118 \end_layout
12119
12120 \end_inset
12121
12122 .
12123 \end_layout
12124
12125 \begin_layout Description
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 InTitle
12131 \end_layout
12132
12133 \end_inset
12134
12135  [
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140
12141 \emph on
12142 0
12143 \end_layout
12144
12145 \end_inset
12146
12147 ,
12148 \begin_inset space \thinspace{}
12149 \end_inset
12150
12151
12152 \begin_inset Flex Code
12153 status collapsed
12154
12155 \begin_layout Plain Layout
12156 1
12157 \end_layout
12158
12159 \end_inset
12160
12161 ] If 
12162 \begin_inset Flex Code
12163 status collapsed
12164
12165 \begin_layout Plain Layout
12166 1
12167 \end_layout
12168
12169 \end_inset
12170
12171 , marks the style as being part of a title block (see also the 
12172 \begin_inset Flex Code
12173 status collapsed
12174
12175 \begin_layout Plain Layout
12176 TitleLatexType
12177 \end_layout
12178
12179 \end_inset
12180
12181  and 
12182 \begin_inset Flex Code
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186 TitleLatexName
12187 \end_layout
12188
12189 \end_inset
12190
12191  global entries).
12192 \end_layout
12193
12194 \begin_layout Description
12195 \begin_inset Flex Code
12196 status collapsed
12197
12198 \begin_layout Plain Layout
12199 ItemCommand
12200 \end_layout
12201
12202 \end_inset
12203
12204  [
12205 \begin_inset Flex Code
12206 status collapsed
12207
12208 \begin_layout Plain Layout
12209 string="item"
12210 \end_layout
12211
12212 \end_inset
12213
12214 ] The \SpecialChar LaTeX
12215  command sequence declaring an item in a list.
12216  The command is to be defined without the preceding backslash (the default
12217  is 
12218 \begin_inset Quotes eld
12219 \end_inset
12220
12221 item
12222 \begin_inset Quotes erd
12223 \end_inset
12224
12225 , resulting in 
12226 \begin_inset Flex Code
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230
12231 \backslash
12232 item
12233 \end_layout
12234
12235 \end_inset
12236
12237  in the \SpecialChar LaTeX
12238  output).
12239 \end_layout
12240
12241 \begin_layout Description
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 ItemSep
12247 \end_layout
12248
12249 \end_inset
12250
12251  [
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 float=0
12257 \end_layout
12258
12259 \end_inset
12260
12261 ] This provides extra space between paragraphs that have the same style.
12262  If you put other styles into an environment, each is separated with the
12263  environment's 
12264 \begin_inset Flex Code
12265 status collapsed
12266
12267 \begin_layout Plain Layout
12268 ParSep
12269 \end_layout
12270
12271 \end_inset
12272
12273 .
12274  But the whole items of the environment are additionally separated with
12275  this 
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280 ItemSep
12281 \end_layout
12282
12283 \end_inset
12284
12285 .
12286  Note that this is a
12287 \emph on
12288  multiplier.
12289 \end_layout
12290
12291 \begin_layout Description
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296 ItemTag
12297 \end_layout
12298
12299 \end_inset
12300
12301  [FIXME] (Used only with XML-type formats.)
12302 \end_layout
12303
12304 \begin_layout Description
12305 \begin_inset Flex Code
12306 status collapsed
12307
12308 \begin_layout Plain Layout
12309 KeepEmpty
12310 \end_layout
12311
12312 \end_inset
12313
12314  [
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319
12320 \emph on
12321 0
12322 \end_layout
12323
12324 \end_inset
12325
12326 ,
12327 \begin_inset space \thinspace{}
12328 \end_inset
12329
12330
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335 1
12336 \end_layout
12337
12338 \end_inset
12339
12340 ] Usually \SpecialChar LyX
12341  does not allow you to leave a paragraph empty, since it would
12342  lead to empty \SpecialChar LaTeX
12343  output.
12344  There are some cases where this could be desirable however: in a letter
12345  template, the required fields can be provided as empty fields, so that
12346  people do not forget them; in some special classes, a style can be used
12347  as some kind of break, which does not contain actual text.
12348 \end_layout
12349
12350 \begin_layout Description
12351 \begin_inset Flex Code
12352 status collapsed
12353
12354 \begin_layout Plain Layout
12355 LabelBottomsep
12356 \end_layout
12357
12358 \end_inset
12359
12360  [
12361 \begin_inset Flex Code
12362 status collapsed
12363
12364 \begin_layout Plain Layout
12365 float=0
12366 \end_layout
12367
12368 \end_inset
12369
12370 ] The vertical space between the label and the text body.
12371  Only used for labels that are above the text body (
12372 \begin_inset Flex Code
12373 status collapsed
12374
12375 \begin_layout Plain Layout
12376 Top_Environment
12377 \end_layout
12378
12379 \end_inset
12380
12381  and
12382 \begin_inset Newline newline
12383 \end_inset
12384
12385
12386 \begin_inset Flex Code
12387 status collapsed
12388
12389 \begin_layout Plain Layout
12390 Centered_Top_Environment
12391 \end_layout
12392
12393 \end_inset
12394
12395 ).
12396 \end_layout
12397
12398 \begin_layout Description
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403 LabelCounter
12404 \end_layout
12405
12406 \end_inset
12407
12408  [
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 string=""
12414 \end_layout
12415
12416 \end_inset
12417
12418 ] The name of the counter for automatic numbering.
12419  In order to have the counter appear with your label, you will need to reference
12420  it in the 
12421 \begin_inset Flex Code
12422 status collapsed
12423
12424 \begin_layout Plain Layout
12425
12426 \family typewriter
12427 LabelString
12428 \end_layout
12429
12430 \end_inset
12431
12432 .
12433  This will work with 
12434 \begin_inset Flex Code
12435 status collapsed
12436
12437 \begin_layout Plain Layout
12438 LabelType
12439 \end_layout
12440
12441 \end_inset
12442
12443 s, 
12444 \begin_inset Flex Code
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448 Static
12449 \end_layout
12450
12451 \end_inset
12452
12453
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 Above
12459 \end_layout
12460
12461 \end_inset
12462
12463  and 
12464 \begin_inset Flex Code
12465 status collapsed
12466
12467 \begin_layout Plain Layout
12468 Centered
12469 \end_layout
12470
12471 \end_inset
12472
12473 , at least.
12474 \begin_inset Newline newline
12475 \end_inset
12476
12477 This 
12478 \emph on
12479 may
12480 \emph default
12481  also be given if 
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 LabelType
12487 \end_layout
12488
12489 \end_inset
12490
12491  is 
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496 Enumerate
12497 \end_layout
12498
12499 \end_inset
12500
12501 , though this case is a bit complicated.
12502  Suppose you declare 
12503 \begin_inset Quotes eld
12504 \end_inset
12505
12506
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 LabelCounter myenum
12512 \end_layout
12513
12514 \end_inset
12515
12516
12517 \begin_inset Quotes erd
12518 \end_inset
12519
12520 .
12521  Then the actual counters used are 
12522 \begin_inset Flex Code
12523 status collapsed
12524
12525 \begin_layout Plain Layout
12526 myenumi
12527 \end_layout
12528
12529 \end_inset
12530
12531
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536 myenumii
12537 \end_layout
12538
12539 \end_inset
12540
12541
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546 myenumiii
12547 \end_layout
12548
12549 \end_inset
12550
12551  and 
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 myenumiv
12557 \end_layout
12558
12559 \end_inset
12560
12561 , much as in \SpecialChar LaTeX
12562 .
12563  These counters must all be declared separately.
12564 \begin_inset Newline newline
12565 \end_inset
12566
12567 See 
12568 \begin_inset CommandInset ref
12569 LatexCommand ref
12570 reference "subsec:Counters"
12571
12572 \end_inset
12573
12574  for details on counters.
12575 \end_layout
12576
12577 \begin_layout Description
12578 \begin_inset Flex Code
12579 status collapsed
12580
12581 \begin_layout Plain Layout
12582 LabelFont
12583 \end_layout
12584
12585 \end_inset
12586
12587  The font used for the label.
12588  See 
12589 \begin_inset CommandInset ref
12590 LatexCommand ref
12591 reference "subsec:Font-description"
12592
12593 \end_inset
12594
12595 .
12596 \end_layout
12597
12598 \begin_layout Description
12599 \begin_inset Flex Code
12600 status collapsed
12601
12602 \begin_layout Plain Layout
12603 LabelIndent
12604 \end_layout
12605
12606 \end_inset
12607
12608  [
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 string=""
12614 \end_layout
12615
12616 \end_inset
12617
12618 ] Text that indicates how far a label should be indented.
12619 \end_layout
12620
12621 \begin_layout Description
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626 LabelSep
12627 \end_layout
12628
12629 \end_inset
12630
12631  [
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 string=""
12637 \end_layout
12638
12639 \end_inset
12640
12641 ] Text that indicates the amount of horizontal space between the label and
12642  the text body.
12643  Only used for labels that are not above the text body.
12644 \end_layout
12645
12646 \begin_layout Description
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 LabelString
12652 \end_layout
12653
12654 \end_inset
12655
12656  [
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 string=""
12662 \end_layout
12663
12664 \end_inset
12665
12666 ] The string used for the label.
12667  When 
12668 \begin_inset Flex Code
12669 status collapsed
12670
12671 \begin_layout Plain Layout
12672 LabelCounter
12673 \end_layout
12674
12675 \end_inset
12676
12677  is set, this string can be contain the special formatting commands described
12678  in 
12679 \begin_inset CommandInset ref
12680 LatexCommand ref
12681 reference "subsec:Counters"
12682
12683 \end_inset
12684
12685 .
12686 \end_layout
12687
12688 \begin_layout Description
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 LabelStringAppendix
12694 \end_layout
12695
12696 \end_inset
12697
12698  [
12699 \begin_inset Flex Code
12700 status collapsed
12701
12702 \begin_layout Plain Layout
12703 string=""
12704 \end_layout
12705
12706 \end_inset
12707
12708 ] This is used inside the appendix instead of
12709 \begin_inset Newline newline
12710 \end_inset
12711
12712
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 LabelString
12718 \end_layout
12719
12720 \end_inset
12721
12722 .
12723  Note that every 
12724 \begin_inset Flex Code
12725 status collapsed
12726
12727 \begin_layout Plain Layout
12728 LabelString
12729 \end_layout
12730
12731 \end_inset
12732
12733  statement resets
12734 \begin_inset Newline newline
12735 \end_inset
12736
12737
12738 \begin_inset Flex Code
12739 status collapsed
12740
12741 \begin_layout Plain Layout
12742 LabelStringAppendix
12743 \end_layout
12744
12745 \end_inset
12746
12747  too.
12748 \end_layout
12749
12750 \begin_layout Description
12751 \begin_inset Flex Code
12752 status collapsed
12753
12754 \begin_layout Plain Layout
12755 LabelTag
12756 \end_layout
12757
12758 \end_inset
12759
12760  [FIXME] (Used only with XML-type formats.)
12761 \end_layout
12762
12763 \begin_layout Description
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 LabelType
12769 \end_layout
12770
12771 \end_inset
12772
12773  [
12774 \begin_inset Flex Code
12775 status collapsed
12776
12777 \begin_layout Plain Layout
12778
12779 \emph on
12780 No_Label
12781 \emph default
12782 , Manual, Static, Above, 
12783 \begin_inset Newline newline
12784 \end_inset
12785
12786 Centered, Sensitive, Enumerate,
12787 \begin_inset Newline newline
12788 \end_inset
12789
12790 Itemize, Bibliography
12791 \end_layout
12792
12793 \end_inset
12794
12795 ]
12796 \begin_inset Separator parbreak
12797 \end_inset
12798
12799
12800 \end_layout
12801
12802 \begin_deeper
12803 \begin_layout Description
12804 \begin_inset Flex Code
12805 status collapsed
12806
12807 \begin_layout Plain Layout
12808 Manual
12809 \end_layout
12810
12811 \end_inset
12812
12813  means the label is the very first word (up to the first real blank).
12814  Use protected spaces if you want more than one word as the label.
12815  
12816 \end_layout
12817
12818 \begin_layout Description
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823 Static
12824 \end_layout
12825
12826 \end_inset
12827
12828  means the label is simply what is declared as 
12829 \begin_inset Flex Code
12830 status collapsed
12831
12832 \begin_layout Plain Layout
12833 LabelString
12834 \end_layout
12835
12836 \end_inset
12837
12838 .
12839  This will be displayed 
12840 \begin_inset Quotes eld
12841 \end_inset
12842
12843 inline
12844 \begin_inset Quotes erd
12845 \end_inset
12846
12847 , at the beginning of the paragraph.
12848  If the 
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 LatexType
12854 \end_layout
12855
12856 \end_inset
12857
12858  is 
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 Environment
12864 \end_layout
12865
12866 \end_inset
12867
12868 , then it will be displayed only in the first paragraph of any sequence
12869  of paragraphs with the same 
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874 Style
12875 \end_layout
12876
12877 \end_inset
12878
12879 .
12880 \end_layout
12881
12882 \begin_layout Description
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 Above
12888 \end_layout
12889
12890 \end_inset
12891
12892
12893 \begin_inset space ~
12894 \end_inset
12895
12896 and
12897 \begin_inset space ~
12898 \end_inset
12899
12900
12901 \begin_inset Flex Code
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905 Centered
12906 \end_layout
12907
12908 \end_inset
12909
12910  are special cases of 
12911 \begin_inset Flex Code
12912 status collapsed
12913
12914 \begin_layout Plain Layout
12915 Static
12916 \end_layout
12917
12918 \end_inset
12919
12920 .
12921  The label will be printed above the paragraph either at the beginning of
12922  the line or centered.
12923 \end_layout
12924
12925 \begin_layout Description
12926 \begin_inset Flex Code
12927 status collapsed
12928
12929 \begin_layout Plain Layout
12930 Sensitive
12931 \end_layout
12932
12933 \end_inset
12934
12935  is a special case for the caption-labels 
12936 \begin_inset Quotes eld
12937 \end_inset
12938
12939 Figure
12940 \begin_inset Quotes erd
12941 \end_inset
12942
12943  and 
12944 \begin_inset Quotes eld
12945 \end_inset
12946
12947 Table
12948 \begin_inset Quotes erd
12949 \end_inset
12950
12951 .
12952 \begin_inset Newline newline
12953 \end_inset
12954
12955
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 Sensitive
12961 \end_layout
12962
12963 \end_inset
12964
12965  means the (hardcoded) label string depends on the kind of float: It is
12966  hardcoded to be `FloatType N', where N is the value of the counter associated
12967  with the float.
12968  For the case that a caption is inserted outside of a float the 
12969 \begin_inset Flex Code
12970 status collapsed
12971
12972 \begin_layout Plain Layout
12973 LabelString
12974 \end_layout
12975
12976 \end_inset
12977
12978  will appear as 
12979 \begin_inset Quotes eld
12980 \end_inset
12981
12982 Senseless!
12983 \begin_inset Quotes erd
12984 \end_inset
12985
12986 .
12987 \end_layout
12988
12989 \begin_layout Description
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 Enumerate
12995 \end_layout
12996
12997 \end_inset
12998
12999  produces the usual sort of enumeration labels.
13000  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13001  small Roman numerals, and uppercase letters for the four possible depths.
13002 \end_layout
13003
13004 \begin_layout Description
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 Itemize
13010 \end_layout
13011
13012 \end_inset
13013
13014  produces various bullets at the different levels.
13015  It is also hardcoded.
13016 \end_layout
13017
13018 \begin_layout Description
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023 Bibliography
13024 \end_layout
13025
13026 \end_inset
13027
13028  should be used only with 
13029 \begin_inset Flex Code
13030 status collapsed
13031
13032 \begin_layout Plain Layout
13033 LatexType BibEnvironment
13034 \end_layout
13035
13036 \end_inset
13037
13038 .
13039 \end_layout
13040
13041 \end_deeper
13042 \begin_layout Description
13043 \begin_inset Flex Code
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047 LangPreamble
13048 \end_layout
13049
13050 \end_inset
13051
13052  Note that this will completely override any prior 
13053 \begin_inset Flex Code
13054 status collapsed
13055
13056 \begin_layout Plain Layout
13057 LangPreamble
13058 \end_layout
13059
13060 \end_inset
13061
13062  declaration for this style.
13063  Must end with 
13064 \begin_inset Quotes eld
13065 \end_inset
13066
13067
13068 \begin_inset Flex Code
13069 status collapsed
13070
13071 \begin_layout Plain Layout
13072 EndLangPreamble
13073 \end_layout
13074
13075 \end_inset
13076
13077
13078 \begin_inset Quotes erd
13079 \end_inset
13080
13081 .
13082  See 
13083 \begin_inset CommandInset ref
13084 LatexCommand ref
13085 reference "subsec:I18n"
13086
13087 \end_inset
13088
13089  for details on its use.
13090 \end_layout
13091
13092 \begin_layout Description
13093 \begin_inset Flex Code
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 LatexName
13098 \end_layout
13099
13100 \end_inset
13101
13102  [
13103 \begin_inset Flex Code
13104 status collapsed
13105
13106 \begin_layout Plain Layout
13107 <name>
13108 \end_layout
13109
13110 \end_inset
13111
13112 ] The name of the corresponding \SpecialChar LaTeX
13113  stuff.
13114  Either the environment or command name.
13115 \end_layout
13116
13117 \begin_layout Description
13118 \begin_inset Flex Code
13119 status collapsed
13120
13121 \begin_layout Plain Layout
13122 LatexParam
13123 \end_layout
13124
13125 \end_inset
13126
13127  [
13128 \begin_inset Flex Code
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132 <parameter>
13133 \end_layout
13134
13135 \end_inset
13136
13137 ] An optional parameter for the corresponding 
13138 \begin_inset Flex Code
13139 status collapsed
13140
13141 \begin_layout Plain Layout
13142 LatexName
13143 \end_layout
13144
13145 \end_inset
13146
13147  stuff.
13148  This parameter cannot be changed from within \SpecialChar LyX
13149  (use 
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 Argument
13155 \end_layout
13156
13157 \end_inset
13158
13159  for customizable parameters).
13160  This will be output as is after all \SpecialChar LaTeX
13161  
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166 Argument
13167 \end_layout
13168
13169 \end_inset
13170
13171 s.
13172 \end_layout
13173
13174 \begin_layout Description
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 LatexType
13180 \end_layout
13181
13182 \end_inset
13183
13184  [
13185 \begin_inset Flex Code
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189
13190 \emph on
13191 Paragraph
13192 \emph default
13193 , Command, Environment, Item_Environment,
13194 \begin_inset Newline newline
13195 \end_inset
13196
13197 List_Environment, Bib_Environment
13198 \end_layout
13199
13200 \end_inset
13201
13202 ] How the style should be translated into \SpecialChar LaTeX
13203 .
13204 \begin_inset Foot
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 \begin_inset Flex Code
13209 status collapsed
13210
13211 \begin_layout Plain Layout
13212 LatexType
13213 \end_layout
13214
13215 \end_inset
13216
13217  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13218  Visit the SGML class files for specific examples.
13219 \end_layout
13220
13221 \end_inset
13222
13223
13224 \begin_inset Separator parbreak
13225 \end_inset
13226
13227
13228 \end_layout
13229
13230 \begin_deeper
13231 \begin_layout Description
13232 \begin_inset Flex Code
13233 status collapsed
13234
13235 \begin_layout Plain Layout
13236 Paragraph
13237 \end_layout
13238
13239 \end_inset
13240
13241  means nothing special.
13242 \end_layout
13243
13244 \begin_layout Description
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 Command
13250 \end_layout
13251
13252 \end_inset
13253
13254  means 
13255 \begin_inset Flex Code
13256 status collapsed
13257
13258 \begin_layout Plain Layout
13259
13260 \backslash
13261
13262 \emph on
13263 LatexName
13264 \emph default
13265 {\SpecialChar ldots
13266 }
13267 \end_layout
13268
13269 \end_inset
13270
13271 .
13272 \end_layout
13273
13274 \begin_layout Description
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 Environment
13280 \end_layout
13281
13282 \end_inset
13283
13284  means 
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289
13290 \backslash
13291 begin{
13292 \emph on
13293 LatexName
13294 \emph default
13295 }\SpecialChar ldots
13296
13297 \backslash
13298 end{
13299 \emph on
13300 LatexName
13301 \emph default
13302 }
13303 \end_layout
13304
13305 \end_inset
13306
13307 .
13308  
13309 \end_layout
13310
13311 \begin_layout Description
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 Item_Environment
13317 \end_layout
13318
13319 \end_inset
13320
13321  is the same as 
13322 \begin_inset Flex Code
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 Environment
13327 \end_layout
13328
13329 \end_inset
13330
13331 , except that an 
13332 \begin_inset Flex Code
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336
13337 \backslash
13338 item
13339 \end_layout
13340
13341 \end_inset
13342
13343  is generated for each paragraph of this environment.
13344  
13345 \end_layout
13346
13347 \begin_layout Description
13348 \begin_inset Flex Code
13349 status collapsed
13350
13351 \begin_layout Plain Layout
13352 List_Environment
13353 \end_layout
13354
13355 \end_inset
13356
13357  is the same as 
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 Item_Environment
13363 \end_layout
13364
13365 \end_inset
13366
13367 , except that
13368 \begin_inset Newline newline
13369 \end_inset
13370
13371
13372 \begin_inset Flex Code
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376 LabelWidthString
13377 \end_layout
13378
13379 \end_inset
13380
13381  is passed as an argument to the environment.
13382 \begin_inset Newline newline
13383 \end_inset
13384
13385
13386 \begin_inset Flex Code
13387 status collapsed
13388
13389 \begin_layout Plain Layout
13390 LabelWidthString
13391 \end_layout
13392
13393 \end_inset
13394
13395  can be defined in the 
13396 \begin_inset Flex Noun
13397 status collapsed
13398
13399 \begin_layout Plain Layout
13400 Edit\SpecialChar menuseparator
13401 Paragraph
13402 \begin_inset space ~
13403 \end_inset
13404
13405 settings
13406 \end_layout
13407
13408 \end_inset
13409
13410  dialog.
13411 \end_layout
13412
13413 \begin_layout Description
13414 \begin_inset Flex Code
13415 status collapsed
13416
13417 \begin_layout Plain Layout
13418 Bib_Environment
13419 \end_layout
13420
13421 \end_inset
13422
13423  is like 
13424 \begin_inset Flex Code
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 Environment
13429 \end_layout
13430
13431 \end_inset
13432
13433  but adds additionally the necessary mandatory argument (the longest label)
13434  to the begin statement of the bibliography environment:
13435 \begin_inset Newline newline
13436 \end_inset
13437
13438
13439 \begin_inset Flex Code
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443
13444 \backslash
13445 begin{thebibliography}{99}
13446 \end_layout
13447
13448 \end_inset
13449
13450  It is therefore only useful for bibliography environments.
13451  The default longest label 
13452 \begin_inset Quotes eld
13453 \end_inset
13454
13455 99
13456 \begin_inset Quotes erd
13457 \end_inset
13458
13459  can be changed by the user in the paragraph settings of a bibliography
13460  item.
13461 \end_layout
13462
13463 \begin_layout Standard
13464 Putting the last few things together, the \SpecialChar LaTeX
13465  output will be either: 
13466 \end_layout
13467
13468 \begin_layout LyX-Code
13469
13470 \backslash
13471 LatexName[LatexParam]{\SpecialChar ldots
13472 }
13473 \end_layout
13474
13475 \begin_layout Standard
13476 or: 
13477 \end_layout
13478
13479 \begin_layout LyX-Code
13480
13481 \backslash
13482 begin{LatexName}[LatexParam] \SpecialChar ldots
13483  
13484 \backslash
13485 end{LatexName}.
13486 \end_layout
13487
13488 \begin_layout Standard
13489 depending upon the \SpecialChar LaTeX
13490  type.
13491 \end_layout
13492
13493 \end_deeper
13494 \begin_layout Description
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 LeftDelim
13500 \end_layout
13501
13502 \end_inset
13503
13504  [
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 string
13510 \end_layout
13511
13512 \end_inset
13513
13514 ] A string that is put at the beginning of the style content.
13515  A line break in the output can be indicated by 
13516 \begin_inset Flex Code
13517 status collapsed
13518
13519 \begin_layout Plain Layout
13520 <br/>
13521 \end_layout
13522
13523 \end_inset
13524
13525 .
13526 \end_layout
13527
13528 \begin_layout Description
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 LeftMargin
13534 \end_layout
13535
13536 \end_inset
13537
13538  [
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 string=""
13544 \end_layout
13545
13546 \end_inset
13547
13548 ] If you put styles into environments, the different 
13549 \begin_inset Flex Code
13550 status collapsed
13551
13552 \begin_layout Plain Layout
13553 LeftMargin
13554 \end_layout
13555
13556 \end_inset
13557
13558  are not simply added, but added with a factor 
13559 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13560 \end_inset
13561
13562 .
13563  Note that this parameter is also used when 
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 Margin
13569 \end_layout
13570
13571 \end_inset
13572
13573  is defined as 
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 Manual
13579 \end_layout
13580
13581 \end_inset
13582
13583  or 
13584 \begin_inset Flex Code
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588 Dynamic
13589 \end_layout
13590
13591 \end_inset
13592
13593 .
13594  Then it is added to the manual or dynamic margin.
13595 \begin_inset Newline newline
13596 \end_inset
13597
13598 For example 
13599 \begin_inset Quotes eld
13600 \end_inset
13601
13602
13603 \begin_inset Flex Code
13604 status collapsed
13605
13606 \begin_layout Plain Layout
13607 MM
13608 \end_layout
13609
13610 \end_inset
13611
13612
13613 \begin_inset Quotes erd
13614 \end_inset
13615
13616  means that the paragraph is indented with the width of 
13617 \begin_inset Quotes eld
13618 \end_inset
13619
13620
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 MM
13626 \end_layout
13627
13628 \end_inset
13629
13630
13631 \begin_inset Quotes erd
13632 \end_inset
13633
13634  in the normal font.
13635  You can get a negative width by prefixing the string with 
13636 \begin_inset Quotes eld
13637 \end_inset
13638
13639
13640 \begin_inset Flex Code
13641 status collapsed
13642
13643 \begin_layout Plain Layout
13644 -
13645 \end_layout
13646
13647 \end_inset
13648
13649
13650 \begin_inset Quotes erd
13651 \end_inset
13652
13653 .
13654  This way was chosen so that the look is the same with each used screen
13655  font.
13656 \end_layout
13657
13658 \begin_layout Description
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 Margin
13664 \end_layout
13665
13666 \end_inset
13667
13668  [
13669 \begin_inset Flex Code
13670 status collapsed
13671
13672 \begin_layout Plain Layout
13673
13674 \emph on
13675 Static
13676 \emph default
13677 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13678 \end_layout
13679
13680 \end_inset
13681
13682
13683 \begin_inset Newline newline
13684 \end_inset
13685
13686 The kind of margin that the style has on the left side.
13687 \begin_inset Separator parbreak
13688 \end_inset
13689
13690
13691 \end_layout
13692
13693 \begin_deeper
13694 \begin_layout Description
13695 \begin_inset Flex Code
13696 status collapsed
13697
13698 \begin_layout Plain Layout
13699 Static
13700 \end_layout
13701
13702 \end_inset
13703
13704  just means a fixed margin.
13705 \end_layout
13706
13707 \begin_layout Description
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 Manual
13713 \end_layout
13714
13715 \end_inset
13716
13717  means that the left margin depends on the string entered in the 
13718 \begin_inset Flex Noun
13719 status collapsed
13720
13721 \begin_layout Plain Layout
13722 Edit\SpecialChar menuseparator
13723 Paragraph
13724 \begin_inset space ~
13725 \end_inset
13726
13727 Settings
13728 \end_layout
13729
13730 \end_inset
13731
13732  dialog.
13733  This is used to typeset nice lists without tabulators.
13734 \end_layout
13735
13736 \begin_layout Description
13737 \begin_inset Flex Code
13738 status collapsed
13739
13740 \begin_layout Plain Layout
13741 Dynamic
13742 \end_layout
13743
13744 \end_inset
13745
13746  means that the margin depends on the size of the label.
13747  This is used for automatic enumerated headlines.
13748  It is obvious that the headline 
13749 \begin_inset Quotes eld
13750 \end_inset
13751
13752 5.4.3.2.1 Very long headline
13753 \begin_inset Quotes erd
13754 \end_inset
13755
13756  must have a wider left margin (as wide as 
13757 \begin_inset Quotes eld
13758 \end_inset
13759
13760 5.4.3.2.1
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764  plus the space) than 
13765 \begin_inset Quotes eld
13766 \end_inset
13767
13768 3.2 Very long headline
13769 \begin_inset Quotes erd
13770 \end_inset
13771
13772 , even if standard 
13773 \begin_inset Quotes eld
13774 \end_inset
13775
13776 word processors
13777 \begin_inset Quotes erd
13778 \end_inset
13779
13780  are not able to do this.
13781 \end_layout
13782
13783 \begin_layout Description
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 First_Dynamic
13789 \end_layout
13790
13791 \end_inset
13792
13793  is similar, but only the very first row of the paragraph is dynamic, while
13794  the others are static; this is used, for example, for descriptions.
13795 \end_layout
13796
13797 \begin_layout Description
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 Right_Address_Box
13803 \end_layout
13804
13805 \end_inset
13806
13807  means the margin is chosen in a way that the longest row of this paragraph
13808  fits to the right margin.
13809  This is used to typeset an address on the right edge of the page.
13810 \end_layout
13811
13812 \end_deeper
13813 \begin_layout Description
13814 \begin_inset Flex Code
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 NeedProtect
13819 \end_layout
13820
13821 \end_inset
13822
13823  [
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828
13829 \emph on
13830 0
13831 \end_layout
13832
13833 \end_inset
13834
13835 ,
13836 \begin_inset space \thinspace{}
13837 \end_inset
13838
13839
13840 \begin_inset Flex Code
13841 status collapsed
13842
13843 \begin_layout Plain Layout
13844 1
13845 \end_layout
13846
13847 \end_inset
13848
13849 ] Whether fragile commands in this style should be 
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854
13855 \backslash
13856 protect
13857 \end_layout
13858
13859 \end_inset
13860
13861 'ed.
13862  (Note: This is 
13863 \emph on
13864 not
13865 \emph default
13866  whether this command should itself be protected.)
13867 \end_layout
13868
13869 \begin_layout Description
13870 \begin_inset Flex Code
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874 Newline
13875 \end_layout
13876
13877 \end_inset
13878
13879  [
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884 0
13885 \end_layout
13886
13887 \end_inset
13888
13889 ,
13890 \begin_inset space \thinspace{}
13891 \end_inset
13892
13893
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898
13899 \emph on
13900 1
13901 \end_layout
13902
13903 \end_inset
13904
13905 ] Whether newlines are translated into \SpecialChar LaTeX
13906  newlines (
13907 \begin_inset Flex Code
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911
13912 \backslash
13913
13914 \backslash
13915
13916 \end_layout
13917
13918 \end_inset
13919
13920 ) or not.
13921  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
13922  editing
13923  inside \SpecialChar LyX
13924 .
13925 \end_layout
13926
13927 \begin_layout Description
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932 NextNoIndent
13933 \end_layout
13934
13935 \end_inset
13936
13937  [
13938 \begin_inset Flex Code
13939 status collapsed
13940
13941 \begin_layout Plain Layout
13942
13943 \emph on
13944 0
13945 \end_layout
13946
13947 \end_inset
13948
13949 ,
13950 \begin_inset space \thinspace{}
13951 \end_inset
13952
13953
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 1
13959 \end_layout
13960
13961 \end_inset
13962
13963 ] If set to true, and if 
13964 \begin_inset Flex Code
13965 status collapsed
13966
13967 \begin_layout Plain Layout
13968 DefaultStyle
13969 \end_layout
13970
13971 \end_inset
13972
13973  (usually 
13974 \begin_inset Flex Code
13975 status collapsed
13976
13977 \begin_layout Plain Layout
13978 Standard
13979 \end_layout
13980
13981 \end_inset
13982
13983 ) paragraphs are being indented, then the indentation of such a paragraph
13984  following one of this type will be suppressed.
13985  (So this will not affect the display of non-default paragraphs.)
13986 \end_layout
13987
13988 \begin_layout Description
13989 \begin_inset Flex Code
13990 status collapsed
13991
13992 \begin_layout Plain Layout
13993 ObsoletedBy
13994 \end_layout
13995
13996 \end_inset
13997
13998  [
13999 \begin_inset Flex Code
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003 <name>
14004 \end_layout
14005
14006 \end_inset
14007
14008 ] Name of a style that has replaced this style.
14009  This is used to rename a style, while keeping backward compatibility.
14010 \end_layout
14011
14012 \begin_layout Description
14013 \begin_inset Flex Code
14014 status collapsed
14015
14016 \begin_layout Plain Layout
14017 ParagraphGroup
14018 \end_layout
14019
14020 \end_inset
14021
14022  [
14023 \begin_inset Flex Code
14024 status collapsed
14025
14026 \begin_layout Plain Layout
14027 0
14028 \end_layout
14029
14030 \end_inset
14031
14032 ,
14033 \begin_inset space \thinspace{}
14034 \end_inset
14035
14036
14037 \begin_inset Flex Code
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041 1
14042 \end_layout
14043
14044 \end_inset
14045
14046 ] Determines whether consecutive pragraphs of the same type are treated
14047  as belonging together.
14048  This has the effect that the 
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 GuiLabel
14054 \end_layout
14055
14056 \end_inset
14057
14058  is only printed once before such a group.
14059  By default, this is true for 
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064 LaTeXType
14065 \end_layout
14066
14067 \end_inset
14068
14069  
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 Environment
14075 \end_layout
14076
14077 \end_inset
14078
14079  and 
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 Bib_Environment
14085 \end_layout
14086
14087 \end_inset
14088
14089  and false for all other types.
14090 \end_layout
14091
14092 \begin_layout Description
14093 \begin_inset Flex Code
14094 status collapsed
14095
14096 \begin_layout Plain Layout
14097 ParbreakIsNewline
14098 \end_layout
14099
14100 \end_inset
14101
14102  [
14103 \begin_inset Flex Code
14104 status collapsed
14105
14106 \begin_layout Plain Layout
14107
14108 \emph on
14109 0
14110 \end_layout
14111
14112 \end_inset
14113
14114 ,
14115 \begin_inset space \thinspace{}
14116 \end_inset
14117
14118
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 1
14124 \end_layout
14125
14126 \end_inset
14127
14128 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14129  output,
14130  but only by a line break; together with 
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135 PassThru 1
14136 \end_layout
14137
14138 \end_inset
14139
14140 , this allows to emulate a plain text editor (like the ERT inset).
14141 \end_layout
14142
14143 \begin_layout Description
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 ParIndent
14149 \end_layout
14150
14151 \end_inset
14152
14153  [
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 string=""
14159 \end_layout
14160
14161 \end_inset
14162
14163 ] The indent of the very first line of a paragraph.
14164  The
14165 \begin_inset Newline newline
14166 \end_inset
14167
14168
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173 Parindent
14174 \end_layout
14175
14176 \end_inset
14177
14178  will be fixed for a certain style.
14179  The exception is the default style, since the indentation for these paragraphs
14180  can be prohibited with 
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 NextNoIndent
14186 \end_layout
14187
14188 \end_inset
14189
14190 .
14191  Also, 
14192 \begin_inset Flex Code
14193 status collapsed
14194
14195 \begin_layout Plain Layout
14196 Standard
14197 \end_layout
14198
14199 \end_inset
14200
14201  style paragraphs inside environments use the 
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 Parindent
14207 \end_layout
14208
14209 \end_inset
14210
14211  of the environment, not their native one.
14212  For example, 
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 Standard
14218 \end_layout
14219
14220 \end_inset
14221
14222  paragraphs inside an enumeration are not indented.
14223 \end_layout
14224
14225 \begin_layout Description
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 ParSep
14231 \end_layout
14232
14233 \end_inset
14234
14235  [
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 float=0
14241 \end_layout
14242
14243 \end_inset
14244
14245 ] The vertical space between two paragraphs of this style.
14246 \end_layout
14247
14248 \begin_layout Description
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 Parskip
14254 \end_layout
14255
14256 \end_inset
14257
14258  [
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 float=0
14264 \end_layout
14265
14266 \end_inset
14267
14268 ] \SpecialChar LyX
14269  allows the user to choose either 
14270 \begin_inset Quotes eld
14271 \end_inset
14272
14273 indent
14274 \begin_inset Quotes erd
14275 \end_inset
14276
14277  or 
14278 \begin_inset Quotes eld
14279 \end_inset
14280
14281 skip
14282 \begin_inset Quotes erd
14283 \end_inset
14284
14285  to separate paragraphs.
14286  When 
14287 \begin_inset Quotes eld
14288 \end_inset
14289
14290 indent
14291 \begin_inset Quotes erd
14292 \end_inset
14293
14294  is chosen, 
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 Parskip
14300 \end_layout
14301
14302 \end_inset
14303
14304  is ignored.
14305  When 
14306 \begin_inset Quotes eld
14307 \end_inset
14308
14309 skip
14310 \begin_inset Quotes erd
14311 \end_inset
14312
14313  is chosen, 
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 ParIndent
14319 \end_layout
14320
14321 \end_inset
14322
14323  is ignored and all paragraphs are separated by the 
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 Parskip
14329 \end_layout
14330
14331 \end_inset
14332
14333  argument.
14334  The vertical space is calculated with 
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 Parskip
14340 \begin_inset space ~
14341 \end_inset
14342
14343 * DefaultHeight
14344 \end_layout
14345
14346 \end_inset
14347
14348  where 
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 DefaultHeight
14354 \end_layout
14355
14356 \end_inset
14357
14358  is the height of a row with the normal font.
14359  This way, the look stays the same with different screen fonts.
14360 \end_layout
14361
14362 \begin_layout Description
14363 \begin_inset Flex Code
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367 PassThru
14368 \end_layout
14369
14370 \end_inset
14371
14372  [
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377
14378 \emph on
14379 0
14380 \end_layout
14381
14382 \end_inset
14383
14384 ,
14385 \begin_inset space \thinspace{}
14386 \end_inset
14387
14388
14389 \begin_inset Flex Code
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 1
14394 \end_layout
14395
14396 \end_inset
14397
14398 ] Whether the contents of this paragraph should be output in raw form, meaning
14399  without special translations that \SpecialChar LaTeX
14400  would require.
14401 \end_layout
14402
14403 \begin_layout Description
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 PassThruChars
14409 \end_layout
14410
14411 \end_inset
14412
14413  [
14414 \begin_inset Flex Code
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418 string
14419 \end_layout
14420
14421 \end_inset
14422
14423 ]
14424 \family typewriter
14425  
14426 \family default
14427 Defines individual characters that should be output in raw form, meaning
14428  without special translations that \SpecialChar LaTeX
14429  would require.
14430 \end_layout
14431
14432 \begin_layout Description
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 Preamble
14438 \end_layout
14439
14440 \end_inset
14441
14442  Information to be included in the \SpecialChar LaTeX
14443  preamble when this style is used.
14444  Used to define macros, load packages, etc., required by this particular
14445  style.
14446  Must end with 
14447 \begin_inset Quotes eld
14448 \end_inset
14449
14450
14451 \begin_inset Flex Code
14452 status collapsed
14453
14454 \begin_layout Plain Layout
14455 EndPreamble
14456 \end_layout
14457
14458 \end_inset
14459
14460
14461 \begin_inset Quotes erd
14462 \end_inset
14463
14464 .
14465 \end_layout
14466
14467 \begin_layout Description
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 RefPrefix
14473 \end_layout
14474
14475 \end_inset
14476
14477  [
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482 string
14483 \end_layout
14484
14485 \end_inset
14486
14487 ] The prefix to use when creating labels referring to paragraphs of this
14488  type.
14489  This allows the use of formatted references.
14490 \end_layout
14491
14492 \begin_layout Description
14493 \begin_inset Flex Code
14494 status collapsed
14495
14496 \begin_layout Plain Layout
14497 Requires 
14498 \end_layout
14499
14500 \end_inset
14501
14502  [
14503 \begin_inset Flex Code
14504 status collapsed
14505
14506 \begin_layout Plain Layout
14507 string
14508 \end_layout
14509
14510 \end_inset
14511
14512 ] Whether the style requires the feature 
14513 \begin_inset Flex Code
14514 status collapsed
14515
14516 \begin_layout Plain Layout
14517 string
14518 \end_layout
14519
14520 \end_inset
14521
14522  (see 
14523 \begin_inset CommandInset ref
14524 LatexCommand ref
14525 reference "chap:List-of-functions"
14526
14527 \end_inset
14528
14529  for the list of features).
14530  If you require a package with specific options, you can additionally use
14531  
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536 PackageOptions
14537 \end_layout
14538
14539 \end_inset
14540
14541  as a general text class parameter (see 
14542 \begin_inset CommandInset ref
14543 LatexCommand ref
14544 reference "subsec:General-text-class"
14545
14546 \end_inset
14547
14548 ).
14549 \end_layout
14550
14551 \begin_layout Description
14552 \begin_inset Flex Code
14553 status collapsed
14554
14555 \begin_layout Plain Layout
14556 ResetArgs
14557 \end_layout
14558
14559 \end_inset
14560
14561  [
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566
14567 \emph on
14568 0
14569 \end_layout
14570
14571 \end_inset
14572
14573 ,
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 1
14579 \end_layout
14580
14581 \end_inset
14582
14583 ] Resets the \SpecialChar LaTeX
14584  arguments of this style (as defined via the 
14585 \begin_inset Flex Code
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 Argument
14590 \end_layout
14591
14592 \end_inset
14593
14594  tag).
14595  This is useful if you have copied a style via 
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600 CopyStyle
14601 \end_layout
14602
14603 \end_inset
14604
14605 , but you do not want to inherit its (required and optional) arguments.
14606 \end_layout
14607
14608 \begin_layout Description
14609 \begin_inset Flex Code
14610 status collapsed
14611
14612 \begin_layout Plain Layout
14613 RightDelim
14614 \end_layout
14615
14616 \end_inset
14617
14618  [
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623 string
14624 \end_layout
14625
14626 \end_inset
14627
14628 ] A string that is put at the end of the layout content.
14629  A line break in the output can be indicated by 
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 <br/>
14635 \end_layout
14636
14637 \end_inset
14638
14639 .
14640 \end_layout
14641
14642 \begin_layout Description
14643 \begin_inset Flex Code
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647 RightMargin
14648 \end_layout
14649
14650 \end_inset
14651
14652  [
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 string=""
14658 \end_layout
14659
14660 \end_inset
14661
14662 ] Similar to 
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667 LeftMargin
14668 \end_layout
14669
14670 \end_inset
14671
14672 .
14673 \end_layout
14674
14675 \begin_layout Description
14676 \begin_inset Flex Code
14677 status collapsed
14678
14679 \begin_layout Plain Layout
14680 Spacing
14681 \end_layout
14682
14683 \end_inset
14684
14685  [
14686 \begin_inset Flex Code
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690
14691 \emph on
14692 single
14693 \end_layout
14694
14695 \end_inset
14696
14697
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 onehalf
14703 \end_layout
14704
14705 \end_inset
14706
14707
14708 \begin_inset Flex Code
14709 status collapsed
14710
14711 \begin_layout Plain Layout
14712 double
14713 \end_layout
14714
14715 \end_inset
14716
14717
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 other
14723 \begin_inset space ~
14724 \end_inset
14725
14726 <value>
14727 \end_layout
14728
14729 \end_inset
14730
14731 ] This defines what the default spacing should be in the style.
14732  The arguments 
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 single
14738 \end_layout
14739
14740 \end_inset
14741
14742
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 onehalf
14748 \end_layout
14749
14750 \end_inset
14751
14752  and 
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 double
14758 \end_layout
14759
14760 \end_inset
14761
14762  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14763  If you specify the argument 
14764 \begin_inset Flex Code
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768 other
14769 \end_layout
14770
14771 \end_inset
14772
14773 , then you must also provide a value argument which will be the actual multiplie
14774 r value.
14775  Note that, contrary to other parameters, 
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 Spacing
14781 \end_layout
14782
14783 \end_inset
14784
14785  implies the generation of specific \SpecialChar LaTeX
14786  code, using the \SpecialChar LaTeX
14787  package 
14788 \family roman
14789
14790 \begin_inset Flex Code
14791 status collapsed
14792
14793 \begin_layout Plain Layout
14794 setspace
14795 \end_layout
14796
14797 \end_inset
14798
14799 .
14800 \end_layout
14801
14802 \begin_layout Description
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 Spellcheck
14808 \end_layout
14809
14810 \end_inset
14811
14812  [
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 0
14818 \end_layout
14819
14820 \end_inset
14821
14822 ,
14823 \begin_inset space \thinspace{}
14824 \end_inset
14825
14826
14827 \begin_inset Flex Code
14828 status collapsed
14829
14830 \begin_layout Plain Layout
14831
14832 \emph on
14833 1
14834 \end_layout
14835
14836 \end_inset
14837
14838 ] Allow spell-checking paragraphs of this style.
14839  Default is true.
14840 \end_layout
14841
14842 \begin_layout Description
14843 \begin_inset Flex Code
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847 TextFont
14848 \end_layout
14849
14850 \end_inset
14851
14852  The font used for the text body .
14853  See 
14854 \begin_inset CommandInset ref
14855 LatexCommand ref
14856 reference "subsec:Font-description"
14857
14858 \end_inset
14859
14860 .
14861 \end_layout
14862
14863 \begin_layout Description
14864 \begin_inset Flex Code
14865 status collapsed
14866
14867 \begin_layout Plain Layout
14868 TocLevel
14869 \end_layout
14870
14871 \end_inset
14872
14873
14874 \series medium
14875  [
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880
14881 \series medium
14882 int=3
14883 \end_layout
14884
14885 \end_inset
14886
14887 ]
14888 \series default
14889  The level of the style in the table of contents.
14890  This is used for automatic numbering of section headings.
14891 \end_layout
14892
14893 \begin_layout Description
14894 \begin_inset Flex Code
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898 ToggleIndent
14899 \end_layout
14900
14901 \end_inset
14902
14903  [
14904 \emph on
14905
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910
14911 \emph on
14912 default
14913 \end_layout
14914
14915 \end_inset
14916
14917
14918 \emph default
14919
14920 \begin_inset Flex Code
14921 status collapsed
14922
14923 \begin_layout Plain Layout
14924 always
14925 \end_layout
14926
14927 \end_inset
14928
14929
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 never
14935 \end_layout
14936
14937 \end_inset
14938
14939 ] This tag determines whether the first line indentation of this paragraph
14940  can be toggled via the Paragraph settings dialog.
14941  If 
14942 \emph on
14943
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948
14949 \emph off
14950 default
14951 \end_layout
14952
14953 \end_inset
14954
14955
14956 \emph default
14957  is set, indentation can be toggled if the document settings use 
14958 \begin_inset Quotes eld
14959 \end_inset
14960
14961 indent
14962 \begin_inset Quotes erd
14963 \end_inset
14964
14965  paragraph style, with 
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 always
14971 \end_layout
14972
14973 \end_inset
14974
14975 , indentation can always be toggled, notwithstanding the document settings,
14976  with 
14977 \begin_inset Flex Code
14978 status collapsed
14979
14980 \begin_layout Plain Layout
14981 never
14982 \end_layout
14983
14984 \end_inset
14985
14986 , indentation can never be toggled.
14987 \end_layout
14988
14989 \begin_layout Description
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 TopSep
14995 \end_layout
14996
14997 \end_inset
14998
14999  [
15000 \begin_inset Flex Code
15001 status collapsed
15002
15003 \begin_layout Plain Layout
15004 float=0
15005 \end_layout
15006
15007 \end_inset
15008
15009 ] The vertical space with which the very first of a chain of paragraphs
15010  with this style is separated from the previous paragraph.
15011  If the previous paragraph has another style, the separations are not simply
15012  added, but the maximum is taken.
15013 \end_layout
15014
15015 \begin_layout Subsection
15016 \begin_inset CommandInset label
15017 LatexCommand label
15018 name "subsec:I18n"
15019
15020 \end_inset
15021
15022 Internationalization of Paragraph Styles
15023 \end_layout
15024
15025 \begin_layout Standard
15026 \SpecialChar LyX
15027  has long supported internationalization of layout information, but, until
15028  version 2.0, this applied only to the user interface and not to, say, PDF
15029  output.
15030  Thus, French authors were forced to resort to ugly hacks if they wanted
15031  `
15032 \lang french
15033 Théorème
15034 \lang english
15035  1' instead of `Theorem 1'.
15036  Thanks to Georg Baum, that is no longer the case.
15037 \end_layout
15038
15039 \begin_layout Standard
15040 If a 
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 Style
15046 \end_layout
15047
15048 \end_inset
15049
15050  defines text that is to appear in the typeset document, it may use 
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 LangPreamble
15056 \end_layout
15057
15058 \end_inset
15059
15060  and 
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 BabelPreamble
15066 \end_layout
15067
15068 \end_inset
15069
15070  to support non-English and even multi-language documents correctly.
15071  The following excerpt (from the 
15072 \begin_inset Flex Code
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 theorems-ams.inc
15077 \end_layout
15078
15079 \end_inset
15080
15081  file) shows how this works:
15082 \end_layout
15083
15084 \begin_layout LyX-Code
15085 Preamble
15086 \begin_inset Separator parbreak
15087 \end_inset
15088
15089
15090 \end_layout
15091
15092 \begin_deeper
15093 \begin_layout LyX-Code
15094   
15095 \backslash
15096 theoremstyle{remark}
15097 \end_layout
15098
15099 \begin_layout LyX-Code
15100   
15101 \backslash
15102 newtheorem{claim}[thm]{
15103 \backslash
15104 protect
15105 \backslash
15106 claimname}
15107 \end_layout
15108
15109 \begin_layout LyX-Code
15110 EndPreamble
15111 \end_layout
15112
15113 \begin_layout LyX-Code
15114 LangPreamble
15115 \end_layout
15116
15117 \begin_layout LyX-Code
15118   
15119 \backslash
15120 providecommand{
15121 \backslash
15122 claimname}{_(Claim)}
15123 \end_layout
15124
15125 \begin_layout LyX-Code
15126 EndLangPreamble
15127 \end_layout
15128
15129 \begin_layout LyX-Code
15130 BabelPreamble
15131 \end_layout
15132
15133 \begin_layout LyX-Code
15134     
15135 \backslash
15136 addto
15137 \backslash
15138 captions$$lang{
15139 \backslash
15140 renewcommand{
15141 \backslash
15142 claimname}{_(Claim)}}
15143 \end_layout
15144
15145 \begin_layout LyX-Code
15146 EndBabelPreamble
15147 \end_layout
15148
15149 \end_deeper
15150 \begin_layout Standard
15151 In principle, any legal \SpecialChar LaTeX
15152  may appear in the 
15153 \begin_inset Flex Code
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 LangPreamble
15158 \end_layout
15159
15160 \end_inset
15161
15162  and 
15163 \begin_inset Flex Code
15164 status collapsed
15165
15166 \begin_layout Plain Layout
15167 BabelPreamble
15168 \end_layout
15169
15170 \end_inset
15171
15172  tags, but in practice they will typically look as they do here.
15173  The key to correct translation of the typeset text is the definition of
15174  the \SpecialChar LaTeX
15175  command 
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180
15181 \backslash
15182 claimname
15183 \end_layout
15184
15185 \end_inset
15186
15187  and its use in 
15188 \begin_inset Flex Code
15189 status collapsed
15190
15191 \begin_layout Plain Layout
15192
15193 \backslash
15194 newtheorem
15195 \end_layout
15196
15197 \end_inset
15198
15199 .
15200  
15201 \end_layout
15202
15203 \begin_layout Standard
15204 The 
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 LangPreamble
15210 \end_layout
15211
15212 \end_inset
15213
15214  tag provides for internationalization based upon the overall language of
15215  the document.
15216  The contents of the tag will be included in the preamble, just as with
15217  the 
15218 \begin_inset Flex Code
15219 status collapsed
15220
15221 \begin_layout Plain Layout
15222 Preamble
15223 \end_layout
15224
15225 \end_inset
15226
15227  tag.
15228  What makes it special is the use of the 
15229 \begin_inset Quotes eld
15230 \end_inset
15231
15232 function
15233 \begin_inset Quotes erd
15234 \end_inset
15235
15236  
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 _()
15242 \end_layout
15243
15244 \end_inset
15245
15246 , which will be replaced, when \SpecialChar LyX
15247  produces \SpecialChar LaTeX
15248  output, with the translation of
15249  its argument into the document language.
15250 \end_layout
15251
15252 \begin_layout Standard
15253 The 
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 BabelPreamble
15259 \end_layout
15260
15261 \end_inset
15262
15263  tag is more complex, since it is meant to provide support for multi-language
15264  documents and so offers an interface to the 
15265 \begin_inset Flex Code
15266 status collapsed
15267
15268 \begin_layout Plain Layout
15269 babel
15270 \end_layout
15271
15272 \end_inset
15273
15274  package.
15275  Its contents will be added to the preamble once for each language that
15276  appears in the document.
15277  In this case, the argument to 
15278 \begin_inset Flex Code
15279 status collapsed
15280
15281 \begin_layout Plain Layout
15282 _()
15283 \end_layout
15284
15285 \end_inset
15286
15287  will be replaced with its translation into the language in question; the
15288  expression 
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293 $$lang
15294 \end_layout
15295
15296 \end_inset
15297
15298  is replaced by the language name (as used by the babel package).
15299 \end_layout
15300
15301 \begin_layout Standard
15302 A German document that also included a French section would thus have the
15303  following in the preamble:
15304 \end_layout
15305
15306 \begin_layout LyX-Code
15307
15308 \backslash
15309 addto
15310 \backslash
15311 captionsfrench{
15312 \backslash
15313 renewcommand{
15314 \backslash
15315 claimname}{Affirmation}}
15316 \begin_inset Newline newline
15317 \end_inset
15318
15319
15320 \backslash
15321 addto
15322 \backslash
15323 captionsngerman{
15324 \backslash
15325 renewcommand{
15326 \backslash
15327 claimname}{Behauptung}}
15328 \begin_inset Newline newline
15329 \end_inset
15330
15331
15332 \backslash
15333 providecommand{
15334 \backslash
15335 claimname}{Behauptung}
15336 \end_layout
15337
15338 \begin_layout Standard
15339 \SpecialChar LaTeX
15340  and 
15341 \begin_inset Flex Code
15342 status collapsed
15343
15344 \begin_layout Plain Layout
15345 babel
15346 \end_layout
15347
15348 \end_inset
15349
15350  will then conspire to produce the correct text in the output.
15351 \end_layout
15352
15353 \begin_layout Standard
15354 One important point to note here is that the translations are provided by
15355  \SpecialChar LyX
15356  itself, through the file 
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361 layouttranslations
15362 \end_layout
15363
15364 \end_inset
15365
15366 .
15367  This means, in effect, that 
15368 \begin_inset Flex Code
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 LangPreamble
15373 \end_layout
15374
15375 \end_inset
15376
15377  and 
15378 \begin_inset Flex Code
15379 status collapsed
15380
15381 \begin_layout Plain Layout
15382 BabelPreamble
15383 \end_layout
15384
15385 \end_inset
15386
15387  are really only of use in layout files that are provided with \SpecialChar LyX
15388 , since text
15389  entered in user-created layout files will not be seen by \SpecialChar LyX
15390 's internationalizatio
15391 n routines unless the 
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396 layouttranslations
15397 \end_layout
15398
15399 \end_inset
15400
15401  file is modified accordingly.
15402  That said, however, any layout created with the intention that it will
15403  be included with \SpecialChar LyX
15404  should use these tags where appropriate.
15405  Please note that the paragraph style translations provided by \SpecialChar LyX
15406  will never
15407  change with a minor update (e.
15408 \begin_inset space \thinspace{}
15409 \end_inset
15410
15411 g.
15412 \begin_inset space \space{}
15413 \end_inset
15414
15415 from version 2.1.x to 2.1.y).
15416  It is however quite likely that a major update (e.
15417 \begin_inset space \thinspace{}
15418 \end_inset
15419
15420 g.
15421 \begin_inset space \space{}
15422 \end_inset
15423
15424 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15425 \end_layout
15426
15427 \begin_layout Subsection
15428 Floats
15429 \begin_inset CommandInset label
15430 LatexCommand label
15431 name "subsec:Floats"
15432
15433 \end_inset
15434
15435
15436 \end_layout
15437
15438 \begin_layout Standard
15439 It is necessary to define the floats (
15440 \begin_inset Flex Noun
15441 status collapsed
15442
15443 \begin_layout Plain Layout
15444 figure
15445 \end_layout
15446
15447 \end_inset
15448
15449
15450 \begin_inset Flex Noun
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 table
15455 \end_layout
15456
15457 \end_inset
15458
15459 , \SpecialChar ldots
15460 ) in the text class itself.
15461  Standard floats are included in the file 
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466 stdfloats.inc
15467 \end_layout
15468
15469 \end_inset
15470
15471 , so you may have to do no more than add
15472 \end_layout
15473
15474 \begin_layout LyX-Code
15475 Input stdfloats.inc
15476 \end_layout
15477
15478 \begin_layout Standard
15479 to your layout file.
15480  If you want to implement a text class that proposes some other float types
15481  (like the AGU class bundled with \SpecialChar LyX
15482 ), the information below will hopefully
15483  help you:
15484 \end_layout
15485
15486 \begin_layout Description
15487 \begin_inset Flex Code
15488 status collapsed
15489
15490 \begin_layout Plain Layout
15491 AllowedPlacement
15492 \end_layout
15493
15494 \end_inset
15495
15496  [
15497 \begin_inset Flex Code
15498 status collapsed
15499
15500 \begin_layout Plain Layout
15501 string
15502 \end_layout
15503
15504 \end_inset
15505
15506 =!htbpH] Allowed placement options for this float type.
15507  The value is a string of placement characters.
15508  Possible characters include: 
15509 \emph on
15510 h
15511 \emph default
15512  (
15513 \begin_inset Quotes eld
15514 \end_inset
15515
15516 here if possible
15517 \begin_inset Quotes erd
15518 \end_inset
15519
15520 ), 
15521 \emph on
15522 t
15523 \emph default
15524  (
15525 \begin_inset Quotes eld
15526 \end_inset
15527
15528 top of page
15529 \begin_inset Quotes erd
15530 \end_inset
15531
15532 ), 
15533 \emph on
15534 b
15535 \emph default
15536  (
15537 \begin_inset Quotes eld
15538 \end_inset
15539
15540 bottom of page
15541 \begin_inset Quotes erd
15542 \end_inset
15543
15544 ), 
15545 \emph on
15546 p
15547 \emph default
15548  (
15549 \begin_inset Quotes eld
15550 \end_inset
15551
15552 page of floats
15553 \begin_inset Quotes erd
15554 \end_inset
15555
15556 ), 
15557 \emph on
15558 H
15559 \emph default
15560  (
15561 \begin_inset Quotes eld
15562 \end_inset
15563
15564 here definitely
15565 \begin_inset Quotes erd
15566 \end_inset
15567
15568 ) and 
15569 \emph on
15570 !
15571 \emph default
15572  (
15573 \begin_inset Quotes eld
15574 \end_inset
15575
15576 ignore LaTeX rules
15577 \begin_inset Quotes erd
15578 \end_inset
15579
15580 ).
15581  The order of the characters in the string does not matter.
15582  If no placement options are allowed, use the string 
15583 \emph on
15584 none
15585 \emph default
15586 .
15587 \end_layout
15588
15589 \begin_layout Description
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 AllowsSideways
15595 \end_layout
15596
15597 \end_inset
15598
15599  [
15600 \begin_inset Flex Code
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604
15605 \emph off
15606 0
15607 \end_layout
15608
15609 \end_inset
15610
15611 ,
15612 \begin_inset space \thinspace{}
15613 \end_inset
15614
15615
15616 \emph on
15617
15618 \begin_inset Flex Code
15619 status collapsed
15620
15621 \begin_layout Plain Layout
15622
15623 \emph on
15624 1
15625 \end_layout
15626
15627 \end_inset
15628
15629
15630 \emph default
15631 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
15632 -package 
15633 \family typewriter
15634 rotfloat
15635 \family default
15636  (sidewaysfloat).
15637  Set to 
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 0
15643 \end_layout
15644
15645 \end_inset
15646
15647  if the float does not support this feature.
15648 \end_layout
15649
15650 \begin_layout Description
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 AllowsWide
15656 \end_layout
15657
15658 \end_inset
15659
15660  [
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665
15666 \emph off
15667 0
15668 \end_layout
15669
15670 \end_inset
15671
15672 ,
15673 \begin_inset space \thinspace{}
15674 \end_inset
15675
15676
15677 \emph on
15678
15679 \begin_inset Flex Code
15680 status collapsed
15681
15682 \begin_layout Plain Layout
15683
15684 \emph on
15685 1
15686 \end_layout
15687
15688 \end_inset
15689
15690
15691 \emph default
15692 ] Defines whether the float has a starred variant that spans columns in
15693  a two column paragraph.
15694  Set to 
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 0
15700 \end_layout
15701
15702 \end_inset
15703
15704  if the float does not support this feature.
15705 \end_layout
15706
15707 \begin_layout Description
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 Extension
15713 \end_layout
15714
15715 \end_inset
15716
15717  [
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 string
15723 \end_layout
15724
15725 \end_inset
15726
15727 =
15728 \begin_inset Quotes erd
15729 \end_inset
15730
15731
15732 \begin_inset Quotes erd
15733 \end_inset
15734
15735 ] The file name extension of an auxiliary file for the list of figures (or
15736  whatever).
15737  \SpecialChar LaTeX
15738  writes the captions to this file.
15739 \end_layout
15740
15741 \begin_layout Description
15742 \begin_inset Flex Code
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746 GuiName
15747 \end_layout
15748
15749 \end_inset
15750
15751  [
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756 string
15757 \end_layout
15758
15759 \end_inset
15760
15761 =
15762 \begin_inset Quotes erd
15763 \end_inset
15764
15765
15766 \begin_inset Quotes erd
15767 \end_inset
15768
15769 ] The string that will be used in the menus and also for the caption.
15770  This is translated to the current language if babel is used.
15771 \end_layout
15772
15773 \begin_layout Description
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 HTML*
15779 \end_layout
15780
15781 \end_inset
15782
15783  These tags control the XHTML output.
15784  See 
15785 \begin_inset CommandInset ref
15786 LatexCommand ref
15787 reference "sec:Tags-for-XHTML"
15788
15789 \end_inset
15790
15791 .
15792 \end_layout
15793
15794 \begin_layout Description
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 IsPredefined
15800 \end_layout
15801
15802 \end_inset
15803
15804  [
15805 \emph on
15806
15807 \begin_inset Flex Code
15808 status collapsed
15809
15810 \begin_layout Plain Layout
15811 0
15812 \end_layout
15813
15814 \end_inset
15815
15816
15817 \emph default
15818 ,
15819 \begin_inset space \thinspace{}
15820 \end_inset
15821
15822
15823 \begin_inset Flex Code
15824 status collapsed
15825
15826 \begin_layout Plain Layout
15827 1
15828 \end_layout
15829
15830 \end_inset
15831
15832 ] Indicates whether the float is already defined in the document class or
15833  if instead the \SpecialChar LaTeX
15834  package 
15835 \begin_inset Flex Code
15836 status collapsed
15837
15838 \begin_layout Plain Layout
15839 float
15840 \end_layout
15841
15842 \end_inset
15843
15844  needs to be loaded to define it on-the-fly.
15845  The default is 
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 0
15851 \end_layout
15852
15853 \end_inset
15854
15855 , which means: 
15856 \begin_inset Flex Code
15857 status collapsed
15858
15859 \begin_layout Plain Layout
15860 float
15861 \end_layout
15862
15863 \end_inset
15864
15865  is used.
15866  It should be set to 
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 1
15872 \end_layout
15873
15874 \end_inset
15875
15876  if the float is already defined by the \SpecialChar LaTeX
15877  document class.
15878 \end_layout
15879
15880 \begin_layout Description
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 ListCommand
15886 \end_layout
15887
15888 \end_inset
15889
15890  [
15891 \begin_inset Flex Code
15892 status collapsed
15893
15894 \begin_layout Plain Layout
15895 string
15896 \end_layout
15897
15898 \end_inset
15899
15900 =
15901 \begin_inset Quotes erd
15902 \end_inset
15903
15904
15905 \begin_inset Quotes erd
15906 \end_inset
15907
15908 ] The command used to generate a list of floats of this type; the leading
15909  `
15910 \backslash
15911 ' must be omitted.
15912  This 
15913 \emph on
15914 must
15915 \emph default
15916  be given if 
15917 \begin_inset Flex Code
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921 UsesFloatPkg
15922 \end_layout
15923
15924 \end_inset
15925
15926  is false, since there is no standard way to generate this command.
15927  It is ignored if 
15928 \begin_inset Flex Code
15929 status collapsed
15930
15931 \begin_layout Plain Layout
15932 UsesFloatPkg
15933 \end_layout
15934
15935 \end_inset
15936
15937  is true, since in that case there is a standard way to define the command.
15938 \end_layout
15939
15940 \begin_layout Description
15941 \begin_inset Flex Code
15942 status collapsed
15943
15944 \begin_layout Plain Layout
15945 ListName
15946 \end_layout
15947
15948 \end_inset
15949
15950  [
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 string
15956 \end_layout
15957
15958 \end_inset
15959
15960 =
15961 \begin_inset Quotes erd
15962 \end_inset
15963
15964
15965 \begin_inset Quotes erd
15966 \end_inset
15967
15968 ] A title for a list of floats of this kind (list of figures, tables, or
15969  whatever).
15970  It is used for the screen label within \SpecialChar LyX
15971 , it is used by \SpecialChar LaTeX
15972  for the title and
15973  it is used as the title in the XHTML output.
15974  It will be translated to the document language.
15975 \end_layout
15976
15977 \begin_layout Description
15978 \begin_inset Flex Code
15979 status collapsed
15980
15981 \begin_layout Plain Layout
15982 NumberWithin
15983 \end_layout
15984
15985 \end_inset
15986
15987  [
15988 \begin_inset Flex Code
15989 status collapsed
15990
15991 \begin_layout Plain Layout
15992 string
15993 \end_layout
15994
15995 \end_inset
15996
15997 =
15998 \begin_inset Quotes erd
15999 \end_inset
16000
16001
16002 \begin_inset Quotes erd
16003 \end_inset
16004
16005 ] This (optional) argument determines whether floats of this class will
16006  be numbered within some sectional unit of the document.
16007  For example, if 
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 NumberWithin
16013 \end_layout
16014
16015 \end_inset
16016
16017  is set to 
16018 \begin_inset Quotes eld
16019 \end_inset
16020
16021
16022 \begin_inset Flex Code
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026 chapter
16027 \end_layout
16028
16029 \end_inset
16030
16031
16032 \begin_inset Quotes erd
16033 \end_inset
16034
16035 , the floats will be numbered within chapters.
16036  
16037 \end_layout
16038
16039 \begin_layout Description
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 Placement
16045 \end_layout
16046
16047 \end_inset
16048
16049  [
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 string
16055 \end_layout
16056
16057 \end_inset
16058
16059 =
16060 \begin_inset Quotes erd
16061 \end_inset
16062
16063
16064 \begin_inset Quotes erd
16065 \end_inset
16066
16067 ] The default placement for the given class of floats.
16068  The string should be as in standard \SpecialChar LaTeX
16069
16070 \begin_inset Flex Code
16071 status collapsed
16072
16073 \begin_layout Plain Layout
16074 t
16075 \end_layout
16076
16077 \end_inset
16078
16079
16080 \begin_inset Flex Code
16081 status collapsed
16082
16083 \begin_layout Plain Layout
16084 b
16085 \end_layout
16086
16087 \end_inset
16088
16089
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094 p
16095 \end_layout
16096
16097 \end_inset
16098
16099  and 
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 h
16105 \end_layout
16106
16107 \end_inset
16108
16109  for top, bottom, page, and here, respectively.
16110 \begin_inset Foot
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 Note that the order of these letters in the string is irrelevant, like in
16115  \SpecialChar LaTeX
16116 .
16117 \end_layout
16118
16119 \end_inset
16120
16121  On top of that there is a new type, 
16122 \begin_inset Flex Code
16123 status collapsed
16124
16125 \begin_layout Plain Layout
16126 H
16127 \end_layout
16128
16129 \end_inset
16130
16131 , which does not really correspond to a float, since it means: put it 
16132 \begin_inset Quotes eld
16133 \end_inset
16134
16135 here
16136 \begin_inset Quotes erd
16137 \end_inset
16138
16139  and nowhere else.
16140  Note however that the 
16141 \begin_inset Flex Code
16142 status collapsed
16143
16144 \begin_layout Plain Layout
16145 H
16146 \end_layout
16147
16148 \end_inset
16149
16150  specifier is special and, because of implementation details, cannot be
16151  used in non-built in float types.
16152  If you do not understand what this means, just use 
16153 \begin_inset Quotes eld
16154 \end_inset
16155
16156
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 tbp
16162 \end_layout
16163
16164 \end_inset
16165
16166
16167 \begin_inset Quotes erd
16168 \end_inset
16169
16170 .
16171 \end_layout
16172
16173 \begin_layout Description
16174 \begin_inset Flex Code
16175 status collapsed
16176
16177 \begin_layout Plain Layout
16178 RefPrefix
16179 \end_layout
16180
16181 \end_inset
16182
16183  [
16184 \begin_inset Flex Code
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 string
16189 \end_layout
16190
16191 \end_inset
16192
16193 ] The prefix to use when creating labels referring to floats of this type.
16194  This allows the use of formatted references.
16195  Note that you can remove any 
16196 \begin_inset Flex Code
16197 status collapsed
16198
16199 \begin_layout Plain Layout
16200 RefPrefix
16201 \end_layout
16202
16203 \end_inset
16204
16205  set by a copied style by using the special value 
16206 \begin_inset Quotes eld
16207 \end_inset
16208
16209 OFF
16210 \begin_inset Quotes erd
16211 \end_inset
16212
16213 , which must be all caps.
16214 \end_layout
16215
16216 \begin_layout Description
16217 \begin_inset Flex Code
16218 status collapsed
16219
16220 \begin_layout Plain Layout
16221 Style
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 =
16237 \begin_inset Quotes erd
16238 \end_inset
16239
16240
16241 \begin_inset Quotes erd
16242 \end_inset
16243
16244 ] The style used when defining the float using 
16245 \begin_inset Flex Code
16246 status collapsed
16247
16248 \begin_layout Plain Layout
16249
16250 \backslash
16251 newfloat
16252 \end_layout
16253
16254 \end_inset
16255
16256 .
16257 \end_layout
16258
16259 \begin_layout Description
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 Type
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 
16288 \begin_inset Quotes eld
16289 \end_inset
16290
16291 type
16292 \begin_inset Quotes erd
16293 \end_inset
16294
16295  of the new class of floats, like program or algorithm.
16296  After the appropriate 
16297 \begin_inset Flex Code
16298 status collapsed
16299
16300 \begin_layout Plain Layout
16301
16302 \backslash
16303 newfloat
16304 \end_layout
16305
16306 \end_inset
16307
16308 , commands such as 
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313
16314 \backslash
16315 begin{program}
16316 \end_layout
16317
16318 \end_inset
16319
16320  or 
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325
16326 \backslash
16327 end{algorithm*}
16328 \end_layout
16329
16330 \end_inset
16331
16332  will be available.
16333 \end_layout
16334
16335 \begin_layout Description
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 UsesFloatPkg
16341 \end_layout
16342
16343 \end_inset
16344
16345  [
16346 \begin_inset Flex Code
16347 status collapsed
16348
16349 \begin_layout Plain Layout
16350 0
16351 \end_layout
16352
16353 \end_inset
16354
16355 ,
16356 \begin_inset space \thinspace{}
16357 \end_inset
16358
16359
16360 \begin_inset Flex Code
16361 status collapsed
16362
16363 \begin_layout Plain Layout
16364
16365 \emph on
16366 1
16367 \end_layout
16368
16369 \end_inset
16370
16371 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16372  package 
16373 \begin_inset Flex Code
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377 float
16378 \end_layout
16379
16380 \end_inset
16381
16382 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16383  itself.
16384 \end_layout
16385
16386 \begin_layout Standard
16387 Note that defining a float with type 
16388 \begin_inset Flex Code
16389 status collapsed
16390
16391 \begin_layout Plain Layout
16392
16393 \emph on
16394 type
16395 \end_layout
16396
16397 \end_inset
16398
16399  automatically defines the corresponding counter with name 
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404
16405 \emph on
16406 type
16407 \end_layout
16408
16409 \end_inset
16410
16411 .
16412 \end_layout
16413
16414 \begin_layout Subsection
16415 Flex insets and InsetLayout
16416 \begin_inset CommandInset label
16417 LatexCommand label
16418 name "subsec:Flex-insets-and"
16419
16420 \end_inset
16421
16422
16423 \end_layout
16424
16425 \begin_layout Standard
16426 Flex insets come in three different kinds: 
16427 \end_layout
16428
16429 \begin_layout Itemize
16430 character style (
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435 CharStyle
16436 \end_layout
16437
16438 \end_inset
16439
16440 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16441  commands as 
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446
16447 \backslash
16448 noun
16449 \end_layout
16450
16451 \end_inset
16452
16453  and 
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458
16459 \backslash
16460 code
16461 \end_layout
16462
16463 \end_inset
16464
16465 .
16466 \end_layout
16467
16468 \begin_layout Itemize
16469 user custom (
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 Custom
16475 \end_layout
16476
16477 \end_inset
16478
16479 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16480  code,
16481  footnote, and the like.
16482  An obvious example is an endnote inset, which is defined in the 
16483 \begin_inset Flex Code
16484 status collapsed
16485
16486 \begin_layout Plain Layout
16487 endnote
16488 \end_layout
16489
16490 \end_inset
16491
16492  module.
16493 \end_layout
16494
16495 \begin_layout Itemize
16496 XML elements (
16497 \begin_inset Flex Code
16498 status collapsed
16499
16500 \begin_layout Plain Layout
16501 Element
16502 \end_layout
16503
16504 \end_inset
16505
16506 ): For use with DocBook classes.
16507 \end_layout
16508
16509 \begin_layout Standard
16510 Flex insets are defined using the 
16511 \begin_inset Flex Code
16512 status collapsed
16513
16514 \begin_layout Plain Layout
16515 InsetLayout
16516 \end_layout
16517
16518 \end_inset
16519
16520  tag, which shall be explained in a moment.
16521 \end_layout
16522
16523 \begin_layout Standard
16524 The 
16525 \begin_inset Flex Code
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529 InsetLayout
16530 \end_layout
16531
16532 \end_inset
16533
16534  tag also serves another function: It can be used to customize the general
16535  layout of many different types of insets.
16536  Currently, 
16537 \begin_inset Flex Code
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541 InsetLayout
16542 \end_layout
16543
16544 \end_inset
16545
16546  can be used to customize the layout parameters for footnotes, marginal
16547  notes, note insets, \SpecialChar TeX
16548  code (ERT) insets, branches, listings, indexes, boxes,
16549  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16550 \end_layout
16551
16552 \begin_layout Standard
16553 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  definition must begin with a line of the form:
16564 \end_layout
16565
16566 \begin_layout LyX-Code
16567 InsetLayout <type>
16568 \end_layout
16569
16570 \begin_layout Standard
16571 Here 
16572 \begin_inset Flex Code
16573 status collapsed
16574
16575 \begin_layout Plain Layout
16576 <Type>
16577 \end_layout
16578
16579 \end_inset
16580
16581  indicates the inset whose layout is being defined, and here there are four
16582  cases.
16583 \end_layout
16584
16585 \begin_layout Enumerate
16586 The layout for a pre-existing inset is being modified.
16587  In this case, can be 
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 <Type>
16593 \end_layout
16594
16595 \end_inset
16596
16597  any one of the following: 
16598 \begin_inset Flex Code
16599 status collapsed
16600
16601 \begin_layout Plain Layout
16602 Algorithm
16603 \end_layout
16604
16605 \end_inset
16606
16607
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 Branch
16613 \end_layout
16614
16615 \end_inset
16616
16617
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 Box
16623 \end_layout
16624
16625 \end_inset
16626
16627
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 Box:shaded
16633 \end_layout
16634
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 Caption:Standard
16643 \end_layout
16644
16645 \end_inset
16646
16647
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 ERT
16653 \end_layout
16654
16655 \end_inset
16656
16657
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 Figure
16663 \end_layout
16664
16665 \end_inset
16666
16667
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 Foot
16673 \end_layout
16674
16675 \end_inset
16676
16677
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 Index
16683 \end_layout
16684
16685 \end_inset
16686
16687
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 Info
16693 \end_layout
16694
16695 \end_inset
16696
16697
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 Info:menu
16703 \end_layout
16704
16705 \end_inset
16706
16707
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712 Info:shortcut
16713 \end_layout
16714
16715 \end_inset
16716
16717
16718 \begin_inset Flex Code
16719 status collapsed
16720
16721 \begin_layout Plain Layout
16722 Info:shortcuts
16723 \end_layout
16724
16725 \end_inset
16726
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 Listings
16733 \end_layout
16734
16735 \end_inset
16736
16737
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 Marginal
16743 \end_layout
16744
16745 \end_inset
16746
16747
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 Note:Comment
16753 \end_layout
16754
16755 \end_inset
16756
16757
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762 Note:Note
16763 \end_layout
16764
16765 \end_inset
16766
16767
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 Note:Greyedout
16773 \end_layout
16774
16775 \end_inset
16776
16777
16778 \begin_inset Flex Code
16779 status collapsed
16780
16781 \begin_layout Plain Layout
16782 Table
16783 \end_layout
16784
16785 \end_inset
16786
16787 , or 
16788 \begin_inset Flex Code
16789 status collapsed
16790
16791 \begin_layout Plain Layout
16792 URL
16793 \end_layout
16794
16795 \end_inset
16796
16797 .
16798 \end_layout
16799
16800 \begin_layout Enumerate
16801 The layout for a Flex inset is being defined.
16802  In this case, 
16803 \begin_inset Flex Code
16804 status collapsed
16805
16806 \begin_layout Plain Layout
16807 <Type>
16808 \end_layout
16809
16810 \end_inset
16811
16812  must be of the form 
16813 \begin_inset Quotes eld
16814 \end_inset
16815
16816
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 Flex:<name>
16822 \end_layout
16823
16824 \end_inset
16825
16826
16827 \begin_inset Quotes erd
16828 \end_inset
16829
16830 , where 
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 name
16836 \end_layout
16837
16838 \end_inset
16839
16840  may be be any valid identifier not used by a pre-existing Flex inset.
16841  The identifier may include spaces, but in that case the whole thing must
16842  be wrapped in quotes.
16843  Note that the definition of a flex inset 
16844 \emph on
16845 must 
16846 \emph default
16847 also include a 
16848 \begin_inset Flex Code
16849 status collapsed
16850
16851 \begin_layout Plain Layout
16852 LyXType
16853 \end_layout
16854
16855 \end_inset
16856
16857  entry, declaring which type of inset it defines.
16858 \end_layout
16859
16860 \begin_layout Enumerate
16861 The layout for user specific branch is being defined.
16862  In this case, 
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 <Type>
16868 \end_layout
16869
16870 \end_inset
16871
16872  must be of the form 
16873 \begin_inset Quotes eld
16874 \end_inset
16875
16876
16877 \begin_inset Flex Code
16878 status collapsed
16879
16880 \begin_layout Plain Layout
16881 Branch:<name>
16882 \end_layout
16883
16884 \end_inset
16885
16886
16887 \begin_inset Quotes erd
16888 \end_inset
16889
16890 , where 
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 name
16896 \end_layout
16897
16898 \end_inset
16899
16900  may be be any valid identifier of branch defined in user's document.
16901  The identifier may include spaces, but in that case the whole thing must
16902  be wrapped in quotes.
16903  The main purpose of this feature is to allow \SpecialChar LaTeX
16904  wrapping around specific
16905  branches as user needs.
16906 \end_layout
16907
16908 \begin_layout Enumerate
16909 The layout of a user (or class) specific caption is being defined.
16910  In this case, 
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 <Type>
16916 \end_layout
16917
16918 \end_inset
16919
16920  must be of the form 
16921 \begin_inset Quotes eld
16922 \end_inset
16923
16924
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 Caption:<name>
16930 \end_layout
16931
16932 \end_inset
16933
16934
16935 \begin_inset Quotes erd
16936 \end_inset
16937
16938 , where 
16939 \begin_inset Flex Code
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943 name
16944 \end_layout
16945
16946 \end_inset
16947
16948  specifies the name of the caption as it appears in the menu.
16949  Have a look at the standard caption (
16950 \begin_inset Flex Code
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 Caption:Standard
16955 \end_layout
16956
16957 \end_inset
16958
16959 ), the specific captions of the KOMA-Script classes (
16960 \begin_inset Flex Code
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964 Caption:Above
16965 \end_layout
16966
16967 \end_inset
16968
16969
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 Caption:Below
16975 \end_layout
16976
16977 \end_inset
16978
16979 ) or the module 
16980 \family sans
16981 Multilingual
16982 \begin_inset space ~
16983 \end_inset
16984
16985 Captions 
16986 \family default
16987 (
16988 \begin_inset Flex Code
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 Caption:Bicaption
16993 \end_layout
16994
16995 \end_inset
16996
16997 ) for applications.
16998 \end_layout
16999
17000 \begin_layout Standard
17001 The 
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 InsetLayout
17007 \end_layout
17008
17009 \end_inset
17010
17011  definition can contain the following entries:
17012 \end_layout
17013
17014 \begin_layout Description
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 Argument
17020 \end_layout
17021
17022 \end_inset
17023
17024  [
17025 \begin_inset Flex Code
17026 status collapsed
17027
17028 \begin_layout Plain Layout
17029 int
17030 \end_layout
17031
17032 \end_inset
17033
17034 ] Defines argument number of a command\SpecialChar breakableslash
17035 environment associated with the current
17036  layout.
17037  The definition must end with 
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 EndArgument
17043 \end_layout
17044
17045 \end_inset
17046
17047 .
17048  See 
17049 \begin_inset CommandInset ref
17050 LatexCommand ref
17051 reference "subsec:Paragraph-Styles"
17052
17053 \end_inset
17054
17055  for details.
17056 \end_layout
17057
17058 \begin_layout Description
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063 BabelPreamble
17064 \end_layout
17065
17066 \end_inset
17067
17068  Preamble for changing language commands; see 
17069 \begin_inset CommandInset ref
17070 LatexCommand ref
17071 reference "subsec:I18n"
17072
17073 \end_inset
17074
17075 .
17076 \end_layout
17077
17078 \begin_layout Description
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 BgColor
17084 \end_layout
17085
17086 \end_inset
17087
17088  [
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 <name>
17094 \end_layout
17095
17096 \end_inset
17097
17098 ] The color for the inset's background.
17099  See 
17100 \begin_inset CommandInset ref
17101 LatexCommand ref
17102 reference "chap:Names-of-colors"
17103
17104 \end_inset
17105
17106  for a list of the available color names.
17107 \end_layout
17108
17109 \begin_layout Description
17110 \begin_inset Flex Code
17111 status collapsed
17112
17113 \begin_layout Plain Layout
17114 ContentAsLabel
17115 \end_layout
17116
17117 \end_inset
17118
17119  [
17120 \begin_inset Flex Code
17121 status collapsed
17122
17123 \begin_layout Plain Layout
17124
17125 \emph on
17126 0
17127 \end_layout
17128
17129 \end_inset
17130
17131 ,
17132 \begin_inset space \thinspace{}
17133 \end_inset
17134
17135
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 1
17141 \end_layout
17142
17143 \end_inset
17144
17145 ] Whether to use the content of the inset as the label, when the inset is
17146  closed.
17147  Default is false.
17148 \end_layout
17149
17150 \begin_layout Description
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 CopyStyle
17156 \end_layout
17157
17158 \end_inset
17159
17160  [
17161 \begin_inset Flex Code
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 <type>
17166 \end_layout
17167
17168 \end_inset
17169
17170 ] As with paragraph styles, see 
17171 \begin_inset CommandInset ref
17172 LatexCommand ref
17173 reference "subsec:Paragraph-Styles"
17174
17175 \end_inset
17176
17177 .
17178  Note that you need to specify the complete type, e.
17179 \begin_inset space \thinspace{}
17180 \end_inset
17181
17182 g.
17183 \begin_inset space ~
17184 \end_inset
17185
17186
17187 \begin_inset Flex Code
17188 status collapsed
17189
17190 \begin_layout Plain Layout
17191 CopyStyle Flex:<name>
17192 \end_layout
17193
17194 \end_inset
17195
17196 .
17197 \end_layout
17198
17199 \begin_layout Description
17200 \begin_inset Flex Code
17201 status collapsed
17202
17203 \begin_layout Plain Layout
17204 CustomPars
17205 \end_layout
17206
17207 \end_inset
17208
17209  [
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214
17215 \emph on
17216 0
17217 \end_layout
17218
17219 \end_inset
17220
17221 ,
17222 \begin_inset space \thinspace{}
17223 \end_inset
17224
17225
17226 \begin_inset Flex Code
17227 status collapsed
17228
17229 \begin_layout Plain Layout
17230 1
17231 \end_layout
17232
17233 \end_inset
17234
17235 ] Indicates whether the user may employ the Paragraph Settings dialog to
17236  customize the paragraph.
17237 \end_layout
17238
17239 \begin_layout Description
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 Decoration
17245 \end_layout
17246
17247 \end_inset
17248
17249  can be 
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 Classic
17255 \end_layout
17256
17257 \end_inset
17258
17259
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 Minimalistic
17265 \end_layout
17266
17267 \end_inset
17268
17269 , or 
17270 \begin_inset Flex Code
17271 status collapsed
17272
17273 \begin_layout Plain Layout
17274 Conglomerate
17275 \end_layout
17276
17277 \end_inset
17278
17279 , describing the rendering style used for the inset's frame and buttons.
17280  Footnotes generally use 
17281 \begin_inset Flex Code
17282 status collapsed
17283
17284 \begin_layout Plain Layout
17285 Classic
17286 \end_layout
17287
17288 \end_inset
17289
17290 , ERT insets generally 
17291 \begin_inset Flex Code
17292 status collapsed
17293
17294 \begin_layout Plain Layout
17295 Minimalistic
17296 \end_layout
17297
17298 \end_inset
17299
17300 , and character styles 
17301 \begin_inset Flex Code
17302 status collapsed
17303
17304 \begin_layout Plain Layout
17305 Conglomerate
17306 \end_layout
17307
17308 \end_inset
17309
17310 .
17311 \end_layout
17312
17313 \begin_layout Description
17314 \begin_inset Flex Code
17315 status collapsed
17316
17317 \begin_layout Plain Layout
17318 Display
17319 \end_layout
17320
17321 \end_inset
17322
17323  [
17324 \begin_inset Flex Code
17325 status collapsed
17326
17327 \begin_layout Plain Layout
17328 0
17329 \end_layout
17330
17331 \end_inset
17332
17333 ,
17334 \emph on
17335
17336 \begin_inset space \thinspace{}
17337 \end_inset
17338
17339
17340 \emph default
17341
17342 \begin_inset Flex Code
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346
17347 \emph on
17348 1
17349 \end_layout
17350
17351 \end_inset
17352
17353 ] Only useful if 
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358 LatexType
17359 \end_layout
17360
17361 \end_inset
17362
17363  is 
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368 Environment
17369 \end_layout
17370
17371 \end_inset
17372
17373 .
17374  Indicates whether the environment will stand on its own in the output or
17375  will appear inline with the surrounding text.
17376  If set to false, it is supposed that the \SpecialChar LaTeX
17377  environment ignores white space
17378  (including one newline character) after the 
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383
17384 \backslash
17385 begin{
17386 \emph on
17387 LatexName
17388 \emph default
17389 }
17390 \end_layout
17391
17392 \end_inset
17393
17394  and 
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399
17400 \backslash
17401 end{
17402 \emph on
17403 LatexName
17404 \emph default
17405 }
17406 \end_layout
17407
17408 \end_inset
17409
17410  tags.
17411  Default is true.
17412 \end_layout
17413
17414 \begin_layout Description
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419 End
17420 \end_layout
17421
17422 \end_inset
17423
17424  Required at the end of the 
17425 \begin_inset Flex Code
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429 InsetLayout
17430 \end_layout
17431
17432 \end_inset
17433
17434  declarations.
17435 \end_layout
17436
17437 \begin_layout Description
17438 \begin_inset Flex Code
17439 status collapsed
17440
17441 \begin_layout Plain Layout
17442 Font
17443 \end_layout
17444
17445 \end_inset
17446
17447  The font used for both the text body 
17448 \emph on
17449 and
17450 \emph default
17451  the label.
17452  See 
17453 \begin_inset CommandInset ref
17454 LatexCommand ref
17455 reference "subsec:Font-description"
17456
17457 \end_inset
17458
17459 .
17460  Note that defining this font automatically defines the 
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 LabelFont
17466 \end_layout
17467
17468 \end_inset
17469
17470  to the same value, so define this first and define 
17471 \begin_inset Flex Code
17472 status collapsed
17473
17474 \begin_layout Plain Layout
17475 LabelFont
17476 \end_layout
17477
17478 \end_inset
17479
17480  later if you want them to be different.
17481 \end_layout
17482
17483 \begin_layout Description
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488 FixedWidthPreambleEncoding
17489 \end_layout
17490
17491 \end_inset
17492
17493  [
17494 \begin_inset Flex Code
17495 status collapsed
17496
17497 \begin_layout Plain Layout
17498
17499 \emph on
17500 0
17501 \end_layout
17502
17503 \end_inset
17504
17505 ,
17506 \begin_inset space \thinspace{}
17507 \end_inset
17508
17509
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 1
17515 \end_layout
17516
17517 \end_inset
17518
17519 ] Force a fixed width encoding for the translated contents of 
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524 BabelPreamble
17525 \end_layout
17526
17527 \end_inset
17528
17529  and 
17530 \begin_inset Flex Code
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534 LangPreamble
17535 \end_layout
17536
17537 \end_inset
17538
17539  code generated by this layout.
17540  This is needed for special \SpecialChar LaTeX
17541 -packages like 
17542 \family typewriter
17543 listings
17544 \family default
17545  that do not work with variable width encodings such as 
17546 \family sans
17547 utf8
17548 \family default
17549 .
17550  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
17551  backends such as Xe\SpecialChar TeX
17552  or
17553  Lua\SpecialChar TeX
17554  are used.
17555 \end_layout
17556
17557 \begin_layout Description
17558 \begin_inset Flex Code
17559 status collapsed
17560
17561 \begin_layout Plain Layout
17562 ForceLocalFontSwitch
17563 \end_layout
17564
17565 \end_inset
17566
17567  [
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572
17573 \emph on
17574 0
17575 \end_layout
17576
17577 \end_inset
17578
17579 ,
17580 \begin_inset space \thinspace{}
17581 \end_inset
17582
17583
17584 \begin_inset Flex Code
17585 status collapsed
17586
17587 \begin_layout Plain Layout
17588 1
17589 \end_layout
17590
17591 \end_inset
17592
17593 ] When using babel, always use a local font switch (
17594 \begin_inset Flex Code
17595 status collapsed
17596
17597 \begin_layout Plain Layout
17598
17599 \backslash
17600 foreignlanguage
17601 \end_layout
17602
17603 \end_inset
17604
17605 ), never a global one (such as 
17606 \begin_inset Flex Code
17607 status collapsed
17608
17609 \begin_layout Plain Layout
17610
17611 \backslash
17612 selectlanguage
17613 \end_layout
17614
17615 \end_inset
17616
17617 ).
17618 \end_layout
17619
17620 \begin_layout Description
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 ForceLTR
17626 \end_layout
17627
17628 \end_inset
17629
17630  [
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635
17636 \emph on
17637 0
17638 \end_layout
17639
17640 \end_inset
17641
17642 ,
17643 \begin_inset space \thinspace{}
17644 \end_inset
17645
17646
17647 \begin_inset Flex Code
17648 status collapsed
17649
17650 \begin_layout Plain Layout
17651 1
17652 \end_layout
17653
17654 \end_inset
17655
17656 ] Force the 
17657 \begin_inset Quotes eld
17658 \end_inset
17659
17660 latex
17661 \begin_inset Quotes erd
17662 \end_inset
17663
17664  language, leading to Left-to-Right (Latin) output, e.
17665 \begin_inset space \thinspace{}
17666 \end_inset
17667
17668 g.
17669 \begin_inset space \space{}
17670 \end_inset
17671
17672 in \SpecialChar TeX
17673  code or URL.
17674  A kludge.
17675 \end_layout
17676
17677 \begin_layout Description
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 ForceOwnlines
17683 \end_layout
17684
17685 \end_inset
17686
17687  [
17688 \begin_inset Flex Code
17689 status collapsed
17690
17691 \begin_layout Plain Layout
17692
17693 \emph on
17694 0
17695 \end_layout
17696
17697 \end_inset
17698
17699 ,
17700 \begin_inset space \thinspace{}
17701 \end_inset
17702
17703
17704 \begin_inset Flex Code
17705 status collapsed
17706
17707 \begin_layout Plain Layout
17708 1
17709 \end_layout
17710
17711 \end_inset
17712
17713 ] Force a a line break in the \SpecialChar LaTeX
17714  output before the inset starts and after
17715  the inset ends.
17716  This assures the inset itself is output on its own lines, for parsing purposes.
17717 \end_layout
17718
17719 \begin_layout Description
17720 \begin_inset Flex Code
17721 status collapsed
17722
17723 \begin_layout Plain Layout
17724 ForcePlain
17725 \end_layout
17726
17727 \end_inset
17728
17729  [
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734
17735 \emph on
17736 0
17737 \end_layout
17738
17739 \end_inset
17740
17741 ,
17742 \begin_inset space \thinspace{}
17743 \end_inset
17744
17745
17746 \begin_inset Flex Code
17747 status collapsed
17748
17749 \begin_layout Plain Layout
17750 1
17751 \end_layout
17752
17753 \end_inset
17754
17755 ] Indicates whether the 
17756 \begin_inset Flex Code
17757 status collapsed
17758
17759 \begin_layout Plain Layout
17760 PlainLayout
17761 \end_layout
17762
17763 \end_inset
17764
17765  should be used or, instead, the user can change the paragraph style used
17766  in the inset.
17767  Default is false.
17768 \end_layout
17769
17770 \begin_layout Description
17771 \begin_inset Flex Code
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 FreeSpacing
17776 \end_layout
17777
17778 \end_inset
17779
17780  [
17781 \begin_inset Flex Code
17782 status collapsed
17783
17784 \begin_layout Plain Layout
17785
17786 \emph on
17787 0
17788 \end_layout
17789
17790 \end_inset
17791
17792 ,
17793 \begin_inset space \thinspace{}
17794 \end_inset
17795
17796
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 1
17802 \end_layout
17803
17804 \end_inset
17805
17806 ] As with paragraph styles, see 
17807 \begin_inset CommandInset ref
17808 LatexCommand ref
17809 reference "subsec:Paragraph-Styles"
17810
17811 \end_inset
17812
17813 .
17814 \end_layout
17815
17816 \begin_layout Description
17817 \begin_inset Flex Code
17818 status collapsed
17819
17820 \begin_layout Plain Layout
17821 HTML*
17822 \end_layout
17823
17824 \end_inset
17825
17826  These tags control the XHTML output.
17827  See 
17828 \begin_inset CommandInset ref
17829 LatexCommand ref
17830 reference "sec:Tags-for-XHTML"
17831
17832 \end_inset
17833
17834 .
17835 \end_layout
17836
17837 \begin_layout Description
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 InToc
17843 \end_layout
17844
17845 \end_inset
17846
17847  [
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852
17853 \emph on
17854 0
17855 \end_layout
17856
17857 \end_inset
17858
17859 ,
17860 \begin_inset space \thinspace{}
17861 \end_inset
17862
17863
17864 \begin_inset Flex Code
17865 status collapsed
17866
17867 \begin_layout Plain Layout
17868 1
17869 \end_layout
17870
17871 \end_inset
17872
17873 ] Whether to include the contents of this inset in the strings generated
17874  for the `Outline' pane.
17875  One would not, for example, want the content of a footnote in a section
17876  header to be included in the TOC displayed in the outline, but one would
17877  normally want the content of a character style displayed.
17878  Default is false: not to include.
17879 \end_layout
17880
17881 \begin_layout Description
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 KeepEmpty
17887 \end_layout
17888
17889 \end_inset
17890
17891  [
17892 \emph on
17893
17894 \begin_inset Flex Code
17895 status collapsed
17896
17897 \begin_layout Plain Layout
17898 0
17899 \end_layout
17900
17901 \end_inset
17902
17903
17904 \emph default
17905 ,
17906 \begin_inset space \thinspace{}
17907 \end_inset
17908
17909
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 1
17915 \end_layout
17916
17917 \end_inset
17918
17919 ] As with paragraph styles, see 
17920 \begin_inset CommandInset ref
17921 LatexCommand ref
17922 reference "subsec:Paragraph-Styles"
17923
17924 \end_inset
17925
17926 .
17927 \end_layout
17928
17929 \begin_layout Description
17930 \begin_inset Flex Code
17931 status collapsed
17932
17933 \begin_layout Plain Layout
17934 LabelFont
17935 \end_layout
17936
17937 \end_inset
17938
17939  The font used for the label.
17940  See 
17941 \begin_inset CommandInset ref
17942 LatexCommand ref
17943 reference "subsec:Font-description"
17944
17945 \end_inset
17946
17947 .
17948  Note that this definition can never appear before 
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953 Font
17954 \end_layout
17955
17956 \end_inset
17957
17958 , lest it be ineffective.
17959 \end_layout
17960
17961 \begin_layout Description
17962 \begin_inset Flex Code
17963 status collapsed
17964
17965 \begin_layout Plain Layout
17966 LabelString
17967 \end_layout
17968
17969 \end_inset
17970
17971  [
17972 \begin_inset Flex Code
17973 status collapsed
17974
17975 \begin_layout Plain Layout
17976 string
17977 \end_layout
17978
17979 \end_inset
17980
17981 =
17982 \begin_inset Quotes erd
17983 \end_inset
17984
17985
17986 \begin_inset Quotes erd
17987 \end_inset
17988
17989 ] What will be displayed on the button or elsewhere as the inset label.
17990  Some inset types (
17991 \begin_inset Flex Code
17992 status collapsed
17993
17994 \begin_layout Plain Layout
17995 \SpecialChar TeX
17996  code
17997 \end_layout
17998
17999 \end_inset
18000
18001  and 
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 Branch
18007 \end_layout
18008
18009 \end_inset
18010
18011 ) modify this label on the fly.
18012 \end_layout
18013
18014 \begin_layout Description
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 LangPreamble
18020 \end_layout
18021
18022 \end_inset
18023
18024  Language dependent preamble; see 
18025 \begin_inset CommandInset ref
18026 LatexCommand ref
18027 reference "subsec:I18n"
18028
18029 \end_inset
18030
18031 .
18032 \end_layout
18033
18034 \begin_layout Description
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 LatexName
18040 \end_layout
18041
18042 \end_inset
18043
18044  [
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 <name>
18050 \end_layout
18051
18052 \end_inset
18053
18054 ] The name of the corresponding \SpecialChar LaTeX
18055  stuff.
18056  Either the environment or command name.
18057 \end_layout
18058
18059 \begin_layout Description
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 LatexParam
18065 \end_layout
18066
18067 \end_inset
18068
18069  [
18070 \begin_inset Flex Code
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074 <parameter>
18075 \end_layout
18076
18077 \end_inset
18078
18079 ] The optional parameter for the corresponding 
18080 \begin_inset Flex Code
18081 status collapsed
18082
18083 \begin_layout Plain Layout
18084 LatexName
18085 \end_layout
18086
18087 \end_inset
18088
18089  stuff, including possible bracket pairs like 
18090 \begin_inset Flex Code
18091 status collapsed
18092
18093 \begin_layout Plain Layout
18094 []
18095 \end_layout
18096
18097 \end_inset
18098
18099 .
18100  This parameter cannot be changed from within \SpecialChar LyX
18101  (use 
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 Argument
18107 \end_layout
18108
18109 \end_inset
18110
18111  for customizable parameters).
18112  It will be output as is after all \SpecialChar LaTeX
18113  
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 Argument
18119 \end_layout
18120
18121 \end_inset
18122
18123 s.
18124 \end_layout
18125
18126 \begin_layout Description
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131 LatexType
18132 \end_layout
18133
18134 \end_inset
18135
18136  [
18137 \begin_inset Flex Code
18138 status collapsed
18139
18140 \begin_layout Plain Layout
18141 Command, Environment, None
18142 \end_layout
18143
18144 \end_inset
18145
18146 ] How the style should be translated into \SpecialChar LaTeX
18147 .
18148 \begin_inset Foot
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 LatexType
18157 \end_layout
18158
18159 \end_inset
18160
18161  is perhaps a bit misleading, since these rules apply to SGML classes too.
18162  Visit the SGML class files for specific examples.
18163 \end_layout
18164
18165 \end_inset
18166
18167
18168 \begin_inset Separator parbreak
18169 \end_inset
18170
18171
18172 \end_layout
18173
18174 \begin_deeper
18175 \begin_layout Description
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 None
18181 \end_layout
18182
18183 \end_inset
18184
18185  means nothing special
18186 \end_layout
18187
18188 \begin_layout Description
18189 \begin_inset Flex Code
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 Command
18194 \end_layout
18195
18196 \end_inset
18197
18198  means 
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203
18204 \backslash
18205
18206 \emph on
18207 LatexName
18208 \emph default
18209 {\SpecialChar ldots
18210 }
18211 \end_layout
18212
18213 \end_inset
18214
18215
18216 \end_layout
18217
18218 \begin_layout Description
18219 \begin_inset Flex Code
18220 status collapsed
18221
18222 \begin_layout Plain Layout
18223 Environment
18224 \end_layout
18225
18226 \end_inset
18227
18228  means 
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233
18234 \backslash
18235 begin{
18236 \emph on
18237 LatexName
18238 \emph default
18239 }\SpecialChar ldots
18240
18241 \backslash
18242 end{
18243 \emph on
18244 LatexName
18245 \emph default
18246 }
18247 \end_layout
18248
18249 \end_inset
18250
18251
18252 \end_layout
18253
18254 \begin_layout Standard
18255 Putting the last few things together, the \SpecialChar LaTeX
18256  output will be either: 
18257 \end_layout
18258
18259 \begin_layout LyX-Code
18260
18261 \backslash
18262 LatexName[LatexParam]{\SpecialChar ldots
18263 }
18264 \end_layout
18265
18266 \begin_layout Standard
18267 or: 
18268 \end_layout
18269
18270 \begin_layout LyX-Code
18271
18272 \backslash
18273 begin{LatexName}[LatexParam] \SpecialChar ldots
18274  
18275 \backslash
18276 end{LatexName}
18277 \end_layout
18278
18279 \begin_layout Standard
18280 depending upon the \SpecialChar LaTeX
18281  type.
18282 \end_layout
18283
18284 \end_deeper
18285 \begin_layout Description
18286 \begin_inset Flex Code
18287 status collapsed
18288
18289 \begin_layout Plain Layout
18290 LeftDelim
18291 \end_layout
18292
18293 \end_inset
18294
18295  [
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 string
18301 \end_layout
18302
18303 \end_inset
18304
18305 ] A string that is put at the beginning of the layout content.
18306  A line break in the output can be indicated by 
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 <br/>
18312 \end_layout
18313
18314 \end_inset
18315
18316 .
18317 \end_layout
18318
18319 \begin_layout Description
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324 LyxType
18325 \end_layout
18326
18327 \end_inset
18328
18329  Can be 
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 charstyle
18335 \end_layout
18336
18337 \end_inset
18338
18339
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 custom
18345 \end_layout
18346
18347 \end_inset
18348
18349
18350 \begin_inset Flex Code
18351 status collapsed
18352
18353 \begin_layout Plain Layout
18354 element
18355 \end_layout
18356
18357 \end_inset
18358
18359  or 
18360 \begin_inset Flex Code
18361 status collapsed
18362
18363 \begin_layout Plain Layout
18364 end
18365 \end_layout
18366
18367 \end_inset
18368
18369  (indicating a dummy definition ending definitions of charstyles, etc).
18370  This entry is required in and is only meaningful for Flex insets.
18371  Among other things, it determines on which menu this inset will appear.
18372  Setting 
18373 \begin_inset Flex Code
18374 status collapsed
18375
18376 \begin_layout Plain Layout
18377 LyXType
18378 \end_layout
18379
18380 \end_inset
18381
18382  to 
18383 \begin_inset Flex Code
18384 status collapsed
18385
18386 \begin_layout Plain Layout
18387 charstyle
18388 \end_layout
18389
18390 \end_inset
18391
18392  will automatically set 
18393 \begin_inset Flex Code
18394 status collapsed
18395
18396 \begin_layout Plain Layout
18397 MultiPar
18398 \end_layout
18399
18400 \end_inset
18401
18402  to false.
18403  
18404 \begin_inset Flex Code
18405 status collapsed
18406
18407 \begin_layout Plain Layout
18408 MultiPar
18409 \end_layout
18410
18411 \end_inset
18412
18413  can be set to true for 
18414 \begin_inset Flex Code
18415 status collapsed
18416
18417 \begin_layout Plain Layout
18418 charstyle
18419 \end_layout
18420
18421 \end_inset
18422
18423  insets by setting it 
18424 \emph on
18425 after
18426 \emph default
18427  you set the 
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432 LyXType
18433 \end_layout
18434
18435 \end_inset
18436
18437 .
18438 \end_layout
18439
18440 \begin_layout Description
18441 \begin_inset Flex Code
18442 status collapsed
18443
18444 \begin_layout Plain Layout
18445 MultiPar
18446 \end_layout
18447
18448 \end_inset
18449
18450  [
18451 \begin_inset Flex Code
18452 status collapsed
18453
18454 \begin_layout Plain Layout
18455
18456 \emph on
18457 0
18458 \end_layout
18459
18460 \end_inset
18461
18462 ,
18463 \begin_inset space \thinspace{}
18464 \end_inset
18465
18466
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471 1
18472 \end_layout
18473
18474 \end_inset
18475
18476 ] Whether multiple paragraphs are permitted in this inset.
18477  This will also set 
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 CustomPars
18483 \end_layout
18484
18485 \end_inset
18486
18487  to the same value and 
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 ForcePlain
18493 \end_layout
18494
18495 \end_inset
18496
18497  to the opposite value.
18498  These can be reset to other values, if they are used 
18499 \emph on
18500 after
18501 \emph default
18502  
18503 \begin_inset Flex Code
18504 status collapsed
18505
18506 \begin_layout Plain Layout
18507 MultiPar
18508 \end_layout
18509
18510 \end_inset
18511
18512 .
18513  Default is true.
18514 \end_layout
18515
18516 \begin_layout Description
18517 \begin_inset Flex Code
18518 status collapsed
18519
18520 \begin_layout Plain Layout
18521 NeedProtect
18522 \end_layout
18523
18524 \end_inset
18525
18526  [
18527 \begin_inset Flex Code
18528 status collapsed
18529
18530 \begin_layout Plain Layout
18531
18532 \emph on
18533 0
18534 \end_layout
18535
18536 \end_inset
18537
18538 ,
18539 \begin_inset space \thinspace{}
18540 \end_inset
18541
18542
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 1
18548 \end_layout
18549
18550 \end_inset
18551
18552 ] Whether fragile commands in this inset should be 
18553 \begin_inset Flex Code
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557
18558 \backslash
18559 protect
18560 \end_layout
18561
18562 \end_inset
18563
18564 'ed.
18565  (Note: This is 
18566 \emph on
18567 not
18568 \emph default
18569  whether the command should itself be protected.) Default is false.
18570 \end_layout
18571
18572 \begin_layout Description
18573 \begin_inset Flex Code
18574 status collapsed
18575
18576 \begin_layout Plain Layout
18577 NoInsetLayout
18578 \end_layout
18579
18580 \end_inset
18581
18582  [
18583 \begin_inset Flex Code
18584 status collapsed
18585
18586 \begin_layout Plain Layout
18587 <layout>
18588 \end_layout
18589
18590 \end_inset
18591
18592 ] Deletes an existing 
18593 \begin_inset Flex Code
18594 status collapsed
18595
18596 \begin_layout Plain Layout
18597 InsetLayout
18598 \end_layout
18599
18600 \end_inset
18601
18602 .
18603 \end_layout
18604
18605 \begin_layout Description
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610 ObsoletedBy
18611 \end_layout
18612
18613 \end_inset
18614
18615  [
18616 \begin_inset Flex Code
18617 status collapsed
18618
18619 \begin_layout Plain Layout
18620 <layout>
18621 \end_layout
18622
18623 \end_inset
18624
18625 ] Name of an 
18626 \begin_inset Flex Code
18627 status collapsed
18628
18629 \begin_layout Plain Layout
18630 InsetLayout
18631 \end_layout
18632
18633 \end_inset
18634
18635  that has replaced this 
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  This is used to rename an 
18647 \begin_inset Flex Code
18648 status collapsed
18649
18650 \begin_layout Plain Layout
18651 InsetLayout
18652 \end_layout
18653
18654 \end_inset
18655
18656 , while keeping backward compatibility.
18657 \end_layout
18658
18659 \begin_layout Description
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 ParbreakIsNewline
18665 \end_layout
18666
18667 \end_inset
18668
18669  [
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674
18675 \emph on
18676 0
18677 \end_layout
18678
18679 \end_inset
18680
18681 ,
18682 \begin_inset space \thinspace{}
18683 \end_inset
18684
18685
18686 \begin_inset Flex Code
18687 status collapsed
18688
18689 \begin_layout Plain Layout
18690 1
18691 \end_layout
18692
18693 \end_inset
18694
18695 ] As with paragraph styles, see 
18696 \begin_inset CommandInset ref
18697 LatexCommand ref
18698 reference "subsec:Paragraph-Styles"
18699
18700 \end_inset
18701
18702 .
18703  Default is false.
18704 \end_layout
18705
18706 \begin_layout Description
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 PassThru
18712 \end_layout
18713
18714 \end_inset
18715
18716  [
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721
18722 \emph on
18723 0
18724 \end_layout
18725
18726 \end_inset
18727
18728 ,
18729 \begin_inset space \thinspace{}
18730 \end_inset
18731
18732
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 1
18738 \end_layout
18739
18740 \end_inset
18741
18742 ] As with paragraph styles, see 
18743 \begin_inset CommandInset ref
18744 LatexCommand ref
18745 reference "subsec:Paragraph-Styles"
18746
18747 \end_inset
18748
18749 .
18750  Default is false.
18751 \end_layout
18752
18753 \begin_layout Description
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 Preamble
18759 \end_layout
18760
18761 \end_inset
18762
18763  As with paragraph styles, see 
18764 \begin_inset CommandInset ref
18765 LatexCommand ref
18766 reference "subsec:Paragraph-Styles"
18767
18768 \end_inset
18769
18770 .
18771 \end_layout
18772
18773 \begin_layout Description
18774 \begin_inset Flex Code
18775 status collapsed
18776
18777 \begin_layout Plain Layout
18778 RefPrefix
18779 \end_layout
18780
18781 \end_inset
18782
18783  [
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 string
18789 \end_layout
18790
18791 \end_inset
18792
18793 ] The prefix to use when creating labels referring to insets of this type.
18794  This allows the use of formatted references.
18795 \end_layout
18796
18797 \begin_layout Description
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 Requires
18803 \end_layout
18804
18805 \end_inset
18806
18807  [
18808 \begin_inset Flex Code
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 string
18813 \end_layout
18814
18815 \end_inset
18816
18817 ] As with paragraph styles, see 
18818 \begin_inset CommandInset ref
18819 LatexCommand ref
18820 reference "subsec:Paragraph-Styles"
18821
18822 \end_inset
18823
18824 .
18825 \end_layout
18826
18827 \begin_layout Description
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 ResetArgs
18833 \end_layout
18834
18835 \end_inset
18836
18837  [
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842
18843 \emph on
18844 0
18845 \end_layout
18846
18847 \end_inset
18848
18849 ,
18850 \begin_inset space \thinspace{}
18851 \end_inset
18852
18853
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 1
18859 \end_layout
18860
18861 \end_inset
18862
18863 ] Resets the \SpecialChar LaTeX
18864  arguments of this layout (as defined via the 
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 Argument
18870 \end_layout
18871
18872 \end_inset
18873
18874  tag).
18875  This is useful if you have copied a style via 
18876 \begin_inset Flex Code
18877 status collapsed
18878
18879 \begin_layout Plain Layout
18880 CopyStyle
18881 \end_layout
18882
18883 \end_inset
18884
18885 , but you do not want to inherit its (required and optional) arguments.
18886 \end_layout
18887
18888 \begin_layout Description
18889 \begin_inset Flex Code
18890 status collapsed
18891
18892 \begin_layout Plain Layout
18893 ResetsFont
18894 \end_layout
18895
18896 \end_inset
18897
18898  [
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 0
18904 \end_layout
18905
18906 \end_inset
18907
18908 ,
18909 \begin_inset space \thinspace{}
18910 \end_inset
18911
18912
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917
18918 \emph on
18919 1
18920 \end_layout
18921
18922 \end_inset
18923
18924 ] Whether this inset should use the font of its surrounding environment
18925  or uses its own.
18926  Default is false: use the font of the surrounding environment.
18927 \end_layout
18928
18929 \begin_layout Description
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 RightDelim
18935 \end_layout
18936
18937 \end_inset
18938
18939  [
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 string
18945 \end_layout
18946
18947 \end_inset
18948
18949 ] A string that is put at the end of the layout content.
18950  A line break in the output can be indicated by 
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 <br/>
18956 \end_layout
18957
18958 \end_inset
18959
18960 .
18961 \end_layout
18962
18963 \begin_layout Description
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 Spellcheck
18969 \end_layout
18970
18971 \end_inset
18972
18973  [
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 0
18979 \end_layout
18980
18981 \end_inset
18982
18983 ,
18984 \begin_inset space \thinspace{}
18985 \end_inset
18986
18987
18988 \begin_inset Flex Code
18989 status collapsed
18990
18991 \begin_layout Plain Layout
18992
18993 \emph on
18994 1
18995 \end_layout
18996
18997 \end_inset
18998
18999 ] Allow spell-checking the contents of this inset.
19000  Default is true.
19001 \end_layout
19002
19003 \begin_layout Subsection
19004 Counters
19005 \begin_inset CommandInset label
19006 LatexCommand label
19007 name "subsec:Counters"
19008
19009 \end_inset
19010
19011
19012 \end_layout
19013
19014 \begin_layout Standard
19015 It is necessary to define the counters (
19016 \begin_inset Flex Noun
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 chapter
19021 \end_layout
19022
19023 \end_inset
19024
19025
19026 \begin_inset Flex Noun
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 figure
19031 \end_layout
19032
19033 \end_inset
19034
19035 , \SpecialChar ldots
19036 ) in the text class itself.
19037  The standard counters are defined in the file 
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 stdcounters.inc
19043 \end_layout
19044
19045 \end_inset
19046
19047 , so you may have to do no more than add
19048 \end_layout
19049
19050 \begin_layout LyX-Code
19051 Input stdcounters.inc
19052 \end_layout
19053
19054 \begin_layout Standard
19055 to your layout file to get them to work.
19056  But if you want to define custom counters, then you can do so.
19057  The counter declaration must begin with:
19058 \end_layout
19059
19060 \begin_layout LyX-Code
19061 Counter CounterName
19062 \end_layout
19063
19064 \begin_layout Standard
19065 where of course `
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 CounterName
19071 \end_layout
19072
19073 \end_inset
19074
19075 ' is replaced by the name of the counter.
19076  And it must end with 
19077 \begin_inset Quotes eld
19078 \end_inset
19079
19080
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 End
19086 \end_layout
19087
19088 \end_inset
19089
19090
19091 \begin_inset Quotes erd
19092 \end_inset
19093
19094 .
19095  The following parameters can also be used:
19096 \end_layout
19097
19098 \begin_layout Description
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 InitialValue
19104 \end_layout
19105
19106 \end_inset
19107
19108  [
19109 \begin_inset Flex Code
19110 status collapsed
19111
19112 \begin_layout Plain Layout
19113 int=1
19114 \end_layout
19115
19116 \end_inset
19117
19118 ] Sets the initial value for the counter, to which it will be reset whenever
19119  that happens.
19120  Normally, one will want the default, 1.
19121 \end_layout
19122
19123 \begin_layout Description
19124 \begin_inset Flex Code
19125 status collapsed
19126
19127 \begin_layout Plain Layout
19128 LabelString
19129 \end_layout
19130
19131 \end_inset
19132
19133  [
19134 \begin_inset Flex Code
19135 status collapsed
19136
19137 \begin_layout Plain Layout
19138 string
19139 \end_layout
19140
19141 \end_inset
19142
19143 =
19144 \begin_inset Quotes erd
19145 \end_inset
19146
19147
19148 \begin_inset Quotes erd
19149 \end_inset
19150
19151 ] When defined, this string defines how the counter is displayed.
19152  Setting this value sets 
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 LabelStringAppendix
19158 \end_layout
19159
19160 \end_inset
19161
19162  to the same value.
19163  The following special constructs can be used in the string:
19164 \begin_inset Separator parbreak
19165 \end_inset
19166
19167
19168 \end_layout
19169
19170 \begin_deeper
19171 \begin_layout Itemize
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176
19177 \backslash
19178 thecounter
19179 \end_layout
19180
19181 \end_inset
19182
19183  will be replaced by the expansion of the 
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 LabelString
19189 \end_layout
19190
19191 \end_inset
19192
19193  (or 
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 LabelStringAppendix
19199 \end_layout
19200
19201 \end_inset
19202
19203 ) of the counter 
19204 \begin_inset Flex Code
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208 counter
19209 \end_layout
19210
19211 \end_inset
19212
19213 .
19214  
19215 \end_layout
19216
19217 \begin_layout Itemize
19218 counter values can be expressed using \SpecialChar LaTeX
19219 -like macros
19220 \begin_inset Newline newline
19221 \end_inset
19222
19223
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228
19229 \backslash
19230
19231 \emph on
19232 numbertype
19233 \emph default
19234 {
19235 \emph on
19236 counter
19237 \emph default
19238 }
19239 \end_layout
19240
19241 \end_inset
19242
19243 , where 
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248
19249 \emph on
19250 numbertype
19251 \end_layout
19252
19253 \end_inset
19254
19255  can be:
19256 \begin_inset Foot
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260
19261 \family roman
19262 \series medium
19263 \shape up
19264 \size normal
19265 \emph off
19266 \bar no
19267 \noun off
19268 \color none
19269 Actually, the situation is a bit more complicated: any
19270 \family default
19271 \series default
19272 \shape default
19273 \emph default
19274 \bar default
19275  
19276 \size default
19277 \emph on
19278 \noun default
19279 \color inherit
19280 numbertype
19281 \family roman
19282 \series medium
19283 \shape up
19284 \size normal
19285 \emph off
19286 \bar no
19287 \noun off
19288  other than those described below will produce arabic numerals.
19289  It would not be surprising to see this change in the future.
19290 \end_layout
19291
19292 \end_inset
19293
19294  
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 arabic
19300 \end_layout
19301
19302 \end_inset
19303
19304 : 1, 2, 3,\SpecialChar ldots
19305
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 alph
19311 \end_layout
19312
19313 \end_inset
19314
19315  for lower-case letters: a, b, c, \SpecialChar ldots
19316
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 Alph
19322 \end_layout
19323
19324 \end_inset
19325
19326  for upper-case letters: A, B, C, \SpecialChar ldots
19327
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 roman
19333 \end_layout
19334
19335 \end_inset
19336
19337  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19338
19339 \begin_inset Flex Code
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 Roman
19344 \end_layout
19345
19346 \end_inset
19347
19348  for upper-case roman numerals: I, II, III\SpecialChar ldots
19349
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 hebrew
19355 \end_layout
19356
19357 \end_inset
19358
19359  for hebrew numerals.
19360 \end_layout
19361
19362 \end_deeper
19363 \begin_layout Standard
19364 If LabelString is not defined, a default value is constructed as follows:
19365  if the counter has a master counter 
19366 \begin_inset Flex Code
19367 status collapsed
19368
19369 \begin_layout Plain Layout
19370 master
19371 \end_layout
19372
19373 \end_inset
19374
19375  (defined via 
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 Within
19381 \end_layout
19382
19383 \end_inset
19384
19385 ), the string
19386 \begin_inset Newline newline
19387 \end_inset
19388
19389
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394
19395 \backslash
19396 themaster.
19397 \backslash
19398 arabic{counter}
19399 \end_layout
19400
19401 \end_inset
19402
19403  is used; otherwise the string 
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408
19409 \backslash
19410 arabic{counter}
19411 \end_layout
19412
19413 \end_inset
19414
19415  is used.
19416 \end_layout
19417
19418 \begin_layout Description
19419 \begin_inset Flex Code
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423 LabelStringAppendix
19424 \end_layout
19425
19426 \end_inset
19427
19428  [
19429 \begin_inset Flex Code
19430 status collapsed
19431
19432 \begin_layout Plain Layout
19433 string
19434 \end_layout
19435
19436 \end_inset
19437
19438 =
19439 \begin_inset Quotes erd
19440 \end_inset
19441
19442
19443 \begin_inset Quotes erd
19444 \end_inset
19445
19446 ] Same as 
19447 \begin_inset Flex Code
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 LabelString
19452 \end_layout
19453
19454 \end_inset
19455
19456 , but for use in the Appendix.
19457 \end_layout
19458
19459 \begin_layout Description
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464 PrettyFormat
19465 \end_layout
19466
19467 \end_inset
19468
19469  [
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 string
19475 \end_layout
19476
19477 \end_inset
19478
19479 =
19480 \begin_inset Quotes erd
19481 \end_inset
19482
19483
19484 \begin_inset Quotes erd
19485 \end_inset
19486
19487 ] A format for use with formatted references to this counter.
19488  For example, one might want to have references to section numbers appear
19489  as 
19490 \begin_inset Quotes eld
19491 \end_inset
19492
19493 Section 2.4
19494 \begin_inset Quotes erd
19495 \end_inset
19496
19497 .
19498  The string should contain 
19499 \begin_inset Quotes eld
19500 \end_inset
19501
19502 ##
19503 \begin_inset Quotes erd
19504 \end_inset
19505
19506 .
19507  This will be replaced by the counter number itself.
19508  So, for sections, it would be: Section ##.
19509 \end_layout
19510
19511 \begin_layout Description
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516 Within
19517 \end_layout
19518
19519 \end_inset
19520
19521  [
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526 string
19527 \end_layout
19528
19529 \end_inset
19530
19531 =
19532 \begin_inset Quotes erd
19533 \end_inset
19534
19535
19536 \begin_inset Quotes erd
19537 \end_inset
19538
19539 ] If this is set to the name of another counter, the present counter will
19540  be reset every time the other one is increased.
19541  For example, 
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 subsection
19547 \end_layout
19548
19549 \end_inset
19550
19551  is numbered inside 
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 section
19557 \end_layout
19558
19559 \end_inset
19560
19561 .
19562 \end_layout
19563
19564 \begin_layout Subsection
19565 Font description
19566 \begin_inset CommandInset label
19567 LatexCommand label
19568 name "subsec:Font-description"
19569
19570 \end_inset
19571
19572
19573 \end_layout
19574
19575 \begin_layout Standard
19576 A font description looks like this:
19577 \end_layout
19578
19579 \begin_layout LyX-Code
19580 Font 
19581 \family roman
19582 \emph on
19583 or
19584 \family default
19585 \emph default
19586  LabelFont
19587 \emph on
19588  or
19589 \emph default
19590  DefaultFont
19591 \end_layout
19592
19593 \begin_layout LyX-Code
19594  ...
19595 \end_layout
19596
19597 \begin_layout LyX-Code
19598 EndFont
19599 \end_layout
19600
19601 \begin_layout Standard
19602 The following commands are available:
19603 \end_layout
19604
19605 \begin_layout Description
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 Color
19611 \end_layout
19612
19613 \end_inset
19614
19615  [
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620
19621 \emph on
19622 none
19623 \end_layout
19624
19625 \end_inset
19626
19627
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 black
19633 \end_layout
19634
19635 \end_inset
19636
19637
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 white
19643 \end_layout
19644
19645 \end_inset
19646
19647
19648 \begin_inset Flex Code
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652 red
19653 \end_layout
19654
19655 \end_inset
19656
19657
19658 \begin_inset Flex Code
19659 status collapsed
19660
19661 \begin_layout Plain Layout
19662 green
19663 \end_layout
19664
19665 \end_inset
19666
19667
19668 \begin_inset Flex Code
19669 status collapsed
19670
19671 \begin_layout Plain Layout
19672 blue
19673 \end_layout
19674
19675 \end_inset
19676
19677
19678 \begin_inset Flex Code
19679 status collapsed
19680
19681 \begin_layout Plain Layout
19682 cyan
19683 \end_layout
19684
19685 \end_inset
19686
19687
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 magenta
19693 \end_layout
19694
19695 \end_inset
19696
19697
19698 \begin_inset Flex Code
19699 status collapsed
19700
19701 \begin_layout Plain Layout
19702 yellow
19703 \end_layout
19704
19705 \end_inset
19706
19707 ]
19708 \end_layout
19709
19710 \begin_layout Description
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715 Family
19716 \end_layout
19717
19718 \end_inset
19719
19720  [
19721 \begin_inset Flex Code
19722 status collapsed
19723
19724 \begin_layout Plain Layout
19725
19726 \emph on
19727 Roman
19728 \end_layout
19729
19730 \end_inset
19731
19732
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 Sans
19738 \end_layout
19739
19740 \end_inset
19741
19742
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747 Typewriter
19748 \end_layout
19749
19750 \end_inset
19751
19752 ]
19753 \end_layout
19754
19755 \begin_layout Description
19756 \begin_inset Flex Code
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760 Misc
19761 \end_layout
19762
19763 \end_inset
19764
19765  [
19766 \begin_inset Flex Code
19767 status collapsed
19768
19769 \begin_layout Plain Layout
19770 string
19771 \end_layout
19772
19773 \end_inset
19774
19775 ] Valid arguments are: 
19776 \begin_inset Flex Code
19777 status collapsed
19778
19779 \begin_layout Plain Layout
19780 emph
19781 \end_layout
19782
19783 \end_inset
19784
19785
19786 \begin_inset Flex Code
19787 status collapsed
19788
19789 \begin_layout Plain Layout
19790 noun
19791 \end_layout
19792
19793 \end_inset
19794
19795
19796 \begin_inset Flex Code
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 strikeout
19801 \end_layout
19802
19803 \end_inset
19804
19805
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 underbar
19811 \end_layout
19812
19813 \end_inset
19814
19815
19816 \begin_inset Flex Code
19817 status collapsed
19818
19819 \begin_layout Plain Layout
19820 uuline
19821 \end_layout
19822
19823 \end_inset
19824
19825
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 uwave
19831 \end_layout
19832
19833 \end_inset
19834
19835
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840 no_emph
19841 \end_layout
19842
19843 \end_inset
19844
19845
19846 \begin_inset Flex Code
19847 status collapsed
19848
19849 \begin_layout Plain Layout
19850 no_noun
19851 \end_layout
19852
19853 \end_inset
19854
19855
19856 \begin_inset Flex Code
19857 status collapsed
19858
19859 \begin_layout Plain Layout
19860 no_strikeout
19861 \end_layout
19862
19863 \end_inset
19864
19865
19866 \begin_inset Flex Code
19867 status collapsed
19868
19869 \begin_layout Plain Layout
19870 no_bar
19871 \end_layout
19872
19873 \end_inset
19874
19875
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 no_uuline
19881 \end_layout
19882
19883 \end_inset
19884
19885  and 
19886 \begin_inset Flex Code
19887 status collapsed
19888
19889 \begin_layout Plain Layout
19890 no_uwave
19891 \end_layout
19892
19893 \end_inset
19894
19895 .
19896  Each of these turns on or off the corresponding attribute.
19897  For example, 
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 emph
19903 \end_layout
19904
19905 \end_inset
19906
19907  turns on emphasis, and 
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 no_emph
19913 \end_layout
19914
19915 \end_inset
19916
19917  turns it off.
19918  
19919 \begin_inset Newline newline
19920 \end_inset
19921
19922 If the latter seems puzzling, remember that the font settings for the present
19923  context are generally inherited from the surrounding context.
19924  So 
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 no_emph
19930 \end_layout
19931
19932 \end_inset
19933
19934  would turn off the emphasis that was anyway in effect, say, in a theorem
19935  environment.
19936 \end_layout
19937
19938 \begin_layout Description
19939 \begin_inset Flex Code
19940 status collapsed
19941
19942 \begin_layout Plain Layout
19943 Series
19944 \end_layout
19945
19946 \end_inset
19947
19948  [
19949 \begin_inset Flex Code
19950 status collapsed
19951
19952 \begin_layout Plain Layout
19953
19954 \emph on
19955 Medium
19956 \end_layout
19957
19958 \end_inset
19959
19960
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 Bold
19966 \end_layout
19967
19968 \end_inset
19969
19970
19971 \end_layout
19972
19973 \begin_layout Description
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 Shape
19979 \end_layout
19980
19981 \end_inset
19982
19983  [
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988
19989 \emph on
19990 Up
19991 \end_layout
19992
19993 \end_inset
19994
19995
19996 \begin_inset Flex Code
19997 status collapsed
19998
19999 \begin_layout Plain Layout
20000 Italic
20001 \end_layout
20002
20003 \end_inset
20004
20005
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 SmallCaps
20011 \end_layout
20012
20013 \end_inset
20014
20015
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 Slanted
20021 \end_layout
20022
20023 \end_inset
20024
20025
20026 \end_layout
20027
20028 \begin_layout Description
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033 Size
20034 \end_layout
20035
20036 \end_inset
20037
20038  [
20039 \begin_inset Flex Code
20040 status collapsed
20041
20042 \begin_layout Plain Layout
20043 tiny
20044 \end_layout
20045
20046 \end_inset
20047
20048
20049 \begin_inset Flex Code
20050 status collapsed
20051
20052 \begin_layout Plain Layout
20053 small
20054 \end_layout
20055
20056 \end_inset
20057
20058
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063
20064 \emph on
20065 normal
20066 \end_layout
20067
20068 \end_inset
20069
20070
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 large
20076 \end_layout
20077
20078 \end_inset
20079
20080
20081 \begin_inset Flex Code
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085 larger
20086 \end_layout
20087
20088 \end_inset
20089
20090
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 largest
20096 \end_layout
20097
20098 \end_inset
20099
20100
20101 \begin_inset Flex Code
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105 huge
20106 \end_layout
20107
20108 \end_inset
20109
20110
20111 \begin_inset Flex Code
20112 status collapsed
20113
20114 \begin_layout Plain Layout
20115 giant
20116 \end_layout
20117
20118 \end_inset
20119
20120 ]
20121 \end_layout
20122
20123 \begin_layout Subsection
20124 \begin_inset CommandInset label
20125 LatexCommand label
20126 name "subsec:Citation-format-description"
20127
20128 \end_inset
20129
20130 Citation format description
20131 \end_layout
20132
20133 \begin_layout Standard
20134 The 
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 CiteFormat
20140 \end_layout
20141
20142 \end_inset
20143
20144  blocks are used to describe how bibliographic information should be displayed,
20145  both within \SpecialChar LyX
20146  itself (in the citation dialog and in tooltips, for example)
20147  and in XHTML output.
20148  Such a block might look like this:
20149 \end_layout
20150
20151 \begin_layout LyX-Code
20152 CiteFormat
20153 \end_layout
20154
20155 \begin_layout LyX-Code
20156  article ...
20157 \end_layout
20158
20159 \begin_layout LyX-Code
20160  book ...
20161 \end_layout
20162
20163 \begin_layout LyX-Code
20164 End
20165 \end_layout
20166
20167 \begin_layout Standard
20168 The individual lines define how the bibliographic information associated
20169  with an article or book, respectively, is to be displayed, and such a definitio
20170 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20171  file.
20172  \SpecialChar LyX
20173  defines a default format in the source code that will be used if no specific
20174  definition has been given.
20175  \SpecialChar LyX
20176  predefines several formats in the file 
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 stdciteformats.inc
20182 \end_layout
20183
20184 \end_inset
20185
20186 , which is included in most of \SpecialChar LyX
20187 's document classes.
20188 \end_layout
20189
20190 \begin_layout Standard
20191 The definitions use a simple language that allows Bib\SpecialChar TeX
20192  keys to be replaced
20193  with their values.
20194  Keys should be enclosed in 
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 %
20200 \end_layout
20201
20202 \end_inset
20203
20204  signs, e.g.: 
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 %author%
20210 \end_layout
20211
20212 \end_inset
20213
20214 .
20215  So a simple definition might look like this:
20216 \end_layout
20217
20218 \begin_layout LyX-Code
20219 misc %author%, 
20220 \begin_inset Quotes eld
20221 \end_inset
20222
20223 %title
20224 \begin_inset Quotes erd
20225 \end_inset
20226
20227 .
20228 \end_layout
20229
20230 \begin_layout Standard
20231 This would print the author, followed by a comma, followed by the title,
20232  in quotes, followed by a period.
20233 \end_layout
20234
20235 \begin_layout Standard
20236 Of course, sometimes you may want to print a key only if it exists.
20237  This can be done by using a conditional construction, such as: 
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 {%volume%[[vol.
20243 \begin_inset space ~
20244 \end_inset
20245
20246 %volume%]]}
20247 \end_layout
20248
20249 \end_inset
20250
20251 .
20252  This says: If the 
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 volume
20258 \end_layout
20259
20260 \end_inset
20261
20262  key exists, then print 
20263 \begin_inset Quotes eld
20264 \end_inset
20265
20266 vol.
20267 \begin_inset space ~
20268 \end_inset
20269
20270
20271 \begin_inset Quotes erd
20272 \end_inset
20273
20274  followed by the volume key.
20275  It is also possible to have an else clause in the conditional, such as:
20276 \begin_inset Newline newline
20277 \end_inset
20278
20279
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 {%author%[[%author%]][[%editor%, ed.]]}
20285 \end_layout
20286
20287 \end_inset
20288
20289 .
20290 \begin_inset Newline newline
20291 \end_inset
20292
20293 Here, the 
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298 author
20299 \end_layout
20300
20301 \end_inset
20302
20303  key is printed if it exists; otherwise, the editor key is printed, followed
20304  by 
20305 \begin_inset Quotes eld
20306 \end_inset
20307
20308 ,
20309 \begin_inset space ~
20310 \end_inset
20311
20312 ed.
20313 \begin_inset Quotes erd
20314 \end_inset
20315
20316  Note that the key is again enclosed in 
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 %
20322 \end_layout
20323
20324 \end_inset
20325
20326  signs; the entire conditional is enclosed in braces; and the if and else
20327  clauses are enclosed in double brackets, 
20328 \begin_inset Quotes eld
20329 \end_inset
20330
20331
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 [[
20337 \end_layout
20338
20339 \end_inset
20340
20341
20342 \begin_inset Quotes eld
20343 \end_inset
20344
20345  and 
20346 \begin_inset Quotes eld
20347 \end_inset
20348
20349
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 ]]
20355 \end_layout
20356
20357 \end_inset
20358
20359
20360 \begin_inset Quotes erd
20361 \end_inset
20362
20363 .
20364  There must be no space between any of these.
20365 \end_layout
20366
20367 \begin_layout Standard
20368 There is one other piece of syntax available in definitions, which looks
20369  like this: 
20370 \begin_inset Flex Code
20371 status collapsed
20372
20373 \begin_layout Plain Layout
20374 {!<i>!}
20375 \end_layout
20376
20377 \end_inset
20378
20379 .
20380  This defines a piece of formatting information that is to be used when
20381  creating 
20382 \begin_inset Quotes eld
20383 \end_inset
20384
20385 rich text
20386 \begin_inset Quotes erd
20387 \end_inset
20388
20389 .
20390  Obviously, we do not want to output HTML tags when writing plain text,
20391  so they should be wrapped in 
20392 \begin_inset Quotes eld
20393 \end_inset
20394
20395 {!
20396 \begin_inset Quotes erd
20397 \end_inset
20398
20399  and 
20400 \begin_inset Quotes eld
20401 \end_inset
20402
20403 !}
20404 \begin_inset Quotes erd
20405 \end_inset
20406
20407 .
20408 \end_layout
20409
20410 \begin_layout Standard
20411 Two special sorts of definitions are also possible in a 
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 CiteFormat
20417 \end_layout
20418
20419 \end_inset
20420
20421  block.
20422  An example of the first would be:
20423 \end_layout
20424
20425 \begin_layout LyX-Code
20426 !quotetitle 
20427 \begin_inset Quotes eld
20428 \end_inset
20429
20430 %title%
20431 \begin_inset Quotes erd
20432 \end_inset
20433
20434
20435 \end_layout
20436
20437 \begin_layout Standard
20438 This is an abbreviation, or macro, and it can be used by treating it as
20439  if it were a key: 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 %!quotetitle%
20445 \end_layout
20446
20447 \end_inset
20448
20449 .
20450  \SpecialChar LyX
20451  will treat 
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 %!quotetitle%
20457 \end_layout
20458
20459 \end_inset
20460
20461  exactly as it would treat its definition.
20462  So, let us issue the obvious 
20463 \emph on
20464 warning
20465 \emph default
20466 .
20467  Do not do this:
20468 \end_layout
20469
20470 \begin_layout LyX-Code
20471 !funfun %funfun%
20472 \end_layout
20473
20474 \begin_layout Standard
20475 or anything like it.
20476  \SpecialChar LyX
20477  shouldn't go into an infinite loop, but it may go into a long one before
20478  it gives up.
20479 \end_layout
20480
20481 \begin_layout Standard
20482 The second sort of special definition might look like this:
20483 \end_layout
20484
20485 \begin_layout LyX-Code
20486 _pptext pp.
20487 \end_layout
20488
20489 \begin_layout Standard
20490 This defines a translatable piece of text, which allows relevant parts of
20491  the bibliography to be translated.
20492  It can be included in a definition by treating it as a key: 
20493 \begin_inset Flex Code
20494 status collapsed
20495
20496 \begin_layout Plain Layout
20497 %_pptext%
20498 \end_layout
20499
20500 \end_inset
20501
20502 .
20503  Several of these are predefined in 
20504 \begin_inset Flex Code
20505 status collapsed
20506
20507 \begin_layout Plain Layout
20508 stdciteformats.inc
20509 \end_layout
20510
20511 \end_inset
20512
20513 .
20514  Note that these are not macros, in the sense just defined.
20515  They will not be expanded.
20516 \end_layout
20517
20518 \begin_layout Standard
20519 So here then is an example that use all these features:
20520 \begin_inset VSpace defskip
20521 \end_inset
20522
20523
20524 \end_layout
20525
20526 \begin_layout Standard
20527 \noindent
20528
20529 \family typewriter
20530 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20531 \end_layout
20532
20533 \begin_layout Standard
20534 \begin_inset VSpace defskip
20535 \end_inset
20536
20537 This defines a macro that prints the author, followed by a comma, if the
20538  
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 author
20544 \end_layout
20545
20546 \end_inset
20547
20548  key is defined, or else prints the name of the editor, followed by the
20549  
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 _edtext
20555 \end_layout
20556
20557 \end_inset
20558
20559  or its translation (it is by default 
20560 \begin_inset Quotes eld
20561 \end_inset
20562
20563 ed.
20564 \begin_inset Quotes erd
20565 \end_inset
20566
20567 ), if the 
20568 \begin_inset Flex Code
20569 status collapsed
20570
20571 \begin_layout Plain Layout
20572 editor
20573 \end_layout
20574
20575 \end_inset
20576
20577  key is defined.
20578  Note that this is in fact defined in 
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 stdciteformats.inc
20584 \end_layout
20585
20586 \end_inset
20587
20588 , so you can use it in your own definitions, or re-definitions, if you load
20589  that file first.
20590 \end_layout
20591
20592 \begin_layout Section
20593 \begin_inset CommandInset label
20594 LatexCommand label
20595 name "sec:Tags-for-XHTML"
20596
20597 \end_inset
20598
20599 Tags for XHTML output
20600 \end_layout
20601
20602 \begin_layout Standard
20603 As with \SpecialChar LaTeX
20604  or DocBook, the format of \SpecialChar LyX
20605 's XHTML output is also controlled by
20606  layout information.
20607  In general, \SpecialChar LyX
20608  provides sensible defaults and, as mentioned earlier, it will
20609  even construct default CSS style rules from the other layout tags.
20610  For example, \SpecialChar LyX
20611  will attempt to use the information provided in the 
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 Font
20617 \end_layout
20618
20619 \end_inset
20620
20621  declaration for the Chapter style to write CSS that will appropriately
20622  format chapter headings.
20623 \end_layout
20624
20625 \begin_layout Standard
20626 In many cases, then, you may not have to do anything at all to get acceptable
20627  XHTML output for your own environments, custom insets, and so forth.
20628  But in some cases you will, and so \SpecialChar LyX
20629  provides a number of layout tags that
20630  can be used to customize the XHTML and CSS that are generated.
20631 \end_layout
20632
20633 \begin_layout Standard
20634 Note that there are two tags, 
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 HTMLPreamble
20640 \end_layout
20641
20642 \end_inset
20643
20644  and 
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 AddToHTMLPreamble
20650 \end_layout
20651
20652 \end_inset
20653
20654  that may appear outside style and inset declarations.
20655  See 
20656 \begin_inset CommandInset ref
20657 LatexCommand ref
20658 reference "subsec:General-text-class"
20659
20660 \end_inset
20661
20662  for details on these.
20663 \end_layout
20664
20665 \begin_layout Subsection
20666 \begin_inset CommandInset label
20667 LatexCommand label
20668 name "subsec:Paragraph-Style-XHTML"
20669
20670 \end_inset
20671
20672 Paragraph styles
20673 \end_layout
20674
20675 \begin_layout Standard
20676 The sort of XHTML \SpecialChar LyX
20677  outputs for a paragraph depends upon whether we are dealing
20678  with a normal paragraph, a command, or an environment, where this is itself
20679  determined by the contents of the corresponding 
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 \SpecialChar LaTeX
20685 Type
20686 \end_layout
20687
20688 \end_inset
20689
20690  tag.
20691  
20692 \end_layout
20693
20694 \begin_layout Standard
20695 For a command or normal paragraph, the output XHTML has the following form:
20696 \end_layout
20697
20698 \begin_layout LyX-Code
20699 <tag attr=
20700 \begin_inset Quotes erd
20701 \end_inset
20702
20703 value
20704 \begin_inset Quotes erd
20705 \end_inset
20706
20707 >
20708 \end_layout
20709
20710 \begin_layout LyX-Code
20711 <labeltag attr=
20712 \begin_inset Quotes erd
20713 \end_inset
20714
20715 value
20716 \begin_inset Quotes erd
20717 \end_inset
20718
20719 >Label</labeltag>
20720 \end_layout
20721
20722 \begin_layout LyX-Code
20723 Contents of the paragraph.
20724 \end_layout
20725
20726 \begin_layout LyX-Code
20727 </tag>
20728 \end_layout
20729
20730 \begin_layout Standard
20731 The label tags are of course omitted if the paragraph does not have a label.
20732 \end_layout
20733
20734 \begin_layout Standard
20735 For an environment that is not some sort of list, the XHTML takes this form:
20736 \end_layout
20737
20738 \begin_layout LyX-Code
20739 <tag attr=
20740 \begin_inset Quotes erd
20741 \end_inset
20742
20743 value
20744 \begin_inset Quotes erd
20745 \end_inset
20746
20747 >
20748 \end_layout
20749
20750 \begin_layout LyX-Code
20751 <itemtag attr=
20752 \begin_inset Quotes erd
20753 \end_inset
20754
20755 value
20756 \begin_inset Quotes erd
20757 \end_inset
20758
20759 ><labeltag attr=
20760 \begin_inset Quotes erd
20761 \end_inset
20762
20763 value
20764 \begin_inset Quotes erd
20765 \end_inset
20766
20767 >Environment Label</labeltag>First paragraph.</itemtag>
20768 \end_layout
20769
20770 \begin_layout LyX-Code
20771 <itemtag>Second paragraph.</itemtag>
20772 \end_layout
20773
20774 \begin_layout LyX-Code
20775 </tag>
20776 \end_layout
20777
20778 \begin_layout Standard
20779 Note that the label is output only for the first paragraph, as it should
20780  be for a theorem, for example.
20781  
20782 \end_layout
20783
20784 \begin_layout Standard
20785 For a list, we have one of these forms:
20786 \end_layout
20787
20788 \begin_layout LyX-Code
20789 <tag attr=
20790 \begin_inset Quotes erd
20791 \end_inset
20792
20793 value
20794 \begin_inset Quotes erd
20795 \end_inset
20796
20797 >
20798 \end_layout
20799
20800 \begin_layout LyX-Code
20801 <itemtag attr=
20802 \begin_inset Quotes erd
20803 \end_inset
20804
20805 value
20806 \begin_inset Quotes erd
20807 \end_inset
20808
20809 ><labeltag attr=
20810 \begin_inset Quotes erd
20811 \end_inset
20812
20813 value
20814 \begin_inset Quotes erd
20815 \end_inset
20816
20817 >List Label</labeltag>First item.</itemtag>
20818 \end_layout
20819
20820 \begin_layout LyX-Code
20821 <itemtag attr=
20822 \begin_inset Quotes erd
20823 \end_inset
20824
20825 value
20826 \begin_inset Quotes erd
20827 \end_inset
20828
20829 ><labeltag attr=
20830 \begin_inset Quotes erd
20831 \end_inset
20832
20833 value
20834 \begin_inset Quotes erd
20835 \end_inset
20836
20837 >List Label</labeltag>Second item.</itemtag>
20838 \end_layout
20839
20840 \begin_layout LyX-Code
20841 </tag>
20842 \end_layout
20843
20844 \begin_layout LyX-Code
20845
20846 \end_layout
20847
20848 \begin_layout LyX-Code
20849 <tag attr=
20850 \begin_inset Quotes erd
20851 \end_inset
20852
20853 value
20854 \begin_inset Quotes erd
20855 \end_inset
20856
20857 >
20858 \end_layout
20859
20860 \begin_layout LyX-Code
20861 <labeltag attr=
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 value
20866 \begin_inset Quotes erd
20867 \end_inset
20868
20869 >List Label</labeltag><itemtag attr=
20870 \begin_inset Quotes erd
20871 \end_inset
20872
20873 value
20874 \begin_inset Quotes erd
20875 \end_inset
20876
20877 >First item.</itemtag>
20878 \end_layout
20879
20880 \begin_layout LyX-Code
20881 <labeltag attr=
20882 \begin_inset Quotes erd
20883 \end_inset
20884
20885 value
20886 \begin_inset Quotes erd
20887 \end_inset
20888
20889 >List Label</labeltag><itemtag attr=
20890 \begin_inset Quotes erd
20891 \end_inset
20892
20893 value
20894 \begin_inset Quotes erd
20895 \end_inset
20896
20897 >Second item.</itemtag>
20898 \end_layout
20899
20900 \begin_layout LyX-Code
20901 </tag>
20902 \end_layout
20903
20904 \begin_layout Standard
20905 Note the different orders of 
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 labeltag
20911 \end_layout
20912
20913 \end_inset
20914
20915  and 
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 itemtag
20921 \end_layout
20922
20923 \end_inset
20924
20925 .
20926  Which order we get depends upon the setting of 
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 HTMLLabelFirst
20932 \end_layout
20933
20934 \end_inset
20935
20936 : If 
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 HTMLLabelFirst
20942 \end_layout
20943
20944 \end_inset
20945
20946  is false (the default), you get the first of these, with the label within
20947  the item; if true, you get the second, with the label outside the item.
20948 \end_layout
20949
20950 \begin_layout Standard
20951 The specific tags and attributes output for each paragraph type can be controlle
20952 d by means of the layout tags we are about to describe.
20953  As mentioned earlier, however, \SpecialChar LyX
20954  uses sensible defaults for many of these,
20955  so you often may not need to do very much to get good XHTML output.
20956  Think of the available tags as there so you can tweak things to your liking.
20957 \end_layout
20958
20959 \begin_layout Description
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 HTMLAttr
20965 \end_layout
20966
20967 \end_inset
20968
20969  [
20970 \begin_inset Flex Code
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 string
20975 \end_layout
20976
20977 \end_inset
20978
20979 ] Specifies attribute information to be output with the main tag.
20980  For example, 
20981 \begin_inset Quotes eld
20982 \end_inset
20983
20984
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 class=`mydiv'
20990 \end_layout
20991
20992 \end_inset
20993
20994
20995 \begin_inset Quotes erd
20996 \end_inset
20997
20998 .
20999  By default, \SpecialChar LyX
21000  will output 
21001 \begin_inset Quotes eld
21002 \end_inset
21003
21004
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 class=`layoutname'
21010 \end_layout
21011
21012 \end_inset
21013
21014
21015 \begin_inset Quotes erd
21016 \end_inset
21017
21018 , where 
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 layoutname
21024 \end_layout
21025
21026 \end_inset
21027
21028  is the \SpecialChar LyX
21029  name of the layout, made lowercase, for example: chapter.
21030  This should 
21031 \emph on
21032 not
21033 \emph default
21034  contain any style information.
21035  Use 
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 HTMLStyle
21041 \end_layout
21042
21043 \end_inset
21044
21045  for that purpose.
21046 \end_layout
21047
21048 \begin_layout Description
21049 \begin_inset Flex Code
21050 status collapsed
21051
21052 \begin_layout Plain Layout
21053 HTMLForceCSS
21054 \end_layout
21055
21056 \end_inset
21057
21058  [
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063
21064 \emph on
21065 0
21066 \emph default
21067 ,1
21068 \end_layout
21069
21070 \end_inset
21071
21072 ] Whether to output the default CSS information \SpecialChar LyX
21073  generates for this layout,
21074  even if additional information is explicitly provided via 
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 HTMLStyle
21080 \end_layout
21081
21082 \end_inset
21083
21084 .
21085  Setting this to 
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 1
21091 \end_layout
21092
21093 \end_inset
21094
21095  allows you to alter or augment the generated CSS, rather than to override
21096  it completely.
21097  Default is 
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 0
21103 \end_layout
21104
21105 \end_inset
21106
21107 .
21108 \end_layout
21109
21110 \begin_layout Description
21111 \begin_inset Flex Code
21112 status collapsed
21113
21114 \begin_layout Plain Layout
21115 HTMLItem
21116 \end_layout
21117
21118 \end_inset
21119
21120  [
21121 \begin_inset Flex Code
21122 status collapsed
21123
21124 \begin_layout Plain Layout
21125 string
21126 \end_layout
21127
21128 \end_inset
21129
21130 ] The tag to be used for individual paragraphs of environments, replacing
21131  
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 itemtag
21137 \end_layout
21138
21139 \end_inset
21140
21141  in the examples above.
21142  Defaults to 
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 div
21148 \end_layout
21149
21150 \end_inset
21151
21152 .
21153 \end_layout
21154
21155 \begin_layout Description
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 HTMLItemAttr
21161 \end_layout
21162
21163 \end_inset
21164
21165  [
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 string
21171 \end_layout
21172
21173 \end_inset
21174
21175 ] Attributes for the item tag.
21176  Defaults to 
21177 \begin_inset Quotes eld
21178 \end_inset
21179
21180
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 class=`layoutname_item'
21186 \end_layout
21187
21188 \end_inset
21189
21190
21191 \begin_inset Quotes erd
21192 \end_inset
21193
21194 .
21195  This should 
21196 \emph on
21197 not
21198 \emph default
21199  contain any style information.
21200  Use 
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 HTMLStyle
21206 \end_layout
21207
21208 \end_inset
21209
21210  for that purpose.
21211 \end_layout
21212
21213 \begin_layout Description
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 HTMLLabel
21219 \end_layout
21220
21221 \end_inset
21222
21223  [
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 string
21229 \end_layout
21230
21231 \end_inset
21232
21233 ] The tag to be used for paragraph and item labels, replacing 
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 labeltag
21239 \end_layout
21240
21241 \end_inset
21242
21243  in the examples above.
21244  Defaults to 
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 span
21250 \end_layout
21251
21252 \end_inset
21253
21254 , unless 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 LabelType
21260 \end_layout
21261
21262 \end_inset
21263
21264  is either 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 Top_Environment
21270 \end_layout
21271
21272 \end_inset
21273
21274  or 
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279 Centered_Top_Environment
21280 \end_layout
21281
21282 \end_inset
21283
21284 , in which case it defaults to 
21285 \begin_inset Flex Code
21286 status collapsed
21287
21288 \begin_layout Plain Layout
21289 div
21290 \end_layout
21291
21292 \end_inset
21293
21294 .
21295 \end_layout
21296
21297 \begin_layout Description
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302 HTMLLabelAttr
21303 \end_layout
21304
21305 \end_inset
21306
21307  [
21308 \begin_inset Flex Code
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312 string
21313 \end_layout
21314
21315 \end_inset
21316
21317 ] Attributes for the label tag.
21318  Defaults to 
21319 \begin_inset Quotes eld
21320 \end_inset
21321
21322
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 class=`layoutname_label'
21328 \end_layout
21329
21330 \end_inset
21331
21332
21333 \begin_inset Quotes erd
21334 \end_inset
21335
21336 .
21337  This should 
21338 \emph on
21339 not
21340 \emph default
21341  contain any style information.
21342  Use 
21343 \begin_inset Flex Code
21344 status collapsed
21345
21346 \begin_layout Plain Layout
21347 HTMLStyle
21348 \end_layout
21349
21350 \end_inset
21351
21352  for that purpose.
21353 \end_layout
21354
21355 \begin_layout Description
21356 \begin_inset Flex Code
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360 HTMLLabelFirst
21361 \end_layout
21362
21363 \end_inset
21364
21365  [
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370
21371 \emph on
21372 0
21373 \emph default
21374 ,1
21375 \end_layout
21376
21377 \end_inset
21378
21379 ] Meaningful only for list-like environments, this tag controls whether
21380  the label tag is output before or inside the item tag.
21381  This is used, for example, in the description environment, where we want
21382  `
21383 \begin_inset Flex Code
21384 status collapsed
21385
21386 \begin_layout Plain Layout
21387 <dt>\SpecialChar ldots
21388 </dt><dd>\SpecialChar ldots
21389 </dd>
21390 \end_layout
21391
21392 \end_inset
21393
21394 .
21395  Default is 
21396 \begin_inset Flex Code
21397 status collapsed
21398
21399 \begin_layout Plain Layout
21400 0
21401 \end_layout
21402
21403 \end_inset
21404
21405 : The label tag is output inside the item tag.
21406 \end_layout
21407
21408 \begin_layout Description
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413 HTMLPreamble
21414 \end_layout
21415
21416 \end_inset
21417
21418  Information to be output in the 
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 <head>
21424 \end_layout
21425
21426 \end_inset
21427
21428  section when this style is used.
21429  This might, for example, be used to include a 
21430 \begin_inset Flex Code
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 <script>
21435 \end_layout
21436
21437 \end_inset
21438
21439  block defining an 
21440 \begin_inset Flex Code
21441 status collapsed
21442
21443 \begin_layout Plain Layout
21444 onclick
21445 \end_layout
21446
21447 \end_inset
21448
21449  handler.
21450 \end_layout
21451
21452 \begin_layout Description
21453 \begin_inset Flex Code
21454 status collapsed
21455
21456 \begin_layout Plain Layout
21457 HTMLStyle
21458 \end_layout
21459
21460 \end_inset
21461
21462  CSS style information to be included when this style is used.
21463  Note that this will automatically be wrapped in a layout-generated 
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 <style>
21469 \end_layout
21470
21471 \end_inset
21472
21473  block, so only the CSS itself need be included.
21474  Must end with 
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 EndHTMLStyle
21480 \end_layout
21481
21482 \end_inset
21483
21484 .
21485 \end_layout
21486
21487 \begin_layout Description
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 HTMLTag
21493 \end_layout
21494
21495 \end_inset
21496
21497  [
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 string
21503 \end_layout
21504
21505 \end_inset
21506
21507 ] The tag to be used for the main label, replacing 
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 tag
21513 \end_layout
21514
21515 \end_inset
21516
21517  in the examples above.
21518  Defaults to 
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 div
21524 \end_layout
21525
21526 \end_inset
21527
21528 .
21529 \end_layout
21530
21531 \begin_layout Description
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 HTMLTitle
21537 \end_layout
21538
21539 \end_inset
21540
21541  [
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546
21547 \emph on
21548 0
21549 \emph default
21550 ,1
21551 \end_layout
21552
21553 \end_inset
21554
21555 ] Marks this style as the one to be used to generate the 
21556 \begin_inset Flex Code
21557 status collapsed
21558
21559 \begin_layout Plain Layout
21560 <title>
21561 \end_layout
21562
21563 \end_inset
21564
21565  tag for the XHTML file.
21566  By default, it is false.
21567  The 
21568 \begin_inset Flex Code
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 stdtitle.inc
21573 \end_layout
21574
21575 \end_inset
21576
21577  file sets it to true for the 
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 title
21583 \end_layout
21584
21585 \end_inset
21586
21587  environment.
21588  
21589 \end_layout
21590
21591 \begin_layout Subsection
21592 InsetLayout XHTML
21593 \end_layout
21594
21595 \begin_layout Standard
21596 The XHTML output of insets can also be controlled by information in layout
21597  files.
21598 \begin_inset Foot
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 At present, this is true only for 
21603 \begin_inset Quotes eld
21604 \end_inset
21605
21606 text
21607 \begin_inset Quotes erd
21608 \end_inset
21609
21610  insets (insets you can type into) and is not true for 
21611 \begin_inset Quotes eld
21612 \end_inset
21613
21614 command
21615 \begin_inset Quotes erd
21616 \end_inset
21617
21618  insets (insets that are associated with dialog boxes).
21619 \end_layout
21620
21621 \end_inset
21622
21623  Here, too, \SpecialChar LyX
21624  tries to provide sensible defaults, and it constructs default
21625  CSS style rules.
21626  But everything can be customized.
21627 \end_layout
21628
21629 \begin_layout Standard
21630 The XHTML \SpecialChar LyX
21631  outputs for an inset has the following form:
21632 \end_layout
21633
21634 \begin_layout LyX-Code
21635 <tag attr=
21636 \begin_inset Quotes erd
21637 \end_inset
21638
21639 value
21640 \begin_inset Quotes erd
21641 \end_inset
21642
21643 >
21644 \end_layout
21645
21646 \begin_layout LyX-Code
21647 <labeltag>Label</labeltag>
21648 \end_layout
21649
21650 \begin_layout LyX-Code
21651 <innertag attr=
21652 \begin_inset Quotes erd
21653 \end_inset
21654
21655 value
21656 \begin_inset Quotes erd
21657 \end_inset
21658
21659 >Contents of the inset.</innertag>
21660 \end_layout
21661
21662 \begin_layout LyX-Code
21663 </tag>
21664 \end_layout
21665
21666 \begin_layout Standard
21667 If the inset permits multiple paragraphs—that is, if 
21668 \begin_inset Flex Code
21669 status collapsed
21670
21671 \begin_layout Plain Layout
21672 MultiPar
21673 \end_layout
21674
21675 \end_inset
21676
21677  is true—then the contents of the inset will itself be output as paragraphs
21678  formatted according to the styles used for those paragraphs (standard,
21679  quote, and the like).
21680  The label tag is of course omitted if the paragraph does not have a label
21681  and, at present, is always 
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 span
21687 \end_layout
21688
21689 \end_inset
21690
21691 .
21692  The inner tag is optional and, by default, does not appear.
21693 \end_layout
21694
21695 \begin_layout Standard
21696 The specific tags and attributes output for each inset can be controlled
21697  by means of the following layout tags.
21698 \end_layout
21699
21700 \begin_layout Description
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 HTMLAttr
21706 \end_layout
21707
21708 \end_inset
21709
21710  [
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 string
21716 \end_layout
21717
21718 \end_inset
21719
21720 ] Specifies attribute information to be output with the main tag.
21721  For example, 
21722 \begin_inset Quotes eld
21723 \end_inset
21724
21725
21726 \begin_inset Flex Code
21727 status collapsed
21728
21729 \begin_layout Plain Layout
21730 class=`myinset' onclick=`\SpecialChar ldots
21731 '
21732 \end_layout
21733
21734 \end_inset
21735
21736
21737 \begin_inset Quotes erd
21738 \end_inset
21739
21740 .
21741  By default, \SpecialChar LyX
21742  will output 
21743 \begin_inset Quotes eld
21744 \end_inset
21745
21746
21747 \begin_inset Flex Code
21748 status collapsed
21749
21750 \begin_layout Plain Layout
21751 class=`insetname'
21752 \end_layout
21753
21754 \end_inset
21755
21756
21757 \begin_inset Quotes erd
21758 \end_inset
21759
21760 , where 
21761 \begin_inset Flex Code
21762 status collapsed
21763
21764 \begin_layout Plain Layout
21765 insetname
21766 \end_layout
21767
21768 \end_inset
21769
21770  is the \SpecialChar LyX
21771  name of the inset, made lowercase and with non-alphanumeric characters
21772  converted to underscores, for example: footnote.
21773 \end_layout
21774
21775 \begin_layout Description
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 HTMLForceCSS
21781 \end_layout
21782
21783 \end_inset
21784
21785  [
21786 \begin_inset Flex Code
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790
21791 \emph on
21792 0
21793 \emph default
21794 ,1
21795 \end_layout
21796
21797 \end_inset
21798
21799 ] Whether to output the default CSS information \SpecialChar LyX
21800  generates for this layout,
21801  even if additional information is explicitly provided via 
21802 \begin_inset Flex Code
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806 HTMLStyle
21807 \end_layout
21808
21809 \end_inset
21810
21811 .
21812  Setting this to 
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 1
21818 \end_layout
21819
21820 \end_inset
21821
21822  allows you to alter or augment the generated CSS, rather than to override
21823  it completely.
21824  Default is 0.
21825 \end_layout
21826
21827 \begin_layout Description
21828 \begin_inset Flex Code
21829 status collapsed
21830
21831 \begin_layout Plain Layout
21832 HTMLInnerAttr
21833 \end_layout
21834
21835 \end_inset
21836
21837  [
21838 \begin_inset Flex Code
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 string
21843 \end_layout
21844
21845 \end_inset
21846
21847 ] Attributes for the inner tag.
21848  Defaults to 
21849 \begin_inset Quotes eld
21850 \end_inset
21851
21852
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857 class=`insetname_inner'
21858 \end_layout
21859
21860 \end_inset
21861
21862
21863 \begin_inset Quotes erd
21864 \end_inset
21865
21866 .
21867 \end_layout
21868
21869 \begin_layout Description
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874 HTMLInnerTag
21875 \end_layout
21876
21877 \end_inset
21878
21879  [
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884 string
21885 \end_layout
21886
21887 \end_inset
21888
21889 ] The inner tag, replacing 
21890 \begin_inset Flex Code
21891 status collapsed
21892
21893 \begin_layout Plain Layout
21894 innertag
21895 \end_layout
21896
21897 \end_inset
21898
21899  in the examples above.
21900  By default, there is none.
21901 \end_layout
21902
21903 \begin_layout Description
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 HTMLIsBlock
21909 \end_layout
21910
21911 \end_inset
21912
21913  [
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 0,
21919 \emph on
21920 1
21921 \end_layout
21922
21923 \end_inset
21924
21925 ] Whether this inset represents a standalone block of text (such as a footnote)
21926  or instead represents material that is included in the surrounding text
21927  (such as a branch).
21928  Defaults to 1.
21929 \end_layout
21930
21931 \begin_layout Description
21932 \begin_inset Flex Code
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936 HTMLLabel
21937 \end_layout
21938
21939 \end_inset
21940
21941  [
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 string
21947 \end_layout
21948
21949 \end_inset
21950
21951 ] A label for this inset, possibly including a reference to a counter.
21952  For example, for footnote, it might be: 
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957
21958 \backslash
21959 arabic{footnote}
21960 \end_layout
21961
21962 \end_inset
21963
21964 .
21965  This is optional, and there is no default.
21966 \end_layout
21967
21968 \begin_layout Description
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973 HTMLPreamble
21974 \end_layout
21975
21976 \end_inset
21977
21978  Information to be output in the 
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 <head>
21984 \end_layout
21985
21986 \end_inset
21987
21988  section when this style is used.
21989  This might, for example, be used to include a 
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 <script>
21995 \end_layout
21996
21997 \end_inset
21998
21999  block defining an 
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 onclick
22005 \end_layout
22006
22007 \end_inset
22008
22009  handler.
22010 \end_layout
22011
22012 \begin_layout Description
22013 \begin_inset Flex Code
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017 HTMLStyle
22018 \end_layout
22019
22020 \end_inset
22021
22022  CSS style information to be included when this style is used.
22023  Note that this will automatically be wrapped in a layout-generated 
22024 \begin_inset Flex Code
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028 <style>
22029 \end_layout
22030
22031 \end_inset
22032
22033  block, so only the CSS itself need be included.
22034 \end_layout
22035
22036 \begin_layout Description
22037 \begin_inset Flex Code
22038 status collapsed
22039
22040 \begin_layout Plain Layout
22041 HTMLTag
22042 \end_layout
22043
22044 \end_inset
22045
22046  [
22047 \begin_inset Flex Code
22048 status collapsed
22049
22050 \begin_layout Plain Layout
22051 string
22052 \end_layout
22053
22054 \end_inset
22055
22056 ] The tag to be used for the main label, replacing 
22057 \begin_inset Flex Code
22058 status collapsed
22059
22060 \begin_layout Plain Layout
22061 tag
22062 \end_layout
22063
22064 \end_inset
22065
22066  in the examples above.
22067  The default depends upon the setting of 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 MultiPar
22073 \end_layout
22074
22075 \end_inset
22076
22077 : If 
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 MultiPar
22083 \end_layout
22084
22085 \end_inset
22086
22087  is true, the default is 
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092 div
22093 \end_layout
22094
22095 \end_inset
22096
22097 ; if it is false, the default is 
22098 \begin_inset Flex Code
22099 status collapsed
22100
22101 \begin_layout Plain Layout
22102 span
22103 \end_layout
22104
22105 \end_inset
22106
22107 .
22108 \end_layout
22109
22110 \begin_layout Subsection
22111 Float XHTML
22112 \end_layout
22113
22114 \begin_layout Standard
22115 The XHTML output for floats too can be controlled by layout information.
22116  The output has the following form:
22117 \end_layout
22118
22119 \begin_layout LyX-Code
22120 <tag attr=
22121 \begin_inset Quotes erd
22122 \end_inset
22123
22124 value
22125 \begin_inset Quotes erd
22126 \end_inset
22127
22128 >
22129 \end_layout
22130
22131 \begin_layout LyX-Code
22132 Contents of the float.
22133 \end_layout
22134
22135 \begin_layout LyX-Code
22136 </tag>
22137 \end_layout
22138
22139 \begin_layout Standard
22140 The caption, if there is one, is a separate inset and will be output as
22141  such.
22142  Its appearance can be controlled via the InsetLayout for caption insets.
22143  
22144 \end_layout
22145
22146 \begin_layout Description
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 HTMLAttr
22152 \end_layout
22153
22154 \end_inset
22155
22156  [
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 string
22162 \end_layout
22163
22164 \end_inset
22165
22166 ] Specifies attribute information to be output with the main tag.
22167  For example, 
22168 \begin_inset Quotes eld
22169 \end_inset
22170
22171
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 class=`myfloat' onclick=`\SpecialChar ldots
22177 '
22178 \end_layout
22179
22180 \end_inset
22181
22182
22183 \begin_inset Quotes erd
22184 \end_inset
22185
22186 .
22187  By default, \SpecialChar LyX
22188  will output 
22189 \begin_inset Quotes eld
22190 \end_inset
22191
22192
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 class=`float float-floattype'
22198 \end_layout
22199
22200 \end_inset
22201
22202
22203 \begin_inset Quotes erd
22204 \end_inset
22205
22206 , where 
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 floattype
22212 \end_layout
22213
22214 \end_inset
22215
22216  is \SpecialChar LyX
22217 's name for this type of float, as determined by the float declaration
22218  (see 
22219 \begin_inset CommandInset ref
22220 LatexCommand ref
22221 reference "subsec:Floats"
22222
22223 \end_inset
22224
22225 ), though made lowercase and with non-alphanumeric characters converted
22226  to underscores, for example: float-table.
22227 \end_layout
22228
22229 \begin_layout Description
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 HTMLStyle
22235 \end_layout
22236
22237 \end_inset
22238
22239  CSS style information to be included when this float is used.
22240  Note that this will automatically be wrapped in a layout-generated 
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 <style>
22246 \end_layout
22247
22248 \end_inset
22249
22250  block, so only the CSS itself need be included.
22251 \end_layout
22252
22253 \begin_layout Description
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258 HTMLTag
22259 \end_layout
22260
22261 \end_inset
22262
22263  [
22264 \begin_inset Flex Code
22265 status collapsed
22266
22267 \begin_layout Plain Layout
22268 string
22269 \end_layout
22270
22271 \end_inset
22272
22273 ] The tag to be used for this float, replacing 
22274 \begin_inset Quotes eld
22275 \end_inset
22276
22277
22278 \begin_inset Flex Code
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 tag
22283 \end_layout
22284
22285 \end_inset
22286
22287
22288 \begin_inset Quotes erd
22289 \end_inset
22290
22291  in the example above.
22292  The default is 
22293 \begin_inset Flex Code
22294 status collapsed
22295
22296 \begin_layout Plain Layout
22297 div
22298 \end_layout
22299
22300 \end_inset
22301
22302  and will rarely need changing.
22303 \end_layout
22304
22305 \begin_layout Subsection
22306 Bibliography formatting
22307 \end_layout
22308
22309 \begin_layout Standard
22310 The bibliography can be formatted using 
22311 \begin_inset Flex Code
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 CiteFormat
22316 \end_layout
22317
22318 \end_inset
22319
22320  blocks.
22321  See 
22322 \begin_inset CommandInset ref
22323 LatexCommand ref
22324 reference "subsec:Citation-format-description"
22325
22326 \end_inset
22327
22328  for the details.
22329 \end_layout
22330
22331 \begin_layout Subsection
22332 \SpecialChar LyX
22333 -generated CSS
22334 \end_layout
22335
22336 \begin_layout Standard
22337 We have several times mentioned that \SpecialChar LyX
22338  will generate default CSS style rules
22339  for both insets and paragraph styles, based upon the other layout information
22340  that is provided.
22341  In this section, we shall say a word about which layout information \SpecialChar LyX
22342  uses
22343  and how.
22344 \end_layout
22345
22346 \begin_layout Standard
22347 At present, \SpecialChar LyX
22348  auto-generates CSS only for font information, making use of
22349  the 
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 Family
22355 \end_layout
22356
22357 \end_inset
22358
22359
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 Series
22365 \end_layout
22366
22367 \end_inset
22368
22369
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 Shape
22375 \end_layout
22376
22377 \end_inset
22378
22379 , and 
22380 \begin_inset Flex Code
22381 status collapsed
22382
22383 \begin_layout Plain Layout
22384 Size
22385 \end_layout
22386
22387 \end_inset
22388
22389  specified in the 
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 Font
22395 \end_layout
22396
22397 \end_inset
22398
22399  declaration (see 
22400 \begin_inset CommandInset ref
22401 LatexCommand ref
22402 reference "subsec:Font-description"
22403
22404 \end_inset
22405
22406 ).
22407  The translation is mostly straightforward and obvious.
22408  For example, 
22409 \begin_inset Quotes eld
22410 \end_inset
22411
22412
22413 \begin_inset Flex Code
22414 status collapsed
22415
22416 \begin_layout Plain Layout
22417 Family Sans
22418 \end_layout
22419
22420 \end_inset
22421
22422
22423 \begin_inset Quotes erd
22424 \end_inset
22425
22426  becomes 
22427 \begin_inset Quotes eld
22428 \end_inset
22429
22430
22431 \begin_inset Flex Code
22432 status collapsed
22433
22434 \begin_layout Plain Layout
22435 font-family: sans-serif;
22436 \end_layout
22437
22438 \end_inset
22439
22440
22441 \begin_inset Quotes erd
22442 \end_inset
22443
22444 .
22445  The correspondence of \SpecialChar LyX
22446  sizes and CSS sizes is a little less obvious but
22447  nonetheless intuitive.
22448  See the 
22449 \begin_inset Flex Code
22450 status collapsed
22451
22452 \begin_layout Plain Layout
22453 getSizeCSS()
22454 \end_layout
22455
22456 \end_inset
22457
22458  function in 
22459 \begin_inset Flex URL
22460 status collapsed
22461
22462 \begin_layout Plain Layout
22463
22464 src/FontInfo.cpp
22465 \end_layout
22466
22467 \end_inset
22468
22469  for the details.
22470 \end_layout
22471
22472 \begin_layout Chapter
22473 Including External Material
22474 \begin_inset CommandInset label
22475 LatexCommand label
22476 name "chap:Including-External-Material"
22477
22478 \end_inset
22479
22480
22481 \end_layout
22482
22483 \begin_layout Standard
22484 \begin_inset Box Shadowbox
22485 position "t"
22486 hor_pos "c"
22487 has_inner_box 1
22488 inner_pos "t"
22489 use_parbox 0
22490 use_makebox 0
22491 width "100col%"
22492 special "none"
22493 height "1in"
22494 height_special "totalheight"
22495 thickness "0.4pt"
22496 separation "3pt"
22497 shadowsize "4pt"
22498 framecolor "black"
22499 backgroundcolor "none"
22500 status open
22501
22502 \begin_layout Plain Layout
22503 WARNING: This portion of the documentation has not been updated for some
22504  time.
22505  We certainly hope that it is still accurate, but there are no guarantees.
22506 \end_layout
22507
22508 \end_inset
22509
22510
22511 \end_layout
22512
22513 \begin_layout Standard
22514 The use of material from sources external to \SpecialChar LyX
22515  is covered in detail in the
22516  
22517 \emph on
22518 Embedded Objects
22519 \emph default
22520  manual.
22521  This part of the manual covers what needs to happen behind the scenes for
22522  new sorts of material to be included.
22523 \end_layout
22524
22525 \begin_layout Section
22526 How does it work?
22527 \end_layout
22528
22529 \begin_layout Standard
22530 The external material feature is based on the concept of a 
22531 \emph on
22532 template
22533 \emph default
22534 .
22535  A template is a specification of how \SpecialChar LyX
22536  should interface with a certain kind
22537  of material.
22538  As bundled, \SpecialChar LyX
22539  comes with predefined templates for Xfig figures, various
22540  raster format images, chess diagrams, and LilyPond music notation.
22541  You can check the actual list by using the menu 
22542 \begin_inset Flex Noun
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 Insert\SpecialChar menuseparator
22547 File\SpecialChar menuseparator
22548 External Material
22549 \end_layout
22550
22551 \end_inset
22552
22553 .
22554  Furthermore, it is possible to roll your own template to support a specific
22555  kind of material.
22556  Later we'll describe in more detail what is involved, and hopefully you
22557  will submit all the templates you create so we can include them in a later
22558  \SpecialChar LyX
22559  version.
22560 \end_layout
22561
22562 \begin_layout Standard
22563 Another basic idea of the external material feature is to distinguish between
22564  the original file that serves as a base for final material and the produced
22565  file that is included in your exported or printed document.
22566  For example, consider the case of a figure produced with 
22567 \begin_inset Flex Code
22568 status collapsed
22569
22570 \begin_layout Plain Layout
22571 Xfig
22572 \end_layout
22573
22574 \end_inset
22575
22576 .
22577  The Xfig application itself works on an original file with the 
22578 \begin_inset Flex Code
22579 status collapsed
22580
22581 \begin_layout Plain Layout
22582 .fig
22583 \end_layout
22584
22585 \end_inset
22586
22587  extension.
22588  Within Xfig, you create and change your figure, and when you are done,
22589  you save the 
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 fig
22595 \end_layout
22596
22597 \end_inset
22598
22599 -file.
22600  When you want to include the figure in your document, you invoke 
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 transfig
22606 \end_layout
22607
22608 \end_inset
22609
22610  in order to create a PostScript file that can readily be included in your
22611  \SpecialChar LaTeX
22612  file.
22613  In this case, the 
22614 \begin_inset Flex Code
22615 status collapsed
22616
22617 \begin_layout Plain Layout
22618 .fig
22619 \end_layout
22620
22621 \end_inset
22622
22623  file is the original file, and the PostScript file is the produced file.
22624 \end_layout
22625
22626 \begin_layout Standard
22627 This distinction is important in order to allow updating of the material
22628  while you are in the process of writing the document.
22629  Furthermore, it provides us with the flexibility that is needed to support
22630  multiple export formats.
22631  For instance, in the case of a plain text file, it is not exactly an award-winn
22632 ing idea to include the figure as raw PostScript.
22633  Instead, you would either prefer to just include a reference to the figure
22634  or try to invoke some graphics to ASCII converter to make the final result
22635  look similar to the real graphics.
22636  The external material management allows you to do this, because it is parametri
22637 zed on the different export formats that \SpecialChar LyX
22638  supports.
22639 \end_layout
22640
22641 \begin_layout Standard
22642 Besides supporting the production of different products according to the
22643  exported format, it supports tight integration with editing and viewing
22644  applications.
22645  In the case of an Xfig figure, you are able to invoke Xfig on the original
22646  file with a single click from within the external material dialog in \SpecialChar LyX
22647 ,
22648  and also preview the produced PostScript file with Ghostview with another
22649  click.
22650  No more fiddling around with the command line and/or file browsers to locate
22651  and manipulate the original or produced files.
22652  In this way, you are finally able to take full advantage of the many different
22653  applications that are relevant to use when you write your documents, and
22654  ultimately be more productive.
22655 \end_layout
22656
22657 \begin_layout Section
22658 The external template configuration file
22659 \end_layout
22660
22661 \begin_layout Standard
22662 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22663 .
22664  However, be aware that doing this in an careless manner most probably 
22665 \emph on
22666 will
22667 \emph default
22668  introduce an easily exploitable security hole.
22669  So before you do this, please read the discussion about security in 
22670 \begin_inset CommandInset ref
22671 LatexCommand ref
22672 reference "sec:Security-discussion"
22673
22674 \end_inset
22675
22676 .
22677 \end_layout
22678
22679 \begin_layout Standard
22680 Having said that, we encourage you to submit any interesting templates that
22681  you create.
22682  
22683 \end_layout
22684
22685 \begin_layout Standard
22686 The external templates are defined in the 
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691 LyXDir/lib/external_templates
22692 \end_layout
22693
22694 \end_inset
22695
22696  file.
22697  You can place your own version in 
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 UserDir/external_templates
22703 \end_layout
22704
22705 \end_inset
22706
22707 .
22708 \end_layout
22709
22710 \begin_layout Standard
22711 A typical template looks like this:
22712 \end_layout
22713
22714 \begin_layout LyX-Code
22715 Template XFig
22716 \end_layout
22717
22718 \begin_layout LyX-Code
22719 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22720 \end_layout
22721
22722 \begin_layout LyX-Code
22723 HelpText
22724 \end_layout
22725
22726 \begin_layout LyX-Code
22727 An XFig figure.
22728 \end_layout
22729
22730 \begin_layout LyX-Code
22731 HelpTextEnd
22732 \end_layout
22733
22734 \begin_layout LyX-Code
22735 InputFormat fig
22736 \end_layout
22737
22738 \begin_layout LyX-Code
22739 FileFilter "*.fig"
22740 \end_layout
22741
22742 \begin_layout LyX-Code
22743 AutomaticProduction true
22744 \end_layout
22745
22746 \begin_layout LyX-Code
22747 Transform Rotate
22748 \end_layout
22749
22750 \begin_layout LyX-Code
22751 Transform Resize
22752 \end_layout
22753
22754 \begin_layout LyX-Code
22755 Format \SpecialChar LaTeX
22756
22757 \end_layout
22758
22759 \begin_layout LyX-Code
22760 TransformCommand Rotate RotationLatexCommand
22761 \end_layout
22762
22763 \begin_layout LyX-Code
22764 TransformCommand Resize ResizeLatexCommand
22765 \end_layout
22766
22767 \begin_layout LyX-Code
22768 Product "$$RotateFront$$ResizeFront
22769 \end_layout
22770
22771 \begin_layout LyX-Code
22772          
22773 \backslash
22774
22775 \backslash
22776 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22777 \end_layout
22778
22779 \begin_layout LyX-Code
22780          $$ResizeBack$$RotateBack"
22781 \end_layout
22782
22783 \begin_layout LyX-Code
22784 UpdateFormat pstex
22785 \end_layout
22786
22787 \begin_layout LyX-Code
22788 UpdateResult "$$AbsPath$$Basename.pstex_t"
22789 \end_layout
22790
22791 \begin_layout LyX-Code
22792 Requirement "graphicx"
22793 \end_layout
22794
22795 \begin_layout LyX-Code
22796 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22797 \end_layout
22798
22799 \begin_layout LyX-Code
22800 ReferencedFile latex "$$AbsPath$$Basename.eps"
22801 \end_layout
22802
22803 \begin_layout LyX-Code
22804 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22805 \end_layout
22806
22807 \begin_layout LyX-Code
22808 FormatEnd
22809 \end_layout
22810
22811 \begin_layout LyX-Code
22812 Format PDF\SpecialChar LaTeX
22813
22814 \end_layout
22815
22816 \begin_layout LyX-Code
22817 TransformCommand Rotate RotationLatexCommand
22818 \end_layout
22819
22820 \begin_layout LyX-Code
22821 TransformCommand Resize ResizeLatexCommand
22822 \end_layout
22823
22824 \begin_layout LyX-Code
22825 Product "$$RotateFront$$ResizeFront
22826 \end_layout
22827
22828 \begin_layout LyX-Code
22829          
22830 \backslash
22831
22832 \backslash
22833 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22834 \end_layout
22835
22836 \begin_layout LyX-Code
22837          $$ResizeBack$$RotateBack"
22838 \end_layout
22839
22840 \begin_layout LyX-Code
22841 UpdateFormat pdftex
22842 \end_layout
22843
22844 \begin_layout LyX-Code
22845 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22846 \end_layout
22847
22848 \begin_layout LyX-Code
22849 Requirement "graphicx"
22850 \end_layout
22851
22852 \begin_layout LyX-Code
22853 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22854 \end_layout
22855
22856 \begin_layout LyX-Code
22857 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22858 \end_layout
22859
22860 \begin_layout LyX-Code
22861 FormatEnd
22862 \end_layout
22863
22864 \begin_layout LyX-Code
22865 Format Ascii
22866 \end_layout
22867
22868 \begin_layout LyX-Code
22869 Product "$$Contents(
22870 \backslash
22871 "$$AbsPath$$Basename.asc
22872 \backslash
22873 ")"
22874 \end_layout
22875
22876 \begin_layout LyX-Code
22877 UpdateFormat asciixfig
22878 \end_layout
22879
22880 \begin_layout LyX-Code
22881 UpdateResult "$$AbsPath$$Basename.asc"
22882 \end_layout
22883
22884 \begin_layout LyX-Code
22885 FormatEnd
22886 \end_layout
22887
22888 \begin_layout LyX-Code
22889 Format DocBook
22890 \end_layout
22891
22892 \begin_layout LyX-Code
22893 Product "<graphic fileref=
22894 \backslash
22895 "$$AbsOrRelPathMaster$$Basename.eps
22896 \backslash
22897 ">
22898 \end_layout
22899
22900 \begin_layout LyX-Code
22901          </graphic>"
22902 \end_layout
22903
22904 \begin_layout LyX-Code
22905 UpdateFormat eps
22906 \end_layout
22907
22908 \begin_layout LyX-Code
22909 UpdateResult "$$AbsPath$$Basename.eps"
22910 \end_layout
22911
22912 \begin_layout LyX-Code
22913 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22914 \end_layout
22915
22916 \begin_layout LyX-Code
22917 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22918 \end_layout
22919
22920 \begin_layout LyX-Code
22921 FormatEnd
22922 \end_layout
22923
22924 \begin_layout LyX-Code
22925 Product "[XFig: $$FName]"
22926 \end_layout
22927
22928 \begin_layout LyX-Code
22929 FormatEnd
22930 \end_layout
22931
22932 \begin_layout LyX-Code
22933 TemplateEnd
22934 \end_layout
22935
22936 \begin_layout Standard
22937 As you can see, the template is enclosed in 
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942 Template
22943 \end_layout
22944
22945 \end_inset
22946
22947  \SpecialChar ldots
22948  
22949 \begin_inset Flex Code
22950 status collapsed
22951
22952 \begin_layout Plain Layout
22953 TemplateEnd
22954 \end_layout
22955
22956 \end_inset
22957
22958 .
22959  It contains a header specifying some general settings and, for each supported
22960  primary document file format, a section 
22961 \begin_inset Flex Code
22962 status collapsed
22963
22964 \begin_layout Plain Layout
22965 Format
22966 \end_layout
22967
22968 \end_inset
22969
22970  \SpecialChar ldots
22971  
22972 \begin_inset Flex Code
22973 status collapsed
22974
22975 \begin_layout Plain Layout
22976 FormatEnd
22977 \end_layout
22978
22979 \end_inset
22980
22981 .
22982 \end_layout
22983
22984 \begin_layout Subsection
22985 The template header
22986 \end_layout
22987
22988 \begin_layout Description
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 AutomaticProduction
22994 \begin_inset space ~
22995 \end_inset
22996
22997 true|false
22998 \end_layout
22999
23000 \end_inset
23001
23002  Whether the file represented by the template must be generated by \SpecialChar LyX
23003 .
23004  This command must occur exactly once.
23005 \end_layout
23006
23007 \begin_layout Description
23008 \begin_inset Flex Code
23009 status collapsed
23010
23011 \begin_layout Plain Layout
23012 FileFilter
23013 \begin_inset space ~
23014 \end_inset
23015
23016 <pattern>
23017 \end_layout
23018
23019 \end_inset
23020
23021  A glob pattern that is used in the file dialog to filter out the desired
23022  files.
23023  If there is more than one possible file extension (e.
23024 \begin_inset space \thinspace{}
23025 \end_inset
23026
23027 g.
23028 \begin_inset space \space{}
23029 \end_inset
23030
23031 tgif has 
23032 \begin_inset Flex Code
23033 status collapsed
23034
23035 \begin_layout Plain Layout
23036 .obj
23037 \end_layout
23038
23039 \end_inset
23040
23041  and 
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 .tgo
23047 \end_layout
23048
23049 \end_inset
23050
23051 ), use something like 
23052 \begin_inset Flex Code
23053 status collapsed
23054
23055 \begin_layout Plain Layout
23056 "*.{obj,tgo}"
23057 \end_layout
23058
23059 \end_inset
23060
23061 .
23062  This command must occur exactly once.
23063 \end_layout
23064
23065 \begin_layout Description
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 GuiName
23071 \begin_inset space ~
23072 \end_inset
23073
23074 <guiname>
23075 \end_layout
23076
23077 \end_inset
23078
23079  The text that is displayed on the button.
23080  This command must occur exactly once.
23081 \end_layout
23082
23083 \begin_layout Description
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088 HelpText
23089 \begin_inset space ~
23090 \end_inset
23091
23092 <text>
23093 \begin_inset space ~
23094 \end_inset
23095
23096 HelpTextEnd
23097 \end_layout
23098
23099 \end_inset
23100
23101  The help text that is used in the External dialog.
23102  Provide enough information to explain to the user just what the template
23103  can provide him with.
23104  This command must occur exactly once.
23105 \end_layout
23106
23107 \begin_layout Description
23108 \begin_inset Flex Code
23109 status collapsed
23110
23111 \begin_layout Plain Layout
23112 InputFormat
23113 \begin_inset space ~
23114 \end_inset
23115
23116 <format>
23117 \end_layout
23118
23119 \end_inset
23120
23121  The file format of the original file.
23122  This must be the name of a format that is known to \SpecialChar LyX
23123  (see 
23124 \begin_inset CommandInset ref
23125 LatexCommand ref
23126 reference "sec:Formats"
23127
23128 \end_inset
23129
23130 ).
23131  Use 
23132 \begin_inset Quotes eld
23133 \end_inset
23134
23135
23136 \begin_inset Flex Code
23137 status collapsed
23138
23139 \begin_layout Plain Layout
23140 *
23141 \end_layout
23142
23143 \end_inset
23144
23145
23146 \begin_inset Quotes erd
23147 \end_inset
23148
23149  if the template can handle original files of more than one format.
23150  \SpecialChar LyX
23151  will attempt to interrogate the file itself in order to deduce its format
23152  in this case.
23153  This command must occur exactly once.
23154 \end_layout
23155
23156 \begin_layout Description
23157 \begin_inset Flex Code
23158 status collapsed
23159
23160 \begin_layout Plain Layout
23161 Template
23162 \begin_inset space ~
23163 \end_inset
23164
23165 <id>
23166 \end_layout
23167
23168 \end_inset
23169
23170  A unique name for the template.
23171  It must not contain substitution macros (see below).
23172 \end_layout
23173
23174 \begin_layout Description
23175 \begin_inset Flex Code
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179 Transform
23180 \begin_inset space ~
23181 \end_inset
23182
23183 Rotate|Resize|Clip|Extra
23184 \end_layout
23185
23186 \end_inset
23187
23188  This command specifies which transformations are supported by this template.
23189  It may occur zero or more times.
23190  This command enables the corresponding tabs in the external dialog.
23191  Each 
23192 \begin_inset Flex Code
23193 status collapsed
23194
23195 \begin_layout Plain Layout
23196 Transform
23197 \end_layout
23198
23199 \end_inset
23200
23201  command must have either a corresponding 
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206 TransformCommand
23207 \end_layout
23208
23209 \end_inset
23210
23211  or a 
23212 \begin_inset Flex Code
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216 TransformOption
23217 \end_layout
23218
23219 \end_inset
23220
23221  command in the 
23222 \begin_inset Flex Code
23223 status collapsed
23224
23225 \begin_layout Plain Layout
23226 Format
23227 \end_layout
23228
23229 \end_inset
23230
23231  section.
23232  Otherwise the transformation will not be supported by that format.
23233 \end_layout
23234
23235 \begin_layout Subsection
23236 The Format section
23237 \end_layout
23238
23239 \begin_layout Description
23240 \begin_inset Flex Code
23241 status collapsed
23242
23243 \begin_layout Plain Layout
23244 Format
23245 \begin_inset space ~
23246 \end_inset
23247
23248 LaTeX|PDFLaTeX|PlainText|DocBook
23249 \end_layout
23250
23251 \end_inset
23252
23253  The primary document file format that this format definition is for.
23254  Not every template has a sensible representation in all document file formats.
23255  Please define nevertheless a 
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 Format
23261 \end_layout
23262
23263 \end_inset
23264
23265  section for all templates.
23266  Use a dummy text when no representation is available.
23267  Then you can at least see a reference to the external material in the exported
23268  document.
23269 \end_layout
23270
23271 \begin_layout Description
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 Option
23277 \begin_inset space ~
23278 \end_inset
23279
23280 <name>
23281 \begin_inset space ~
23282 \end_inset
23283
23284 <value>
23285 \end_layout
23286
23287 \end_inset
23288
23289  This command defines an additional macro 
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294 $$<name>
23295 \end_layout
23296
23297 \end_inset
23298
23299  for substitution in 
23300 \begin_inset Flex Code
23301 status collapsed
23302
23303 \begin_layout Plain Layout
23304 Product
23305 \end_layout
23306
23307 \end_inset
23308
23309 .
23310  
23311 \begin_inset Flex Code
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315 <value>
23316 \end_layout
23317
23318 \end_inset
23319
23320  itself may contain substitution macros.
23321  The advantage over using 
23322 \begin_inset Flex Code
23323 status collapsed
23324
23325 \begin_layout Plain Layout
23326 <value>
23327 \end_layout
23328
23329 \end_inset
23330
23331  directly in 
23332 \begin_inset Flex Code
23333 status collapsed
23334
23335 \begin_layout Plain Layout
23336 Product
23337 \end_layout
23338
23339 \end_inset
23340
23341  is that the substituted value of 
23342 \begin_inset Flex Code
23343 status collapsed
23344
23345 \begin_layout Plain Layout
23346 $$<name>
23347 \end_layout
23348
23349 \end_inset
23350
23351  is sanitized so that it is a valid optional argument in the document format.
23352  This command may occur zero or more times.
23353 \end_layout
23354
23355 \begin_layout Description
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360 Product
23361 \begin_inset space ~
23362 \end_inset
23363
23364 <text>
23365 \end_layout
23366
23367 \end_inset
23368
23369  The text that is inserted in the exported document.
23370  This is actually the most important command and can be quite complex.
23371  This command must occur exactly once.
23372 \end_layout
23373
23374 \begin_layout Description
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 Preamble
23380 \begin_inset space ~
23381 \end_inset
23382
23383 <name>
23384 \end_layout
23385
23386 \end_inset
23387
23388  This command specifies a preamble snippet that will be included in the
23389  \SpecialChar LaTeX
23390  preamble.
23391  It has to be defined using 
23392 \begin_inset Flex Code
23393 status collapsed
23394
23395 \begin_layout Plain Layout
23396 PreambleDef
23397 \end_layout
23398
23399 \end_inset
23400
23401  \SpecialChar ldots
23402  
23403 \begin_inset Flex Code
23404 status collapsed
23405
23406 \begin_layout Plain Layout
23407 PreambleDefEnd
23408 \end_layout
23409
23410 \end_inset
23411
23412 .
23413  This command may occur zero or more times.
23414 \end_layout
23415
23416 \begin_layout Description
23417 \begin_inset Flex Code
23418 status collapsed
23419
23420 \begin_layout Plain Layout
23421 ReferencedFile
23422 \begin_inset space ~
23423 \end_inset
23424
23425 <format>
23426 \begin_inset space ~
23427 \end_inset
23428
23429 <filename>
23430 \end_layout
23431
23432 \end_inset
23433
23434  This command denotes files that are created by the conversion process and
23435  are needed for a particular export format.
23436  If the filename is relative, it is interpreted relative to the master document.
23437  This command may be given zero or more times.
23438 \end_layout
23439
23440 \begin_layout Description
23441 \begin_inset Flex Code
23442 status collapsed
23443
23444 \begin_layout Plain Layout
23445 Requirement
23446 \begin_inset space ~
23447 \end_inset
23448
23449 <package>
23450 \end_layout
23451
23452 \end_inset
23453
23454  The name of a required \SpecialChar LaTeX
23455  package.
23456  The package is included via 
23457 \begin_inset Flex Code
23458 status collapsed
23459
23460 \begin_layout Plain Layout
23461
23462 \backslash
23463 usepackage{}
23464 \end_layout
23465
23466 \end_inset
23467
23468  in the \SpecialChar LaTeX
23469  preamble.
23470  This command may occur zero or more times.
23471 \end_layout
23472
23473 \begin_layout Description
23474 \begin_inset Flex Code
23475 status collapsed
23476
23477 \begin_layout Plain Layout
23478 TransformCommand
23479 \begin_inset space ~
23480 \end_inset
23481
23482 Rotate
23483 \begin_inset space ~
23484 \end_inset
23485
23486 RotationLatexCommand
23487 \end_layout
23488
23489 \end_inset
23490
23491  This command specifies that the built in \SpecialChar LaTeX
23492  command should be used for rotation.
23493  This command may occur once or not at all.
23494 \end_layout
23495
23496 \begin_layout Description
23497 \begin_inset Flex Code
23498 status collapsed
23499
23500 \begin_layout Plain Layout
23501 TransformCommand
23502 \begin_inset space ~
23503 \end_inset
23504
23505 Resize
23506 \begin_inset space ~
23507 \end_inset
23508
23509 ResizeLatexCommand
23510 \end_layout
23511
23512 \end_inset
23513
23514  This command specifies that the built in \SpecialChar LaTeX
23515  command should be used for resizing.
23516  This command may occur once or not at all.
23517 \end_layout
23518
23519 \begin_layout Description
23520 \begin_inset Flex Code
23521 status collapsed
23522
23523 \begin_layout Plain Layout
23524 TransformOption
23525 \begin_inset space ~
23526 \end_inset
23527
23528 Rotate
23529 \begin_inset space ~
23530 \end_inset
23531
23532 RotationLatexOption
23533 \end_layout
23534
23535 \end_inset
23536
23537  This command specifies that rotation is done via an optional argument.
23538  This command may occur once or not at all.
23539 \end_layout
23540
23541 \begin_layout Description
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546 TransformOption
23547 \begin_inset space ~
23548 \end_inset
23549
23550 Resize
23551 \begin_inset space ~
23552 \end_inset
23553
23554 ResizeLatexOption
23555 \end_layout
23556
23557 \end_inset
23558
23559  This command specifies that resizing is done via an optional argument.
23560  This command may occur once or not at all.
23561 \end_layout
23562
23563 \begin_layout Description
23564 \begin_inset Flex Code
23565 status collapsed
23566
23567 \begin_layout Plain Layout
23568 TransformOption
23569 \begin_inset space ~
23570 \end_inset
23571
23572 Clip
23573 \begin_inset space ~
23574 \end_inset
23575
23576 ClipLatexOption
23577 \end_layout
23578
23579 \end_inset
23580
23581  This command specifies that clipping is done via an optional argument.
23582  This command may occur once or not at all.
23583 \end_layout
23584
23585 \begin_layout Description
23586 \begin_inset Flex Code
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590 TransformOption
23591 \begin_inset space ~
23592 \end_inset
23593
23594 Extra
23595 \begin_inset space ~
23596 \end_inset
23597
23598 ExtraLatexOption
23599 \end_layout
23600
23601 \end_inset
23602
23603  This command specifies that an extra optional argument is used.
23604  This command may occur once or not at all.
23605 \end_layout
23606
23607 \begin_layout Description
23608 \begin_inset Flex Code
23609 status collapsed
23610
23611 \begin_layout Plain Layout
23612 UpdateFormat
23613 \begin_inset space ~
23614 \end_inset
23615
23616 <format>
23617 \end_layout
23618
23619 \end_inset
23620
23621  The file format of the converted file.
23622  This must be the name of a format that is known to \SpecialChar LyX
23623  (see the 
23624 \begin_inset Flex Noun
23625 status collapsed
23626
23627 \begin_layout Plain Layout
23628 Tools\SpecialChar menuseparator
23629 Preferences\SpecialChar menuseparator
23630 File Handling\SpecialChar menuseparator
23631 File Format
23632 \end_layout
23633
23634 \end_inset
23635
23636  dialog).
23637  This command must occur exactly once.
23638  If the resulting file format is PDF, you need to specify the format 
23639 \begin_inset Flex Code
23640 status collapsed
23641
23642 \begin_layout Plain Layout
23643 pdf6
23644 \end_layout
23645
23646 \end_inset
23647
23648 .
23649  This is the PDF format used for including graphics.
23650  The other defined PDF formats are for document export.
23651 \end_layout
23652
23653 \begin_layout Description
23654 \begin_inset Flex Code
23655 status collapsed
23656
23657 \begin_layout Plain Layout
23658 UpdateResult
23659 \begin_inset space ~
23660 \end_inset
23661
23662 <filename>
23663 \end_layout
23664
23665 \end_inset
23666
23667  The file name of the converted file.
23668  The file name must be absolute.
23669  This command must occur exactly once.
23670 \end_layout
23671
23672 \begin_layout Subsection
23673 Preamble definitions
23674 \end_layout
23675
23676 \begin_layout Standard
23677 The external template configuration file may contain additional preamble
23678  definitions enclosed by 
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683 PreambleDef
23684 \end_layout
23685
23686 \end_inset
23687
23688  \SpecialChar ldots
23689  
23690 \begin_inset Flex Code
23691 status collapsed
23692
23693 \begin_layout Plain Layout
23694 PreambleDefEnd
23695 \end_layout
23696
23697 \end_inset
23698
23699 .
23700  They can be used by the templates in the 
23701 \begin_inset Flex Code
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705 Format
23706 \end_layout
23707
23708 \end_inset
23709
23710  section.
23711 \end_layout
23712
23713 \begin_layout Section
23714 The substitution mechanism
23715 \end_layout
23716
23717 \begin_layout Standard
23718 When the external material facility invokes an external program, it is done
23719  on the basis of a command defined in the template configuration file.
23720  These commands can contain various macros that are expanded before execution.
23721  Execution always take place in the directory of the containing document.
23722 \end_layout
23723
23724 \begin_layout Standard
23725 Also, whenever external material is to be displayed, the name will be produced
23726  by the substitution mechanism, and most other commands in the template
23727  definition support substitution as well.
23728 \end_layout
23729
23730 \begin_layout Standard
23731 The available macros are the following:
23732 \end_layout
23733
23734 \begin_layout Description
23735 \begin_inset Flex Code
23736 status collapsed
23737
23738 \begin_layout Plain Layout
23739 $$AbsOrRelPathMaster
23740 \end_layout
23741
23742 \end_inset
23743
23744  The file path, absolute or relative to the master \SpecialChar LyX
23745  document.
23746 \end_layout
23747
23748 \begin_layout Description
23749 \begin_inset Flex Code
23750 status collapsed
23751
23752 \begin_layout Plain Layout
23753 $$AbsOrRelPathParent
23754 \end_layout
23755
23756 \end_inset
23757
23758  The file path, absolute or relative to the \SpecialChar LyX
23759  document.
23760 \end_layout
23761
23762 \begin_layout Description
23763 \begin_inset Flex Code
23764 status collapsed
23765
23766 \begin_layout Plain Layout
23767 $$AbsPath
23768 \end_layout
23769
23770 \end_inset
23771
23772  The absolute file path.
23773 \end_layout
23774
23775 \begin_layout Description
23776 \begin_inset Flex Code
23777 status collapsed
23778
23779 \begin_layout Plain Layout
23780 $$Basename
23781 \end_layout
23782
23783 \end_inset
23784
23785  The filename without path and without the extension.
23786 \end_layout
23787
23788 \begin_layout Description
23789 \begin_inset Flex Code
23790 status collapsed
23791
23792 \begin_layout Plain Layout
23793 $$Contents(
23794 \begin_inset Quotes eld
23795 \end_inset
23796
23797 filename.ext
23798 \begin_inset Quotes erd
23799 \end_inset
23800
23801 )
23802 \end_layout
23803
23804 \end_inset
23805
23806  This macro will expand to the contents of the file with the name 
23807 \begin_inset Flex Code
23808 status collapsed
23809
23810 \begin_layout Plain Layout
23811 filename.ext
23812 \end_layout
23813
23814 \end_inset
23815
23816 .
23817 \end_layout
23818
23819 \begin_layout Description
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824 $$Extension
23825 \end_layout
23826
23827 \end_inset
23828
23829  The file extension (including the dot).
23830 \end_layout
23831
23832 \begin_layout Description
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 $$pngOrjpg
23838 \end_layout
23839
23840 \end_inset
23841
23842  This will be the string 
23843 \begin_inset Quotes eld
23844 \end_inset
23845
23846 jpg
23847 \begin_inset Quotes erd
23848 \end_inset
23849
23850  if the file is in JPEG format, otherwise it will be the string 
23851 \begin_inset Quotes eld
23852 \end_inset
23853
23854 png
23855 \begin_inset Quotes erd
23856 \end_inset
23857
23858 .
23859  This is useful to avoid uneeded conversions for output formats that support
23860  both PNG and JPEG fomats.
23861  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
23862  output
23863  format.
23864 \end_layout
23865
23866 \begin_layout Description
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 $$FName
23872 \end_layout
23873
23874 \end_inset
23875
23876  The filename of the file specified in the external material dialog.
23877  This is either an absolute name, or it is relative to the \SpecialChar LyX
23878  document.
23879 \end_layout
23880
23881 \begin_layout Description
23882 \begin_inset Flex Code
23883 status collapsed
23884
23885 \begin_layout Plain Layout
23886 $$FPath
23887 \end_layout
23888
23889 \end_inset
23890
23891  The path part of 
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896 $$FName
23897 \end_layout
23898
23899 \end_inset
23900
23901  (absolute name or relative to the \SpecialChar LyX
23902  document).
23903 \end_layout
23904
23905 \begin_layout Description
23906 \begin_inset Flex Code
23907 status collapsed
23908
23909 \begin_layout Plain Layout
23910 $$RelPathMaster
23911 \end_layout
23912
23913 \end_inset
23914
23915  The file path, relative to the master \SpecialChar LyX
23916  document.
23917 \end_layout
23918
23919 \begin_layout Description
23920 \begin_inset Flex Code
23921 status collapsed
23922
23923 \begin_layout Plain Layout
23924 $$RelPathParent
23925 \end_layout
23926
23927 \end_inset
23928
23929  The file path, relative to the \SpecialChar LyX
23930  document.
23931 \end_layout
23932
23933 \begin_layout Description
23934 \begin_inset Flex Code
23935 status collapsed
23936
23937 \begin_layout Plain Layout
23938 $$Sysdir
23939 \end_layout
23940
23941 \end_inset
23942
23943  This macro will expand to the absolute path of the system directory.
23944  This is typically used to point to the various helper scripts that are
23945  bundled with \SpecialChar LyX
23946 .
23947 \end_layout
23948
23949 \begin_layout Description
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954 $$Tempname
23955 \end_layout
23956
23957 \end_inset
23958
23959  A name and full path to a temporary file which will be automatically deleted
23960  whenever the containing document is closed, or the external material insertion
23961  deleted.
23962 \end_layout
23963
23964 \begin_layout Standard
23965 All path macros contain a trailing directory separator, so you can construct
23966  e.
23967 \begin_inset space \thinspace{}
23968 \end_inset
23969
23970 g.
23971 \begin_inset space \space{}
23972 \end_inset
23973
23974 the absolute filename with 
23975 \begin_inset Flex Code
23976 status collapsed
23977
23978 \begin_layout Plain Layout
23979 $$AbsPath$$Basename$$Extension
23980 \end_layout
23981
23982 \end_inset
23983
23984 .
23985 \end_layout
23986
23987 \begin_layout Standard
23988 The macros above are substituted in all commands unless otherwise noted.
23989  The command 
23990 \begin_inset Flex Code
23991 status collapsed
23992
23993 \begin_layout Plain Layout
23994 Product
23995 \end_layout
23996
23997 \end_inset
23998
23999  supports additionally the following substitutions if they are enabled by
24000  the 
24001 \begin_inset Flex Code
24002 status collapsed
24003
24004 \begin_layout Plain Layout
24005 Transform
24006 \end_layout
24007
24008 \end_inset
24009
24010  and 
24011 \begin_inset Flex Code
24012 status collapsed
24013
24014 \begin_layout Plain Layout
24015 TransformCommand
24016 \end_layout
24017
24018 \end_inset
24019
24020  commands:
24021 \end_layout
24022
24023 \begin_layout Description
24024 \begin_inset Flex Code
24025 status collapsed
24026
24027 \begin_layout Plain Layout
24028 $$ResizeFront
24029 \end_layout
24030
24031 \end_inset
24032
24033  The front part of the resize command.
24034 \end_layout
24035
24036 \begin_layout Description
24037 \begin_inset Flex Code
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041 $$ResizeBack
24042 \end_layout
24043
24044 \end_inset
24045
24046  The back part of the resize command.
24047 \end_layout
24048
24049 \begin_layout Description
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 $$RotateFront
24055 \end_layout
24056
24057 \end_inset
24058
24059  The front part of the rotation command.
24060 \end_layout
24061
24062 \begin_layout Description
24063 \begin_inset Flex Code
24064 status collapsed
24065
24066 \begin_layout Plain Layout
24067 $$RotateBack
24068 \end_layout
24069
24070 \end_inset
24071
24072  The back part of the rotation command.
24073 \end_layout
24074
24075 \begin_layout Standard
24076 The value string of the 
24077 \begin_inset Flex Code
24078 status collapsed
24079
24080 \begin_layout Plain Layout
24081 Option
24082 \end_layout
24083
24084 \end_inset
24085
24086  command supports additionally the following substitutions if they are enabled
24087  by the 
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092 Transform
24093 \end_layout
24094
24095 \end_inset
24096
24097  and 
24098 \begin_inset Flex Code
24099 status collapsed
24100
24101 \begin_layout Plain Layout
24102 TransformOption
24103 \end_layout
24104
24105 \end_inset
24106
24107  commands:
24108 \end_layout
24109
24110 \begin_layout Description
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 $$Clip
24116 \end_layout
24117
24118 \end_inset
24119
24120  The clip option.
24121 \end_layout
24122
24123 \begin_layout Description
24124 \begin_inset Flex Code
24125 status collapsed
24126
24127 \begin_layout Plain Layout
24128 $$Extra
24129 \end_layout
24130
24131 \end_inset
24132
24133  The extra option.
24134 \end_layout
24135
24136 \begin_layout Description
24137 \begin_inset Flex Code
24138 status collapsed
24139
24140 \begin_layout Plain Layout
24141 $$Resize
24142 \end_layout
24143
24144 \end_inset
24145
24146  The resize option.
24147 \end_layout
24148
24149 \begin_layout Description
24150 \begin_inset Flex Code
24151 status collapsed
24152
24153 \begin_layout Plain Layout
24154 $$Rotate
24155 \end_layout
24156
24157 \end_inset
24158
24159  The rotation option.
24160 \end_layout
24161
24162 \begin_layout Standard
24163 You may ask why there are so many path macros.
24164  There are mainly two reasons:
24165 \end_layout
24166
24167 \begin_layout Enumerate
24168 Relative and absolute file names should remain relative or absolute, respectivel
24169 y.
24170  Users may have reasons to prefer either form.
24171  Relative names are useful for portable documents that should work on different
24172  machines, for example.
24173  Absolute names may be required by some programs.
24174 \end_layout
24175
24176 \begin_layout Enumerate
24177 \SpecialChar LaTeX
24178  treats relative file names differently than \SpecialChar LyX
24179  and other programs in nested
24180  included files.
24181  For \SpecialChar LyX
24182 , a relative file name is always relative to the document that contains
24183  the file name.
24184  For \SpecialChar LaTeX
24185 , it is always relative to the master document.
24186  These two definitions are identical if you have only one document, but
24187  differ if you have a master document that includes part documents.
24188  That means that relative filenames must be transformed when presented to
24189  \SpecialChar LaTeX
24190 .
24191  Fortunately \SpecialChar LyX
24192  does this automatically for you if you choose the right macros.
24193 \end_layout
24194
24195 \begin_layout Standard
24196 So which path macro should be used in new template definitions? The rule
24197  is not difficult:
24198 \end_layout
24199
24200 \begin_layout Itemize
24201 Use 
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 $$AbsPath
24207 \end_layout
24208
24209 \end_inset
24210
24211  if an absolute path is required.
24212 \end_layout
24213
24214 \begin_layout Itemize
24215 Use 
24216 \begin_inset Flex Code
24217 status collapsed
24218
24219 \begin_layout Plain Layout
24220 $$AbsOrRelPathMaster
24221 \end_layout
24222
24223 \end_inset
24224
24225  if the substituted string is some kind of \SpecialChar LaTeX
24226  input.
24227 \end_layout
24228
24229 \begin_layout Itemize
24230 Else use 
24231 \begin_inset Flex Code
24232 status collapsed
24233
24234 \begin_layout Plain Layout
24235 $$AbsOrRelPathParent
24236 \end_layout
24237
24238 \end_inset
24239
24240  in order to preserve the user's choice.
24241 \end_layout
24242
24243 \begin_layout Standard
24244 There are special cases where this rule does not work and e.
24245 \begin_inset space \thinspace{}
24246 \end_inset
24247
24248 g.
24249 \begin_inset space \space{}
24250 \end_inset
24251
24252 relative names are needed, but normally it will work just fine.
24253  One example for such a case is the command 
24254 \begin_inset Flex Code
24255 status collapsed
24256
24257 \begin_layout Plain Layout
24258 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24259 \end_layout
24260
24261 \end_inset
24262
24263  in the XFig template above: We can't use the absolute name because the
24264  copier for 
24265 \begin_inset Flex Code
24266 status collapsed
24267
24268 \begin_layout Plain Layout
24269 .pstex_t
24270 \end_layout
24271
24272 \end_inset
24273
24274  files needs the relative name in order to rewrite the file content.
24275 \end_layout
24276
24277 \begin_layout Section
24278 Security discussion
24279 \begin_inset CommandInset label
24280 LatexCommand label
24281 name "sec:Security-discussion"
24282
24283 \end_inset
24284
24285
24286 \end_layout
24287
24288 \begin_layout Standard
24289 The external material feature interfaces with a lot of external programs
24290  and does so automatically, so we have to consider the security implications
24291  of this.
24292  In particular, since you have the option of including your own filenames
24293  and/or parameter strings and those are expanded into a command, it seems
24294  that it would be possible to create a malicious document which executes
24295  arbitrary commands when a user views or prints the document.
24296  This is something we definitely want to avoid.
24297 \end_layout
24298
24299 \begin_layout Standard
24300 However, since the external program commands are specified in the template
24301  configuration file only, there are no security issues if \SpecialChar LyX
24302  is properly configure
24303 d with safe templates only.
24304  This is so because the external programs are invoked with the 
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309 execvp
24310 \end_layout
24311
24312 \end_inset
24313
24314 -system call rather than the 
24315 \begin_inset Flex Code
24316 status collapsed
24317
24318 \begin_layout Plain Layout
24319 system
24320 \end_layout
24321
24322 \end_inset
24323
24324  system-call, so it's not possible to execute arbitrary commands from the
24325  filename or parameter section via the shell.
24326 \end_layout
24327
24328 \begin_layout Standard
24329 This also implies that you are restricted in what command strings you can
24330  use in the external material templates.
24331  In particular, pipes and redirection are not readily available.
24332  This has to be so if \SpecialChar LyX
24333  should remain safe.
24334  If you want to use some of the shell features, you should write a safe
24335  script to do this in a controlled manner, and then invoke the script from
24336  the command string.
24337  
24338 \end_layout
24339
24340 \begin_layout Standard
24341 It is possible to design a template that interacts directly with the shell,
24342  but since this would allow a malicious user to execute arbitrary commands
24343  by writing clever filenames and/or parameters, we generally recommend that
24344  you only use safe scripts that work with the 
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 execvp
24350 \end_layout
24351
24352 \end_inset
24353
24354  system call in a controlled manner.
24355  Of course, for use in a controlled environment, it can be tempting to just
24356  fall back to use ordinary shell scripts.
24357  If you do so, be aware that you 
24358 \emph on
24359 will
24360 \emph default
24361  provide an easily exploitable security hole in your system.
24362  Of course it stands to reason that such unsafe templates will never be
24363  included in the standard \SpecialChar LyX
24364  distribution, although we do encourage people
24365  to submit new templates in the open source tradition.
24366  But \SpecialChar LyX
24367  as shipped from the official distribution channels will never have
24368  unsafe templates.
24369 \end_layout
24370
24371 \begin_layout Standard
24372 Including external material provides a lot of power, and you have to be
24373  careful not to introduce security hazards with this power.
24374  A subtle error in a single line in an innocent looking script can open
24375  the door to huge security problems.
24376  So if you do not fully understand the issues, we recommend that you consult
24377  a knowledgeable security professional or the \SpecialChar LyX
24378  development team if you have
24379  any questions about whether a given template is safe or not.
24380  And do this before you use it in an uncontrolled environment.
24381 \end_layout
24382
24383 \begin_layout Chapter
24384 \start_of_appendix
24385 List of supported \SpecialChar LyX
24386  functions to be used in layouts
24387 \begin_inset CommandInset label
24388 LatexCommand label
24389 name "chap:List-of-functions"
24390
24391 \end_inset
24392
24393
24394 \end_layout
24395
24396 \begin_layout Standard
24397 \align center
24398 \begin_inset Tabular
24399 <lyxtabular version="3" rows="11" columns="8">
24400 <features tabularvalignment="middle">
24401 <column alignment="left" valignment="top">
24402 <column alignment="left" valignment="top">
24403 <column alignment="left" valignment="top">
24404 <column alignment="left" valignment="top">
24405 <column alignment="left" valignment="top">
24406 <column alignment="left" valignment="top">
24407 <column alignment="left" valignment="top">
24408 <column alignment="left" valignment="top">
24409 <row>
24410 <cell alignment="left" valignment="top" usebox="none">
24411 \begin_inset Text
24412
24413 \begin_layout Plain Layout
24414 accents
24415 \end_layout
24416
24417 \end_inset
24418 </cell>
24419 <cell alignment="left" valignment="top" usebox="none">
24420 \begin_inset Text
24421
24422 \begin_layout Plain Layout
24423 booktabs
24424 \end_layout
24425
24426 \end_inset
24427 </cell>
24428 <cell alignment="left" valignment="top" usebox="none">
24429 \begin_inset Text
24430
24431 \begin_layout Plain Layout
24432 feyn
24433 \end_layout
24434
24435 \end_inset
24436 </cell>
24437 <cell alignment="left" valignment="top" usebox="none">
24438 \begin_inset Text
24439
24440 \begin_layout Plain Layout
24441 listings
24442 \end_layout
24443
24444 \end_inset
24445 </cell>
24446 <cell alignment="center" valignment="top" usebox="none">
24447 \begin_inset Text
24448
24449 \begin_layout Plain Layout
24450 natbib
24451 \end_layout
24452
24453 \end_inset
24454 </cell>
24455 <cell alignment="center" valignment="top" usebox="none">
24456 \begin_inset Text
24457
24458 \begin_layout Plain Layout
24459 rotfloat
24460 \end_layout
24461
24462 \end_inset
24463 </cell>
24464 <cell alignment="center" valignment="top" usebox="none">
24465 \begin_inset Text
24466
24467 \begin_layout Plain Layout
24468 tfrupee
24469 \end_layout
24470
24471 \end_inset
24472 </cell>
24473 <cell alignment="center" valignment="top" usebox="none">
24474 \begin_inset Text
24475
24476 \begin_layout Plain Layout
24477 wasysym
24478 \end_layout
24479
24480 \end_inset
24481 </cell>
24482 </row>
24483 <row>
24484 <cell alignment="left" valignment="top" usebox="none">
24485 \begin_inset Text
24486
24487 \begin_layout Plain Layout
24488 amsbsy
24489 \end_layout
24490
24491 \end_inset
24492 </cell>
24493 <cell alignment="left" valignment="top" usebox="none">
24494 \begin_inset Text
24495
24496 \begin_layout Plain Layout
24497 calc
24498 \end_layout
24499
24500 \end_inset
24501 </cell>
24502 <cell alignment="left" valignment="top" usebox="none">
24503 \begin_inset Text
24504
24505 \begin_layout Plain Layout
24506 fixltx2e
24507 \end_layout
24508
24509 \end_inset
24510 </cell>
24511 <cell alignment="left" valignment="top" usebox="none">
24512 \begin_inset Text
24513
24514 \begin_layout Plain Layout
24515 longtable
24516 \end_layout
24517
24518 \end_inset
24519 </cell>
24520 <cell alignment="center" valignment="top" usebox="none">
24521 \begin_inset Text
24522
24523 \begin_layout Plain Layout
24524 nomencl
24525 \end_layout
24526
24527 \end_inset
24528 </cell>
24529 <cell alignment="center" valignment="top" usebox="none">
24530 \begin_inset Text
24531
24532 \begin_layout Plain Layout
24533 rsphrase
24534 \end_layout
24535
24536 \end_inset
24537 </cell>
24538 <cell alignment="center" valignment="top" usebox="none">
24539 \begin_inset Text
24540
24541 \begin_layout Plain Layout
24542 tipa
24543 \end_layout
24544
24545 \end_inset
24546 </cell>
24547 <cell alignment="center" valignment="top" usebox="none">
24548 \begin_inset Text
24549
24550 \begin_layout Plain Layout
24551 wrapfig
24552 \end_layout
24553
24554 \end_inset
24555 </cell>
24556 </row>
24557 <row>
24558 <cell alignment="left" valignment="top" usebox="none">
24559 \begin_inset Text
24560
24561 \begin_layout Plain Layout
24562 amscd
24563 \end_layout
24564
24565 \end_inset
24566 </cell>
24567 <cell alignment="left" valignment="top" usebox="none">
24568 \begin_inset Text
24569
24570 \begin_layout Plain Layout
24571 CJK
24572 \end_layout
24573
24574 \end_inset
24575 </cell>
24576 <cell alignment="left" valignment="top" usebox="none">
24577 \begin_inset Text
24578
24579 \begin_layout Plain Layout
24580 float
24581 \end_layout
24582
24583 \end_inset
24584 </cell>
24585 <cell alignment="left" valignment="top" usebox="none">
24586 \begin_inset Text
24587
24588 \begin_layout Plain Layout
24589 lyxskak
24590 \end_layout
24591
24592 \end_inset
24593 </cell>
24594 <cell alignment="center" valignment="top" usebox="none">
24595 \begin_inset Text
24596
24597 \begin_layout Plain Layout
24598 pdfcolmk
24599 \end_layout
24600
24601 \end_inset
24602 </cell>
24603 <cell alignment="center" valignment="top" usebox="none">
24604 \begin_inset Text
24605
24606 \begin_layout Plain Layout
24607 setspace
24608 \end_layout
24609
24610 \end_inset
24611 </cell>
24612 <cell alignment="center" valignment="top" usebox="none">
24613 \begin_inset Text
24614
24615 \begin_layout Plain Layout
24616 tipx
24617 \end_layout
24618
24619 \end_inset
24620 </cell>
24621 <cell alignment="center" valignment="top" usebox="none">
24622 \begin_inset Text
24623
24624 \begin_layout Plain Layout
24625 xargs
24626 \end_layout
24627
24628 \end_inset
24629 </cell>
24630 </row>
24631 <row>
24632 <cell alignment="left" valignment="top" usebox="none">
24633 \begin_inset Text
24634
24635 \begin_layout Plain Layout
24636 amsmath
24637 \end_layout
24638
24639 \end_inset
24640 </cell>
24641 <cell alignment="left" valignment="top" usebox="none">
24642 \begin_inset Text
24643
24644 \begin_layout Plain Layout
24645 color
24646 \end_layout
24647
24648 \end_inset
24649 </cell>
24650 <cell alignment="left" valignment="top" usebox="none">
24651 \begin_inset Text
24652
24653 \begin_layout Plain Layout
24654 framed
24655 \end_layout
24656
24657 \end_inset
24658 </cell>
24659 <cell alignment="left" valignment="top" usebox="none">
24660 \begin_inset Text
24661
24662 \begin_layout Plain Layout
24663 makeidx
24664 \end_layout
24665
24666 \end_inset
24667 </cell>
24668 <cell alignment="center" valignment="top" usebox="none">
24669 \begin_inset Text
24670
24671 \begin_layout Plain Layout
24672 pdfpages
24673 \end_layout
24674
24675 \end_inset
24676 </cell>
24677 <cell alignment="center" valignment="top" usebox="none">
24678 \begin_inset Text
24679
24680 \begin_layout Plain Layout
24681 shapepar
24682 \end_layout
24683
24684 \end_inset
24685 </cell>
24686 <cell alignment="center" valignment="top" usebox="none">
24687 \begin_inset Text
24688
24689 \begin_layout Plain Layout
24690 tone
24691 \end_layout
24692
24693 \end_inset
24694 </cell>
24695 <cell alignment="center" valignment="top" usebox="none">
24696 \begin_inset Text
24697
24698 \begin_layout Plain Layout
24699 xcolor
24700 \end_layout
24701
24702 \end_inset
24703 </cell>
24704 </row>
24705 <row>
24706 <cell alignment="left" valignment="top" usebox="none">
24707 \begin_inset Text
24708
24709 \begin_layout Plain Layout
24710 amssymb
24711 \end_layout
24712
24713 \end_inset
24714 </cell>
24715 <cell alignment="left" valignment="top" usebox="none">
24716 \begin_inset Text
24717
24718 \begin_layout Plain Layout
24719 covington
24720 \end_layout
24721
24722 \end_inset
24723 </cell>
24724 <cell alignment="left" valignment="top" usebox="none">
24725 \begin_inset Text
24726
24727 \begin_layout Plain Layout
24728 graphicx
24729 \end_layout
24730
24731 \end_inset
24732 </cell>
24733 <cell alignment="left" valignment="top" usebox="none">
24734 \begin_inset Text
24735
24736 \begin_layout Plain Layout
24737 marvosym
24738 \end_layout
24739
24740 \end_inset
24741 </cell>
24742 <cell alignment="center" valignment="top" usebox="none">
24743 \begin_inset Text
24744
24745 \begin_layout Plain Layout
24746 pifont
24747 \end_layout
24748
24749 \end_inset
24750 </cell>
24751 <cell alignment="center" valignment="top" usebox="none">
24752 \begin_inset Text
24753
24754 \begin_layout Plain Layout
24755 slashed
24756 \end_layout
24757
24758 \end_inset
24759 </cell>
24760 <cell alignment="center" valignment="top" usebox="none">
24761 \begin_inset Text
24762
24763 \begin_layout Plain Layout
24764 txfonts
24765 \end_layout
24766
24767 \end_inset
24768 </cell>
24769 <cell alignment="center" valignment="top" usebox="none">
24770 \begin_inset Text
24771
24772 \begin_layout Plain Layout
24773 xy
24774 \end_layout
24775
24776 \end_inset
24777 </cell>
24778 </row>
24779 <row>
24780 <cell alignment="left" valignment="top" usebox="none">
24781 \begin_inset Text
24782
24783 \begin_layout Plain Layout
24784 amstext
24785 \end_layout
24786
24787 \end_inset
24788 </cell>
24789 <cell alignment="left" valignment="top" usebox="none">
24790 \begin_inset Text
24791
24792 \begin_layout Plain Layout
24793 csquotes
24794 \end_layout
24795
24796 \end_inset
24797 </cell>
24798 <cell alignment="left" valignment="top" usebox="none">
24799 \begin_inset Text
24800
24801 \begin_layout Plain Layout
24802 hhline
24803 \end_layout
24804
24805 \end_inset
24806 </cell>
24807 <cell alignment="left" valignment="top" usebox="none">
24808 \begin_inset Text
24809
24810 \begin_layout Plain Layout
24811 mathdesign
24812 \end_layout
24813
24814 \end_inset
24815 </cell>
24816 <cell alignment="center" valignment="top" usebox="none">
24817 \begin_inset Text
24818
24819 \begin_layout Plain Layout
24820 pmboxdraw
24821 \end_layout
24822
24823 \end_inset
24824 </cell>
24825 <cell alignment="center" valignment="top" usebox="none">
24826 \begin_inset Text
24827
24828 \begin_layout Plain Layout
24829 soul
24830 \end_layout
24831
24832 \end_inset
24833 </cell>
24834 <cell alignment="center" valignment="top" usebox="none">
24835 \begin_inset Text
24836
24837 \begin_layout Plain Layout
24838 ulem
24839 \end_layout
24840
24841 \end_inset
24842 </cell>
24843 <cell alignment="center" valignment="top" usebox="none">
24844 \begin_inset Text
24845
24846 \begin_layout Plain Layout
24847 yhmath
24848 \end_layout
24849
24850 \end_inset
24851 </cell>
24852 </row>
24853 <row>
24854 <cell alignment="left" valignment="top" usebox="none">
24855 \begin_inset Text
24856
24857 \begin_layout Plain Layout
24858 amsthm
24859 \end_layout
24860
24861 \end_inset
24862 </cell>
24863 <cell alignment="left" valignment="top" usebox="none">
24864 \begin_inset Text
24865
24866 \begin_layout Plain Layout
24867 dvipost
24868 \end_layout
24869
24870 \end_inset
24871 </cell>
24872 <cell alignment="left" valignment="top" usebox="none">
24873 \begin_inset Text
24874
24875 \begin_layout Plain Layout
24876 hyperref
24877 \end_layout
24878
24879 \end_inset
24880 </cell>
24881 <cell alignment="left" valignment="top" usebox="none">
24882 \begin_inset Text
24883
24884 \begin_layout Plain Layout
24885 mathdots
24886 \end_layout
24887
24888 \end_inset
24889 </cell>
24890 <cell alignment="center" valignment="top" usebox="none">
24891 \begin_inset Text
24892
24893 \begin_layout Plain Layout
24894 polyglossia
24895 \end_layout
24896
24897 \end_inset
24898 </cell>
24899 <cell alignment="center" valignment="top" usebox="none">
24900 \begin_inset Text
24901
24902 \begin_layout Plain Layout
24903 splitidx
24904 \end_layout
24905
24906 \end_inset
24907 </cell>
24908 <cell alignment="center" valignment="top" usebox="none">
24909 \begin_inset Text
24910
24911 \begin_layout Plain Layout
24912 undertilde
24913 \end_layout
24914
24915 \end_inset
24916 </cell>
24917 <cell alignment="center" valignment="top" usebox="none">
24918 \begin_inset Text
24919
24920 \begin_layout Plain Layout
24921
24922 \end_layout
24923
24924 \end_inset
24925 </cell>
24926 </row>
24927 <row>
24928 <cell alignment="left" valignment="top" usebox="none">
24929 \begin_inset Text
24930
24931 \begin_layout Plain Layout
24932 array
24933 \end_layout
24934
24935 \end_inset
24936 </cell>
24937 <cell alignment="left" valignment="top" usebox="none">
24938 \begin_inset Text
24939
24940 \begin_layout Plain Layout
24941 endnotes
24942 \end_layout
24943
24944 \end_inset
24945 </cell>
24946 <cell alignment="left" valignment="top" usebox="none">
24947 \begin_inset Text
24948
24949 \begin_layout Plain Layout
24950 ifsym
24951 \end_layout
24952
24953 \end_inset
24954 </cell>
24955 <cell alignment="left" valignment="top" usebox="none">
24956 \begin_inset Text
24957
24958 \begin_layout Plain Layout
24959 mathrsfs
24960 \end_layout
24961
24962 \end_inset
24963 </cell>
24964 <cell alignment="center" valignment="top" usebox="none">
24965 \begin_inset Text
24966
24967 \begin_layout Plain Layout
24968 prettyref
24969 \end_layout
24970
24971 \end_inset
24972 </cell>
24973 <cell alignment="center" valignment="top" usebox="none">
24974 \begin_inset Text
24975
24976 \begin_layout Plain Layout
24977 subfig
24978 \end_layout
24979
24980 \end_inset
24981 </cell>
24982 <cell alignment="center" valignment="top" usebox="none">
24983 \begin_inset Text
24984
24985 \begin_layout Plain Layout
24986 units
24987 \end_layout
24988
24989 \end_inset
24990 </cell>
24991 <cell alignment="center" valignment="top" usebox="none">
24992 \begin_inset Text
24993
24994 \begin_layout Plain Layout
24995
24996 \end_layout
24997
24998 \end_inset
24999 </cell>
25000 </row>
25001 <row>
25002 <cell alignment="left" valignment="top" usebox="none">
25003 \begin_inset Text
25004
25005 \begin_layout Plain Layout
25006 ascii
25007 \end_layout
25008
25009 \end_inset
25010 </cell>
25011 <cell alignment="left" valignment="top" usebox="none">
25012 \begin_inset Text
25013
25014 \begin_layout Plain Layout
25015 enumitem
25016 \end_layout
25017
25018 \end_inset
25019 </cell>
25020 <cell alignment="left" valignment="top" usebox="none">
25021 \begin_inset Text
25022
25023 \begin_layout Plain Layout
25024 ifthen
25025 \end_layout
25026
25027 \end_inset
25028 </cell>
25029 <cell alignment="left" valignment="top" usebox="none">
25030 \begin_inset Text
25031
25032 \begin_layout Plain Layout
25033 mhchem
25034 \end_layout
25035
25036 \end_inset
25037 </cell>
25038 <cell alignment="center" valignment="top" usebox="none">
25039 \begin_inset Text
25040
25041 \begin_layout Plain Layout
25042 pxfonts
25043 \end_layout
25044
25045 \end_inset
25046 </cell>
25047 <cell alignment="center" valignment="top" usebox="none">
25048 \begin_inset Text
25049
25050 \begin_layout Plain Layout
25051 subscript
25052 \end_layout
25053
25054 \end_inset
25055 </cell>
25056 <cell alignment="center" valignment="top" usebox="none">
25057 \begin_inset Text
25058
25059 \begin_layout Plain Layout
25060 url
25061 \end_layout
25062
25063 \end_inset
25064 </cell>
25065 <cell alignment="center" valignment="top" usebox="none">
25066 \begin_inset Text
25067
25068 \begin_layout Plain Layout
25069
25070 \end_layout
25071
25072 \end_inset
25073 </cell>
25074 </row>
25075 <row>
25076 <cell alignment="left" valignment="top" usebox="none">
25077 \begin_inset Text
25078
25079 \begin_layout Plain Layout
25080 bbding
25081 \end_layout
25082
25083 \end_inset
25084 </cell>
25085 <cell alignment="left" valignment="top" usebox="none">
25086 \begin_inset Text
25087
25088 \begin_layout Plain Layout
25089 esint
25090 \end_layout
25091
25092 \end_inset
25093 </cell>
25094 <cell alignment="left" valignment="top" usebox="none">
25095 \begin_inset Text
25096
25097 \begin_layout Plain Layout
25098 jurabib
25099 \end_layout
25100
25101 \end_inset
25102 </cell>
25103 <cell alignment="left" valignment="top" usebox="none">
25104 \begin_inset Text
25105
25106 \begin_layout Plain Layout
25107 multicol
25108 \end_layout
25109
25110 \end_inset
25111 </cell>
25112 <cell alignment="center" valignment="top" usebox="none">
25113 \begin_inset Text
25114
25115 \begin_layout Plain Layout
25116 refstyle
25117 \end_layout
25118
25119 \end_inset
25120 </cell>
25121 <cell alignment="center" valignment="top" usebox="none">
25122 \begin_inset Text
25123
25124 \begin_layout Plain Layout
25125 textcomp
25126 \end_layout
25127
25128 \end_inset
25129 </cell>
25130 <cell alignment="center" valignment="top" usebox="none">
25131 \begin_inset Text
25132
25133 \begin_layout Plain Layout
25134 varioref
25135 \end_layout
25136
25137 \end_inset
25138 </cell>
25139 <cell alignment="center" valignment="top" usebox="none">
25140 \begin_inset Text
25141
25142 \begin_layout Plain Layout
25143
25144 \end_layout
25145
25146 \end_inset
25147 </cell>
25148 </row>
25149 <row>
25150 <cell alignment="center" valignment="top" usebox="none">
25151 \begin_inset Text
25152
25153 \begin_layout Plain Layout
25154 bm
25155 \end_layout
25156
25157 \end_inset
25158 </cell>
25159 <cell alignment="center" valignment="top" usebox="none">
25160 \begin_inset Text
25161
25162 \begin_layout Plain Layout
25163 fancybox
25164 \end_layout
25165
25166 \end_inset
25167 </cell>
25168 <cell alignment="center" valignment="top" usebox="none">
25169 \begin_inset Text
25170
25171 \begin_layout Plain Layout
25172 latexsym
25173 \end_layout
25174
25175 \end_inset
25176 </cell>
25177 <cell alignment="center" valignment="top" usebox="none">
25178 \begin_inset Text
25179
25180 \begin_layout Plain Layout
25181 multirow
25182 \end_layout
25183
25184 \end_inset
25185 </cell>
25186 <cell alignment="center" valignment="top" usebox="none">
25187 \begin_inset Text
25188
25189 \begin_layout Plain Layout
25190 rotating
25191 \end_layout
25192
25193 \end_inset
25194 </cell>
25195 <cell alignment="center" valignment="top" usebox="none">
25196 \begin_inset Text
25197
25198 \begin_layout Plain Layout
25199 textgreek
25200 \end_layout
25201
25202 \end_inset
25203 </cell>
25204 <cell alignment="center" valignment="top" usebox="none">
25205 \begin_inset Text
25206
25207 \begin_layout Plain Layout
25208 verbatim
25209 \end_layout
25210
25211 \end_inset
25212 </cell>
25213 <cell alignment="center" valignment="top" usebox="none">
25214 \begin_inset Text
25215
25216 \begin_layout Plain Layout
25217
25218 \end_layout
25219
25220 \end_inset
25221 </cell>
25222 </row>
25223 </lyxtabular>
25224
25225 \end_inset
25226
25227
25228 \end_layout
25229
25230 \begin_layout Chapter
25231 Names of available colors to be used in layouts
25232 \begin_inset CommandInset label
25233 LatexCommand label
25234 name "chap:Names-of-colors"
25235
25236 \end_inset
25237
25238
25239 \end_layout
25240
25241 \begin_layout Standard
25242 The colors listed here are the standard colors and the those that you can
25243  adjust in the \SpecialChar LyX
25244  preferences.
25245 \end_layout
25246
25247 \begin_layout Description
25248 none
25249 \family roman
25250 \series medium
25251 \shape up
25252 \size normal
25253 \emph off
25254 \bar no
25255 \strikeout off
25256 \uuline off
25257 \uwave off
25258 \noun off
25259 \color none
25260  No particular color – clear or default
25261 \end_layout
25262
25263 \begin_layout Description
25264 black
25265 \end_layout
25266
25267 \begin_layout Description
25268 white
25269 \end_layout
25270
25271 \begin_layout Description
25272 red
25273 \end_layout
25274
25275 \begin_layout Description
25276 green
25277 \end_layout
25278
25279 \begin_layout Description
25280 blue
25281 \end_layout
25282
25283 \begin_layout Description
25284 cyan
25285 \end_layout
25286
25287 \begin_layout Description
25288 magenta
25289 \end_layout
25290
25291 \begin_layout Description
25292 yellow
25293 \end_layout
25294
25295 \begin_layout Description
25296 added_space Added space marker color
25297 \end_layout
25298
25299 \begin_layout Description
25300 addedtext Added text color
25301 \end_layout
25302
25303 \begin_layout Description
25304 appendix Appendix marker color
25305 \end_layout
25306
25307 \begin_layout Description
25308 background Background color
25309 \end_layout
25310
25311 \begin_layout Description
25312 bottomarea Bottom area color
25313 \end_layout
25314
25315 \begin_layout Description
25316 branchlabel Label color for branches
25317 \end_layout
25318
25319 \begin_layout Description
25320 buttonbg Color used for bottom background
25321 \end_layout
25322
25323 \begin_layout Description
25324 buttonhoverbg Color used for button background under focus
25325 \end_layout
25326
25327 \begin_layout Description
25328 buttonframe Color for inset button frames
25329 \end_layout
25330
25331 \begin_layout Description
25332 changebar Changebar color
25333 \end_layout
25334
25335 \begin_layout Description
25336 changedtextauthor1 Changed text color author 1
25337 \end_layout
25338
25339 \begin_layout Description
25340 changedtextauthor2 Changed text color author 2
25341 \end_layout
25342
25343 \begin_layout Description
25344 changedtextauthor3 Changed text color author 3
25345 \end_layout
25346
25347 \begin_layout Description
25348 changedtextauthor4 Changed text color author 4
25349 \end_layout
25350
25351 \begin_layout Description
25352 changedtextauthor5 Changed text color author 5
25353 \end_layout
25354
25355 \begin_layout Description
25356 collapsable_inset_frame Collapsable insets framecolor
25357 \end_layout
25358
25359 \begin_layout Description
25360 collapsable_inset_text Collapsable insets text color
25361 \end_layout
25362
25363 \begin_layout Description
25364 command Text color for command insets
25365 \end_layout
25366
25367 \begin_layout Description
25368 commandbg Background color for command insets
25369 \end_layout
25370
25371 \begin_layout Description
25372 commandframe Frame color for command insets
25373 \end_layout
25374
25375 \begin_layout Description
25376 comment color for comments
25377 \end_layout
25378
25379 \begin_layout Description
25380 commentbg Background color of comments
25381 \end_layout
25382
25383 \begin_layout Description
25384 cursor Cursor color
25385 \end_layout
25386
25387 \begin_layout Description
25388 deletedtext Deleted text color
25389 \end_layout
25390
25391 \begin_layout Description
25392 deletedtextmodifier Deleted text modifying color
25393 \end_layout
25394
25395 \begin_layout Description
25396 depthbar Color for the depth bars in the margin
25397 \end_layout
25398
25399 \begin_layout Description
25400 eolmarker End of line marker color
25401 \end_layout
25402
25403 \begin_layout Description
25404 error Color of the \SpecialChar LaTeX
25405  error box
25406 \end_layout
25407
25408 \begin_layout Description
25409 footlabel Label color for footnotes
25410 \end_layout
25411
25412 \begin_layout Description
25413 graphicsbg Graphics inset background color
25414 \end_layout
25415
25416 \begin_layout Description
25417 greyedout Label color for greyedout insets
25418 \end_layout
25419
25420 \begin_layout Description
25421 greyedoutbg Background color of greyedout inset
25422 \end_layout
25423
25424 \begin_layout Description
25425 greyedouttext Color for greyedout inset text
25426 \end_layout
25427
25428 \begin_layout Description
25429 indexlabel Label color for index insets
25430 \end_layout
25431
25432 \begin_layout Description
25433 ignore The color is ignored
25434 \end_layout
25435
25436 \begin_layout Description
25437 inherit The color is inherited
25438 \end_layout
25439
25440 \begin_layout Description
25441 inlinecompletion Inline completion color
25442 \end_layout
25443
25444 \begin_layout Description
25445 insetbg Inset marker background color
25446 \end_layout
25447
25448 \begin_layout Description
25449 insetframe Inset marker frame color
25450 \end_layout
25451
25452 \begin_layout Description
25453 language Color for marking foreign language words
25454 \end_layout
25455
25456 \begin_layout Description
25457 latex Text color in \SpecialChar LaTeX
25458  mode
25459 \end_layout
25460
25461 \begin_layout Description
25462 listingsbg Background color of listings inset
25463 \end_layout
25464
25465 \begin_layout Description
25466 marginlabel Label color for margin notes
25467 \end_layout
25468
25469 \begin_layout Description
25470 math Math inset text color
25471 \end_layout
25472
25473 \begin_layout Description
25474 mathbg Math inset background color
25475 \end_layout
25476
25477 \begin_layout Description
25478 mathcorners Math inset frame color not under focus
25479 \end_layout
25480
25481 \begin_layout Description
25482 mathframe Math inset frame color under focus
25483 \end_layout
25484
25485 \begin_layout Description
25486 mathline Math line color
25487 \end_layout
25488
25489 \begin_layout Description
25490 mathmacrobg Macro math inset background color
25491 \end_layout
25492
25493 \begin_layout Description
25494 mathmacroblend Macro math blended color
25495 \end_layout
25496
25497 \begin_layout Description
25498 mathmacroframe Macro math frame color
25499 \end_layout
25500
25501 \begin_layout Description
25502 mathmacrohoverbg Macro math inset background color hovered
25503 \end_layout
25504
25505 \begin_layout Description
25506 mathmacrolabel Macro math label color
25507 \end_layout
25508
25509 \begin_layout Description
25510 mathmacronewarg Macro template color for new parameters
25511 \end_layout
25512
25513 \begin_layout Description
25514 mathmacrooldarg Macro template color for old parameters
25515 \end_layout
25516
25517 \begin_layout Description
25518 newpage New page color
25519 \end_layout
25520
25521 \begin_layout Description
25522 nonunique_inlinecompletion Inline completion color for the non-unique part
25523 \end_layout
25524
25525 \begin_layout Description
25526 notebg Background color of notes
25527 \end_layout
25528
25529 \begin_layout Description
25530 notelabel Label color for notes
25531 \end_layout
25532
25533 \begin_layout Description
25534 pagebreak Page break/line break color
25535 \end_layout
25536
25537 \begin_layout Description
25538 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25539 \end_layout
25540
25541 \begin_layout Description
25542 phantomtext Text color for phantom insets
25543 \end_layout
25544
25545 \begin_layout Description
25546 preview The color used for previews
25547 \end_layout
25548
25549 \begin_layout Description
25550 previewframe Preview frame color
25551 \end_layout
25552
25553 \begin_layout Description
25554 regexpframe Color for regexp frame
25555 \end_layout
25556
25557 \begin_layout Description
25558 selection Background color of selected text
25559 \end_layout
25560
25561 \begin_layout Description
25562 selectiontext Foreground color of selected text
25563 \end_layout
25564
25565 \begin_layout Description
25566 shadedbg Background color of shaded box
25567 \end_layout
25568
25569 \begin_layout Description
25570 special Special chars text color
25571 \end_layout
25572
25573 \begin_layout Description
25574 tabularline Table line color
25575 \end_layout
25576
25577 \begin_layout Description
25578 tabularonoffline Table line color
25579 \end_layout
25580
25581 \begin_layout Description
25582 urllabel Label color for URL insets
25583 \end_layout
25584
25585 \begin_layout Description
25586 urltext Color for URL inset text
25587 \end_layout
25588
25589 \end_body
25590 \end_document