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