]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Customization: update the list of colors.
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
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 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 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 0
86 \use_package amssymb 0
87 \use_package cancel 0
88 \use_package esint 0
89 \use_package mathdots 1
90 \use_package mathtools 0
91 \use_package mhchem 0
92 \use_package stackrel 0
93 \use_package stmaryrd 0
94 \use_package undertilde 0
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \end_header
134
135 \begin_body
136
137 \begin_layout Title
138 Customizing \SpecialChar LyX
139 : Features for the Advanced User
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 If you have comments or error corrections, please send them to the \SpecialChar LyX
151  Documentatio
152 n mailing list, 
153 \begin_inset CommandInset href
154 LatexCommand href
155 target "lyx-docs@lists.lyx.org"
156 type "mailto:"
157 literal "false"
158
159 \end_inset
160
161 .
162  Include 
163 \begin_inset Quotes eld
164 \end_inset
165
166 [Customization]
167 \begin_inset Quotes erd
168 \end_inset
169
170  in the subject header, and please cc the current maintainer of this file,
171  Richard Heck <rgheck@comcast.net>.
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184 Version 2.3.x 
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Standard
197 \begin_inset Note Note
198 status open
199
200 \begin_layout Plain Layout
201 Please use change tracking when modifying this document.
202  This makes it easier for our translators to recognize things that have
203  been changed, and it helps the maintainer keep up-to-date with what's been
204  done.
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Chapter
213 Introduction
214 \end_layout
215
216 \begin_layout Standard
217 This manual covers the customization features present in \SpecialChar LyX
218 .
219  In it, we discuss issues like keyboard shortcuts, screen previewing options,
220  printer options, sending commands to \SpecialChar LyX
221  via the \SpecialChar LyX
222  Server, internationalization,
223  installing new \SpecialChar LaTeX
224  classes and \SpecialChar LyX
225  layouts, etc.
226  We can't possibly hope to touch on everything you can change—our developers
227  add new features faster than we can document them—but we will explain the
228  most common customizations and hopefully point you in the right direction
229  for some of the more obscure ones.
230 \end_layout
231
232 \begin_layout Standard
233 \begin_inset Branch OutDated
234 inverted 0
235 status collapsed
236
237 \begin_layout Standard
238 Information from previous versions of this document that now seems to be
239  outdated is contained in the OutDated branch of this document.
240  By default, this information will not appear in the \SpecialChar LaTeX
241  output.
242 \end_layout
243
244 \end_inset
245
246
247 \end_layout
248
249 \begin_layout Chapter
250 \SpecialChar LyX
251  configuration files
252 \end_layout
253
254 \begin_layout Standard
255 This chapter aims to help you to find your way through the \SpecialChar LyX
256  configuration
257  files.
258  Before continuing to read this chapter, you should find out where your
259  \SpecialChar LyX
260  library and user directories are by using 
261 \begin_inset Flex Noun
262 status collapsed
263
264 \begin_layout Plain Layout
265 Help\SpecialChar menuseparator
266 About
267 \begin_inset space ~
268 \end_inset
269
270 LyX
271 \end_layout
272
273 \end_inset
274
275 .
276  The library directory is the place where \SpecialChar LyX
277  places its system-wide configuration
278  files; the user directory is where you can place your modified versions.
279  We will call the former 
280 \begin_inset Flex Code
281 status collapsed
282
283 \begin_layout Plain Layout
284 LyXDir
285 \end_layout
286
287 \end_inset
288
289  and the latter 
290 \begin_inset Flex Noun
291 status collapsed
292
293 \begin_layout Plain Layout
294 UserDir
295 \end_layout
296
297 \end_inset
298
299  in the remainder of this document.
300  
301 \end_layout
302
303 \begin_layout Section
304 What's in 
305 \begin_inset Flex Code
306 status collapsed
307
308 \begin_layout Plain Layout
309 LyXDir
310 \end_layout
311
312 \end_inset
313
314 ?
315 \end_layout
316
317 \begin_layout Standard
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327  and its sub-directories contain a number of files and that can be used
328  to customize \SpecialChar LyX
329 's behavior.
330  You can change many of these files from within \SpecialChar LyX
331  itself through the 
332 \begin_inset Flex Noun
333 status collapsed
334
335 \begin_layout Plain Layout
336 Tools\SpecialChar menuseparator
337 Preferences
338 \end_layout
339
340 \end_inset
341
342  dialog.
343  Most customization that you will want to do in \SpecialChar LyX
344  is possible through this
345  dialog.
346  However, many other inner aspects of \SpecialChar LyX
347  can be customized by modifying the
348  files in 
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358 .
359  These files fall in different categories, described in the following subsection
360 s.
361 \end_layout
362
363 \begin_layout Subsection
364 Automatically generated files
365 \end_layout
366
367 \begin_layout Standard
368 The files, which are to be found in 
369 \begin_inset Flex Noun
370 status collapsed
371
372 \begin_layout Plain Layout
373 UserDir
374 \end_layout
375
376 \end_inset
377
378 , are generated when you configure \SpecialChar LyX
379 .
380  They contain various default values that are guessed by inspection.
381  In general, it is not a good idea to modify them, since they might be overwritt
382 en at any time.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  contains defaults for various commands.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  contains the list of packages that have been recognized by \SpecialChar LyX
411 .
412  It is currently unused by the \SpecialChar LyX
413  program itself, but the information extracted,
414  and more, is made available with 
415 \begin_inset Flex Noun
416 status collapsed
417
418 \begin_layout Plain Layout
419 Help\SpecialChar menuseparator
420 \SpecialChar LaTeX
421
422 \begin_inset space ~
423 \end_inset
424
425 Configuration
426 \end_layout
427
428 \end_inset
429
430 .
431 \end_layout
432
433 \begin_layout Labeling
434 \labelwidthstring 00.00.0000
435 \begin_inset Flex Code
436 status collapsed
437
438 \begin_layout Plain Layout
439 textclass.lst
440 \end_layout
441
442 \end_inset
443
444  the list of text classes that have been found in your 
445 \begin_inset Flex Code
446 status collapsed
447
448 \begin_layout Plain Layout
449 layout/
450 \end_layout
451
452 \end_inset
453
454  directories, along with the associated \SpecialChar LaTeX
455  document class and their description.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 lyxmodules.lst
465 \end_layout
466
467 \end_inset
468
469  the list of layout modules found in your 
470 \begin_inset Flex Code
471 status collapsed
472
473 \begin_layout Plain Layout
474 layout/
475 \end_layout
476
477 \end_inset
478
479  directories
480 \end_layout
481
482 \begin_layout Labeling
483 \labelwidthstring 00.00.0000
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 *files.lst
489 \end_layout
490
491 \end_inset
492
493  lists of various sorts of \SpecialChar LaTeX
494 -related files found on your system
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 doc/\SpecialChar LaTeX
504 Config.lyx
505 \end_layout
506
507 \end_inset
508
509  is automatically generated during configuration from the file 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 \SpecialChar LaTeX
515 Config.lyx.in
516 \end_layout
517
518 \end_inset
519
520 .
521  It contains information on your \SpecialChar LaTeX
522  configuration.
523 \end_layout
524
525 \begin_layout Subsection
526 Directories
527 \end_layout
528
529 \begin_layout Standard
530 These directories are duplicated between 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 LyXDir
536 \end_layout
537
538 \end_inset
539
540  and 
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 .
551  If a particular files exists in both places, the one in 
552 \begin_inset Flex Code
553 status collapsed
554
555 \begin_layout Plain Layout
556 UserDir
557 \end_layout
558
559 \end_inset
560
561  will be used.
562 \end_layout
563
564 \begin_layout Labeling
565 \labelwidthstring 00.00.0000
566 \begin_inset Flex Code
567 status collapsed
568
569 \begin_layout Plain Layout
570 bind/
571 \end_layout
572
573 \end_inset
574
575  this directory contains files with the extension 
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 .bind
581 \end_layout
582
583 \end_inset
584
585  that define the keybindings used in \SpecialChar LyX
586 .
587  If there exists an internationalized version of the bind file named 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 $LANG_xxx.bind
593 \end_layout
594
595 \end_inset
596
597 , that will be used first.
598 \end_layout
599
600 \begin_layout Labeling
601 \labelwidthstring 00.00.0000
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 citeengines/
607 \end_layout
608
609 \end_inset
610
611  contains files with the extension 
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 .citeengine
617 \end_layout
618
619 \end_inset
620
621  which define the diverse citation possibilities (natbib, biblatex etc.).
622  See 
623 \begin_inset CommandInset ref
624 LatexCommand ref
625 reference "subsec:Cite-Engine-Files"
626 plural "false"
627 caps "false"
628 noprefix "false"
629
630 \end_inset
631
632  for details.
633 \end_layout
634
635 \begin_layout Labeling
636 \labelwidthstring 00.00.0000
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 clipart/
642 \end_layout
643
644 \end_inset
645
646  contains graphics files that can be included in documents.
647  
648 \end_layout
649
650 \begin_layout Labeling
651 \labelwidthstring 00.00.0000
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656 doc/
657 \end_layout
658
659 \end_inset
660
661  contains \SpecialChar LyX
662  documentation files (including the one you are currently reading).
663  The file 
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 \SpecialChar LaTeX
669 Config.lyx
670 \end_layout
671
672 \end_inset
673
674  deserves special attention, as noted above.
675  The internationalized help docs are in subdirectories 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 doc/xx
681 \end_layout
682
683 \end_inset
684
685  where 
686 \begin_inset Quotes eld
687 \end_inset
688
689 xx
690 \begin_inset Quotes erd
691 \end_inset
692
693  is the ISO language code.
694  See 
695 \begin_inset CommandInset ref
696 LatexCommand ref
697 reference "cha:Internationalizing-LyX"
698
699 \end_inset
700
701  for details.
702 \end_layout
703
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
707 status collapsed
708
709 \begin_layout Plain Layout
710 examples/
711 \end_layout
712
713 \end_inset
714
715  contains example files that explain how to use some features.
716  In the file browser, press the 
717 \begin_inset Flex Noun
718 status collapsed
719
720 \begin_layout Plain Layout
721 Examples
722 \end_layout
723
724 \end_inset
725
726  button to get there.
727 \end_layout
728
729 \begin_layout Labeling
730 \labelwidthstring 00.00.0000
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 images/
736 \end_layout
737
738 \end_inset
739
740  contains image files that are used by the 
741 \begin_inset Flex Noun
742 status collapsed
743
744 \begin_layout Plain Layout
745 Document
746 \end_layout
747
748 \end_inset
749
750  dialog.
751  In addition, it also contains the individual icons used in the toolbar
752  and the banners that can be shown when \SpecialChar LyX
753  is launched.
754 \end_layout
755
756 \begin_layout Labeling
757 \labelwidthstring 00.00.0000
758 \begin_inset Flex Code
759 status collapsed
760
761 \begin_layout Plain Layout
762 kbd/
763 \end_layout
764
765 \end_inset
766
767  contains keyboard keymapping files.
768  See 
769 \begin_inset CommandInset ref
770 LatexCommand ref
771 reference "sec:International-Keymap-Stuff"
772
773 \end_inset
774
775  for details.
776 \end_layout
777
778 \begin_layout Labeling
779 \labelwidthstring 00.00.0000
780 \begin_inset Flex Code
781 status collapsed
782
783 \begin_layout Plain Layout
784 layouts/
785 \end_layout
786
787 \end_inset
788
789  contains the text class and module files described in 
790 \begin_inset CommandInset ref
791 LatexCommand ref
792 reference "cha:Installing-New-Document"
793
794 \end_inset
795
796 .
797 \end_layout
798
799 \begin_layout Labeling
800 \labelwidthstring 00.00.0000
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 lyx2lyx
806 \end_layout
807
808 \end_inset
809
810  contains the 
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 lyx2lyx
816 \end_layout
817
818 \end_inset
819
820  Python scripts used to convert between \SpecialChar LyX
821  versions.
822  These can be run from the command line if, say, you want to batch-convert
823  files.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 scripts/
833 \end_layout
834
835 \end_inset
836
837  contains some files that demonstrate the capabilities of the 
838 \begin_inset Flex Noun
839 status collapsed
840
841 \begin_layout Plain Layout
842 External
843 \begin_inset space ~
844 \end_inset
845
846 Template
847 \end_layout
848
849 \end_inset
850
851  feature.
852  Also contains some scripts used by \SpecialChar LyX
853  itself.
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 templates/
863 \end_layout
864
865 \end_inset
866
867  contains the standard \SpecialChar LyX
868  template files described in 
869 \begin_inset CommandInset ref
870 LatexCommand ref
871 reference "subsec:Creating-Templates"
872
873 \end_inset
874
875 .
876 \end_layout
877
878 \begin_layout Labeling
879 \labelwidthstring 00.00.0000
880 \begin_inset Flex Code
881 status collapsed
882
883 \begin_layout Plain Layout
884 ui/
885 \end_layout
886
887 \end_inset
888
889  contains files with the extension 
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 .ui
895 \end_layout
896
897 \end_inset
898
899  that define the user interface to \SpecialChar LyX
900 .
901  That is, the files define which items appear in which menus and the items
902  appearing on the toolbar.
903 \end_layout
904
905 \begin_layout Labeling
906 \labelwidthstring 00.00.0000
907 \begin_inset Flex Code
908 status collapsed
909
910 \begin_layout Plain Layout
911 xtemplates/
912 \end_layout
913
914 \end_inset
915
916  contains files with the extension 
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 .xtemplate
922 \end_layout
923
924 \end_inset
925
926  which define the templates for the insertion of external material to a
927  \SpecialChar LyX
928  document; see 
929 \begin_inset CommandInset ref
930 LatexCommand ref
931 reference "chap:Including-External-Material"
932
933 \end_inset
934
935 .
936 \end_layout
937
938 \begin_layout Subsection
939 Files you don't want to modify
940 \end_layout
941
942 \begin_layout Standard
943 These files are used internally by \SpecialChar LyX
944  and you generally do not need to modify
945  them unless you are a developer.
946 \end_layout
947
948 \begin_layout Labeling
949 \labelwidthstring 00.00.0000
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954 CREDITS
955 \end_layout
956
957 \end_inset
958
959  this file contains the list of \SpecialChar LyX
960  developers.
961  The contents are displayed with the menu entry 
962 \begin_inset Flex Noun
963 status collapsed
964
965 \begin_layout Plain Layout
966 Help\SpecialChar menuseparator
967 About
968 \begin_inset space ~
969 \end_inset
970
971 LyX
972 \end_layout
973
974 \end_inset
975
976 .
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 chkconfig.ltx
986 \end_layout
987
988 \end_inset
989
990  this is a \SpecialChar LaTeX
991  script used during the configuration process.
992  Do not run directly.
993 \end_layout
994
995 \begin_layout Labeling
996 \labelwidthstring 00.00.0000
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 configure.py
1002 \end_layout
1003
1004 \end_inset
1005
1006  this is a Python script that is used to re-configure \SpecialChar LyX
1007 .
1008  It creates configuration files in the directory it was run from.
1009 \end_layout
1010
1011 \begin_layout Subsection
1012 Other files needing a line or two
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 encodings
1022 \end_layout
1023
1024 \end_inset
1025
1026  this contains tables describing how different character encodings can be
1027  mapped to Unicode
1028 \end_layout
1029
1030 \begin_layout Labeling
1031 \labelwidthstring 00.00.0000
1032 \begin_inset Flex Code
1033 status collapsed
1034
1035 \begin_layout Plain Layout
1036 languages
1037 \end_layout
1038
1039 \end_inset
1040
1041  this file contains a list of all the languages currently supported by \SpecialChar LyX
1042 .
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 latexfonts
1052 \end_layout
1053
1054 \end_inset
1055
1056  contains information about the supported fonts.
1057 \end_layout
1058
1059 \begin_layout Labeling
1060 \labelwidthstring 00.00.0000
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065 layouttranslations
1066 \end_layout
1067
1068 \end_inset
1069
1070  this file contains translations for internationalized paragraph styles
1071  (see 
1072 \begin_inset CommandInset ref
1073 LatexCommand ref
1074 reference "subsec:I18n"
1075
1076 \end_inset
1077
1078 ).
1079 \end_layout
1080
1081 \begin_layout Labeling
1082 \labelwidthstring 00.00.0000
1083 \begin_inset Flex Code
1084 status collapsed
1085
1086 \begin_layout Plain Layout
1087 unicodesymbols
1088 \end_layout
1089
1090 \end_inset
1091
1092  this file contains information about unicode-encoded glyphs and the way
1093  they are supported by \SpecialChar LyX
1094  via \SpecialChar LaTeX
1095 .
1096 \end_layout
1097
1098 \begin_layout Section
1099 Your local configuration directory
1100 \end_layout
1101
1102 \begin_layout Standard
1103 Even if you are using \SpecialChar LyX
1104  as an unprivileged user, you might want to change
1105  \SpecialChar LyX
1106  configuration for your own use.
1107  The 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 UserDir
1113 \end_layout
1114
1115 \end_inset
1116
1117  directory contains all your personal configuration files.
1118  This is the directory described as 
1119 \begin_inset Quotes eld
1120 \end_inset
1121
1122 user directory
1123 \begin_inset Quotes erd
1124 \end_inset
1125
1126  in 
1127 \begin_inset Flex Noun
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 Help\SpecialChar menuseparator
1132 About
1133 \begin_inset space ~
1134 \end_inset
1135
1136 LyX
1137 \end_layout
1138
1139 \end_inset
1140
1141 .
1142  This directory is used as a mirror of 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 LyXDir
1148 \end_layout
1149
1150 \end_inset
1151
1152 , which means that every file in 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 UserDir
1158 \end_layout
1159
1160 \end_inset
1161
1162  is a replacement for the corresponding file in 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 LyXDir
1168 \end_layout
1169
1170 \end_inset
1171
1172 .
1173  Any configuration file described in the above sections can be placed either
1174  in the system-wide directory, in which case it will affect all users, or
1175  in your local directory for your own use.
1176 \end_layout
1177
1178 \begin_layout Standard
1179 To make things clearer, let's provide a few examples:
1180 \end_layout
1181
1182 \begin_layout Itemize
1183 The preferences set in the 
1184 \begin_inset Flex Noun
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 Tools\SpecialChar menuseparator
1189 Preferences
1190 \end_layout
1191
1192 \end_inset
1193
1194  dialog are saved to a file 
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 preferences
1200 \end_layout
1201
1202 \end_inset
1203
1204  in 
1205 \begin_inset Flex Code
1206 status collapsed
1207
1208 \begin_layout Plain Layout
1209 UserDir
1210 \end_layout
1211
1212 \end_inset
1213
1214 .
1215 \end_layout
1216
1217 \begin_layout Itemize
1218 When you reconfigure using 
1219 \begin_inset Flex Noun
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 Tools\SpecialChar menuseparator
1224 Reconfigure
1225 \end_layout
1226
1227 \end_inset
1228
1229 , \SpecialChar LyX
1230  runs the 
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 configure.py
1236 \end_layout
1237
1238 \end_inset
1239
1240  script, and the resulting files are written in your local configuration
1241  directory.
1242  This means that any additional text class file that you might have added
1243  in 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 UserDir/layouts
1249 \end_layout
1250
1251 \end_inset
1252
1253  will be added to the list of classes in the 
1254 \begin_inset Flex Noun
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 Document\SpecialChar menuseparator
1259 Settings
1260 \end_layout
1261
1262 \end_inset
1263
1264  dialog.
1265 \end_layout
1266
1267 \begin_layout Itemize
1268 If you get some updated documentation from \SpecialChar LyX
1269  ftp site and cannot install
1270  it because you do not have sysadmin rights on your system, you can just
1271  copy the files in 
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 UserDir/doc/
1277 \end_layout
1278
1279 \end_inset
1280
1281  and the items in the 
1282 \begin_inset Flex Noun
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 Help
1287 \end_layout
1288
1289 \end_inset
1290
1291  menu will open them!
1292 \end_layout
1293
1294 \begin_layout Section
1295 Running \SpecialChar LyX
1296  with multiple configurations
1297 \end_layout
1298
1299 \begin_layout Standard
1300 The configuration freedom of the local configuration directory may not suffice
1301  if you want to have more than one configuration at your disposal.
1302  For example, you may want to be use different key bindings or printer settings
1303  at different times.
1304  You can achieve this by having several such directories.
1305  You then specify which directory to use at run-time.
1306 \end_layout
1307
1308 \begin_layout Standard
1309 Invoking \SpecialChar LyX
1310  with the command line switch 
1311 \begin_inset Flex Code
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 -userdir
1316 \end_layout
1317
1318 \end_inset
1319
1320  
1321 \emph on
1322 <some directory>
1323 \emph default
1324  instructs the program to read the configuration from that directory, and
1325  not from the default directory.
1326  (You can determine the default directory by running \SpecialChar LyX
1327  without the 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 -userdir
1333 \end_layout
1334
1335 \end_inset
1336
1337  switch.) If the specified directory does not exist, \SpecialChar LyX
1338  offers to create it
1339  for you, just like it does for the default directory on the first time
1340  you run the program.
1341  You can modify the configuration options in this additional user directory
1342  exactly as you would for the default directory.
1343  These directories are completely independent (but read on).
1344  Note that setting the environment variable 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349 LYX_USERDIR_VER
1350 \end_layout
1351
1352 \end_inset
1353
1354  to some value has exactly the same effect.
1355 \end_layout
1356
1357 \begin_layout Standard
1358 Having several configurations also requires more maintenance: if you want
1359  to add a new layout to 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 NewUserDir/layouts
1365 \end_layout
1366
1367 \end_inset
1368
1369  which you want available from all your configurations, you must add it
1370  to each directory separately.
1371  You can avoid this with the following trick: after \SpecialChar LyX
1372  creates the additional
1373  directory, most of the subdirectories (see above) are empty.
1374  If you want the new configuration to mirror an existing one, replace the
1375  empty subdirectory with a symbolic link to the matching subdirectory in
1376  the existing configuration.
1377  Take care with the 
1378 \begin_inset Flex Code
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 doc/
1383 \end_layout
1384
1385 \end_inset
1386
1387  subdirectory, however, since it contains a file written by the configuration
1388  script (also accessible through 
1389 \begin_inset Flex Noun
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 Tools\SpecialChar menuseparator
1394 Reconfigure
1395 \end_layout
1396
1397 \end_inset
1398
1399 ) which is configuration-specific.
1400 \end_layout
1401
1402 \begin_layout Chapter
1403 The Preferences dialog
1404 \end_layout
1405
1406 \begin_layout Standard
1407 All options of the preferences dialog are described in the Appendix 
1408 \emph on
1409 The Preferences Dialog
1410 \emph default
1411  in the 
1412 \emph on
1413 User's Guide
1414 \emph default
1415 .
1416  For some options you might find here more details.
1417 \end_layout
1418
1419 \begin_layout Section
1420 Formats
1421 \begin_inset CommandInset label
1422 LatexCommand label
1423 name "sec:Formats"
1424
1425 \end_inset
1426
1427
1428 \end_layout
1429
1430 \begin_layout Standard
1431 The first step is to define your file formats if they are not already defined.
1432  To do so, open the 
1433 \begin_inset Flex Noun
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437 Tools\SpecialChar menuseparator
1438 Preferences
1439 \end_layout
1440
1441 \end_inset
1442
1443  dialog.
1444  Under 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 File Handling\SpecialChar menuseparator
1450 File formats
1451 \end_layout
1452
1453 \end_inset
1454
1455  press the 
1456 \begin_inset Flex Noun
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 New
1461 \end_layout
1462
1463 \end_inset
1464
1465  button to define your new format.
1466  The 
1467 \begin_inset Flex Noun
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 Format
1472 \end_layout
1473
1474 \end_inset
1475
1476  field contains the name used to identify the format in the GUI.
1477  The 
1478 \begin_inset Flex Noun
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 Short Name
1483 \end_layout
1484
1485 \end_inset
1486
1487  is used to identify the format internally.
1488  You will also need to enter a file extension.
1489  These are all required.
1490  The optional 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Shortcut
1496 \end_layout
1497
1498 \end_inset
1499
1500  field is used to provide a keyboard shortcut on the menus.
1501  (For example, pressing 
1502 \begin_inset Flex Noun
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 Ctrl+D
1507 \end_layout
1508
1509 \end_inset
1510
1511  will 
1512 \begin_inset Flex Noun
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 Document\SpecialChar menuseparator
1517 View (Other Formats)\SpecialChar menuseparator
1518 DVI
1519 \end_layout
1520
1521 \end_inset
1522
1523 .) 
1524 \end_layout
1525
1526 \begin_layout Standard
1527 A Format can have a 
1528 \begin_inset Flex Noun
1529 status collapsed
1530
1531 \begin_layout Plain Layout
1532 Viewer
1533 \end_layout
1534
1535 \end_inset
1536
1537  and an 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Editor
1543 \end_layout
1544
1545 \end_inset
1546
1547  associated with it.
1548  For example, you might want to use 
1549 \begin_inset Flex Noun
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 Ghostview
1554 \end_layout
1555
1556 \end_inset
1557
1558  to view PostScript files.
1559  You can enter the command needed to start the program in the corresponding
1560  fields.
1561  In defining this command, you can use the four variables listed in the
1562  next section.
1563  The viewer is launched when you view an image in \SpecialChar LyX
1564  or use the 
1565 \begin_inset Flex Noun
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 Document\SpecialChar menuseparator
1570 View
1571 \end_layout
1572
1573 \end_inset
1574
1575  menu.
1576  The editor is for example launched when you right-click on an image and
1577  choose 
1578 \begin_inset Flex Noun
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 Edit externally
1583 \end_layout
1584
1585 \end_inset
1586
1587  in the appearing context menu.
1588 \end_layout
1589
1590 \begin_layout Standard
1591 The 
1592 \begin_inset Flex Noun
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 MIME
1597 \end_layout
1598
1599 \end_inset
1600
1601  type of a format is optional, but if it is specified, it must be unique
1602  across all formats.
1603  It is used to detect files of this format from the file contents.
1604  For some important file formats there is no MIME type officially registered
1605  with the 
1606 \begin_inset CommandInset href
1607 LatexCommand href
1608 name "IANA"
1609 target "http://www.iana.org/assignments/media-types/"
1610 literal "false"
1611
1612 \end_inset
1613
1614 .
1615  Therefore \SpecialChar LyX
1616  uses the extended list of MIME types as specified by 
1617 \begin_inset CommandInset href
1618 LatexCommand href
1619 name "freedesktop.org"
1620 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1621 literal "false"
1622
1623 \end_inset
1624
1625 .
1626 \end_layout
1627
1628 \begin_layout Standard
1629 The 
1630 \begin_inset Flex Noun
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 Document format
1635 \end_layout
1636
1637 \end_inset
1638
1639  option tells \SpecialChar LyX
1640  that a format is suitable for document export.
1641  If this is set and if a suitable conversion route exists (see 
1642 \begin_inset CommandInset ref
1643 LatexCommand ref
1644 reference "sec:Converters"
1645
1646 \end_inset
1647
1648 ), the format will appear in the 
1649 \begin_inset Flex Noun
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 File\SpecialChar menuseparator
1654 Export
1655 \end_layout
1656
1657 \end_inset
1658
1659  menu.
1660  The format will also appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 Document\SpecialChar menuseparator
1666 View
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu if a viewer is specified for the format.
1672  Pure image formats, such as 
1673 \begin_inset Flex Code
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 png
1678 \end_layout
1679
1680 \end_inset
1681
1682 , should not use this option.
1683  Formats that can both represent vector graphics and documents like 
1684 \begin_inset Flex Code
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 pdf
1689 \end_layout
1690
1691 \end_inset
1692
1693  should use it.
1694 \end_layout
1695
1696 \begin_layout Standard
1697 The option 
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Vector graphics format
1703 \end_layout
1704
1705 \end_inset
1706
1707  tells \SpecialChar LyX
1708  that a format can contain vector graphics.
1709  This information is used to determine the target format of included graphics
1710  for 
1711 \begin_inset Flex Noun
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 pdflatex
1716 \end_layout
1717
1718 \end_inset
1719
1720  export.
1721  Included graphics may need to be converted to either 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 pdf
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 png
1737 \end_layout
1738
1739 \end_inset
1740
1741 , or 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 jpg
1747 \end_layout
1748
1749 \end_inset
1750
1751 , since 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 pdflatex
1757 \end_layout
1758
1759 \end_inset
1760
1761  cannot handle other image formats.
1762  If an included graphic is not already in 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 pdf
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Flex Noun
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 png
1778 \end_layout
1779
1780 \end_inset
1781
1782 , or 
1783 \begin_inset Flex Noun
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 jpg
1788 \end_layout
1789
1790 \end_inset
1791
1792  format, it is converted to 
1793 \begin_inset Flex Noun
1794 status collapsed
1795
1796 \begin_layout Plain Layout
1797 pdf
1798 \end_layout
1799
1800 \end_inset
1801
1802  if the vector format option is set, and otherwise to 
1803 \begin_inset Flex Noun
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 png
1808 \end_layout
1809
1810 \end_inset
1811
1812 .
1813 \end_layout
1814
1815 \begin_layout Section
1816 Copiers
1817 \end_layout
1818
1819 \begin_layout Standard
1820 Since all conversions from one format to another take place in \SpecialChar LyX
1821 's temporary
1822  directory, it is sometimes necessary to modify a file before copying it
1823  to the temporary directory in order that the conversion may be performed.
1824 \begin_inset Foot
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 For example, the file may refer to other files—images, for example—using
1829  relative file names, and these may become invalid when the file is copied
1830  to the temporary directory.
1831 \end_layout
1832
1833 \end_inset
1834
1835  This is done by a Copier: It copies a file to (or from) the temporary directory
1836  and may modify it in the process.
1837 \end_layout
1838
1839 \begin_layout Standard
1840 The definitions of the copiers may use eight variables:
1841 \end_layout
1842
1843 \begin_layout Labeling
1844 \labelwidthstring 00.00.0000
1845 \begin_inset Flex Code
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 $$s
1850 \end_layout
1851
1852 \end_inset
1853
1854  The \SpecialChar LyX
1855  system directory (e.
1856 \begin_inset space \thinspace{}
1857 \end_inset
1858
1859 g.
1860 \begin_inset space \space{}
1861 \end_inset
1862
1863
1864 \begin_inset Flex Noun
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 /usr/share/lyx
1869 \end_layout
1870
1871 \end_inset
1872
1873 ).
1874 \end_layout
1875
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 $$i
1883 \end_layout
1884
1885 \end_inset
1886
1887  The input file
1888 \end_layout
1889
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 $$o
1897 \end_layout
1898
1899 \end_inset
1900
1901  The output file
1902 \end_layout
1903
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Flex Code
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 $$b
1911 \end_layout
1912
1913 \end_inset
1914
1915  The base name (without filename extension) in the \SpecialChar LyX
1916  temporary directory
1917 \end_layout
1918
1919 \begin_layout Labeling
1920 \labelwidthstring 00.00.0000
1921 \begin_inset Flex Code
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 $$p
1926 \end_layout
1927
1928 \end_inset
1929
1930  The full directory path of the \SpecialChar LyX
1931  temporary directory
1932 \end_layout
1933
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 $$r
1941 \end_layout
1942
1943 \end_inset
1944
1945  The full pathname to the original \SpecialChar LyX
1946  file being processed
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$f
1956 \end_layout
1957
1958 \end_inset
1959
1960  The filename (without any directory path) of the \SpecialChar LyX
1961  file.
1962 \end_layout
1963
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 $$l
1971 \end_layout
1972
1973 \end_inset
1974
1975  The `\SpecialChar LaTeX
1976  name'
1977 \end_layout
1978
1979 \begin_layout Standard
1980 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1981 's 
1982 \series bold
1983
1984 \backslash
1985 include
1986 \series default
1987  command.
1988  It is relevant only when exporting files suitable for such inclusion.
1989 \end_layout
1990
1991 \begin_layout Standard
1992 Copiers can be used to do almost anything with output files.
1993  For example, suppose you want generated pdf files to be copied to a special
1994  directory, 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 /home/you/pdf/
2000 \end_layout
2001
2002 \end_inset
2003
2004 .
2005  Then you could write a shell script such as this one:
2006 \end_layout
2007
2008 \begin_layout Standard
2009 \begin_inset listings
2010 inline false
2011 status open
2012
2013 \begin_layout Plain Layout
2014
2015 #!/bin/bash
2016 \end_layout
2017
2018 \begin_layout Plain Layout
2019
2020 FROMFILE=$1
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 TOFILE=`basename $2`
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 cp $FROMFILE /home/you/pdf/$TOFILE
2031 \end_layout
2032
2033 \end_inset
2034
2035 Save it in your local \SpecialChar LyX
2036  directory—say, 
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 /home/you/.lyx/scripts/pdfcopier.sh
2042 \end_layout
2043
2044 \end_inset
2045
2046 —and make it executable, if you need to do so on your platform.
2047  Then, in the 
2048 \begin_inset Flex Noun
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Tools\SpecialChar menuseparator
2053 Preferences
2054 \end_layout
2055
2056 \end_inset
2057
2058  dialog, select under 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 File Handling\SpecialChar menuseparator
2064 File formats
2065 \end_layout
2066
2067 \end_inset
2068
2069  the 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 PDF(pdflatex)
2075 \end_layout
2076
2077 \end_inset
2078
2079  format—or one of the other pdf formats—and enter 
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 pdfcopier.sh $$i $$o
2085 \end_layout
2086
2087 \end_inset
2088
2089  into the 
2090 \begin_inset Flex Noun
2091 status collapsed
2092
2093 \begin_layout Plain Layout
2094 Copier
2095 \end_layout
2096
2097 \end_inset
2098
2099  field.
2100  
2101 \end_layout
2102
2103 \begin_layout Standard
2104 Copiers are used by \SpecialChar LyX
2105  in various of its own conversions.
2106  For example, if appropriate programs are found, \SpecialChar LyX
2107  will automatically install
2108  copiers for the 
2109 \begin_inset Flex Noun
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 HTML
2114 \end_layout
2115
2116 \end_inset
2117
2118  and 
2119 \begin_inset Flex Noun
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 HTML
2124 \begin_inset space ~
2125 \end_inset
2126
2127 (MS Word)
2128 \end_layout
2129
2130 \end_inset
2131
2132  formats.
2133  When these formats are exported, the copier sees that not just the main
2134  HTML file but various associated files (style files, images, etc.) are also
2135  copied.
2136  All these files are written to a subdirectory of the directory in which
2137  the original \SpecialChar LyX
2138  file was found.
2139 \begin_inset Foot
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 This copier can be customized.
2144  The optional 
2145 \begin_inset Quotes eld
2146 \end_inset
2147
2148 -e
2149 \begin_inset Quotes erd
2150 \end_inset
2151
2152  argument takes a comma-separated list of extensions to be copied; if it
2153  is omitted, all files will be copied.
2154  The 
2155 \begin_inset Quotes eld
2156 \end_inset
2157
2158 -t
2159 \begin_inset Quotes erd
2160 \end_inset
2161
2162  argument determines the extension added to the generated directory.
2163  By default, it is 
2164 \begin_inset Quotes eld
2165 \end_inset
2166
2167
2168 \begin_inset Flex Noun
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 LyXconv
2173 \end_layout
2174
2175 \end_inset
2176
2177
2178 \begin_inset Quotes erd
2179 \end_inset
2180
2181 , so HTML generated from 
2182 \begin_inset Flex Noun
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 /path/to/filename.lyx
2187 \end_layout
2188
2189 \end_inset
2190
2191  will end up in 
2192 \begin_inset Flex Noun
2193 status collapsed
2194
2195 \begin_layout Plain Layout
2196 /path/to/filename.html.LyXconv
2197 \end_layout
2198
2199 \end_inset
2200
2201 .
2202  
2203 \end_layout
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \begin_layout Section
2211 Converters
2212 \begin_inset CommandInset label
2213 LatexCommand label
2214 name "sec:Converters"
2215
2216 \end_inset
2217
2218
2219 \end_layout
2220
2221 \begin_layout Standard
2222 You can define your own Converters to convert files between different formats.
2223  This is done in the 
2224 \begin_inset Flex Noun
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 Tools\SpecialChar menuseparator
2229 Preferences\SpecialChar menuseparator
2230 File Handling\SpecialChar menuseparator
2231 Converters
2232 \end_layout
2233
2234 \end_inset
2235
2236  dialog.
2237 \end_layout
2238
2239 \begin_layout Standard
2240 To define a new converter, select the 
2241 \begin_inset Flex Noun
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 From
2246 \begin_inset space ~
2247 \end_inset
2248
2249 format
2250 \end_layout
2251
2252 \end_inset
2253
2254  and 
2255 \begin_inset Flex Noun
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 To
2260 \begin_inset space ~
2261 \end_inset
2262
2263 format
2264 \end_layout
2265
2266 \end_inset
2267
2268  from the drop-down lists, enter the command needed for the conversion,
2269  and then press the 
2270 \begin_inset Flex Noun
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 Add
2275 \end_layout
2276
2277 \end_inset
2278
2279  button.
2280  Several variables can be used in the definition of converters:
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$s
2290 \end_layout
2291
2292 \end_inset
2293
2294  The \SpecialChar LyX
2295  system directory
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 $$i
2305 \end_layout
2306
2307 \end_inset
2308
2309  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 $$o
2319 \end_layout
2320
2321 \end_inset
2322
2323  The output file
2324 \end_layout
2325
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332 $$b
2333 \end_layout
2334
2335 \end_inset
2336
2337  The base filename of the input file (i.
2338 \begin_inset space \thinspace{}
2339 \end_inset
2340
2341 g., without the extension)
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 $$p
2351 \end_layout
2352
2353 \end_inset
2354
2355  The path to the input file
2356 \end_layout
2357
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 $$r
2365 \end_layout
2366
2367 \end_inset
2368
2369  The path to the original input file (this is different from $$p when a
2370  chain of converters is called)
2371 \end_layout
2372
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Flex Code
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379 $$e
2380 \end_layout
2381
2382 \end_inset
2383
2384  The iconv name for the encoding of the document.
2385 \end_layout
2386
2387 \begin_layout Standard
2388 In the 
2389 \begin_inset Flex Noun
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393 Extra
2394 \begin_inset space ~
2395 \end_inset
2396
2397 Flag
2398 \end_layout
2399
2400 \end_inset
2401
2402  field you can enter the following flags, separated by commas:
2403 \end_layout
2404
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 latex
2412 \end_layout
2413
2414 \end_inset
2415
2416  This converter runs some form of \SpecialChar LaTeX
2417 .
2418  This will make \SpecialChar LyX
2419 's \SpecialChar LaTeX
2420  error logs available.
2421 \end_layout
2422
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 needaux
2430 \end_layout
2431
2432 \end_inset
2433
2434  Needs the \SpecialChar LaTeX
2435  
2436 \begin_inset Flex Noun
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 .aux
2441 \end_layout
2442
2443 \end_inset
2444
2445  file for the conversion.
2446 \end_layout
2447
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 nice
2455 \end_layout
2456
2457 \end_inset
2458
2459  Needs a 
2460 \begin_inset Quotes eld
2461 \end_inset
2462
2463 nice
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467  file from the backend, which in practice means a \SpecialChar LaTeX
2468  file like the one we
2469  would export, without 
2470 \begin_inset Flex Code
2471 status collapsed
2472
2473 \begin_layout Plain Layout
2474 input@path
2475 \end_layout
2476
2477 \end_inset
2478
2479 .
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 xml
2489 \end_layout
2490
2491 \end_inset
2492
2493  Output is XML.
2494 \end_layout
2495
2496 \begin_layout Standard
2497 The following three flags are not really flags at all because they take
2498  an argument in the 
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 key
2504 \begin_inset space ~
2505 \end_inset
2506
2507 =
2508 \begin_inset space ~
2509 \end_inset
2510
2511 value
2512 \end_layout
2513
2514 \end_inset
2515
2516  format:
2517 \end_layout
2518
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521 \begin_inset Flex Code
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 parselog
2526 \end_layout
2527
2528 \end_inset
2529
2530  If set, the converter's standard error will be redirected to a file 
2531 \begin_inset Flex Code
2532 status collapsed
2533
2534 \begin_layout Plain Layout
2535 infile.out
2536 \end_layout
2537
2538 \end_inset
2539
2540 , and the script given as argument will be run as: 
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 script < infile.out > infile.log
2546 \end_layout
2547
2548 \end_inset
2549
2550 .
2551  The argument may contain 
2552 \begin_inset Flex Code
2553 status collapsed
2554
2555 \begin_layout Plain Layout
2556 $$s
2557 \end_layout
2558
2559 \end_inset
2560
2561 .
2562 \end_layout
2563
2564 \begin_layout Labeling
2565 \labelwidthstring 00.00.0000
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 resultdir
2571 \end_layout
2572
2573 \end_inset
2574
2575  The name of the directory in which the converter will dump the generated
2576  files.
2577  \SpecialChar LyX
2578  will not create this directory, and it does not copy anything into it,
2579  though it will copy this directory to the destination.
2580  The argument may contain 
2581 \begin_inset Flex Code
2582 status collapsed
2583
2584 \begin_layout Plain Layout
2585 $$b
2586 \end_layout
2587
2588 \end_inset
2589
2590 , which will be replaced by the base name of the input and output files,
2591  respectively, when the directory is copied.
2592 \begin_inset Newline newline
2593 \end_inset
2594
2595 Note that resultdir and usetempdir make no sense together.
2596  The latter will be ignored if the former is given.
2597 \end_layout
2598
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 resultfile
2606 \end_layout
2607
2608 \end_inset
2609
2610  Determines the output file name and may, contain 
2611 \begin_inset Flex Code
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 $$b
2616 \end_layout
2617
2618 \end_inset
2619
2620 .
2621  Sensible only with resultdir and optional even then; if not given, it defaults
2622  to `index'.
2623 \end_layout
2624
2625 \begin_layout Standard
2626 None of these last three are presently used in any of the converters that
2627  are installed with \SpecialChar LyX
2628 .
2629  
2630 \end_layout
2631
2632 \begin_layout Standard
2633 You do not have to define converters for all formats between which you want
2634  to convert.
2635  For example, you will note that there is no `\SpecialChar LyX
2636  to PostScript' converter,
2637  but \SpecialChar LyX
2638  will export PostScript.
2639  It does so by first creating a \SpecialChar LaTeX
2640  file (no converter needs to be defined
2641  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2642  to DVI' converter,
2643  and finally converting the resulting DVI file to PostScript.
2644  \SpecialChar LyX
2645  finds such `chains' of converters automatically, and it will always choose
2646  the shortest possible chain.
2647  You can, though, still define multiple conversion methods between file
2648  formats.
2649  For example, the standard \SpecialChar LyX
2650  configuration provides five ways to convert
2651  \SpecialChar LaTeX
2652  to PDF:
2653 \end_layout
2654
2655 \begin_layout Enumerate
2656 Directly, using 
2657 \begin_inset Flex Noun
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 pdflatex
2662 \end_layout
2663
2664 \end_inset
2665
2666
2667 \end_layout
2668
2669 \begin_layout Enumerate
2670 via (DVI and) PostScript, using 
2671 \begin_inset Flex Noun
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 ps2pdf
2676 \end_layout
2677
2678 \end_inset
2679
2680
2681 \end_layout
2682
2683 \begin_layout Enumerate
2684 via DVI, using 
2685 \begin_inset Flex Noun
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 dvipdfm
2690 \end_layout
2691
2692 \end_inset
2693
2694
2695 \end_layout
2696
2697 \begin_layout Enumerate
2698 directly using 
2699 \begin_inset Flex Noun
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 Xe\SpecialChar TeX
2704
2705 \end_layout
2706
2707 \end_inset
2708
2709
2710 \end_layout
2711
2712 \begin_layout Enumerate
2713 directly using 
2714 \begin_inset Flex Noun
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Lua\SpecialChar TeX
2719
2720 \end_layout
2721
2722 \end_inset
2723
2724
2725 \end_layout
2726
2727 \begin_layout Standard
2728 To define such alternate chains, you must define multiple target `file formats',
2729  as described in 
2730 \begin_inset CommandInset ref
2731 LatexCommand ref
2732 reference "sec:Formats"
2733
2734 \end_inset
2735
2736 .
2737  For example, in the standard configuration, the formats named 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 pdf
2743 \end_layout
2744
2745 \end_inset
2746
2747  (for 
2748 \begin_inset Flex Noun
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 ps2pdf
2753 \end_layout
2754
2755 \end_inset
2756
2757 ), 
2758 \begin_inset Flex Noun
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 pdf2
2763 \end_layout
2764
2765 \end_inset
2766
2767  (for 
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 pdflatex
2773 \end_layout
2774
2775 \end_inset
2776
2777 ), 
2778 \begin_inset Flex Noun
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782 pdf3
2783 \end_layout
2784
2785 \end_inset
2786
2787  (for 
2788 \begin_inset Flex Noun
2789 status collapsed
2790
2791 \begin_layout Plain Layout
2792 dvipdfm
2793 \end_layout
2794
2795 \end_inset
2796
2797 ), 
2798 \begin_inset Flex Noun
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 pdf4
2803 \end_layout
2804
2805 \end_inset
2806
2807  (for 
2808 \begin_inset Flex Noun
2809 status collapsed
2810
2811 \begin_layout Plain Layout
2812 Xe\SpecialChar TeX
2813
2814 \end_layout
2815
2816 \end_inset
2817
2818 ), and 
2819 \begin_inset Flex Noun
2820 status collapsed
2821
2822 \begin_layout Plain Layout
2823 pdf5
2824 \end_layout
2825
2826 \end_inset
2827
2828  (for 
2829 \begin_inset Flex Noun
2830 status collapsed
2831
2832 \begin_layout Plain Layout
2833 Lua\SpecialChar TeX
2834
2835 \end_layout
2836
2837 \end_inset
2838
2839 ) are defined, all of which share the extension 
2840 \begin_inset Flex Noun
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 .pdf
2845 \end_layout
2846
2847 \end_inset
2848
2849 , and which correspond to the conversion methods just mentioned.
2850 \end_layout
2851
2852 \begin_layout Chapter
2853 Internationalizing \SpecialChar LyX
2854
2855 \begin_inset CommandInset label
2856 LatexCommand label
2857 name "cha:Internationalizing-LyX"
2858
2859 \end_inset
2860
2861
2862 \end_layout
2863
2864 \begin_layout Standard
2865 \SpecialChar LyX
2866  supports using a translated interface.
2867  Last time we checked, \SpecialChar LyX
2868  provided text in thirty languages.
2869  The language of choice is called your 
2870 \emph on
2871 locale
2872 \emph default
2873 .
2874  (For further reading on locale settings, see also the documentation for
2875  locale that comes with your operating system.
2876  For Linux, the manual page for 
2877 \begin_inset Flex Code
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 locale(5)
2882 \end_layout
2883
2884 \end_inset
2885
2886  could be a good place to start).
2887 \end_layout
2888
2889 \begin_layout Standard
2890 Notice that these translations will work, but do contain a few flaws.
2891  In particular, all dialogs have been designed with the English text in
2892  mind, which means that some of the translated text will be too large to
2893  fit within the space allocated.
2894  This is only a display problem and will not cause any harm.
2895  Also, you will find that some of the translations do not define shortcut
2896  keys for everything.
2897  Sometimes, there are simply not enough free letters to do it.
2898  Other times, the translator just hasn't got around to doing it yet.
2899  Our localization team, which you may wish to join,
2900 \begin_inset Foot
2901 status collapsed
2902
2903 \begin_layout Plain Layout
2904 If you are a fluent speaker of a language other than English, joining these
2905  teams is a great way to give back to the \SpecialChar LyX
2906  community!
2907 \end_layout
2908
2909 \end_inset
2910
2911  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2912 .
2913 \end_layout
2914
2915 \begin_layout Section
2916 Translating \SpecialChar LyX
2917
2918 \end_layout
2919
2920 \begin_layout Subsection
2921 Translating the graphical user interface (text messages).
2922 \end_layout
2923
2924 \begin_layout Standard
2925 \SpecialChar LyX
2926  uses the 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  library to handle the internationalization of the interface.
2937  To have \SpecialChar LyX
2938  speak your favorite language in all menus and dialogs, you need
2939  a 
2940 \begin_inset Flex Code
2941 status collapsed
2942
2943 \begin_layout Plain Layout
2944 po
2945 \end_layout
2946
2947 \end_inset
2948
2949 -file for that language.
2950  When this is available, you'll have to generate a 
2951 \begin_inset Flex Code
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 mo
2956 \end_layout
2957
2958 \end_inset
2959
2960 -file from it and install the 
2961 \begin_inset Flex Code
2962 status collapsed
2963
2964 \begin_layout Plain Layout
2965 mo
2966 \end_layout
2967
2968 \end_inset
2969
2970 -file.
2971  The process of doing all of this is explained in the documentation for
2972  GNU 
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 gettext
2978 \end_layout
2979
2980 \end_inset
2981
2982 .
2983  It is possible to do this just for yourself, but if you're going to do
2984  it, you might as well share the results of your labors with the rest of
2985  the \SpecialChar LyX
2986  community.
2987  Send a message to the \SpecialChar LyX
2988  developers' list for more information about how
2989  to proceed.
2990 \end_layout
2991
2992 \begin_layout Standard
2993 In short, this is what you should do (xx denotes the language code):
2994 \end_layout
2995
2996 \begin_layout Itemize
2997 Check out the \SpecialChar LyX
2998  source code.
2999  (See the 
3000 \begin_inset CommandInset href
3001 LatexCommand href
3002 name "information on the web"
3003 target "http://www.lyx.org/HowToUseGIT"
3004 literal "false"
3005
3006 \end_inset
3007
3008 .)
3009 \end_layout
3010
3011 \begin_layout Itemize
3012 Copy the file 
3013 \begin_inset Flex Code
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 lyx.pot
3018 \end_layout
3019
3020 \end_inset
3021
3022  to the folder of the 
3023 \begin_inset Flex Code
3024 status collapsed
3025
3026 \begin_layout Plain Layout
3027 **.po
3028 \end_layout
3029
3030 \end_inset
3031
3032  files.
3033  Then rename it to 
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 xx.po
3039 \end_layout
3040
3041 \end_inset
3042
3043 .
3044  (If 
3045 \begin_inset Flex Code
3046 status collapsed
3047
3048 \begin_layout Plain Layout
3049 lyx.pot
3050 \end_layout
3051
3052 \end_inset
3053
3054  doesn't exist anywhere, it can be remade with the console command 
3055 \begin_inset Flex Code
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059 make lyx.pot
3060 \end_layout
3061
3062 \end_inset
3063
3064  in that directory, or you can use an existing po-file for some other language
3065  as a template).
3066 \end_layout
3067
3068 \begin_layout Itemize
3069 Edit 
3070 \begin_inset Flex Code
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 xx.po
3075 \end_layout
3076
3077 \end_inset
3078
3079 .
3080 \begin_inset Foot
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084 This is just a text file, so it can be edited in any text editor.
3085  But there are also specialized programs that support such editing, such
3086  as 
3087 \family typewriter
3088 Poedit
3089 \family default
3090  (for all platforms) or 
3091 \family typewriter
3092 KBabel
3093 \family default
3094  (for KDE).
3095  
3096 \family typewriter
3097 Emacs
3098 \family default
3099  contains a `mode' for editing 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 po
3105 \end_layout
3106
3107 \end_inset
3108
3109  files, as well, see 
3110 \begin_inset Flex URL
3111 status open
3112
3113 \begin_layout Plain Layout
3114
3115 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3116 \backslash
3117 #PO-Mode
3118 \end_layout
3119
3120 \end_inset
3121
3122 .
3123 \end_layout
3124
3125 \end_inset
3126
3127  For some menu- and widget-labels, there are also shortcut keys that should
3128  be translated.
3129  Those keys are marked after a `|', and should be translated according to
3130  the words and phrases of the language.
3131  You should also fill also out the information at the beginning of the new
3132  
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 po
3138 \end_layout
3139
3140 \end_inset
3141
3142 -file with your email-address, etc., so people know where to reach you with
3143  suggestions and entertaining flames.
3144 \end_layout
3145
3146 \begin_layout Standard
3147 If you are just doing this on your own, then:
3148 \end_layout
3149
3150 \begin_layout Itemize
3151 Generate 
3152 \begin_inset Flex Code
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 xx.mo
3157 \end_layout
3158
3159 \end_inset
3160
3161 .
3162  This can be done with 
3163 \begin_inset Flex Code
3164 status collapsed
3165
3166 \begin_layout Plain Layout
3167 msgfmt -o xx.mo < xx.po
3168 \end_layout
3169
3170 \end_inset
3171
3172 .
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 Copy the 
3177 \begin_inset Flex Code
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 mo
3182 \end_layout
3183
3184 \end_inset
3185
3186 -file to your locale-tree, at the correct directory for application messages
3187  for the language
3188 \series bold
3189  
3190 \series default
3191 xx, and under the name 
3192 \begin_inset Flex Code
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 lyx.mo
3197 \end_layout
3198
3199 \end_inset
3200
3201  (e.
3202 \begin_inset space \thinspace{}
3203 \end_inset
3204
3205 g.
3206 \begin_inset space \space{}
3207 \end_inset
3208
3209
3210 \begin_inset Flex Code
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3215 \end_layout
3216
3217 \end_inset
3218
3219
3220 \series bold
3221 .
3222 \end_layout
3223
3224 \begin_layout Standard
3225 As said, however, it would be best if the new 
3226 \begin_inset Flex Code
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230 po
3231 \end_layout
3232
3233 \end_inset
3234
3235  file could be added to the \SpecialChar LyX
3236  distribution, so others can use it.
3237  Adding it involves making additional changes to \SpecialChar LyX
3238 .
3239  So send an email to the developers' mailing list if you're interested in
3240  doing that.
3241 \end_layout
3242
3243 \begin_layout Subsubsection
3244 Ambiguous messages
3245 \end_layout
3246
3247 \begin_layout Standard
3248 Sometimes it turns out that one English message needs to be translated into
3249  different messages in the target language.
3250  One example is the message 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 To
3256 \end_layout
3257
3258 \end_inset
3259
3260  which has the German translation 
3261 \lang german
3262 Nach
3263 \lang english
3264  or 
3265 \lang german
3266 Bis
3267 \lang english
3268 , depending upon exactly what the English 
3269 \begin_inset Quotes eld
3270 \end_inset
3271
3272 to
3273 \begin_inset Quotes erd
3274 \end_inset
3275
3276  means.
3277  GNU 
3278 \begin_inset Flex Code
3279 status collapsed
3280
3281 \begin_layout Plain Layout
3282 gettext
3283 \end_layout
3284
3285 \end_inset
3286
3287  does not handle such ambiguous translations.
3288  Therefore you have to add some context information to the message: Instead
3289  of 
3290 \begin_inset Flex Code
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 To
3295 \end_layout
3296
3297 \end_inset
3298
3299  it becomes 
3300 \begin_inset Flex Code
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 To[[as in 'From format x to format y']]
3305 \end_layout
3306
3307 \end_inset
3308
3309  and 
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314 To[[as in 'From page x to page y']].
3315 \end_layout
3316
3317 \end_inset
3318
3319  Now the two occurrences of 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 To
3325 \end_layout
3326
3327 \end_inset
3328
3329  are different for 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 gettext
3335 \end_layout
3336
3337 \end_inset
3338
3339  and can be translated correctly to 
3340 \lang german
3341 Nach
3342 \lang english
3343  and 
3344 \lang german
3345 Bis
3346 \lang english
3347 , respectively.
3348 \end_layout
3349
3350 \begin_layout Standard
3351 Of course the context information needs to be stripped off the original
3352  message when no translation is used.
3353  Therefore you have to put it in double square brackets at the end of the
3354  message (see the example above).
3355  The translation mechanism of \SpecialChar LyX
3356  ensures that everything in double square
3357  brackets at the end of messages is removed before displaying the message.
3358 \end_layout
3359
3360 \begin_layout Subsection
3361 Translating the documentation.
3362 \end_layout
3363
3364 \begin_layout Standard
3365 The online documentation (in the 
3366 \begin_inset Flex Noun
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 Help
3371 \end_layout
3372
3373 \end_inset
3374
3375 -menu) can (and should!) be translated.
3376  If there are translated versions of the documentation available
3377 \begin_inset Foot
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 As of March 2008, at least some of the documents have been translated into
3382  fourteen languages, with the Tutorial available in a few more.
3383 \end_layout
3384
3385 \end_inset
3386
3387  and the locale is set accordingly, these will be used automagically by
3388  \SpecialChar LyX
3389 .
3390  \SpecialChar LyX
3391  looks for translated versions as 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 LyXDir/doc/xx/DocName.lyx
3397 \end_layout
3398
3399 \end_inset
3400
3401 , where 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 xx
3407 \end_layout
3408
3409 \end_inset
3410
3411  is the code for the language currently in use.
3412  If there are no translated documents, the default English versions will
3413  be displayed.
3414  Note that the translated versions must have the same filenames (
3415 \begin_inset Flex Code
3416 status collapsed
3417
3418 \begin_layout Plain Layout
3419 DocName
3420 \end_layout
3421
3422 \end_inset
3423
3424  above) as the original.
3425  If you feel up to translating the documentation (an excellent way to proof-read
3426  the original documentation by the way!), there are a few things you should
3427  do right away:
3428 \end_layout
3429
3430 \begin_layout Itemize
3431 Check out the documentation translation web page at 
3432 \begin_inset CommandInset href
3433 LatexCommand href
3434 name "http://www.lyx.org/Translation"
3435 target "http://www.lyx.org/Translation"
3436 literal "false"
3437
3438 \end_inset
3439
3440 .
3441  That way, you can find out which (if any) documents have already been translate
3442 d into your language.
3443  You can also find out who (if anyone) is organizing the effort to translate
3444  the documentation into your language.
3445  If no one is organizing the effort, please let us know that you're interested.
3446 \end_layout
3447
3448 \begin_layout Standard
3449 Once you get to actually translating, here's a few hints for you that may
3450  save you trouble:
3451 \end_layout
3452
3453 \begin_layout Itemize
3454 Join the documentation team! There is information on how to do that in 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459 Intro.lyx
3460 \end_layout
3461
3462 \end_inset
3463
3464  (
3465 \begin_inset Flex Noun
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 Help\SpecialChar menuseparator
3470 Introduction
3471 \end_layout
3472
3473 \end_inset
3474
3475 ), which by the way is the first document you should translate.
3476 \end_layout
3477
3478 \begin_layout Itemize
3479 Learn the typographic conventions for the language you are translating to.
3480  Typography is an ancient art and over the centuries, a great variety of
3481  conventions have developed throughout different parts of the world.
3482  Also study the professional terminology amongst typographers in your country.
3483  Inventing your own terminology will only confuse the users.
3484  
3485 \emph on
3486 (Warning! Typography is addictive!)
3487 \end_layout
3488
3489 \begin_layout Itemize
3490 Make a copy of the document.
3491  This will be your working copy.
3492  You can use this as your personal translated help-file by placing it in
3493  your 
3494 \begin_inset Flex Code
3495 status collapsed
3496
3497 \begin_layout Plain Layout
3498 UserDir/doc/xx/
3499 \end_layout
3500
3501 \end_inset
3502
3503  directory.
3504 \begin_inset Note Greyedout
3505 status open
3506
3507 \begin_layout Plain Layout
3508
3509 \series bold
3510 Note:
3511 \series default
3512  For a complex document with external material (images, etc.), if you make
3513  a copy e.
3514 \begin_inset space \thinspace{}
3515 \end_inset
3516
3517 g.
3518 \begin_inset space \space{}
3519 \end_inset
3520
3521 in a temp dir, beware that the links to external material may be broken
3522  when the document is moved to a different place.
3523  The best way is to retrieve the \SpecialChar LyX
3524  tree from git (see 
3525 \begin_inset Flex URL
3526 status collapsed
3527
3528 \begin_layout Plain Layout
3529
3530 http://www.lyx.org/HowToUseGIT
3531 \end_layout
3532
3533 \end_inset
3534
3535 ) and to edit the doc file in place.
3536 \end_layout
3537
3538 \end_inset
3539
3540
3541 \end_layout
3542
3543 \begin_layout Itemize
3544 Sometimes the original document (from the \SpecialChar LyX
3545  team) will be updated.
3546  Use the source viewer at 
3547 \begin_inset CommandInset href
3548 LatexCommand href
3549 name "http://www.lyx.org/trac/timeline"
3550 target "http://www.lyx.org/trac/timeline"
3551 literal "false"
3552
3553 \end_inset
3554
3555  to see what has been changed.
3556  That way you can easily see which parts of the translated document need
3557  to be updated.
3558 \end_layout
3559
3560 \begin_layout Standard
3561 If you ever find an error in the original document, fix it and notify the
3562  rest of the documentation team of the changes! (You didn't forget to join
3563  the documentation team, did you?)
3564 \end_layout
3565
3566 \begin_layout Standard
3567 \begin_inset Branch OutDated
3568 inverted 0
3569 status collapsed
3570
3571 \begin_layout Section
3572 International Keyboard Support
3573 \end_layout
3574
3575 \begin_layout Standard
3576
3577 \emph on
3578 [Editor's Note: The following section is by
3579 \emph default
3580  
3581 \shape smallcaps
3582 \emph on
3583 Ivan Schreter
3584 \shape default
3585 .
3586  It needs to be fixed to conform to the new Documentation Style sheet and
3587  to make use of the new v1.0 features.
3588  The whole thing also needs to be merged with the section following it.-jw
3589  It may also be badly out of date.-rh (2008)]
3590 \end_layout
3591
3592 \begin_layout Subsection
3593 Defining Own Keymaps: Keymap File Format
3594 \end_layout
3595
3596 \begin_layout Standard
3597 Let's look at a keyboard definition file a little closer.
3598  It is a plain text file defining
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 key-to-key or key-to-string translations
3603 \end_layout
3604
3605 \begin_layout Itemize
3606 dead keys
3607 \end_layout
3608
3609 \begin_layout Itemize
3610 dead keys exceptions
3611 \end_layout
3612
3613 \begin_layout Standard
3614 To define key-to-key or key-to-string translation, use this command:
3615 \end_layout
3616
3617 \begin_layout Quotation
3618 \begin_inset Flex Code
3619 status collapsed
3620
3621 \begin_layout Plain Layout
3622
3623 \backslash
3624 kmap
3625 \end_layout
3626
3627 \end_inset
3628
3629  
3630 \begin_inset Flex Code
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634 key
3635 \end_layout
3636
3637 \end_inset
3638
3639  outstring 
3640 \end_layout
3641
3642 \begin_layout Standard
3643 where 
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 key
3649 \end_layout
3650
3651 \end_inset
3652
3653  is the key to be translated and 
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 outstring
3659 \end_layout
3660
3661 \end_inset
3662
3663  is the string to be inserted into the document.
3664  To define dead keys, use:
3665 \end_layout
3666
3667 \begin_layout Quotation
3668 \begin_inset Flex Code
3669 status collapsed
3670
3671 \begin_layout Plain Layout
3672
3673 \backslash
3674 kmod
3675 \end_layout
3676
3677 \end_inset
3678
3679  
3680 \begin_inset Flex Code
3681 status collapsed
3682
3683 \begin_layout Plain Layout
3684 key
3685 \end_layout
3686
3687 \end_inset
3688
3689  deadkey
3690 \end_layout
3691
3692 \begin_layout Standard
3693 where 
3694 \begin_inset Flex Code
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698 key
3699 \end_layout
3700
3701 \end_inset
3702
3703  is a keyboard key and 
3704 \begin_inset Flex Code
3705 status collapsed
3706
3707 \begin_layout Plain Layout
3708 deadkey
3709 \end_layout
3710
3711 \end_inset
3712
3713  is dead key name.
3714  The following dead keys are supported (shortcut name is in parentheses):
3715 \end_layout
3716
3717 \begin_layout Quotation
3718
3719 \emph on
3720 Name
3721 \begin_inset space \hfill{}
3722 \end_inset
3723
3724 Example
3725 \end_layout
3726
3727 \begin_layout Quotation
3728 acute (acu)
3729 \begin_inset space \hfill{}
3730 \end_inset
3731
3732 áéíóú
3733 \end_layout
3734
3735 \begin_layout Quotation
3736 grave (gra)
3737 \begin_inset space \hfill{}
3738 \end_inset
3739
3740 àèìòù
3741 \end_layout
3742
3743 \begin_layout Quotation
3744 macron (mac)
3745 \begin_inset space \hfill{}
3746 \end_inset
3747
3748  ō
3749 \end_layout
3750
3751 \begin_layout Quotation
3752 tilde (til)
3753 \begin_inset space \hfill{}
3754 \end_inset
3755
3756 ñÑ
3757 \end_layout
3758
3759 \begin_layout Quotation
3760 underbar (underb)
3761 \begin_inset space \hfill{}
3762 \end_inset
3763
3764
3765 \begin_inset ERT
3766 status open
3767
3768 \begin_layout Plain Layout
3769
3770
3771 \backslash
3772 b o
3773 \end_layout
3774
3775 \end_inset
3776
3777
3778 \end_layout
3779
3780 \begin_layout Quotation
3781 cedilla (ced)
3782 \begin_inset space \hfill{}
3783 \end_inset
3784
3785 çÇ
3786 \end_layout
3787
3788 \begin_layout Quotation
3789 underdot (underd)
3790 \begin_inset space \hfill{}
3791 \end_inset
3792
3793
3794 \begin_inset ERT
3795 status open
3796
3797 \begin_layout Plain Layout
3798
3799
3800 \backslash
3801 d o
3802 \end_layout
3803
3804 \end_inset
3805
3806
3807 \end_layout
3808
3809 \begin_layout Quotation
3810 circumflex (circu)
3811 \begin_inset space \hfill{}
3812 \end_inset
3813
3814 âêîôû
3815 \end_layout
3816
3817 \begin_layout Quotation
3818 circle (circl)
3819 \begin_inset space \hfill{}
3820 \end_inset
3821
3822 ÅůŮ
3823 \end_layout
3824
3825 \begin_layout Quotation
3826 tie (tie)
3827 \begin_inset space \hfill{}
3828 \end_inset
3829
3830
3831 \begin_inset ERT
3832 status open
3833
3834 \begin_layout Plain Layout
3835
3836
3837 \backslash
3838 t o
3839 \end_layout
3840
3841 \end_inset
3842
3843
3844 \end_layout
3845
3846 \begin_layout Quotation
3847 breve (bre)
3848 \begin_inset space \hfill{}
3849 \end_inset
3850
3851 ă
3852 \begin_inset ERT
3853 status open
3854
3855 \begin_layout Plain Layout
3856
3857
3858 \backslash
3859 u o
3860 \end_layout
3861
3862 \end_inset
3863
3864
3865 \end_layout
3866
3867 \begin_layout Quotation
3868 caron (car)
3869 \begin_inset space \hfill{}
3870 \end_inset
3871
3872 čšž
3873 \end_layout
3874
3875 \begin_layout Quotation
3876 hungarian umlaut (hug)
3877 \begin_inset space \hfill{}
3878 \end_inset
3879
3880 őű
3881 \end_layout
3882
3883 \begin_layout Quotation
3884 umlaut (uml)
3885 \begin_inset space \hfill{}
3886 \end_inset
3887
3888 äöü
3889 \end_layout
3890
3891 \begin_layout Quotation
3892 dot (dot)
3893 \begin_inset space \hfill{}
3894 \end_inset
3895
3896 ż
3897 \begin_inset ERT
3898 status open
3899
3900 \begin_layout Plain Layout
3901
3902
3903 \backslash
3904 .s
3905 \end_layout
3906
3907 \end_inset
3908
3909
3910 \end_layout
3911
3912 \begin_layout Standard
3913 Since in many international keyboards there are exceptions to what some
3914  dead keys should do, you can define them using
3915 \end_layout
3916
3917 \begin_layout Quotation
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922
3923 \backslash
3924 kxmod
3925 \end_layout
3926
3927 \end_inset
3928
3929  deadkey key outstring
3930 \end_layout
3931
3932 \begin_layout Standard
3933 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3934 , so you put in
3935 \end_layout
3936
3937 \begin_layout Quotation
3938 \begin_inset Flex Code
3939 status collapsed
3940
3941 \begin_layout Plain Layout
3942
3943 \backslash
3944 kxmod
3945 \end_layout
3946
3947 \end_inset
3948
3949  caron o "
3950 \backslash
3951 ^o"
3952 \end_layout
3953
3954 \begin_layout Standard
3955 to make it work correctly.
3956  Also, you have to define as exceptions dead keys over i and j, to remove
3957  the dot from them before inserting an accent mark.
3958  I will change this when the time comes, but so far I haven't had time.
3959 \end_layout
3960
3961 \begin_layout Standard
3962 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3963  double backslash.
3964  Also, quotes and 
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 #
3970 \end_layout
3971
3972 \end_inset
3973
3974  have different meaning.
3975  
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 #
3981 \end_layout
3982
3983 \end_inset
3984
3985  marks comments, quotes start and end \SpecialChar LaTeX
3986 -style commands.
3987  To enter quote, you'll need to use 
3988 \begin_inset Flex Code
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992
3993 \backslash
3994 "
3995 \end_layout
3996
3997 \end_inset
3998
3999 , to enter 
4000 \begin_inset Flex Code
4001 status collapsed
4002
4003 \begin_layout Plain Layout
4004 #
4005 \end_layout
4006
4007 \end_inset
4008
4009 , use 
4010 \begin_inset Flex Code
4011 status collapsed
4012
4013 \begin_layout Plain Layout
4014
4015 \backslash
4016 #
4017 \end_layout
4018
4019 \end_inset
4020
4021 .
4022 \end_layout
4023
4024 \begin_layout Standard
4025 If you make a keyboard description file that works for your language, please
4026  mail it to me, so I can include it in the next keymap distribution.
4027 \end_layout
4028
4029 \begin_layout Standard
4030 More keywords will be supported in keymap configuration file in future,
4031  like
4032 \end_layout
4033
4034 \begin_layout Itemize
4035 \begin_inset Flex Code
4036 status collapsed
4037
4038 \begin_layout Plain Layout
4039
4040 \backslash
4041 kinclude filename
4042 \end_layout
4043
4044 \end_inset
4045
4046
4047 \emph on
4048
4049 \begin_inset space \hfill{}
4050 \end_inset
4051
4052
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 include
4058 \end_layout
4059
4060 \end_inset
4061
4062  another file
4063 \end_layout
4064
4065 \begin_layout Itemize
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070
4071 \backslash
4072 kprog program
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \emph on
4079
4080 \begin_inset space \hfill{}
4081 \end_inset
4082
4083
4084 \begin_inset Flex Code
4085 status collapsed
4086
4087 \begin_layout Plain Layout
4088 define
4089 \end_layout
4090
4091 \end_inset
4092
4093  an external keymap translation program 
4094 \end_layout
4095
4096 \begin_layout Standard
4097 Also, it should look into 
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102 lyxrc
4103 \end_layout
4104
4105 \end_inset
4106
4107  file for defaults, too (for example, a 
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112
4113 \backslash
4114 kinclude
4115 \end_layout
4116
4117 \end_inset
4118
4119  option to include default keyboard).
4120 \end_layout
4121
4122 \end_inset
4123
4124
4125 \end_layout
4126
4127 \begin_layout Section
4128 International Keymap Stuff
4129 \begin_inset CommandInset label
4130 LatexCommand label
4131 name "sec:International-Keymap-Stuff"
4132
4133 \end_inset
4134
4135
4136 \end_layout
4137
4138 \begin_layout Standard
4139 \begin_inset Note Note
4140 status open
4141
4142 \begin_layout Plain Layout
4143 In doing the revisions on this document in March 2008, I did not look over
4144  this stuff, as I do not understand it.
4145  It would be good if someone else could do so.
4146  (RH)
4147 \end_layout
4148
4149 \end_inset
4150
4151
4152 \end_layout
4153
4154 \begin_layout Standard
4155 The next two sections describe the 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \shape up
4162 .kmap
4163 \end_layout
4164
4165 \end_inset
4166
4167  and 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172
4173 \shape up
4174 .cdef
4175 \end_layout
4176
4177 \end_inset
4178
4179  file syntax in detail.
4180  These sections should help you design your own key map if the ones provided
4181  do not meet your needs.
4182 \end_layout
4183
4184 \begin_layout Subsection
4185 The .kmap File
4186 \end_layout
4187
4188 \begin_layout Standard
4189
4190 \shape up
4191 .
4192 \begin_inset Flex Code
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196 kmap
4197 \end_layout
4198
4199 \end_inset
4200
4201  file maps keystrokes to characters or strings.
4202  As the name suggests, it sets a keyboard mapping.
4203  The 
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208 .kmap
4209 \end_layout
4210
4211 \end_inset
4212
4213
4214 \shape default
4215  file keywords 
4216 \shape up
4217
4218 \begin_inset Flex Code
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222
4223 \shape up
4224 kmap
4225 \end_layout
4226
4227 \end_inset
4228
4229
4230 \shape default
4231 ,
4232 \shape up
4233  
4234 \shape default
4235
4236 \begin_inset Flex Code
4237 status collapsed
4238
4239 \begin_layout Plain Layout
4240
4241 \shape up
4242 kmod
4243 \end_layout
4244
4245 \end_inset
4246
4247 ,
4248 \shape up
4249  
4250 \shape default
4251
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256
4257 \shape up
4258 kxmod
4259 \end_layout
4260
4261 \end_inset
4262
4263 , and 
4264 \begin_inset Flex Code
4265 status collapsed
4266
4267 \begin_layout Plain Layout
4268
4269 \shape up
4270 kcomb
4271 \end_layout
4272
4273 \end_inset
4274
4275  are described in this section.
4276 \end_layout
4277
4278 \begin_layout Labeling
4279 \labelwidthstring 00.00.0000
4280 \begin_inset Flex Code
4281 status collapsed
4282
4283 \begin_layout Plain Layout
4284
4285 \shape up
4286 kmap
4287 \end_layout
4288
4289 \end_inset
4290
4291  Map a character to a string
4292 \end_layout
4293
4294 \begin_layout LyX-Code
4295
4296 \backslash
4297 kmap 
4298 \family roman
4299 \emph on
4300 char
4301 \family default
4302 \emph default
4303  
4304 \family roman
4305 \emph on
4306 string
4307 \end_layout
4308
4309 \begin_layout Standard
4310 This will ma
4311 \family roman
4312 p
4313 \family default
4314  
4315 \family roman
4316 \emph on
4317 char
4318 \family default
4319 \emph default
4320  
4321 \family roman
4322 to
4323 \family default
4324  
4325 \family roman
4326 \emph on
4327 string
4328 \emph default
4329 .
4330  Note that in
4331 \family default
4332  
4333 \family roman
4334 \emph on
4335 string
4336 \emph default
4337 ,
4338 \family default
4339  
4340 \family roman
4341 \shape up
4342 the double-quote (")
4343 \family default
4344 \shape default
4345  
4346 \family roman
4347 and
4348 \family default
4349  
4350 \family roman
4351 \shape up
4352 the backslash (
4353 \backslash
4354 )
4355 \family default
4356 \shape default
4357  
4358 \family roman
4359 must be escaped with a preceding backslash (
4360 \shape up
4361
4362 \backslash
4363
4364 \shape default
4365 )
4366 \family default
4367 .
4368 \end_layout
4369
4370 \begin_layout Standard
4371 An example of a 
4372 \begin_inset Flex Noun
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376
4377 \shape up
4378 kmap
4379 \end_layout
4380
4381 \end_inset
4382
4383  statement to cause the symbol 
4384 \begin_inset Flex Noun
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388
4389 \shape up
4390 /
4391 \end_layout
4392
4393 \end_inset
4394
4395  to be output for the keystroke 
4396 \begin_inset Flex Noun
4397 status collapsed
4398
4399 \begin_layout Plain Layout
4400
4401 \shape up
4402 &
4403 \end_layout
4404
4405 \end_inset
4406
4407  is:
4408 \end_layout
4409
4410 \begin_layout LyX-Code
4411
4412 \backslash
4413 kmap & /
4414 \end_layout
4415
4416 \begin_layout Labeling
4417 \labelwidthstring 00.00.0000
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422
4423 \shape up
4424 kmod
4425 \end_layout
4426
4427 \end_inset
4428
4429  Specify an accent character
4430 \end_layout
4431
4432 \begin_layout LyX-Code
4433
4434 \backslash
4435 kmod 
4436 \family roman
4437 \emph on
4438 char accent allowed
4439 \end_layout
4440
4441 \begin_layout Standard
4442 This will make the cha
4443 \family roman
4444 racter
4445 \family default
4446  
4447 \family roman
4448 \emph on
4449 char
4450 \family default
4451 \emph default
4452  
4453 \family roman
4454 \shape up
4455 \emph on
4456 be an accent
4457 \family default
4458 \shape default
4459 \emph default
4460  
4461 \family roman
4462 \shape up
4463 on the
4464 \family default
4465 \shape default
4466  
4467 \family roman
4468 \shape up
4469 \emph on
4470 allowed
4471 \family default
4472 \shape default
4473 \emph default
4474  
4475 \family roman
4476 \shape up
4477 cha
4478 \family default
4479 racter(s).
4480  This is the dead key
4481 \begin_inset Foot
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 The term 
4486 \family roman
4487 \emph on
4488 dead key
4489 \family default
4490 \emph default
4491  refers to a key that does not produce a character by itself, but when followed
4492  with another key, produces the desired accent character.
4493  For example, a German characte
4494 \family roman
4495 r with an umlaut like
4496 \family default
4497  
4498 \family roman
4499 \emph on
4500 ä
4501 \family default
4502 \emph default
4503  
4504 \family roman
4505 can be produced in this manner.
4506 \end_layout
4507
4508 \end_inset
4509
4510  mechanism.
4511  
4512 \end_layout
4513
4514 \begin_layout Standard
4515 If you 
4516 \family roman
4517 hit
4518 \family default
4519  
4520 \family roman
4521 \emph on
4522 char
4523 \family default
4524 \emph default
4525  
4526 \family roman
4527 and then another key not in
4528 \family default
4529  
4530 \family roman
4531 \emph on
4532 allowed
4533 \emph default
4534 , you will get a
4535 \family default
4536  
4537 \family roman
4538 \emph on
4539 char
4540 \family default
4541 \emph default
4542  
4543 \family roman
4544 followed by the other, not allowed key, as output.
4545
4546 \family default
4547  Note that a 
4548 \begin_inset Flex Noun
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552
4553 \shape up
4554 Backspace
4555 \end_layout
4556
4557 \end_inset
4558
4559  cancels a dead key, so if 
4560 \family roman
4561 you hit
4562 \family default
4563  
4564 \family roman
4565 \emph on
4566 char
4567 \family default
4568 \emph default
4569  
4570 \begin_inset Flex Noun
4571 status collapsed
4572
4573 \begin_layout Plain Layout
4574
4575 \shape up
4576 \emph on
4577 Backspace
4578 \end_layout
4579
4580 \end_inset
4581
4582 , the cursor will not go one position backwards but will instead cancel
4583  the effect t
4584 \family roman
4585 hat
4586 \family default
4587  
4588 \family roman
4589 \shape up
4590 \emph on
4591 char
4592 \family default
4593 \shape default
4594 \emph default
4595  
4596 \family roman
4597 \shape up
4598 might have had on the next keystroke.
4599  
4600 \end_layout
4601
4602 \begin_layout Standard
4603 The following example specifies that the character ' is to be an acute accent,
4604  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4605 \end_layout
4606
4607 \begin_layout LyX-Code
4608
4609 \backslash
4610 kmod ' acute aeiouAEIOU
4611 \end_layout
4612
4613 \begin_layout Labeling
4614 \labelwidthstring 00.00.0000
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 kxmod
4620 \end_layout
4621
4622 \end_inset
4623
4624  Specify an exception to the accent character
4625 \end_layout
4626
4627 \begin_layout LyX-Code
4628
4629 \backslash
4630 kxmod  
4631 \family roman
4632 \emph on
4633 accent char result
4634 \end_layout
4635
4636 \begin_layout Standard
4637 This defines an exce
4638 \family roman
4639 ption for
4640 \family default
4641  
4642 \family roman
4643 \emph on
4644 accent
4645 \family default
4646 \emph default
4647  
4648 \family roman
4649 on
4650 \family default
4651  
4652 \family roman
4653 \emph on
4654 char
4655 \emph default
4656 .
4657  T
4658 \shape up
4659 he
4660 \family default
4661 \shape default
4662  
4663 \family roman
4664 \shape up
4665 \emph on
4666 accent
4667 \family default
4668 \shape default
4669 \emph default
4670  
4671 \family roman
4672 \shape up
4673 must
4674 \family default
4675 \shape default
4676  
4677 \shape up
4678 have been assigned a keystroke with a previous
4679 \shape default
4680  
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685
4686 \shape up
4687
4688 \backslash
4689 kmo
4690 \shape default
4691 d
4692 \end_layout
4693
4694 \end_inset
4695
4696  declar
4697 \family roman
4698 ation and
4699 \family default
4700  
4701 \family roman
4702 \emph on
4703 char
4704 \family default
4705 \emph default
4706  
4707 \family roman
4708 must not belong in the
4709 \family default
4710  
4711 \family roman
4712 \emph on
4713 allowed
4714 \family default
4715 \emph default
4716  
4717 \family roman
4718 set of
4719 \family default
4720  
4721 \family roman
4722 \emph on
4723 accent
4724 \emph default
4725 .
4726  When
4727 \family default
4728  
4729 \family roman
4730 \shape up
4731 you enter the
4732 \family default
4733 \shape default
4734  
4735 \family roman
4736 \shape up
4737 \emph on
4738 accent char
4739 \family default
4740 \shape default
4741 \emph default
4742  
4743 \family roman
4744 \shape up
4745 sequence,
4746 \family default
4747 \shape default
4748  
4749 \family roman
4750 \shape up
4751 \emph on
4752 result
4753 \emph default
4754  is produced.
4755  If such a declaration does not exist in
4756 \family default
4757 \shape default
4758  
4759 \shape up
4760 the
4761 \shape default
4762  
4763 \begin_inset Flex Code
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767
4768 \shape up
4769 .kmap
4770 \end_layout
4771
4772 \end_inset
4773
4774  file and yo
4775 \family roman
4776 u enter
4777 \family default
4778  
4779 \family roman
4780 \emph on
4781 accent char
4782 \emph default
4783 , you get
4784 \family default
4785  
4786 \family roman
4787 \emph on
4788 accent_key char
4789 \emph default
4790  where
4791 \family default
4792  
4793 \family roman
4794 \emph on
4795 accent_key
4796 \emph default
4797  is the first arg
4798 \family default
4799 ument of the 
4800 \begin_inset Flex Code
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804
4805 \shape up
4806
4807 \backslash
4808 kmod
4809 \end_layout
4810
4811 \end_inset
4812
4813  declaration.
4814  
4815 \end_layout
4816
4817 \begin_layout Standard
4818 The following command produces causes äi to be produced when you enter acute-i
4819  ('i):
4820 \end_layout
4821
4822 \begin_layout LyX-Code
4823
4824 \backslash
4825 kxmod acute i "
4826 \backslash
4827
4828 \backslash
4829 '{
4830 \backslash
4831
4832 \backslash
4833 i}"
4834 \end_layout
4835
4836 \begin_layout Labeling
4837 \labelwidthstring 00.00.0000
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 kcomb
4843 \end_layout
4844
4845 \end_inset
4846
4847  Combine two accent characters
4848 \end_layout
4849
4850 \begin_layout LyX-Code
4851
4852 \backslash
4853 kcomb 
4854 \family roman
4855 \emph on
4856 accent1 accent2 allowed
4857 \end_layout
4858
4859 \begin_layout Standard
4860 This one is getting pretty esoteric.
4861  It allows you to combine the effect 
4862 \family roman
4863 of
4864 \family default
4865  
4866 \family roman
4867 \emph on
4868 accent1
4869 \family default
4870 \emph default
4871  
4872 \family roman
4873 and
4874 \family default
4875  
4876 \family roman
4877 \emph on
4878 accent2
4879 \family default
4880 \emph default
4881  
4882 \family roman
4883 (in that order!) on
4884 \family default
4885  
4886 \family roman
4887 \emph on
4888 allowed
4889 \family default
4890 \emph default
4891  
4892 \family roman
4893 chars.
4894  The keystrokes for
4895 \family default
4896  
4897 \family roman
4898 \emph on
4899 accent1
4900 \family default
4901 \emph default
4902  
4903 \family roman
4904 and
4905 \family default
4906  
4907 \family roman
4908 \emph on
4909 accent2
4910 \family default
4911 \emph default
4912  
4913 \family roman
4914 must have be
4915 \family default
4916 en set with a 
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921
4922 \shape up
4923
4924 \backslash
4925 kmod
4926 \end_layout
4927
4928 \end_inset
4929
4930  command at 
4931 \family roman
4932 a
4933 \family default
4934  
4935 \family roman
4936 \emph on
4937 previous
4938 \family default
4939 \emph default
4940  
4941 \family roman
4942 point in the
4943 \family default
4944  file.
4945  
4946 \end_layout
4947
4948 \begin_layout Standard
4949 Consider this example from the 
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954
4955 \shape up
4956 greek.kmap
4957 \end_layout
4958
4959 \end_inset
4960
4961  file:
4962 \end_layout
4963
4964 \begin_layout LyX-Code
4965
4966 \backslash
4967 kmod ; acute aeioyvhAEIOYVH 
4968 \backslash
4969 kmod : umlaut iyIY 
4970 \backslash
4971 kcomb acute umlaut iyIY
4972 \end_layout
4973
4974 \begin_layout Standard
4975 This allows you to press 
4976 \begin_inset Flex Noun
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \shape up
4982 ;:i
4983 \end_layout
4984
4985 \end_inset
4986
4987  and get the effect of 
4988 \begin_inset Flex Code
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992
4993 \shape up
4994
4995 \backslash
4996 '{
4997 \backslash
4998 "{i}}
4999 \end_layout
5000
5001 \end_inset
5002
5003 .
5004  
5005 \family roman
5006 \shape up
5007 A backspace
5008 \family default
5009 \shape default
5010  in this case cancels the last dead key, so if you press 
5011 \begin_inset Flex Noun
5012 status collapsed
5013
5014 \begin_layout Plain Layout
5015
5016 \shape up
5017 ;: Backspace i
5018 \end_layout
5019
5020 \end_inset
5021
5022  you get 
5023 \begin_inset Flex Code
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027
5028 \shape up
5029
5030 \backslash
5031 '{i}
5032 \end_layout
5033
5034 \end_inset
5035
5036 .
5037 \end_layout
5038
5039 \begin_layout Subsection
5040 The .cdef File
5041 \end_layout
5042
5043 \begin_layout Standard
5044 After the 
5045 \begin_inset Flex Code
5046 status collapsed
5047
5048 \begin_layout Plain Layout
5049
5050 \shape up
5051 .kmap
5052 \end_layout
5053
5054 \end_inset
5055
5056  mapping is performed, a 
5057 \begin_inset Flex Code
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061
5062 \shape up
5063 .cde
5064 \shape default
5065 f
5066 \end_layout
5067
5068 \end_inset
5069
5070  file maps the strings that the symbols generate to characters in the current
5071  font.
5072  The \SpecialChar LyX
5073  distribution currently includes at least the 
5074 \begin_inset Flex Code
5075 status collapsed
5076
5077 \begin_layout Plain Layout
5078
5079 \shape up
5080 iso8859-1.cdef
5081 \end_layout
5082
5083 \end_inset
5084
5085  and 
5086 \begin_inset Flex Code
5087 status collapsed
5088
5089 \begin_layout Plain Layout
5090
5091 \shape up
5092 iso8859-2.cdef
5093 \end_layout
5094
5095 \end_inset
5096
5097  files.
5098 \end_layout
5099
5100 \begin_layout Standard
5101 In general the 
5102 \begin_inset Flex Code
5103 status collapsed
5104
5105 \begin_layout Plain Layout
5106
5107 \shape up
5108 .cdef
5109 \end_layout
5110
5111 \end_inset
5112
5113  file is a sequence of declarations of the form
5114 \end_layout
5115
5116 \begin_layout LyX-Code
5117
5118 \family roman
5119 \emph on
5120 char_index_in_set
5121 \family default
5122 \emph default
5123  
5124 \family roman
5125 \emph on
5126  string
5127 \end_layout
5128
5129 \begin_layout Standard
5130 For example, in order to map 
5131 \begin_inset Flex Noun
5132 status collapsed
5133
5134 \begin_layout Plain Layout
5135
5136 \shape up
5137
5138 \backslash
5139 '{e}
5140 \end_layout
5141
5142 \end_inset
5143
5144  to the corresponding character in the iso-8859-1 set (233), the following
5145  declaration is used
5146 \end_layout
5147
5148 \begin_layout LyX-Code
5149 233 "
5150 \backslash
5151
5152 \backslash
5153 '{e}"
5154 \end_layout
5155
5156 \begin_layout Standard
5157 with 
5158 \begin_inset Flex Code
5159 status collapsed
5160
5161 \begin_layout Plain Layout
5162
5163 \backslash
5164
5165 \end_layout
5166
5167 \end_inset
5168
5169  and 
5170 \begin_inset Flex Code
5171 status collapsed
5172
5173 \begin_layout Plain Layout
5174 "
5175 \end_layout
5176
5177 \end_inset
5178
5179  being escap
5180 \family roman
5181 ed in
5182 \family default
5183  
5184 \family roman
5185 \emph on
5186 string
5187 \emph default
5188 .
5189  Note that
5190 \family default
5191  the same character can apply to more than one string.
5192  In the 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197 i
5198 \shape up
5199 so-8859-7.cdef
5200 \end_layout
5201
5202 \end_inset
5203
5204  file you have
5205 \end_layout
5206
5207 \begin_layout LyX-Code
5208 192 "
5209 \backslash
5210
5211 \backslash
5212 '{
5213 \backslash
5214
5215 \backslash
5216
5217 \backslash
5218 "{i}}"
5219 \begin_inset Newline newline
5220 \end_inset
5221
5222 192 "
5223 \backslash
5224
5225 \backslash
5226
5227 \backslash
5228 "{
5229 \backslash
5230
5231 \backslash
5232 '{i}}"
5233 \end_layout
5234
5235 \begin_layout Standard
5236 If \SpecialChar LyX
5237  cannot find a mapping for the string produced by the keystroke or a
5238  deadkey sequence, it will check if it looks like an accented char and try
5239  to draw an accent over the character on screen.
5240 \end_layout
5241
5242 \begin_layout Subsection
5243 Dead Keys
5244 \end_layout
5245
5246 \begin_layout Standard
5247 There is a second way to add support for international characters through
5248  so-called dead-keys.
5249  A dead-key works in combination with a letter to produce an accented character.
5250  Here, we'll explain how to create a really simple dead-key to illustrate
5251  how they work.
5252 \end_layout
5253
5254 \begin_layout Standard
5255 Suppose you happen to need the circumflex character, 
5256 \begin_inset Quotes eld
5257 \end_inset
5258
5259  ̂
5260 \begin_inset Quotes erd
5261 \end_inset
5262
5263 .
5264  You could bind the 
5265 \begin_inset Flex Noun
5266 status collapsed
5267
5268 \begin_layout Plain Layout
5269 ^
5270 \end_layout
5271
5272 \end_inset
5273
5274 -key [a.k.a.
5275 \begin_inset space ~
5276 \end_inset
5277
5278
5279 \begin_inset Flex Noun
5280 status collapsed
5281
5282 \begin_layout Plain Layout
5283 Shift-6
5284 \end_layout
5285
5286 \end_inset
5287
5288 ] to the \SpecialChar LyX
5289  command 
5290 \begin_inset Flex Code
5291 status collapsed
5292
5293 \begin_layout Plain Layout
5294 accent-circumflex
5295 \end_layout
5296
5297 \end_inset
5298
5299  in your 
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304 lyxrc
5305 \end_layout
5306
5307 \end_inset
5308
5309  file.
5310  Now, whenever you type the 
5311 \begin_inset Flex Noun
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315 ^
5316 \end_layout
5317
5318 \end_inset
5319
5320 -key followed by a letter, that letter will have a circumflex accent on
5321  it.
5322  For example, the sequence 
5323 \begin_inset Quotes eld
5324 \end_inset
5325
5326
5327 \begin_inset Flex Noun
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331 ^e
5332 \end_layout
5333
5334 \end_inset
5335
5336
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340  produces the letter: 
5341 \begin_inset Quotes eld
5342 \end_inset
5343
5344 ê
5345 \begin_inset Quotes erd
5346 \end_inset
5347
5348 .
5349  If you tried to type 
5350 \begin_inset Quotes eld
5351 \end_inset
5352
5353
5354 \begin_inset Flex Noun
5355 status collapsed
5356
5357 \begin_layout Plain Layout
5358 ^t
5359 \end_layout
5360
5361 \end_inset
5362
5363
5364 \begin_inset Quotes erd
5365 \end_inset
5366
5367 , however, \SpecialChar LyX
5368  will complain with a beep, since a 
5369 \begin_inset Quotes eld
5370 \end_inset
5371
5372
5373 \begin_inset Flex Noun
5374 status collapsed
5375
5376 \begin_layout Plain Layout
5377 t
5378 \end_layout
5379
5380 \end_inset
5381
5382
5383 \begin_inset Quotes erd
5384 \end_inset
5385
5386  never takes a circumflex accent.
5387  Hitting 
5388 \begin_inset Flex Noun
5389 status collapsed
5390
5391 \begin_layout Plain Layout
5392 Space
5393 \end_layout
5394
5395 \end_inset
5396
5397  after a dead-key produces the bare-accent.
5398  Please note this last point! If you bind a key to a dead-key, you'll need
5399  to rebind the character on that key to yet another key.
5400  Binding the 
5401 \begin_inset Flex Noun
5402 status collapsed
5403
5404 \begin_layout Plain Layout
5405 ,-key
5406 \end_layout
5407
5408 \end_inset
5409
5410  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5411 \end_layout
5412
5413 \begin_layout Standard
5414 One common way to bind dead-keys is to use 
5415 \begin_inset Flex Noun
5416 status collapsed
5417
5418 \begin_layout Plain Layout
5419 Meta-
5420 \end_layout
5421
5422 \end_inset
5423
5424
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429 Ctrl-
5430 \end_layout
5431
5432 \end_inset
5433
5434 , and 
5435 \begin_inset Flex Noun
5436 status collapsed
5437
5438 \begin_layout Plain Layout
5439 Shift-
5440 \end_layout
5441
5442 \end_inset
5443
5444  in combination with an accent, like 
5445 \begin_inset Quotes eld
5446 \end_inset
5447
5448
5449 \begin_inset Flex Noun
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 ~
5454 \end_layout
5455
5456 \end_inset
5457
5458
5459 \begin_inset Quotes erd
5460 \end_inset
5461
5462  or 
5463 \begin_inset Quotes eld
5464 \end_inset
5465
5466
5467 \begin_inset Flex Noun
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 ,
5472 \end_layout
5473
5474 \end_inset
5475
5476
5477 \begin_inset Quotes erd
5478 \end_inset
5479
5480  or 
5481 \begin_inset Quotes eld
5482 \end_inset
5483
5484
5485 \begin_inset Flex Noun
5486 status collapsed
5487
5488 \begin_layout Plain Layout
5489 ^
5490 \end_layout
5491
5492 \end_inset
5493
5494
5495 \begin_inset Quotes erd
5496 \end_inset
5497
5498 .
5499  Another way involves using 
5500 \begin_inset Flex Code
5501 status collapsed
5502
5503 \begin_layout Plain Layout
5504 xmodmap
5505 \end_layout
5506
5507 \end_inset
5508
5509  and 
5510 \begin_inset Flex Code
5511 status collapsed
5512
5513 \begin_layout Plain Layout
5514 xkeycaps
5515 \end_layout
5516
5517 \end_inset
5518
5519  to set up the special 
5520 \begin_inset Flex Code
5521 status collapsed
5522
5523 \begin_layout Plain Layout
5524 Mode_Switch
5525 \end_layout
5526
5527 \end_inset
5528
5529  key.
5530  The 
5531 \begin_inset Flex Code
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 Mode_Switch
5536 \end_layout
5537
5538 \end_inset
5539
5540  acts in some ways just like 
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 Shift
5546 \end_layout
5547
5548 \end_inset
5549
5550  and permits you to bind keys to accented characters.
5551  You can also turn keys into dead-keys by binding them to something like
5552  
5553 \begin_inset Flex Code
5554 status collapsed
5555
5556 \begin_layout Plain Layout
5557 usldead_cedilla
5558 \end_layout
5559
5560 \end_inset
5561
5562  and then binding this symbolic key to the corresponding \SpecialChar LyX
5563  command.
5564 \begin_inset Foot
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 Note from 
5569 \noun on
5570 John Weiss
5571 \noun default
5572 : This is exactly what I do in my 
5573 \begin_inset Flex Code
5574 status collapsed
5575
5576 \begin_layout Plain Layout
5577 ~/.lyx/lyxrc
5578 \end_layout
5579
5580 \end_inset
5581
5582  and my 
5583 \begin_inset Flex Code
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 ~/.xmodmap
5588 \end_layout
5589
5590 \end_inset
5591
5592  files.
5593  I have my 
5594 \begin_inset Flex Noun
5595 status collapsed
5596
5597 \begin_layout Plain Layout
5598 Scroll
5599 \begin_inset space ~
5600 \end_inset
5601
5602 Lock
5603 \end_layout
5604
5605 \end_inset
5606
5607  key set up as 
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612 Mode_Shift
5613 \end_layout
5614
5615 \end_inset
5616
5617  and a bunch of these 
5618 \begin_inset Quotes eld
5619 \end_inset
5620
5621
5622 \begin_inset Flex Code
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 usldead_*
5627 \end_layout
5628
5629 \end_inset
5630
5631
5632 \begin_inset Quotes erd
5633 \end_inset
5634
5635  symbolic keys bound such things as 
5636 \begin_inset Flex Noun
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 Scroll
5641 \begin_inset space ~
5642 \end_inset
5643
5644 Lock-^
5645 \end_layout
5646
5647 \end_inset
5648
5649  and 
5650 \begin_inset Flex Noun
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 Scroll
5655 \begin_inset space ~
5656 \end_inset
5657
5658 Lock-~
5659 \end_layout
5660
5661 \end_inset
5662
5663 .
5664  This is how I produce my accented characters.
5665 \end_layout
5666
5667 \end_inset
5668
5669  You can make just about anything into the 
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 Mode_Switch
5675 \end_layout
5676
5677 \end_inset
5678
5679  key: One of the 
5680 \begin_inset Flex Noun
5681 status collapsed
5682
5683 \begin_layout Plain Layout
5684 Ctrl-
5685 \end_layout
5686
5687 \end_inset
5688
5689  keys, a spare function key, etc.
5690  As for the \SpecialChar LyX
5691  commands that produce accents, check the entry for 
5692 \begin_inset Flex Code
5693 status collapsed
5694
5695 \begin_layout Plain Layout
5696 accent-acute
5697 \end_layout
5698
5699 \end_inset
5700
5701  in the 
5702 \emph on
5703 Reference Manual
5704 \emph default
5705 .
5706  You'll find the complete list there.
5707 \end_layout
5708
5709 \begin_layout Subsection
5710 Saving your Language Configuration
5711 \end_layout
5712
5713 \begin_layout Standard
5714 You can edit your preferences so that your desired language environment
5715  is automatically configured when \SpecialChar LyX
5716  starts up, via the 
5717 \begin_inset Flex Noun
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 Edit\SpecialChar menuseparator
5722 Preferences
5723 \end_layout
5724
5725 \end_inset
5726
5727  dialog.
5728 \end_layout
5729
5730 \begin_layout Chapter
5731 Installing New Document Classes, Layouts, and Templates
5732 \begin_inset CommandInset label
5733 LatexCommand label
5734 name "cha:Installing-New-Document"
5735
5736 \end_inset
5737
5738
5739 \begin_inset Argument 1
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 Installing New Document Classes
5744 \end_layout
5745
5746 \end_inset
5747
5748
5749 \end_layout
5750
5751 \begin_layout Standard
5752 In this chapter, we describe the procedures for creating and installing
5753  new \SpecialChar LyX
5754  layout and template files, as well as offer a refresher on correctly
5755  installing new \SpecialChar LaTeX
5756  document classes.
5757  
5758 \end_layout
5759
5760 \begin_layout Standard
5761 First, let us a say a few words about how one ought to think about the relation
5762  between \SpecialChar LyX
5763  and \SpecialChar LaTeX
5764 .
5765  The thing to understand is that, in a certain sense, \SpecialChar LyX
5766  doesn't know anything
5767  about \SpecialChar LaTeX
5768 .
5769  Indeed, from \SpecialChar LyX
5770 's point of view, \SpecialChar LaTeX
5771  is just one of several 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775 backend formats
5776 \begin_inset Quotes erd
5777 \end_inset
5778
5779  in which it is capable of producing output.
5780  Other such formats are DocBook, plaintext, and XHTML.
5781  \SpecialChar LaTeX
5782  is, of course, a particularly important format, but very little of the
5783  information \SpecialChar LyX
5784  has about \SpecialChar LaTeX
5785  is actually contained in the program itself.
5786 \begin_inset Foot
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 Some commands are sufficiently complex that they are 
5791 \begin_inset Quotes eld
5792 \end_inset
5793
5794 hardcoded
5795 \begin_inset Quotes erd
5796 \end_inset
5797
5798  into \SpecialChar LyX
5799 .
5800  But the developers generally regard this as a Bad Thing.
5801 \end_layout
5802
5803 \end_inset
5804
5805  Rather, that information, even for the standard classes like 
5806 \begin_inset Flex Code
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 article.cls
5811 \end_layout
5812
5813 \end_inset
5814
5815 , is contained in `layout files'.
5816  Similarly, \SpecialChar LyX
5817  itself does not know much about DocBook or XHTML.
5818  What it knows is contained in layout files.
5819 \end_layout
5820
5821 \begin_layout Standard
5822 You can think of the layout file for a given document class as a translation
5823  manual between \SpecialChar LyX
5824  constructs—paragraphs with their corresponding styles,
5825  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5826 , DocBook, or XHTML
5827  constructs.
5828  Almost everything \SpecialChar LyX
5829  knows about 
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 article.cls
5835 \end_layout
5836
5837 \end_inset
5838
5839 , for example, is contained in the file 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 article.layout
5845 \end_layout
5846
5847 \end_inset
5848
5849  and in various other files it includes.
5850  For this reason, anyone intending to write layout files should plan to
5851  study the existing files.
5852  A good place to start is with 
5853 \begin_inset Flex Code
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 stdsections.inc
5858 \end_layout
5859
5860 \end_inset
5861
5862 , which is included in 
5863 \begin_inset Flex Code
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 article.layout
5868 \end_layout
5869
5870 \end_inset
5871
5872
5873 \begin_inset Flex Code
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877 book.layout
5878 \end_layout
5879
5880 \end_inset
5881
5882 , and many of the other layout files for document classes.
5883  This file is where sections and the like are defined: 
5884 \begin_inset Flex Code
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 stdsections.inc
5889 \end_layout
5890
5891 \end_inset
5892
5893  tells \SpecialChar LyX
5894  how paragraphs that are marked with the Section, Subsection, etc,
5895  styles can be translated into corresponding \SpecialChar LaTeX
5896 , DocBook, and XHTML commands
5897  and tags.
5898  The 
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 article.layout
5904 \end_layout
5905
5906 \end_inset
5907
5908  file basically just includes several of these 
5909 \begin_inset Flex Code
5910 status collapsed
5911
5912 \begin_layout Plain Layout
5913 std*.inc
5914 \end_layout
5915
5916 \end_inset
5917
5918  files.
5919 \end_layout
5920
5921 \begin_layout Standard
5922 Defining the \SpecialChar LyX
5923 –\SpecialChar LaTeX
5924  correspondence is not the only thing layout files do, though.
5925  Their other job is to define how the \SpecialChar LyX
5926  constructs themselves will appear
5927  on-screen.
5928  The fact that layout files have these two jobs is often a source of confusion,
5929  because they are completely separate.
5930  Telling \SpecialChar LyX
5931  how to translate a certain paragraph style into \SpecialChar LaTeX
5932  does not tell
5933  \SpecialChar LyX
5934  how to display it; conversely, telling \SpecialChar LyX
5935  how to display a certain paragraph
5936  style does not tell \SpecialChar LyX
5937  how to translate it into \SpecialChar LaTeX
5938  (let alone tell \SpecialChar LaTeX
5939  how to
5940  display it).
5941  So, in general, when you define a new \SpecialChar LyX
5942  construct, you must always do two
5943  quite separate things: (i)
5944 \begin_inset space ~
5945 \end_inset
5946
5947 tell \SpecialChar LyX
5948  how to translate it into \SpecialChar LaTeX
5949  and (ii)
5950 \begin_inset space ~
5951 \end_inset
5952
5953 tell \SpecialChar LyX
5954  how to display it.
5955 \end_layout
5956
5957 \begin_layout Standard
5958 Much the same is true, of course, as regards \SpecialChar LyX
5959 's other backend formats, though
5960  XHTML is in some ways different, because in that case \SpecialChar LyX
5961  
5962 \emph on
5963 is
5964 \emph default
5965  able, to some extent, to use information about how it should display a
5966  paragraph on the screen to output information (in the form of CSS) about
5967  how the paragraph should be displayed in a browser.
5968  Even in this case, however, the distinction between what \SpecialChar LyX
5969  does internally
5970  and how things are rendered externally remains in force, and the two can
5971  be controlled separately.
5972  See 
5973 \begin_inset CommandInset ref
5974 LatexCommand ref
5975 reference "sec:Tags-for-XHTML"
5976
5977 \end_inset
5978
5979  for the details.
5980 \end_layout
5981
5982 \begin_layout Section
5983 Installing new \SpecialChar LaTeX
5984  files
5985 \end_layout
5986
5987 \begin_layout Standard
5988 Some installations may not include a \SpecialChar LaTeX
5989  package or class file that you would
5990  like to use within \SpecialChar LyX
5991 .
5992  For example, you might need Foil\SpecialChar TeX
5993 , a package for preparing slides for overhead
5994  projectors.
5995  Modern \SpecialChar LaTeX
5996  distributions like \SpecialChar TeX
5997 Live (2008 or newer) or MiK\SpecialChar TeX
5998  provide a user interface
5999  for installing such packages.
6000  For example, with MiK\SpecialChar TeX
6001 , you start the program 
6002 \begin_inset Quotes eld
6003 \end_inset
6004
6005 Package
6006 \begin_inset space ~
6007 \end_inset
6008
6009 Manager
6010 \begin_inset Quotes erd
6011 \end_inset
6012
6013  to get a list of available packages.
6014  To install one of them, right click on it or use the corresponding toolbar
6015  button.
6016 \end_layout
6017
6018 \begin_layout Standard
6019 If your \SpecialChar LaTeX
6020  distribution does not provide such a `package manager', or if the
6021  package is not available from your distribution, then follow these steps
6022  to install it manually:
6023 \end_layout
6024
6025 \begin_layout Enumerate
6026 Get the package from 
6027 \begin_inset CommandInset href
6028 LatexCommand href
6029 name "CTAN"
6030 target "http://www.ctan.org/"
6031 literal "false"
6032
6033 \end_inset
6034
6035  or wherever.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 If the package contains a file with the ending 
6040 \begin_inset Quotes eld
6041 \end_inset
6042
6043
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 .ins
6049 \end_layout
6050
6051 \end_inset
6052
6053
6054 \begin_inset Quotes erd
6055 \end_inset
6056
6057  (is the case for Foil\SpecialChar TeX
6058 ) then open a console, change to the folder of this
6059  file and execute the command 
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 latex foiltex.ins
6065 \end_layout
6066
6067 \end_inset
6068
6069 .
6070  You have now unpacked the package and have all files to install it.
6071  Most \SpecialChar LaTeX
6072 -packages are not packed and you can skip this step.
6073 \end_layout
6074
6075 \begin_layout Enumerate
6076 Now you need to decide if the package should be available for all users
6077  or only for you.
6078 \end_layout
6079
6080 \begin_deeper
6081 \begin_layout Enumerate
6082 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6083  for all users on your system, then install it in your `local' \SpecialChar TeX
6084  tree, otherwise
6085  install it in your own `user' \SpecialChar TeX
6086  tree.
6087  Where these trees should be created, if they do not already exist, depends
6088  on your system.
6089  To find this out, look in the file 
6090 \begin_inset Flex Code
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 texmf.cnf
6095 \end_layout
6096
6097 \end_inset
6098
6099 .
6100 \begin_inset Foot
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 This is usually in the directory 
6105 \begin_inset Flex Code
6106 status collapsed
6107
6108 \begin_layout Plain Layout
6109 $TEXMF/web2c
6110 \end_layout
6111
6112 \end_inset
6113
6114 , though you can execute the command 
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119 kpsewhich texmf.cnf
6120 \end_layout
6121
6122 \end_inset
6123
6124  to locate it.
6125 \end_layout
6126
6127 \end_inset
6128
6129  The location of the `local' \SpecialChar TeX
6130  tree is defined by the 
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 TEXMFLOCAL
6136 \end_layout
6137
6138 \end_inset
6139
6140  variable; this is usually somewhere like 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 /usr/local/share/texmf
6146 \end_layout
6147
6148 \end_inset
6149
6150  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6151 Live
6152  distribution.
6153  The location of the `user' \SpecialChar TeX
6154  tree is defined by 
6155 \begin_inset Flex Code
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 TEXMFHOME
6160 \end_layout
6161
6162 \end_inset
6163
6164  and is commonly 
6165 \begin_inset Flex Code
6166 status collapsed
6167
6168 \begin_layout Plain Layout
6169 $HOME/texmf
6170 \end_layout
6171
6172 \end_inset
6173
6174  or 
6175 \begin_inset Flex Code
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179
6180 \family sans
6181 $HOME/.texliveXXXX
6182 \end_layout
6183
6184 \end_inset
6185
6186 .
6187  (If these variables are not predefined, you have to define them.) You'll
6188  probably need root permissions to create or modify the `local' tree, but
6189  not for your `user' tree.
6190 \begin_inset Newline newline
6191 \end_inset
6192
6193 In general, it is recommended to install in the user tree because your user
6194  will not be modified or even overwritten when you upgrade your system.
6195  It will typically also be backed up together with everything else when
6196  you backup your home directory (which, of course, you do on a regular basis).
6197 \end_layout
6198
6199 \begin_layout Enumerate
6200 On Windows, if you want the new package to be available for all users on
6201  your system, change to the folder where \SpecialChar LaTeX
6202  is installed and then change to
6203  the subfolder 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 ~
6209 \backslash
6210 tex
6211 \backslash
6212 latex
6213 \end_layout
6214
6215 \end_inset
6216
6217 .
6218  (For MiK\SpecialChar TeX
6219 , this would be by default the folder 
6220 \begin_inset Flex Code
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 ~:
6225 \backslash
6226 Programs
6227 \backslash
6228 MiKTeX
6229 \backslash
6230 tex
6231 \backslash
6232 latex
6233 \end_layout
6234
6235 \end_inset
6236
6237 .)
6238 \begin_inset Foot
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 Note that this will be the correct path only on English installations.
6243  On a German one, it would be 
6244 \begin_inset Flex Code
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248 ~:
6249 \backslash
6250 Programme
6251 \backslash
6252 MiKTeX
6253 \backslash
6254 tex
6255 \backslash
6256 latex
6257 \end_layout
6258
6259 \end_inset
6260
6261 , and similarly for other languages.
6262 \end_layout
6263
6264 \end_inset
6265
6266  Create there a new folder 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 foiltex
6272 \end_layout
6273
6274 \end_inset
6275
6276  and copy all files of the package into it.
6277  
6278 \begin_inset Newline newline
6279 \end_inset
6280
6281 If the package should only available for you or you don't have admin permissions
6282 , do the same, but in the local \SpecialChar LaTeX
6283  folder.
6284  E.
6285 \begin_inset space \thinspace{}
6286 \end_inset
6287
6288 g., for MiK\SpecialChar TeX
6289
6290 \begin_inset space ~
6291 \end_inset
6292
6293 2.8 under Windows XP, this would be the folder:
6294 \begin_inset Newline newline
6295 \end_inset
6296
6297
6298 \family sans
6299
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 ~:
6305 \backslash
6306 Documents and Settings
6307 \backslash
6308 <username>
6309 \backslash
6310 Application Data
6311 \backslash
6312
6313 \end_layout
6314
6315 \end_inset
6316
6317
6318 \begin_inset Newline newline
6319 \end_inset
6320
6321
6322 \family default
6323
6324 \begin_inset Phantom HPhantom
6325 status open
6326
6327 \begin_layout Plain Layout
6328
6329 \family sans
6330 ~:
6331 \backslash
6332
6333 \end_layout
6334
6335 \end_inset
6336
6337
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 MiKTeX
6343 \backslash
6344 2.8
6345 \backslash
6346 tex
6347 \backslash
6348 latex
6349 \end_layout
6350
6351 \end_inset
6352
6353
6354 \begin_inset Newline newline
6355 \end_inset
6356
6357 On Vista, it would be:
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 ~:
6367 \backslash
6368 Users
6369 \backslash
6370 <username>
6371 \backslash
6372 AppData
6373 \backslash
6374 Roaming
6375 \backslash
6376 2.8
6377 \backslash
6378 MiKTeX
6379 \backslash
6380 tex
6381 \backslash
6382 latex
6383 \end_layout
6384
6385 \end_inset
6386
6387
6388 \end_layout
6389
6390 \end_deeper
6391 \begin_layout Enumerate
6392 Now one only need to tell \SpecialChar LaTeX
6393  that there are new files.
6394  This depends on the used \SpecialChar LaTeX
6395 -Distribution:
6396 \end_layout
6397
6398 \begin_deeper
6399 \begin_layout Enumerate
6400 For \SpecialChar TeX
6401 Live execute the command 
6402 \begin_inset Flex Code
6403 status collapsed
6404
6405 \begin_layout Plain Layout
6406 texhash
6407 \end_layout
6408
6409 \end_inset
6410
6411  from a console.
6412  If you installed the package for all users, then you will probably need
6413  to have root permissions for that.
6414 \end_layout
6415
6416 \begin_layout Enumerate
6417 For MiK\SpecialChar TeX
6418 , if you have installed the package for all users, start the program
6419  
6420 \begin_inset Quotes eld
6421 \end_inset
6422
6423 Settings
6424 \begin_inset space ~
6425 \end_inset
6426
6427 (Admin)
6428 \begin_inset Quotes erd
6429 \end_inset
6430
6431  and press the button marked 
6432 \begin_inset Quotes eld
6433 \end_inset
6434
6435 Refresh FNDB
6436 \begin_inset Quotes erd
6437 \end_inset
6438
6439 .
6440  Otherwise start the program 
6441 \begin_inset Quotes eld
6442 \end_inset
6443
6444 Settings
6445 \begin_inset Quotes erd
6446 \end_inset
6447
6448  and do the same.
6449 \end_layout
6450
6451 \end_deeper
6452 \begin_layout Enumerate
6453 Finally, you need to tell \SpecialChar LyX
6454  that there are new packages available.
6455  So, in \SpecialChar LyX
6456 , use the menu 
6457 \begin_inset Flex Noun
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 Tools
6462 \family sans
6463 \SpecialChar menuseparator
6464 Reconfigure
6465 \end_layout
6466
6467 \end_inset
6468
6469  and then restart \SpecialChar LyX
6470 .
6471 \end_layout
6472
6473 \begin_layout Standard
6474 Now the package is installed.
6475  In our example, the document class 
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 FoilTex
6481 \end_layout
6482
6483 \end_inset
6484
6485  will now be available under 
6486 \begin_inset Flex Noun
6487 status collapsed
6488
6489 \begin_layout Plain Layout
6490 Document\SpecialChar menuseparator
6491 Settings\SpecialChar menuseparator
6492 Document Class
6493 \end_layout
6494
6495 \end_inset
6496
6497  (in the 
6498 \begin_inset Quotes eld
6499 \end_inset
6500
6501 Presentations
6502 \begin_inset Quotes erd
6503 \end_inset
6504
6505  category).
6506  
6507 \end_layout
6508
6509 \begin_layout Standard
6510 If you would like to use a \SpecialChar LaTeX
6511  document class that is not even listed in the
6512  menu 
6513 \begin_inset Flex Noun
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 Document\SpecialChar menuseparator
6518 Settings\SpecialChar menuseparator
6519 Document Class
6520 \end_layout
6521
6522 \end_inset
6523
6524 , then you need to create a `layout' file for it.
6525  That is the topic of the next section.
6526 \end_layout
6527
6528 \begin_layout Section
6529 Types of layout files
6530 \end_layout
6531
6532 \begin_layout Standard
6533 This section describes the various sorts of \SpecialChar LyX
6534  files that contain layout informati
6535 on.
6536  These files describe various paragraph and character styles, determining
6537  how \SpecialChar LyX
6538  should display them and how they should be translated into \SpecialChar LaTeX
6539 , DocBook,
6540  XHTML, or whatever output format is being used.
6541  
6542 \end_layout
6543
6544 \begin_layout Standard
6545 We shall try to provide a thorough description of the process of writing
6546  layout files here.
6547  However, there are so many different types of documents supported even
6548  by just \SpecialChar LaTeX
6549  that we can't hope to cover every different possibility or problem
6550  you might encounter.
6551  The \SpecialChar LyX
6552  users' list is frequented by people with lots of experience with layout
6553  design who are willing to share what they've learned, so please feel free
6554  to ask questions there.
6555 \end_layout
6556
6557 \begin_layout Standard
6558 As you prepare to write a new layout, it is extremely helpful to look at
6559  the layouts distributed with \SpecialChar LyX
6560 .
6561  If you write a \SpecialChar LyX
6562  layout for a \SpecialChar LaTeX
6563  document class that might also be used by
6564  others, or write a module that might be useful to others, then you should
6565  consider posting your layout to the 
6566 \begin_inset CommandInset href
6567 LatexCommand href
6568 name "layout section on the LyX wiki"
6569 target "http://wiki.lyx.org/Layouts/Layouts"
6570 literal "false"
6571
6572 \end_inset
6573
6574  or even to the \SpecialChar LyX
6575  developers' list, so that it might be included in \SpecialChar LyX
6576  itself.
6577 \begin_inset Foot
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 Note that \SpecialChar LyX
6582  is licensed under the General Public License, so any material
6583  that is contributed to \SpecialChar LyX
6584  must be similarly licensed.
6585 \end_layout
6586
6587 \end_inset
6588
6589
6590 \end_layout
6591
6592 \begin_layout Subsection
6593 Layout modules
6594 \begin_inset CommandInset label
6595 LatexCommand label
6596 name "subsec:Layout-modules"
6597
6598 \end_inset
6599
6600
6601 \end_layout
6602
6603 \begin_layout Standard
6604 We have spoken to this point about `layout files'.
6605  But there are different sorts of files that contain layout information.
6606  Layout files, strictly so called, have the 
6607 \begin_inset Flex Code
6608 status collapsed
6609
6610 \begin_layout Plain Layout
6611 .layout
6612 \end_layout
6613
6614 \end_inset
6615
6616  extension and provide \SpecialChar LyX
6617  with information about document classes.
6618  Since \SpecialChar LyX
6619  1.6 layout information can also be contained in layout 
6620 \emph on
6621 modules
6622 \emph default
6623 , which have the 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 .module
6629 \end_layout
6630
6631 \end_inset
6632
6633  extension.
6634  Modules are to \SpecialChar LaTeX
6635  packages much as layouts are to \SpecialChar LaTeX
6636  classes, and some modules—such
6637  as the 
6638 \begin_inset Flex Code
6639 status collapsed
6640
6641 \begin_layout Plain Layout
6642 endnotes
6643 \end_layout
6644
6645 \end_inset
6646
6647  module—specifically provide support for one package.
6648  In a sense, layout modules are similar to included
6649 \begin_inset Foot
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 These can have any extension, but by convention have the 
6654 \begin_inset Flex Code
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 .inc
6659 \end_layout
6660
6661 \end_inset
6662
6663  extension.
6664 \end_layout
6665
6666 \end_inset
6667
6668  files—files like 
6669 \begin_inset Flex Code
6670 status collapsed
6671
6672 \begin_layout Plain Layout
6673 stdsections.inc
6674 \end_layout
6675
6676 \end_inset
6677
6678 —in that modules are not specific to a given document class but may be used
6679  with many different classes.
6680  The difference is that using an included file with 
6681 \begin_inset Flex Code
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 article.cls
6686 \end_layout
6687
6688 \end_inset
6689
6690  requires editing that file.
6691  Modules, by contrast, are selected in the 
6692 \begin_inset Flex Noun
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 Document\SpecialChar menuseparator
6697 Settings
6698 \end_layout
6699
6700 \end_inset
6701
6702  dialog.
6703 \end_layout
6704
6705 \begin_layout Standard
6706 Building modules is the easiest way to get started with layout editing,
6707  since it can be as simple as adding a single new paragraph style or flex
6708  inset.
6709  But modules may, in principle, contain anything a layout file can contain.
6710 \end_layout
6711
6712 \begin_layout Standard
6713 After creating a new module and copying it to the 
6714 \begin_inset Flex Code
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 layouts/
6719 \end_layout
6720
6721 \end_inset
6722
6723  folder, you will need to reconfigure and then restart \SpecialChar LyX
6724  for the module to
6725  appear in the menu.
6726  However, changes you make to the module will be seen immediately, if you
6727  open 
6728 \begin_inset Flex Noun
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732 Document\SpecialChar menuseparator
6733 Settings
6734 \end_layout
6735
6736 \end_inset
6737
6738 , highlight something, and then hit 
6739 \begin_inset Quotes eld
6740 \end_inset
6741
6742 OK
6743 \begin_inset Quotes erd
6744 \end_inset
6745
6746 .
6747  
6748 \emph on
6749 It is strongly recommended that you save your work before doing this
6750 \emph default
6751 .
6752  In fact, 
6753 \emph on
6754 it is strongly recommended that you not attempt to edit modules while simultaneo
6755 usly working on actual documents
6756 \emph default
6757 .
6758  Though of course the developers strive to keep \SpecialChar LyX
6759  stable in such situations,
6760  syntax errors and the like in your module file could cause strange behavior.
6761 \end_layout
6762
6763 \begin_layout Subsubsection
6764 Local Layout
6765 \end_layout
6766
6767 \begin_layout Standard
6768 Modules are to \SpecialChar LyX
6769  as packages are to \SpecialChar LaTeX
6770 .
6771  Sometimes, however, you find yourself wanting a specific inset or character
6772  style just for one document and writing a module that will also be available
6773  to other documents makes little sense.
6774  What you need is \SpecialChar LyX
6775 's 
6776 \begin_inset Quotes eld
6777 \end_inset
6778
6779 Local Layout
6780 \begin_inset Quotes erd
6781 \end_inset
6782
6783 .
6784 \end_layout
6785
6786 \begin_layout Standard
6787 You will find it under 
6788 \family sans
6789 Document\SpecialChar menuseparator
6790 Settings\SpecialChar menuseparator
6791 Local Layout
6792 \family default
6793 .
6794  The large text box allows you to enter anything that you might enter in
6795  a layout file or module.
6796  You can think of a document's local layout, in fact, as a module that belongs
6797  just to it.
6798  So, in particular, you must enter a 
6799 \begin_inset Flex Code
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803 Format
6804 \end_layout
6805
6806 \end_inset
6807
6808  tag.
6809  Any format is acceptable, but one would normally use the format current
6810  at the time.
6811  (In \SpecialChar LyX
6812  2.3, the current layout format is 63.)
6813 \end_layout
6814
6815 \begin_layout Standard
6816 When you have entered something in the 
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 Local Layout
6822 \end_layout
6823
6824 \end_inset
6825
6826  pane, \SpecialChar LyX
6827  will enable the 
6828 \begin_inset Quotes eld
6829 \end_inset
6830
6831 Validate
6832 \begin_inset Quotes erd
6833 \end_inset
6834
6835  button at the bottom.
6836  Clicking this button will cause \SpecialChar LyX
6837  to determine whether what you have entered
6838  is valid layout information for the chosen format.
6839  \SpecialChar LyX
6840  will report the result but, unfortunately, will not tell you what errors
6841  there might have been.
6842  These will be written to the terminal, however, if \SpecialChar LyX
6843  is started from a terminal.
6844  You will not be permitted to save your local layout until you have entered
6845  something valid.
6846 \end_layout
6847
6848 \begin_layout Standard
6849 The warnings at the end of the previous section apply here, too.
6850  Do not play with local layout while you are actually working, especially
6851  if you have not saved your document.
6852  That said, using local layout with a test document can be a very convenient
6853  way to try out layout ideas, or even to start developing a module.
6854 \end_layout
6855
6856 \begin_layout Subsection
6857 Layout for 
6858 \begin_inset Flex Noun
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 .sty
6863 \end_layout
6864
6865 \end_inset
6866
6867  files
6868 \end_layout
6869
6870 \begin_layout Standard
6871 There are two situations you are likely to encounter when wanting to support
6872  a new \SpecialChar LaTeX
6873  document class, involving style (
6874 \begin_inset Flex Code
6875 status collapsed
6876
6877 \begin_layout Plain Layout
6878 .sty
6879 \end_layout
6880
6881 \end_inset
6882
6883 ) files and \SpecialChar LaTeX2e
6884  class (
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 .cls
6890 \end_layout
6891
6892 \end_inset
6893
6894 ) .
6895  Supporting a style file is usually fairly easy.
6896  Supporting a new class file is a bit harder.
6897  We'll discuss the former in this section and the latter in the next.
6898  Similar remarks apply, of course, if you want to support a new DocBook
6899  DTD.
6900 \end_layout
6901
6902 \begin_layout Standard
6903 The easier case is the one in which your new document class is provided
6904  as a style file that is to be used in conjunction with an already supported
6905  document class.
6906  For the sake of the example, we'll assume that the style file is called
6907  
6908 \begin_inset Flex Noun
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912 myclass.sty
6913 \end_layout
6914
6915 \end_inset
6916
6917  and that it is meant to be used with 
6918 \begin_inset Flex Noun
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 report.cls
6923 \end_layout
6924
6925 \end_inset
6926
6927 , which is a standard class.
6928  
6929 \end_layout
6930
6931 \begin_layout Standard
6932 Start by copying the existing class's layout file into your local directory:
6933 \begin_inset Foot
6934 status collapsed
6935
6936 \begin_layout Plain Layout
6937 Of course, which directory is your local directory will vary by platform,
6938  and \SpecialChar LyX
6939  allows you to specify your local directory on startup, too, using
6940  the 
6941 \begin_inset Flex Code
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 -userdir
6946 \end_layout
6947
6948 \end_inset
6949
6950  option.
6951 \end_layout
6952
6953 \end_inset
6954
6955
6956 \end_layout
6957
6958 \begin_layout LyX-Code
6959 cp report.layout ~/.lyx/layouts/myclass.layout
6960 \end_layout
6961
6962 \begin_layout Standard
6963 Then edit 
6964 \begin_inset Flex Code
6965 status collapsed
6966
6967 \begin_layout Plain Layout
6968 myclass.layout
6969 \end_layout
6970
6971 \end_inset
6972
6973  and change the line: 
6974 \end_layout
6975
6976 \begin_layout LyX-Code
6977
6978 \backslash
6979 DeclareLaTeXClass{Report (Standard Class)}
6980 \end_layout
6981
6982 \begin_layout Standard
6983 to read
6984 \end_layout
6985
6986 \begin_layout LyX-Code
6987
6988 \backslash
6989 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
6990 \end_layout
6991
6992 \begin_layout Standard
6993 Then add:
6994 \end_layout
6995
6996 \begin_layout LyX-Code
6997 Preamble 
6998 \begin_inset Newline newline
6999 \end_inset
7000
7001     
7002 \backslash
7003 usepackage{myclass}
7004 \begin_inset Newline newline
7005 \end_inset
7006
7007 EndPreamble
7008 \end_layout
7009
7010 \begin_layout Standard
7011 near the top of the file.
7012 \end_layout
7013
7014 \begin_layout Standard
7015 Start \SpecialChar LyX
7016  and select 
7017 \begin_inset Flex Noun
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021 Tools\SpecialChar menuseparator
7022 Reconfigure
7023 \end_layout
7024
7025 \end_inset
7026
7027 .
7028  Then restart \SpecialChar LyX
7029  and try creating a new document.
7030  You should see "
7031 \begin_inset Flex Noun
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 Report (My Class)
7036 \end_layout
7037
7038 \end_inset
7039
7040 " as a document class option in the 
7041 \begin_inset Flex Noun
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 Document\SpecialChar menuseparator
7046 Settings
7047 \end_layout
7048
7049 \end_inset
7050
7051  dialog.
7052  It is likely that some of the sectioning commands and such in your new
7053  class will work differently from how they worked in the base class—
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 report
7059 \end_layout
7060
7061 \end_inset
7062
7063  in this example—so you can fiddle around with the settings for the different
7064  sections if you wish.
7065  The layout information for sections is contained in 
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 stdsections.inc
7071 \end_layout
7072
7073 \end_inset
7074
7075 , but you do not need to copy and change this file.
7076  Instead, you can simply add your changes to your layout file, after the
7077  line 
7078 \begin_inset Flex Code
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 Input stdclass.inc
7083 \end_layout
7084
7085 \end_inset
7086
7087 , which itself includes 
7088 \begin_inset Flex Code
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 stdsections.inc
7093 \end_layout
7094
7095 \end_inset
7096
7097 .
7098  For example, you might add these lines:
7099 \end_layout
7100
7101 \begin_layout LyX-Code
7102 Style Chapter
7103 \end_layout
7104
7105 \begin_layout LyX-Code
7106     Font
7107 \end_layout
7108
7109 \begin_layout LyX-Code
7110         Family Sans
7111 \end_layout
7112
7113 \begin_layout LyX-Code
7114     EndFont
7115 \end_layout
7116
7117 \begin_layout LyX-Code
7118 End
7119 \end_layout
7120
7121 \begin_layout Standard
7122 to change the font for chapter headings to sans-serif.
7123  This will override (or, in this case, add to) the existing declaration
7124  for the Chapter style.
7125  
7126 \end_layout
7127
7128 \begin_layout Standard
7129 Your new package may also provide commands or environments not present in
7130  the base class.
7131  In this case, you will want to add these to the layout file.
7132  See 
7133 \begin_inset CommandInset ref
7134 LatexCommand ref
7135 reference "sec:TextClass"
7136
7137 \end_inset
7138
7139  for information on how to do so.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 If 
7144 \begin_inset Flex Noun
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 myclass.sty
7149 \end_layout
7150
7151 \end_inset
7152
7153  can be used with several different document classes, and even if it cannot,
7154  you might find it easiest just to write a module that you can load with
7155  the base class.
7156  The simplest possible such module would be:
7157 \end_layout
7158
7159 \begin_layout LyX-Code
7160 #
7161 \backslash
7162 DeclareLyXModule{My Class} 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166 #DescriptionBegin 
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170 #Support for myclass.sty.
7171 \end_layout
7172
7173 \begin_layout LyX-Code
7174 #DescriptionEnd
7175 \begin_inset Newline newline
7176 \end_inset
7177
7178
7179 \end_layout
7180
7181 \begin_layout LyX-Code
7182 Format 63
7183 \begin_inset Newline newline
7184 \end_inset
7185
7186
7187 \end_layout
7188
7189 \begin_layout LyX-Code
7190 Preamble
7191 \begin_inset Newline newline
7192 \end_inset
7193
7194     
7195 \backslash
7196 usepackage{myclass}
7197 \begin_inset Newline newline
7198 \end_inset
7199
7200 EndPreamble
7201 \end_layout
7202
7203 \begin_layout Standard
7204 A more complex module might modify the behavior of some existing constructs
7205  or define some new ones.
7206  Again, see 
7207 \begin_inset CommandInset ref
7208 LatexCommand ref
7209 reference "sec:TextClass"
7210
7211 \end_inset
7212
7213  for discussion.
7214 \end_layout
7215
7216 \begin_layout Subsection
7217 Layout for 
7218 \begin_inset Flex Noun
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 .cls
7223 \end_layout
7224
7225 \end_inset
7226
7227  files
7228 \end_layout
7229
7230 \begin_layout Standard
7231 There are two possibilities here.
7232  One is that the class file is itself based upon an existing document class.
7233  For example, many thesis classes are based upon 
7234 \begin_inset Flex Noun
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 book.cls
7239 \end_layout
7240
7241 \end_inset
7242
7243 .
7244  To see whether yours is, look for a line like
7245 \end_layout
7246
7247 \begin_layout LyX-Code
7248
7249 \backslash
7250 LoadClass{book}
7251 \end_layout
7252
7253 \begin_layout Standard
7254 in the file.
7255  If so, then you may proceed largely as in the previous section, though
7256  the 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 Declare\SpecialChar LaTeX
7262 Class
7263 \end_layout
7264
7265 \end_inset
7266
7267  line will be different.
7268  If your new class is 
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 thesis
7274 \end_layout
7275
7276 \end_inset
7277
7278  and it is based upon 
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 book
7284 \end_layout
7285
7286 \end_inset
7287
7288 , then the line should read:
7289 \begin_inset Foot
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 And it will be easiest if you save the file to 
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 thesis.layout
7299 \end_layout
7300
7301 \end_inset
7302
7303 : \SpecialChar LyX
7304  assumes that the document class has the same name as the layout file.
7305  
7306 \end_layout
7307
7308 \end_inset
7309
7310
7311 \end_layout
7312
7313 \begin_layout LyX-Code
7314
7315 \backslash
7316 DeclareLaTeXClass[thesis,book]{thesis}
7317 \end_layout
7318
7319 \begin_layout Standard
7320 If, on the other hand, the new class is not based upon an existing class,
7321  you will probably have to 
7322 \begin_inset Quotes eld
7323 \end_inset
7324
7325 roll your own
7326 \begin_inset Quotes erd
7327 \end_inset
7328
7329  layout.
7330  We strongly suggest copying an existing layout file which uses a similar
7331  \SpecialChar LaTeX
7332  class and then modifying it, if you can do so.
7333  At least use an existing file as a starting point so you can find out what
7334  items you need to worry about.
7335  Again, the specifics are covered below.
7336 \end_layout
7337
7338 \begin_layout Subsection
7339 Creating templates
7340 \begin_inset CommandInset label
7341 LatexCommand label
7342 name "subsec:Creating-Templates"
7343
7344 \end_inset
7345
7346
7347 \end_layout
7348
7349 \begin_layout Standard
7350 Once you have written a layout file for a new document class, you might
7351  want to consider writing a 
7352 \emph on
7353 template
7354 \emph default
7355  for it, too.
7356  A template acts as a kind of tutorial for your layout, showing how it might
7357  be used, though containing dummy content.
7358  You can of course look at the various templates included with \SpecialChar LyX
7359  for ideas.
7360 \end_layout
7361
7362 \begin_layout Standard
7363 Templates are created just like usual documents: using \SpecialChar LyX
7364 .
7365  The only difference is that usual documents contain all possible settings,
7366  including the font scheme and the paper size.
7367  Usually a user doesn't want a template to overwrite his preferred settings
7368  for such parameters.
7369  For that reason, the designer of a template should remove the corresponding
7370  commands like 
7371 \begin_inset Flex Code
7372 status collapsed
7373
7374 \begin_layout Plain Layout
7375
7376 \backslash
7377 font_roman
7378 \end_layout
7379
7380 \end_inset
7381
7382  or 
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387
7388 \backslash
7389 papersize
7390 \end_layout
7391
7392 \end_inset
7393
7394  from the template \SpecialChar LyX
7395  file.
7396  This can be done with any simple text-editor, for example 
7397 \begin_inset Flex Code
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 vi
7402 \end_layout
7403
7404 \end_inset
7405
7406  or 
7407 \begin_inset Flex Code
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 notepad
7412 \end_layout
7413
7414 \end_inset
7415
7416 .
7417 \end_layout
7418
7419 \begin_layout Standard
7420 Put the edited template files you create in 
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 UserDir/templates/
7426 \end_layout
7427
7428 \end_inset
7429
7430 , copy the ones you use from the global template directory in 
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 LyXDir/templates/
7436 \end_layout
7437
7438 \end_inset
7439
7440  to the same place, and redefine the template path in the 
7441 \begin_inset Flex Noun
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 Tools\SpecialChar menuseparator
7446 Preferences\SpecialChar menuseparator
7447 Paths
7448 \end_layout
7449
7450 \end_inset
7451
7452  dialog.
7453 \end_layout
7454
7455 \begin_layout Standard
7456 Note, by the way, that there is a template which has a particular meaning:
7457  
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 defaults.lyx
7463 \end_layout
7464
7465 \end_inset
7466
7467 .
7468  This template is loaded every time you create a new document with 
7469 \begin_inset Flex Noun
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 File\SpecialChar menuseparator
7474 New
7475 \end_layout
7476
7477 \end_inset
7478
7479  in order to provide useful defaults.
7480  To create this template from inside \SpecialChar LyX
7481 , all you have to do is to open a document
7482  with the correct settings, and use the 
7483 \begin_inset Flex Noun
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 Save as Document Defaults
7488 \end_layout
7489
7490 \end_inset
7491
7492  button.
7493 \end_layout
7494
7495 \begin_layout Subsection
7496 Upgrading old layout files
7497 \end_layout
7498
7499 \begin_layout Standard
7500 The format of layout files changes with each \SpecialChar LyX
7501  release, so old layout files
7502  need to be converted to the new format.
7503  If \SpecialChar LyX
7504  reads a layout file in an older format, it automatically calls the
7505  script 
7506 \begin_inset Flex Code
7507 status collapsed
7508
7509 \begin_layout Plain Layout
7510 layout2layout.py
7511 \end_layout
7512
7513 \end_inset
7514
7515  to convert it to a temporary file in current format.
7516  The original file is left untouched.
7517  If you use the layout file often, then, you may want to convert it permanently,
7518  so that \SpecialChar LyX
7519  does not have to do so itself every time.
7520  To do this, you can call the converter manually:
7521 \end_layout
7522
7523 \begin_layout Enumerate
7524 rename the file 
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 myclass.layout
7530 \end_layout
7531
7532 \end_inset
7533
7534  to 
7535 \begin_inset Flex Code
7536 status collapsed
7537
7538 \begin_layout Plain Layout
7539 myclass.old
7540 \end_layout
7541
7542 \end_inset
7543
7544
7545 \end_layout
7546
7547 \begin_layout Enumerate
7548 Call the command
7549 \begin_inset Newline newline
7550 \end_inset
7551
7552
7553 \begin_inset Flex Code
7554 status collapsed
7555
7556 \begin_layout Plain Layout
7557 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7558 \end_layout
7559
7560 \end_inset
7561
7562
7563 \begin_inset Newline newline
7564 \end_inset
7565
7566 where 
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 LyXDir
7572 \end_layout
7573
7574 \end_inset
7575
7576  is the name of your \SpecialChar LyX
7577  system directory.
7578 \end_layout
7579
7580 \begin_layout Standard
7581 Note that manual conversion does not affect included files, so these will
7582  have to be converted separately.
7583 \end_layout
7584
7585 \begin_layout Subsection
7586 \begin_inset CommandInset label
7587 LatexCommand label
7588 name "subsec:Cite-Engine-Files"
7589
7590 \end_inset
7591
7592 Cite engine files
7593 \end_layout
7594
7595 \begin_layout Standard
7596 A specific form of layout files are the so-called 
7597 \begin_inset Flex Code
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 *.citeengine
7602 \end_layout
7603
7604 \end_inset
7605
7606  files that are located in the 
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 citeengines/
7612 \end_layout
7613
7614 \end_inset
7615
7616  sub-directory.
7617  Their purpose is to define the specifics of \SpecialChar LaTeX
7618  packages aimed at bibliography
7619  generation, such as 
7620 \family sans
7621 natbib
7622 \family default
7623 ,
7624 \family sans
7625  jurabib
7626 \family default
7627  or 
7628 \family sans
7629 biblatex
7630 \family default
7631 , but also the way how normal Bib\SpecialChar TeX
7632  citations (without additional packages)
7633  are handled in \SpecialChar LyX
7634  is defined in such a file.
7635  
7636 \end_layout
7637
7638 \begin_layout Standard
7639 More specifically, it is defined which packages \SpecialChar LyX
7640  needs to load, which citation
7641  commands are available, how these are to be displayed in \SpecialChar LyX
7642  (in the workarea,
7643  the dialogs, the context menus) as well as in the XHTML and plain text
7644  output.
7645  Furthermore, the files specify available style variants (author-year, numerical
7646 , etc.) and their specifics.
7647  The cite engine files are also used to generate the options that are available
7648  in 
7649 \family sans
7650 Document\SpecialChar menuseparator
7651 Settings\SpecialChar ldots
7652 \SpecialChar menuseparator
7653 Bibliography\SpecialChar menuseparator
7654 Style engine
7655 \family default
7656 .
7657 \end_layout
7658
7659 \begin_layout Standard
7660 Even though a cite engine file is essentially a normal layout file that
7661  could theoretically include any layout information, it usually primarily
7662  includes some specific parameters such as 
7663 \begin_inset Flex Code
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 MaxCiteNames
7668 \end_layout
7669
7670 \end_inset
7671
7672
7673 \begin_inset Flex Code
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 CiteFramework
7678 \end_layout
7679
7680 \end_inset
7681
7682
7683 \begin_inset Flex Code
7684 status collapsed
7685
7686 \begin_layout Plain Layout
7687 CiteEngine
7688 \end_layout
7689
7690 \end_inset
7691
7692  and 
7693 \begin_inset Flex Code
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 CiteFormat
7698 \end_layout
7699
7700 \end_inset
7701
7702  blocks.
7703  The syntax of the latter two is described in 
7704 \begin_inset CommandInset ref
7705 LatexCommand ref
7706 reference "subsec:Citation-engine-description"
7707 plural "false"
7708 caps "false"
7709 noprefix "false"
7710
7711 \end_inset
7712
7713  and 
7714 \begin_inset CommandInset ref
7715 LatexCommand ref
7716 reference "subsec:Citation-format-description"
7717
7718 \end_inset
7719
7720 , as well as in the files themselves.
7721 \end_layout
7722
7723 \begin_layout Section
7724 \begin_inset CommandInset label
7725 LatexCommand label
7726 name "sec:TextClass"
7727
7728 \end_inset
7729
7730 The layout file format
7731 \end_layout
7732
7733 \begin_layout Standard
7734 The following sections describe how layout files are structured and written.
7735  Our advice is to go slowly, save and test often.
7736  It is really not that hard, except that the multitude of options can become
7737  overwhelming, especially if you try to check out too many at once.
7738  It becomes easier if you use existing layouts of \SpecialChar LyX
7739  as examples/reference
7740  or if you modify an existing layout to your needs.
7741 \end_layout
7742
7743 \begin_layout Standard
7744 Note that all the tags used in layout files are case-insensitive.
7745  This means that 
7746 \begin_inset Flex Code
7747 status collapsed
7748
7749 \begin_layout Plain Layout
7750 Style
7751 \end_layout
7752
7753 \end_inset
7754
7755
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 style
7761 \end_layout
7762
7763 \end_inset
7764
7765  and 
7766 \begin_inset Flex Code
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 StYlE
7771 \end_layout
7772
7773 \end_inset
7774
7775  are really the same tag.
7776  The possible arguments are printed in brackets after the tag's name.
7777  The default argument is typeset 
7778 \begin_inset Flex Code
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782
7783 \emph on
7784 emphasized
7785 \end_layout
7786
7787 \end_inset
7788
7789 .
7790  If the argument has a data type like 
7791 \begin_inset Quotes eld
7792 \end_inset
7793
7794 string
7795 \begin_inset Quotes erd
7796 \end_inset
7797
7798  or 
7799 \begin_inset Quotes eld
7800 \end_inset
7801
7802 float
7803 \begin_inset Quotes erd
7804 \end_inset
7805
7806 , the default is shown like this: 
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811 float=
7812 \emph on
7813 default
7814 \end_layout
7815
7816 \end_inset
7817
7818 .
7819 \end_layout
7820
7821 \begin_layout Subsection
7822 The document class declaration and classification
7823 \end_layout
7824
7825 \begin_layout Standard
7826 Lines in a layout file which begin with 
7827 \begin_inset Flex Code
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 #
7832 \end_layout
7833
7834 \end_inset
7835
7836  are comments.
7837  There is one exception to this rule.
7838  All 
7839 \begin_inset Flex Code
7840 status collapsed
7841
7842 \begin_layout Plain Layout
7843 *.layout
7844 \end_layout
7845
7846 \end_inset
7847
7848  files should begin with lines like:
7849 \end_layout
7850
7851 \begin_layout LyX-Code
7852
7853 \size small
7854 #% Do not delete the line below; configure depends on this 
7855 \end_layout
7856
7857 \begin_layout LyX-Code
7858
7859 \size small
7860 #  
7861 \backslash
7862 DeclareLaTeXClass{Article (Standard Class)}
7863 \end_layout
7864
7865 \begin_layout LyX-Code
7866
7867 \size small
7868 #  
7869 \backslash
7870 DeclareCategory{Articles}
7871 \end_layout
7872
7873 \begin_layout Standard
7874 The second and third lines are used when you (re)configure \SpecialChar LyX
7875 .
7876  The layout file is read by the \SpecialChar LaTeX
7877  script 
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 chkconfig.ltx
7883 \end_layout
7884
7885 \end_inset
7886
7887 , in a special mode where 
7888 \begin_inset Flex Code
7889 status collapsed
7890
7891 \begin_layout Plain Layout
7892 #
7893 \end_layout
7894
7895 \end_inset
7896
7897  is ignored.
7898  The first line is just a \SpecialChar LaTeX
7899  comment, the second one contains the mandatory
7900  declaration of the text class and the third line contains the optional
7901  classification of the class.
7902  If these lines appear in a file named 
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 article.layout
7908 \end_layout
7909
7910 \end_inset
7911
7912 , then they define a text class of name 
7913 \begin_inset Flex Code
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 article
7918 \end_layout
7919
7920 \end_inset
7921
7922  (the name of the layout file) which uses the \SpecialChar LaTeX
7923  document class 
7924 \begin_inset Flex Code
7925 status collapsed
7926
7927 \begin_layout Plain Layout
7928 article.cls
7929 \end_layout
7930
7931 \end_inset
7932
7933  (the default is to use the same name as the layout).
7934  The string 
7935 \begin_inset Quotes eld
7936 \end_inset
7937
7938 Article (Standard Class)
7939 \begin_inset Quotes erd
7940 \end_inset
7941
7942  that appears above is used as a description of the text class in the 
7943 \begin_inset Flex Noun
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 Document\SpecialChar menuseparator
7948 Settings
7949 \end_layout
7950
7951 \end_inset
7952
7953  dialog.
7954  The category (
7955 \begin_inset Quotes eld
7956 \end_inset
7957
7958 Articles
7959 \begin_inset Quotes erd
7960 \end_inset
7961
7962  in the example) is also used in the 
7963 \begin_inset Flex Noun
7964 status collapsed
7965
7966 \begin_layout Plain Layout
7967 Document\SpecialChar menuseparator
7968 Settings
7969 \end_layout
7970
7971 \end_inset
7972
7973  dialog: the text classes are grouped by these categories (which are usually
7974  genres, so typical categories are 
7975 \begin_inset Quotes eld
7976 \end_inset
7977
7978 Articles
7979 \begin_inset Quotes erd
7980 \end_inset
7981
7982
7983 \begin_inset Quotes eld
7984 \end_inset
7985
7986 Books
7987 \begin_inset Quotes erd
7988 \end_inset
7989
7990
7991 \begin_inset Quotes eld
7992 \end_inset
7993
7994 Reports
7995 \begin_inset Quotes erd
7996 \end_inset
7997
7998
7999 \begin_inset Quotes eld
8000 \end_inset
8001
8002 Letters
8003 \begin_inset Quotes erd
8004 \end_inset
8005
8006
8007 \begin_inset Quotes eld
8008 \end_inset
8009
8010 Presentations
8011 \begin_inset Quotes erd
8012 \end_inset
8013
8014
8015 \begin_inset Quotes eld
8016 \end_inset
8017
8018 Curricula Vitae
8019 \begin_inset Quotes erd
8020 \end_inset
8021
8022  etc.).
8023  If no category has been declared, the class will be put in the 
8024 \begin_inset Quotes eld
8025 \end_inset
8026
8027 Uncategorized
8028 \begin_inset Quotes erd
8029 \end_inset
8030
8031  group.
8032 \end_layout
8033
8034 \begin_layout Standard
8035 Let's assume that you wrote your own text class that uses the 
8036 \begin_inset Flex Code
8037 status collapsed
8038
8039 \begin_layout Plain Layout
8040 article.cls
8041 \end_layout
8042
8043 \end_inset
8044
8045  document class, but where you changed the appearance of the section headings.
8046  If you put it in a file 
8047 \begin_inset Flex Code
8048 status collapsed
8049
8050 \begin_layout Plain Layout
8051 myarticle.layout
8052 \end_layout
8053
8054 \end_inset
8055
8056 , the header of this file should be:
8057 \end_layout
8058
8059 \begin_layout LyX-Code
8060
8061 \size small
8062 #% Do not delete the line below; configure depends on this 
8063 \end_layout
8064
8065 \begin_layout LyX-Code
8066
8067 \size small
8068 #  
8069 \backslash
8070 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8071 \end_layout
8072
8073 \begin_layout LyX-Code
8074
8075 \size small
8076 #  
8077 \backslash
8078 DeclareCategory{Articles}
8079 \end_layout
8080
8081 \begin_layout Standard
8082 This declares a text class 
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087 myarticle
8088 \end_layout
8089
8090 \end_inset
8091
8092 , associated with the \SpecialChar LaTeX
8093  document class 
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 article.cls
8099 \end_layout
8100
8101 \end_inset
8102
8103  and described as 
8104 \begin_inset Quotes eld
8105 \end_inset
8106
8107 Article (with My Own Headings)
8108 \begin_inset Quotes erd
8109 \end_inset
8110
8111 .
8112  If your text class depends on several packages, you can declare it as:
8113 \end_layout
8114
8115 \begin_layout LyX-Code
8116
8117 \size small
8118 #% Do not delete the line below; configure depends on this 
8119 \end_layout
8120
8121 \begin_layout LyX-Code
8122
8123 \size small
8124 #  
8125 \backslash
8126 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8127 \end_layout
8128
8129 \begin_layout LyX-Code
8130
8131 \size small
8132 #  
8133 \backslash
8134 DeclareCategory{Articles}
8135 \end_layout
8136
8137 \begin_layout Standard
8138 This indicates that your text class uses the 
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143 foo.sty
8144 \end_layout
8145
8146 \end_inset
8147
8148  package.
8149  Finally, it is also possible to declare classes for DocBook code.
8150  Typical declarations will look like:
8151 \end_layout
8152
8153 \begin_layout LyX-Code
8154
8155 \size small
8156 #% Do not delete the line below; configure depends on this 
8157 \end_layout
8158
8159 \begin_layout LyX-Code
8160
8161 \size small
8162
8163 \backslash
8164 DeclareDocBookClass[article]{SGML (DocBook Article)}
8165 \end_layout
8166
8167 \begin_layout LyX-Code
8168
8169 \size small
8170
8171 \backslash
8172 DeclareCategory{Articles (DocBook)}
8173 \end_layout
8174
8175 \begin_layout Standard
8176 Note that these declarations can also be given an optional parameter declaring
8177  the name of the document class (but not a list).
8178 \end_layout
8179
8180 \begin_layout Standard
8181 So, to be as explicit as possible, the form of the layout declaration is:
8182 \end_layout
8183
8184 \begin_layout LyX-Code
8185
8186 \size small
8187 #  
8188 \backslash
8189 DeclareLaTeXClass[class,package.sty]{layout description}
8190 \end_layout
8191
8192 \begin_layout LyX-Code
8193
8194 \size small
8195 #  
8196 \backslash
8197 DeclareCategory{category}
8198 \end_layout
8199
8200 \begin_layout Standard
8201 The class need only be specified if the name of the \SpecialChar LaTeX
8202  class file and the
8203  name of the layout file are different or if there are packages to load.
8204  If the name of the class file is not specified, then \SpecialChar LyX
8205  will simply assume
8206  that it is the same as the name of the layout file.
8207 \end_layout
8208
8209 \begin_layout Standard
8210 When the text class has been modified to your taste, all you have to do
8211  is to copy it either to 
8212 \begin_inset Flex Code
8213 status collapsed
8214
8215 \begin_layout Plain Layout
8216 LyXDir/layouts/
8217 \end_layout
8218
8219 \end_inset
8220
8221  or to 
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 UserDir/layouts
8227 \end_layout
8228
8229 \end_inset
8230
8231 , run 
8232 \begin_inset Flex Noun
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236 Tools\SpecialChar menuseparator
8237 Reconfigure
8238 \end_layout
8239
8240 \end_inset
8241
8242 , exit \SpecialChar LyX
8243  and restart.
8244  Then your new text class should be available along with the others.
8245 \end_layout
8246
8247 \begin_layout Standard
8248 Once the layout file is installed, you can edit it and see your changes
8249  without having to reconfigure or to restart \SpecialChar LyX
8250 .
8251 \begin_inset Foot
8252 status collapsed
8253
8254 \begin_layout Plain Layout
8255 In versions of \SpecialChar LyX
8256  prior to 1.6, this was not true.
8257  As a result, editing layout files was very time consuming, since you had
8258  constantly to restart \SpecialChar LyX
8259  to see changes.
8260 \end_layout
8261
8262 \end_inset
8263
8264  You can force a reload of the current layout by using the \SpecialChar LyX
8265  function 
8266 \begin_inset Flex Noun
8267 status collapsed
8268
8269 \begin_layout Plain Layout
8270 layout-reload
8271 \end_layout
8272
8273 \end_inset
8274
8275 .
8276  There is no default binding for this function—though, of course, you can
8277  bind it to a key yourself.
8278  But you will normally use this function simply by entering it in the mini-buffe
8279 r.
8280  
8281 \end_layout
8282
8283 \begin_layout Standard
8284
8285 \emph on
8286 Warning
8287 \emph default
8288
8289 \begin_inset Flex Noun
8290 status collapsed
8291
8292 \begin_layout Plain Layout
8293 layout-reload
8294 \end_layout
8295
8296 \end_inset
8297
8298  is very much an `advanced feature'.
8299  It is 
8300 \emph on
8301 strongly
8302 \emph default
8303  recommended that you save your work before using this function.
8304  In fact, it is 
8305 \emph on
8306 strongly
8307 \emph default
8308  recommended that you not attempt to edit layout information while simultaneousl
8309 y working on a document that you care about.
8310  Use a test document.
8311  Syntax errors and the like in your layout file could cause peculiar behavior.
8312  In particular, such errors could cause \SpecialChar LyX
8313  to regard the current layout as
8314  invalid and to attempt to switch to some other layout.
8315 \begin_inset Foot
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 Really bad syntax errors may even caused \SpecialChar LyX
8320  to exit.
8321  This is because certain sorts of errors may make \SpecialChar LyX
8322  unable to read 
8323 \emph on
8324 any
8325 \emph default
8326  layout information.
8327  Please be careful.
8328 \end_layout
8329
8330 \end_inset
8331
8332  The \SpecialChar LyX
8333  team strives to keep \SpecialChar LyX
8334  stable in such situations, but safe is better
8335  than sorry.
8336 \begin_inset Foot
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 While we're giving advice: make regular backups.
8341  And be nice to your mother.
8342 \end_layout
8343
8344 \end_inset
8345
8346
8347 \end_layout
8348
8349 \begin_layout Subsection
8350 The Module declaration
8351 \end_layout
8352
8353 \begin_layout Standard
8354 A module must begin with a line like the following:
8355 \end_layout
8356
8357 \begin_layout LyX-Code
8358 #
8359 \backslash
8360 DeclareLyXModule[endnotes.sty]{Endnotes} 
8361 \end_layout
8362
8363 \begin_layout Standard
8364 The mandatory argument, in curly brackets, is the name of the module, as
8365  it should appear in 
8366 \begin_inset Flex Noun
8367 status collapsed
8368
8369 \begin_layout Plain Layout
8370 Document\SpecialChar menuseparator
8371 Settings\SpecialChar menuseparator
8372 Modules
8373 \end_layout
8374
8375 \end_inset
8376
8377 .
8378  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8379  packages
8380  on which the module depends.
8381  It is also possible to use the form 
8382 \begin_inset Flex Noun
8383 status collapsed
8384
8385 \begin_layout Plain Layout
8386 from->to
8387 \end_layout
8388
8389 \end_inset
8390
8391  as an optional argument, which declares that the module can only be used
8392  when there exists a conversion chain between the formats `
8393 \begin_inset Flex Code
8394 status collapsed
8395
8396 \begin_layout Plain Layout
8397 from
8398 \end_layout
8399
8400 \end_inset
8401
8402 ' and `
8403 \begin_inset Flex Code
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 to
8408 \end_layout
8409
8410 \end_inset
8411
8412 '.
8413 \end_layout
8414
8415 \begin_layout Standard
8416 The module declaration should then be followed by lines like the following
8417 \begin_inset Foot
8418 status collapsed
8419
8420 \begin_layout Plain Layout
8421 Preferably in English if the module should be published with \SpecialChar LyX
8422 .
8423  This description will appear in the list of messages to be translated and
8424  will be thus translated with the next interface update.
8425 \end_layout
8426
8427 \end_inset
8428
8429 :
8430 \end_layout
8431
8432 \begin_layout LyX-Code
8433 #DescriptionBegin 
8434 \end_layout
8435
8436 \begin_layout LyX-Code
8437 #Adds an endnote command, in addition to footnotes.
8438  
8439 \end_layout
8440
8441 \begin_layout LyX-Code
8442 #You will need to add  
8443 \backslash
8444 theendnotes in TeX code where you 
8445 \end_layout
8446
8447 \begin_layout LyX-Code
8448 #want the endnotes to appear.
8449  
8450 \end_layout
8451
8452 \begin_layout LyX-Code
8453 #DescriptionEnd 
8454 \end_layout
8455
8456 \begin_layout LyX-Code
8457 #Requires: somemodule | othermodule
8458 \end_layout
8459
8460 \begin_layout LyX-Code
8461 #Excludes: badmodule
8462 \end_layout
8463
8464 \begin_layout Standard
8465 The description is used in 
8466 \begin_inset Flex Noun
8467 status collapsed
8468
8469 \begin_layout Plain Layout
8470 Document\SpecialChar menuseparator
8471 Settings\SpecialChar menuseparator
8472 Modules
8473 \end_layout
8474
8475 \end_inset
8476
8477  to provide the user with information about what the module does.
8478  The 
8479 \begin_inset Flex Code
8480 status collapsed
8481
8482 \begin_layout Plain Layout
8483 Requires
8484 \end_layout
8485
8486 \end_inset
8487
8488  line is used to identify other modules with which this one must be used;
8489  the 
8490 \begin_inset Flex Code
8491 status collapsed
8492
8493 \begin_layout Plain Layout
8494 Excludes
8495 \end_layout
8496
8497 \end_inset
8498
8499  line is used to identify modules with which this one may not be used.
8500  Both are optional, and, as shown, multiple modules should be separated
8501  with the pipe symbol: |.
8502  Note that the required modules are treated disjunctively: 
8503 \emph on
8504 at least one
8505 \emph default
8506  of the required modules must be used.
8507  Similarly, 
8508 \emph on
8509 no
8510 \emph default
8511  excluded module may be used.
8512  Note that modules are identified here by their filenames without the 
8513 \begin_inset Flex Code
8514 status collapsed
8515
8516 \begin_layout Plain Layout
8517 .module
8518 \end_layout
8519
8520 \end_inset
8521
8522  extension.
8523  So 
8524 \begin_inset Flex Code
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 somemodule
8529 \end_layout
8530
8531 \end_inset
8532
8533  is really 
8534 \begin_inset Flex Code
8535 status collapsed
8536
8537 \begin_layout Plain Layout
8538 somemodule.module
8539 \end_layout
8540
8541 \end_inset
8542
8543 .
8544 \end_layout
8545
8546 \begin_layout Subsection
8547 The CiteEngine file declaration
8548 \end_layout
8549
8550 \begin_layout Standard
8551 A cite engine file must begin with a line like the following:
8552 \end_layout
8553
8554 \begin_layout LyX-Code
8555 #
8556 \backslash
8557 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8558 \end_layout
8559
8560 \begin_layout Standard
8561 The mandatory argument, in curly brackets, is the name of the cite style,
8562  as it should appear in 
8563 \begin_inset Flex Noun
8564 status collapsed
8565
8566 \begin_layout Plain Layout
8567 Document\SpecialChar menuseparator
8568 Settings\SpecialChar menuseparator
8569 Bibliography
8570 \end_layout
8571
8572 \end_inset
8573
8574 .
8575  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8576  packages
8577  on which the cite engine depends.
8578 \end_layout
8579
8580 \begin_layout Standard
8581 The cite engine declaration should then be followed by lines like the following
8582 \begin_inset Foot
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 Preferably in English if the module should be published with \SpecialChar LyX
8587 .
8588  This description will appear in the list of messages to be translated and
8589  will be thus translated with the next interface update.
8590 \end_layout
8591
8592 \end_inset
8593
8594 :
8595 \end_layout
8596
8597 \begin_layout LyX-Code
8598 # DescriptionBegin
8599 \end_layout
8600
8601 \begin_layout LyX-Code
8602 #   Biblatex supports many author-year and numerical styles.
8603 \end_layout
8604
8605 \begin_layout LyX-Code
8606 #   It is mainly aimed at the Humanities.
8607  It is highly
8608 \end_layout
8609
8610 \begin_layout LyX-Code
8611 #   customizable, fully localized and provides many features
8612 \end_layout
8613
8614 \begin_layout LyX-Code
8615 #   that are not possible with BibTeX.
8616  The use of 'biber' as
8617 \end_layout
8618
8619 \begin_layout LyX-Code
8620 #   bibliography processor is advised.
8621 \end_layout
8622
8623 \begin_layout LyX-Code
8624 # DescriptionEnd
8625 \end_layout
8626
8627 \begin_layout Standard
8628 The description is used in 
8629 \begin_inset Flex Noun
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 Document\SpecialChar menuseparator
8634 Settings\SpecialChar menuseparator
8635 Bibliography
8636 \end_layout
8637
8638 \end_inset
8639
8640  to provide the user with information about the cite engine.
8641 \end_layout
8642
8643 \begin_layout Subsection
8644 Format number
8645 \end_layout
8646
8647 \begin_layout Standard
8648 The first non-comment line of any layout file, included file, or module
8649  
8650 \emph on
8651 must
8652 \emph default
8653  contain the file format number:
8654 \end_layout
8655
8656 \begin_layout Description
8657 \begin_inset Flex Code
8658 status collapsed
8659
8660 \begin_layout Plain Layout
8661 Format
8662 \end_layout
8663
8664 \end_inset
8665
8666  [
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 int
8672 \end_layout
8673
8674 \end_inset
8675
8676 ] The format number of the layout file.
8677 \end_layout
8678
8679 \begin_layout Standard
8680 This tag was introduced with \SpecialChar LyX
8681
8682 \begin_inset space ~
8683 \end_inset
8684
8685 1.4.0.
8686  Layout files from older \SpecialChar LyX
8687  versions do not have an explicit file format and
8688  are considered to have 
8689 \begin_inset Flex Code
8690 status collapsed
8691
8692 \begin_layout Plain Layout
8693 Format
8694 \begin_inset space ~
8695 \end_inset
8696
8697 1
8698 \end_layout
8699
8700 \end_inset
8701
8702 .
8703  The format for the present version of \SpecialChar LyX
8704  is format 60.
8705  But each version of \SpecialChar LyX
8706  is capable of reading earlier versions' layout files,
8707  just as they are capable of reading files produced by earlier versions
8708  of \SpecialChar LyX
8709 .
8710  There is, however, no provision for converting to earlier formats.
8711 \end_layout
8712
8713 \begin_layout Subsection
8714 \begin_inset CommandInset label
8715 LatexCommand label
8716 name "subsec:General-text-class"
8717
8718 \end_inset
8719
8720 General text class parameters
8721 \end_layout
8722
8723 \begin_layout Standard
8724 These are general parameters that govern the behavior of an entire document
8725  class.
8726  (This does 
8727 \emph on
8728 not
8729 \emph default
8730  mean that they must appear in 
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 .layout
8736 \end_layout
8737
8738 \end_inset
8739
8740  files rather than in modules.
8741  A module can contain any layout tag.)
8742 \end_layout
8743
8744 \begin_layout Description
8745 \begin_inset Flex Code
8746 status collapsed
8747
8748 \begin_layout Plain Layout
8749 AddToHTMLPreamble
8750 \end_layout
8751
8752 \end_inset
8753
8754  Adds information that will be output in the 
8755 \begin_inset Flex Code
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 <head>
8760 \end_layout
8761
8762 \end_inset
8763
8764  block when the document is output to XHTML.
8765  Typically, this would be used to output CSS style information, but it can
8766  be used for anything that can appear in 
8767 \begin_inset Flex Code
8768 status collapsed
8769
8770 \begin_layout Plain Layout
8771 <head>
8772 \end_layout
8773
8774 \end_inset
8775
8776 .
8777  Must end with 
8778 \begin_inset Quotes eld
8779 \end_inset
8780
8781
8782 \begin_inset Flex Code
8783 status collapsed
8784
8785 \begin_layout Plain Layout
8786 EndPreamble
8787 \end_layout
8788
8789 \end_inset
8790
8791
8792 \begin_inset Quotes erd
8793 \end_inset
8794
8795 .
8796 \end_layout
8797
8798 \begin_layout Description
8799 \begin_inset Flex Code
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 AddToPreamble
8804 \end_layout
8805
8806 \end_inset
8807
8808  Adds information to the document preamble.
8809  Must end with
8810 \begin_inset Newline newline
8811 \end_inset
8812
8813
8814 \begin_inset Quotes eld
8815 \end_inset
8816
8817
8818 \begin_inset Flex Code
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 EndPreamble
8823 \end_layout
8824
8825 \end_inset
8826
8827
8828 \begin_inset Quotes erd
8829 \end_inset
8830
8831 .
8832 \end_layout
8833
8834 \begin_layout Description
8835 \begin_inset Flex Code
8836 status collapsed
8837
8838 \begin_layout Plain Layout
8839 CiteEngine <engine>
8840 \end_layout
8841
8842 \end_inset
8843
8844  Defines the possibilities for displaying citation references.
8845  See 
8846 \begin_inset CommandInset ref
8847 LatexCommand ref
8848 reference "subsec:Citation-engine-description"
8849 plural "false"
8850 caps "false"
8851 noprefix "false"
8852
8853 \end_inset
8854
8855  for details.
8856  Must end with 
8857 \begin_inset Quotes eld
8858 \end_inset
8859
8860
8861 \begin_inset Flex Code
8862 status collapsed
8863
8864 \begin_layout Plain Layout
8865 End
8866 \end_layout
8867
8868 \end_inset
8869
8870
8871 \begin_inset Quotes erd
8872 \end_inset
8873
8874 .
8875  Primarily used in cite engine files (see 
8876 \begin_inset CommandInset ref
8877 LatexCommand ref
8878 reference "subsec:Cite-Engine-Files"
8879 plural "false"
8880 caps "false"
8881 noprefix "false"
8882
8883 \end_inset
8884
8885 ).
8886 \end_layout
8887
8888 \begin_layout Description
8889 \begin_inset Flex Code
8890 status collapsed
8891
8892 \begin_layout Plain Layout
8893 CiteFormat
8894 \end_layout
8895
8896 \end_inset
8897
8898  Defines formats for use in the display of bibliographic information.
8899  See 
8900 \begin_inset CommandInset ref
8901 LatexCommand ref
8902 reference "subsec:Citation-format-description"
8903
8904 \end_inset
8905
8906  for details.
8907  Must end with 
8908 \begin_inset Quotes eld
8909 \end_inset
8910
8911
8912 \begin_inset Flex Code
8913 status collapsed
8914
8915 \begin_layout Plain Layout
8916 End
8917 \end_layout
8918
8919 \end_inset
8920
8921
8922 \begin_inset Quotes erd
8923 \end_inset
8924
8925 .
8926  Primarily used in cite engine files (see 
8927 \begin_inset CommandInset ref
8928 LatexCommand ref
8929 reference "subsec:Cite-Engine-Files"
8930 plural "false"
8931 caps "false"
8932 noprefix "false"
8933
8934 \end_inset
8935
8936 ).
8937 \end_layout
8938
8939 \begin_layout Description
8940 \begin_inset Flex Code
8941 status collapsed
8942
8943 \begin_layout Plain Layout
8944 CiteFramework
8945 \end_layout
8946
8947 \end_inset
8948
8949  [
8950 \begin_inset Flex Code
8951 status collapsed
8952
8953 \begin_layout Plain Layout
8954
8955 \emph on
8956 bibtex
8957 \end_layout
8958
8959 \end_inset
8960
8961 ,
8962 \begin_inset Flex Code
8963 status collapsed
8964
8965 \begin_layout Plain Layout
8966 biblatex
8967 \end_layout
8968
8969 \end_inset
8970
8971 ] Determines whether 
8972 \family sans
8973 Biblatex
8974 \family default
8975  or Bib\SpecialChar TeX
8976  is used to generate a Bibliography.
8977  Primarily used in cite engine files (see 
8978 \begin_inset CommandInset ref
8979 LatexCommand ref
8980 reference "subsec:Cite-Engine-Files"
8981 plural "false"
8982 caps "false"
8983 noprefix "false"
8984
8985 \end_inset
8986
8987 ).
8988 \end_layout
8989
8990 \begin_layout Description
8991 \begin_inset Flex Code
8992 status collapsed
8993
8994 \begin_layout Plain Layout
8995 ClassOptions
8996 \end_layout
8997
8998 \end_inset
8999
9000  Describes various global options supported by the document class.
9001  See 
9002 \begin_inset CommandInset ref
9003 LatexCommand ref
9004 reference "subsec:ClassOptions"
9005
9006 \end_inset
9007
9008  for a description.
9009  Must end with 
9010 \begin_inset Quotes eld
9011 \end_inset
9012
9013
9014 \begin_inset Flex Code
9015 status collapsed
9016
9017 \begin_layout Plain Layout
9018 End
9019 \end_layout
9020
9021 \end_inset
9022
9023
9024 \begin_inset Quotes erd
9025 \end_inset
9026
9027 .
9028 \end_layout
9029
9030 \begin_layout Description
9031 \begin_inset Flex Code
9032 status collapsed
9033
9034 \begin_layout Plain Layout
9035 Columns
9036 \end_layout
9037
9038 \end_inset
9039
9040  [
9041 \begin_inset Flex Code
9042 status collapsed
9043
9044 \begin_layout Plain Layout
9045
9046 \emph on
9047 1
9048 \end_layout
9049
9050 \end_inset
9051
9052 ,
9053 \begin_inset space \thinspace{}
9054 \end_inset
9055
9056
9057 \begin_inset Flex Code
9058 status collapsed
9059
9060 \begin_layout Plain Layout
9061 2
9062 \end_layout
9063
9064 \end_inset
9065
9066 ] Whether the class should 
9067 \emph on
9068 default
9069 \emph default
9070  to having one or two columns.
9071  Can be changed in the 
9072 \begin_inset Flex Noun
9073 status collapsed
9074
9075 \begin_layout Plain Layout
9076 Document\SpecialChar menuseparator
9077 Settings
9078 \end_layout
9079
9080 \end_inset
9081
9082  dialog.
9083 \end_layout
9084
9085 \begin_layout Description
9086 \begin_inset Flex Code
9087 status collapsed
9088
9089 \begin_layout Plain Layout
9090 Counter
9091 \end_layout
9092
9093 \end_inset
9094
9095  [
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 string
9101 \end_layout
9102
9103 \end_inset
9104
9105 ] This sequence defines the properties for a counter.
9106  If the counter does not yet exist, it is created; if it does exist, it
9107  is modified.
9108  Must end with 
9109 \begin_inset Quotes eld
9110 \end_inset
9111
9112
9113 \begin_inset Flex Code
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 End
9118 \end_layout
9119
9120 \end_inset
9121
9122
9123 \begin_inset Quotes erd
9124 \end_inset
9125
9126 .
9127 \begin_inset Newline newline
9128 \end_inset
9129
9130 See 
9131 \begin_inset CommandInset ref
9132 LatexCommand ref
9133 reference "subsec:Counters"
9134
9135 \end_inset
9136
9137  for details on counters.
9138 \end_layout
9139
9140 \begin_layout Description
9141 \begin_inset Flex Code
9142 status collapsed
9143
9144 \begin_layout Plain Layout
9145 DefaultFont
9146 \end_layout
9147
9148 \end_inset
9149
9150  Sets the default font used to display the document.
9151  See 
9152 \begin_inset CommandInset ref
9153 LatexCommand ref
9154 reference "subsec:Font-description"
9155
9156 \end_inset
9157
9158  for how to declare fonts.
9159  Must end with 
9160 \begin_inset Quotes eld
9161 \end_inset
9162
9163
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 EndFont
9169 \end_layout
9170
9171 \end_inset
9172
9173
9174 \begin_inset Quotes erd
9175 \end_inset
9176
9177 .
9178 \end_layout
9179
9180 \begin_layout Description
9181 \begin_inset Flex Code
9182 status collapsed
9183
9184 \begin_layout Plain Layout
9185 DefaultModule
9186 \end_layout
9187
9188 \end_inset
9189
9190  [
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 <module>
9196 \end_layout
9197
9198 \end_inset
9199
9200 ] Specifies a module to be included by default with this document class.
9201  The module is specified as filename without the 
9202 \begin_inset Flex Code
9203 status collapsed
9204
9205 \begin_layout Plain Layout
9206 .module
9207 \end_layout
9208
9209 \end_inset
9210
9211  extension.
9212  The user can still remove the module, but it will be active at the outset.
9213  (This applies only when new files are created, or when this class is chosen
9214  for an existing document.)
9215 \end_layout
9216
9217 \begin_layout Description
9218 \begin_inset Flex Code
9219 status collapsed
9220
9221 \begin_layout Plain Layout
9222 DefaultStyle
9223 \end_layout
9224
9225 \end_inset
9226
9227  [
9228 \begin_inset Flex Code
9229 status collapsed
9230
9231 \begin_layout Plain Layout
9232 <style>
9233 \end_layout
9234
9235 \end_inset
9236
9237 ] This is the style that will be assigned to new paragraphs, usually 
9238 \begin_inset Flex Noun
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 Standard
9243 \end_layout
9244
9245 \end_inset
9246
9247 .
9248  This will default to the first defined style if not given, but you are
9249  encouraged to use this directive.
9250 \end_layout
9251
9252 \begin_layout Description
9253 \begin_inset Flex Code
9254 status collapsed
9255
9256 \begin_layout Plain Layout
9257 ExcludesModule
9258 \end_layout
9259
9260 \end_inset
9261
9262  [
9263 \begin_inset Flex Code
9264 status collapsed
9265
9266 \begin_layout Plain Layout
9267 <module>
9268 \end_layout
9269
9270 \end_inset
9271
9272 ] This tag indicates that the module (which is specified by filename without
9273  the 
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278 .module
9279 \end_layout
9280
9281 \end_inset
9282
9283  extension) cannot be used with this document class.
9284  This might be used in a journal-specific layout file to prevent, say, the
9285  use of the 
9286 \begin_inset Flex Code
9287 status collapsed
9288
9289 \begin_layout Plain Layout
9290 theorems-sec
9291 \end_layout
9292
9293 \end_inset
9294
9295  module that numbers theorems by section.
9296  This tag may 
9297 \emph on
9298 not
9299 \emph default
9300  be used in a module.
9301  Modules have their own way of excluding other modules (see 
9302 \begin_inset CommandInset ref
9303 LatexCommand ref
9304 reference "subsec:Layout-modules"
9305
9306 \end_inset
9307
9308 ).
9309 \end_layout
9310
9311 \begin_layout Description
9312 \begin_inset Flex Code
9313 status collapsed
9314
9315 \begin_layout Plain Layout
9316 Float
9317 \end_layout
9318
9319 \end_inset
9320
9321  Defines a new float.
9322  See 
9323 \begin_inset CommandInset ref
9324 LatexCommand ref
9325 reference "subsec:Floats"
9326
9327 \end_inset
9328
9329  for details.
9330  Must end with 
9331 \begin_inset Quotes eld
9332 \end_inset
9333
9334
9335 \begin_inset Flex Code
9336 status collapsed
9337
9338 \begin_layout Plain Layout
9339 End
9340 \end_layout
9341
9342 \end_inset
9343
9344
9345 \begin_inset Quotes erd
9346 \end_inset
9347
9348 .
9349 \end_layout
9350
9351 \begin_layout Description
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 HTMLPreamble
9357 \end_layout
9358
9359 \end_inset
9360
9361  Sets the information that will be output in the 
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 <head>
9367 \end_layout
9368
9369 \end_inset
9370
9371  block when this document class is output to XHTML.
9372  Note that this will completely override any prior 
9373 \begin_inset Flex Code
9374 status collapsed
9375
9376 \begin_layout Plain Layout
9377 HTMLPreamble
9378 \end_layout
9379
9380 \end_inset
9381
9382  or 
9383 \begin_inset Flex Code
9384 status collapsed
9385
9386 \begin_layout Plain Layout
9387 AddToHTMLPreamble
9388 \end_layout
9389
9390 \end_inset
9391
9392  declarations.
9393  (Use
9394 \begin_inset Newline newline
9395 \end_inset
9396
9397
9398 \begin_inset Flex Code
9399 status collapsed
9400
9401 \begin_layout Plain Layout
9402 AddToHTMLPreamble
9403 \end_layout
9404
9405 \end_inset
9406
9407  if you just want to add material to the preamble.) Must end with 
9408 \begin_inset Quotes eld
9409 \end_inset
9410
9411
9412 \begin_inset Flex Code
9413 status collapsed
9414
9415 \begin_layout Plain Layout
9416 EndPreamble
9417 \end_layout
9418
9419 \end_inset
9420
9421
9422 \begin_inset Quotes erd
9423 \end_inset
9424
9425 .
9426 \end_layout
9427
9428 \begin_layout Description
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433 HTMLTOCSection
9434 \end_layout
9435
9436 \end_inset
9437
9438  [
9439 \begin_inset Flex Code
9440 status collapsed
9441
9442 \begin_layout Plain Layout
9443 <style>
9444 \end_layout
9445
9446 \end_inset
9447
9448 ] The style to use for the table of contents, bibliography, and so forth,
9449  when the document is output to HTML.
9450  For articles, this should normally be 
9451 \begin_inset Flex Code
9452 status collapsed
9453
9454 \begin_layout Plain Layout
9455 Section
9456 \end_layout
9457
9458 \end_inset
9459
9460 ; for books 
9461 \begin_inset Flex Code
9462 status collapsed
9463
9464 \begin_layout Plain Layout
9465 Chapter
9466 \end_layout
9467
9468 \end_inset
9469
9470 .
9471  If it is not given, then \SpecialChar LyX
9472  will attempt to figure out which layout to use.
9473 \end_layout
9474
9475 \begin_layout Description
9476 \begin_inset Flex Code
9477 status collapsed
9478
9479 \begin_layout Plain Layout
9480 IfCounter
9481 \end_layout
9482
9483 \end_inset
9484
9485  [
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 <counter>
9491 \end_layout
9492
9493 \end_inset
9494
9495 ] Modifies the properties of the given counter.
9496  If the counter does not exist, the statement is ignored.
9497  Must end with 
9498 \begin_inset Quotes eld
9499 \end_inset
9500
9501
9502 \begin_inset Flex Code
9503 status collapsed
9504
9505 \begin_layout Plain Layout
9506 End
9507 \end_layout
9508
9509 \end_inset
9510
9511
9512 \begin_inset Quotes erd
9513 \end_inset
9514
9515 .
9516 \begin_inset Newline newline
9517 \end_inset
9518
9519 See 
9520 \begin_inset CommandInset ref
9521 LatexCommand ref
9522 reference "subsec:Counters"
9523
9524 \end_inset
9525
9526  for details on counters.
9527 \end_layout
9528
9529 \begin_layout Description
9530 \begin_inset Flex Code
9531 status collapsed
9532
9533 \begin_layout Plain Layout
9534 Input
9535 \end_layout
9536
9537 \end_inset
9538
9539  [
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 <filename>
9545 \end_layout
9546
9547 \end_inset
9548
9549 ] This allows you to include another layout definition file within yours
9550  to avoid duplicating commands.
9551  Common examples are the standard layout files, for example, 
9552 \begin_inset Flex Code
9553 status collapsed
9554
9555 \begin_layout Plain Layout
9556 stdclass.inc
9557 \end_layout
9558
9559 \end_inset
9560
9561 , which contains most of the basic layouts.
9562 \end_layout
9563
9564 \begin_layout Description
9565 \begin_inset Flex Code
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 InsetLayout
9570 \end_layout
9571
9572 \end_inset
9573
9574  [
9575 \begin_inset Flex Code
9576 status collapsed
9577
9578 \begin_layout Plain Layout
9579 <type>
9580 \end_layout
9581
9582 \end_inset
9583
9584 ] This section (re-)defines the layout of an inset.
9585  It can be applied to an existing inset or to a new, user-defined inset,
9586  e.g., a new character style.
9587  Must end with 
9588 \begin_inset Quotes eld
9589 \end_inset
9590
9591
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 End
9597 \end_layout
9598
9599 \end_inset
9600
9601
9602 \begin_inset Quotes erd
9603 \end_inset
9604
9605 .
9606 \begin_inset Newline newline
9607 \end_inset
9608
9609 See 
9610 \begin_inset CommandInset ref
9611 LatexCommand ref
9612 reference "subsec:Flex-insets-and"
9613
9614 \end_inset
9615
9616  for more information.
9617  
9618 \end_layout
9619
9620 \begin_layout Description
9621 \begin_inset Flex Code
9622 status collapsed
9623
9624 \begin_layout Plain Layout
9625 LeftMargin
9626 \end_layout
9627
9628 \end_inset
9629
9630  [
9631 \begin_inset Flex Code
9632 status collapsed
9633
9634 \begin_layout Plain Layout
9635 string
9636 \end_layout
9637
9638 \end_inset
9639
9640 ] A string that indicates the width of the left margin on the screen, for
9641  example, 
9642 \begin_inset Quotes eld
9643 \end_inset
9644
9645
9646 \begin_inset Flex Code
9647 status collapsed
9648
9649 \begin_layout Plain Layout
9650 MMMMM
9651 \end_layout
9652
9653 \end_inset
9654
9655
9656 \begin_inset Quotes erd
9657 \end_inset
9658
9659 .
9660  (Note that this is not a `length', like 
9661 \begin_inset Quotes eld
9662 \end_inset
9663
9664 2ex
9665 \begin_inset Quotes erd
9666 \end_inset
9667
9668 .)
9669 \end_layout
9670
9671 \begin_layout Description
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676 MaxCiteNames
9677 \end_layout
9678
9679 \end_inset
9680
9681  [
9682 \begin_inset Flex Code
9683 status collapsed
9684
9685 \begin_layout Plain Layout
9686 integer
9687 \end_layout
9688
9689 \end_inset
9690
9691 ] An integer that determines the maximal number of names displayed in an
9692  author-year citation before the citation switches to 
9693 \begin_inset Quotes eld
9694 \end_inset
9695
9696 FirstAuthor et al.
9697 \begin_inset Quotes erd
9698 \end_inset
9699
9700 .
9701  Primarily used in cite engine files (see 
9702 \begin_inset CommandInset ref
9703 LatexCommand ref
9704 reference "subsec:Cite-Engine-Files"
9705 plural "false"
9706 caps "false"
9707 noprefix "false"
9708
9709 \end_inset
9710
9711 ).
9712 \end_layout
9713
9714 \begin_layout Description
9715 \begin_inset Flex Code
9716 status collapsed
9717
9718 \begin_layout Plain Layout
9719 ModifyStyle
9720 \end_layout
9721
9722 \end_inset
9723
9724  [
9725 \begin_inset Flex Code
9726 status collapsed
9727
9728 \begin_layout Plain Layout
9729 <style>
9730 \end_layout
9731
9732 \end_inset
9733
9734 ] Modifies the properties of the given paragraph style.
9735  If the style does not exist, this section is ignored.
9736  Must end with 
9737 \begin_inset Quotes eld
9738 \end_inset
9739
9740
9741 \begin_inset Flex Code
9742 status collapsed
9743
9744 \begin_layout Plain Layout
9745 End
9746 \end_layout
9747
9748 \end_inset
9749
9750
9751 \begin_inset Quotes erd
9752 \end_inset
9753
9754 .
9755 \end_layout
9756
9757 \begin_layout Description
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 NoCounter
9763 \end_layout
9764
9765 \end_inset
9766
9767  [
9768 \begin_inset Flex Code
9769 status collapsed
9770
9771 \begin_layout Plain Layout
9772 <counter>
9773 \end_layout
9774
9775 \end_inset
9776
9777 ] Deletes an existing counter, usually one defined in an included file.
9778 \end_layout
9779
9780 \begin_layout Description
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785 NoFloat
9786 \end_layout
9787
9788 \end_inset
9789
9790  [
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795 <float>
9796 \end_layout
9797
9798 \end_inset
9799
9800 ] Deletes an existing float.
9801  This is particularly useful when you want to suppress a float that has
9802  been defined in an input file.
9803 \end_layout
9804
9805 \begin_layout Description
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810 NoStyle
9811 \end_layout
9812
9813 \end_inset
9814
9815  [
9816 \begin_inset Flex Code
9817 status collapsed
9818
9819 \begin_layout Plain Layout
9820 <style>
9821 \end_layout
9822
9823 \end_inset
9824
9825 ] Deletes an existing style.
9826 \end_layout
9827
9828 \begin_layout Description
9829 \begin_inset Flex Code
9830 status collapsed
9831
9832 \begin_layout Plain Layout
9833 OutlinerName
9834 \end_layout
9835
9836 \end_inset
9837
9838  [
9839 \begin_inset Flex Code
9840 status collapsed
9841
9842 \begin_layout Plain Layout
9843 <type>
9844 \end_layout
9845
9846 \end_inset
9847
9848 ] [
9849 \begin_inset Flex Code
9850 status collapsed
9851
9852 \begin_layout Plain Layout
9853 <string>
9854 \end_layout
9855
9856 \end_inset
9857
9858 ] Define a new table of contents with type 
9859 \begin_inset Flex Code
9860 status collapsed
9861
9862 \begin_layout Plain Layout
9863 <type>
9864 \end_layout
9865
9866 \end_inset
9867
9868  and name 
9869 \begin_inset Flex Code
9870 status collapsed
9871
9872 \begin_layout Plain Layout
9873 <string>
9874 \end_layout
9875
9876 \end_inset
9877
9878 .
9879  See also the AddToToc commands.
9880 \end_layout
9881
9882 \begin_layout Description
9883 \begin_inset Flex Code
9884 status collapsed
9885
9886 \begin_layout Plain Layout
9887 OutputFormat
9888 \end_layout
9889
9890 \end_inset
9891
9892  [
9893 \begin_inset Flex Code
9894 status collapsed
9895
9896 \begin_layout Plain Layout
9897 <format>
9898 \end_layout
9899
9900 \end_inset
9901
9902 ] The file format (as defined in the \SpecialChar LyX
9903  preferences) produced by this document
9904  class.
9905  It is mainly useful when 
9906 \begin_inset Flex Code
9907 status collapsed
9908
9909 \begin_layout Plain Layout
9910 OutputType
9911 \end_layout
9912
9913 \end_inset
9914
9915  is 
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 literate
9921 \end_layout
9922
9923 \end_inset
9924
9925  and one wants to define a new type of literate document.
9926  The format is reset to 
9927 \begin_inset Quotes eld
9928 \end_inset
9929
9930
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 docbook
9936 \end_layout
9937
9938 \end_inset
9939
9940
9941 \begin_inset Quotes erd
9942 \end_inset
9943
9944  or 
9945 \begin_inset Quotes eld
9946 \end_inset
9947
9948
9949 \begin_inset Flex Code
9950 status collapsed
9951
9952 \begin_layout Plain Layout
9953 latex
9954 \end_layout
9955
9956 \end_inset
9957
9958
9959 \begin_inset Quotes erd
9960 \end_inset
9961
9962  when the corresponding 
9963 \begin_inset Flex Code
9964 status collapsed
9965
9966 \begin_layout Plain Layout
9967 OutputType
9968 \end_layout
9969
9970 \end_inset
9971
9972  parameter is encountered.
9973 \end_layout
9974
9975 \begin_layout Description
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980 OutputType
9981 \end_layout
9982
9983 \end_inset
9984
9985  [
9986 \begin_inset Flex Code
9987 status collapsed
9988
9989 \begin_layout Plain Layout
9990
9991 \emph on
9992 lat
9993 \emph default
9994 ex
9995 \end_layout
9996
9997 \end_inset
9998
9999
10000 \begin_inset Flex Code
10001 status collapsed
10002
10003 \begin_layout Plain Layout
10004 docbook
10005 \end_layout
10006
10007 \end_inset
10008
10009
10010 \begin_inset Flex Code
10011 status collapsed
10012
10013 \begin_layout Plain Layout
10014 literate
10015 \end_layout
10016
10017 \end_inset
10018
10019 ] Specifies what sort of output documents using this class will produce.
10020 \end_layout
10021
10022 \begin_layout Description
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 PackageOptions
10028 \end_layout
10029
10030 \end_inset
10031
10032  [
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 string
10038 \end_layout
10039
10040 \end_inset
10041
10042  
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 string
10048 \end_layout
10049
10050 \end_inset
10051
10052 ] Specifies options, given in the second string, for the package named by
10053  the first string.
10054  For example, 
10055 \begin_inset Quotes eld
10056 \end_inset
10057
10058
10059 \begin_inset Flex Code
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 PackageOptions natbib square
10064 \end_layout
10065
10066 \end_inset
10067
10068
10069 \begin_inset Quotes erd
10070 \end_inset
10071
10072  will cause 
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 natbib
10078 \end_layout
10079
10080 \end_inset
10081
10082  to be loaded with the 
10083 \begin_inset Flex Code
10084 status collapsed
10085
10086 \begin_layout Plain Layout
10087 square
10088 \end_layout
10089
10090 \end_inset
10091
10092  option.
10093  (For \SpecialChar TeX
10094 perts, this causes \SpecialChar LyX
10095  to output: 
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100
10101 \backslash
10102 PassOptionsToPackage{natbib}{square}
10103 \end_layout
10104
10105 \end_inset
10106
10107  prior to loading 
10108 \begin_inset Flex Code
10109 status collapsed
10110
10111 \begin_layout Plain Layout
10112 natbib
10113 \end_layout
10114
10115 \end_inset
10116
10117 .)
10118 \end_layout
10119
10120 \begin_layout Description
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 PageStyle
10126 \end_layout
10127
10128 \end_inset
10129
10130  [
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135
10136 \emph on
10137 plain
10138 \end_layout
10139
10140 \end_inset
10141
10142
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 empty
10148 \end_layout
10149
10150 \end_inset
10151
10152
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 headings
10158 \end_layout
10159
10160 \end_inset
10161
10162 ] The default pagestyle.
10163  Can be changed in the 
10164 \begin_inset Flex Noun
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 Document\SpecialChar menuseparator
10169 Settings
10170 \end_layout
10171
10172 \end_inset
10173
10174  dialog.
10175 \end_layout
10176
10177 \begin_layout Description
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 Preamble
10183 \end_layout
10184
10185 \end_inset
10186
10187  Sets the preamble for the \SpecialChar LaTeX
10188  document.
10189  Note that this will completely override any prior 
10190 \begin_inset Flex Code
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 Preamble
10195 \end_layout
10196
10197 \end_inset
10198
10199  or 
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 AddToPreamble
10205 \end_layout
10206
10207 \end_inset
10208
10209  declarations.
10210  (Use 
10211 \begin_inset Flex Code
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215 AddToPreamble
10216 \end_layout
10217
10218 \end_inset
10219
10220  if you just want to add material to the preamble.) Must end with 
10221 \begin_inset Quotes eld
10222 \end_inset
10223
10224
10225 \begin_inset Flex Code
10226 status collapsed
10227
10228 \begin_layout Plain Layout
10229 EndPreamble
10230 \end_layout
10231
10232 \end_inset
10233
10234
10235 \begin_inset Quotes erd
10236 \end_inset
10237
10238 .
10239 \end_layout
10240
10241 \begin_layout Description
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246 Provides
10247 \end_layout
10248
10249 \end_inset
10250
10251  [
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 string
10257 \end_layout
10258
10259 \end_inset
10260
10261 ] [
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266
10267 \emph on
10268 0
10269 \end_layout
10270
10271 \end_inset
10272
10273 ,
10274 \begin_inset space \thinspace{}
10275 \end_inset
10276
10277
10278 \begin_inset Flex Code
10279 status collapsed
10280
10281 \begin_layout Plain Layout
10282 1
10283 \end_layout
10284
10285 \end_inset
10286
10287 ] Whether the class already provides the feature 
10288 \begin_inset Flex Code
10289 status collapsed
10290
10291 \begin_layout Plain Layout
10292 string
10293 \end_layout
10294
10295 \end_inset
10296
10297 .
10298  A feature is in general the name of a package (e.
10299 \begin_inset space \thinspace{}
10300 \end_inset
10301
10302 g.
10303 \begin_inset space \space{}
10304 \end_inset
10305
10306
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311 amsmath
10312 \end_layout
10313
10314 \end_inset
10315
10316  or 
10317 \begin_inset Flex Code
10318 status collapsed
10319
10320 \begin_layout Plain Layout
10321 makeidx
10322 \end_layout
10323
10324 \end_inset
10325
10326 ) or a macro (e.
10327 \begin_inset space \thinspace{}
10328 \end_inset
10329
10330 g.
10331 \begin_inset space \space{}
10332 \end_inset
10333
10334
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 url
10340 \end_layout
10341
10342 \end_inset
10343
10344  or 
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 boldsymbol
10350 \end_layout
10351
10352 \end_inset
10353
10354 ).
10355  See 
10356 \begin_inset CommandInset ref
10357 LatexCommand ref
10358 reference "chap:List-of-functions"
10359
10360 \end_inset
10361
10362  for the list of features.
10363 \end_layout
10364
10365 \begin_layout Description
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 ProvidesModule
10371 \end_layout
10372
10373 \end_inset
10374
10375  [
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 string
10381 \end_layout
10382
10383 \end_inset
10384
10385 ] Indicates that this layout provides the functionality of the module mentioned,
10386  which should be specified by the filename without the 
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 .module
10392 \end_layout
10393
10394 \end_inset
10395
10396  extension.
10397  This will typically be used if the layout includes the module directly,
10398  rather than using the 
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 DefaultModule
10404 \end_layout
10405
10406 \end_inset
10407
10408  tag to indicate that it ought to be used.
10409  It could also be used in a module that provided an alternate implementation
10410  of the same functionality.
10411 \end_layout
10412
10413 \begin_layout Description
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 ProvideStyle
10419 \end_layout
10420
10421 \end_inset
10422
10423  [
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 <style>
10429 \end_layout
10430
10431 \end_inset
10432
10433 ] Creates a new paragraph style if it does not already exist.
10434  If the style does exist, this section is ignored.
10435  Must end with 
10436 \begin_inset Quotes eld
10437 \end_inset
10438
10439
10440 \begin_inset Flex Code
10441 status collapsed
10442
10443 \begin_layout Plain Layout
10444 End
10445 \end_layout
10446
10447 \end_inset
10448
10449
10450 \begin_inset Quotes erd
10451 \end_inset
10452
10453 .
10454 \end_layout
10455
10456 \begin_layout Description
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 Requires
10462 \end_layout
10463
10464 \end_inset
10465
10466  [
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 string
10472 \end_layout
10473
10474 \end_inset
10475
10476 ] Whether the class requires the feature 
10477 \begin_inset Flex Code
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481 string
10482 \end_layout
10483
10484 \end_inset
10485
10486 .
10487  Multiple features must be separated by commas.
10488  Note that you can only request supported features.
10489  (See 
10490 \begin_inset CommandInset ref
10491 LatexCommand ref
10492 reference "chap:List-of-functions"
10493
10494 \end_inset
10495
10496  for the list of features.).
10497  If you require a package with specific options, you can additionally use
10498  
10499 \begin_inset Flex Code
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 PackageOptions
10504 \end_layout
10505
10506 \end_inset
10507
10508 .
10509 \end_layout
10510
10511 \begin_layout Description
10512 \begin_inset Flex Code
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516 RightMargin
10517 \end_layout
10518
10519 \end_inset
10520
10521  [
10522 \begin_inset Flex Code
10523 status collapsed
10524
10525 \begin_layout Plain Layout
10526 string
10527 \end_layout
10528
10529 \end_inset
10530
10531 ] A string that indicates the width of the right margin on the screen, for
10532  example, 
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 MMMMM
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 Description
10554 \begin_inset Flex Code
10555 status collapsed
10556
10557 \begin_layout Plain Layout
10558 SecNumDepth
10559 \end_layout
10560
10561 \end_inset
10562
10563  [
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 int=3
10569 \end_layout
10570
10571 \end_inset
10572
10573 ] Sets which divisions get numbered.
10574  Corresponds to the
10575 \begin_inset Newline newline
10576 \end_inset
10577
10578
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 secnumdepth
10584 \end_layout
10585
10586 \end_inset
10587
10588  counter in \SpecialChar LaTeX
10589 .
10590 \end_layout
10591
10592 \begin_layout Description
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 Sides
10598 \end_layout
10599
10600 \end_inset
10601
10602  [
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607
10608 \emph on
10609 1
10610 \end_layout
10611
10612 \end_inset
10613
10614 ,
10615 \begin_inset space \thinspace{}
10616 \end_inset
10617
10618
10619 \begin_inset Flex Code
10620 status collapsed
10621
10622 \begin_layout Plain Layout
10623 2
10624 \end_layout
10625
10626 \end_inset
10627
10628 ] Whether the class-default should be printing on one or both sides of the
10629  paper.
10630  Can be changed in the 
10631 \begin_inset Flex Noun
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 Document\SpecialChar menuseparator
10636 Settings
10637 \end_layout
10638
10639 \end_inset
10640
10641  dialog.
10642 \end_layout
10643
10644 \begin_layout Description
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 Style
10650 \end_layout
10651
10652 \end_inset
10653
10654  [
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 <name>
10660 \end_layout
10661
10662 \end_inset
10663
10664 ] This sequence defines a paragraph style.
10665  If the style does not yet exist, it is created; if it does exist, its parameter
10666 s are modified.
10667  Must end with 
10668 \begin_inset Quotes eld
10669 \end_inset
10670
10671
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 End
10677 \end_layout
10678
10679 \end_inset
10680
10681
10682 \begin_inset Quotes erd
10683 \end_inset
10684
10685 .
10686 \begin_inset Newline newline
10687 \end_inset
10688
10689 See 
10690 \begin_inset CommandInset ref
10691 LatexCommand ref
10692 reference "subsec:Paragraph-Styles"
10693
10694 \end_inset
10695
10696  for details on paragraph styles.
10697 \end_layout
10698
10699 \begin_layout Description
10700 \begin_inset Flex Code
10701 status collapsed
10702
10703 \begin_layout Plain Layout
10704 TitleLatexName
10705 \end_layout
10706
10707 \end_inset
10708
10709  [
10710 \begin_inset Flex Code
10711 status collapsed
10712
10713 \begin_layout Plain Layout
10714 string="maketitle"
10715 \end_layout
10716
10717 \end_inset
10718
10719 ] The name of the command or environment to be used with 
10720 \begin_inset Flex Code
10721 status collapsed
10722
10723 \begin_layout Plain Layout
10724 TitleLatexType
10725 \end_layout
10726
10727 \end_inset
10728
10729 .
10730 \end_layout
10731
10732 \begin_layout Description
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 TitleLatexType
10738 \end_layout
10739
10740 \end_inset
10741
10742  [
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747
10748 \emph on
10749 CommandAfter
10750 \end_layout
10751
10752 \end_inset
10753
10754
10755 \begin_inset Flex Code
10756 status collapsed
10757
10758 \begin_layout Plain Layout
10759 Environment
10760 \end_layout
10761
10762 \end_inset
10763
10764 ] Indicates what kind of markup is used to define the title of a document.
10765  
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 CommandAfter
10771 \end_layout
10772
10773 \end_inset
10774
10775  means that the macro with name 
10776 \begin_inset Flex Code
10777 status collapsed
10778
10779 \begin_layout Plain Layout
10780 TitleLatexName
10781 \end_layout
10782
10783 \end_inset
10784
10785  will be inserted after the last layout which has 
10786 \begin_inset Quotes eld
10787 \end_inset
10788
10789
10790 \begin_inset Flex Code
10791 status collapsed
10792
10793 \begin_layout Plain Layout
10794 InTitle
10795 \begin_inset space ~
10796 \end_inset
10797
10798 1
10799 \end_layout
10800
10801 \end_inset
10802
10803
10804 \begin_inset Quotes erd
10805 \end_inset
10806
10807 .
10808  
10809 \begin_inset Flex Code
10810 status collapsed
10811
10812 \begin_layout Plain Layout
10813 Environment
10814 \end_layout
10815
10816 \end_inset
10817
10818  corresponds to the case where all layouts which have 
10819 \begin_inset Quotes eld
10820 \end_inset
10821
10822
10823 \begin_inset Flex Code
10824 status collapsed
10825
10826 \begin_layout Plain Layout
10827 InTitle
10828 \begin_inset space ~
10829 \end_inset
10830
10831 1
10832 \end_layout
10833
10834 \end_inset
10835
10836
10837 \begin_inset Quotes erd
10838 \end_inset
10839
10840  should be enclosed into the 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 TitleLatexName
10846 \end_layout
10847
10848 \end_inset
10849
10850  environment.
10851 \end_layout
10852
10853 \begin_layout Description
10854 \begin_inset Flex Code
10855 status collapsed
10856
10857 \begin_layout Plain Layout
10858 TocDepth
10859 \end_layout
10860
10861 \end_inset
10862
10863  [
10864 \begin_inset Flex Code
10865 status collapsed
10866
10867 \begin_layout Plain Layout
10868 int=3
10869 \end_layout
10870
10871 \end_inset
10872
10873 ] Sets which divisions are included in the table of contents.
10874  Corresponds to the 
10875 \begin_inset Flex Code
10876 status collapsed
10877
10878 \begin_layout Plain Layout
10879 tocdepth
10880 \end_layout
10881
10882 \end_inset
10883
10884  counter in \SpecialChar LaTeX
10885 .
10886 \end_layout
10887
10888 \begin_layout Subsection
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 ClassOptions
10894 \end_layout
10895
10896 \end_inset
10897
10898  section
10899 \begin_inset CommandInset label
10900 LatexCommand label
10901 name "subsec:ClassOptions"
10902
10903 \end_inset
10904
10905
10906 \end_layout
10907
10908 \begin_layout Standard
10909 The 
10910 \begin_inset Flex Code
10911 status collapsed
10912
10913 \begin_layout Plain Layout
10914 ClassOptions
10915 \end_layout
10916
10917 \end_inset
10918
10919  section can contain the following entries:
10920 \end_layout
10921
10922 \begin_layout Description
10923 \begin_inset Flex Code
10924 status collapsed
10925
10926 \begin_layout Plain Layout
10927 FontSize
10928 \end_layout
10929
10930 \end_inset
10931
10932  [
10933 \begin_inset Flex Code
10934 status collapsed
10935
10936 \begin_layout Plain Layout
10937 string="10|11|12"
10938 \end_layout
10939
10940 \end_inset
10941
10942 ] The list of available font sizes for the document's main font, separated
10943  by 
10944 \begin_inset Quotes eld
10945 \end_inset
10946
10947
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 |
10953 \end_layout
10954
10955 \end_inset
10956
10957
10958 \begin_inset Quotes erd
10959 \end_inset
10960
10961 .
10962 \end_layout
10963
10964 \begin_layout Description
10965 \begin_inset Flex Code
10966 status collapsed
10967
10968 \begin_layout Plain Layout
10969 Header
10970 \end_layout
10971
10972 \end_inset
10973
10974  Used to set the DTD line with XML-based output classes.
10975  E.
10976 \begin_inset space \thinspace{}
10977 \end_inset
10978
10979 g.: PUBLIC 
10980 \begin_inset Quotes eld
10981 \end_inset
10982
10983 -//OASIS//DTD DocBook V4.2//EN
10984 \begin_inset Quotes erd
10985 \end_inset
10986
10987 .
10988 \end_layout
10989
10990 \begin_layout Description
10991 \begin_inset Flex Code
10992 status collapsed
10993
10994 \begin_layout Plain Layout
10995 PageStyle
10996 \end_layout
10997
10998 \end_inset
10999
11000  [
11001 \begin_inset Flex Code
11002 status collapsed
11003
11004 \begin_layout Plain Layout
11005 string="empty|plain|headings|fancy"
11006 \end_layout
11007
11008 \end_inset
11009
11010 ] The list of available page sty\SpecialChar softhyphen
11011 les, separated by 
11012 \begin_inset Quotes eld
11013 \end_inset
11014
11015
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 |
11021 \end_layout
11022
11023 \end_inset
11024
11025
11026 \begin_inset Quotes erd
11027 \end_inset
11028
11029 .
11030 \end_layout
11031
11032 \begin_layout Description
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 Other
11038 \end_layout
11039
11040 \end_inset
11041
11042  [
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 string=""
11048 \end_layout
11049
11050 \end_inset
11051
11052 ] Some document class options, separated by a comma, that will be added
11053  to the optional part of the 
11054 \begin_inset Flex Code
11055 status collapsed
11056
11057 \begin_layout Plain Layout
11058
11059 \backslash
11060 documentclass
11061 \end_layout
11062
11063 \end_inset
11064
11065  command.
11066 \end_layout
11067
11068 \begin_layout Standard
11069 The 
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 ClassOptions
11075 \end_layout
11076
11077 \end_inset
11078
11079  section must end with 
11080 \begin_inset Quotes eld
11081 \end_inset
11082
11083
11084 \begin_inset Flex Code
11085 status collapsed
11086
11087 \begin_layout Plain Layout
11088 End
11089 \end_layout
11090
11091 \end_inset
11092
11093
11094 \begin_inset Quotes erd
11095 \end_inset
11096
11097 .
11098 \end_layout
11099
11100 \begin_layout Subsection
11101 Paragraph styles
11102 \begin_inset CommandInset label
11103 LatexCommand label
11104 name "subsec:Paragraph-Styles"
11105
11106 \end_inset
11107
11108
11109 \end_layout
11110
11111 \begin_layout Standard
11112 A paragraph style description looks like this:
11113 \begin_inset Foot
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 Note that this will either define a new style or modify an existing one.
11118 \end_layout
11119
11120 \end_inset
11121
11122
11123 \end_layout
11124
11125 \begin_layout LyX-Code
11126 Style 
11127 \family roman
11128 \emph on
11129 name
11130 \end_layout
11131
11132 \begin_layout LyX-Code
11133  ...
11134 \end_layout
11135
11136 \begin_layout LyX-Code
11137 End
11138 \end_layout
11139
11140 \begin_layout Standard
11141 where the following commands are allowed:
11142 \end_layout
11143
11144 \begin_layout Description
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 AddToToc
11150 \end_layout
11151
11152 \end_inset
11153
11154  [
11155 \begin_inset Flex Code
11156 status collapsed
11157
11158 \begin_layout Plain Layout
11159 string
11160 \end_layout
11161
11162 \end_inset
11163
11164 =""] This paragraph will appear in the table of contents of the given type.
11165  An empty string disables.
11166  See also the OutlinerName and the IsTocCaption commands.
11167  Default: disabled.
11168 \end_layout
11169
11170 \begin_layout Description
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 Align
11176 \end_layout
11177
11178 \end_inset
11179
11180  [
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185
11186 \emph on
11187 block
11188 \emph default
11189 , left, right, center
11190 \end_layout
11191
11192 \end_inset
11193
11194 ] Paragraph alignment.
11195 \end_layout
11196
11197 \begin_layout Description
11198 \begin_inset Flex Code
11199 status collapsed
11200
11201 \begin_layout Plain Layout
11202 AlignPossible
11203 \end_layout
11204
11205 \end_inset
11206
11207  [
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212
11213 \emph on
11214 block
11215 \emph default
11216 , left, right, center
11217 \end_layout
11218
11219 \end_inset
11220
11221 ] A comma separated list of permitted alignments.
11222  (Some \SpecialChar LaTeX
11223  styles prohibit certain alignments, since those wouldn't make sense.
11224  For example a right-aligned or centered enumeration isn't possible.)
11225 \end_layout
11226
11227 \begin_layout Description
11228 \begin_inset Flex Code
11229 status collapsed
11230
11231 \begin_layout Plain Layout
11232 Argument
11233 \end_layout
11234
11235 \end_inset
11236
11237  [
11238 \begin_inset Flex Code
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242 int
11243 \end_layout
11244
11245 \end_inset
11246
11247 ] Defines argument number <int> of a command\SpecialChar breakableslash
11248 environment associated with
11249  the current style.
11250  This is useful for things like section headings, and only makes sense with
11251  \SpecialChar LaTeX
11252 .
11253  Every (optional or required) argument of a command or environment – except
11254  for the required argument that is associated with the content of the paragraph
11255  itself – has a separate definition, where the number specifies the order
11256  of the arguments.
11257  The definition must end with 
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262 EndArgument
11263 \end_layout
11264
11265 \end_inset
11266
11267 .
11268  So a command with two optional arguments has:
11269 \end_layout
11270
11271 \begin_deeper
11272 \begin_layout Quote
11273
11274 \family typewriter
11275 Argument 1
11276 \end_layout
11277
11278 \begin_layout Quote
11279
11280 \family typewriter
11281 ...
11282 \end_layout
11283
11284 \begin_layout Quote
11285
11286 \family typewriter
11287 EndArgument
11288 \end_layout
11289
11290 \begin_layout Quote
11291
11292 \family typewriter
11293 Argument 2
11294 \end_layout
11295
11296 \begin_layout Quote
11297
11298 \family typewriter
11299 ...
11300 \end_layout
11301
11302 \begin_layout Quote
11303
11304 \family typewriter
11305 EndArgument
11306 \end_layout
11307
11308 \begin_layout Standard
11309 Inside the 
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314 Argument
11315 \end_layout
11316
11317 \end_inset
11318
11319  definition, the following specifications are possible:
11320 \end_layout
11321
11322 \begin_layout Itemize
11323 \begin_inset Flex Code
11324 status collapsed
11325
11326 \begin_layout Plain Layout
11327 LabelString
11328 \end_layout
11329
11330 \end_inset
11331
11332  
11333 \begin_inset Flex Code
11334 status collapsed
11335
11336 \begin_layout Plain Layout
11337 [string]
11338 \end_layout
11339
11340 \end_inset
11341
11342  The string that will appear both in the menu (to insert this argument)
11343  and on the argument inset button (unless you also specify a separate 
11344 \begin_inset Flex Code
11345 status collapsed
11346
11347 \begin_layout Plain Layout
11348 MenuString
11349 \end_layout
11350
11351 \end_inset
11352
11353 ).
11354  For the menu, you can define an accelerator by appending the respective
11355  character to the string, divided by 
11356 \begin_inset Quotes eld
11357 \end_inset
11358
11359 |
11360 \begin_inset Quotes erd
11361 \end_inset
11362
11363  (e.
11364 \begin_inset space \thinspace{}
11365 \end_inset
11366
11367 g.
11368 \begin_inset space \space{}
11369 \end_inset
11370
11371
11372 \begin_inset Quotes eld
11373 \end_inset
11374
11375
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 Short Title|S
11381 \end_layout
11382
11383 \end_inset
11384
11385
11386 \begin_inset Quotes erd
11387 \end_inset
11388
11389 ).
11390 \end_layout
11391
11392 \begin_layout Itemize
11393 \begin_inset Flex Code
11394 status collapsed
11395
11396 \begin_layout Plain Layout
11397 MenuString
11398 \end_layout
11399
11400 \end_inset
11401
11402  
11403 \begin_inset Flex Code
11404 status collapsed
11405
11406 \begin_layout Plain Layout
11407 [string]
11408 \end_layout
11409
11410 \end_inset
11411
11412  A separate string for the menu.
11413  You can define an accelerator by appending the respective character to
11414  the string, divided by 
11415 \begin_inset Quotes eld
11416 \end_inset
11417
11418 |
11419 \begin_inset Quotes erd
11420 \end_inset
11421
11422  (e.
11423 \begin_inset space \thinspace{}
11424 \end_inset
11425
11426 g.
11427 \begin_inset space \space{}
11428 \end_inset
11429
11430
11431 \begin_inset Quotes eld
11432 \end_inset
11433
11434
11435 \begin_inset Flex Code
11436 status collapsed
11437
11438 \begin_layout Plain Layout
11439 Short Title|S
11440 \end_layout
11441
11442 \end_inset
11443
11444
11445 \begin_inset Quotes erd
11446 \end_inset
11447
11448 ).
11449  This specification is optional.
11450  If it is not given the 
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 LabelString
11456 \end_layout
11457
11458 \end_inset
11459
11460  will be used instead for the menu.
11461 \end_layout
11462
11463 \begin_layout Itemize
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468 Tooltip
11469 \end_layout
11470
11471 \end_inset
11472
11473  
11474 \begin_inset Flex Code
11475 status collapsed
11476
11477 \begin_layout Plain Layout
11478 [string]
11479 \end_layout
11480
11481 \end_inset
11482
11483  A longer explanatory text that appears in the tooltip when hovering over
11484  the argument inset.
11485 \end_layout
11486
11487 \begin_layout Itemize
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 Mandatory
11493 \end_layout
11494
11495 \end_inset
11496
11497  [
11498 \begin_inset Flex Code
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502
11503 \emph on
11504 0
11505 \end_layout
11506
11507 \end_inset
11508
11509 ,
11510 \begin_inset space \thinspace{}
11511 \end_inset
11512
11513
11514 \begin_inset Flex Code
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518 1
11519 \end_layout
11520
11521 \end_inset
11522
11523 ] Declare if this is a mandatory (1) or an optional (0) argument.
11524  Mandatory arguments will be output empty if not given, while optional arguments
11525  will not be output at all.
11526  By default, mandatory arguments are delimited by 
11527 \begin_inset Flex Code
11528 status collapsed
11529
11530 \begin_layout Plain Layout
11531 {...}
11532 \end_layout
11533
11534 \end_inset
11535
11536 , while optional arguments are delimited by 
11537 \begin_inset Flex Code
11538 status collapsed
11539
11540 \begin_layout Plain Layout
11541 [...]
11542 \end_layout
11543
11544 \end_inset
11545
11546
11547 \end_layout
11548
11549 \begin_layout Itemize
11550 \begin_inset Flex Code
11551 status collapsed
11552
11553 \begin_layout Plain Layout
11554 Requires
11555 \end_layout
11556
11557 \end_inset
11558
11559  
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 [int=0]
11565 \end_layout
11566
11567 \end_inset
11568
11569  defines another argument (by its number) which this argument requires to
11570  be output if it is itself output.
11571  E.
11572 \begin_inset space \thinspace{}
11573 \end_inset
11574
11575 g., in \SpecialChar LaTeX
11576  commands, optional arguments often require previous optional arguments
11577  to be output (at least empty), as in 
11578 \begin_inset Flex Code
11579 status collapsed
11580
11581 \begin_layout Plain Layout
11582
11583 \backslash
11584 command[][argument]{text}
11585 \end_layout
11586
11587 \end_inset
11588
11589 .
11590  This can be achieved by the statement 
11591 \begin_inset Flex Code
11592 status collapsed
11593
11594 \begin_layout Plain Layout
11595 Requires 1
11596 \end_layout
11597
11598 \end_inset
11599
11600  within 
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 Argument 2
11606 \end_layout
11607
11608 \end_inset
11609
11610 .
11611 \end_layout
11612
11613 \begin_layout Itemize
11614 \begin_inset Flex Code
11615 status collapsed
11616
11617 \begin_layout Plain Layout
11618 LeftDelim
11619 \end_layout
11620
11621 \end_inset
11622
11623  
11624 \begin_inset Flex Code
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628 [string]
11629 \end_layout
11630
11631 \end_inset
11632
11633  defines a custom left delimiter (instead of 
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638 {
11639 \end_layout
11640
11641 \end_inset
11642
11643  or 
11644 \begin_inset Flex Code
11645 status collapsed
11646
11647 \begin_layout Plain Layout
11648 [
11649 \end_layout
11650
11651 \end_inset
11652
11653 ).
11654  A line break in the output can be indicated by 
11655 \begin_inset Flex Code
11656 status collapsed
11657
11658 \begin_layout Plain Layout
11659 <br/>
11660 \end_layout
11661
11662 \end_inset
11663
11664 .
11665 \end_layout
11666
11667 \begin_layout Itemize
11668 \begin_inset Flex Code
11669 status collapsed
11670
11671 \begin_layout Plain Layout
11672 RightDelim
11673 \end_layout
11674
11675 \end_inset
11676
11677  
11678 \begin_inset Flex Code
11679 status collapsed
11680
11681 \begin_layout Plain Layout
11682 [string]
11683 \end_layout
11684
11685 \end_inset
11686
11687  defines a custom right delimiter (instead of 
11688 \begin_inset Flex Code
11689 status collapsed
11690
11691 \begin_layout Plain Layout
11692 }
11693 \end_layout
11694
11695 \end_inset
11696
11697  or 
11698 \begin_inset Flex Code
11699 status collapsed
11700
11701 \begin_layout Plain Layout
11702 ]
11703 \end_layout
11704
11705 \end_inset
11706
11707 ).
11708  A line break in the output can be indicated by 
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 <br/>
11714 \end_layout
11715
11716 \end_inset
11717
11718 .
11719 \end_layout
11720
11721 \begin_layout Itemize
11722 \begin_inset Flex Code
11723 status collapsed
11724
11725 \begin_layout Plain Layout
11726 DefaultArg
11727 \end_layout
11728
11729 \end_inset
11730
11731  
11732 \begin_inset Flex Code
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 [string]
11737 \end_layout
11738
11739 \end_inset
11740
11741  defines an argument that is inserted if and only if no user-specified arguments
11742  were given, i.
11743 \begin_inset space \thinspace{}
11744 \end_inset
11745
11746 e.
11747 \begin_inset space \space{}
11748 \end_inset
11749
11750 if no argument inset has been inserted (note that also an empty argument
11751  inset omits the DefaultArg).
11752  Multiple arguments need to be separated by comma.
11753 \end_layout
11754
11755 \begin_layout Itemize
11756 \begin_inset Flex Code
11757 status collapsed
11758
11759 \begin_layout Plain Layout
11760 PresetArg
11761 \end_layout
11762
11763 \end_inset
11764
11765  
11766 \begin_inset Flex Code
11767 status collapsed
11768
11769 \begin_layout Plain Layout
11770 [string]
11771 \end_layout
11772
11773 \end_inset
11774
11775  defines an argument that is inserted in any case (alone or in addition
11776  to user-specified arguments).
11777  Multiple arguments need to be separated by comma.
11778 \end_layout
11779
11780 \begin_layout Itemize
11781 \begin_inset Flex Code
11782 status collapsed
11783
11784 \begin_layout Plain Layout
11785 Font
11786 \end_layout
11787
11788 \end_inset
11789
11790  The font used for the argument content, see 
11791 \begin_inset CommandInset ref
11792 LatexCommand ref
11793 reference "subsec:Font-description"
11794
11795 \end_inset
11796
11797 .
11798 \end_layout
11799
11800 \begin_layout Itemize
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805 LabelFont
11806 \end_layout
11807
11808 \end_inset
11809
11810  The font used for the label; see 
11811 \begin_inset CommandInset ref
11812 LatexCommand ref
11813 reference "subsec:Font-description"
11814
11815 \end_inset
11816
11817 .
11818 \end_layout
11819
11820 \begin_layout Itemize
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 Decoration
11826 \end_layout
11827
11828 \end_inset
11829
11830  [
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \emph on
11837 Classic
11838 \emph default
11839 , Minimalistic, Conglomerate
11840 \end_layout
11841
11842 \end_inset
11843
11844 ] describes the rendering style used for the inset's frame and buttons.
11845 \end_layout
11846
11847 \begin_layout Itemize
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 AutoInsert
11853 \end_layout
11854
11855 \end_inset
11856
11857  
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 [int=0]
11863 \end_layout
11864
11865 \end_inset
11866
11867  If this is set to 
11868 \begin_inset Flex Code
11869 status collapsed
11870
11871 \begin_layout Plain Layout
11872 1
11873 \end_layout
11874
11875 \end_inset
11876
11877 , this argument is automatically inserted when the respective style is selected.
11878  Currently, only one argument per style\SpecialChar breakableslash
11879 layout can be automatically inserted.
11880 \end_layout
11881
11882 \begin_layout Itemize
11883 \begin_inset Flex Code
11884 status collapsed
11885
11886 \begin_layout Plain Layout
11887 InsertCotext
11888 \end_layout
11889
11890 \end_inset
11891
11892  
11893 \begin_inset Flex Code
11894 status collapsed
11895
11896 \begin_layout Plain Layout
11897 [int=0]
11898 \end_layout
11899
11900 \end_inset
11901
11902  If this is set to 
11903 \begin_inset Flex Code
11904 status collapsed
11905
11906 \begin_layout Plain Layout
11907 1
11908 \end_layout
11909
11910 \end_inset
11911
11912 , this argument will be inserted with a copy of the co-text (either selected
11913  text or the whole paragraph) as content.
11914 \end_layout
11915
11916 \begin_layout Itemize
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 PassThru
11922 \end_layout
11923
11924 \end_inset
11925
11926  [
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931
11932 \emph on
11933 inherited
11934 \emph default
11935 , true, false
11936 \end_layout
11937
11938 \end_inset
11939
11940 ] Whether the contents of this argument should be output in raw form, meaning
11941  without special translations that \SpecialChar LaTeX
11942  would require.
11943  By default, the 
11944 \begin_inset Flex Code
11945 status collapsed
11946
11947 \begin_layout Plain Layout
11948 PassThru
11949 \end_layout
11950
11951 \end_inset
11952
11953  status is inherited by the inset or paragraph layout the argument belongs
11954  to, true and false change the status for the given argument only.
11955 \end_layout
11956
11957 \begin_layout Itemize
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962 PassThruChars
11963 \end_layout
11964
11965 \end_inset
11966
11967  [
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972 string of characters
11973 \end_layout
11974
11975 \end_inset
11976
11977 ]
11978 \family typewriter
11979  
11980 \family default
11981 Defines individual characters that should be output in raw form, meaning
11982  without special translations that \SpecialChar LaTeX
11983  would require.
11984  Note that, contrary to PassThru, this needs to be explicitly defined for
11985  arguments.
11986  That is, arguments do not inherit PassThruChars from their parent inset
11987  or layout.
11988 \end_layout
11989
11990 \begin_layout Itemize
11991 \begin_inset Flex Code
11992 status collapsed
11993
11994 \begin_layout Plain Layout
11995 IsTocCaption
11996 \end_layout
11997
11998 \end_inset
11999
12000  [
12001 \begin_inset Flex Code
12002 status collapsed
12003
12004 \begin_layout Plain Layout
12005
12006 \emph on
12007 0
12008 \end_layout
12009
12010 \end_inset
12011
12012 ,
12013 \begin_inset space \thinspace{}
12014 \end_inset
12015
12016
12017 \begin_inset Flex Code
12018 status collapsed
12019
12020 \begin_layout Plain Layout
12021 1
12022 \end_layout
12023
12024 \end_inset
12025
12026 ] If this is set to 1, the argument will output its content in the corresponding
12027  item in the table of contents.
12028  See AddToToc.
12029 \end_layout
12030
12031 \begin_layout Standard
12032 By default, the text entered in the \SpecialChar LyX
12033  workarea in the respective layout is
12034  the last (mandatory) argument of a command if the 
12035 \begin_inset Flex Code
12036 status collapsed
12037
12038 \begin_layout Plain Layout
12039 LatexType
12040 \end_layout
12041
12042 \end_inset
12043
12044  is 
12045 \begin_inset Flex Code
12046 status collapsed
12047
12048 \begin_layout Plain Layout
12049 Command
12050 \end_layout
12051
12052 \end_inset
12053
12054 .
12055  However, arguments with the prefix 
12056 \begin_inset Flex Code
12057 status collapsed
12058
12059 \begin_layout Plain Layout
12060 post:
12061 \end_layout
12062
12063 \end_inset
12064
12065  are output after this workarea argument.
12066  Note that post-argument numbering restarts at 1, so the first argument
12067  following the workarea argument is 
12068 \begin_inset Flex Code
12069 status collapsed
12070
12071 \begin_layout Plain Layout
12072 post:1
12073 \end_layout
12074
12075 \end_inset
12076
12077 .
12078  Post-arguments are ignored in any other 
12079 \begin_inset Flex Code
12080 status collapsed
12081
12082 \begin_layout Plain Layout
12083 LatexType
12084 \end_layout
12085
12086 \end_inset
12087
12088  than 
12089 \begin_inset Flex Code
12090 status collapsed
12091
12092 \begin_layout Plain Layout
12093 Command
12094 \end_layout
12095
12096 \end_inset
12097
12098 .
12099 \end_layout
12100
12101 \begin_layout Standard
12102 Arguments for list 
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107
12108 \backslash
12109 item
12110 \end_layout
12111
12112 \end_inset
12113
12114 s (as in 
12115 \begin_inset Flex Code
12116 status collapsed
12117
12118 \begin_layout Plain Layout
12119
12120 \backslash
12121 item[foo]
12122 \end_layout
12123
12124 \end_inset
12125
12126 ) have the prefix 
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 item:
12132 \end_layout
12133
12134 \end_inset
12135
12136  followed by the number (e.
12137 \begin_inset space \thinspace{}
12138 \end_inset
12139
12140 g.
12141 \begin_inset space \space{}
12142 \end_inset
12143
12144
12145 \begin_inset Flex Code
12146 status collapsed
12147
12148 \begin_layout Plain Layout
12149 Argument item:1
12150 \end_layout
12151
12152 \end_inset
12153
12154 ).
12155 \end_layout
12156
12157 \end_deeper
12158 \begin_layout Description
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 BabelPreamble
12164 \end_layout
12165
12166 \end_inset
12167
12168  Note that this will completely override any prior 
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173 BabelPreamble
12174 \end_layout
12175
12176 \end_inset
12177
12178  declaration for this style.
12179  Must end with 
12180 \begin_inset Quotes eld
12181 \end_inset
12182
12183
12184 \begin_inset Flex Code
12185 status collapsed
12186
12187 \begin_layout Plain Layout
12188 EndBabelPreamble
12189 \end_layout
12190
12191 \end_inset
12192
12193
12194 \begin_inset Quotes erd
12195 \end_inset
12196
12197 .
12198  See 
12199 \begin_inset CommandInset ref
12200 LatexCommand ref
12201 reference "subsec:I18n"
12202
12203 \end_inset
12204
12205  for details on its use.
12206 \end_layout
12207
12208 \begin_layout Description
12209 \begin_inset Flex Code
12210 status collapsed
12211
12212 \begin_layout Plain Layout
12213 BottomSep
12214 \end_layout
12215
12216 \end_inset
12217
12218  [
12219 \begin_inset Flex Code
12220 status collapsed
12221
12222 \begin_layout Plain Layout
12223 float=0
12224 \end_layout
12225
12226 \end_inset
12227
12228 ]
12229 \begin_inset Foot
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 Note that a `float' here is a real number, such as: 1.5.
12234 \end_layout
12235
12236 \end_inset
12237
12238  The vertical space with which the last of a chain of paragraphs with this
12239  style is separated from the following paragraph.
12240  If the next paragraph has another style, the separations are not simply
12241  added, but the maximum is taken.
12242 \end_layout
12243
12244 \begin_layout Description
12245 \begin_inset Flex Code
12246 status collapsed
12247
12248 \begin_layout Plain Layout
12249 Category
12250 \end_layout
12251
12252 \end_inset
12253
12254  [
12255 \begin_inset Flex Code
12256 status collapsed
12257
12258 \begin_layout Plain Layout
12259 string
12260 \end_layout
12261
12262 \end_inset
12263
12264 ] The category for this style.
12265  This is used to group related styles in the style combobox on the toolbar.
12266  Any string can be used, but you may want to use existing categories with
12267  your own styles.
12268  
12269 \end_layout
12270
12271 \begin_layout Description
12272 \begin_inset Flex Code
12273 status collapsed
12274
12275 \begin_layout Plain Layout
12276 CommandDepth
12277 \end_layout
12278
12279 \end_inset
12280
12281  Depth of XML command.
12282  Used only with XML-type formats.
12283 \end_layout
12284
12285 \begin_layout Description
12286 \begin_inset Flex Code
12287 status collapsed
12288
12289 \begin_layout Plain Layout
12290 CopyStyle
12291 \end_layout
12292
12293 \end_inset
12294
12295  [
12296 \begin_inset Flex Code
12297 status collapsed
12298
12299 \begin_layout Plain Layout
12300 string
12301 \end_layout
12302
12303 \end_inset
12304
12305 ] Copies all the features of an existing style into the current one.
12306  
12307 \end_layout
12308
12309 \begin_layout Description
12310 \begin_inset Flex Code
12311 status collapsed
12312
12313 \begin_layout Plain Layout
12314 DependsOn
12315 \end_layout
12316
12317 \end_inset
12318
12319  [
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324 <name>
12325 \end_layout
12326
12327 \end_inset
12328
12329 ] The name of a style whose preamble should be output 
12330 \emph on
12331 before
12332 \emph default
12333  this one.
12334  This allows to ensure some ordering of the preamble snippets when macros
12335  definitions depend on one another.
12336 \begin_inset Foot
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340 Note that, besides that functionality, there is no way to ensure any ordering
12341  of preambles.
12342  The ordering that you see in a given version of \SpecialChar LyX
12343  may change without warning
12344  in later versions.
12345 \end_layout
12346
12347 \end_inset
12348
12349
12350 \end_layout
12351
12352 \begin_layout Description
12353 \begin_inset Flex Code
12354 status collapsed
12355
12356 \begin_layout Plain Layout
12357 EndLabeltype
12358 \end_layout
12359
12360 \end_inset
12361
12362  [
12363 \begin_inset Flex Code
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367
12368 \emph on
12369 No_Label
12370 \emph default
12371 , Box, Filled_Box, Static
12372 \end_layout
12373
12374 \end_inset
12375
12376 ] The type of label that stands at the end of the paragraph (or sequence
12377  of paragraphs if 
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382 LatexType
12383 \end_layout
12384
12385 \end_inset
12386
12387  is
12388 \begin_inset Newline newline
12389 \end_inset
12390
12391
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 Environment
12397 \end_layout
12398
12399 \end_inset
12400
12401
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 Item_Environment
12407 \end_layout
12408
12409 \end_inset
12410
12411  or 
12412 \begin_inset Flex Code
12413 status collapsed
12414
12415 \begin_layout Plain Layout
12416 List_Environment
12417 \end_layout
12418
12419 \end_inset
12420
12421 ).
12422  
12423 \begin_inset Flex Code
12424 status collapsed
12425
12426 \begin_layout Plain Layout
12427 No_Label
12428 \end_layout
12429
12430 \end_inset
12431
12432  means 
12433 \begin_inset Quotes eld
12434 \end_inset
12435
12436 nothing
12437 \begin_inset Quotes erd
12438 \end_inset
12439
12440
12441 \begin_inset Flex Code
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 Box
12446 \end_layout
12447
12448 \end_inset
12449
12450  (resp.
12451 \begin_inset space \space{}
12452 \end_inset
12453
12454
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459 Filled_Box
12460 \end_layout
12461
12462 \end_inset
12463
12464 ) is a white (resp.
12465 \begin_inset space ~
12466 \end_inset
12467
12468 black) square suitable for end of proof markers, 
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473 Static
12474 \end_layout
12475
12476 \end_inset
12477
12478  is an explicit text string.
12479 \end_layout
12480
12481 \begin_layout Description
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 EndLabelString
12487 \end_layout
12488
12489 \end_inset
12490
12491  [
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496 string=""
12497 \end_layout
12498
12499 \end_inset
12500
12501 ] The string used for a label with a 
12502 \begin_inset Flex Code
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506 Static
12507 \end_layout
12508
12509 \end_inset
12510
12511
12512 \begin_inset Newline newline
12513 \end_inset
12514
12515
12516 \begin_inset Flex Code
12517 status collapsed
12518
12519 \begin_layout Plain Layout
12520 EndLabelType
12521 \end_layout
12522
12523 \end_inset
12524
12525 .
12526  
12527 \end_layout
12528
12529 \begin_layout Description
12530 \begin_inset Flex Code
12531 status collapsed
12532
12533 \begin_layout Plain Layout
12534 Font
12535 \end_layout
12536
12537 \end_inset
12538
12539  The font used for both the text body 
12540 \emph on
12541 and
12542 \emph default
12543  the label.
12544  See 
12545 \begin_inset CommandInset ref
12546 LatexCommand ref
12547 reference "subsec:Font-description"
12548
12549 \end_inset
12550
12551 .
12552  Note that defining this font automatically defines the 
12553 \begin_inset Flex Code
12554 status collapsed
12555
12556 \begin_layout Plain Layout
12557 LabelFont
12558 \end_layout
12559
12560 \end_inset
12561
12562  to the same value.
12563  So you should define this one first if you also want to define 
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 LabelFont
12569 \end_layout
12570
12571 \end_inset
12572
12573 .
12574 \end_layout
12575
12576 \begin_layout Description
12577 \begin_inset Flex Code
12578 status collapsed
12579
12580 \begin_layout Plain Layout
12581 ForceLocal
12582 \end_layout
12583
12584 \end_inset
12585
12586  [
12587 \begin_inset Flex Code
12588 status collapsed
12589
12590 \begin_layout Plain Layout
12591 int=0
12592 \end_layout
12593
12594 \end_inset
12595
12596 ] Used for backporting new styles to stable \SpecialChar LyX
12597  versions.
12598  The first stable version that supports this tag is \SpecialChar LyX
12599  2.1.0.
12600  The argument is a number which may either be 0, -1 or any value greater
12601  than zero.
12602  If the 
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 ForceLocal
12608 \end_layout
12609
12610 \end_inset
12611
12612  flag of a style is greater than zero, it will always be written to the
12613  document header.
12614  If a .lyx file is read, the style definitions from the document header are
12615  added to the document class.
12616  Therefore even older \SpecialChar LyX
12617  versions can handle the style.
12618  The argument of 
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 ForceLocal
12624 \end_layout
12625
12626 \end_inset
12627
12628  is a version number: if the style is read, and the version number is less
12629  than the version number of the already existing style in the document class,
12630  the new style is ignored.
12631  If the version number is greater, the new style replaces the existing style.
12632  A value of -1 means an infinite version number, i.
12633 \begin_inset space \thinspace{}
12634 \end_inset
12635
12636 e.
12637 \begin_inset space \space{}
12638 \end_inset
12639
12640 the style is always used.
12641 \end_layout
12642
12643 \begin_layout Description
12644 \begin_inset Flex Code
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648 FreeSpacing
12649 \end_layout
12650
12651 \end_inset
12652
12653  [
12654 \begin_inset Flex Code
12655 status collapsed
12656
12657 \begin_layout Plain Layout
12658
12659 \emph on
12660 0
12661 \end_layout
12662
12663 \end_inset
12664
12665 ,
12666 \begin_inset space \thinspace{}
12667 \end_inset
12668
12669
12670 \begin_inset Flex Code
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674 1
12675 \end_layout
12676
12677 \end_inset
12678
12679 ] Usually \SpecialChar LyX
12680  does not allow you to insert more than one space between words,
12681  since a space is considered as the separation between two words, not a
12682  character or symbol of its own.
12683  This is a very fine thing but sometimes annoying, for example, when typing
12684  program code or plain \SpecialChar LaTeX
12685  code.
12686  For this reason, 
12687 \begin_inset Flex Code
12688 status collapsed
12689
12690 \begin_layout Plain Layout
12691 FreeSpacing
12692 \end_layout
12693
12694 \end_inset
12695
12696  can be enabled.
12697  Note that \SpecialChar LyX
12698  will create protected blanks for the additional blanks when
12699  in another mode than \SpecialChar LaTeX
12700 -mode.
12701 \end_layout
12702
12703 \begin_layout Description
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 HTML*
12709 \end_layout
12710
12711 \end_inset
12712
12713  These tags are used with XHTML output.
12714  See 
12715 \begin_inset CommandInset ref
12716 LatexCommand ref
12717 reference "subsec:Paragraph-Style-XHTML"
12718
12719 \end_inset
12720
12721 .
12722 \end_layout
12723
12724 \begin_layout Description
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 InnerTag
12730 \end_layout
12731
12732 \end_inset
12733
12734  [FIXME] (Used only with XML-type formats.)
12735 \end_layout
12736
12737 \begin_layout Description
12738 \begin_inset Flex Code
12739 status collapsed
12740
12741 \begin_layout Plain Layout
12742 InPreamble
12743 \end_layout
12744
12745 \end_inset
12746
12747  [
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752
12753 \emph on
12754 0
12755 \end_layout
12756
12757 \end_inset
12758
12759 ,
12760 \begin_inset space \thinspace{}
12761 \end_inset
12762
12763
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 1
12769 \end_layout
12770
12771 \end_inset
12772
12773 ] If 
12774 \begin_inset Flex Code
12775 status collapsed
12776
12777 \begin_layout Plain Layout
12778 1
12779 \end_layout
12780
12781 \end_inset
12782
12783 , marks the style as to be included in the document preamble and not in
12784  the document body.
12785  This is useful for document classes that want such information as the title
12786  and author to appear in the preamble.
12787  Note that this works only for styles for which the 
12788 \begin_inset Flex Code
12789 status collapsed
12790
12791 \begin_layout Plain Layout
12792 LatexType
12793 \end_layout
12794
12795 \end_inset
12796
12797  is 
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 Command
12803 \end_layout
12804
12805 \end_inset
12806
12807  or 
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812 Paragraph
12813 \end_layout
12814
12815 \end_inset
12816
12817 .
12818 \end_layout
12819
12820 \begin_layout Description
12821 \begin_inset Flex Code
12822 status collapsed
12823
12824 \begin_layout Plain Layout
12825 InTitle
12826 \end_layout
12827
12828 \end_inset
12829
12830  [
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835
12836 \emph on
12837 0
12838 \end_layout
12839
12840 \end_inset
12841
12842 ,
12843 \begin_inset space \thinspace{}
12844 \end_inset
12845
12846
12847 \begin_inset Flex Code
12848 status collapsed
12849
12850 \begin_layout Plain Layout
12851 1
12852 \end_layout
12853
12854 \end_inset
12855
12856 ] If 
12857 \begin_inset Flex Code
12858 status collapsed
12859
12860 \begin_layout Plain Layout
12861 1
12862 \end_layout
12863
12864 \end_inset
12865
12866 , marks the style as being part of a title block (see also the 
12867 \begin_inset Flex Code
12868 status collapsed
12869
12870 \begin_layout Plain Layout
12871 TitleLatexType
12872 \end_layout
12873
12874 \end_inset
12875
12876  and 
12877 \begin_inset Flex Code
12878 status collapsed
12879
12880 \begin_layout Plain Layout
12881 TitleLatexName
12882 \end_layout
12883
12884 \end_inset
12885
12886  global entries).
12887 \end_layout
12888
12889 \begin_layout Description
12890 \begin_inset Flex Code
12891 status collapsed
12892
12893 \begin_layout Plain Layout
12894 IsTocCaption
12895 \end_layout
12896
12897 \end_inset
12898
12899  [
12900 \begin_inset Flex Code
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904
12905 \emph on
12906 0
12907 \end_layout
12908
12909 \end_inset
12910
12911 ,
12912 \begin_inset space \thinspace{}
12913 \end_inset
12914
12915
12916 \begin_inset Flex Code
12917 status collapsed
12918
12919 \begin_layout Plain Layout
12920 1
12921 \end_layout
12922
12923 \end_inset
12924
12925 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
12926  of its contents in its item in the table of contents.
12927  Otherwise, only the label, if it exists, appears.
12928 \end_layout
12929
12930 \begin_layout Description
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935 ItemCommand
12936 \end_layout
12937
12938 \end_inset
12939
12940  [
12941 \begin_inset Flex Code
12942 status collapsed
12943
12944 \begin_layout Plain Layout
12945 string="item"
12946 \end_layout
12947
12948 \end_inset
12949
12950 ] The \SpecialChar LaTeX
12951  command sequence declaring an item in a list.
12952  The command is to be defined without the preceding backslash (the default
12953  is 
12954 \begin_inset Quotes eld
12955 \end_inset
12956
12957 item
12958 \begin_inset Quotes erd
12959 \end_inset
12960
12961 , resulting in 
12962 \begin_inset Flex Code
12963 status collapsed
12964
12965 \begin_layout Plain Layout
12966
12967 \backslash
12968 item
12969 \end_layout
12970
12971 \end_inset
12972
12973  in the \SpecialChar LaTeX
12974  output).
12975 \end_layout
12976
12977 \begin_layout Description
12978 \begin_inset Flex Code
12979 status collapsed
12980
12981 \begin_layout Plain Layout
12982 ItemSep
12983 \end_layout
12984
12985 \end_inset
12986
12987  [
12988 \begin_inset Flex Code
12989 status collapsed
12990
12991 \begin_layout Plain Layout
12992 float=0
12993 \end_layout
12994
12995 \end_inset
12996
12997 ] This provides extra space between paragraphs that have the same style.
12998  If you put other styles into an environment, each is separated with the
12999  environment's 
13000 \begin_inset Flex Code
13001 status collapsed
13002
13003 \begin_layout Plain Layout
13004 ParSep
13005 \end_layout
13006
13007 \end_inset
13008
13009 .
13010  But the whole items of the environment are additionally separated with
13011  this 
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 ItemSep
13017 \end_layout
13018
13019 \end_inset
13020
13021 .
13022  Note that this is a
13023 \emph on
13024  multiplier.
13025 \end_layout
13026
13027 \begin_layout Description
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 ItemTag
13033 \end_layout
13034
13035 \end_inset
13036
13037  [FIXME] (Used only with XML-type formats.)
13038 \end_layout
13039
13040 \begin_layout Description
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045 KeepEmpty
13046 \end_layout
13047
13048 \end_inset
13049
13050  [
13051 \begin_inset Flex Code
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055
13056 \emph on
13057 0
13058 \end_layout
13059
13060 \end_inset
13061
13062 ,
13063 \begin_inset space \thinspace{}
13064 \end_inset
13065
13066
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071 1
13072 \end_layout
13073
13074 \end_inset
13075
13076 ] Usually \SpecialChar LyX
13077  does not allow you to leave a paragraph empty, since it would
13078  lead to empty \SpecialChar LaTeX
13079  output.
13080  There are some cases where this could be desirable however: in a letter
13081  template, the required fields can be provided as empty fields, so that
13082  people do not forget them; in some special classes, a style can be used
13083  as some kind of break, which does not contain actual text.
13084 \end_layout
13085
13086 \begin_layout Description
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 LabelBottomsep
13092 \end_layout
13093
13094 \end_inset
13095
13096  [
13097 \begin_inset Flex Code
13098 status collapsed
13099
13100 \begin_layout Plain Layout
13101 float=0
13102 \end_layout
13103
13104 \end_inset
13105
13106 ] The vertical space between the label and the text body.
13107  Only used for labels that are above the text body (
13108 \begin_inset Flex Code
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112 Top_Environment
13113 \end_layout
13114
13115 \end_inset
13116
13117  and
13118 \begin_inset Newline newline
13119 \end_inset
13120
13121
13122 \begin_inset Flex Code
13123 status collapsed
13124
13125 \begin_layout Plain Layout
13126 Centered_Top_Environment
13127 \end_layout
13128
13129 \end_inset
13130
13131 ).
13132 \end_layout
13133
13134 \begin_layout Description
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 LabelCounter
13140 \end_layout
13141
13142 \end_inset
13143
13144  [
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149 string=""
13150 \end_layout
13151
13152 \end_inset
13153
13154 ] The name of the counter for automatic numbering.
13155  In order to have the counter appear with your label, you will need to reference
13156  it in the 
13157 \begin_inset Flex Code
13158 status collapsed
13159
13160 \begin_layout Plain Layout
13161
13162 \family typewriter
13163 LabelString
13164 \end_layout
13165
13166 \end_inset
13167
13168 .
13169  This will work with 
13170 \begin_inset Flex Code
13171 status collapsed
13172
13173 \begin_layout Plain Layout
13174 LabelType
13175 \end_layout
13176
13177 \end_inset
13178
13179 s, 
13180 \begin_inset Flex Code
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184 Static
13185 \end_layout
13186
13187 \end_inset
13188
13189
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 Above
13195 \end_layout
13196
13197 \end_inset
13198
13199  and 
13200 \begin_inset Flex Code
13201 status collapsed
13202
13203 \begin_layout Plain Layout
13204 Centered
13205 \end_layout
13206
13207 \end_inset
13208
13209 , at least.
13210 \begin_inset Newline newline
13211 \end_inset
13212
13213 This 
13214 \emph on
13215 may
13216 \emph default
13217  also be given if 
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 LabelType
13223 \end_layout
13224
13225 \end_inset
13226
13227  is 
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 Enumerate
13233 \end_layout
13234
13235 \end_inset
13236
13237 , though this case is a bit complicated.
13238  Suppose you declare 
13239 \begin_inset Quotes eld
13240 \end_inset
13241
13242
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 LabelCounter myenum
13248 \end_layout
13249
13250 \end_inset
13251
13252
13253 \begin_inset Quotes erd
13254 \end_inset
13255
13256 .
13257  Then the actual counters used are 
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262 myenumi
13263 \end_layout
13264
13265 \end_inset
13266
13267
13268 \begin_inset Flex Code
13269 status collapsed
13270
13271 \begin_layout Plain Layout
13272 myenumii
13273 \end_layout
13274
13275 \end_inset
13276
13277
13278 \begin_inset Flex Code
13279 status collapsed
13280
13281 \begin_layout Plain Layout
13282 myenumiii
13283 \end_layout
13284
13285 \end_inset
13286
13287  and 
13288 \begin_inset Flex Code
13289 status collapsed
13290
13291 \begin_layout Plain Layout
13292 myenumiv
13293 \end_layout
13294
13295 \end_inset
13296
13297 , much as in \SpecialChar LaTeX
13298 .
13299  These counters must all be declared separately.
13300 \begin_inset Newline newline
13301 \end_inset
13302
13303 See 
13304 \begin_inset CommandInset ref
13305 LatexCommand ref
13306 reference "subsec:Counters"
13307
13308 \end_inset
13309
13310  for details on counters.
13311 \end_layout
13312
13313 \begin_layout Description
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 LabelFont
13319 \end_layout
13320
13321 \end_inset
13322
13323  The font used for the label.
13324  See 
13325 \begin_inset CommandInset ref
13326 LatexCommand ref
13327 reference "subsec:Font-description"
13328
13329 \end_inset
13330
13331 .
13332 \end_layout
13333
13334 \begin_layout Description
13335 \begin_inset Flex Code
13336 status collapsed
13337
13338 \begin_layout Plain Layout
13339 LabelIndent
13340 \end_layout
13341
13342 \end_inset
13343
13344  [
13345 \begin_inset Flex Code
13346 status collapsed
13347
13348 \begin_layout Plain Layout
13349 string=""
13350 \end_layout
13351
13352 \end_inset
13353
13354 ] Text that indicates how far a label should be indented.
13355 \end_layout
13356
13357 \begin_layout Description
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 LabelSep
13363 \end_layout
13364
13365 \end_inset
13366
13367  [
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372 string=""
13373 \end_layout
13374
13375 \end_inset
13376
13377 ] Text that indicates the amount of horizontal space between the label and
13378  the text body.
13379  Only used for labels that are not above the text body.
13380 \end_layout
13381
13382 \begin_layout Description
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 LabelString
13388 \end_layout
13389
13390 \end_inset
13391
13392  [
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 string=""
13398 \end_layout
13399
13400 \end_inset
13401
13402 ] The string used for the label.
13403  When 
13404 \begin_inset Flex Code
13405 status collapsed
13406
13407 \begin_layout Plain Layout
13408 LabelCounter
13409 \end_layout
13410
13411 \end_inset
13412
13413  is set, this string can be contain the special formatting commands described
13414  in 
13415 \begin_inset CommandInset ref
13416 LatexCommand ref
13417 reference "subsec:Counters"
13418
13419 \end_inset
13420
13421 .
13422 \end_layout
13423
13424 \begin_layout Description
13425 \begin_inset Flex Code
13426 status collapsed
13427
13428 \begin_layout Plain Layout
13429 LabelStringAppendix
13430 \end_layout
13431
13432 \end_inset
13433
13434  [
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 string=""
13440 \end_layout
13441
13442 \end_inset
13443
13444 ] This is used inside the appendix instead of
13445 \begin_inset Newline newline
13446 \end_inset
13447
13448
13449 \begin_inset Flex Code
13450 status collapsed
13451
13452 \begin_layout Plain Layout
13453 LabelString
13454 \end_layout
13455
13456 \end_inset
13457
13458 .
13459  Note that every 
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464 LabelString
13465 \end_layout
13466
13467 \end_inset
13468
13469  statement resets
13470 \begin_inset Newline newline
13471 \end_inset
13472
13473
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 LabelStringAppendix
13479 \end_layout
13480
13481 \end_inset
13482
13483  too.
13484 \end_layout
13485
13486 \begin_layout Description
13487 \begin_inset Flex Code
13488 status collapsed
13489
13490 \begin_layout Plain Layout
13491 LabelTag
13492 \end_layout
13493
13494 \end_inset
13495
13496  [FIXME] (Used only with XML-type formats.)
13497 \end_layout
13498
13499 \begin_layout Description
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 LabelType
13505 \end_layout
13506
13507 \end_inset
13508
13509  [
13510 \begin_inset Flex Code
13511 status collapsed
13512
13513 \begin_layout Plain Layout
13514
13515 \emph on
13516 No_Label
13517 \emph default
13518 , Manual, Static, Above, 
13519 \begin_inset Newline newline
13520 \end_inset
13521
13522 Centered, Sensitive, Enumerate,
13523 \begin_inset Newline newline
13524 \end_inset
13525
13526 Itemize, Bibliography
13527 \end_layout
13528
13529 \end_inset
13530
13531 ]
13532 \end_layout
13533
13534 \begin_deeper
13535 \begin_layout Description
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540 Manual
13541 \end_layout
13542
13543 \end_inset
13544
13545  means the label is the very first word (up to the first real blank).
13546  Use protected spaces if you want more than one word as the label.
13547  
13548 \end_layout
13549
13550 \begin_layout Description
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555 Static
13556 \end_layout
13557
13558 \end_inset
13559
13560  means the label is simply what is declared as 
13561 \begin_inset Flex Code
13562 status collapsed
13563
13564 \begin_layout Plain Layout
13565 LabelString
13566 \end_layout
13567
13568 \end_inset
13569
13570 .
13571  This will be displayed 
13572 \begin_inset Quotes eld
13573 \end_inset
13574
13575 inline
13576 \begin_inset Quotes erd
13577 \end_inset
13578
13579 , at the beginning of the paragraph.
13580  If the 
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 LatexType
13586 \end_layout
13587
13588 \end_inset
13589
13590  is 
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595 Environment
13596 \end_layout
13597
13598 \end_inset
13599
13600 , then it will be displayed only in the first paragraph of any sequence
13601  of paragraphs with the same 
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606 Style
13607 \end_layout
13608
13609 \end_inset
13610
13611 .
13612 \end_layout
13613
13614 \begin_layout Description
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 Above
13620 \end_layout
13621
13622 \end_inset
13623
13624
13625 \begin_inset space ~
13626 \end_inset
13627
13628 and
13629 \begin_inset space ~
13630 \end_inset
13631
13632
13633 \begin_inset Flex Code
13634 status collapsed
13635
13636 \begin_layout Plain Layout
13637 Centered
13638 \end_layout
13639
13640 \end_inset
13641
13642  are special cases of 
13643 \begin_inset Flex Code
13644 status collapsed
13645
13646 \begin_layout Plain Layout
13647 Static
13648 \end_layout
13649
13650 \end_inset
13651
13652 .
13653  The label will be printed above the paragraph either at the beginning of
13654  the line or centered.
13655 \end_layout
13656
13657 \begin_layout Description
13658 \begin_inset Flex Code
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 Sensitive
13663 \end_layout
13664
13665 \end_inset
13666
13667  is a special case for the caption-labels 
13668 \begin_inset Quotes eld
13669 \end_inset
13670
13671 Figure
13672 \begin_inset Quotes erd
13673 \end_inset
13674
13675  and 
13676 \begin_inset Quotes eld
13677 \end_inset
13678
13679 Table
13680 \begin_inset Quotes erd
13681 \end_inset
13682
13683 .
13684 \begin_inset Newline newline
13685 \end_inset
13686
13687
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692 Sensitive
13693 \end_layout
13694
13695 \end_inset
13696
13697  means the (hardcoded) label string depends on the kind of float: It is
13698  hardcoded to be `FloatType N', where N is the value of the counter associated
13699  with the float.
13700  For the case that a caption is inserted outside of a float the 
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 LabelString
13706 \end_layout
13707
13708 \end_inset
13709
13710  will appear as 
13711 \begin_inset Quotes eld
13712 \end_inset
13713
13714 Senseless!
13715 \begin_inset Quotes erd
13716 \end_inset
13717
13718 .
13719 \end_layout
13720
13721 \begin_layout Description
13722 \begin_inset Flex Code
13723 status collapsed
13724
13725 \begin_layout Plain Layout
13726 Enumerate
13727 \end_layout
13728
13729 \end_inset
13730
13731  produces the usual sort of enumeration labels.
13732  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13733  small Roman numerals, and uppercase letters for the four possible depths.
13734 \end_layout
13735
13736 \begin_layout Description
13737 \begin_inset Flex Code
13738 status collapsed
13739
13740 \begin_layout Plain Layout
13741 Itemize
13742 \end_layout
13743
13744 \end_inset
13745
13746  produces various bullets at the different levels.
13747  It is also hardcoded.
13748 \end_layout
13749
13750 \begin_layout Description
13751 \begin_inset Flex Code
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 Bibliography
13756 \end_layout
13757
13758 \end_inset
13759
13760  should be used only with 
13761 \begin_inset Flex Code
13762 status collapsed
13763
13764 \begin_layout Plain Layout
13765 LatexType BibEnvironment
13766 \end_layout
13767
13768 \end_inset
13769
13770 .
13771 \end_layout
13772
13773 \end_deeper
13774 \begin_layout Description
13775 \begin_inset Flex Code
13776 status collapsed
13777
13778 \begin_layout Plain Layout
13779 LangPreamble
13780 \end_layout
13781
13782 \end_inset
13783
13784  Note that this will completely override any prior 
13785 \begin_inset Flex Code
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 LangPreamble
13790 \end_layout
13791
13792 \end_inset
13793
13794  declaration for this style.
13795  Must end with 
13796 \begin_inset Quotes eld
13797 \end_inset
13798
13799
13800 \begin_inset Flex Code
13801 status collapsed
13802
13803 \begin_layout Plain Layout
13804 EndLangPreamble
13805 \end_layout
13806
13807 \end_inset
13808
13809
13810 \begin_inset Quotes erd
13811 \end_inset
13812
13813 .
13814  See 
13815 \begin_inset CommandInset ref
13816 LatexCommand ref
13817 reference "subsec:I18n"
13818
13819 \end_inset
13820
13821  for details on its use.
13822 \end_layout
13823
13824 \begin_layout Description
13825 \begin_inset Flex Code
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 LatexName
13830 \end_layout
13831
13832 \end_inset
13833
13834  [
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 <name>
13840 \end_layout
13841
13842 \end_inset
13843
13844 ] The name of the corresponding \SpecialChar LaTeX
13845  stuff.
13846  Either the environment or command name.
13847 \end_layout
13848
13849 \begin_layout Description
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854 LatexParam
13855 \end_layout
13856
13857 \end_inset
13858
13859  [
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 <parameter>
13865 \end_layout
13866
13867 \end_inset
13868
13869 ] An optional parameter for the corresponding 
13870 \begin_inset Flex Code
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874 LatexName
13875 \end_layout
13876
13877 \end_inset
13878
13879  stuff.
13880  This parameter cannot be changed from within \SpecialChar LyX
13881  (use 
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 Argument
13887 \end_layout
13888
13889 \end_inset
13890
13891  for customizable parameters).
13892  This will be output as is after all \SpecialChar LaTeX
13893  
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 Argument
13899 \end_layout
13900
13901 \end_inset
13902
13903 s.
13904 \end_layout
13905
13906 \begin_layout Description
13907 \begin_inset Flex Code
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911 LatexType
13912 \end_layout
13913
13914 \end_inset
13915
13916  [
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921
13922 \emph on
13923 Paragraph
13924 \emph default
13925 , Command, Environment, Item_Environment,
13926 \begin_inset Newline newline
13927 \end_inset
13928
13929 List_Environment, Bib_Environment
13930 \end_layout
13931
13932 \end_inset
13933
13934 ] How the style should be translated into \SpecialChar LaTeX
13935 .
13936 \begin_inset Foot
13937 status collapsed
13938
13939 \begin_layout Plain Layout
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 LatexType
13945 \end_layout
13946
13947 \end_inset
13948
13949  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13950  Visit the SGML class files for specific examples.
13951 \end_layout
13952
13953 \end_inset
13954
13955
13956 \end_layout
13957
13958 \begin_deeper
13959 \begin_layout Description
13960 \begin_inset Flex Code
13961 status collapsed
13962
13963 \begin_layout Plain Layout
13964 Paragraph
13965 \end_layout
13966
13967 \end_inset
13968
13969  means nothing special.
13970 \end_layout
13971
13972 \begin_layout Description
13973 \begin_inset Flex Code
13974 status collapsed
13975
13976 \begin_layout Plain Layout
13977 Command
13978 \end_layout
13979
13980 \end_inset
13981
13982  means 
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987
13988 \backslash
13989
13990 \emph on
13991 LatexName
13992 \emph default
13993 {\SpecialChar ldots
13994 }
13995 \end_layout
13996
13997 \end_inset
13998
13999 .
14000 \end_layout
14001
14002 \begin_layout Description
14003 \begin_inset Flex Code
14004 status collapsed
14005
14006 \begin_layout Plain Layout
14007 Environment
14008 \end_layout
14009
14010 \end_inset
14011
14012  means 
14013 \begin_inset Flex Code
14014 status collapsed
14015
14016 \begin_layout Plain Layout
14017
14018 \backslash
14019 begin{
14020 \emph on
14021 LatexName
14022 \emph default
14023 }\SpecialChar ldots
14024
14025 \backslash
14026 end{
14027 \emph on
14028 LatexName
14029 \emph default
14030 }
14031 \end_layout
14032
14033 \end_inset
14034
14035 .
14036  
14037 \end_layout
14038
14039 \begin_layout Description
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 Item_Environment
14045 \end_layout
14046
14047 \end_inset
14048
14049  is the same as 
14050 \begin_inset Flex Code
14051 status collapsed
14052
14053 \begin_layout Plain Layout
14054 Environment
14055 \end_layout
14056
14057 \end_inset
14058
14059 , except that an 
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064
14065 \backslash
14066 item
14067 \end_layout
14068
14069 \end_inset
14070
14071  is generated for each paragraph of this environment.
14072  
14073 \end_layout
14074
14075 \begin_layout Description
14076 \begin_inset Flex Code
14077 status collapsed
14078
14079 \begin_layout Plain Layout
14080 List_Environment
14081 \end_layout
14082
14083 \end_inset
14084
14085  is the same as 
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090 Item_Environment
14091 \end_layout
14092
14093 \end_inset
14094
14095 , except that
14096 \begin_inset Newline newline
14097 \end_inset
14098
14099
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 LabelWidthString
14105 \end_layout
14106
14107 \end_inset
14108
14109  is passed as an argument to the environment.
14110 \begin_inset Newline newline
14111 \end_inset
14112
14113
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118 LabelWidthString
14119 \end_layout
14120
14121 \end_inset
14122
14123  can be defined in the 
14124 \begin_inset Flex Noun
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 Edit\SpecialChar menuseparator
14129 Paragraph
14130 \begin_inset space ~
14131 \end_inset
14132
14133 settings
14134 \end_layout
14135
14136 \end_inset
14137
14138  dialog.
14139 \end_layout
14140
14141 \begin_layout Description
14142 \begin_inset Flex Code
14143 status collapsed
14144
14145 \begin_layout Plain Layout
14146 Bib_Environment
14147 \end_layout
14148
14149 \end_inset
14150
14151  is like 
14152 \begin_inset Flex Code
14153 status collapsed
14154
14155 \begin_layout Plain Layout
14156 Environment
14157 \end_layout
14158
14159 \end_inset
14160
14161  but adds the necessary mandatory argument (the longest label) to the begin
14162  statement of the bibliography environment:
14163 \begin_inset Newline newline
14164 \end_inset
14165
14166
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171
14172 \backslash
14173 begin{thebibliography}{99}
14174 \end_layout
14175
14176 \end_inset
14177
14178 .
14179  It is therefore only useful for bibliography environments.
14180  The default longest label 
14181 \begin_inset Quotes eld
14182 \end_inset
14183
14184 99
14185 \begin_inset Quotes erd
14186 \end_inset
14187
14188  can be changed by the user in the paragraph settings of a bibliography
14189  item.
14190 \end_layout
14191
14192 \begin_layout Standard
14193 Putting the last few things together, the \SpecialChar LaTeX
14194  output will be either: 
14195 \end_layout
14196
14197 \begin_layout LyX-Code
14198
14199 \backslash
14200 LatexName[LatexParam]{\SpecialChar ldots
14201 }
14202 \end_layout
14203
14204 \begin_layout Standard
14205 or: 
14206 \end_layout
14207
14208 \begin_layout LyX-Code
14209
14210 \backslash
14211 begin{LatexName}[LatexParam] \SpecialChar ldots
14212  
14213 \backslash
14214 end{LatexName}.
14215 \end_layout
14216
14217 \begin_layout Standard
14218 depending upon the \SpecialChar LaTeX
14219  type.
14220 \end_layout
14221
14222 \end_deeper
14223 \begin_layout Description
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 LeftDelim
14229 \end_layout
14230
14231 \end_inset
14232
14233  [
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238 string
14239 \end_layout
14240
14241 \end_inset
14242
14243 ] A string that is put at the beginning of the style content.
14244  A line break in the output can be indicated by 
14245 \begin_inset Flex Code
14246 status collapsed
14247
14248 \begin_layout Plain Layout
14249 <br/>
14250 \end_layout
14251
14252 \end_inset
14253
14254 .
14255 \end_layout
14256
14257 \begin_layout Description
14258 \begin_inset Flex Code
14259 status collapsed
14260
14261 \begin_layout Plain Layout
14262 LeftMargin
14263 \end_layout
14264
14265 \end_inset
14266
14267  [
14268 \begin_inset Flex Code
14269 status collapsed
14270
14271 \begin_layout Plain Layout
14272 string=""
14273 \end_layout
14274
14275 \end_inset
14276
14277 ] If you put styles into environments, the different 
14278 \begin_inset Flex Code
14279 status collapsed
14280
14281 \begin_layout Plain Layout
14282 LeftMargin
14283 \end_layout
14284
14285 \end_inset
14286
14287  are not simply added, but added with a factor 
14288 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14289 \end_inset
14290
14291 .
14292  Note that this parameter is also used when 
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 Margin
14298 \end_layout
14299
14300 \end_inset
14301
14302  is defined as 
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 Manual
14308 \end_layout
14309
14310 \end_inset
14311
14312  or 
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 Dynamic
14318 \end_layout
14319
14320 \end_inset
14321
14322 .
14323  Then it is added to the manual or dynamic margin.
14324 \begin_inset Newline newline
14325 \end_inset
14326
14327 For example 
14328 \begin_inset Quotes eld
14329 \end_inset
14330
14331
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 MM
14337 \end_layout
14338
14339 \end_inset
14340
14341
14342 \begin_inset Quotes erd
14343 \end_inset
14344
14345  means that the paragraph is indented with the width of 
14346 \begin_inset Quotes eld
14347 \end_inset
14348
14349
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 MM
14355 \end_layout
14356
14357 \end_inset
14358
14359
14360 \begin_inset Quotes erd
14361 \end_inset
14362
14363  in the normal font.
14364  You can get a negative width by prefixing the string with 
14365 \begin_inset Quotes eld
14366 \end_inset
14367
14368
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 -
14374 \end_layout
14375
14376 \end_inset
14377
14378
14379 \begin_inset Quotes erd
14380 \end_inset
14381
14382 .
14383  This way was chosen so that the look is the same with each used screen
14384  font.
14385 \end_layout
14386
14387 \begin_layout Description
14388 \begin_inset Flex Code
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392 Margin
14393 \end_layout
14394
14395 \end_inset
14396
14397  [
14398 \begin_inset Flex Code
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402
14403 \emph on
14404 Static
14405 \emph default
14406 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14407 \end_layout
14408
14409 \end_inset
14410
14411
14412 \begin_inset Newline newline
14413 \end_inset
14414
14415 The kind of margin that the style has on the left side.
14416 \end_layout
14417
14418 \begin_deeper
14419 \begin_layout Description
14420 \begin_inset Flex Code
14421 status collapsed
14422
14423 \begin_layout Plain Layout
14424 Static
14425 \end_layout
14426
14427 \end_inset
14428
14429  just means a fixed margin.
14430 \end_layout
14431
14432 \begin_layout Description
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 Manual
14438 \end_layout
14439
14440 \end_inset
14441
14442  means that the left margin depends on the string entered in the 
14443 \begin_inset Flex Noun
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447 Edit\SpecialChar menuseparator
14448 Paragraph
14449 \begin_inset space ~
14450 \end_inset
14451
14452 Settings
14453 \end_layout
14454
14455 \end_inset
14456
14457  dialog.
14458  This is used to typeset nice lists without tabulators.
14459 \end_layout
14460
14461 \begin_layout Description
14462 \begin_inset Flex Code
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 Dynamic
14467 \end_layout
14468
14469 \end_inset
14470
14471  means that the margin depends on the size of the label.
14472  This is used for automatic enumerated headlines.
14473  It is obvious that the headline 
14474 \begin_inset Quotes eld
14475 \end_inset
14476
14477 5.4.3.2.1 Very long headline
14478 \begin_inset Quotes erd
14479 \end_inset
14480
14481  must have a wider left margin (as wide as 
14482 \begin_inset Quotes eld
14483 \end_inset
14484
14485 5.4.3.2.1
14486 \begin_inset Quotes erd
14487 \end_inset
14488
14489  plus the space) than 
14490 \begin_inset Quotes eld
14491 \end_inset
14492
14493 3.2 Very long headline
14494 \begin_inset Quotes erd
14495 \end_inset
14496
14497 , even if standard 
14498 \begin_inset Quotes eld
14499 \end_inset
14500
14501 word processors
14502 \begin_inset Quotes erd
14503 \end_inset
14504
14505  are not able to do this.
14506 \end_layout
14507
14508 \begin_layout Description
14509 \begin_inset Flex Code
14510 status collapsed
14511
14512 \begin_layout Plain Layout
14513 First_Dynamic
14514 \end_layout
14515
14516 \end_inset
14517
14518  is similar, but only the very first row of the paragraph is dynamic, while
14519  the others are static; this is used, for example, for descriptions.
14520 \end_layout
14521
14522 \begin_layout Description
14523 \begin_inset Flex Code
14524 status collapsed
14525
14526 \begin_layout Plain Layout
14527 Right_Address_Box
14528 \end_layout
14529
14530 \end_inset
14531
14532  means the margin is chosen in a way that the longest row of this paragraph
14533  fits to the right margin.
14534  This is used to typeset an address on the right edge of the page.
14535 \end_layout
14536
14537 \end_deeper
14538 \begin_layout Description
14539 \begin_inset Flex Code
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543 NeedProtect
14544 \end_layout
14545
14546 \end_inset
14547
14548  [
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553
14554 \emph on
14555 0
14556 \end_layout
14557
14558 \end_inset
14559
14560 ,
14561 \begin_inset space \thinspace{}
14562 \end_inset
14563
14564
14565 \begin_inset Flex Code
14566 status collapsed
14567
14568 \begin_layout Plain Layout
14569 1
14570 \end_layout
14571
14572 \end_inset
14573
14574 ] Whether fragile commands in this style should be 
14575 \begin_inset Flex Code
14576 status collapsed
14577
14578 \begin_layout Plain Layout
14579
14580 \backslash
14581 protect
14582 \end_layout
14583
14584 \end_inset
14585
14586 'ed.
14587  (Note: This is 
14588 \emph on
14589 not
14590 \emph default
14591  whether this command should itself be protected.)
14592 \end_layout
14593
14594 \begin_layout Description
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 Newline
14600 \end_layout
14601
14602 \end_inset
14603
14604  [
14605 \begin_inset Flex Code
14606 status collapsed
14607
14608 \begin_layout Plain Layout
14609 0
14610 \end_layout
14611
14612 \end_inset
14613
14614 ,
14615 \begin_inset space \thinspace{}
14616 \end_inset
14617
14618
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623
14624 \emph on
14625 1
14626 \end_layout
14627
14628 \end_inset
14629
14630 ] Whether newlines are translated into \SpecialChar LaTeX
14631  newlines (
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636
14637 \backslash
14638
14639 \backslash
14640
14641 \end_layout
14642
14643 \end_inset
14644
14645 ) or not.
14646  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14647  editing
14648  inside \SpecialChar LyX
14649 .
14650 \end_layout
14651
14652 \begin_layout Description
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 NextNoIndent
14658 \end_layout
14659
14660 \end_inset
14661
14662  [
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667
14668 \emph on
14669 0
14670 \end_layout
14671
14672 \end_inset
14673
14674 ,
14675 \begin_inset space \thinspace{}
14676 \end_inset
14677
14678
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 1
14684 \end_layout
14685
14686 \end_inset
14687
14688 ] If set to true, and if 
14689 \begin_inset Flex Code
14690 status collapsed
14691
14692 \begin_layout Plain Layout
14693 DefaultStyle
14694 \end_layout
14695
14696 \end_inset
14697
14698  (usually 
14699 \begin_inset Flex Code
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703 Standard
14704 \end_layout
14705
14706 \end_inset
14707
14708 ) paragraphs are being indented, then the indentation of such a paragraph
14709  following one of this type will be suppressed.
14710  (So this will not affect the display of non-default paragraphs.)
14711 \end_layout
14712
14713 \begin_layout Description
14714 \begin_inset Flex Code
14715 status collapsed
14716
14717 \begin_layout Plain Layout
14718 ObsoletedBy
14719 \end_layout
14720
14721 \end_inset
14722
14723  [
14724 \begin_inset Flex Code
14725 status collapsed
14726
14727 \begin_layout Plain Layout
14728 <name>
14729 \end_layout
14730
14731 \end_inset
14732
14733 ] Name of a style that has replaced this style.
14734  This is used to rename a style, while keeping backward compatibility.
14735 \end_layout
14736
14737 \begin_layout Description
14738 \begin_inset Flex Code
14739 status collapsed
14740
14741 \begin_layout Plain Layout
14742 ParagraphGroup
14743 \end_layout
14744
14745 \end_inset
14746
14747  [
14748 \begin_inset Flex Code
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752 0
14753 \end_layout
14754
14755 \end_inset
14756
14757 ,
14758 \begin_inset space \thinspace{}
14759 \end_inset
14760
14761
14762 \begin_inset Flex Code
14763 status collapsed
14764
14765 \begin_layout Plain Layout
14766 1
14767 \end_layout
14768
14769 \end_inset
14770
14771 ] Determines whether consecutive pragraphs of the same type are treated
14772  as belonging together.
14773  This has the effect that the 
14774 \begin_inset Flex Code
14775 status collapsed
14776
14777 \begin_layout Plain Layout
14778 GuiLabel
14779 \end_layout
14780
14781 \end_inset
14782
14783  is only printed once before such a group.
14784  By default, this is true for 
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789 LaTeXType
14790 \end_layout
14791
14792 \end_inset
14793
14794  
14795 \begin_inset Flex Code
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 Environment
14800 \end_layout
14801
14802 \end_inset
14803
14804  and 
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 Bib_Environment
14810 \end_layout
14811
14812 \end_inset
14813
14814  and false for all other types.
14815 \end_layout
14816
14817 \begin_layout Description
14818 \begin_inset Flex Code
14819 status collapsed
14820
14821 \begin_layout Plain Layout
14822 ParbreakIsNewline
14823 \end_layout
14824
14825 \end_inset
14826
14827  [
14828 \begin_inset Flex Code
14829 status collapsed
14830
14831 \begin_layout Plain Layout
14832
14833 \emph on
14834 0
14835 \end_layout
14836
14837 \end_inset
14838
14839 ,
14840 \begin_inset space \thinspace{}
14841 \end_inset
14842
14843
14844 \begin_inset Flex Code
14845 status collapsed
14846
14847 \begin_layout Plain Layout
14848 1
14849 \end_layout
14850
14851 \end_inset
14852
14853 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14854  output,
14855  but only by a line break; together with 
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 PassThru 1
14861 \end_layout
14862
14863 \end_inset
14864
14865 , this allows to emulate a plain text editor (like the ERT inset).
14866 \end_layout
14867
14868 \begin_layout Description
14869 \begin_inset Flex Code
14870 status collapsed
14871
14872 \begin_layout Plain Layout
14873 ParIndent
14874 \end_layout
14875
14876 \end_inset
14877
14878  [
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 string=""
14884 \end_layout
14885
14886 \end_inset
14887
14888 ] The indent of the very first line of a paragraph.
14889  The
14890 \begin_inset Newline newline
14891 \end_inset
14892
14893
14894 \begin_inset Flex Code
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898 Parindent
14899 \end_layout
14900
14901 \end_inset
14902
14903  will be fixed for a certain style.
14904  The exception is the default style, since the indentation for these paragraphs
14905  can be prohibited with 
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 NextNoIndent
14911 \end_layout
14912
14913 \end_inset
14914
14915 .
14916  Also, 
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 Standard
14922 \end_layout
14923
14924 \end_inset
14925
14926  style paragraphs inside environments use the 
14927 \begin_inset Flex Code
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931 Parindent
14932 \end_layout
14933
14934 \end_inset
14935
14936  of the environment, not their native one.
14937  For example, 
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 Standard
14943 \end_layout
14944
14945 \end_inset
14946
14947  paragraphs inside an enumeration are not indented.
14948 \end_layout
14949
14950 \begin_layout Description
14951 \begin_inset Flex Code
14952 status collapsed
14953
14954 \begin_layout Plain Layout
14955 ParSep
14956 \end_layout
14957
14958 \end_inset
14959
14960  [
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 float=0
14966 \end_layout
14967
14968 \end_inset
14969
14970 ] The vertical space between two paragraphs of this style.
14971 \end_layout
14972
14973 \begin_layout Description
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 Parskip
14979 \end_layout
14980
14981 \end_inset
14982
14983  [
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988 float=0
14989 \end_layout
14990
14991 \end_inset
14992
14993 ] \SpecialChar LyX
14994  allows the user to choose either 
14995 \begin_inset Quotes eld
14996 \end_inset
14997
14998 indent
14999 \begin_inset Quotes erd
15000 \end_inset
15001
15002  or 
15003 \begin_inset Quotes eld
15004 \end_inset
15005
15006 skip
15007 \begin_inset Quotes erd
15008 \end_inset
15009
15010  to separate paragraphs.
15011  When 
15012 \begin_inset Quotes eld
15013 \end_inset
15014
15015 indent
15016 \begin_inset Quotes erd
15017 \end_inset
15018
15019  is chosen, 
15020 \begin_inset Flex Code
15021 status collapsed
15022
15023 \begin_layout Plain Layout
15024 Parskip
15025 \end_layout
15026
15027 \end_inset
15028
15029  is ignored.
15030  When 
15031 \begin_inset Quotes eld
15032 \end_inset
15033
15034 skip
15035 \begin_inset Quotes erd
15036 \end_inset
15037
15038  is chosen, 
15039 \begin_inset Flex Code
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043 ParIndent
15044 \end_layout
15045
15046 \end_inset
15047
15048  is ignored and all paragraphs are separated by the 
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 Parskip
15054 \end_layout
15055
15056 \end_inset
15057
15058  argument.
15059  The vertical space is calculated with 
15060 \begin_inset Flex Code
15061 status collapsed
15062
15063 \begin_layout Plain Layout
15064 Parskip
15065 \begin_inset space ~
15066 \end_inset
15067
15068 * DefaultHeight
15069 \end_layout
15070
15071 \end_inset
15072
15073  where 
15074 \begin_inset Flex Code
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078 DefaultHeight
15079 \end_layout
15080
15081 \end_inset
15082
15083  is the height of a row with the normal font.
15084  This way, the look stays the same with different screen fonts.
15085 \end_layout
15086
15087 \begin_layout Description
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 PassThru
15093 \end_layout
15094
15095 \end_inset
15096
15097  [
15098 \begin_inset Flex Code
15099 status collapsed
15100
15101 \begin_layout Plain Layout
15102
15103 \emph on
15104 0
15105 \end_layout
15106
15107 \end_inset
15108
15109 ,
15110 \begin_inset space \thinspace{}
15111 \end_inset
15112
15113
15114 \begin_inset Flex Code
15115 status collapsed
15116
15117 \begin_layout Plain Layout
15118 1
15119 \end_layout
15120
15121 \end_inset
15122
15123 ] Whether the contents of this paragraph should be output in raw form, meaning
15124  without special translations that \SpecialChar LaTeX
15125  would require.
15126 \end_layout
15127
15128 \begin_layout Description
15129 \begin_inset Flex Code
15130 status collapsed
15131
15132 \begin_layout Plain Layout
15133 PassThruChars
15134 \end_layout
15135
15136 \end_inset
15137
15138  [
15139 \begin_inset Flex Code
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143 string
15144 \end_layout
15145
15146 \end_inset
15147
15148 ]
15149 \family typewriter
15150  
15151 \family default
15152 Defines individual characters that should be output in raw form, meaning
15153  without special translations that \SpecialChar LaTeX
15154  would require.
15155 \end_layout
15156
15157 \begin_layout Description
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162 Preamble
15163 \end_layout
15164
15165 \end_inset
15166
15167  Information to be included in the \SpecialChar LaTeX
15168  preamble when this style is used.
15169  Used to define macros, load packages, etc., required by this particular
15170  style.
15171  Must end with 
15172 \begin_inset Quotes eld
15173 \end_inset
15174
15175
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 EndPreamble
15181 \end_layout
15182
15183 \end_inset
15184
15185
15186 \begin_inset Quotes erd
15187 \end_inset
15188
15189 .
15190 \end_layout
15191
15192 \begin_layout Description
15193 \begin_inset Flex Code
15194 status collapsed
15195
15196 \begin_layout Plain Layout
15197 RefPrefix
15198 \end_layout
15199
15200 \end_inset
15201
15202  [
15203 \begin_inset Flex Code
15204 status collapsed
15205
15206 \begin_layout Plain Layout
15207 string
15208 \end_layout
15209
15210 \end_inset
15211
15212 ] The prefix to use when creating labels referring to paragraphs of this
15213  type.
15214  This allows the use of formatted references.
15215 \end_layout
15216
15217 \begin_layout Description
15218 \begin_inset Flex Code
15219 status collapsed
15220
15221 \begin_layout Plain Layout
15222 Requires 
15223 \end_layout
15224
15225 \end_inset
15226
15227  [
15228 \begin_inset Flex Code
15229 status collapsed
15230
15231 \begin_layout Plain Layout
15232 string
15233 \end_layout
15234
15235 \end_inset
15236
15237 ] Whether the style requires the feature 
15238 \begin_inset Flex Code
15239 status collapsed
15240
15241 \begin_layout Plain Layout
15242 string
15243 \end_layout
15244
15245 \end_inset
15246
15247  (see 
15248 \begin_inset CommandInset ref
15249 LatexCommand ref
15250 reference "chap:List-of-functions"
15251
15252 \end_inset
15253
15254  for the list of features).
15255  If you require a package with specific options, you can additionally use
15256  
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 PackageOptions
15262 \end_layout
15263
15264 \end_inset
15265
15266  as a general text class parameter (see 
15267 \begin_inset CommandInset ref
15268 LatexCommand ref
15269 reference "subsec:General-text-class"
15270
15271 \end_inset
15272
15273 ).
15274 \end_layout
15275
15276 \begin_layout Description
15277 \begin_inset Flex Code
15278 status collapsed
15279
15280 \begin_layout Plain Layout
15281 ResetArgs
15282 \end_layout
15283
15284 \end_inset
15285
15286  [
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291
15292 \emph on
15293 0
15294 \end_layout
15295
15296 \end_inset
15297
15298 ,
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 1
15304 \end_layout
15305
15306 \end_inset
15307
15308 ] Resets the \SpecialChar LaTeX
15309  arguments of this style (as defined via the 
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 Argument
15315 \end_layout
15316
15317 \end_inset
15318
15319  tag).
15320  This is useful if you have copied a style via 
15321 \begin_inset Flex Code
15322 status collapsed
15323
15324 \begin_layout Plain Layout
15325 CopyStyle
15326 \end_layout
15327
15328 \end_inset
15329
15330 , but you do not want to inherit its (required and optional) arguments.
15331 \end_layout
15332
15333 \begin_layout Description
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 ResumeCounter
15339 \end_layout
15340
15341 \end_inset
15342
15343  [
15344 \begin_inset Flex Code
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348
15349 \emph on
15350 0
15351 \end_layout
15352
15353 \end_inset
15354
15355 ,
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 1
15361 \end_layout
15362
15363 \end_inset
15364
15365 ] Resumes a counter that is usually reset at each new sequence of layouts.
15366  This is currently only useful when 
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 LabelType
15372 \end_layout
15373
15374 \end_inset
15375
15376  is 
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 Enumerate
15382 \end_layout
15383
15384 \end_inset
15385
15386 .
15387 \end_layout
15388
15389 \begin_layout Description
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 RightDelim
15395 \end_layout
15396
15397 \end_inset
15398
15399  [
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 string
15405 \end_layout
15406
15407 \end_inset
15408
15409 ] A string that is put at the end of the layout content.
15410  A line break in the output can be indicated by 
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 <br/>
15416 \end_layout
15417
15418 \end_inset
15419
15420 .
15421 \end_layout
15422
15423 \begin_layout Description
15424 \begin_inset Flex Code
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428 RightMargin
15429 \end_layout
15430
15431 \end_inset
15432
15433  [
15434 \begin_inset Flex Code
15435 status collapsed
15436
15437 \begin_layout Plain Layout
15438 string=""
15439 \end_layout
15440
15441 \end_inset
15442
15443 ] Similar to 
15444 \begin_inset Flex Code
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448 LeftMargin
15449 \end_layout
15450
15451 \end_inset
15452
15453 .
15454 \end_layout
15455
15456 \begin_layout Description
15457 \begin_inset Flex Code
15458 status collapsed
15459
15460 \begin_layout Plain Layout
15461 Spacing
15462 \end_layout
15463
15464 \end_inset
15465
15466  [
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471
15472 \emph on
15473 single
15474 \end_layout
15475
15476 \end_inset
15477
15478
15479 \begin_inset Flex Code
15480 status collapsed
15481
15482 \begin_layout Plain Layout
15483 onehalf
15484 \end_layout
15485
15486 \end_inset
15487
15488
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 double
15494 \end_layout
15495
15496 \end_inset
15497
15498
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503 other
15504 \begin_inset space ~
15505 \end_inset
15506
15507 <value>
15508 \end_layout
15509
15510 \end_inset
15511
15512 ] This defines what the default spacing should be in the style.
15513  The arguments 
15514 \begin_inset Flex Code
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518 single
15519 \end_layout
15520
15521 \end_inset
15522
15523
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 onehalf
15529 \end_layout
15530
15531 \end_inset
15532
15533  and 
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 double
15539 \end_layout
15540
15541 \end_inset
15542
15543  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15544  If you specify the argument 
15545 \begin_inset Flex Code
15546 status collapsed
15547
15548 \begin_layout Plain Layout
15549 other
15550 \end_layout
15551
15552 \end_inset
15553
15554 , then you must also provide a value argument which will be the actual multiplie
15555 r value.
15556  Note that, contrary to other parameters, 
15557 \begin_inset Flex Code
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561 Spacing
15562 \end_layout
15563
15564 \end_inset
15565
15566  implies the generation of specific \SpecialChar LaTeX
15567  code, using the \SpecialChar LaTeX
15568  package 
15569 \family roman
15570
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 setspace
15576 \end_layout
15577
15578 \end_inset
15579
15580 .
15581 \end_layout
15582
15583 \begin_layout Description
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 Spellcheck
15589 \end_layout
15590
15591 \end_inset
15592
15593  [
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598 0
15599 \end_layout
15600
15601 \end_inset
15602
15603 ,
15604 \begin_inset space \thinspace{}
15605 \end_inset
15606
15607
15608 \begin_inset Flex Code
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612
15613 \emph on
15614 1
15615 \end_layout
15616
15617 \end_inset
15618
15619 ] Allow spell-checking paragraphs of this style.
15620  Default is true.
15621 \end_layout
15622
15623 \begin_layout Description
15624 \begin_inset Flex Code
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 StepMasterCounter
15629 \end_layout
15630
15631 \end_inset
15632
15633  [
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638
15639 \emph on
15640 0
15641 \end_layout
15642
15643 \end_inset
15644
15645 ,
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 1
15651 \end_layout
15652
15653 \end_inset
15654
15655 ] Steps the master counter of a given counter at the beginning of a new
15656  sequence of layouts.
15657  This is currently only useful when 
15658 \begin_inset Flex Code
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 LabelType
15663 \end_layout
15664
15665 \end_inset
15666
15667  is 
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672 Enumerate
15673 \end_layout
15674
15675 \end_inset
15676
15677 .
15678 \end_layout
15679
15680 \begin_layout Description
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 TextFont
15686 \end_layout
15687
15688 \end_inset
15689
15690  The font used for the text body .
15691  See 
15692 \begin_inset CommandInset ref
15693 LatexCommand ref
15694 reference "subsec:Font-description"
15695
15696 \end_inset
15697
15698 .
15699 \end_layout
15700
15701 \begin_layout Description
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706 TocLevel
15707 \end_layout
15708
15709 \end_inset
15710
15711
15712 \series medium
15713  [
15714 \begin_inset Flex Code
15715 status collapsed
15716
15717 \begin_layout Plain Layout
15718
15719 \series medium
15720 int=3
15721 \end_layout
15722
15723 \end_inset
15724
15725 ]
15726 \series default
15727  The level of the style in the table of contents.
15728  This is used for automatic numbering of section headings.
15729 \end_layout
15730
15731 \begin_layout Description
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 ToggleIndent
15737 \end_layout
15738
15739 \end_inset
15740
15741  [
15742 \emph on
15743
15744 \begin_inset Flex Code
15745 status collapsed
15746
15747 \begin_layout Plain Layout
15748
15749 \emph on
15750 default
15751 \end_layout
15752
15753 \end_inset
15754
15755
15756 \emph default
15757
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762 always
15763 \end_layout
15764
15765 \end_inset
15766
15767
15768 \begin_inset Flex Code
15769 status collapsed
15770
15771 \begin_layout Plain Layout
15772 never
15773 \end_layout
15774
15775 \end_inset
15776
15777 ] This tag determines whether the first line indentation of this paragraph
15778  can be toggled via the Paragraph settings dialog.
15779  If 
15780 \emph on
15781
15782 \begin_inset Flex Code
15783 status collapsed
15784
15785 \begin_layout Plain Layout
15786
15787 \emph off
15788 default
15789 \end_layout
15790
15791 \end_inset
15792
15793
15794 \emph default
15795  is set, indentation can be toggled if the document settings use 
15796 \begin_inset Quotes eld
15797 \end_inset
15798
15799 indent
15800 \begin_inset Quotes erd
15801 \end_inset
15802
15803  paragraph style, with 
15804 \begin_inset Flex Code
15805 status collapsed
15806
15807 \begin_layout Plain Layout
15808 always
15809 \end_layout
15810
15811 \end_inset
15812
15813 , indentation can always be toggled, notwithstanding the document settings,
15814  with 
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819 never
15820 \end_layout
15821
15822 \end_inset
15823
15824 , indentation can never be toggled.
15825 \end_layout
15826
15827 \begin_layout Description
15828 \begin_inset Flex Code
15829 status collapsed
15830
15831 \begin_layout Plain Layout
15832 TopSep
15833 \end_layout
15834
15835 \end_inset
15836
15837  [
15838 \begin_inset Flex Code
15839 status collapsed
15840
15841 \begin_layout Plain Layout
15842 float=0
15843 \end_layout
15844
15845 \end_inset
15846
15847 ] The vertical space with which the very first of a chain of paragraphs
15848  with this style is separated from the previous paragraph.
15849  If the previous paragraph has another style, the separations are not simply
15850  added, but the maximum is taken.
15851 \end_layout
15852
15853 \begin_layout Subsection
15854 \begin_inset CommandInset label
15855 LatexCommand label
15856 name "subsec:I18n"
15857
15858 \end_inset
15859
15860 Internationalization of Paragraph Styles
15861 \end_layout
15862
15863 \begin_layout Standard
15864 \SpecialChar LyX
15865  has long supported internationalization of layout information, but, until
15866  version 2.0, this applied only to the user interface and not to, say, PDF
15867  output.
15868  Thus, French authors were forced to resort to ugly hacks if they wanted
15869  `
15870 \lang french
15871 Théorème
15872 \lang english
15873  1' instead of `Theorem 1'.
15874  Thanks to Georg Baum, that is no longer the case.
15875 \end_layout
15876
15877 \begin_layout Standard
15878 If a 
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 Style
15884 \end_layout
15885
15886 \end_inset
15887
15888  defines text that is to appear in the typeset document, it may use 
15889 \begin_inset Flex Code
15890 status collapsed
15891
15892 \begin_layout Plain Layout
15893 LangPreamble
15894 \end_layout
15895
15896 \end_inset
15897
15898  and 
15899 \begin_inset Flex Code
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903 BabelPreamble
15904 \end_layout
15905
15906 \end_inset
15907
15908  to support non-English and even multi-language documents correctly.
15909  The following excerpt (from the 
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914 theorems-ams.inc
15915 \end_layout
15916
15917 \end_inset
15918
15919  file) shows how this works:
15920 \end_layout
15921
15922 \begin_layout LyX-Code
15923 Preamble
15924 \end_layout
15925
15926 \begin_deeper
15927 \begin_layout LyX-Code
15928   
15929 \backslash
15930 theoremstyle{remark}
15931 \end_layout
15932
15933 \begin_layout LyX-Code
15934   
15935 \backslash
15936 newtheorem{claim}[thm]{
15937 \backslash
15938 protect
15939 \backslash
15940 claimname}
15941 \end_layout
15942
15943 \begin_layout LyX-Code
15944 EndPreamble
15945 \end_layout
15946
15947 \begin_layout LyX-Code
15948 LangPreamble
15949 \end_layout
15950
15951 \begin_layout LyX-Code
15952   
15953 \backslash
15954 providecommand{
15955 \backslash
15956 claimname}{_(Claim)}
15957 \end_layout
15958
15959 \begin_layout LyX-Code
15960 EndLangPreamble
15961 \end_layout
15962
15963 \begin_layout LyX-Code
15964 BabelPreamble
15965 \end_layout
15966
15967 \begin_layout LyX-Code
15968     
15969 \backslash
15970 addto
15971 \backslash
15972 captions$$lang{
15973 \backslash
15974 renewcommand{
15975 \backslash
15976 claimname}{_(Claim)}}
15977 \end_layout
15978
15979 \begin_layout LyX-Code
15980 EndBabelPreamble
15981 \end_layout
15982
15983 \end_deeper
15984 \begin_layout Standard
15985 In principle, any legal \SpecialChar LaTeX
15986  may appear in the 
15987 \begin_inset Flex Code
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991 LangPreamble
15992 \end_layout
15993
15994 \end_inset
15995
15996  and 
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 BabelPreamble
16002 \end_layout
16003
16004 \end_inset
16005
16006  tags, but in practice they will typically look as they do here.
16007  The key to correct translation of the typeset text is the definition of
16008  the \SpecialChar LaTeX
16009  command 
16010 \begin_inset Flex Code
16011 status collapsed
16012
16013 \begin_layout Plain Layout
16014
16015 \backslash
16016 claimname
16017 \end_layout
16018
16019 \end_inset
16020
16021  and its use in 
16022 \begin_inset Flex Code
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026
16027 \backslash
16028 newtheorem
16029 \end_layout
16030
16031 \end_inset
16032
16033 .
16034  
16035 \end_layout
16036
16037 \begin_layout Standard
16038 The 
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043 LangPreamble
16044 \end_layout
16045
16046 \end_inset
16047
16048  tag provides for internationalization based upon the overall language of
16049  the document.
16050  The contents of the tag will be included in the preamble, just as with
16051  the 
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 Preamble
16057 \end_layout
16058
16059 \end_inset
16060
16061  tag.
16062  What makes it special is the use of the 
16063 \begin_inset Quotes eld
16064 \end_inset
16065
16066 function
16067 \begin_inset Quotes erd
16068 \end_inset
16069
16070  
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075 _()
16076 \end_layout
16077
16078 \end_inset
16079
16080 , which will be replaced, when \SpecialChar LyX
16081  produces \SpecialChar LaTeX
16082  output, with the translation of
16083  its argument into the document language.
16084 \end_layout
16085
16086 \begin_layout Standard
16087 The 
16088 \begin_inset Flex Code
16089 status collapsed
16090
16091 \begin_layout Plain Layout
16092 BabelPreamble
16093 \end_layout
16094
16095 \end_inset
16096
16097  tag is more complex, since it is meant to provide support for multi-language
16098  documents and so offers an interface to the 
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 babel
16104 \end_layout
16105
16106 \end_inset
16107
16108  package.
16109  Its contents will be added to the preamble once for each language that
16110  appears in the document.
16111  In this case, the argument to 
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 _()
16117 \end_layout
16118
16119 \end_inset
16120
16121  will be replaced with its translation into the language in question; the
16122  expression 
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 $$lang
16128 \end_layout
16129
16130 \end_inset
16131
16132  is replaced by the language name (as used by the babel package).
16133 \end_layout
16134
16135 \begin_layout Standard
16136 A German document that also included a French section would thus have the
16137  following in the preamble:
16138 \end_layout
16139
16140 \begin_layout LyX-Code
16141
16142 \backslash
16143 addto
16144 \backslash
16145 captionsfrench{
16146 \backslash
16147 renewcommand{
16148 \backslash
16149 claimname}{Affirmation}}
16150 \begin_inset Newline newline
16151 \end_inset
16152
16153
16154 \backslash
16155 addto
16156 \backslash
16157 captionsngerman{
16158 \backslash
16159 renewcommand{
16160 \backslash
16161 claimname}{Behauptung}}
16162 \begin_inset Newline newline
16163 \end_inset
16164
16165
16166 \backslash
16167 providecommand{
16168 \backslash
16169 claimname}{Behauptung}
16170 \end_layout
16171
16172 \begin_layout Standard
16173 \SpecialChar LaTeX
16174  and 
16175 \begin_inset Flex Code
16176 status collapsed
16177
16178 \begin_layout Plain Layout
16179 babel
16180 \end_layout
16181
16182 \end_inset
16183
16184  will then conspire to produce the correct text in the output.
16185 \end_layout
16186
16187 \begin_layout Standard
16188 One important point to note here is that the translations are provided by
16189  \SpecialChar LyX
16190  itself, through the file 
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 layouttranslations
16196 \end_layout
16197
16198 \end_inset
16199
16200 .
16201  This means, in effect, that 
16202 \begin_inset Flex Code
16203 status collapsed
16204
16205 \begin_layout Plain Layout
16206 LangPreamble
16207 \end_layout
16208
16209 \end_inset
16210
16211  and 
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 BabelPreamble
16217 \end_layout
16218
16219 \end_inset
16220
16221  are really only of use in layout files that are provided with \SpecialChar LyX
16222 , since text
16223  entered in user-created layout files will not be seen by \SpecialChar LyX
16224 's internationalizatio
16225 n routines unless the 
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 layouttranslations
16231 \end_layout
16232
16233 \end_inset
16234
16235  file is modified accordingly.
16236  That said, however, any layout created with the intention that it will
16237  be included with \SpecialChar LyX
16238  should use these tags where appropriate.
16239  Please note that the paragraph style translations provided by \SpecialChar LyX
16240  will never
16241  change with a minor update (e.
16242 \begin_inset space \thinspace{}
16243 \end_inset
16244
16245 g.
16246 \begin_inset space \space{}
16247 \end_inset
16248
16249 from version 2.1.x to 2.1.y).
16250  It is however quite likely that a major update (e.
16251 \begin_inset space \thinspace{}
16252 \end_inset
16253
16254 g.
16255 \begin_inset space \space{}
16256 \end_inset
16257
16258 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16259 \end_layout
16260
16261 \begin_layout Subsection
16262 Floats
16263 \begin_inset CommandInset label
16264 LatexCommand label
16265 name "subsec:Floats"
16266
16267 \end_inset
16268
16269
16270 \end_layout
16271
16272 \begin_layout Standard
16273 It is necessary to define the floats (
16274 \begin_inset Flex Noun
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 figure
16279 \end_layout
16280
16281 \end_inset
16282
16283
16284 \begin_inset Flex Noun
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 table
16289 \end_layout
16290
16291 \end_inset
16292
16293 , \SpecialChar ldots
16294 ) in the text class itself.
16295  Standard floats are included in the file 
16296 \begin_inset Flex Code
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300 stdfloats.inc
16301 \end_layout
16302
16303 \end_inset
16304
16305 , so you may have to do no more than add
16306 \end_layout
16307
16308 \begin_layout LyX-Code
16309 Input stdfloats.inc
16310 \end_layout
16311
16312 \begin_layout Standard
16313 to your layout file.
16314  If you want to implement a text class that proposes some other float types
16315  (like the AGU class bundled with \SpecialChar LyX
16316 ), the information below will hopefully
16317  help you:
16318 \end_layout
16319
16320 \begin_layout Description
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325 AllowedPlacement
16326 \end_layout
16327
16328 \end_inset
16329
16330  [
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335 string
16336 \end_layout
16337
16338 \end_inset
16339
16340 =!htbpH] Allowed placement options for this float type.
16341  The value is a string of placement characters.
16342  Possible characters include: 
16343 \emph on
16344 h
16345 \emph default
16346  (
16347 \begin_inset Quotes eld
16348 \end_inset
16349
16350 here if possible
16351 \begin_inset Quotes erd
16352 \end_inset
16353
16354 ), 
16355 \emph on
16356 t
16357 \emph default
16358  (
16359 \begin_inset Quotes eld
16360 \end_inset
16361
16362 top of page
16363 \begin_inset Quotes erd
16364 \end_inset
16365
16366 ), 
16367 \emph on
16368 b
16369 \emph default
16370  (
16371 \begin_inset Quotes eld
16372 \end_inset
16373
16374 bottom of page
16375 \begin_inset Quotes erd
16376 \end_inset
16377
16378 ), 
16379 \emph on
16380 p
16381 \emph default
16382  (
16383 \begin_inset Quotes eld
16384 \end_inset
16385
16386 page of floats
16387 \begin_inset Quotes erd
16388 \end_inset
16389
16390 ), 
16391 \emph on
16392 H
16393 \emph default
16394  (
16395 \begin_inset Quotes eld
16396 \end_inset
16397
16398 here definitely
16399 \begin_inset Quotes erd
16400 \end_inset
16401
16402 ) and 
16403 \emph on
16404 !
16405 \emph default
16406  (
16407 \begin_inset Quotes eld
16408 \end_inset
16409
16410 ignore LaTeX rules
16411 \begin_inset Quotes erd
16412 \end_inset
16413
16414 ).
16415  The order of the characters in the string does not matter.
16416  If no placement options are allowed, use the string 
16417 \emph on
16418 none
16419 \emph default
16420 .
16421 \end_layout
16422
16423 \begin_layout Description
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 AllowsSideways
16429 \end_layout
16430
16431 \end_inset
16432
16433  [
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438
16439 \emph off
16440 0
16441 \end_layout
16442
16443 \end_inset
16444
16445 ,
16446 \begin_inset space \thinspace{}
16447 \end_inset
16448
16449
16450 \emph on
16451
16452 \begin_inset Flex Code
16453 status collapsed
16454
16455 \begin_layout Plain Layout
16456
16457 \emph on
16458 1
16459 \end_layout
16460
16461 \end_inset
16462
16463
16464 \emph default
16465 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16466 -package 
16467 \family typewriter
16468 rotfloat
16469 \family default
16470  (sidewaysfloat).
16471  Set to 
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476 0
16477 \end_layout
16478
16479 \end_inset
16480
16481  if the float does not support this feature.
16482 \end_layout
16483
16484 \begin_layout Description
16485 \begin_inset Flex Code
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489 AllowsWide
16490 \end_layout
16491
16492 \end_inset
16493
16494  [
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499
16500 \emph off
16501 0
16502 \end_layout
16503
16504 \end_inset
16505
16506 ,
16507 \begin_inset space \thinspace{}
16508 \end_inset
16509
16510
16511 \emph on
16512
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517
16518 \emph on
16519 1
16520 \end_layout
16521
16522 \end_inset
16523
16524
16525 \emph default
16526 ] Defines whether the float has a starred variant that spans columns in
16527  a two column paragraph.
16528  Set to 
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 0
16534 \end_layout
16535
16536 \end_inset
16537
16538  if the float does not support this feature.
16539 \end_layout
16540
16541 \begin_layout Description
16542 \begin_inset Flex Code
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546 Extension
16547 \end_layout
16548
16549 \end_inset
16550
16551  [
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556 string
16557 \end_layout
16558
16559 \end_inset
16560
16561 =
16562 \begin_inset Quotes erd
16563 \end_inset
16564
16565
16566 \begin_inset Quotes erd
16567 \end_inset
16568
16569 ] The file name extension of an auxiliary file for the list of figures (or
16570  whatever).
16571  \SpecialChar LaTeX
16572  writes the captions to this file.
16573 \end_layout
16574
16575 \begin_layout Description
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580 GuiName
16581 \end_layout
16582
16583 \end_inset
16584
16585  [
16586 \begin_inset Flex Code
16587 status collapsed
16588
16589 \begin_layout Plain Layout
16590 string
16591 \end_layout
16592
16593 \end_inset
16594
16595 =
16596 \begin_inset Quotes erd
16597 \end_inset
16598
16599
16600 \begin_inset Quotes erd
16601 \end_inset
16602
16603 ] The string that will be used in the menus and also for the caption.
16604  This is translated to the current language if babel is used.
16605 \end_layout
16606
16607 \begin_layout Description
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 HTML*
16613 \end_layout
16614
16615 \end_inset
16616
16617  These tags control the XHTML output.
16618  See 
16619 \begin_inset CommandInset ref
16620 LatexCommand ref
16621 reference "sec:Tags-for-XHTML"
16622
16623 \end_inset
16624
16625 .
16626 \end_layout
16627
16628 \begin_layout Description
16629 \begin_inset Flex Code
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 IsPredefined
16634 \end_layout
16635
16636 \end_inset
16637
16638  [
16639 \emph on
16640
16641 \begin_inset Flex Code
16642 status collapsed
16643
16644 \begin_layout Plain Layout
16645 0
16646 \end_layout
16647
16648 \end_inset
16649
16650
16651 \emph default
16652 ,
16653 \begin_inset space \thinspace{}
16654 \end_inset
16655
16656
16657 \begin_inset Flex Code
16658 status collapsed
16659
16660 \begin_layout Plain Layout
16661 1
16662 \end_layout
16663
16664 \end_inset
16665
16666 ] Indicates whether the float is already defined in the document class or
16667  if instead the \SpecialChar LaTeX
16668  package 
16669 \begin_inset Flex Code
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673 float
16674 \end_layout
16675
16676 \end_inset
16677
16678  needs to be loaded to define it on-the-fly.
16679  The default is 
16680 \begin_inset Flex Code
16681 status collapsed
16682
16683 \begin_layout Plain Layout
16684 0
16685 \end_layout
16686
16687 \end_inset
16688
16689 , which means: 
16690 \begin_inset Flex Code
16691 status collapsed
16692
16693 \begin_layout Plain Layout
16694 float
16695 \end_layout
16696
16697 \end_inset
16698
16699  is used.
16700  It should be set to 
16701 \begin_inset Flex Code
16702 status collapsed
16703
16704 \begin_layout Plain Layout
16705 1
16706 \end_layout
16707
16708 \end_inset
16709
16710  if the float is already defined by the \SpecialChar LaTeX
16711  document class.
16712 \end_layout
16713
16714 \begin_layout Description
16715 \begin_inset Flex Code
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719 ListCommand
16720 \end_layout
16721
16722 \end_inset
16723
16724  [
16725 \begin_inset Flex Code
16726 status collapsed
16727
16728 \begin_layout Plain Layout
16729 string
16730 \end_layout
16731
16732 \end_inset
16733
16734 =
16735 \begin_inset Quotes erd
16736 \end_inset
16737
16738
16739 \begin_inset Quotes erd
16740 \end_inset
16741
16742 ] The command used to generate a list of floats of this type; the leading
16743  `
16744 \backslash
16745 ' must be omitted.
16746  This 
16747 \emph on
16748 must
16749 \emph default
16750  be given if 
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 UsesFloatPkg
16756 \end_layout
16757
16758 \end_inset
16759
16760  is false, since there is no standard way to generate this command.
16761  It is ignored if 
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766 UsesFloatPkg
16767 \end_layout
16768
16769 \end_inset
16770
16771  is true, since in that case there is a standard way to define the command.
16772 \end_layout
16773
16774 \begin_layout Description
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779 ListName
16780 \end_layout
16781
16782 \end_inset
16783
16784  [
16785 \begin_inset Flex Code
16786 status collapsed
16787
16788 \begin_layout Plain Layout
16789 string
16790 \end_layout
16791
16792 \end_inset
16793
16794 =
16795 \begin_inset Quotes erd
16796 \end_inset
16797
16798
16799 \begin_inset Quotes erd
16800 \end_inset
16801
16802 ] A title for a list of floats of this kind (list of figures, tables, or
16803  whatever).
16804  It is used for the screen label within \SpecialChar LyX
16805 , it is used by \SpecialChar LaTeX
16806  for the title and
16807  it is used as the title in the XHTML output.
16808  It will be translated to the document language.
16809 \end_layout
16810
16811 \begin_layout Description
16812 \begin_inset Flex Code
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 NumberWithin
16817 \end_layout
16818
16819 \end_inset
16820
16821  [
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 string
16827 \end_layout
16828
16829 \end_inset
16830
16831 =
16832 \begin_inset Quotes erd
16833 \end_inset
16834
16835
16836 \begin_inset Quotes erd
16837 \end_inset
16838
16839 ] This (optional) argument determines whether floats of this class will
16840  be numbered within some sectional unit of the document.
16841  For example, if 
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 NumberWithin
16847 \end_layout
16848
16849 \end_inset
16850
16851  is set to 
16852 \begin_inset Quotes eld
16853 \end_inset
16854
16855
16856 \begin_inset Flex Code
16857 status collapsed
16858
16859 \begin_layout Plain Layout
16860 chapter
16861 \end_layout
16862
16863 \end_inset
16864
16865
16866 \begin_inset Quotes erd
16867 \end_inset
16868
16869 , the floats will be numbered within chapters.
16870  
16871 \end_layout
16872
16873 \begin_layout Description
16874 \begin_inset Flex Code
16875 status collapsed
16876
16877 \begin_layout Plain Layout
16878 Placement
16879 \end_layout
16880
16881 \end_inset
16882
16883  [
16884 \begin_inset Flex Code
16885 status collapsed
16886
16887 \begin_layout Plain Layout
16888 string
16889 \end_layout
16890
16891 \end_inset
16892
16893 =
16894 \begin_inset Quotes erd
16895 \end_inset
16896
16897
16898 \begin_inset Quotes erd
16899 \end_inset
16900
16901 ] The default placement for the given class of floats.
16902  The string should be as in standard \SpecialChar LaTeX
16903
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 t
16909 \end_layout
16910
16911 \end_inset
16912
16913
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 b
16919 \end_layout
16920
16921 \end_inset
16922
16923
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 p
16929 \end_layout
16930
16931 \end_inset
16932
16933  and 
16934 \begin_inset Flex Code
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938 h
16939 \end_layout
16940
16941 \end_inset
16942
16943  for top, bottom, page, and here, respectively.
16944 \begin_inset Foot
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 Note that the order of these letters in the string is irrelevant, like in
16949  \SpecialChar LaTeX
16950 .
16951 \end_layout
16952
16953 \end_inset
16954
16955  On top of that there is a new type, 
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960 H
16961 \end_layout
16962
16963 \end_inset
16964
16965 , which does not really correspond to a float, since it means: put it 
16966 \begin_inset Quotes eld
16967 \end_inset
16968
16969 here
16970 \begin_inset Quotes erd
16971 \end_inset
16972
16973  and nowhere else.
16974  Note however that the 
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979 H
16980 \end_layout
16981
16982 \end_inset
16983
16984  specifier is special and, because of implementation details, cannot be
16985  used in non-built in float types.
16986  If you do not understand what this means, just use 
16987 \begin_inset Quotes eld
16988 \end_inset
16989
16990
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 tbp
16996 \end_layout
16997
16998 \end_inset
16999
17000
17001 \begin_inset Quotes erd
17002 \end_inset
17003
17004 .
17005 \end_layout
17006
17007 \begin_layout Description
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 RefPrefix
17013 \end_layout
17014
17015 \end_inset
17016
17017  [
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 string
17023 \end_layout
17024
17025 \end_inset
17026
17027 ] The prefix to use when creating labels referring to floats of this type.
17028  This allows the use of formatted references.
17029  Note that you can remove any 
17030 \begin_inset Flex Code
17031 status collapsed
17032
17033 \begin_layout Plain Layout
17034 RefPrefix
17035 \end_layout
17036
17037 \end_inset
17038
17039  set by a copied style by using the special value 
17040 \begin_inset Quotes eld
17041 \end_inset
17042
17043 OFF
17044 \begin_inset Quotes erd
17045 \end_inset
17046
17047 , which must be all caps.
17048 \end_layout
17049
17050 \begin_layout Description
17051 \begin_inset Flex Code
17052 status collapsed
17053
17054 \begin_layout Plain Layout
17055 Style
17056 \end_layout
17057
17058 \end_inset
17059
17060  [
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 string
17066 \end_layout
17067
17068 \end_inset
17069
17070 =
17071 \begin_inset Quotes erd
17072 \end_inset
17073
17074
17075 \begin_inset Quotes erd
17076 \end_inset
17077
17078 ] The style used when defining the float using 
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083
17084 \backslash
17085 newfloat
17086 \end_layout
17087
17088 \end_inset
17089
17090 .
17091 \end_layout
17092
17093 \begin_layout Description
17094 \begin_inset Flex Code
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 Type
17099 \end_layout
17100
17101 \end_inset
17102
17103  [
17104 \begin_inset Flex Code
17105 status collapsed
17106
17107 \begin_layout Plain Layout
17108 string
17109 \end_layout
17110
17111 \end_inset
17112
17113 =
17114 \begin_inset Quotes erd
17115 \end_inset
17116
17117
17118 \begin_inset Quotes erd
17119 \end_inset
17120
17121 ] The 
17122 \begin_inset Quotes eld
17123 \end_inset
17124
17125 type
17126 \begin_inset Quotes erd
17127 \end_inset
17128
17129  of the new class of floats, like program or algorithm.
17130  After the appropriate 
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135
17136 \backslash
17137 newfloat
17138 \end_layout
17139
17140 \end_inset
17141
17142 , commands such as 
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147
17148 \backslash
17149 begin{program}
17150 \end_layout
17151
17152 \end_inset
17153
17154  or 
17155 \begin_inset Flex Code
17156 status collapsed
17157
17158 \begin_layout Plain Layout
17159
17160 \backslash
17161 end{algorithm*}
17162 \end_layout
17163
17164 \end_inset
17165
17166  will be available.
17167 \end_layout
17168
17169 \begin_layout Description
17170 \begin_inset Flex Code
17171 status collapsed
17172
17173 \begin_layout Plain Layout
17174 UsesFloatPkg
17175 \end_layout
17176
17177 \end_inset
17178
17179  [
17180 \begin_inset Flex Code
17181 status collapsed
17182
17183 \begin_layout Plain Layout
17184 0
17185 \end_layout
17186
17187 \end_inset
17188
17189 ,
17190 \begin_inset space \thinspace{}
17191 \end_inset
17192
17193
17194 \begin_inset Flex Code
17195 status collapsed
17196
17197 \begin_layout Plain Layout
17198
17199 \emph on
17200 1
17201 \end_layout
17202
17203 \end_inset
17204
17205 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17206  package 
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 float
17212 \end_layout
17213
17214 \end_inset
17215
17216 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17217  itself.
17218 \end_layout
17219
17220 \begin_layout Standard
17221 Note that defining a float with type 
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226
17227 \emph on
17228 type
17229 \end_layout
17230
17231 \end_inset
17232
17233  automatically defines the corresponding counter with name 
17234 \begin_inset Flex Code
17235 status collapsed
17236
17237 \begin_layout Plain Layout
17238
17239 \emph on
17240 type
17241 \end_layout
17242
17243 \end_inset
17244
17245 .
17246 \end_layout
17247
17248 \begin_layout Subsection
17249 Flex insets and InsetLayout
17250 \begin_inset CommandInset label
17251 LatexCommand label
17252 name "subsec:Flex-insets-and"
17253
17254 \end_inset
17255
17256
17257 \end_layout
17258
17259 \begin_layout Standard
17260 Flex insets come in three different kinds: 
17261 \end_layout
17262
17263 \begin_layout Itemize
17264 character style (
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 CharStyle
17270 \end_layout
17271
17272 \end_inset
17273
17274 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17275  commands as 
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280
17281 \backslash
17282 noun
17283 \end_layout
17284
17285 \end_inset
17286
17287  and 
17288 \begin_inset Flex Code
17289 status collapsed
17290
17291 \begin_layout Plain Layout
17292
17293 \backslash
17294 code
17295 \end_layout
17296
17297 \end_inset
17298
17299 .
17300 \end_layout
17301
17302 \begin_layout Itemize
17303 user custom (
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 Custom
17309 \end_layout
17310
17311 \end_inset
17312
17313 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17314  code,
17315  footnote, and the like.
17316  An obvious example is an endnote inset, which is defined in the 
17317 \begin_inset Flex Code
17318 status collapsed
17319
17320 \begin_layout Plain Layout
17321 endnote
17322 \end_layout
17323
17324 \end_inset
17325
17326  module.
17327 \end_layout
17328
17329 \begin_layout Itemize
17330 XML elements (
17331 \begin_inset Flex Code
17332 status collapsed
17333
17334 \begin_layout Plain Layout
17335 Element
17336 \end_layout
17337
17338 \end_inset
17339
17340 ): For use with DocBook classes.
17341 \end_layout
17342
17343 \begin_layout Standard
17344 Flex insets are defined using the 
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 InsetLayout
17350 \end_layout
17351
17352 \end_inset
17353
17354  tag, which shall be explained in a moment.
17355 \end_layout
17356
17357 \begin_layout Standard
17358 The 
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 InsetLayout
17364 \end_layout
17365
17366 \end_inset
17367
17368  tag also serves another function: It can be used to customize the general
17369  layout of many different types of insets.
17370  Currently, 
17371 \begin_inset Flex Code
17372 status collapsed
17373
17374 \begin_layout Plain Layout
17375 InsetLayout
17376 \end_layout
17377
17378 \end_inset
17379
17380  can be used to customize the layout parameters for footnotes, marginal
17381  notes, note insets, \SpecialChar TeX
17382  code (ERT) insets, branches, listings, indexes, boxes,
17383  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17384 \end_layout
17385
17386 \begin_layout Standard
17387 The 
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 InsetLayout
17393 \end_layout
17394
17395 \end_inset
17396
17397  definition must begin with a line of the form:
17398 \end_layout
17399
17400 \begin_layout LyX-Code
17401 InsetLayout <type>
17402 \end_layout
17403
17404 \begin_layout Standard
17405 Here 
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 <Type>
17411 \end_layout
17412
17413 \end_inset
17414
17415  indicates the inset whose layout is being defined, and here there are four
17416  cases.
17417 \end_layout
17418
17419 \begin_layout Enumerate
17420 The layout for a pre-existing inset is being modified.
17421  In this case, can be 
17422 \begin_inset Flex Code
17423 status collapsed
17424
17425 \begin_layout Plain Layout
17426 <Type>
17427 \end_layout
17428
17429 \end_inset
17430
17431  any one of the following: 
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 Algorithm
17437 \end_layout
17438
17439 \end_inset
17440
17441
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 Branch
17447 \end_layout
17448
17449 \end_inset
17450
17451
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456 Box
17457 \end_layout
17458
17459 \end_inset
17460
17461
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 Box:shaded
17467 \end_layout
17468
17469 \end_inset
17470
17471
17472 \begin_inset Flex Code
17473 status collapsed
17474
17475 \begin_layout Plain Layout
17476 Caption:Standard
17477 \end_layout
17478
17479 \end_inset
17480
17481
17482 \begin_inset Flex Code
17483 status collapsed
17484
17485 \begin_layout Plain Layout
17486 ERT
17487 \end_layout
17488
17489 \end_inset
17490
17491
17492 \begin_inset Flex Code
17493 status collapsed
17494
17495 \begin_layout Plain Layout
17496 Figure
17497 \end_layout
17498
17499 \end_inset
17500
17501
17502 \begin_inset Flex Code
17503 status collapsed
17504
17505 \begin_layout Plain Layout
17506 Foot
17507 \end_layout
17508
17509 \end_inset
17510
17511
17512 \begin_inset Flex Code
17513 status collapsed
17514
17515 \begin_layout Plain Layout
17516 Index
17517 \end_layout
17518
17519 \end_inset
17520
17521
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 Info
17527 \end_layout
17528
17529 \end_inset
17530
17531
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 Info:menu
17537 \end_layout
17538
17539 \end_inset
17540
17541
17542 \begin_inset Flex Code
17543 status collapsed
17544
17545 \begin_layout Plain Layout
17546 Info:shortcut
17547 \end_layout
17548
17549 \end_inset
17550
17551
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 Info:shortcuts
17557 \end_layout
17558
17559 \end_inset
17560
17561
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 Listings
17567 \end_layout
17568
17569 \end_inset
17570
17571
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576 Marginal
17577 \end_layout
17578
17579 \end_inset
17580
17581
17582 \begin_inset Flex Code
17583 status collapsed
17584
17585 \begin_layout Plain Layout
17586 Note:Comment
17587 \end_layout
17588
17589 \end_inset
17590
17591
17592 \begin_inset Flex Code
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 Note:Note
17597 \end_layout
17598
17599 \end_inset
17600
17601
17602 \begin_inset Flex Code
17603 status collapsed
17604
17605 \begin_layout Plain Layout
17606 Note:Greyedout
17607 \end_layout
17608
17609 \end_inset
17610
17611
17612 \begin_inset Flex Code
17613 status collapsed
17614
17615 \begin_layout Plain Layout
17616 Table
17617 \end_layout
17618
17619 \end_inset
17620
17621 , or 
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626 URL
17627 \end_layout
17628
17629 \end_inset
17630
17631 .
17632 \end_layout
17633
17634 \begin_layout Enumerate
17635 The layout for a Flex inset is being defined.
17636  In this case, 
17637 \begin_inset Flex Code
17638 status collapsed
17639
17640 \begin_layout Plain Layout
17641 <Type>
17642 \end_layout
17643
17644 \end_inset
17645
17646  must be of the form 
17647 \begin_inset Quotes eld
17648 \end_inset
17649
17650
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655 Flex:<name>
17656 \end_layout
17657
17658 \end_inset
17659
17660
17661 \begin_inset Quotes erd
17662 \end_inset
17663
17664 , where 
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 name
17670 \end_layout
17671
17672 \end_inset
17673
17674  may be be any valid identifier not used by a pre-existing Flex inset.
17675  The identifier may include spaces, but in that case the whole thing must
17676  be wrapped in quotes.
17677  Note that the definition of a flex inset 
17678 \emph on
17679 must 
17680 \emph default
17681 also include a 
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 LyXType
17687 \end_layout
17688
17689 \end_inset
17690
17691  entry, declaring which type of inset it defines.
17692 \end_layout
17693
17694 \begin_layout Enumerate
17695 The layout for user specific branch is being defined.
17696  In this case, 
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701 <Type>
17702 \end_layout
17703
17704 \end_inset
17705
17706  must be of the form 
17707 \begin_inset Quotes eld
17708 \end_inset
17709
17710
17711 \begin_inset Flex Code
17712 status collapsed
17713
17714 \begin_layout Plain Layout
17715 Branch:<name>
17716 \end_layout
17717
17718 \end_inset
17719
17720
17721 \begin_inset Quotes erd
17722 \end_inset
17723
17724 , where 
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 name
17730 \end_layout
17731
17732 \end_inset
17733
17734  may be be any valid identifier of branch defined in user's document.
17735  The identifier may include spaces, but in that case the whole thing must
17736  be wrapped in quotes.
17737  The main purpose of this feature is to allow \SpecialChar LaTeX
17738  wrapping around specific
17739  branches as user needs.
17740 \end_layout
17741
17742 \begin_layout Enumerate
17743 The layout of a user (or class) specific caption is being defined.
17744  In this case, 
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 <Type>
17750 \end_layout
17751
17752 \end_inset
17753
17754  must be of the form 
17755 \begin_inset Quotes eld
17756 \end_inset
17757
17758
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 Caption:<name>
17764 \end_layout
17765
17766 \end_inset
17767
17768
17769 \begin_inset Quotes erd
17770 \end_inset
17771
17772 , where 
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 name
17778 \end_layout
17779
17780 \end_inset
17781
17782  specifies the name of the caption as it appears in the menu.
17783  Have a look at the standard caption (
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788 Caption:Standard
17789 \end_layout
17790
17791 \end_inset
17792
17793 ), the specific captions of the KOMA-Script classes (
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 Caption:Above
17799 \end_layout
17800
17801 \end_inset
17802
17803
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 Caption:Below
17809 \end_layout
17810
17811 \end_inset
17812
17813 ) or the module 
17814 \family sans
17815 Multilingual
17816 \begin_inset space ~
17817 \end_inset
17818
17819 Captions 
17820 \family default
17821 (
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 Caption:Bicaption
17827 \end_layout
17828
17829 \end_inset
17830
17831 ) for applications.
17832 \end_layout
17833
17834 \begin_layout Standard
17835 The 
17836 \begin_inset Flex Code
17837 status collapsed
17838
17839 \begin_layout Plain Layout
17840 InsetLayout
17841 \end_layout
17842
17843 \end_inset
17844
17845  definition can contain the following entries:
17846 \end_layout
17847
17848 \begin_layout Description
17849 \begin_inset Flex Code
17850 status collapsed
17851
17852 \begin_layout Plain Layout
17853 AddToToc
17854 \end_layout
17855
17856 \end_inset
17857
17858  [
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 string
17864 \end_layout
17865
17866 \end_inset
17867
17868 =""] This inset will appear in the table of contents of the given type.
17869  An empty string disables.
17870  See also the OutlinerName and the IsTocCaption commands.
17871  This is only implemented for Flex insets.
17872  Default: disabled.
17873 \end_layout
17874
17875 \begin_layout Description
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 Argument
17881 \end_layout
17882
17883 \end_inset
17884
17885  [
17886 \begin_inset Flex Code
17887 status collapsed
17888
17889 \begin_layout Plain Layout
17890 int
17891 \end_layout
17892
17893 \end_inset
17894
17895 ] Defines argument number of a command\SpecialChar breakableslash
17896 environment associated with the current
17897  layout.
17898  The definition must end with 
17899 \begin_inset Flex Code
17900 status collapsed
17901
17902 \begin_layout Plain Layout
17903 EndArgument
17904 \end_layout
17905
17906 \end_inset
17907
17908 .
17909  See 
17910 \begin_inset CommandInset ref
17911 LatexCommand ref
17912 reference "subsec:Paragraph-Styles"
17913
17914 \end_inset
17915
17916  for details.
17917 \end_layout
17918
17919 \begin_layout Description
17920 \begin_inset Flex Code
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924 BabelPreamble
17925 \end_layout
17926
17927 \end_inset
17928
17929  Preamble for changing language commands; see 
17930 \begin_inset CommandInset ref
17931 LatexCommand ref
17932 reference "subsec:I18n"
17933
17934 \end_inset
17935
17936 .
17937 \end_layout
17938
17939 \begin_layout Description
17940 \begin_inset Flex Code
17941 status collapsed
17942
17943 \begin_layout Plain Layout
17944 BgColor
17945 \end_layout
17946
17947 \end_inset
17948
17949  [
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 <name>
17955 \end_layout
17956
17957 \end_inset
17958
17959 ] The color for the inset's background.
17960  See 
17961 \begin_inset CommandInset ref
17962 LatexCommand ref
17963 reference "chap:Names-of-colors"
17964
17965 \end_inset
17966
17967  for a list of the available color names.
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 ContentAsLabel
17976 \end_layout
17977
17978 \end_inset
17979
17980  [
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985
17986 \emph on
17987 0
17988 \end_layout
17989
17990 \end_inset
17991
17992 ,
17993 \begin_inset space \thinspace{}
17994 \end_inset
17995
17996
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001 1
18002 \end_layout
18003
18004 \end_inset
18005
18006 ] Whether to use the content of the inset as the label, when the inset is
18007  closed.
18008  Default is false.
18009 \end_layout
18010
18011 \begin_layout Description
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 CopyStyle
18017 \end_layout
18018
18019 \end_inset
18020
18021  [
18022 \begin_inset Flex Code
18023 status collapsed
18024
18025 \begin_layout Plain Layout
18026 <type>
18027 \end_layout
18028
18029 \end_inset
18030
18031 ] As with paragraph styles, see 
18032 \begin_inset CommandInset ref
18033 LatexCommand ref
18034 reference "subsec:Paragraph-Styles"
18035
18036 \end_inset
18037
18038 .
18039  Note that you need to specify the complete type, e.
18040 \begin_inset space \thinspace{}
18041 \end_inset
18042
18043 g.
18044 \begin_inset space ~
18045 \end_inset
18046
18047
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 CopyStyle Flex:<name>
18053 \end_layout
18054
18055 \end_inset
18056
18057 .
18058 \end_layout
18059
18060 \begin_layout Description
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 CustomPars
18066 \end_layout
18067
18068 \end_inset
18069
18070  [
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075
18076 \emph on
18077 0
18078 \end_layout
18079
18080 \end_inset
18081
18082 ,
18083 \begin_inset space \thinspace{}
18084 \end_inset
18085
18086
18087 \begin_inset Flex Code
18088 status collapsed
18089
18090 \begin_layout Plain Layout
18091 1
18092 \end_layout
18093
18094 \end_inset
18095
18096 ] Indicates whether the user may employ the Paragraph Settings dialog to
18097  customize the paragraph.
18098 \end_layout
18099
18100 \begin_layout Description
18101 \begin_inset Flex Code
18102 status collapsed
18103
18104 \begin_layout Plain Layout
18105 Decoration
18106 \end_layout
18107
18108 \end_inset
18109
18110  can be 
18111 \begin_inset Flex Code
18112 status collapsed
18113
18114 \begin_layout Plain Layout
18115 Classic
18116 \end_layout
18117
18118 \end_inset
18119
18120
18121 \begin_inset Flex Code
18122 status collapsed
18123
18124 \begin_layout Plain Layout
18125 Minimalistic
18126 \end_layout
18127
18128 \end_inset
18129
18130 , or 
18131 \begin_inset Flex Code
18132 status collapsed
18133
18134 \begin_layout Plain Layout
18135 Conglomerate
18136 \end_layout
18137
18138 \end_inset
18139
18140 , describing the rendering style used for the inset's frame and buttons.
18141  Footnotes generally use 
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146 Classic
18147 \end_layout
18148
18149 \end_inset
18150
18151 , ERT insets generally 
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 Minimalistic
18157 \end_layout
18158
18159 \end_inset
18160
18161 , and character styles 
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 Conglomerate
18167 \end_layout
18168
18169 \end_inset
18170
18171 .
18172 \end_layout
18173
18174 \begin_layout Description
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 Display
18180 \end_layout
18181
18182 \end_inset
18183
18184  [
18185 \begin_inset Flex Code
18186 status collapsed
18187
18188 \begin_layout Plain Layout
18189 0
18190 \end_layout
18191
18192 \end_inset
18193
18194 ,
18195 \emph on
18196
18197 \begin_inset space \thinspace{}
18198 \end_inset
18199
18200
18201 \emph default
18202
18203 \begin_inset Flex Code
18204 status collapsed
18205
18206 \begin_layout Plain Layout
18207
18208 \emph on
18209 1
18210 \end_layout
18211
18212 \end_inset
18213
18214 ] Only useful if 
18215 \begin_inset Flex Code
18216 status collapsed
18217
18218 \begin_layout Plain Layout
18219 LatexType
18220 \end_layout
18221
18222 \end_inset
18223
18224  is 
18225 \begin_inset Flex Code
18226 status collapsed
18227
18228 \begin_layout Plain Layout
18229 Environment
18230 \end_layout
18231
18232 \end_inset
18233
18234 .
18235  Indicates whether the environment will stand on its own in the output or
18236  will appear inline with the surrounding text.
18237  If set to false, it is supposed that the \SpecialChar LaTeX
18238  environment ignores white space
18239  (including one newline character) after the 
18240 \begin_inset Flex Code
18241 status collapsed
18242
18243 \begin_layout Plain Layout
18244
18245 \backslash
18246 begin{
18247 \emph on
18248 LatexName
18249 \emph default
18250 }
18251 \end_layout
18252
18253 \end_inset
18254
18255  and 
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260
18261 \backslash
18262 end{
18263 \emph on
18264 LatexName
18265 \emph default
18266 }
18267 \end_layout
18268
18269 \end_inset
18270
18271  tags.
18272  Default is true.
18273 \end_layout
18274
18275 \begin_layout Description
18276 \begin_inset Flex Code
18277 status collapsed
18278
18279 \begin_layout Plain Layout
18280 End
18281 \end_layout
18282
18283 \end_inset
18284
18285  Required at the end of the 
18286 \begin_inset Flex Code
18287 status collapsed
18288
18289 \begin_layout Plain Layout
18290 InsetLayout
18291 \end_layout
18292
18293 \end_inset
18294
18295  declarations.
18296 \end_layout
18297
18298 \begin_layout Description
18299 \begin_inset Flex Code
18300 status collapsed
18301
18302 \begin_layout Plain Layout
18303 Font
18304 \end_layout
18305
18306 \end_inset
18307
18308  The font used for both the text body 
18309 \emph on
18310 and
18311 \emph default
18312  the label.
18313  See 
18314 \begin_inset CommandInset ref
18315 LatexCommand ref
18316 reference "subsec:Font-description"
18317
18318 \end_inset
18319
18320 .
18321  Note that defining this font automatically defines the 
18322 \begin_inset Flex Code
18323 status collapsed
18324
18325 \begin_layout Plain Layout
18326 LabelFont
18327 \end_layout
18328
18329 \end_inset
18330
18331  to the same value, so define this first and define 
18332 \begin_inset Flex Code
18333 status collapsed
18334
18335 \begin_layout Plain Layout
18336 LabelFont
18337 \end_layout
18338
18339 \end_inset
18340
18341  later if you want them to be different.
18342 \end_layout
18343
18344 \begin_layout Description
18345 \begin_inset Flex Code
18346 status collapsed
18347
18348 \begin_layout Plain Layout
18349 FixedWidthPreambleEncoding
18350 \end_layout
18351
18352 \end_inset
18353
18354  [
18355 \begin_inset Flex Code
18356 status collapsed
18357
18358 \begin_layout Plain Layout
18359
18360 \emph on
18361 0
18362 \end_layout
18363
18364 \end_inset
18365
18366 ,
18367 \begin_inset space \thinspace{}
18368 \end_inset
18369
18370
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 1
18376 \end_layout
18377
18378 \end_inset
18379
18380 ] Force a fixed width encoding for the translated contents of 
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385 BabelPreamble
18386 \end_layout
18387
18388 \end_inset
18389
18390  and 
18391 \begin_inset Flex Code
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395 LangPreamble
18396 \end_layout
18397
18398 \end_inset
18399
18400  code generated by this layout.
18401  This is needed for special \SpecialChar LaTeX
18402 -packages like 
18403 \family typewriter
18404 listings
18405 \family default
18406  that do not work with variable width encodings such as 
18407 \family sans
18408 utf8
18409 \family default
18410 .
18411  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18412  backends such as Xe\SpecialChar TeX
18413  or
18414  Lua\SpecialChar TeX
18415  are used.
18416 \end_layout
18417
18418 \begin_layout Description
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 ForceLocalFontSwitch
18424 \end_layout
18425
18426 \end_inset
18427
18428  [
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433
18434 \emph on
18435 0
18436 \end_layout
18437
18438 \end_inset
18439
18440 ,
18441 \begin_inset space \thinspace{}
18442 \end_inset
18443
18444
18445 \begin_inset Flex Code
18446 status collapsed
18447
18448 \begin_layout Plain Layout
18449 1
18450 \end_layout
18451
18452 \end_inset
18453
18454 ] When using babel, always use a local font switch (
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459
18460 \backslash
18461 foreignlanguage
18462 \end_layout
18463
18464 \end_inset
18465
18466 ), never a global one (such as 
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471
18472 \backslash
18473 selectlanguage
18474 \end_layout
18475
18476 \end_inset
18477
18478 ).
18479 \end_layout
18480
18481 \begin_layout Description
18482 \begin_inset Flex Code
18483 status collapsed
18484
18485 \begin_layout Plain Layout
18486 ForceLTR
18487 \end_layout
18488
18489 \end_inset
18490
18491  [
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496
18497 \emph on
18498 0
18499 \end_layout
18500
18501 \end_inset
18502
18503 ,
18504 \begin_inset space \thinspace{}
18505 \end_inset
18506
18507
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 1
18513 \end_layout
18514
18515 \end_inset
18516
18517 ] Force the 
18518 \begin_inset Quotes eld
18519 \end_inset
18520
18521 latex
18522 \begin_inset Quotes erd
18523 \end_inset
18524
18525  language, leading to Left-to-Right (Latin) output, e.
18526 \begin_inset space \thinspace{}
18527 \end_inset
18528
18529 g.
18530 \begin_inset space \space{}
18531 \end_inset
18532
18533 in \SpecialChar TeX
18534  code or URL.
18535  A kludge.
18536 \end_layout
18537
18538 \begin_layout Description
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 ForceOwnlines
18544 \end_layout
18545
18546 \end_inset
18547
18548  [
18549 \begin_inset Flex Code
18550 status collapsed
18551
18552 \begin_layout Plain Layout
18553
18554 \emph on
18555 0
18556 \end_layout
18557
18558 \end_inset
18559
18560 ,
18561 \begin_inset space \thinspace{}
18562 \end_inset
18563
18564
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 1
18570 \end_layout
18571
18572 \end_inset
18573
18574 ] Force a a line break in the \SpecialChar LaTeX
18575  output before the inset starts and after
18576  the inset ends.
18577  This assures the inset itself is output on its own lines, for parsing purposes.
18578 \end_layout
18579
18580 \begin_layout Description
18581 \begin_inset Flex Code
18582 status collapsed
18583
18584 \begin_layout Plain Layout
18585 ForcePlain
18586 \end_layout
18587
18588 \end_inset
18589
18590  [
18591 \begin_inset Flex Code
18592 status collapsed
18593
18594 \begin_layout Plain Layout
18595
18596 \emph on
18597 0
18598 \end_layout
18599
18600 \end_inset
18601
18602 ,
18603 \begin_inset space \thinspace{}
18604 \end_inset
18605
18606
18607 \begin_inset Flex Code
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 1
18612 \end_layout
18613
18614 \end_inset
18615
18616 ] Indicates whether the 
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621 PlainLayout
18622 \end_layout
18623
18624 \end_inset
18625
18626  should be used or, instead, the user can change the paragraph style used
18627  in the inset.
18628  Default is false.
18629 \end_layout
18630
18631 \begin_layout Description
18632 \begin_inset Flex Code
18633 status collapsed
18634
18635 \begin_layout Plain Layout
18636 FreeSpacing
18637 \end_layout
18638
18639 \end_inset
18640
18641  [
18642 \begin_inset Flex Code
18643 status collapsed
18644
18645 \begin_layout Plain Layout
18646
18647 \emph on
18648 0
18649 \end_layout
18650
18651 \end_inset
18652
18653 ,
18654 \begin_inset space \thinspace{}
18655 \end_inset
18656
18657
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 1
18663 \end_layout
18664
18665 \end_inset
18666
18667 ] As with paragraph styles, see 
18668 \begin_inset CommandInset ref
18669 LatexCommand ref
18670 reference "subsec:Paragraph-Styles"
18671
18672 \end_inset
18673
18674 .
18675 \end_layout
18676
18677 \begin_layout Description
18678 \begin_inset Flex Code
18679 status collapsed
18680
18681 \begin_layout Plain Layout
18682 HTML*
18683 \end_layout
18684
18685 \end_inset
18686
18687  These tags control the XHTML output.
18688  See 
18689 \begin_inset CommandInset ref
18690 LatexCommand ref
18691 reference "sec:Tags-for-XHTML"
18692
18693 \end_inset
18694
18695 .
18696 \end_layout
18697
18698 \begin_layout Description
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703 InToc
18704 \end_layout
18705
18706 \end_inset
18707
18708  [
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713
18714 \emph on
18715 0
18716 \end_layout
18717
18718 \end_inset
18719
18720 ,
18721 \begin_inset space \thinspace{}
18722 \end_inset
18723
18724
18725 \begin_inset Flex Code
18726 status collapsed
18727
18728 \begin_layout Plain Layout
18729 1
18730 \end_layout
18731
18732 \end_inset
18733
18734 ] Whether to include the contents of this inset in the strings generated
18735  for the `Outline' pane for all table of contents, regardless of the AddToToc
18736  setting.
18737  One would not, for example, want the content of a footnote in a section
18738  header to be included in the TOC displayed in the outline, but one would
18739  normally want the content of a character style displayed.
18740  Default is false: not to include.
18741 \end_layout
18742
18743 \begin_layout Description
18744 \begin_inset Flex Code
18745 status collapsed
18746
18747 \begin_layout Plain Layout
18748 IsTocCaption
18749 \end_layout
18750
18751 \end_inset
18752
18753  [
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758
18759 \emph on
18760 0
18761 \end_layout
18762
18763 \end_inset
18764
18765 ,
18766 \begin_inset space \thinspace{}
18767 \end_inset
18768
18769
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 1
18775 \end_layout
18776
18777 \end_inset
18778
18779 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18780  of its contents in its item in the table of contents.
18781  Otherwise, only the label appears.
18782 \end_layout
18783
18784 \begin_layout Description
18785 \begin_inset Flex Code
18786 status collapsed
18787
18788 \begin_layout Plain Layout
18789 KeepEmpty
18790 \end_layout
18791
18792 \end_inset
18793
18794  [
18795 \emph on
18796
18797 \begin_inset Flex Code
18798 status collapsed
18799
18800 \begin_layout Plain Layout
18801 0
18802 \end_layout
18803
18804 \end_inset
18805
18806
18807 \emph default
18808 ,
18809 \begin_inset space \thinspace{}
18810 \end_inset
18811
18812
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817 1
18818 \end_layout
18819
18820 \end_inset
18821
18822 ] As with paragraph styles, see 
18823 \begin_inset CommandInset ref
18824 LatexCommand ref
18825 reference "subsec:Paragraph-Styles"
18826
18827 \end_inset
18828
18829 .
18830 \end_layout
18831
18832 \begin_layout Description
18833 \begin_inset Flex Code
18834 status collapsed
18835
18836 \begin_layout Plain Layout
18837 LabelFont
18838 \end_layout
18839
18840 \end_inset
18841
18842  The font used for the label.
18843  See 
18844 \begin_inset CommandInset ref
18845 LatexCommand ref
18846 reference "subsec:Font-description"
18847
18848 \end_inset
18849
18850 .
18851  Note that this definition can never appear before 
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 Font
18857 \end_layout
18858
18859 \end_inset
18860
18861 , lest it be ineffective.
18862 \end_layout
18863
18864 \begin_layout Description
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 LabelString
18870 \end_layout
18871
18872 \end_inset
18873
18874  [
18875 \begin_inset Flex Code
18876 status collapsed
18877
18878 \begin_layout Plain Layout
18879 string
18880 \end_layout
18881
18882 \end_inset
18883
18884 =
18885 \begin_inset Quotes erd
18886 \end_inset
18887
18888
18889 \begin_inset Quotes erd
18890 \end_inset
18891
18892 ] What will be displayed on the button or elsewhere as the inset label.
18893  Some inset types (
18894 \begin_inset Flex Code
18895 status collapsed
18896
18897 \begin_layout Plain Layout
18898 \SpecialChar TeX
18899  code
18900 \end_layout
18901
18902 \end_inset
18903
18904  and 
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 Branch
18910 \end_layout
18911
18912 \end_inset
18913
18914 ) modify this label on the fly.
18915 \end_layout
18916
18917 \begin_layout Description
18918 \begin_inset Flex Code
18919 status collapsed
18920
18921 \begin_layout Plain Layout
18922 LangPreamble
18923 \end_layout
18924
18925 \end_inset
18926
18927  Language dependent preamble; see 
18928 \begin_inset CommandInset ref
18929 LatexCommand ref
18930 reference "subsec:I18n"
18931
18932 \end_inset
18933
18934 .
18935 \end_layout
18936
18937 \begin_layout Description
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 LatexName
18943 \end_layout
18944
18945 \end_inset
18946
18947  [
18948 \begin_inset Flex Code
18949 status collapsed
18950
18951 \begin_layout Plain Layout
18952 <name>
18953 \end_layout
18954
18955 \end_inset
18956
18957 ] The name of the corresponding \SpecialChar LaTeX
18958  stuff.
18959  Either the environment or command name.
18960 \end_layout
18961
18962 \begin_layout Description
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 LatexParam
18968 \end_layout
18969
18970 \end_inset
18971
18972  [
18973 \begin_inset Flex Code
18974 status collapsed
18975
18976 \begin_layout Plain Layout
18977 <parameter>
18978 \end_layout
18979
18980 \end_inset
18981
18982 ] The optional parameter for the corresponding 
18983 \begin_inset Flex Code
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 LatexName
18988 \end_layout
18989
18990 \end_inset
18991
18992  stuff, including possible bracket pairs like 
18993 \begin_inset Flex Code
18994 status collapsed
18995
18996 \begin_layout Plain Layout
18997 []
18998 \end_layout
18999
19000 \end_inset
19001
19002 .
19003  This parameter cannot be changed from within \SpecialChar LyX
19004  (use 
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 Argument
19010 \end_layout
19011
19012 \end_inset
19013
19014  for customizable parameters).
19015  It will be output as is after all \SpecialChar LaTeX
19016  
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021 Argument
19022 \end_layout
19023
19024 \end_inset
19025
19026 s.
19027 \end_layout
19028
19029 \begin_layout Description
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 LatexType
19035 \end_layout
19036
19037 \end_inset
19038
19039  [
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 Command, Environment, None
19045 \end_layout
19046
19047 \end_inset
19048
19049 ] How the style should be translated into \SpecialChar LaTeX
19050 .
19051 \begin_inset Foot
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 LatexType
19060 \end_layout
19061
19062 \end_inset
19063
19064  is perhaps a bit misleading, since these rules apply to SGML classes too.
19065  Visit the SGML class files for specific examples.
19066 \end_layout
19067
19068 \end_inset
19069
19070
19071 \end_layout
19072
19073 \begin_deeper
19074 \begin_layout Description
19075 \begin_inset Flex Code
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 None
19080 \end_layout
19081
19082 \end_inset
19083
19084  means nothing special
19085 \end_layout
19086
19087 \begin_layout Description
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 Command
19093 \end_layout
19094
19095 \end_inset
19096
19097  means 
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102
19103 \backslash
19104
19105 \emph on
19106 LatexName
19107 \emph default
19108 {\SpecialChar ldots
19109 }
19110 \end_layout
19111
19112 \end_inset
19113
19114
19115 \end_layout
19116
19117 \begin_layout Description
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 Environment
19123 \end_layout
19124
19125 \end_inset
19126
19127  means 
19128 \begin_inset Flex Code
19129 status collapsed
19130
19131 \begin_layout Plain Layout
19132
19133 \backslash
19134 begin{
19135 \emph on
19136 LatexName
19137 \emph default
19138 }\SpecialChar ldots
19139
19140 \backslash
19141 end{
19142 \emph on
19143 LatexName
19144 \emph default
19145 }
19146 \end_layout
19147
19148 \end_inset
19149
19150
19151 \end_layout
19152
19153 \begin_layout Standard
19154 Putting the last few things together, the \SpecialChar LaTeX
19155  output will be either: 
19156 \end_layout
19157
19158 \begin_layout LyX-Code
19159
19160 \backslash
19161 LatexName[LatexParam]{\SpecialChar ldots
19162 }
19163 \end_layout
19164
19165 \begin_layout Standard
19166 or: 
19167 \end_layout
19168
19169 \begin_layout LyX-Code
19170
19171 \backslash
19172 begin{LatexName}[LatexParam] \SpecialChar ldots
19173  
19174 \backslash
19175 end{LatexName}
19176 \end_layout
19177
19178 \begin_layout Standard
19179 depending upon the \SpecialChar LaTeX
19180  type.
19181 \end_layout
19182
19183 \end_deeper
19184 \begin_layout Description
19185 \begin_inset Flex Code
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 LeftDelim
19190 \end_layout
19191
19192 \end_inset
19193
19194  [
19195 \begin_inset Flex Code
19196 status collapsed
19197
19198 \begin_layout Plain Layout
19199 string
19200 \end_layout
19201
19202 \end_inset
19203
19204 ] A string that is put at the beginning of the layout content.
19205  A line break in the output can be indicated by 
19206 \begin_inset Flex Code
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210 <br/>
19211 \end_layout
19212
19213 \end_inset
19214
19215 .
19216 \end_layout
19217
19218 \begin_layout Description
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 LyxType
19224 \end_layout
19225
19226 \end_inset
19227
19228  Can be 
19229 \begin_inset Flex Code
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233 charstyle
19234 \end_layout
19235
19236 \end_inset
19237
19238
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 custom
19244 \end_layout
19245
19246 \end_inset
19247
19248
19249 \begin_inset Flex Code
19250 status collapsed
19251
19252 \begin_layout Plain Layout
19253 element
19254 \end_layout
19255
19256 \end_inset
19257
19258  or 
19259 \begin_inset Flex Code
19260 status collapsed
19261
19262 \begin_layout Plain Layout
19263 end
19264 \end_layout
19265
19266 \end_inset
19267
19268  (indicating a dummy definition ending definitions of charstyles, etc).
19269  This entry is required in and is only meaningful for Flex insets.
19270  Among other things, it determines on which menu this inset will appear.
19271  Setting 
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 LyxType
19277 \end_layout
19278
19279 \end_inset
19280
19281  to 
19282 \begin_inset Flex Code
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 charstyle
19287 \end_layout
19288
19289 \end_inset
19290
19291  will automatically set 
19292 \begin_inset Flex Code
19293 status collapsed
19294
19295 \begin_layout Plain Layout
19296 MultiPar
19297 \end_layout
19298
19299 \end_inset
19300
19301  to false and 
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 ForcePlain
19307 \end_layout
19308
19309 \end_inset
19310
19311  to true.
19312  
19313 \begin_inset Flex Code
19314 status collapsed
19315
19316 \begin_layout Plain Layout
19317 MultiPar
19318 \end_layout
19319
19320 \end_inset
19321
19322  can be set to true, or 
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327 ForcePlain
19328 \end_layout
19329
19330 \end_inset
19331
19332  to false, for 
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 charstyle
19338 \end_layout
19339
19340 \end_inset
19341
19342  insets by setting it 
19343 \emph on
19344 after
19345 \emph default
19346  you set the 
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 LyxType
19352 \end_layout
19353
19354 \end_inset
19355
19356 .
19357 \end_layout
19358
19359 \begin_layout Description
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364 MultiPar
19365 \end_layout
19366
19367 \end_inset
19368
19369  [
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374
19375 \emph on
19376 0
19377 \end_layout
19378
19379 \end_inset
19380
19381 ,
19382 \begin_inset space \thinspace{}
19383 \end_inset
19384
19385
19386 \begin_inset Flex Code
19387 status collapsed
19388
19389 \begin_layout Plain Layout
19390 1
19391 \end_layout
19392
19393 \end_inset
19394
19395 ] Whether multiple paragraphs are permitted in this inset.
19396  This will also set 
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401 CustomPars
19402 \end_layout
19403
19404 \end_inset
19405
19406  to the same value and 
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 ForcePlain
19412 \end_layout
19413
19414 \end_inset
19415
19416  to the opposite value.
19417  These can be reset to other values, if they are used 
19418 \emph on
19419 after
19420 \emph default
19421  
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 MultiPar
19427 \end_layout
19428
19429 \end_inset
19430
19431 .
19432  Default is true.
19433 \end_layout
19434
19435 \begin_layout Description
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440 NeedProtect
19441 \end_layout
19442
19443 \end_inset
19444
19445  [
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450
19451 \emph on
19452 0
19453 \end_layout
19454
19455 \end_inset
19456
19457 ,
19458 \begin_inset space \thinspace{}
19459 \end_inset
19460
19461
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 1
19467 \end_layout
19468
19469 \end_inset
19470
19471 ] Whether fragile commands in this inset should be 
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476
19477 \backslash
19478 protect
19479 \end_layout
19480
19481 \end_inset
19482
19483 'ed.
19484  (Note: This is 
19485 \emph on
19486 not
19487 \emph default
19488  whether the command should itself be protected.) Default is false.
19489 \end_layout
19490
19491 \begin_layout Description
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 NoInsetLayout
19497 \end_layout
19498
19499 \end_inset
19500
19501  [
19502 \begin_inset Flex Code
19503 status collapsed
19504
19505 \begin_layout Plain Layout
19506 <layout>
19507 \end_layout
19508
19509 \end_inset
19510
19511 ] Deletes an existing 
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516 InsetLayout
19517 \end_layout
19518
19519 \end_inset
19520
19521 .
19522 \end_layout
19523
19524 \begin_layout Description
19525 \begin_inset Flex Code
19526 status collapsed
19527
19528 \begin_layout Plain Layout
19529 ObsoletedBy
19530 \end_layout
19531
19532 \end_inset
19533
19534  [
19535 \begin_inset Flex Code
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539 <layout>
19540 \end_layout
19541
19542 \end_inset
19543
19544 ] Name of an 
19545 \begin_inset Flex Code
19546 status collapsed
19547
19548 \begin_layout Plain Layout
19549 InsetLayout
19550 \end_layout
19551
19552 \end_inset
19553
19554  that has replaced this 
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 InsetLayout
19560 \end_layout
19561
19562 \end_inset
19563
19564 .
19565  This is used to rename an 
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 InsetLayout
19571 \end_layout
19572
19573 \end_inset
19574
19575 , while keeping backward compatibility.
19576 \end_layout
19577
19578 \begin_layout Description
19579 \begin_inset Flex Code
19580 status collapsed
19581
19582 \begin_layout Plain Layout
19583 ParbreakIsNewline
19584 \end_layout
19585
19586 \end_inset
19587
19588  [
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593
19594 \emph on
19595 0
19596 \end_layout
19597
19598 \end_inset
19599
19600 ,
19601 \begin_inset space \thinspace{}
19602 \end_inset
19603
19604
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 1
19610 \end_layout
19611
19612 \end_inset
19613
19614 ] As with paragraph styles, see 
19615 \begin_inset CommandInset ref
19616 LatexCommand ref
19617 reference "subsec:Paragraph-Styles"
19618
19619 \end_inset
19620
19621 .
19622  Default is false.
19623 \end_layout
19624
19625 \begin_layout Description
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 PassThru
19631 \end_layout
19632
19633 \end_inset
19634
19635  [
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640
19641 \emph on
19642 0
19643 \end_layout
19644
19645 \end_inset
19646
19647 ,
19648 \begin_inset space \thinspace{}
19649 \end_inset
19650
19651
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 1
19657 \end_layout
19658
19659 \end_inset
19660
19661 ] As with paragraph styles, see 
19662 \begin_inset CommandInset ref
19663 LatexCommand ref
19664 reference "subsec:Paragraph-Styles"
19665
19666 \end_inset
19667
19668 .
19669  Default is false.
19670 \end_layout
19671
19672 \begin_layout Description
19673 \begin_inset Flex Code
19674 status collapsed
19675
19676 \begin_layout Plain Layout
19677 Preamble
19678 \end_layout
19679
19680 \end_inset
19681
19682  As with paragraph styles, see 
19683 \begin_inset CommandInset ref
19684 LatexCommand ref
19685 reference "subsec:Paragraph-Styles"
19686
19687 \end_inset
19688
19689 .
19690 \end_layout
19691
19692 \begin_layout Description
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 RefPrefix
19698 \end_layout
19699
19700 \end_inset
19701
19702  [
19703 \begin_inset Flex Code
19704 status collapsed
19705
19706 \begin_layout Plain Layout
19707 string
19708 \end_layout
19709
19710 \end_inset
19711
19712 ] The prefix to use when creating labels referring to insets of this type.
19713  This allows the use of formatted references.
19714 \end_layout
19715
19716 \begin_layout Description
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721 Requires
19722 \end_layout
19723
19724 \end_inset
19725
19726  [
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 string
19732 \end_layout
19733
19734 \end_inset
19735
19736 ] As with paragraph styles, see 
19737 \begin_inset CommandInset ref
19738 LatexCommand ref
19739 reference "subsec:Paragraph-Styles"
19740
19741 \end_inset
19742
19743 .
19744 \end_layout
19745
19746 \begin_layout Description
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 ResetArgs
19752 \end_layout
19753
19754 \end_inset
19755
19756  [
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761
19762 \emph on
19763 0
19764 \end_layout
19765
19766 \end_inset
19767
19768 ,
19769 \begin_inset space \thinspace{}
19770 \end_inset
19771
19772
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 1
19778 \end_layout
19779
19780 \end_inset
19781
19782 ] Resets the \SpecialChar LaTeX
19783  arguments of this layout (as defined via the 
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 Argument
19789 \end_layout
19790
19791 \end_inset
19792
19793  tag).
19794  This is useful if you have copied a style via 
19795 \begin_inset Flex Code
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 CopyStyle
19800 \end_layout
19801
19802 \end_inset
19803
19804 , but you do not want to inherit its (required and optional) arguments.
19805 \end_layout
19806
19807 \begin_layout Description
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 ResetsFont
19813 \end_layout
19814
19815 \end_inset
19816
19817  [
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 0
19823 \end_layout
19824
19825 \end_inset
19826
19827 ,
19828 \begin_inset space \thinspace{}
19829 \end_inset
19830
19831
19832 \begin_inset Flex Code
19833 status collapsed
19834
19835 \begin_layout Plain Layout
19836
19837 \emph on
19838 1
19839 \end_layout
19840
19841 \end_inset
19842
19843 ] Whether this inset should use the font of its surrounding environment
19844  or uses its own.
19845  Default is false: use the font of the surrounding environment.
19846 \end_layout
19847
19848 \begin_layout Description
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 RightDelim
19854 \end_layout
19855
19856 \end_inset
19857
19858  [
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 string
19864 \end_layout
19865
19866 \end_inset
19867
19868 ] A string that is put at the end of the layout content.
19869  A line break in the output can be indicated by 
19870 \begin_inset Flex Code
19871 status collapsed
19872
19873 \begin_layout Plain Layout
19874 <br/>
19875 \end_layout
19876
19877 \end_inset
19878
19879 .
19880 \end_layout
19881
19882 \begin_layout Description
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 Spellcheck
19888 \end_layout
19889
19890 \end_inset
19891
19892  [
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897 0
19898 \end_layout
19899
19900 \end_inset
19901
19902 ,
19903 \begin_inset space \thinspace{}
19904 \end_inset
19905
19906
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911
19912 \emph on
19913 1
19914 \end_layout
19915
19916 \end_inset
19917
19918 ] Allow spell-checking the contents of this inset.
19919  Default is true.
19920 \end_layout
19921
19922 \begin_layout Subsection
19923 Counters
19924 \begin_inset CommandInset label
19925 LatexCommand label
19926 name "subsec:Counters"
19927
19928 \end_inset
19929
19930
19931 \end_layout
19932
19933 \begin_layout Standard
19934 It is necessary to define the counters (
19935 \begin_inset Flex Noun
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939 chapter
19940 \end_layout
19941
19942 \end_inset
19943
19944
19945 \begin_inset Flex Noun
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 figure
19950 \end_layout
19951
19952 \end_inset
19953
19954 , \SpecialChar ldots
19955 ) in the text class itself.
19956  The standard counters are defined in the file 
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 stdcounters.inc
19962 \end_layout
19963
19964 \end_inset
19965
19966 , so you may have to do no more than add
19967 \end_layout
19968
19969 \begin_layout LyX-Code
19970 Input stdcounters.inc
19971 \end_layout
19972
19973 \begin_layout Standard
19974 to your layout file to get them to work.
19975  But if you want to define custom counters, then you can do so.
19976  The counter declaration must begin with:
19977 \end_layout
19978
19979 \begin_layout LyX-Code
19980 Counter CounterName
19981 \end_layout
19982
19983 \begin_layout Standard
19984 where of course `
19985 \begin_inset Flex Code
19986 status collapsed
19987
19988 \begin_layout Plain Layout
19989 CounterName
19990 \end_layout
19991
19992 \end_inset
19993
19994 ' is replaced by the name of the counter.
19995  And it must end with 
19996 \begin_inset Quotes eld
19997 \end_inset
19998
19999
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 End
20005 \end_layout
20006
20007 \end_inset
20008
20009
20010 \begin_inset Quotes erd
20011 \end_inset
20012
20013 .
20014  The following parameters can also be used:
20015 \end_layout
20016
20017 \begin_layout Description
20018 \begin_inset Flex Code
20019 status collapsed
20020
20021 \begin_layout Plain Layout
20022 InitialValue
20023 \end_layout
20024
20025 \end_inset
20026
20027  [
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032 int=1
20033 \end_layout
20034
20035 \end_inset
20036
20037 ] Sets the initial value for the counter, to which it will be reset whenever
20038  that happens.
20039  Normally, one will want the default, 1.
20040 \end_layout
20041
20042 \begin_layout Description
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 LabelString
20048 \end_layout
20049
20050 \end_inset
20051
20052  [
20053 \begin_inset Flex Code
20054 status collapsed
20055
20056 \begin_layout Plain Layout
20057 string
20058 \end_layout
20059
20060 \end_inset
20061
20062 =
20063 \begin_inset Quotes erd
20064 \end_inset
20065
20066
20067 \begin_inset Quotes erd
20068 \end_inset
20069
20070 ] When defined, this string defines how the counter is displayed.
20071  Setting this value sets 
20072 \begin_inset Flex Code
20073 status collapsed
20074
20075 \begin_layout Plain Layout
20076 LabelStringAppendix
20077 \end_layout
20078
20079 \end_inset
20080
20081  to the same value.
20082  The following special constructs can be used in the string:
20083 \end_layout
20084
20085 \begin_deeper
20086 \begin_layout Itemize
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091
20092 \backslash
20093 thecounter
20094 \end_layout
20095
20096 \end_inset
20097
20098  will be replaced by the expansion of the 
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 LabelString
20104 \end_layout
20105
20106 \end_inset
20107
20108  (or 
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 LabelStringAppendix
20114 \end_layout
20115
20116 \end_inset
20117
20118 ) of the counter 
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 counter
20124 \end_layout
20125
20126 \end_inset
20127
20128 .
20129  
20130 \end_layout
20131
20132 \begin_layout Itemize
20133 counter values can be expressed using \SpecialChar LaTeX
20134 -like macros
20135 \begin_inset Newline newline
20136 \end_inset
20137
20138
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143
20144 \backslash
20145
20146 \emph on
20147 numbertype
20148 \emph default
20149 {
20150 \emph on
20151 counter
20152 \emph default
20153 }
20154 \end_layout
20155
20156 \end_inset
20157
20158 , where 
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163
20164 \emph on
20165 numbertype
20166 \end_layout
20167
20168 \end_inset
20169
20170  can be:
20171 \begin_inset Foot
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175
20176 \family roman
20177 \series medium
20178 \shape up
20179 \size normal
20180 \emph off
20181 \bar no
20182 \noun off
20183 \color none
20184 Actually, the situation is a bit more complicated: any
20185 \family default
20186 \series default
20187 \shape default
20188 \emph default
20189 \bar default
20190  
20191 \size default
20192 \emph on
20193 \noun default
20194 \color inherit
20195 numbertype
20196 \family roman
20197 \series medium
20198 \shape up
20199 \size normal
20200 \emph off
20201 \bar no
20202 \noun off
20203  other than those described below will produce arabic numerals.
20204  It would not be surprising to see this change in the future.
20205 \end_layout
20206
20207 \end_inset
20208
20209  
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 arabic
20215 \end_layout
20216
20217 \end_inset
20218
20219 : 1, 2, 3,\SpecialChar ldots
20220
20221 \begin_inset Flex Code
20222 status collapsed
20223
20224 \begin_layout Plain Layout
20225 alph
20226 \end_layout
20227
20228 \end_inset
20229
20230  for lower-case letters: a, b, c, \SpecialChar ldots
20231
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 Alph
20237 \end_layout
20238
20239 \end_inset
20240
20241  for upper-case letters: A, B, C, \SpecialChar ldots
20242
20243 \begin_inset Flex Code
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 roman
20248 \end_layout
20249
20250 \end_inset
20251
20252  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20253
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 Roman
20259 \end_layout
20260
20261 \end_inset
20262
20263  for upper-case roman numerals: I, II, III\SpecialChar ldots
20264
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 hebrew
20270 \end_layout
20271
20272 \end_inset
20273
20274  for hebrew numerals.
20275 \end_layout
20276
20277 \end_deeper
20278 \begin_layout Standard
20279 If LabelString is not defined, a default value is constructed as follows:
20280  if the counter has a master counter 
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 master
20286 \end_layout
20287
20288 \end_inset
20289
20290  (defined via 
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 Within
20296 \end_layout
20297
20298 \end_inset
20299
20300 ), the string
20301 \begin_inset Newline newline
20302 \end_inset
20303
20304
20305 \begin_inset Flex Code
20306 status collapsed
20307
20308 \begin_layout Plain Layout
20309
20310 \backslash
20311 themaster.
20312 \backslash
20313 arabic{counter}
20314 \end_layout
20315
20316 \end_inset
20317
20318  is used; otherwise the string 
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323
20324 \backslash
20325 arabic{counter}
20326 \end_layout
20327
20328 \end_inset
20329
20330  is used.
20331 \end_layout
20332
20333 \begin_layout Description
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 LabelStringAppendix
20339 \end_layout
20340
20341 \end_inset
20342
20343  [
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 string
20349 \end_layout
20350
20351 \end_inset
20352
20353 =
20354 \begin_inset Quotes erd
20355 \end_inset
20356
20357
20358 \begin_inset Quotes erd
20359 \end_inset
20360
20361 ] Same as 
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366 LabelString
20367 \end_layout
20368
20369 \end_inset
20370
20371 , but for use in the Appendix.
20372 \end_layout
20373
20374 \begin_layout Description
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 PrettyFormat
20380 \end_layout
20381
20382 \end_inset
20383
20384  [
20385 \begin_inset Flex Code
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389 string
20390 \end_layout
20391
20392 \end_inset
20393
20394 =
20395 \begin_inset Quotes erd
20396 \end_inset
20397
20398
20399 \begin_inset Quotes erd
20400 \end_inset
20401
20402 ] A format for use with formatted references to this counter.
20403  For example, one might want to have references to section numbers appear
20404  as 
20405 \begin_inset Quotes eld
20406 \end_inset
20407
20408 Section 2.4
20409 \begin_inset Quotes erd
20410 \end_inset
20411
20412 .
20413  The string should contain 
20414 \begin_inset Quotes eld
20415 \end_inset
20416
20417 ##
20418 \begin_inset Quotes erd
20419 \end_inset
20420
20421 .
20422  This will be replaced by the counter number itself.
20423  So, for sections, it would be: Section ##.
20424 \end_layout
20425
20426 \begin_layout Description
20427 \begin_inset Flex Code
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431 Within
20432 \end_layout
20433
20434 \end_inset
20435
20436  [
20437 \begin_inset Flex Code
20438 status collapsed
20439
20440 \begin_layout Plain Layout
20441 string
20442 \end_layout
20443
20444 \end_inset
20445
20446 =
20447 \begin_inset Quotes erd
20448 \end_inset
20449
20450
20451 \begin_inset Quotes erd
20452 \end_inset
20453
20454 ] If this is set to the name of another counter, the present counter will
20455  be reset every time the other one is increased.
20456  For example, 
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 subsection
20462 \end_layout
20463
20464 \end_inset
20465
20466  is numbered inside 
20467 \begin_inset Flex Code
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471 section
20472 \end_layout
20473
20474 \end_inset
20475
20476 .
20477 \end_layout
20478
20479 \begin_layout Subsection
20480 Font description
20481 \begin_inset CommandInset label
20482 LatexCommand label
20483 name "subsec:Font-description"
20484
20485 \end_inset
20486
20487
20488 \end_layout
20489
20490 \begin_layout Standard
20491 A font description looks like this:
20492 \end_layout
20493
20494 \begin_layout LyX-Code
20495 Font 
20496 \family roman
20497 \emph on
20498 or
20499 \family default
20500 \emph default
20501  LabelFont
20502 \emph on
20503  
20504 \family roman
20505 or
20506 \family default
20507 \emph default
20508  DefaultFont
20509 \end_layout
20510
20511 \begin_layout LyX-Code
20512  ...
20513 \end_layout
20514
20515 \begin_layout LyX-Code
20516 EndFont
20517 \end_layout
20518
20519 \begin_layout Standard
20520 The following commands are available:
20521 \end_layout
20522
20523 \begin_layout Description
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 Color
20529 \end_layout
20530
20531 \end_inset
20532
20533  [
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538
20539 \emph on
20540 none
20541 \end_layout
20542
20543 \end_inset
20544
20545
20546 \begin_inset Flex Code
20547 status collapsed
20548
20549 \begin_layout Plain Layout
20550 black
20551 \end_layout
20552
20553 \end_inset
20554
20555
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 white
20561 \end_layout
20562
20563 \end_inset
20564
20565
20566 \begin_inset Flex Code
20567 status collapsed
20568
20569 \begin_layout Plain Layout
20570 red
20571 \end_layout
20572
20573 \end_inset
20574
20575
20576 \begin_inset Flex Code
20577 status collapsed
20578
20579 \begin_layout Plain Layout
20580 green
20581 \end_layout
20582
20583 \end_inset
20584
20585
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590 blue
20591 \end_layout
20592
20593 \end_inset
20594
20595
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600 cyan
20601 \end_layout
20602
20603 \end_inset
20604
20605
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 magenta
20611 \end_layout
20612
20613 \end_inset
20614
20615
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620 yellow
20621 \end_layout
20622
20623 \end_inset
20624
20625
20626 \begin_inset Flex Code
20627 status collapsed
20628
20629 \begin_layout Plain Layout
20630 brown
20631 \end_layout
20632
20633 \end_inset
20634
20635
20636 \begin_inset Flex Code
20637 status collapsed
20638
20639 \begin_layout Plain Layout
20640 darkgray
20641 \end_layout
20642
20643 \end_inset
20644
20645
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 gray
20651 \end_layout
20652
20653 \end_inset
20654
20655
20656 \begin_inset Flex Code
20657 status collapsed
20658
20659 \begin_layout Plain Layout
20660 lightgray
20661 \end_layout
20662
20663 \end_inset
20664
20665
20666 \begin_inset Flex Code
20667 status collapsed
20668
20669 \begin_layout Plain Layout
20670 lime
20671 \end_layout
20672
20673 \end_inset
20674
20675
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 orange
20681 \end_layout
20682
20683 \end_inset
20684
20685
20686 \begin_inset Flex Code
20687 status collapsed
20688
20689 \begin_layout Plain Layout
20690 olive
20691 \end_layout
20692
20693 \end_inset
20694
20695
20696 \begin_inset Flex Code
20697 status collapsed
20698
20699 \begin_layout Plain Layout
20700 pink
20701 \end_layout
20702
20703 \end_inset
20704
20705
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 purple
20711 \end_layout
20712
20713 \end_inset
20714
20715
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 teal
20721 \end_layout
20722
20723 \end_inset
20724
20725
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 violet
20731 \end_layout
20732
20733 \end_inset
20734
20735 ]
20736 \end_layout
20737
20738 \begin_layout Description
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 Family
20744 \end_layout
20745
20746 \end_inset
20747
20748  [
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753
20754 \emph on
20755 Roman
20756 \end_layout
20757
20758 \end_inset
20759
20760
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 Sans
20766 \end_layout
20767
20768 \end_inset
20769
20770
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 Typewriter
20776 \end_layout
20777
20778 \end_inset
20779
20780 ]
20781 \end_layout
20782
20783 \begin_layout Description
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788 Misc
20789 \end_layout
20790
20791 \end_inset
20792
20793  [
20794 \begin_inset Flex Code
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 string
20799 \end_layout
20800
20801 \end_inset
20802
20803 ] Valid arguments are: 
20804 \begin_inset Flex Code
20805 status collapsed
20806
20807 \begin_layout Plain Layout
20808 emph
20809 \end_layout
20810
20811 \end_inset
20812
20813
20814 \begin_inset Flex Code
20815 status collapsed
20816
20817 \begin_layout Plain Layout
20818 noun
20819 \end_layout
20820
20821 \end_inset
20822
20823
20824 \begin_inset Flex Code
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828 strikeout
20829 \end_layout
20830
20831 \end_inset
20832
20833
20834 \begin_inset Flex Code
20835 status collapsed
20836
20837 \begin_layout Plain Layout
20838 underbar
20839 \end_layout
20840
20841 \end_inset
20842
20843
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848 uuline
20849 \end_layout
20850
20851 \end_inset
20852
20853
20854 \begin_inset Flex Code
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 uwave
20859 \end_layout
20860
20861 \end_inset
20862
20863
20864 \begin_inset Flex Code
20865 status collapsed
20866
20867 \begin_layout Plain Layout
20868 no_emph
20869 \end_layout
20870
20871 \end_inset
20872
20873
20874 \begin_inset Flex Code
20875 status collapsed
20876
20877 \begin_layout Plain Layout
20878 no_noun
20879 \end_layout
20880
20881 \end_inset
20882
20883
20884 \begin_inset Flex Code
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888 no_strikeout
20889 \end_layout
20890
20891 \end_inset
20892
20893
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 no_bar
20899 \end_layout
20900
20901 \end_inset
20902
20903
20904 \begin_inset Flex Code
20905 status collapsed
20906
20907 \begin_layout Plain Layout
20908 no_uuline
20909 \end_layout
20910
20911 \end_inset
20912
20913  and 
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 no_uwave
20919 \end_layout
20920
20921 \end_inset
20922
20923 .
20924  Each of these turns on or off the corresponding attribute.
20925  For example, 
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 emph
20931 \end_layout
20932
20933 \end_inset
20934
20935  turns on emphasis, and 
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 no_emph
20941 \end_layout
20942
20943 \end_inset
20944
20945  turns it off.
20946  
20947 \begin_inset Newline newline
20948 \end_inset
20949
20950 If the latter seems puzzling, remember that the font settings for the present
20951  context are generally inherited from the surrounding context.
20952  So 
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 no_emph
20958 \end_layout
20959
20960 \end_inset
20961
20962  would turn off the emphasis that was anyway in effect, say, in a theorem
20963  environment.
20964 \end_layout
20965
20966 \begin_layout Description
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971 Series
20972 \end_layout
20973
20974 \end_inset
20975
20976  [
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981
20982 \emph on
20983 Medium
20984 \end_layout
20985
20986 \end_inset
20987
20988
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 Bold
20994 \end_layout
20995
20996 \end_inset
20997
20998
20999 \end_layout
21000
21001 \begin_layout Description
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 Shape
21007 \end_layout
21008
21009 \end_inset
21010
21011  [
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016
21017 \emph on
21018 Up
21019 \end_layout
21020
21021 \end_inset
21022
21023
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 Italic
21029 \end_layout
21030
21031 \end_inset
21032
21033
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 SmallCaps
21039 \end_layout
21040
21041 \end_inset
21042
21043
21044 \begin_inset Flex Code
21045 status collapsed
21046
21047 \begin_layout Plain Layout
21048 Slanted
21049 \end_layout
21050
21051 \end_inset
21052
21053
21054 \end_layout
21055
21056 \begin_layout Description
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 Size
21062 \end_layout
21063
21064 \end_inset
21065
21066  [
21067 \begin_inset Flex Code
21068 status collapsed
21069
21070 \begin_layout Plain Layout
21071 tiny
21072 \end_layout
21073
21074 \end_inset
21075
21076
21077 \begin_inset Flex Code
21078 status collapsed
21079
21080 \begin_layout Plain Layout
21081 small
21082 \end_layout
21083
21084 \end_inset
21085
21086
21087 \begin_inset Flex Code
21088 status collapsed
21089
21090 \begin_layout Plain Layout
21091
21092 \emph on
21093 normal
21094 \end_layout
21095
21096 \end_inset
21097
21098
21099 \begin_inset Flex Code
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103 large
21104 \end_layout
21105
21106 \end_inset
21107
21108
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 larger
21114 \end_layout
21115
21116 \end_inset
21117
21118
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 largest
21124 \end_layout
21125
21126 \end_inset
21127
21128
21129 \begin_inset Flex Code
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 huge
21134 \end_layout
21135
21136 \end_inset
21137
21138
21139 \begin_inset Flex Code
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 giant
21144 \end_layout
21145
21146 \end_inset
21147
21148 ]
21149 \end_layout
21150
21151 \begin_layout Subsection
21152 \begin_inset CommandInset label
21153 LatexCommand label
21154 name "subsec:Citation-engine-description"
21155
21156 \end_inset
21157
21158 Cite engine description
21159 \end_layout
21160
21161 \begin_layout Standard
21162 The 
21163 \begin_inset Flex Code
21164 status collapsed
21165
21166 \begin_layout Plain Layout
21167 CiteEngine
21168 \end_layout
21169
21170 \end_inset
21171
21172  blocks, as used mainly in cite engine files (see 
21173 \begin_inset CommandInset ref
21174 LatexCommand ref
21175 reference "subsec:Cite-Engine-Files"
21176 plural "false"
21177 caps "false"
21178 noprefix "false"
21179
21180 \end_inset
21181
21182 ), define the citation commands provided by a specific 
21183 \begin_inset Quotes eld
21184 \end_inset
21185
21186 cite engine
21187 \begin_inset Quotes erd
21188 \end_inset
21189
21190 .
21191  A cite engine, in \SpecialChar LyX
21192  terms, is way specific way to format citations, using
21193  numbers, author names and/or years.
21194  Currently, \SpecialChar LyX
21195  supports three such engine types, namely:
21196 \end_layout
21197
21198 \begin_layout Enumerate
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 default
21204 \end_layout
21205
21206 \end_inset
21207
21208 : the default Bib\SpecialChar TeX
21209  way to format citations, a simple numeric style (e.
21210 \begin_inset space \thinspace{}
21211 \end_inset
21212
21213 g., 
21214 \begin_inset Quotes eld
21215 \end_inset
21216
21217 [1]
21218 \begin_inset Quotes erd
21219 \end_inset
21220
21221 )
21222 \end_layout
21223
21224 \begin_layout Enumerate
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 authoryear
21230 \end_layout
21231
21232 \end_inset
21233
21234 : Harvard-styled citations using author names and publication year (e.
21235 \begin_inset space \thinspace{}
21236 \end_inset
21237
21238 g., 
21239 \begin_inset Quotes eld
21240 \end_inset
21241
21242 Smith and Miller (2017b)
21243 \begin_inset Quotes erd
21244 \end_inset
21245
21246 )
21247 \end_layout
21248
21249 \begin_layout Enumerate
21250 \begin_inset Flex Code
21251 status collapsed
21252
21253 \begin_layout Plain Layout
21254 numerical
21255 \end_layout
21256
21257 \end_inset
21258
21259 : extended numerical citations that also allow for author or title next
21260  to the number (e.
21261 \begin_inset space \thinspace{}
21262 \end_inset
21263
21264 g., 
21265 \begin_inset Quotes eld
21266 \end_inset
21267
21268 Smith and Miller [1]
21269 \begin_inset Quotes erd
21270 \end_inset
21271
21272 )
21273 \end_layout
21274
21275 \begin_layout Standard
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280 CiteEngine
21281 \end_layout
21282
21283 \end_inset
21284
21285  blocks look like this:
21286 \end_layout
21287
21288 \begin_layout LyX-Code
21289 CiteEngine default
21290 \end_layout
21291
21292 \begin_layout LyX-Code
21293  cite
21294 \end_layout
21295
21296 \begin_layout LyX-Code
21297  Citep*[][]
21298 \end_layout
21299
21300 \begin_layout LyX-Code
21301  citeyearpar[][]=parencite*
21302 \end_layout
21303
21304 \begin_layout LyX-Code
21305  ...
21306 \end_layout
21307
21308 \begin_layout LyX-Code
21309 End
21310 \end_layout
21311
21312 \begin_layout Standard
21313 The tag following 
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 CiteEngine
21319 \end_layout
21320
21321 \end_inset
21322
21323  denotes the engine.
21324  The individual lines respectively define a cite command or cite command
21325  paradigm supported by this engine.
21326  The line can be as simple as a cite command that is used both to name the
21327  respective \SpecialChar LyX
21328  command and the \SpecialChar LaTeX
21329  output or more complex in order to differentiate
21330  things.
21331  The full syntax is:
21332 \end_layout
21333
21334 \begin_layout LyX-Code
21335 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21336 \end_layout
21337
21338 \begin_layout Itemize
21339 \begin_inset Flex Code
21340 status collapsed
21341
21342 \begin_layout Plain Layout
21343 LyXName
21344 \end_layout
21345
21346 \end_inset
21347
21348 : The name as used in the 
21349 \begin_inset Flex Code
21350 status collapsed
21351
21352 \begin_layout Plain Layout
21353 *.lyx
21354 \end_layout
21355
21356 \end_inset
21357
21358  file.
21359 \end_layout
21360
21361 \begin_deeper
21362 \begin_layout Standard
21363 For portability reasons, we try to use the same name for same-formatted
21364  commands in different cite packages (thus many names stem from natbib,
21365  and thus we need to differentiate a 
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 latexcmd
21371 \end_layout
21372
21373 \end_inset
21374
21375  sometimes, if the \SpecialChar LaTeX
21376  command names differ).
21377 \end_layout
21378
21379 \end_deeper
21380 \begin_layout Itemize
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 alias
21386 \end_layout
21387
21388 \end_inset
21389
21390 : a (comma-separated) list of commands that fall back to the given 
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395 LyXName
21396 \end_layout
21397
21398 \end_inset
21399
21400  in the current engine.
21401  This eases the switch of citation packages and engines.
21402  The 
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 alias
21408 \end_layout
21409
21410 \end_inset
21411
21412  can be compared to 
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 ObsoletedBy
21418 \end_layout
21419
21420 \end_inset
21421
21422  in layout definitions.
21423 \end_layout
21424
21425 \begin_layout Itemize
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 latexcmd
21431 \end_layout
21432
21433 \end_inset
21434
21435 : The actual \SpecialChar LaTeX
21436  command that is output.
21437  
21438 \end_layout
21439
21440 \begin_layout Standard
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445 Alias
21446 \end_layout
21447
21448 \end_inset
21449
21450  and 
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 latexcmd
21456 \end_layout
21457
21458 \end_inset
21459
21460  are optional.
21461  If no 
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466 latexcmd
21467 \end_layout
21468
21469 \end_inset
21470
21471  is given, the 
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 LyXName
21477 \end_layout
21478
21479 \end_inset
21480
21481  will be output to \SpecialChar LaTeX
21482 .
21483 \end_layout
21484
21485 \begin_layout Standard
21486 Note further:
21487 \end_layout
21488
21489 \begin_layout Itemize
21490 Capitalization indicates that the command also has a capitalized form (
21491 \begin_inset Flex Code
21492 status collapsed
21493
21494 \begin_layout Plain Layout
21495
21496 \backslash
21497 Latexcmd
21498 \end_layout
21499
21500 \end_inset
21501
21502  vs.
21503  
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508
21509 \backslash
21510 latexcmd
21511 \end_layout
21512
21513 \end_inset
21514
21515 ).
21516  These usually enforce up-casing of name prefixes (
21517 \emph on
21518 von Goethe
21519 \emph default
21520  
21521 \begin_inset Formula $\Rightarrow$
21522 \end_inset
21523
21524  
21525 \emph on
21526 Von Goethe
21527 \emph default
21528 ).
21529 \end_layout
21530
21531 \begin_layout Itemize
21532 Brackets 
21533 \begin_inset Flex Code
21534 status collapsed
21535
21536 \begin_layout Plain Layout
21537 []
21538 \end_layout
21539
21540 \end_inset
21541
21542  indicate the number of optional arguments (there can be 0–2).
21543 \end_layout
21544
21545 \begin_layout Itemize
21546 A star 
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 *
21552 \end_layout
21553
21554 \end_inset
21555
21556  indicates there is a starred version of the command (
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561
21562 \backslash
21563 latexcmd*
21564 \end_layout
21565
21566 \end_inset
21567
21568  vs.
21569  
21570 \begin_inset Flex Code
21571 status collapsed
21572
21573 \begin_layout Plain Layout
21574
21575 \backslash
21576 latexcmd
21577 \end_layout
21578
21579 \end_inset
21580
21581 ).
21582  
21583 \end_layout
21584
21585 \begin_deeper
21586 \begin_layout Standard
21587 By default, the starred version means: Output all authors even if it should
21588  be shortened with 
21589 \begin_inset Quotes eld
21590 \end_inset
21591
21592 et al.
21593 \begin_inset Quotes erd
21594 \end_inset
21595
21596  due to the 
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601 MaxCiteNames
21602 \end_layout
21603
21604 \end_inset
21605
21606  threshold.
21607 \end_layout
21608
21609 \begin_layout Standard
21610 If the star has a different meaning for a given command, it can be specified
21611  in angle brackets: 
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 <!_stardesc!_stardesctooltip>
21617 \end_layout
21618
21619 \end_inset
21620
21621 .
21622  Maximal two translatable macro keywords, marked by the prefix 
21623 \begin_inset Flex Code
21624 status collapsed
21625
21626 \begin_layout Plain Layout
21627 !_
21628 \end_layout
21629
21630 \end_inset
21631
21632 , can be given.
21633  The first points to the string that replaces the 
21634 \begin_inset Quotes eld
21635 \end_inset
21636
21637 Full aut&hor list
21638 \begin_inset Quotes erd
21639 \end_inset
21640
21641  checkbox label in the citation dialog, the second one to an optional tool
21642  tip for this checkbox.
21643  
21644 \end_layout
21645
21646 \begin_layout Standard
21647 Note that these two macros have to be defined in a 
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 CiteFormat
21653 \end_layout
21654
21655 \end_inset
21656
21657  (see next section), dropping the 
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662 !
21663 \end_layout
21664
21665 \end_inset
21666
21667  from the prefix, like this: 
21668 \end_layout
21669
21670 \begin_layout LyX-Code
21671 _stardesc Sta&rred command label
21672 \end_layout
21673
21674 \begin_layout LyX-Code
21675 _stardesctooltip Tooltip for the starred command checkbox.
21676 \end_layout
21677
21678 \end_deeper
21679 \begin_layout Itemize
21680 A dollar sign 
21681 \begin_inset Flex Code
21682 status collapsed
21683
21684 \begin_layout Plain Layout
21685 $
21686 \end_layout
21687
21688 \end_inset
21689
21690  indicates that this command features 
21691 \begin_inset Quotes eld
21692 \end_inset
21693
21694 qualified citation lists
21695 \begin_inset Quotes erd
21696 \end_inset
21697
21698 .
21699  This is a 
21700 \family sans
21701 Biblatex
21702 \family default
21703 -specific feature for multi-reference citations where an individual pre-
21704  and postnote can be given to each reference in the list.
21705  Please refer to the 
21706 \family sans
21707 Biblatex
21708 \family default
21709  manual for details.
21710 \end_layout
21711
21712 \begin_layout Subsection
21713 \begin_inset CommandInset label
21714 LatexCommand label
21715 name "subsec:Citation-format-description"
21716
21717 \end_inset
21718
21719 Cite format description
21720 \end_layout
21721
21722 \begin_layout Standard
21723 The 
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 CiteFormat
21729 \end_layout
21730
21731 \end_inset
21732
21733  blocks are used to describe how bibliographic information should be displayed,
21734  both within \SpecialChar LyX
21735  itself (in the citation dialog and in tooltips, for example)
21736  and in XHTML output.
21737  Such a block might look like this:
21738 \end_layout
21739
21740 \begin_layout LyX-Code
21741 CiteFormat
21742 \end_layout
21743
21744 \begin_layout LyX-Code
21745  article ...
21746 \end_layout
21747
21748 \begin_layout LyX-Code
21749  book ...
21750 \end_layout
21751
21752 \begin_layout LyX-Code
21753 End
21754 \end_layout
21755
21756 \begin_layout Standard
21757 or
21758 \end_layout
21759
21760 \begin_layout LyX-Code
21761 CiteFormat
21762 \end_layout
21763
21764 \begin_layout LyX-Code
21765  cite ...
21766 \end_layout
21767
21768 \begin_layout LyX-Code
21769  citet*[][] ...
21770 \end_layout
21771
21772 \begin_layout LyX-Code
21773 End
21774 \end_layout
21775
21776 \begin_layout Standard
21777 In the first case, the individual lines define how the bibliographic information
21778  associated with an article or book, respectively, is to be displayed, and
21779  such a definition can be given for any 
21780 \begin_inset Quotes els
21781 \end_inset
21782
21783 entry type
21784 \begin_inset Quotes ers
21785 \end_inset
21786
21787  that might be present in a Bib\SpecialChar TeX
21788  file.
21789  \SpecialChar LyX
21790  defines a default format in the source code that will be used if no specific
21791  definition has been given.
21792  \SpecialChar LyX
21793  predefines several formats in the file 
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 stdciteformats.inc
21799 \end_layout
21800
21801 \end_inset
21802
21803 , which is included in most of \SpecialChar LyX
21804 's document classes.
21805 \end_layout
21806
21807 \begin_layout Standard
21808 In the second case, the lines define how a specific citation command (in
21809  the example 
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814
21815 \backslash
21816 cite
21817 \end_layout
21818
21819 \end_inset
21820
21821
21822 \begin_inset Flex Code
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826
21827 \backslash
21828 citet
21829 \end_layout
21830
21831 \end_inset
21832
21833 ) is to be displayed on the citation inset label, in the citation dialog,
21834  menu or XHTML output.
21835  \SpecialChar LyX
21836  defines such formats for the citation style variants it supports via 
21837 \family sans
21838 Document\SpecialChar menuseparator
21839 Setting\SpecialChar menuseparator
21840 Bibliography\SpecialChar ldots
21841
21842 \family default
21843  in specific 
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848 *.citeengine
21849 \end_layout
21850
21851 \end_inset
21852
21853  files that are shipped with \SpecialChar LyX
21854  (see 
21855 \begin_inset CommandInset ref
21856 LatexCommand ref
21857 reference "subsec:Cite-Engine-Files"
21858 plural "false"
21859 caps "false"
21860 noprefix "false"
21861
21862 \end_inset
21863
21864 ).
21865 \end_layout
21866
21867 \begin_layout Standard
21868 The definitions use a simple language that allows Bib\SpecialChar TeX
21869  keys to be replaced
21870  with their values.
21871  Keys should be enclosed in 
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 %
21877 \end_layout
21878
21879 \end_inset
21880
21881  signs, e.g.: 
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886 %author%
21887 \end_layout
21888
21889 \end_inset
21890
21891 .
21892  So a simple definition might look like this:
21893 \end_layout
21894
21895 \begin_layout LyX-Code
21896 misc %author%, 
21897 \begin_inset Quotes eld
21898 \end_inset
21899
21900 %title%
21901 \begin_inset Quotes erd
21902 \end_inset
21903
21904 .
21905 \end_layout
21906
21907 \begin_layout Standard
21908 This would print the author, followed by a comma, followed by the title,
21909  in quotes, followed by a period.
21910 \end_layout
21911
21912 \begin_layout Standard
21913 Of course, sometimes you may want to print a key only if it exists.
21914  This can be done by using a conditional construction, such as: 
21915 \begin_inset Flex Code
21916 status collapsed
21917
21918 \begin_layout Plain Layout
21919 {%volume%[[vol.
21920 \begin_inset space ~
21921 \end_inset
21922
21923 %volume%]]}
21924 \end_layout
21925
21926 \end_inset
21927
21928 .
21929  This says: If the 
21930 \begin_inset Flex Code
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934 volume
21935 \end_layout
21936
21937 \end_inset
21938
21939  key exists, then print 
21940 \begin_inset Quotes eld
21941 \end_inset
21942
21943 vol.
21944 \begin_inset space ~
21945 \end_inset
21946
21947
21948 \begin_inset Quotes erd
21949 \end_inset
21950
21951  followed by the volume key.
21952  It is also possible to have an else clause in the conditional, such as:
21953 \begin_inset Newline newline
21954 \end_inset
21955
21956
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961 {%author%[[%author%]][[%editor%, ed.]]}
21962 \end_layout
21963
21964 \end_inset
21965
21966 .
21967 \begin_inset Newline newline
21968 \end_inset
21969
21970 Here, the 
21971 \begin_inset Flex Code
21972 status collapsed
21973
21974 \begin_layout Plain Layout
21975 author
21976 \end_layout
21977
21978 \end_inset
21979
21980  key is printed if it exists; otherwise, the editor key is printed, followed
21981  by 
21982 \begin_inset Quotes eld
21983 \end_inset
21984
21985 ,
21986 \begin_inset space ~
21987 \end_inset
21988
21989 ed.
21990 \begin_inset Quotes erd
21991 \end_inset
21992
21993  Note that the key is again enclosed in 
21994 \begin_inset Flex Code
21995 status collapsed
21996
21997 \begin_layout Plain Layout
21998 %
21999 \end_layout
22000
22001 \end_inset
22002
22003  signs; the entire conditional is enclosed in braces; and the if and else
22004  clauses are enclosed in double brackets, 
22005 \begin_inset Quotes eld
22006 \end_inset
22007
22008
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 [[
22014 \end_layout
22015
22016 \end_inset
22017
22018
22019 \begin_inset Quotes eld
22020 \end_inset
22021
22022  and 
22023 \begin_inset Quotes eld
22024 \end_inset
22025
22026
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031 ]]
22032 \end_layout
22033
22034 \end_inset
22035
22036
22037 \begin_inset Quotes erd
22038 \end_inset
22039
22040 .
22041  There must be no space between any of these.
22042 \end_layout
22043
22044 \begin_layout Standard
22045 Next to the entry keys, there are some special keys that can be used for
22046  these conditionals:
22047 \end_layout
22048
22049 \begin_layout Itemize
22050 \begin_inset Flex Code
22051 status collapsed
22052
22053 \begin_layout Plain Layout
22054 {%dialog%[[true]][[false]]}
22055 \end_layout
22056
22057 \end_inset
22058
22059 : process the 
22060 \begin_inset Quotes eld
22061 \end_inset
22062
22063 true
22064 \begin_inset Quotes erd
22065 \end_inset
22066
22067  part for dialogs and menus, the 
22068 \begin_inset Quotes eld
22069 \end_inset
22070
22071 false
22072 \begin_inset Quotes erd
22073 \end_inset
22074
22075  part for other contexts (workarea, export)
22076 \end_layout
22077
22078 \begin_layout Itemize
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 {%export%[[true]][[false]]}
22084 \end_layout
22085
22086 \end_inset
22087
22088 : process the 
22089 \begin_inset Quotes eld
22090 \end_inset
22091
22092 true
22093 \begin_inset Quotes erd
22094 \end_inset
22095
22096  part for export and menus, the 
22097 \begin_inset Quotes eld
22098 \end_inset
22099
22100 false
22101 \begin_inset Quotes erd
22102 \end_inset
22103
22104  part for other contexts (workarea, dialog)
22105 \end_layout
22106
22107 \begin_layout Itemize
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 {%next%[[true]]}
22113 \end_layout
22114
22115 \end_inset
22116
22117 : process the 
22118 \begin_inset Quotes eld
22119 \end_inset
22120
22121 true
22122 \begin_inset Quotes erd
22123 \end_inset
22124
22125  part if another item follows (e.
22126 \begin_inset space \thinspace{}
22127 \end_inset
22128
22129 g., in a citation with multiple keys)
22130 \end_layout
22131
22132 \begin_layout Itemize
22133 \begin_inset Flex Code
22134 status collapsed
22135
22136 \begin_layout Plain Layout
22137 {%second%[[true]][[false]]}
22138 \end_layout
22139
22140 \end_inset
22141
22142 : process the 
22143 \begin_inset Quotes eld
22144 \end_inset
22145
22146 true
22147 \begin_inset Quotes erd
22148 \end_inset
22149
22150  if this is the second of multiple items, else the 
22151 \begin_inset Quotes eld
22152 \end_inset
22153
22154 false
22155 \begin_inset Quotes erd
22156 \end_inset
22157
22158  part
22159 \end_layout
22160
22161 \begin_layout Itemize
22162 \begin_inset Flex Code
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166 {%ifstar%[[true]][[false]]}
22167 \end_layout
22168
22169 \end_inset
22170
22171 : process the 
22172 \begin_inset Quotes eld
22173 \end_inset
22174
22175 true
22176 \begin_inset Quotes erd
22177 \end_inset
22178
22179  part for starred citation commands (such as 
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184
22185 \backslash
22186 cite*
22187 \end_layout
22188
22189 \end_inset
22190
22191 ), the false part for unstarred
22192 \end_layout
22193
22194 \begin_layout Itemize
22195 \begin_inset Flex Code
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 {%ifentrytype:<type>%[[true]][[false]]}
22200 \end_layout
22201
22202 \end_inset
22203
22204 : process the 
22205 \begin_inset Quotes eld
22206 \end_inset
22207
22208 true
22209 \begin_inset Quotes erd
22210 \end_inset
22211
22212  if the current entry type matches 
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 <type>
22218 \end_layout
22219
22220 \end_inset
22221
22222 , else the false part (e.g., in a citation definition: 
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22228 \end_layout
22229
22230 \end_inset
22231
22232 )
22233 \end_layout
22234
22235 \begin_layout Itemize
22236 \begin_inset Flex Code
22237 status collapsed
22238
22239 \begin_layout Plain Layout
22240 {%ifmultiple:<authortype>%[[true]][[false]]}
22241 \end_layout
22242
22243 \end_inset
22244
22245 : process the 
22246 \begin_inset Quotes eld
22247 \end_inset
22248
22249 true
22250 \begin_inset Quotes erd
22251 \end_inset
22252
22253  if the current author type (author, editor etc.) has multiple authors, else
22254  the false part (e.g., in a bibliography definition: 
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259 {%ifmultiple:editor%[[eds.]][[ed.]]}
22260 \end_layout
22261
22262 \end_inset
22263
22264 )
22265 \end_layout
22266
22267 \begin_layout Itemize
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272 {%ifqualified%[[true]][[false]]}
22273 \end_layout
22274
22275 \end_inset
22276
22277 : process the 
22278 \begin_inset Quotes eld
22279 \end_inset
22280
22281 true
22282 \begin_inset Quotes erd
22283 \end_inset
22284
22285  part if the current citation is a qualified citation list (a specific 
22286 \family sans
22287 Biblatex
22288 \family default
22289  format for multi-reference citations), the false part if this is not the
22290  case.
22291 \end_layout
22292
22293 \begin_layout Standard
22294 We said that 
22295 \begin_inset Flex Code
22296 status collapsed
22297
22298 \begin_layout Plain Layout
22299 %author%
22300 \end_layout
22301
22302 \end_inset
22303
22304  prints the author key as it is recorded in the bibliography file.
22305  This might not be what you want, since it will result in a string such
22306  as 
22307 \begin_inset Quotes eld
22308 \end_inset
22309
22310 Miller, Peter and Smith, Mary and White, Jane
22311 \begin_inset Quotes erd
22312 \end_inset
22313
22314  (since 
22315 \begin_inset Quotes eld
22316 \end_inset
22317
22318 and
22319 \begin_inset Quotes erd
22320 \end_inset
22321
22322  is used by Bib\SpecialChar TeX
22323  to delimit authors).
22324  \SpecialChar LyX
22325  therefore provides some methods to get properly formatted name lists (which
22326  will also get translated).
22327  The following keys are provided:
22328 \end_layout
22329
22330 \begin_layout Enumerate
22331 For name lists with pre- and surname, suitable for the main authors/editors
22332  of a bibliography item.
22333  The 
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 <nametype>
22339 \end_layout
22340
22341 \end_inset
22342
22343  part denotes the kind of list that is requested (e.g.
22344  
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 <nametype:author>
22350 \end_layout
22351
22352 \end_inset
22353
22354 ):
22355 \end_layout
22356
22357 \begin_deeper
22358 \begin_layout Itemize
22359 \begin_inset Flex Code
22360 status collapsed
22361
22362 \begin_layout Plain Layout
22363 %abbrvnames:<nametype>%
22364 \end_layout
22365
22366 \end_inset
22367
22368 : Provides a name list which is abbreviated (with 
22369 \begin_inset Quotes eld
22370 \end_inset
22371
22372 et al.
22373 \begin_inset Quotes erd
22374 \end_inset
22375
22376 ) when 
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 MaxCiteNames
22382 \end_layout
22383
22384 \end_inset
22385
22386  is reached.
22387 \end_layout
22388
22389 \begin_layout Itemize
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 %fullnames:<nametype>%
22395 \end_layout
22396
22397 \end_inset
22398
22399 : Provides a full name list (never abbreviated with 
22400 \begin_inset Quotes eld
22401 \end_inset
22402
22403 et al.
22404 \begin_inset Quotes erd
22405 \end_inset
22406
22407 ).
22408 \end_layout
22409
22410 \begin_layout Itemize
22411 \begin_inset Flex Code
22412 status collapsed
22413
22414 \begin_layout Plain Layout
22415 %forceabbrvnames:<nametype>%
22416 \end_layout
22417
22418 \end_inset
22419
22420 : Provides a name list which is always abbreviated (with 
22421 \begin_inset Quotes eld
22422 \end_inset
22423
22424 et al.
22425 \begin_inset Quotes erd
22426 \end_inset
22427
22428 ) irrespective of 
22429 \begin_inset Flex Code
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 MaxCiteNames
22434 \end_layout
22435
22436 \end_inset
22437
22438 .
22439 \end_layout
22440
22441 \end_deeper
22442 \begin_layout Enumerate
22443 Alternative name lists with pre- and surname, if the order of pre- and surname
22444  inside the bibliography item differs (as in: 
22445 \begin_inset Quotes eld
22446 \end_inset
22447
22448 Miller, John: Some text, in: Mary Smith, ed.: A volume
22449 \begin_inset Quotes erd
22450 \end_inset
22451
22452 ):
22453 \end_layout
22454
22455 \begin_deeper
22456 \begin_layout Itemize
22457 \begin_inset Flex Code
22458 status collapsed
22459
22460 \begin_layout Plain Layout
22461 %abbrvbynames:<nametype>%
22462 \end_layout
22463
22464 \end_inset
22465
22466 : Provides a name list which is abbreviated (with 
22467 \begin_inset Quotes eld
22468 \end_inset
22469
22470 et al.
22471 \begin_inset Quotes erd
22472 \end_inset
22473
22474 ) when 
22475 \begin_inset Flex Code
22476 status collapsed
22477
22478 \begin_layout Plain Layout
22479 MaxCiteNames
22480 \end_layout
22481
22482 \end_inset
22483
22484  is reached.
22485 \end_layout
22486
22487 \begin_layout Itemize
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 %fullbynames:<nametype>%
22493 \end_layout
22494
22495 \end_inset
22496
22497 : Provides a full name list (never abbreviated with 
22498 \begin_inset Quotes eld
22499 \end_inset
22500
22501 et al.
22502 \begin_inset Quotes erd
22503 \end_inset
22504
22505 ).
22506 \end_layout
22507
22508 \begin_layout Itemize
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 %forceabbrvbynames:<nametype>%
22514 \end_layout
22515
22516 \end_inset
22517
22518 : Provides a name list which is always abbreviated (with 
22519 \begin_inset Quotes eld
22520 \end_inset
22521
22522 et al.
22523 \begin_inset Quotes erd
22524 \end_inset
22525
22526 ) irrespective of 
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 MaxCiteNames
22532 \end_layout
22533
22534 \end_inset
22535
22536 .
22537 \end_layout
22538
22539 \end_deeper
22540 \begin_layout Enumerate
22541 And finally name lists which consist of family names only, as used in author-yea
22542 r citation labels.
22543  These do not take a 
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548 <nametype>
22549 \end_layout
22550
22551 \end_inset
22552
22553  part, but always return either an author list or, if this does not exist,
22554  an editor list (as common in author-year labels):
22555 \end_layout
22556
22557 \begin_deeper
22558 \begin_layout Itemize
22559 \begin_inset Flex Code
22560 status collapsed
22561
22562 \begin_layout Plain Layout
22563 %abbrvciteauthor%
22564 \end_layout
22565
22566 \end_inset
22567
22568 : Provides a name list which is abbreviated (with 
22569 \begin_inset Quotes eld
22570 \end_inset
22571
22572 et al.
22573 \begin_inset Quotes erd
22574 \end_inset
22575
22576 ) when 
22577 \begin_inset Flex Code
22578 status collapsed
22579
22580 \begin_layout Plain Layout
22581 MaxCiteNames
22582 \end_layout
22583
22584 \end_inset
22585
22586  is reached.
22587 \end_layout
22588
22589 \begin_layout Itemize
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 %fullciteauthor%
22595 \end_layout
22596
22597 \end_inset
22598
22599 : Provides a full name list (never abbreviated with 
22600 \begin_inset Quotes eld
22601 \end_inset
22602
22603 et al.
22604 \begin_inset Quotes erd
22605 \end_inset
22606
22607 ).
22608 \end_layout
22609
22610 \begin_layout Itemize
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 %forceabbrvciteauthor%
22616 \end_layout
22617
22618 \end_inset
22619
22620 : Provides a name list which is always abbreviated (with 
22621 \begin_inset Quotes eld
22622 \end_inset
22623
22624 et al.
22625 \begin_inset Quotes erd
22626 \end_inset
22627
22628 ) irrespective of 
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633 MaxCiteNames
22634 \end_layout
22635
22636 \end_inset
22637
22638 .
22639 \end_layout
22640
22641 \end_deeper
22642 \begin_layout Standard
22643 The order of pre- and surname in the former two lists can be adjusted by
22644  these macros:
22645 \end_layout
22646
22647 \begin_layout Itemize
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 !firstnameform %surname%, %prename%
22653 \end_layout
22654
22655 \end_inset
22656
22657  (first author in lists of type 1)
22658 \end_layout
22659
22660 \begin_layout Itemize
22661 \begin_inset Flex Code
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 !othernameform %surname%, %prename%
22666 \end_layout
22667
22668 \end_inset
22669
22670  (other authors in lists of type 1)
22671 \end_layout
22672
22673 \begin_layout Itemize
22674 \begin_inset Flex Code
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678 !firstbynameform %prename% %surname%
22679 \end_layout
22680
22681 \end_inset
22682
22683  (first author in lists of type 2)
22684 \end_layout
22685
22686 \begin_layout Itemize
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691 !otherbynameform %prename% %surname%
22692 \end_layout
22693
22694 \end_inset
22695
22696  (other authors in lists of type 2)
22697 \end_layout
22698
22699 \begin_layout Standard
22700 This allows you to configure namings like 
22701 \begin_inset Quotes eld
22702 \end_inset
22703
22704 Miller, Peter and Mary Smith: \SpecialChar ldots
22705 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22706
22707 \begin_inset Quotes erd
22708 \end_inset
22709
22710 .
22711 \end_layout
22712
22713 \begin_layout Standard
22714 There is one other piece of syntax available in definitions, which looks
22715  like this: 
22716 \begin_inset Flex Code
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720 {!<i>!}
22721 \end_layout
22722
22723 \end_inset
22724
22725 .
22726  This defines a piece of formatting information that is to be used when
22727  creating 
22728 \begin_inset Quotes eld
22729 \end_inset
22730
22731 rich text
22732 \begin_inset Quotes erd
22733 \end_inset
22734
22735 .
22736  Obviously, we do not want to output HTML tags when writing plain text,
22737  so they should be wrapped in 
22738 \begin_inset Quotes eld
22739 \end_inset
22740
22741 {!
22742 \begin_inset Quotes erd
22743 \end_inset
22744
22745  and 
22746 \begin_inset Quotes eld
22747 \end_inset
22748
22749 !}
22750 \begin_inset Quotes erd
22751 \end_inset
22752
22753 .
22754 \end_layout
22755
22756 \begin_layout Standard
22757 Two special sorts of definitions are also possible in a 
22758 \begin_inset Flex Code
22759 status collapsed
22760
22761 \begin_layout Plain Layout
22762 CiteFormat
22763 \end_layout
22764
22765 \end_inset
22766
22767  block.
22768  An example of the first would be:
22769 \end_layout
22770
22771 \begin_layout LyX-Code
22772 !quotetitle 
22773 \begin_inset Quotes eld
22774 \end_inset
22775
22776 %title%
22777 \begin_inset Quotes erd
22778 \end_inset
22779
22780
22781 \end_layout
22782
22783 \begin_layout Standard
22784 This is an abbreviation, or macro, and it can be used by treating it as
22785  if it were a key: 
22786 \begin_inset Flex Code
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790 %!quotetitle%
22791 \end_layout
22792
22793 \end_inset
22794
22795 .
22796  \SpecialChar LyX
22797  will treat 
22798 \begin_inset Flex Code
22799 status collapsed
22800
22801 \begin_layout Plain Layout
22802 %!quotetitle%
22803 \end_layout
22804
22805 \end_inset
22806
22807  exactly as it would treat its definition.
22808  So, let us issue the obvious 
22809 \emph on
22810 warning
22811 \emph default
22812 .
22813  Do not do this:
22814 \end_layout
22815
22816 \begin_layout LyX-Code
22817 !funfun %funfun%
22818 \end_layout
22819
22820 \begin_layout Standard
22821 or anything like it.
22822  \SpecialChar LyX
22823  shouldn't go into an infinite loop, but it may go into a long one before
22824  it gives up.
22825 \end_layout
22826
22827 \begin_layout Standard
22828 The second sort of special definition might look like this:
22829 \end_layout
22830
22831 \begin_layout LyX-Code
22832 _pptext pp.
22833 \end_layout
22834
22835 \begin_layout Standard
22836 This defines a translatable piece of text, which allows relevant parts of
22837  the bibliography or citation to be translated.
22838  It can be included in a definition by treating it as a key: 
22839 \begin_inset Flex Code
22840 status collapsed
22841
22842 \begin_layout Plain Layout
22843 %_pptext%
22844 \end_layout
22845
22846 \end_inset
22847
22848 .
22849  Several of these are predefined in 
22850 \begin_inset Flex Code
22851 status collapsed
22852
22853 \begin_layout Plain Layout
22854 stdciteformats.inc
22855 \end_layout
22856
22857 \end_inset
22858
22859  and the diverse 
22860 \begin_inset Flex Code
22861 status collapsed
22862
22863 \begin_layout Plain Layout
22864 *.citeengine
22865 \end_layout
22866
22867 \end_inset
22868
22869  files.
22870  Note that these are not macros, in the sense just defined.
22871  They will not be expanded.
22872 \end_layout
22873
22874 \begin_layout Standard
22875 So here then is an example that use all these features:
22876 \begin_inset VSpace defskip
22877 \end_inset
22878
22879
22880 \end_layout
22881
22882 \begin_layout Standard
22883 \noindent
22884
22885 \family typewriter
22886 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
22887 \end_layout
22888
22889 \begin_layout Standard
22890 \begin_inset VSpace defskip
22891 \end_inset
22892
22893 This defines a macro that prints the author, followed by a comma, if the
22894  
22895 \begin_inset Flex Code
22896 status collapsed
22897
22898 \begin_layout Plain Layout
22899 author
22900 \end_layout
22901
22902 \end_inset
22903
22904  key is defined, or else prints the name of the editor, followed by the
22905  
22906 \begin_inset Flex Code
22907 status collapsed
22908
22909 \begin_layout Plain Layout
22910 _edtext
22911 \end_layout
22912
22913 \end_inset
22914
22915  or its translation (it is by default 
22916 \begin_inset Quotes eld
22917 \end_inset
22918
22919 ed.
22920 \begin_inset Quotes erd
22921 \end_inset
22922
22923 ), if the 
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 editor
22929 \end_layout
22930
22931 \end_inset
22932
22933  key is defined.
22934  Note that this is in fact defined in 
22935 \begin_inset Flex Code
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939 stdciteformats.inc
22940 \end_layout
22941
22942 \end_inset
22943
22944 , so you can use it in your own definitions, or re-definitions, if you load
22945  that file first.
22946 \end_layout
22947
22948 \begin_layout Section
22949 \begin_inset CommandInset label
22950 LatexCommand label
22951 name "sec:Tags-for-XHTML"
22952
22953 \end_inset
22954
22955 Tags for XHTML output
22956 \end_layout
22957
22958 \begin_layout Standard
22959 As with \SpecialChar LaTeX
22960  or DocBook, the format of \SpecialChar LyX
22961 's XHTML output is also controlled by
22962  layout information.
22963  In general, \SpecialChar LyX
22964  provides sensible defaults and, as mentioned earlier, it will
22965  even construct default CSS style rules from the other layout tags.
22966  For example, \SpecialChar LyX
22967  will attempt to use the information provided in the 
22968 \begin_inset Flex Code
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972 Font
22973 \end_layout
22974
22975 \end_inset
22976
22977  declaration for the Chapter style to write CSS that will appropriately
22978  format chapter headings.
22979 \end_layout
22980
22981 \begin_layout Standard
22982 In many cases, then, you may not have to do anything at all to get acceptable
22983  XHTML output for your own environments, custom insets, and so forth.
22984  But in some cases you will, and so \SpecialChar LyX
22985  provides a number of layout tags that
22986  can be used to customize the XHTML and CSS that are generated.
22987 \end_layout
22988
22989 \begin_layout Standard
22990 Note that there are two tags, 
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 HTMLPreamble
22996 \end_layout
22997
22998 \end_inset
22999
23000  and 
23001 \begin_inset Flex Code
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005 AddToHTMLPreamble
23006 \end_layout
23007
23008 \end_inset
23009
23010  that may appear outside style and inset declarations.
23011  See 
23012 \begin_inset CommandInset ref
23013 LatexCommand ref
23014 reference "subsec:General-text-class"
23015
23016 \end_inset
23017
23018  for details on these.
23019 \end_layout
23020
23021 \begin_layout Subsection
23022 \begin_inset CommandInset label
23023 LatexCommand label
23024 name "subsec:Paragraph-Style-XHTML"
23025
23026 \end_inset
23027
23028 Paragraph styles
23029 \end_layout
23030
23031 \begin_layout Standard
23032 The sort of XHTML \SpecialChar LyX
23033  outputs for a paragraph depends upon whether we are dealing
23034  with a normal paragraph, a command, or an environment, where this is itself
23035  determined by the contents of the corresponding 
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040 \SpecialChar LaTeX
23041 Type
23042 \end_layout
23043
23044 \end_inset
23045
23046  tag.
23047  
23048 \end_layout
23049
23050 \begin_layout Standard
23051 For a command or normal paragraph, the output XHTML has the following form:
23052 \end_layout
23053
23054 \begin_layout LyX-Code
23055 <tag attr=
23056 \begin_inset Quotes erd
23057 \end_inset
23058
23059 value
23060 \begin_inset Quotes erd
23061 \end_inset
23062
23063 >
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067 <labeltag attr=
23068 \begin_inset Quotes erd
23069 \end_inset
23070
23071 value
23072 \begin_inset Quotes erd
23073 \end_inset
23074
23075 >Label</labeltag>
23076 \end_layout
23077
23078 \begin_layout LyX-Code
23079 Contents of the paragraph.
23080 \end_layout
23081
23082 \begin_layout LyX-Code
23083 </tag>
23084 \end_layout
23085
23086 \begin_layout Standard
23087 The label tags are of course omitted if the paragraph does not have a label.
23088 \end_layout
23089
23090 \begin_layout Standard
23091 For an environment that is not some sort of list, the XHTML takes this form:
23092 \end_layout
23093
23094 \begin_layout LyX-Code
23095 <tag attr=
23096 \begin_inset Quotes erd
23097 \end_inset
23098
23099 value
23100 \begin_inset Quotes erd
23101 \end_inset
23102
23103 >
23104 \end_layout
23105
23106 \begin_layout LyX-Code
23107 <itemtag attr=
23108 \begin_inset Quotes erd
23109 \end_inset
23110
23111 value
23112 \begin_inset Quotes erd
23113 \end_inset
23114
23115 ><labeltag attr=
23116 \begin_inset Quotes erd
23117 \end_inset
23118
23119 value
23120 \begin_inset Quotes erd
23121 \end_inset
23122
23123 >Environment Label</labeltag>First paragraph.</itemtag>
23124 \end_layout
23125
23126 \begin_layout LyX-Code
23127 <itemtag>Second paragraph.</itemtag>
23128 \end_layout
23129
23130 \begin_layout LyX-Code
23131 </tag>
23132 \end_layout
23133
23134 \begin_layout Standard
23135 Note that the label is output only for the first paragraph, as it should
23136  be for a theorem, for example.
23137  
23138 \end_layout
23139
23140 \begin_layout Standard
23141 For a list, we have one of these forms:
23142 \end_layout
23143
23144 \begin_layout LyX-Code
23145 <tag attr=
23146 \begin_inset Quotes erd
23147 \end_inset
23148
23149 value
23150 \begin_inset Quotes erd
23151 \end_inset
23152
23153 >
23154 \end_layout
23155
23156 \begin_layout LyX-Code
23157 <itemtag attr=
23158 \begin_inset Quotes erd
23159 \end_inset
23160
23161 value
23162 \begin_inset Quotes erd
23163 \end_inset
23164
23165 ><labeltag attr=
23166 \begin_inset Quotes erd
23167 \end_inset
23168
23169 value
23170 \begin_inset Quotes erd
23171 \end_inset
23172
23173 >List Label</labeltag>First item.</itemtag>
23174 \end_layout
23175
23176 \begin_layout LyX-Code
23177 <itemtag attr=
23178 \begin_inset Quotes erd
23179 \end_inset
23180
23181 value
23182 \begin_inset Quotes erd
23183 \end_inset
23184
23185 ><labeltag attr=
23186 \begin_inset Quotes erd
23187 \end_inset
23188
23189 value
23190 \begin_inset Quotes erd
23191 \end_inset
23192
23193 >List Label</labeltag>Second item.</itemtag>
23194 \end_layout
23195
23196 \begin_layout LyX-Code
23197 </tag>
23198 \end_layout
23199
23200 \begin_layout LyX-Code
23201
23202 \end_layout
23203
23204 \begin_layout LyX-Code
23205 <tag attr=
23206 \begin_inset Quotes erd
23207 \end_inset
23208
23209 value
23210 \begin_inset Quotes erd
23211 \end_inset
23212
23213 >
23214 \end_layout
23215
23216 \begin_layout LyX-Code
23217 <labeltag attr=
23218 \begin_inset Quotes erd
23219 \end_inset
23220
23221 value
23222 \begin_inset Quotes erd
23223 \end_inset
23224
23225 >List Label</labeltag><itemtag attr=
23226 \begin_inset Quotes erd
23227 \end_inset
23228
23229 value
23230 \begin_inset Quotes erd
23231 \end_inset
23232
23233 >First item.</itemtag>
23234 \end_layout
23235
23236 \begin_layout LyX-Code
23237 <labeltag attr=
23238 \begin_inset Quotes erd
23239 \end_inset
23240
23241 value
23242 \begin_inset Quotes erd
23243 \end_inset
23244
23245 >List Label</labeltag><itemtag attr=
23246 \begin_inset Quotes erd
23247 \end_inset
23248
23249 value
23250 \begin_inset Quotes erd
23251 \end_inset
23252
23253 >Second item.</itemtag>
23254 \end_layout
23255
23256 \begin_layout LyX-Code
23257 </tag>
23258 \end_layout
23259
23260 \begin_layout Standard
23261 Note the different orders of 
23262 \begin_inset Flex Code
23263 status collapsed
23264
23265 \begin_layout Plain Layout
23266 labeltag
23267 \end_layout
23268
23269 \end_inset
23270
23271  and 
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 itemtag
23277 \end_layout
23278
23279 \end_inset
23280
23281 .
23282  Which order we get depends upon the setting of 
23283 \begin_inset Flex Code
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287 HTMLLabelFirst
23288 \end_layout
23289
23290 \end_inset
23291
23292 : If 
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 HTMLLabelFirst
23298 \end_layout
23299
23300 \end_inset
23301
23302  is false (the default), you get the first of these, with the label within
23303  the item; if true, you get the second, with the label outside the item.
23304 \end_layout
23305
23306 \begin_layout Standard
23307 The specific tags and attributes output for each paragraph type can be controlle
23308 d by means of the layout tags we are about to describe.
23309  As mentioned earlier, however, \SpecialChar LyX
23310  uses sensible defaults for many of these,
23311  so you often may not need to do very much to get good XHTML output.
23312  Think of the available tags as there so you can tweak things to your liking.
23313 \end_layout
23314
23315 \begin_layout Description
23316 \begin_inset Flex Code
23317 status collapsed
23318
23319 \begin_layout Plain Layout
23320 HTMLAttr
23321 \end_layout
23322
23323 \end_inset
23324
23325  [
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330 string
23331 \end_layout
23332
23333 \end_inset
23334
23335 ] Specifies attribute information to be output with the main tag.
23336  For example, 
23337 \begin_inset Quotes eld
23338 \end_inset
23339
23340
23341 \begin_inset Flex Code
23342 status collapsed
23343
23344 \begin_layout Plain Layout
23345 class=`mydiv'
23346 \end_layout
23347
23348 \end_inset
23349
23350
23351 \begin_inset Quotes erd
23352 \end_inset
23353
23354 .
23355  By default, \SpecialChar LyX
23356  will output 
23357 \begin_inset Quotes eld
23358 \end_inset
23359
23360
23361 \begin_inset Flex Code
23362 status collapsed
23363
23364 \begin_layout Plain Layout
23365 class=`layoutname'
23366 \end_layout
23367
23368 \end_inset
23369
23370
23371 \begin_inset Quotes erd
23372 \end_inset
23373
23374 , where 
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 layoutname
23380 \end_layout
23381
23382 \end_inset
23383
23384  is the \SpecialChar LyX
23385  name of the layout, made lowercase, for example: chapter.
23386  This should 
23387 \emph on
23388 not
23389 \emph default
23390  contain any style information.
23391  Use 
23392 \begin_inset Flex Code
23393 status collapsed
23394
23395 \begin_layout Plain Layout
23396 HTMLStyle
23397 \end_layout
23398
23399 \end_inset
23400
23401  for that purpose.
23402 \end_layout
23403
23404 \begin_layout Description
23405 \begin_inset Flex Code
23406 status collapsed
23407
23408 \begin_layout Plain Layout
23409 HTMLForceCSS
23410 \end_layout
23411
23412 \end_inset
23413
23414  [
23415 \begin_inset Flex Code
23416 status collapsed
23417
23418 \begin_layout Plain Layout
23419
23420 \emph on
23421 0
23422 \emph default
23423 ,1
23424 \end_layout
23425
23426 \end_inset
23427
23428 ] Whether to output the default CSS information \SpecialChar LyX
23429  generates for this layout,
23430  even if additional information is explicitly provided via 
23431 \begin_inset Flex Code
23432 status collapsed
23433
23434 \begin_layout Plain Layout
23435 HTMLStyle
23436 \end_layout
23437
23438 \end_inset
23439
23440 .
23441  Setting this to 
23442 \begin_inset Flex Code
23443 status collapsed
23444
23445 \begin_layout Plain Layout
23446 1
23447 \end_layout
23448
23449 \end_inset
23450
23451  allows you to alter or augment the generated CSS, rather than to override
23452  it completely.
23453  Default is 
23454 \begin_inset Flex Code
23455 status collapsed
23456
23457 \begin_layout Plain Layout
23458 0
23459 \end_layout
23460
23461 \end_inset
23462
23463 .
23464 \end_layout
23465
23466 \begin_layout Description
23467 \begin_inset Flex Code
23468 status collapsed
23469
23470 \begin_layout Plain Layout
23471 HTMLItem
23472 \end_layout
23473
23474 \end_inset
23475
23476  [
23477 \begin_inset Flex Code
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 string
23482 \end_layout
23483
23484 \end_inset
23485
23486 ] The tag to be used for individual paragraphs of environments, replacing
23487  
23488 \begin_inset Flex Code
23489 status collapsed
23490
23491 \begin_layout Plain Layout
23492 itemtag
23493 \end_layout
23494
23495 \end_inset
23496
23497  in the examples above.
23498  Defaults to 
23499 \begin_inset Flex Code
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503 div
23504 \end_layout
23505
23506 \end_inset
23507
23508 .
23509 \end_layout
23510
23511 \begin_layout Description
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 HTMLItemAttr
23517 \end_layout
23518
23519 \end_inset
23520
23521  [
23522 \begin_inset Flex Code
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526 string
23527 \end_layout
23528
23529 \end_inset
23530
23531 ] Attributes for the item tag.
23532  Defaults to 
23533 \begin_inset Quotes eld
23534 \end_inset
23535
23536
23537 \begin_inset Flex Code
23538 status collapsed
23539
23540 \begin_layout Plain Layout
23541 class=`layoutname_item'
23542 \end_layout
23543
23544 \end_inset
23545
23546
23547 \begin_inset Quotes erd
23548 \end_inset
23549
23550 .
23551  This should 
23552 \emph on
23553 not
23554 \emph default
23555  contain any style information.
23556  Use 
23557 \begin_inset Flex Code
23558 status collapsed
23559
23560 \begin_layout Plain Layout
23561 HTMLStyle
23562 \end_layout
23563
23564 \end_inset
23565
23566  for that purpose.
23567 \end_layout
23568
23569 \begin_layout Description
23570 \begin_inset Flex Code
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574 HTMLLabel
23575 \end_layout
23576
23577 \end_inset
23578
23579  [
23580 \begin_inset Flex Code
23581 status collapsed
23582
23583 \begin_layout Plain Layout
23584 string
23585 \end_layout
23586
23587 \end_inset
23588
23589 ] The tag to be used for paragraph and item labels, replacing 
23590 \begin_inset Flex Code
23591 status collapsed
23592
23593 \begin_layout Plain Layout
23594 labeltag
23595 \end_layout
23596
23597 \end_inset
23598
23599  in the examples above.
23600  Defaults to 
23601 \begin_inset Flex Code
23602 status collapsed
23603
23604 \begin_layout Plain Layout
23605 span
23606 \end_layout
23607
23608 \end_inset
23609
23610 , unless 
23611 \begin_inset Flex Code
23612 status collapsed
23613
23614 \begin_layout Plain Layout
23615 LabelType
23616 \end_layout
23617
23618 \end_inset
23619
23620  is either 
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625 Top_Environment
23626 \end_layout
23627
23628 \end_inset
23629
23630  or 
23631 \begin_inset Flex Code
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 Centered_Top_Environment
23636 \end_layout
23637
23638 \end_inset
23639
23640 , in which case it defaults to 
23641 \begin_inset Flex Code
23642 status collapsed
23643
23644 \begin_layout Plain Layout
23645 div
23646 \end_layout
23647
23648 \end_inset
23649
23650 .
23651 \end_layout
23652
23653 \begin_layout Description
23654 \begin_inset Flex Code
23655 status collapsed
23656
23657 \begin_layout Plain Layout
23658 HTMLLabelAttr
23659 \end_layout
23660
23661 \end_inset
23662
23663  [
23664 \begin_inset Flex Code
23665 status collapsed
23666
23667 \begin_layout Plain Layout
23668 string
23669 \end_layout
23670
23671 \end_inset
23672
23673 ] Attributes for the label tag.
23674  Defaults to 
23675 \begin_inset Quotes eld
23676 \end_inset
23677
23678
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683 class=`layoutname_label'
23684 \end_layout
23685
23686 \end_inset
23687
23688
23689 \begin_inset Quotes erd
23690 \end_inset
23691
23692 .
23693  This should 
23694 \emph on
23695 not
23696 \emph default
23697  contain any style information.
23698  Use 
23699 \begin_inset Flex Code
23700 status collapsed
23701
23702 \begin_layout Plain Layout
23703 HTMLStyle
23704 \end_layout
23705
23706 \end_inset
23707
23708  for that purpose.
23709 \end_layout
23710
23711 \begin_layout Description
23712 \begin_inset Flex Code
23713 status collapsed
23714
23715 \begin_layout Plain Layout
23716 HTMLLabelFirst
23717 \end_layout
23718
23719 \end_inset
23720
23721  [
23722 \begin_inset Flex Code
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726
23727 \emph on
23728 0
23729 \emph default
23730 ,1
23731 \end_layout
23732
23733 \end_inset
23734
23735 ] Meaningful only for list-like environments, this tag controls whether
23736  the label tag is output before or inside the item tag.
23737  This is used, for example, in the description environment, where we want
23738  `
23739 \begin_inset Flex Code
23740 status collapsed
23741
23742 \begin_layout Plain Layout
23743 <dt>\SpecialChar ldots
23744 </dt><dd>\SpecialChar ldots
23745 </dd>
23746 \end_layout
23747
23748 \end_inset
23749
23750 .
23751  Default is 
23752 \begin_inset Flex Code
23753 status collapsed
23754
23755 \begin_layout Plain Layout
23756 0
23757 \end_layout
23758
23759 \end_inset
23760
23761 : The label tag is output inside the item tag.
23762 \end_layout
23763
23764 \begin_layout Description
23765 \begin_inset Flex Code
23766 status collapsed
23767
23768 \begin_layout Plain Layout
23769 HTMLPreamble
23770 \end_layout
23771
23772 \end_inset
23773
23774  Information to be output in the 
23775 \begin_inset Flex Code
23776 status collapsed
23777
23778 \begin_layout Plain Layout
23779 <head>
23780 \end_layout
23781
23782 \end_inset
23783
23784  section when this style is used.
23785  This might, for example, be used to include a 
23786 \begin_inset Flex Code
23787 status collapsed
23788
23789 \begin_layout Plain Layout
23790 <script>
23791 \end_layout
23792
23793 \end_inset
23794
23795  block defining an 
23796 \begin_inset Flex Code
23797 status collapsed
23798
23799 \begin_layout Plain Layout
23800 onclick
23801 \end_layout
23802
23803 \end_inset
23804
23805  handler.
23806 \end_layout
23807
23808 \begin_layout Description
23809 \begin_inset Flex Code
23810 status collapsed
23811
23812 \begin_layout Plain Layout
23813 HTMLStyle
23814 \end_layout
23815
23816 \end_inset
23817
23818  CSS style information to be included when this style is used.
23819  Note that this will automatically be wrapped in a layout-generated 
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824 <style>
23825 \end_layout
23826
23827 \end_inset
23828
23829  block, so only the CSS itself need be included.
23830  Must end with 
23831 \begin_inset Flex Code
23832 status collapsed
23833
23834 \begin_layout Plain Layout
23835 EndHTMLStyle
23836 \end_layout
23837
23838 \end_inset
23839
23840 .
23841 \end_layout
23842
23843 \begin_layout Description
23844 \begin_inset Flex Code
23845 status collapsed
23846
23847 \begin_layout Plain Layout
23848 HTMLTag
23849 \end_layout
23850
23851 \end_inset
23852
23853  [
23854 \begin_inset Flex Code
23855 status collapsed
23856
23857 \begin_layout Plain Layout
23858 string
23859 \end_layout
23860
23861 \end_inset
23862
23863 ] The tag to be used for the main label, replacing 
23864 \begin_inset Flex Code
23865 status collapsed
23866
23867 \begin_layout Plain Layout
23868 tag
23869 \end_layout
23870
23871 \end_inset
23872
23873  in the examples above.
23874  Defaults to 
23875 \begin_inset Flex Code
23876 status collapsed
23877
23878 \begin_layout Plain Layout
23879 div
23880 \end_layout
23881
23882 \end_inset
23883
23884 .
23885 \end_layout
23886
23887 \begin_layout Description
23888 \begin_inset Flex Code
23889 status collapsed
23890
23891 \begin_layout Plain Layout
23892 HTMLTitle
23893 \end_layout
23894
23895 \end_inset
23896
23897  [
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902
23903 \emph on
23904 0
23905 \emph default
23906 ,1
23907 \end_layout
23908
23909 \end_inset
23910
23911 ] Marks this style as the one to be used to generate the 
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916 <title>
23917 \end_layout
23918
23919 \end_inset
23920
23921  tag for the XHTML file.
23922  By default, it is false.
23923  The 
23924 \begin_inset Flex Code
23925 status collapsed
23926
23927 \begin_layout Plain Layout
23928 stdtitle.inc
23929 \end_layout
23930
23931 \end_inset
23932
23933  file sets it to true for the 
23934 \begin_inset Flex Code
23935 status collapsed
23936
23937 \begin_layout Plain Layout
23938 title
23939 \end_layout
23940
23941 \end_inset
23942
23943  environment.
23944  
23945 \end_layout
23946
23947 \begin_layout Subsection
23948 InsetLayout XHTML
23949 \end_layout
23950
23951 \begin_layout Standard
23952 The XHTML output of insets can also be controlled by information in layout
23953  files.
23954 \begin_inset Foot
23955 status collapsed
23956
23957 \begin_layout Plain Layout
23958 At present, this is true only for 
23959 \begin_inset Quotes eld
23960 \end_inset
23961
23962 text
23963 \begin_inset Quotes erd
23964 \end_inset
23965
23966  insets (insets you can type into) and is not true for 
23967 \begin_inset Quotes eld
23968 \end_inset
23969
23970 command
23971 \begin_inset Quotes erd
23972 \end_inset
23973
23974  insets (insets that are associated with dialog boxes).
23975 \end_layout
23976
23977 \end_inset
23978
23979  Here, too, \SpecialChar LyX
23980  tries to provide sensible defaults, and it constructs default
23981  CSS style rules.
23982  But everything can be customized.
23983 \end_layout
23984
23985 \begin_layout Standard
23986 The XHTML \SpecialChar LyX
23987  outputs for an inset has the following form:
23988 \end_layout
23989
23990 \begin_layout LyX-Code
23991 <tag attr=
23992 \begin_inset Quotes erd
23993 \end_inset
23994
23995 value
23996 \begin_inset Quotes erd
23997 \end_inset
23998
23999 >
24000 \end_layout
24001
24002 \begin_layout LyX-Code
24003 <labeltag>Label</labeltag>
24004 \end_layout
24005
24006 \begin_layout LyX-Code
24007 <innertag attr=
24008 \begin_inset Quotes erd
24009 \end_inset
24010
24011 value
24012 \begin_inset Quotes erd
24013 \end_inset
24014
24015 >Contents of the inset.</innertag>
24016 \end_layout
24017
24018 \begin_layout LyX-Code
24019 </tag>
24020 \end_layout
24021
24022 \begin_layout Standard
24023 If the inset permits multiple paragraphs—that is, if 
24024 \begin_inset Flex Code
24025 status collapsed
24026
24027 \begin_layout Plain Layout
24028 MultiPar
24029 \end_layout
24030
24031 \end_inset
24032
24033  is true—then the contents of the inset will itself be output as paragraphs
24034  formatted according to the styles used for those paragraphs (standard,
24035  quote, and the like).
24036  The label tag is of course omitted if the paragraph does not have a label
24037  and, at present, is always 
24038 \begin_inset Flex Code
24039 status collapsed
24040
24041 \begin_layout Plain Layout
24042 span
24043 \end_layout
24044
24045 \end_inset
24046
24047 .
24048  The inner tag is optional and, by default, does not appear.
24049 \end_layout
24050
24051 \begin_layout Standard
24052 The specific tags and attributes output for each inset can be controlled
24053  by means of the following layout tags.
24054 \end_layout
24055
24056 \begin_layout Description
24057 \begin_inset Flex Code
24058 status collapsed
24059
24060 \begin_layout Plain Layout
24061 HTMLAttr
24062 \end_layout
24063
24064 \end_inset
24065
24066  [
24067 \begin_inset Flex Code
24068 status collapsed
24069
24070 \begin_layout Plain Layout
24071 string
24072 \end_layout
24073
24074 \end_inset
24075
24076 ] Specifies attribute information to be output with the main tag.
24077  For example, 
24078 \begin_inset Quotes eld
24079 \end_inset
24080
24081
24082 \begin_inset Flex Code
24083 status collapsed
24084
24085 \begin_layout Plain Layout
24086 class=`myinset' onclick=`\SpecialChar ldots
24087 '
24088 \end_layout
24089
24090 \end_inset
24091
24092
24093 \begin_inset Quotes erd
24094 \end_inset
24095
24096 .
24097  By default, \SpecialChar LyX
24098  will output 
24099 \begin_inset Quotes eld
24100 \end_inset
24101
24102
24103 \begin_inset Flex Code
24104 status collapsed
24105
24106 \begin_layout Plain Layout
24107 class=`insetname'
24108 \end_layout
24109
24110 \end_inset
24111
24112
24113 \begin_inset Quotes erd
24114 \end_inset
24115
24116 , where 
24117 \begin_inset Flex Code
24118 status collapsed
24119
24120 \begin_layout Plain Layout
24121 insetname
24122 \end_layout
24123
24124 \end_inset
24125
24126  is the \SpecialChar LyX
24127  name of the inset, made lowercase and with non-alphanumeric characters
24128  converted to underscores, for example: footnote.
24129 \end_layout
24130
24131 \begin_layout Description
24132 \begin_inset Flex Code
24133 status collapsed
24134
24135 \begin_layout Plain Layout
24136 HTMLForceCSS
24137 \end_layout
24138
24139 \end_inset
24140
24141  [
24142 \begin_inset Flex Code
24143 status collapsed
24144
24145 \begin_layout Plain Layout
24146
24147 \emph on
24148 0
24149 \emph default
24150 ,1
24151 \end_layout
24152
24153 \end_inset
24154
24155 ] Whether to output the default CSS information \SpecialChar LyX
24156  generates for this layout,
24157  even if additional information is explicitly provided via 
24158 \begin_inset Flex Code
24159 status collapsed
24160
24161 \begin_layout Plain Layout
24162 HTMLStyle
24163 \end_layout
24164
24165 \end_inset
24166
24167 .
24168  Setting this to 
24169 \begin_inset Flex Code
24170 status collapsed
24171
24172 \begin_layout Plain Layout
24173 1
24174 \end_layout
24175
24176 \end_inset
24177
24178  allows you to alter or augment the generated CSS, rather than to override
24179  it completely.
24180  Default is 0.
24181 \end_layout
24182
24183 \begin_layout Description
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188 HTMLInnerAttr
24189 \end_layout
24190
24191 \end_inset
24192
24193  [
24194 \begin_inset Flex Code
24195 status collapsed
24196
24197 \begin_layout Plain Layout
24198 string
24199 \end_layout
24200
24201 \end_inset
24202
24203 ] Attributes for the inner tag.
24204  Defaults to 
24205 \begin_inset Quotes eld
24206 \end_inset
24207
24208
24209 \begin_inset Flex Code
24210 status collapsed
24211
24212 \begin_layout Plain Layout
24213 class=`insetname_inner'
24214 \end_layout
24215
24216 \end_inset
24217
24218
24219 \begin_inset Quotes erd
24220 \end_inset
24221
24222 .
24223 \end_layout
24224
24225 \begin_layout Description
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 HTMLInnerTag
24231 \end_layout
24232
24233 \end_inset
24234
24235  [
24236 \begin_inset Flex Code
24237 status collapsed
24238
24239 \begin_layout Plain Layout
24240 string
24241 \end_layout
24242
24243 \end_inset
24244
24245 ] The inner tag, replacing 
24246 \begin_inset Flex Code
24247 status collapsed
24248
24249 \begin_layout Plain Layout
24250 innertag
24251 \end_layout
24252
24253 \end_inset
24254
24255  in the examples above.
24256  By default, there is none.
24257 \end_layout
24258
24259 \begin_layout Description
24260 \begin_inset Flex Code
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264 HTMLIsBlock
24265 \end_layout
24266
24267 \end_inset
24268
24269  [
24270 \begin_inset Flex Code
24271 status collapsed
24272
24273 \begin_layout Plain Layout
24274 0,
24275 \emph on
24276 1
24277 \end_layout
24278
24279 \end_inset
24280
24281 ] Whether this inset represents a standalone block of text (such as a footnote)
24282  or instead represents material that is included in the surrounding text
24283  (such as a branch).
24284  Defaults to 1.
24285 \end_layout
24286
24287 \begin_layout Description
24288 \begin_inset Flex Code
24289 status collapsed
24290
24291 \begin_layout Plain Layout
24292 HTMLLabel
24293 \end_layout
24294
24295 \end_inset
24296
24297  [
24298 \begin_inset Flex Code
24299 status collapsed
24300
24301 \begin_layout Plain Layout
24302 string
24303 \end_layout
24304
24305 \end_inset
24306
24307 ] A label for this inset, possibly including a reference to a counter.
24308  For example, for footnote, it might be: 
24309 \begin_inset Flex Code
24310 status collapsed
24311
24312 \begin_layout Plain Layout
24313
24314 \backslash
24315 arabic{footnote}
24316 \end_layout
24317
24318 \end_inset
24319
24320 .
24321  This is optional, and there is no default.
24322 \end_layout
24323
24324 \begin_layout Description
24325 \begin_inset Flex Code
24326 status collapsed
24327
24328 \begin_layout Plain Layout
24329 HTMLPreamble
24330 \end_layout
24331
24332 \end_inset
24333
24334  Information to be output in the 
24335 \begin_inset Flex Code
24336 status collapsed
24337
24338 \begin_layout Plain Layout
24339 <head>
24340 \end_layout
24341
24342 \end_inset
24343
24344  section when this style is used.
24345  This might, for example, be used to include a 
24346 \begin_inset Flex Code
24347 status collapsed
24348
24349 \begin_layout Plain Layout
24350 <script>
24351 \end_layout
24352
24353 \end_inset
24354
24355  block defining an 
24356 \begin_inset Flex Code
24357 status collapsed
24358
24359 \begin_layout Plain Layout
24360 onclick
24361 \end_layout
24362
24363 \end_inset
24364
24365  handler.
24366 \end_layout
24367
24368 \begin_layout Description
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373 HTMLStyle
24374 \end_layout
24375
24376 \end_inset
24377
24378  CSS style information to be included when this style is used.
24379  Note that this will automatically be wrapped in a layout-generated 
24380 \begin_inset Flex Code
24381 status collapsed
24382
24383 \begin_layout Plain Layout
24384 <style>
24385 \end_layout
24386
24387 \end_inset
24388
24389  block, so only the CSS itself need be included.
24390 \end_layout
24391
24392 \begin_layout Description
24393 \begin_inset Flex Code
24394 status collapsed
24395
24396 \begin_layout Plain Layout
24397 HTMLTag
24398 \end_layout
24399
24400 \end_inset
24401
24402  [
24403 \begin_inset Flex Code
24404 status collapsed
24405
24406 \begin_layout Plain Layout
24407 string
24408 \end_layout
24409
24410 \end_inset
24411
24412 ] The tag to be used for the main label, replacing 
24413 \begin_inset Flex Code
24414 status collapsed
24415
24416 \begin_layout Plain Layout
24417 tag
24418 \end_layout
24419
24420 \end_inset
24421
24422  in the examples above.
24423  The default depends upon the setting of 
24424 \begin_inset Flex Code
24425 status collapsed
24426
24427 \begin_layout Plain Layout
24428 MultiPar
24429 \end_layout
24430
24431 \end_inset
24432
24433 : If 
24434 \begin_inset Flex Code
24435 status collapsed
24436
24437 \begin_layout Plain Layout
24438 MultiPar
24439 \end_layout
24440
24441 \end_inset
24442
24443  is true, the default is 
24444 \begin_inset Flex Code
24445 status collapsed
24446
24447 \begin_layout Plain Layout
24448 div
24449 \end_layout
24450
24451 \end_inset
24452
24453 ; if it is false, the default is 
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458 span
24459 \end_layout
24460
24461 \end_inset
24462
24463 .
24464 \end_layout
24465
24466 \begin_layout Subsection
24467 Float XHTML
24468 \end_layout
24469
24470 \begin_layout Standard
24471 The XHTML output for floats too can be controlled by layout information.
24472  The output has the following form:
24473 \end_layout
24474
24475 \begin_layout LyX-Code
24476 <tag attr=
24477 \begin_inset Quotes erd
24478 \end_inset
24479
24480 value
24481 \begin_inset Quotes erd
24482 \end_inset
24483
24484 >
24485 \end_layout
24486
24487 \begin_layout LyX-Code
24488 Contents of the float.
24489 \end_layout
24490
24491 \begin_layout LyX-Code
24492 </tag>
24493 \end_layout
24494
24495 \begin_layout Standard
24496 The caption, if there is one, is a separate inset and will be output as
24497  such.
24498  Its appearance can be controlled via the InsetLayout for caption insets.
24499  
24500 \end_layout
24501
24502 \begin_layout Description
24503 \begin_inset Flex Code
24504 status collapsed
24505
24506 \begin_layout Plain Layout
24507 HTMLAttr
24508 \end_layout
24509
24510 \end_inset
24511
24512  [
24513 \begin_inset Flex Code
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517 string
24518 \end_layout
24519
24520 \end_inset
24521
24522 ] Specifies attribute information to be output with the main tag.
24523  For example, 
24524 \begin_inset Quotes eld
24525 \end_inset
24526
24527
24528 \begin_inset Flex Code
24529 status collapsed
24530
24531 \begin_layout Plain Layout
24532 class=`myfloat' onclick=`\SpecialChar ldots
24533 '
24534 \end_layout
24535
24536 \end_inset
24537
24538
24539 \begin_inset Quotes erd
24540 \end_inset
24541
24542 .
24543  By default, \SpecialChar LyX
24544  will output 
24545 \begin_inset Quotes eld
24546 \end_inset
24547
24548
24549 \begin_inset Flex Code
24550 status collapsed
24551
24552 \begin_layout Plain Layout
24553 class=`float float-floattype'
24554 \end_layout
24555
24556 \end_inset
24557
24558
24559 \begin_inset Quotes erd
24560 \end_inset
24561
24562 , where 
24563 \begin_inset Flex Code
24564 status collapsed
24565
24566 \begin_layout Plain Layout
24567 floattype
24568 \end_layout
24569
24570 \end_inset
24571
24572  is \SpecialChar LyX
24573 's name for this type of float, as determined by the float declaration
24574  (see 
24575 \begin_inset CommandInset ref
24576 LatexCommand ref
24577 reference "subsec:Floats"
24578
24579 \end_inset
24580
24581 ), though made lowercase and with non-alphanumeric characters converted
24582  to underscores, for example: float-table.
24583 \end_layout
24584
24585 \begin_layout Description
24586 \begin_inset Flex Code
24587 status collapsed
24588
24589 \begin_layout Plain Layout
24590 HTMLStyle
24591 \end_layout
24592
24593 \end_inset
24594
24595  CSS style information to be included when this float is used.
24596  Note that this will automatically be wrapped in a layout-generated 
24597 \begin_inset Flex Code
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601 <style>
24602 \end_layout
24603
24604 \end_inset
24605
24606  block, so only the CSS itself need be included.
24607 \end_layout
24608
24609 \begin_layout Description
24610 \begin_inset Flex Code
24611 status collapsed
24612
24613 \begin_layout Plain Layout
24614 HTMLTag
24615 \end_layout
24616
24617 \end_inset
24618
24619  [
24620 \begin_inset Flex Code
24621 status collapsed
24622
24623 \begin_layout Plain Layout
24624 string
24625 \end_layout
24626
24627 \end_inset
24628
24629 ] The tag to be used for this float, replacing 
24630 \begin_inset Quotes eld
24631 \end_inset
24632
24633
24634 \begin_inset Flex Code
24635 status collapsed
24636
24637 \begin_layout Plain Layout
24638 tag
24639 \end_layout
24640
24641 \end_inset
24642
24643
24644 \begin_inset Quotes erd
24645 \end_inset
24646
24647  in the example above.
24648  The default is 
24649 \begin_inset Flex Code
24650 status collapsed
24651
24652 \begin_layout Plain Layout
24653 div
24654 \end_layout
24655
24656 \end_inset
24657
24658  and will rarely need changing.
24659 \end_layout
24660
24661 \begin_layout Subsection
24662 Bibliography formatting
24663 \end_layout
24664
24665 \begin_layout Standard
24666 The bibliography can be formatted using 
24667 \begin_inset Flex Code
24668 status collapsed
24669
24670 \begin_layout Plain Layout
24671 CiteFormat
24672 \end_layout
24673
24674 \end_inset
24675
24676  blocks.
24677  See 
24678 \begin_inset CommandInset ref
24679 LatexCommand ref
24680 reference "subsec:Citation-format-description"
24681
24682 \end_inset
24683
24684  for the details.
24685 \end_layout
24686
24687 \begin_layout Subsection
24688 \SpecialChar LyX
24689 -generated CSS
24690 \end_layout
24691
24692 \begin_layout Standard
24693 We have several times mentioned that \SpecialChar LyX
24694  will generate default CSS style rules
24695  for both insets and paragraph styles, based upon the other layout information
24696  that is provided.
24697  In this section, we shall say a word about which layout information \SpecialChar LyX
24698  uses
24699  and how.
24700 \end_layout
24701
24702 \begin_layout Standard
24703 At present, \SpecialChar LyX
24704  auto-generates CSS only for font information, making use of
24705  the 
24706 \begin_inset Flex Code
24707 status collapsed
24708
24709 \begin_layout Plain Layout
24710 Family
24711 \end_layout
24712
24713 \end_inset
24714
24715
24716 \begin_inset Flex Code
24717 status collapsed
24718
24719 \begin_layout Plain Layout
24720 Series
24721 \end_layout
24722
24723 \end_inset
24724
24725
24726 \begin_inset Flex Code
24727 status collapsed
24728
24729 \begin_layout Plain Layout
24730 Shape
24731 \end_layout
24732
24733 \end_inset
24734
24735 , and 
24736 \begin_inset Flex Code
24737 status collapsed
24738
24739 \begin_layout Plain Layout
24740 Size
24741 \end_layout
24742
24743 \end_inset
24744
24745  specified in the 
24746 \begin_inset Flex Code
24747 status collapsed
24748
24749 \begin_layout Plain Layout
24750 Font
24751 \end_layout
24752
24753 \end_inset
24754
24755  declaration (see 
24756 \begin_inset CommandInset ref
24757 LatexCommand ref
24758 reference "subsec:Font-description"
24759
24760 \end_inset
24761
24762 ).
24763  The translation is mostly straightforward and obvious.
24764  For example, 
24765 \begin_inset Quotes eld
24766 \end_inset
24767
24768
24769 \begin_inset Flex Code
24770 status collapsed
24771
24772 \begin_layout Plain Layout
24773 Family Sans
24774 \end_layout
24775
24776 \end_inset
24777
24778
24779 \begin_inset Quotes erd
24780 \end_inset
24781
24782  becomes 
24783 \begin_inset Quotes eld
24784 \end_inset
24785
24786
24787 \begin_inset Flex Code
24788 status collapsed
24789
24790 \begin_layout Plain Layout
24791 font-family: sans-serif;
24792 \end_layout
24793
24794 \end_inset
24795
24796
24797 \begin_inset Quotes erd
24798 \end_inset
24799
24800 .
24801  The correspondence of \SpecialChar LyX
24802  sizes and CSS sizes is a little less obvious but
24803  nonetheless intuitive.
24804  See the 
24805 \begin_inset Flex Code
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809 getSizeCSS()
24810 \end_layout
24811
24812 \end_inset
24813
24814  function in 
24815 \begin_inset Flex URL
24816 status collapsed
24817
24818 \begin_layout Plain Layout
24819
24820 src/FontInfo.cpp
24821 \end_layout
24822
24823 \end_inset
24824
24825  for the details.
24826 \end_layout
24827
24828 \begin_layout Chapter
24829 Including External Material
24830 \begin_inset CommandInset label
24831 LatexCommand label
24832 name "chap:Including-External-Material"
24833
24834 \end_inset
24835
24836
24837 \end_layout
24838
24839 \begin_layout Standard
24840 \begin_inset Box Shadowbox
24841 position "t"
24842 hor_pos "c"
24843 has_inner_box 1
24844 inner_pos "t"
24845 use_parbox 0
24846 use_makebox 0
24847 width "100col%"
24848 special "none"
24849 height "1in"
24850 height_special "totalheight"
24851 thickness "0.4pt"
24852 separation "3pt"
24853 shadowsize "4pt"
24854 framecolor "black"
24855 backgroundcolor "none"
24856 status open
24857
24858 \begin_layout Plain Layout
24859 WARNING: This portion of the documentation has not been updated for some
24860  time.
24861  We certainly hope that it is still accurate, but there are no guarantees.
24862 \end_layout
24863
24864 \end_inset
24865
24866
24867 \end_layout
24868
24869 \begin_layout Standard
24870 The use of material from sources external to \SpecialChar LyX
24871  is covered in detail in the
24872  
24873 \emph on
24874 Embedded Objects
24875 \emph default
24876  manual.
24877  This part of the manual covers what needs to happen behind the scenes for
24878  new sorts of material to be included.
24879 \end_layout
24880
24881 \begin_layout Section
24882 How does it work?
24883 \end_layout
24884
24885 \begin_layout Standard
24886 The external material feature is based on the concept of a 
24887 \emph on
24888 template
24889 \emph default
24890 .
24891  A template is a specification of how \SpecialChar LyX
24892  should interface with a certain kind
24893  of material.
24894  As bundled, \SpecialChar LyX
24895  comes with predefined templates for Xfig figures, various
24896  raster format images, chess diagrams, and LilyPond music notation.
24897  You can check the actual list by using the menu 
24898 \begin_inset Flex Noun
24899 status collapsed
24900
24901 \begin_layout Plain Layout
24902 Insert\SpecialChar menuseparator
24903 File\SpecialChar menuseparator
24904 External Material
24905 \end_layout
24906
24907 \end_inset
24908
24909 .
24910  Furthermore, it is possible to roll your own template to support a specific
24911  kind of material.
24912  Later we'll describe in more detail what is involved, and hopefully you
24913  will submit all the templates you create so we can include them in a later
24914  \SpecialChar LyX
24915  version.
24916 \end_layout
24917
24918 \begin_layout Standard
24919 Another basic idea of the external material feature is to distinguish between
24920  the original file that serves as a base for final material and the produced
24921  file that is included in your exported or printed document.
24922  For example, consider the case of a figure produced with 
24923 \begin_inset Flex Code
24924 status collapsed
24925
24926 \begin_layout Plain Layout
24927 Xfig
24928 \end_layout
24929
24930 \end_inset
24931
24932 .
24933  The Xfig application itself works on an original file with the 
24934 \begin_inset Flex Code
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938 .fig
24939 \end_layout
24940
24941 \end_inset
24942
24943  extension.
24944  Within Xfig, you create and change your figure, and when you are done,
24945  you save the 
24946 \begin_inset Flex Code
24947 status collapsed
24948
24949 \begin_layout Plain Layout
24950 fig
24951 \end_layout
24952
24953 \end_inset
24954
24955 -file.
24956  When you want to include the figure in your document, you invoke 
24957 \begin_inset Flex Code
24958 status collapsed
24959
24960 \begin_layout Plain Layout
24961 transfig
24962 \end_layout
24963
24964 \end_inset
24965
24966  in order to create a PostScript file that can readily be included in your
24967  \SpecialChar LaTeX
24968  file.
24969  In this case, the 
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974 .fig
24975 \end_layout
24976
24977 \end_inset
24978
24979  file is the original file, and the PostScript file is the produced file.
24980 \end_layout
24981
24982 \begin_layout Standard
24983 This distinction is important in order to allow updating of the material
24984  while you are in the process of writing the document.
24985  Furthermore, it provides us with the flexibility that is needed to support
24986  multiple export formats.
24987  For instance, in the case of a plain text file, it is not exactly an award-winn
24988 ing idea to include the figure as raw PostScript.
24989  Instead, you would either prefer to just include a reference to the figure
24990  or try to invoke some graphics to ASCII converter to make the final result
24991  look similar to the real graphics.
24992  The external material management allows you to do this, because it is parametri
24993 zed on the different export formats that \SpecialChar LyX
24994  supports.
24995 \end_layout
24996
24997 \begin_layout Standard
24998 Besides supporting the production of different products according to the
24999  exported format, it supports tight integration with editing and viewing
25000  applications.
25001  In the case of an Xfig figure, you are able to invoke Xfig on the original
25002  file with a single click from within the external material dialog in \SpecialChar LyX
25003 ,
25004  and also preview the produced PostScript file with Ghostview with another
25005  click.
25006  No more fiddling around with the command line and/or file browsers to locate
25007  and manipulate the original or produced files.
25008  In this way, you are finally able to take full advantage of the many different
25009  applications that are relevant to use when you write your documents, and
25010  ultimately be more productive.
25011 \end_layout
25012
25013 \begin_layout Section
25014 The external template configuration files
25015 \end_layout
25016
25017 \begin_layout Standard
25018 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25019 .
25020  However, be aware that doing this in an careless manner most probably 
25021 \emph on
25022 will
25023 \emph default
25024  introduce an easily exploitable security hole.
25025  So before you do this, please read the discussion about security in 
25026 \begin_inset CommandInset ref
25027 LatexCommand ref
25028 reference "sec:Security-discussion"
25029
25030 \end_inset
25031
25032 .
25033 \end_layout
25034
25035 \begin_layout Standard
25036 Having said that, we encourage you to submit any interesting templates that
25037  you create.
25038  
25039 \end_layout
25040
25041 \begin_layout Standard
25042 The external templates are defined in the 
25043 \begin_inset Flex Code
25044 status collapsed
25045
25046 \begin_layout Plain Layout
25047 *.xtemplate
25048 \end_layout
25049
25050 \end_inset
25051
25052  files that are stored in the 
25053 \begin_inset Flex Code
25054 status collapsed
25055
25056 \begin_layout Plain Layout
25057 LyXDir/lib/xtemplates/
25058 \end_layout
25059
25060 \end_inset
25061
25062  directory.
25063  Each template is defined in a file of its own.
25064  You can place your own templates in 
25065 \begin_inset Flex Code
25066 status collapsed
25067
25068 \begin_layout Plain Layout
25069 UserDir/xtemplates/
25070 \end_layout
25071
25072 \end_inset
25073
25074  or copy existing templates to that directory in order to modify them.
25075 \end_layout
25076
25077 \begin_layout Standard
25078 A typical template looks like this:
25079 \end_layout
25080
25081 \begin_layout LyX-Code
25082 Template XFig
25083 \end_layout
25084
25085 \begin_layout LyX-Code
25086 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25087 \end_layout
25088
25089 \begin_layout LyX-Code
25090 HelpText
25091 \end_layout
25092
25093 \begin_layout LyX-Code
25094 An XFig figure.
25095 \end_layout
25096
25097 \begin_layout LyX-Code
25098 HelpTextEnd
25099 \end_layout
25100
25101 \begin_layout LyX-Code
25102 InputFormat fig
25103 \end_layout
25104
25105 \begin_layout LyX-Code
25106 FileFilter "*.fig"
25107 \end_layout
25108
25109 \begin_layout LyX-Code
25110 AutomaticProduction true
25111 \end_layout
25112
25113 \begin_layout LyX-Code
25114 Transform Rotate
25115 \end_layout
25116
25117 \begin_layout LyX-Code
25118 Transform Resize
25119 \end_layout
25120
25121 \begin_layout LyX-Code
25122 Format LaTeX
25123 \end_layout
25124
25125 \begin_layout LyX-Code
25126 TransformCommand Rotate RotationLatexCommand
25127 \end_layout
25128
25129 \begin_layout LyX-Code
25130 TransformCommand Resize ResizeLatexCommand
25131 \end_layout
25132
25133 \begin_layout LyX-Code
25134 Product "$$RotateFront$$ResizeFront
25135 \end_layout
25136
25137 \begin_layout LyX-Code
25138          
25139 \backslash
25140
25141 \backslash
25142 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25143 \end_layout
25144
25145 \begin_layout LyX-Code
25146          $$ResizeBack$$RotateBack"
25147 \end_layout
25148
25149 \begin_layout LyX-Code
25150 UpdateFormat pstex
25151 \end_layout
25152
25153 \begin_layout LyX-Code
25154 UpdateResult "$$AbsPath$$Basename.pstex_t"
25155 \end_layout
25156
25157 \begin_layout LyX-Code
25158 Requirement "graphicx"
25159 \end_layout
25160
25161 \begin_layout LyX-Code
25162 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25163 \end_layout
25164
25165 \begin_layout LyX-Code
25166 ReferencedFile latex "$$AbsPath$$Basename.eps"
25167 \end_layout
25168
25169 \begin_layout LyX-Code
25170 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25171 \end_layout
25172
25173 \begin_layout LyX-Code
25174 FormatEnd
25175 \end_layout
25176
25177 \begin_layout LyX-Code
25178 Format PDFLaTeX
25179 \end_layout
25180
25181 \begin_layout LyX-Code
25182 TransformCommand Rotate RotationLatexCommand
25183 \end_layout
25184
25185 \begin_layout LyX-Code
25186 TransformCommand Resize ResizeLatexCommand
25187 \end_layout
25188
25189 \begin_layout LyX-Code
25190 Product "$$RotateFront$$ResizeFront
25191 \end_layout
25192
25193 \begin_layout LyX-Code
25194          
25195 \backslash
25196
25197 \backslash
25198 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25199 \end_layout
25200
25201 \begin_layout LyX-Code
25202          $$ResizeBack$$RotateBack"
25203 \end_layout
25204
25205 \begin_layout LyX-Code
25206 UpdateFormat pdftex
25207 \end_layout
25208
25209 \begin_layout LyX-Code
25210 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25211 \end_layout
25212
25213 \begin_layout LyX-Code
25214 Requirement "graphicx"
25215 \end_layout
25216
25217 \begin_layout LyX-Code
25218 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25219 \end_layout
25220
25221 \begin_layout LyX-Code
25222 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25223 \end_layout
25224
25225 \begin_layout LyX-Code
25226 FormatEnd
25227 \end_layout
25228
25229 \begin_layout LyX-Code
25230 Format Ascii
25231 \end_layout
25232
25233 \begin_layout LyX-Code
25234 Product "[XFig: $$FName]"
25235 \end_layout
25236
25237 \begin_layout LyX-Code
25238 FormatEnd
25239 \end_layout
25240
25241 \begin_layout LyX-Code
25242 Format DocBook
25243 \end_layout
25244
25245 \begin_layout LyX-Code
25246 Product "<graphic fileref=
25247 \backslash
25248 "$$AbsOrRelPathMaster$$Basename.eps
25249 \backslash
25250 ">
25251 \end_layout
25252
25253 \begin_layout LyX-Code
25254          </graphic>"
25255 \end_layout
25256
25257 \begin_layout LyX-Code
25258 UpdateFormat eps
25259 \end_layout
25260
25261 \begin_layout LyX-Code
25262 UpdateResult "$$AbsPath$$Basename.eps"
25263 \end_layout
25264
25265 \begin_layout LyX-Code
25266 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25267 \end_layout
25268
25269 \begin_layout LyX-Code
25270 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25271 \end_layout
25272
25273 \begin_layout LyX-Code
25274 FormatEnd
25275 \end_layout
25276
25277 \begin_layout LyX-Code
25278 TemplateEnd
25279 \end_layout
25280
25281 \begin_layout Standard
25282 As you can see, the template is enclosed in 
25283 \begin_inset Flex Code
25284 status collapsed
25285
25286 \begin_layout Plain Layout
25287 Template
25288 \end_layout
25289
25290 \end_inset
25291
25292  \SpecialChar ldots
25293  
25294 \begin_inset Flex Code
25295 status collapsed
25296
25297 \begin_layout Plain Layout
25298 TemplateEnd
25299 \end_layout
25300
25301 \end_inset
25302
25303 .
25304  It contains a header specifying some general settings and, for each supported
25305  primary document file format, a section 
25306 \begin_inset Flex Code
25307 status collapsed
25308
25309 \begin_layout Plain Layout
25310 Format
25311 \end_layout
25312
25313 \end_inset
25314
25315  \SpecialChar ldots
25316  
25317 \begin_inset Flex Code
25318 status collapsed
25319
25320 \begin_layout Plain Layout
25321 FormatEnd
25322 \end_layout
25323
25324 \end_inset
25325
25326 .
25327 \end_layout
25328
25329 \begin_layout Subsection
25330 The template header
25331 \end_layout
25332
25333 \begin_layout Description
25334 \begin_inset Flex Code
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338 AutomaticProduction
25339 \begin_inset space ~
25340 \end_inset
25341
25342 true|false
25343 \end_layout
25344
25345 \end_inset
25346
25347  Whether the file represented by the template must be generated by \SpecialChar LyX
25348 .
25349  This command must occur exactly once.
25350 \end_layout
25351
25352 \begin_layout Description
25353 \begin_inset Flex Code
25354 status collapsed
25355
25356 \begin_layout Plain Layout
25357 FileFilter
25358 \begin_inset space ~
25359 \end_inset
25360
25361 <pattern>
25362 \end_layout
25363
25364 \end_inset
25365
25366  A glob pattern that is used in the file dialog to filter out the desired
25367  files.
25368  If there is more than one possible file extension (e.
25369 \begin_inset space \thinspace{}
25370 \end_inset
25371
25372 g.
25373 \begin_inset space \space{}
25374 \end_inset
25375
25376 tgif has 
25377 \begin_inset Flex Code
25378 status collapsed
25379
25380 \begin_layout Plain Layout
25381 .obj
25382 \end_layout
25383
25384 \end_inset
25385
25386  and 
25387 \begin_inset Flex Code
25388 status collapsed
25389
25390 \begin_layout Plain Layout
25391 .tgo
25392 \end_layout
25393
25394 \end_inset
25395
25396 ), use something like 
25397 \begin_inset Flex Code
25398 status collapsed
25399
25400 \begin_layout Plain Layout
25401 "*.{obj,tgo}"
25402 \end_layout
25403
25404 \end_inset
25405
25406 .
25407  This command must occur exactly once.
25408 \end_layout
25409
25410 \begin_layout Description
25411 \begin_inset Flex Code
25412 status collapsed
25413
25414 \begin_layout Plain Layout
25415 GuiName
25416 \begin_inset space ~
25417 \end_inset
25418
25419 <guiname>
25420 \end_layout
25421
25422 \end_inset
25423
25424  The text that is displayed on the button.
25425  This command must occur exactly once.
25426 \end_layout
25427
25428 \begin_layout Description
25429 \begin_inset Flex Code
25430 status collapsed
25431
25432 \begin_layout Plain Layout
25433 HelpText
25434 \begin_inset space ~
25435 \end_inset
25436
25437 <text>
25438 \begin_inset space ~
25439 \end_inset
25440
25441 HelpTextEnd
25442 \end_layout
25443
25444 \end_inset
25445
25446  The help text that is used in the External dialog.
25447  Provide enough information to explain to the user just what the template
25448  can provide him with.
25449  This command must occur exactly once.
25450 \end_layout
25451
25452 \begin_layout Description
25453 \begin_inset Flex Code
25454 status collapsed
25455
25456 \begin_layout Plain Layout
25457 InputFormat
25458 \begin_inset space ~
25459 \end_inset
25460
25461 <format>
25462 \end_layout
25463
25464 \end_inset
25465
25466  The file format of the original file.
25467  This must be the name of a format that is known to \SpecialChar LyX
25468  (see 
25469 \begin_inset CommandInset ref
25470 LatexCommand ref
25471 reference "sec:Formats"
25472
25473 \end_inset
25474
25475 ).
25476  Use 
25477 \begin_inset Quotes eld
25478 \end_inset
25479
25480
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 *
25486 \end_layout
25487
25488 \end_inset
25489
25490
25491 \begin_inset Quotes erd
25492 \end_inset
25493
25494  if the template can handle original files of more than one format.
25495  \SpecialChar LyX
25496  will attempt to interrogate the file itself in order to deduce its format
25497  in this case.
25498  This command must occur exactly once.
25499 \end_layout
25500
25501 \begin_layout Description
25502 \begin_inset Flex Code
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506 Template
25507 \begin_inset space ~
25508 \end_inset
25509
25510 <id>
25511 \end_layout
25512
25513 \end_inset
25514
25515  A unique name for the template.
25516  It must not contain substitution macros (see below).
25517 \end_layout
25518
25519 \begin_layout Description
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524 Transform
25525 \begin_inset space ~
25526 \end_inset
25527
25528 Rotate|Resize|Clip|Extra
25529 \end_layout
25530
25531 \end_inset
25532
25533  This command specifies which transformations are supported by this template.
25534  It may occur zero or more times.
25535  This command enables the corresponding tabs in the external dialog.
25536  Each 
25537 \begin_inset Flex Code
25538 status collapsed
25539
25540 \begin_layout Plain Layout
25541 Transform
25542 \end_layout
25543
25544 \end_inset
25545
25546  command must have either a corresponding 
25547 \begin_inset Flex Code
25548 status collapsed
25549
25550 \begin_layout Plain Layout
25551 TransformCommand
25552 \end_layout
25553
25554 \end_inset
25555
25556  or a 
25557 \begin_inset Flex Code
25558 status collapsed
25559
25560 \begin_layout Plain Layout
25561 TransformOption
25562 \end_layout
25563
25564 \end_inset
25565
25566  command in the 
25567 \begin_inset Flex Code
25568 status collapsed
25569
25570 \begin_layout Plain Layout
25571 Format
25572 \end_layout
25573
25574 \end_inset
25575
25576  section.
25577  Otherwise the transformation will not be supported by that format.
25578 \end_layout
25579
25580 \begin_layout Subsection
25581 The Format section
25582 \end_layout
25583
25584 \begin_layout Description
25585 \begin_inset Flex Code
25586 status collapsed
25587
25588 \begin_layout Plain Layout
25589 Format
25590 \begin_inset space ~
25591 \end_inset
25592
25593 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25594 \end_layout
25595
25596 \end_inset
25597
25598  The primary document file format that this format definition is for.
25599  Not every template has a sensible representation in all document file formats.
25600  Please define nevertheless a 
25601 \begin_inset Flex Code
25602 status collapsed
25603
25604 \begin_layout Plain Layout
25605 Format
25606 \end_layout
25607
25608 \end_inset
25609
25610  section for all templates.
25611  Use a dummy text when no representation is available.
25612  Then you can at least see a reference to the external material in the exported
25613  document.
25614 \end_layout
25615
25616 \begin_layout Description
25617 \begin_inset Flex Code
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 Option
25622 \begin_inset space ~
25623 \end_inset
25624
25625 <name>
25626 \begin_inset space ~
25627 \end_inset
25628
25629 <value>
25630 \end_layout
25631
25632 \end_inset
25633
25634  This command defines an additional macro 
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 $$<name>
25640 \end_layout
25641
25642 \end_inset
25643
25644  for substitution in 
25645 \begin_inset Flex Code
25646 status collapsed
25647
25648 \begin_layout Plain Layout
25649 Product
25650 \end_layout
25651
25652 \end_inset
25653
25654 .
25655  
25656 \begin_inset Flex Code
25657 status collapsed
25658
25659 \begin_layout Plain Layout
25660 <value>
25661 \end_layout
25662
25663 \end_inset
25664
25665  itself may contain substitution macros.
25666  The advantage over using 
25667 \begin_inset Flex Code
25668 status collapsed
25669
25670 \begin_layout Plain Layout
25671 <value>
25672 \end_layout
25673
25674 \end_inset
25675
25676  directly in 
25677 \begin_inset Flex Code
25678 status collapsed
25679
25680 \begin_layout Plain Layout
25681 Product
25682 \end_layout
25683
25684 \end_inset
25685
25686  is that the substituted value of 
25687 \begin_inset Flex Code
25688 status collapsed
25689
25690 \begin_layout Plain Layout
25691 $$<name>
25692 \end_layout
25693
25694 \end_inset
25695
25696  is sanitized so that it is a valid optional argument in the document format.
25697  This command may occur zero or more times.
25698 \end_layout
25699
25700 \begin_layout Description
25701 \begin_inset Flex Code
25702 status collapsed
25703
25704 \begin_layout Plain Layout
25705 Product
25706 \begin_inset space ~
25707 \end_inset
25708
25709 <text>
25710 \end_layout
25711
25712 \end_inset
25713
25714  The text that is inserted in the exported document.
25715  This is actually the most important command and can be quite complex.
25716  This command must occur exactly once.
25717 \end_layout
25718
25719 \begin_layout Description
25720 \begin_inset Flex Code
25721 status collapsed
25722
25723 \begin_layout Plain Layout
25724 Preamble
25725 \begin_inset space ~
25726 \end_inset
25727
25728 <name>
25729 \end_layout
25730
25731 \end_inset
25732
25733  This command specifies a preamble snippet that will be included in the
25734  \SpecialChar LaTeX
25735  preamble.
25736  It has to be defined using 
25737 \begin_inset Flex Code
25738 status collapsed
25739
25740 \begin_layout Plain Layout
25741 PreambleDef
25742 \end_layout
25743
25744 \end_inset
25745
25746  \SpecialChar ldots
25747  
25748 \begin_inset Flex Code
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 PreambleDefEnd
25753 \end_layout
25754
25755 \end_inset
25756
25757 .
25758  This command may occur zero or more times.
25759 \end_layout
25760
25761 \begin_layout Description
25762 \begin_inset Flex Code
25763 status collapsed
25764
25765 \begin_layout Plain Layout
25766 ReferencedFile
25767 \begin_inset space ~
25768 \end_inset
25769
25770 <format>
25771 \begin_inset space ~
25772 \end_inset
25773
25774 <filename>
25775 \end_layout
25776
25777 \end_inset
25778
25779  This command denotes files that are created by the conversion process and
25780  are needed for a particular export format.
25781  If the filename is relative, it is interpreted relative to the master document.
25782  This command may be given zero or more times.
25783 \end_layout
25784
25785 \begin_layout Description
25786 \begin_inset Flex Code
25787 status collapsed
25788
25789 \begin_layout Plain Layout
25790 Requirement
25791 \begin_inset space ~
25792 \end_inset
25793
25794 <package>
25795 \end_layout
25796
25797 \end_inset
25798
25799  The name of a required \SpecialChar LaTeX
25800  package.
25801  The package is included via 
25802 \begin_inset Flex Code
25803 status collapsed
25804
25805 \begin_layout Plain Layout
25806
25807 \backslash
25808 usepackage{}
25809 \end_layout
25810
25811 \end_inset
25812
25813  in the \SpecialChar LaTeX
25814  preamble.
25815  This command may occur zero or more times.
25816 \end_layout
25817
25818 \begin_layout Description
25819 \begin_inset Flex Code
25820 status collapsed
25821
25822 \begin_layout Plain Layout
25823 TransformCommand
25824 \begin_inset space ~
25825 \end_inset
25826
25827 Rotate
25828 \begin_inset space ~
25829 \end_inset
25830
25831 RotationLatexCommand
25832 \end_layout
25833
25834 \end_inset
25835
25836  This command specifies that the built in \SpecialChar LaTeX
25837  command should be used for rotation.
25838  This command may occur once or not at all.
25839 \end_layout
25840
25841 \begin_layout Description
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 TransformCommand
25847 \begin_inset space ~
25848 \end_inset
25849
25850 Resize
25851 \begin_inset space ~
25852 \end_inset
25853
25854 ResizeLatexCommand
25855 \end_layout
25856
25857 \end_inset
25858
25859  This command specifies that the built in \SpecialChar LaTeX
25860  command should be used for resizing.
25861  This command may occur once or not at all.
25862 \end_layout
25863
25864 \begin_layout Description
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 TransformOption
25870 \begin_inset space ~
25871 \end_inset
25872
25873 Rotate
25874 \begin_inset space ~
25875 \end_inset
25876
25877 RotationLatexOption
25878 \end_layout
25879
25880 \end_inset
25881
25882  This command specifies that rotation is done via an optional argument.
25883  This command may occur once or not at all.
25884 \end_layout
25885
25886 \begin_layout Description
25887 \begin_inset Flex Code
25888 status collapsed
25889
25890 \begin_layout Plain Layout
25891 TransformOption
25892 \begin_inset space ~
25893 \end_inset
25894
25895 Resize
25896 \begin_inset space ~
25897 \end_inset
25898
25899 ResizeLatexOption
25900 \end_layout
25901
25902 \end_inset
25903
25904  This command specifies that resizing is done via an optional argument.
25905  This command may occur once or not at all.
25906 \end_layout
25907
25908 \begin_layout Description
25909 \begin_inset Flex Code
25910 status collapsed
25911
25912 \begin_layout Plain Layout
25913 TransformOption
25914 \begin_inset space ~
25915 \end_inset
25916
25917 Clip
25918 \begin_inset space ~
25919 \end_inset
25920
25921 ClipLatexOption
25922 \end_layout
25923
25924 \end_inset
25925
25926  This command specifies that clipping is done via an optional argument.
25927  This command may occur once or not at all.
25928 \end_layout
25929
25930 \begin_layout Description
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 TransformOption
25936 \begin_inset space ~
25937 \end_inset
25938
25939 Extra
25940 \begin_inset space ~
25941 \end_inset
25942
25943 ExtraLatexOption
25944 \end_layout
25945
25946 \end_inset
25947
25948  This command specifies that an extra optional argument is used.
25949  This command may occur once or not at all.
25950 \end_layout
25951
25952 \begin_layout Description
25953 \begin_inset Flex Code
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957 UpdateFormat
25958 \begin_inset space ~
25959 \end_inset
25960
25961 <format>
25962 \end_layout
25963
25964 \end_inset
25965
25966  The file format of the converted file.
25967  This must be the name of a format that is known to \SpecialChar LyX
25968  (see the 
25969 \begin_inset Flex Noun
25970 status collapsed
25971
25972 \begin_layout Plain Layout
25973 Tools\SpecialChar menuseparator
25974 Preferences\SpecialChar menuseparator
25975 File Handling\SpecialChar menuseparator
25976 File Format
25977 \end_layout
25978
25979 \end_inset
25980
25981  dialog).
25982  This command must occur exactly once.
25983  If the resulting file format is PDF, you need to specify the format 
25984 \begin_inset Flex Code
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 pdf6
25989 \end_layout
25990
25991 \end_inset
25992
25993 .
25994  This is the PDF format used for including graphics.
25995  The other defined PDF formats are for document export.
25996 \end_layout
25997
25998 \begin_layout Description
25999 \begin_inset Flex Code
26000 status collapsed
26001
26002 \begin_layout Plain Layout
26003 UpdateResult
26004 \begin_inset space ~
26005 \end_inset
26006
26007 <filename>
26008 \end_layout
26009
26010 \end_inset
26011
26012  The file name of the converted file.
26013  The file name must be absolute.
26014  This command must occur exactly once.
26015 \end_layout
26016
26017 \begin_layout Subsection
26018 Preamble definitions
26019 \end_layout
26020
26021 \begin_layout Standard
26022 The external template configuration file may contain additional preamble
26023  definitions enclosed by 
26024 \begin_inset Flex Code
26025 status collapsed
26026
26027 \begin_layout Plain Layout
26028 PreambleDef
26029 \end_layout
26030
26031 \end_inset
26032
26033  \SpecialChar ldots
26034  
26035 \begin_inset Flex Code
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 PreambleDefEnd
26040 \end_layout
26041
26042 \end_inset
26043
26044 .
26045  They can be used by the templates in the 
26046 \begin_inset Flex Code
26047 status collapsed
26048
26049 \begin_layout Plain Layout
26050 Format
26051 \end_layout
26052
26053 \end_inset
26054
26055  section.
26056 \end_layout
26057
26058 \begin_layout Section
26059 The substitution mechanism
26060 \end_layout
26061
26062 \begin_layout Standard
26063 When the external material facility invokes an external program, it is done
26064  on the basis of a command defined in the template configuration file.
26065  These commands can contain various macros that are expanded before execution.
26066  Execution always take place in the directory of the containing document.
26067 \end_layout
26068
26069 \begin_layout Standard
26070 Also, whenever external material is to be displayed, the name will be produced
26071  by the substitution mechanism, and most other commands in the template
26072  definition support substitution as well.
26073 \end_layout
26074
26075 \begin_layout Standard
26076 The available macros are the following:
26077 \end_layout
26078
26079 \begin_layout Description
26080 \begin_inset Flex Code
26081 status collapsed
26082
26083 \begin_layout Plain Layout
26084 $$AbsOrRelPathMaster
26085 \end_layout
26086
26087 \end_inset
26088
26089  The file path, absolute or relative to the master \SpecialChar LyX
26090  document.
26091 \end_layout
26092
26093 \begin_layout Description
26094 \begin_inset Flex Code
26095 status collapsed
26096
26097 \begin_layout Plain Layout
26098 $$AbsOrRelPathParent
26099 \end_layout
26100
26101 \end_inset
26102
26103  The file path, absolute or relative to the \SpecialChar LyX
26104  document.
26105 \end_layout
26106
26107 \begin_layout Description
26108 \begin_inset Flex Code
26109 status collapsed
26110
26111 \begin_layout Plain Layout
26112 $$AbsPath
26113 \end_layout
26114
26115 \end_inset
26116
26117  The absolute file path.
26118 \end_layout
26119
26120 \begin_layout Description
26121 \begin_inset Flex Code
26122 status collapsed
26123
26124 \begin_layout Plain Layout
26125 $$Basename
26126 \end_layout
26127
26128 \end_inset
26129
26130  The filename without path and without the extension.
26131 \end_layout
26132
26133 \begin_layout Description
26134 \begin_inset Flex Code
26135 status collapsed
26136
26137 \begin_layout Plain Layout
26138 $$Contents(
26139 \begin_inset Quotes eld
26140 \end_inset
26141
26142 filename.ext
26143 \begin_inset Quotes erd
26144 \end_inset
26145
26146 )
26147 \end_layout
26148
26149 \end_inset
26150
26151  This macro will expand to the contents of the file with the name 
26152 \begin_inset Flex Code
26153 status collapsed
26154
26155 \begin_layout Plain Layout
26156 filename.ext
26157 \end_layout
26158
26159 \end_inset
26160
26161 .
26162 \end_layout
26163
26164 \begin_layout Description
26165 \begin_inset Flex Code
26166 status collapsed
26167
26168 \begin_layout Plain Layout
26169 $$Extension
26170 \end_layout
26171
26172 \end_inset
26173
26174  The file extension (including the dot).
26175 \end_layout
26176
26177 \begin_layout Description
26178 \begin_inset Flex Code
26179 status collapsed
26180
26181 \begin_layout Plain Layout
26182 $$pngOrjpg
26183 \end_layout
26184
26185 \end_inset
26186
26187  This will be the string 
26188 \begin_inset Quotes eld
26189 \end_inset
26190
26191 jpg
26192 \begin_inset Quotes erd
26193 \end_inset
26194
26195  if the file is in JPEG format, otherwise it will be the string 
26196 \begin_inset Quotes eld
26197 \end_inset
26198
26199 png
26200 \begin_inset Quotes erd
26201 \end_inset
26202
26203 .
26204  This is useful to avoid uneeded conversions for output formats that support
26205  both PNG and JPEG fomats.
26206  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26207  output
26208  format.
26209 \end_layout
26210
26211 \begin_layout Description
26212 \begin_inset Flex Code
26213 status collapsed
26214
26215 \begin_layout Plain Layout
26216 $$FName
26217 \end_layout
26218
26219 \end_inset
26220
26221  The filename of the file specified in the external material dialog.
26222  This is either an absolute name, or it is relative to the \SpecialChar LyX
26223  document.
26224 \end_layout
26225
26226 \begin_layout Description
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 $$FPath
26232 \end_layout
26233
26234 \end_inset
26235
26236  The path part of 
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 $$FName
26242 \end_layout
26243
26244 \end_inset
26245
26246  (absolute name or relative to the \SpecialChar LyX
26247  document).
26248 \end_layout
26249
26250 \begin_layout Description
26251 \begin_inset Flex Code
26252 status collapsed
26253
26254 \begin_layout Plain Layout
26255 $$RelPathMaster
26256 \end_layout
26257
26258 \end_inset
26259
26260  The file path, relative to the master \SpecialChar LyX
26261  document.
26262 \end_layout
26263
26264 \begin_layout Description
26265 \begin_inset Flex Code
26266 status collapsed
26267
26268 \begin_layout Plain Layout
26269 $$RelPathParent
26270 \end_layout
26271
26272 \end_inset
26273
26274  The file path, relative to the \SpecialChar LyX
26275  document.
26276 \end_layout
26277
26278 \begin_layout Description
26279 \begin_inset Flex Code
26280 status collapsed
26281
26282 \begin_layout Plain Layout
26283 $$Sysdir
26284 \end_layout
26285
26286 \end_inset
26287
26288  This macro will expand to the absolute path of the system directory.
26289  This is typically used to point to the various helper scripts that are
26290  bundled with \SpecialChar LyX
26291 .
26292 \end_layout
26293
26294 \begin_layout Description
26295 \begin_inset Flex Code
26296 status collapsed
26297
26298 \begin_layout Plain Layout
26299 $$Tempname
26300 \end_layout
26301
26302 \end_inset
26303
26304  A name and full path to a temporary file which will be automatically deleted
26305  whenever the containing document is closed, or the external material insertion
26306  deleted.
26307 \end_layout
26308
26309 \begin_layout Standard
26310 All path macros contain a trailing directory separator, so you can construct
26311  e.
26312 \begin_inset space \thinspace{}
26313 \end_inset
26314
26315 g.
26316 \begin_inset space \space{}
26317 \end_inset
26318
26319 the absolute filename with 
26320 \begin_inset Flex Code
26321 status collapsed
26322
26323 \begin_layout Plain Layout
26324 $$AbsPath$$Basename$$Extension
26325 \end_layout
26326
26327 \end_inset
26328
26329 .
26330 \end_layout
26331
26332 \begin_layout Standard
26333 The macros above are substituted in all commands unless otherwise noted.
26334  The command 
26335 \begin_inset Flex Code
26336 status collapsed
26337
26338 \begin_layout Plain Layout
26339 Product
26340 \end_layout
26341
26342 \end_inset
26343
26344  supports additionally the following substitutions if they are enabled by
26345  the 
26346 \begin_inset Flex Code
26347 status collapsed
26348
26349 \begin_layout Plain Layout
26350 Transform
26351 \end_layout
26352
26353 \end_inset
26354
26355  and 
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360 TransformCommand
26361 \end_layout
26362
26363 \end_inset
26364
26365  commands:
26366 \end_layout
26367
26368 \begin_layout Description
26369 \begin_inset Flex Code
26370 status collapsed
26371
26372 \begin_layout Plain Layout
26373 $$ResizeFront
26374 \end_layout
26375
26376 \end_inset
26377
26378  The front part of the resize command.
26379 \end_layout
26380
26381 \begin_layout Description
26382 \begin_inset Flex Code
26383 status collapsed
26384
26385 \begin_layout Plain Layout
26386 $$ResizeBack
26387 \end_layout
26388
26389 \end_inset
26390
26391  The back part of the resize command.
26392 \end_layout
26393
26394 \begin_layout Description
26395 \begin_inset Flex Code
26396 status collapsed
26397
26398 \begin_layout Plain Layout
26399 $$RotateFront
26400 \end_layout
26401
26402 \end_inset
26403
26404  The front part of the rotation command.
26405 \end_layout
26406
26407 \begin_layout Description
26408 \begin_inset Flex Code
26409 status collapsed
26410
26411 \begin_layout Plain Layout
26412 $$RotateBack
26413 \end_layout
26414
26415 \end_inset
26416
26417  The back part of the rotation command.
26418 \end_layout
26419
26420 \begin_layout Standard
26421 The value string of the 
26422 \begin_inset Flex Code
26423 status collapsed
26424
26425 \begin_layout Plain Layout
26426 Option
26427 \end_layout
26428
26429 \end_inset
26430
26431  command supports additionally the following substitutions if they are enabled
26432  by the 
26433 \begin_inset Flex Code
26434 status collapsed
26435
26436 \begin_layout Plain Layout
26437 Transform
26438 \end_layout
26439
26440 \end_inset
26441
26442  and 
26443 \begin_inset Flex Code
26444 status collapsed
26445
26446 \begin_layout Plain Layout
26447 TransformOption
26448 \end_layout
26449
26450 \end_inset
26451
26452  commands:
26453 \end_layout
26454
26455 \begin_layout Description
26456 \begin_inset Flex Code
26457 status collapsed
26458
26459 \begin_layout Plain Layout
26460 $$Clip
26461 \end_layout
26462
26463 \end_inset
26464
26465  The clip option.
26466 \end_layout
26467
26468 \begin_layout Description
26469 \begin_inset Flex Code
26470 status collapsed
26471
26472 \begin_layout Plain Layout
26473 $$Extra
26474 \end_layout
26475
26476 \end_inset
26477
26478  The extra option.
26479 \end_layout
26480
26481 \begin_layout Description
26482 \begin_inset Flex Code
26483 status collapsed
26484
26485 \begin_layout Plain Layout
26486 $$Resize
26487 \end_layout
26488
26489 \end_inset
26490
26491  The resize option.
26492 \end_layout
26493
26494 \begin_layout Description
26495 \begin_inset Flex Code
26496 status collapsed
26497
26498 \begin_layout Plain Layout
26499 $$Rotate
26500 \end_layout
26501
26502 \end_inset
26503
26504  The rotation option.
26505 \end_layout
26506
26507 \begin_layout Standard
26508 You may ask why there are so many path macros.
26509  There are mainly two reasons:
26510 \end_layout
26511
26512 \begin_layout Enumerate
26513 Relative and absolute file names should remain relative or absolute, respectivel
26514 y.
26515  Users may have reasons to prefer either form.
26516  Relative names are useful for portable documents that should work on different
26517  machines, for example.
26518  Absolute names may be required by some programs.
26519 \end_layout
26520
26521 \begin_layout Enumerate
26522 \SpecialChar LaTeX
26523  treats relative file names differently than \SpecialChar LyX
26524  and other programs in nested
26525  included files.
26526  For \SpecialChar LyX
26527 , a relative file name is always relative to the document that contains
26528  the file name.
26529  For \SpecialChar LaTeX
26530 , it is always relative to the master document.
26531  These two definitions are identical if you have only one document, but
26532  differ if you have a master document that includes part documents.
26533  That means that relative filenames must be transformed when presented to
26534  \SpecialChar LaTeX
26535 .
26536  Fortunately \SpecialChar LyX
26537  does this automatically for you if you choose the right macros.
26538 \end_layout
26539
26540 \begin_layout Standard
26541 So which path macro should be used in new template definitions? The rule
26542  is not difficult:
26543 \end_layout
26544
26545 \begin_layout Itemize
26546 Use 
26547 \begin_inset Flex Code
26548 status collapsed
26549
26550 \begin_layout Plain Layout
26551 $$AbsPath
26552 \end_layout
26553
26554 \end_inset
26555
26556  if an absolute path is required.
26557 \end_layout
26558
26559 \begin_layout Itemize
26560 Use 
26561 \begin_inset Flex Code
26562 status collapsed
26563
26564 \begin_layout Plain Layout
26565 $$AbsOrRelPathMaster
26566 \end_layout
26567
26568 \end_inset
26569
26570  if the substituted string is some kind of \SpecialChar LaTeX
26571  input.
26572 \end_layout
26573
26574 \begin_layout Itemize
26575 Else use 
26576 \begin_inset Flex Code
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580 $$AbsOrRelPathParent
26581 \end_layout
26582
26583 \end_inset
26584
26585  in order to preserve the user's choice.
26586 \end_layout
26587
26588 \begin_layout Standard
26589 There are special cases where this rule does not work and e.
26590 \begin_inset space \thinspace{}
26591 \end_inset
26592
26593 g.
26594 \begin_inset space \space{}
26595 \end_inset
26596
26597 relative names are needed, but normally it will work just fine.
26598  One example for such a case is the command 
26599 \begin_inset Flex Code
26600 status collapsed
26601
26602 \begin_layout Plain Layout
26603 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26604 \end_layout
26605
26606 \end_inset
26607
26608  in the XFig template above: We can't use the absolute name because the
26609  copier for 
26610 \begin_inset Flex Code
26611 status collapsed
26612
26613 \begin_layout Plain Layout
26614 .pstex_t
26615 \end_layout
26616
26617 \end_inset
26618
26619  files needs the relative name in order to rewrite the file content.
26620 \end_layout
26621
26622 \begin_layout Section
26623 Security discussion
26624 \begin_inset CommandInset label
26625 LatexCommand label
26626 name "sec:Security-discussion"
26627
26628 \end_inset
26629
26630
26631 \end_layout
26632
26633 \begin_layout Standard
26634 The external material feature interfaces with a lot of external programs
26635  and does so automatically, so we have to consider the security implications
26636  of this.
26637  In particular, since you have the option of including your own filenames
26638  and/or parameter strings and those are expanded into a command, it seems
26639  that it would be possible to create a malicious document which executes
26640  arbitrary commands when a user views or prints the document.
26641  This is something we definitely want to avoid.
26642 \end_layout
26643
26644 \begin_layout Standard
26645 However, since the external program commands are specified in the template
26646  configuration file only, there are no security issues if \SpecialChar LyX
26647  is properly configure
26648 d with safe templates only.
26649  This is so because the external programs are invoked with the 
26650 \begin_inset Flex Code
26651 status collapsed
26652
26653 \begin_layout Plain Layout
26654 execvp
26655 \end_layout
26656
26657 \end_inset
26658
26659 -system call rather than the 
26660 \begin_inset Flex Code
26661 status collapsed
26662
26663 \begin_layout Plain Layout
26664 system
26665 \end_layout
26666
26667 \end_inset
26668
26669  system-call, so it's not possible to execute arbitrary commands from the
26670  filename or parameter section via the shell.
26671 \end_layout
26672
26673 \begin_layout Standard
26674 This also implies that you are restricted in what command strings you can
26675  use in the external material templates.
26676  In particular, pipes and redirection are not readily available.
26677  This has to be so if \SpecialChar LyX
26678  should remain safe.
26679  If you want to use some of the shell features, you should write a safe
26680  script to do this in a controlled manner, and then invoke the script from
26681  the command string.
26682  
26683 \end_layout
26684
26685 \begin_layout Standard
26686 It is possible to design a template that interacts directly with the shell,
26687  but since this would allow a malicious user to execute arbitrary commands
26688  by writing clever filenames and/or parameters, we generally recommend that
26689  you only use safe scripts that work with the 
26690 \begin_inset Flex Code
26691 status collapsed
26692
26693 \begin_layout Plain Layout
26694 execvp
26695 \end_layout
26696
26697 \end_inset
26698
26699  system call in a controlled manner.
26700  Of course, for use in a controlled environment, it can be tempting to just
26701  fall back to use ordinary shell scripts.
26702  If you do so, be aware that you 
26703 \emph on
26704 will
26705 \emph default
26706  provide an easily exploitable security hole in your system.
26707  Of course it stands to reason that such unsafe templates will never be
26708  included in the standard \SpecialChar LyX
26709  distribution, although we do encourage people
26710  to submit new templates in the open source tradition.
26711  But \SpecialChar LyX
26712  as shipped from the official distribution channels will never have
26713  unsafe templates.
26714 \end_layout
26715
26716 \begin_layout Standard
26717 Including external material provides a lot of power, and you have to be
26718  careful not to introduce security hazards with this power.
26719  A subtle error in a single line in an innocent looking script can open
26720  the door to huge security problems.
26721  So if you do not fully understand the issues, we recommend that you consult
26722  a knowledgeable security professional or the \SpecialChar LyX
26723  development team if you have
26724  any questions about whether a given template is safe or not.
26725  And do this before you use it in an uncontrolled environment.
26726 \end_layout
26727
26728 \begin_layout Chapter
26729 \start_of_appendix
26730 List of supported \SpecialChar LyX
26731  functions to be used in layouts
26732 \begin_inset CommandInset label
26733 LatexCommand label
26734 name "chap:List-of-functions"
26735
26736 \end_inset
26737
26738
26739 \end_layout
26740
26741 \begin_layout Standard
26742 \align center
26743 \begin_inset Tabular
26744 <lyxtabular version="3" rows="11" columns="8">
26745 <features tabularvalignment="middle">
26746 <column alignment="left" valignment="top">
26747 <column alignment="left" valignment="top">
26748 <column alignment="left" valignment="top">
26749 <column alignment="left" valignment="top">
26750 <column alignment="left" valignment="top">
26751 <column alignment="left" valignment="top">
26752 <column alignment="left" valignment="top">
26753 <column alignment="left" valignment="top">
26754 <row>
26755 <cell alignment="left" valignment="top" usebox="none">
26756 \begin_inset Text
26757
26758 \begin_layout Plain Layout
26759 accents
26760 \end_layout
26761
26762 \end_inset
26763 </cell>
26764 <cell alignment="left" valignment="top" usebox="none">
26765 \begin_inset Text
26766
26767 \begin_layout Plain Layout
26768 booktabs
26769 \end_layout
26770
26771 \end_inset
26772 </cell>
26773 <cell alignment="left" valignment="top" usebox="none">
26774 \begin_inset Text
26775
26776 \begin_layout Plain Layout
26777 feyn
26778 \end_layout
26779
26780 \end_inset
26781 </cell>
26782 <cell alignment="left" valignment="top" usebox="none">
26783 \begin_inset Text
26784
26785 \begin_layout Plain Layout
26786 listings
26787 \end_layout
26788
26789 \end_inset
26790 </cell>
26791 <cell alignment="center" valignment="top" usebox="none">
26792 \begin_inset Text
26793
26794 \begin_layout Plain Layout
26795 natbib
26796 \end_layout
26797
26798 \end_inset
26799 </cell>
26800 <cell alignment="center" valignment="top" usebox="none">
26801 \begin_inset Text
26802
26803 \begin_layout Plain Layout
26804 rotfloat
26805 \end_layout
26806
26807 \end_inset
26808 </cell>
26809 <cell alignment="center" valignment="top" usebox="none">
26810 \begin_inset Text
26811
26812 \begin_layout Plain Layout
26813 tfrupee
26814 \end_layout
26815
26816 \end_inset
26817 </cell>
26818 <cell alignment="center" valignment="top" usebox="none">
26819 \begin_inset Text
26820
26821 \begin_layout Plain Layout
26822 wasysym
26823 \end_layout
26824
26825 \end_inset
26826 </cell>
26827 </row>
26828 <row>
26829 <cell alignment="left" valignment="top" usebox="none">
26830 \begin_inset Text
26831
26832 \begin_layout Plain Layout
26833 amsbsy
26834 \end_layout
26835
26836 \end_inset
26837 </cell>
26838 <cell alignment="left" valignment="top" usebox="none">
26839 \begin_inset Text
26840
26841 \begin_layout Plain Layout
26842 calc
26843 \end_layout
26844
26845 \end_inset
26846 </cell>
26847 <cell alignment="left" valignment="top" usebox="none">
26848 \begin_inset Text
26849
26850 \begin_layout Plain Layout
26851 fixltx2e
26852 \end_layout
26853
26854 \end_inset
26855 </cell>
26856 <cell alignment="left" valignment="top" usebox="none">
26857 \begin_inset Text
26858
26859 \begin_layout Plain Layout
26860 longtable
26861 \end_layout
26862
26863 \end_inset
26864 </cell>
26865 <cell alignment="center" valignment="top" usebox="none">
26866 \begin_inset Text
26867
26868 \begin_layout Plain Layout
26869 nomencl
26870 \end_layout
26871
26872 \end_inset
26873 </cell>
26874 <cell alignment="center" valignment="top" usebox="none">
26875 \begin_inset Text
26876
26877 \begin_layout Plain Layout
26878 rsphrase
26879 \end_layout
26880
26881 \end_inset
26882 </cell>
26883 <cell alignment="center" valignment="top" usebox="none">
26884 \begin_inset Text
26885
26886 \begin_layout Plain Layout
26887 tipa
26888 \end_layout
26889
26890 \end_inset
26891 </cell>
26892 <cell alignment="center" valignment="top" usebox="none">
26893 \begin_inset Text
26894
26895 \begin_layout Plain Layout
26896 wrapfig
26897 \end_layout
26898
26899 \end_inset
26900 </cell>
26901 </row>
26902 <row>
26903 <cell alignment="left" valignment="top" usebox="none">
26904 \begin_inset Text
26905
26906 \begin_layout Plain Layout
26907 amscd
26908 \end_layout
26909
26910 \end_inset
26911 </cell>
26912 <cell alignment="left" valignment="top" usebox="none">
26913 \begin_inset Text
26914
26915 \begin_layout Plain Layout
26916 CJK
26917 \end_layout
26918
26919 \end_inset
26920 </cell>
26921 <cell alignment="left" valignment="top" usebox="none">
26922 \begin_inset Text
26923
26924 \begin_layout Plain Layout
26925 float
26926 \end_layout
26927
26928 \end_inset
26929 </cell>
26930 <cell alignment="left" valignment="top" usebox="none">
26931 \begin_inset Text
26932
26933 \begin_layout Plain Layout
26934 lyxskak
26935 \end_layout
26936
26937 \end_inset
26938 </cell>
26939 <cell alignment="center" valignment="top" usebox="none">
26940 \begin_inset Text
26941
26942 \begin_layout Plain Layout
26943 pdfcolmk
26944 \end_layout
26945
26946 \end_inset
26947 </cell>
26948 <cell alignment="center" valignment="top" usebox="none">
26949 \begin_inset Text
26950
26951 \begin_layout Plain Layout
26952 setspace
26953 \end_layout
26954
26955 \end_inset
26956 </cell>
26957 <cell alignment="center" valignment="top" usebox="none">
26958 \begin_inset Text
26959
26960 \begin_layout Plain Layout
26961 tipx
26962 \end_layout
26963
26964 \end_inset
26965 </cell>
26966 <cell alignment="center" valignment="top" usebox="none">
26967 \begin_inset Text
26968
26969 \begin_layout Plain Layout
26970 xargs
26971 \end_layout
26972
26973 \end_inset
26974 </cell>
26975 </row>
26976 <row>
26977 <cell alignment="left" valignment="top" usebox="none">
26978 \begin_inset Text
26979
26980 \begin_layout Plain Layout
26981 amsmath
26982 \end_layout
26983
26984 \end_inset
26985 </cell>
26986 <cell alignment="left" valignment="top" usebox="none">
26987 \begin_inset Text
26988
26989 \begin_layout Plain Layout
26990 color
26991 \end_layout
26992
26993 \end_inset
26994 </cell>
26995 <cell alignment="left" valignment="top" usebox="none">
26996 \begin_inset Text
26997
26998 \begin_layout Plain Layout
26999 framed
27000 \end_layout
27001
27002 \end_inset
27003 </cell>
27004 <cell alignment="left" valignment="top" usebox="none">
27005 \begin_inset Text
27006
27007 \begin_layout Plain Layout
27008 makeidx
27009 \end_layout
27010
27011 \end_inset
27012 </cell>
27013 <cell alignment="center" valignment="top" usebox="none">
27014 \begin_inset Text
27015
27016 \begin_layout Plain Layout
27017 pdfpages
27018 \end_layout
27019
27020 \end_inset
27021 </cell>
27022 <cell alignment="center" valignment="top" usebox="none">
27023 \begin_inset Text
27024
27025 \begin_layout Plain Layout
27026 shapepar
27027 \end_layout
27028
27029 \end_inset
27030 </cell>
27031 <cell alignment="center" valignment="top" usebox="none">
27032 \begin_inset Text
27033
27034 \begin_layout Plain Layout
27035 tone
27036 \end_layout
27037
27038 \end_inset
27039 </cell>
27040 <cell alignment="center" valignment="top" usebox="none">
27041 \begin_inset Text
27042
27043 \begin_layout Plain Layout
27044 xcolor
27045 \end_layout
27046
27047 \end_inset
27048 </cell>
27049 </row>
27050 <row>
27051 <cell alignment="left" valignment="top" usebox="none">
27052 \begin_inset Text
27053
27054 \begin_layout Plain Layout
27055 amssymb
27056 \end_layout
27057
27058 \end_inset
27059 </cell>
27060 <cell alignment="left" valignment="top" usebox="none">
27061 \begin_inset Text
27062
27063 \begin_layout Plain Layout
27064 covington
27065 \end_layout
27066
27067 \end_inset
27068 </cell>
27069 <cell alignment="left" valignment="top" usebox="none">
27070 \begin_inset Text
27071
27072 \begin_layout Plain Layout
27073 graphicx
27074 \end_layout
27075
27076 \end_inset
27077 </cell>
27078 <cell alignment="left" valignment="top" usebox="none">
27079 \begin_inset Text
27080
27081 \begin_layout Plain Layout
27082 marvosym
27083 \end_layout
27084
27085 \end_inset
27086 </cell>
27087 <cell alignment="center" valignment="top" usebox="none">
27088 \begin_inset Text
27089
27090 \begin_layout Plain Layout
27091 pifont
27092 \end_layout
27093
27094 \end_inset
27095 </cell>
27096 <cell alignment="center" valignment="top" usebox="none">
27097 \begin_inset Text
27098
27099 \begin_layout Plain Layout
27100 slashed
27101 \end_layout
27102
27103 \end_inset
27104 </cell>
27105 <cell alignment="center" valignment="top" usebox="none">
27106 \begin_inset Text
27107
27108 \begin_layout Plain Layout
27109 txfonts
27110 \end_layout
27111
27112 \end_inset
27113 </cell>
27114 <cell alignment="center" valignment="top" usebox="none">
27115 \begin_inset Text
27116
27117 \begin_layout Plain Layout
27118 xy
27119 \end_layout
27120
27121 \end_inset
27122 </cell>
27123 </row>
27124 <row>
27125 <cell alignment="left" valignment="top" usebox="none">
27126 \begin_inset Text
27127
27128 \begin_layout Plain Layout
27129 amstext
27130 \end_layout
27131
27132 \end_inset
27133 </cell>
27134 <cell alignment="left" valignment="top" usebox="none">
27135 \begin_inset Text
27136
27137 \begin_layout Plain Layout
27138 csquotes
27139 \end_layout
27140
27141 \end_inset
27142 </cell>
27143 <cell alignment="left" valignment="top" usebox="none">
27144 \begin_inset Text
27145
27146 \begin_layout Plain Layout
27147 hhline
27148 \end_layout
27149
27150 \end_inset
27151 </cell>
27152 <cell alignment="left" valignment="top" usebox="none">
27153 \begin_inset Text
27154
27155 \begin_layout Plain Layout
27156 mathdesign
27157 \end_layout
27158
27159 \end_inset
27160 </cell>
27161 <cell alignment="center" valignment="top" usebox="none">
27162 \begin_inset Text
27163
27164 \begin_layout Plain Layout
27165 pmboxdraw
27166 \end_layout
27167
27168 \end_inset
27169 </cell>
27170 <cell alignment="center" valignment="top" usebox="none">
27171 \begin_inset Text
27172
27173 \begin_layout Plain Layout
27174 soul
27175 \end_layout
27176
27177 \end_inset
27178 </cell>
27179 <cell alignment="center" valignment="top" usebox="none">
27180 \begin_inset Text
27181
27182 \begin_layout Plain Layout
27183 ulem
27184 \end_layout
27185
27186 \end_inset
27187 </cell>
27188 <cell alignment="center" valignment="top" usebox="none">
27189 \begin_inset Text
27190
27191 \begin_layout Plain Layout
27192 yhmath
27193 \end_layout
27194
27195 \end_inset
27196 </cell>
27197 </row>
27198 <row>
27199 <cell alignment="left" valignment="top" usebox="none">
27200 \begin_inset Text
27201
27202 \begin_layout Plain Layout
27203 amsthm
27204 \end_layout
27205
27206 \end_inset
27207 </cell>
27208 <cell alignment="left" valignment="top" usebox="none">
27209 \begin_inset Text
27210
27211 \begin_layout Plain Layout
27212 dvipost
27213 \end_layout
27214
27215 \end_inset
27216 </cell>
27217 <cell alignment="left" valignment="top" usebox="none">
27218 \begin_inset Text
27219
27220 \begin_layout Plain Layout
27221 hyperref
27222 \end_layout
27223
27224 \end_inset
27225 </cell>
27226 <cell alignment="left" valignment="top" usebox="none">
27227 \begin_inset Text
27228
27229 \begin_layout Plain Layout
27230 mathdots
27231 \end_layout
27232
27233 \end_inset
27234 </cell>
27235 <cell alignment="center" valignment="top" usebox="none">
27236 \begin_inset Text
27237
27238 \begin_layout Plain Layout
27239 polyglossia
27240 \end_layout
27241
27242 \end_inset
27243 </cell>
27244 <cell alignment="center" valignment="top" usebox="none">
27245 \begin_inset Text
27246
27247 \begin_layout Plain Layout
27248 splitidx
27249 \end_layout
27250
27251 \end_inset
27252 </cell>
27253 <cell alignment="center" valignment="top" usebox="none">
27254 \begin_inset Text
27255
27256 \begin_layout Plain Layout
27257 undertilde
27258 \end_layout
27259
27260 \end_inset
27261 </cell>
27262 <cell alignment="center" valignment="top" usebox="none">
27263 \begin_inset Text
27264
27265 \begin_layout Plain Layout
27266
27267 \end_layout
27268
27269 \end_inset
27270 </cell>
27271 </row>
27272 <row>
27273 <cell alignment="left" valignment="top" usebox="none">
27274 \begin_inset Text
27275
27276 \begin_layout Plain Layout
27277 array
27278 \end_layout
27279
27280 \end_inset
27281 </cell>
27282 <cell alignment="left" valignment="top" usebox="none">
27283 \begin_inset Text
27284
27285 \begin_layout Plain Layout
27286 endnotes
27287 \end_layout
27288
27289 \end_inset
27290 </cell>
27291 <cell alignment="left" valignment="top" usebox="none">
27292 \begin_inset Text
27293
27294 \begin_layout Plain Layout
27295 ifsym
27296 \end_layout
27297
27298 \end_inset
27299 </cell>
27300 <cell alignment="left" valignment="top" usebox="none">
27301 \begin_inset Text
27302
27303 \begin_layout Plain Layout
27304 mathrsfs
27305 \end_layout
27306
27307 \end_inset
27308 </cell>
27309 <cell alignment="center" valignment="top" usebox="none">
27310 \begin_inset Text
27311
27312 \begin_layout Plain Layout
27313 prettyref
27314 \end_layout
27315
27316 \end_inset
27317 </cell>
27318 <cell alignment="center" valignment="top" usebox="none">
27319 \begin_inset Text
27320
27321 \begin_layout Plain Layout
27322 subfig
27323 \end_layout
27324
27325 \end_inset
27326 </cell>
27327 <cell alignment="center" valignment="top" usebox="none">
27328 \begin_inset Text
27329
27330 \begin_layout Plain Layout
27331 units
27332 \end_layout
27333
27334 \end_inset
27335 </cell>
27336 <cell alignment="center" valignment="top" usebox="none">
27337 \begin_inset Text
27338
27339 \begin_layout Plain Layout
27340
27341 \end_layout
27342
27343 \end_inset
27344 </cell>
27345 </row>
27346 <row>
27347 <cell alignment="left" valignment="top" usebox="none">
27348 \begin_inset Text
27349
27350 \begin_layout Plain Layout
27351 ascii
27352 \end_layout
27353
27354 \end_inset
27355 </cell>
27356 <cell alignment="left" valignment="top" usebox="none">
27357 \begin_inset Text
27358
27359 \begin_layout Plain Layout
27360 enumitem
27361 \end_layout
27362
27363 \end_inset
27364 </cell>
27365 <cell alignment="left" valignment="top" usebox="none">
27366 \begin_inset Text
27367
27368 \begin_layout Plain Layout
27369 ifthen
27370 \end_layout
27371
27372 \end_inset
27373 </cell>
27374 <cell alignment="left" valignment="top" usebox="none">
27375 \begin_inset Text
27376
27377 \begin_layout Plain Layout
27378 mhchem
27379 \end_layout
27380
27381 \end_inset
27382 </cell>
27383 <cell alignment="center" valignment="top" usebox="none">
27384 \begin_inset Text
27385
27386 \begin_layout Plain Layout
27387 pxfonts
27388 \end_layout
27389
27390 \end_inset
27391 </cell>
27392 <cell alignment="center" valignment="top" usebox="none">
27393 \begin_inset Text
27394
27395 \begin_layout Plain Layout
27396 subscript
27397 \end_layout
27398
27399 \end_inset
27400 </cell>
27401 <cell alignment="center" valignment="top" usebox="none">
27402 \begin_inset Text
27403
27404 \begin_layout Plain Layout
27405 url
27406 \end_layout
27407
27408 \end_inset
27409 </cell>
27410 <cell alignment="center" valignment="top" usebox="none">
27411 \begin_inset Text
27412
27413 \begin_layout Plain Layout
27414
27415 \end_layout
27416
27417 \end_inset
27418 </cell>
27419 </row>
27420 <row>
27421 <cell alignment="left" valignment="top" usebox="none">
27422 \begin_inset Text
27423
27424 \begin_layout Plain Layout
27425 bbding
27426 \end_layout
27427
27428 \end_inset
27429 </cell>
27430 <cell alignment="left" valignment="top" usebox="none">
27431 \begin_inset Text
27432
27433 \begin_layout Plain Layout
27434 esint
27435 \end_layout
27436
27437 \end_inset
27438 </cell>
27439 <cell alignment="left" valignment="top" usebox="none">
27440 \begin_inset Text
27441
27442 \begin_layout Plain Layout
27443 jurabib
27444 \end_layout
27445
27446 \end_inset
27447 </cell>
27448 <cell alignment="left" valignment="top" usebox="none">
27449 \begin_inset Text
27450
27451 \begin_layout Plain Layout
27452 multicol
27453 \end_layout
27454
27455 \end_inset
27456 </cell>
27457 <cell alignment="center" valignment="top" usebox="none">
27458 \begin_inset Text
27459
27460 \begin_layout Plain Layout
27461 refstyle
27462 \end_layout
27463
27464 \end_inset
27465 </cell>
27466 <cell alignment="center" valignment="top" usebox="none">
27467 \begin_inset Text
27468
27469 \begin_layout Plain Layout
27470 textcomp
27471 \end_layout
27472
27473 \end_inset
27474 </cell>
27475 <cell alignment="center" valignment="top" usebox="none">
27476 \begin_inset Text
27477
27478 \begin_layout Plain Layout
27479 varioref
27480 \end_layout
27481
27482 \end_inset
27483 </cell>
27484 <cell alignment="center" valignment="top" usebox="none">
27485 \begin_inset Text
27486
27487 \begin_layout Plain Layout
27488
27489 \end_layout
27490
27491 \end_inset
27492 </cell>
27493 </row>
27494 <row>
27495 <cell alignment="center" valignment="top" usebox="none">
27496 \begin_inset Text
27497
27498 \begin_layout Plain Layout
27499 bm
27500 \end_layout
27501
27502 \end_inset
27503 </cell>
27504 <cell alignment="center" valignment="top" usebox="none">
27505 \begin_inset Text
27506
27507 \begin_layout Plain Layout
27508 fancybox
27509 \end_layout
27510
27511 \end_inset
27512 </cell>
27513 <cell alignment="center" valignment="top" usebox="none">
27514 \begin_inset Text
27515
27516 \begin_layout Plain Layout
27517 latexsym
27518 \end_layout
27519
27520 \end_inset
27521 </cell>
27522 <cell alignment="center" valignment="top" usebox="none">
27523 \begin_inset Text
27524
27525 \begin_layout Plain Layout
27526 multirow
27527 \end_layout
27528
27529 \end_inset
27530 </cell>
27531 <cell alignment="center" valignment="top" usebox="none">
27532 \begin_inset Text
27533
27534 \begin_layout Plain Layout
27535 rotating
27536 \end_layout
27537
27538 \end_inset
27539 </cell>
27540 <cell alignment="center" valignment="top" usebox="none">
27541 \begin_inset Text
27542
27543 \begin_layout Plain Layout
27544 textgreek
27545 \end_layout
27546
27547 \end_inset
27548 </cell>
27549 <cell alignment="center" valignment="top" usebox="none">
27550 \begin_inset Text
27551
27552 \begin_layout Plain Layout
27553 verbatim
27554 \end_layout
27555
27556 \end_inset
27557 </cell>
27558 <cell alignment="center" valignment="top" usebox="none">
27559 \begin_inset Text
27560
27561 \begin_layout Plain Layout
27562
27563 \end_layout
27564
27565 \end_inset
27566 </cell>
27567 </row>
27568 </lyxtabular>
27569
27570 \end_inset
27571
27572
27573 \end_layout
27574
27575 \begin_layout Chapter
27576 Names of available colors to be used in layouts
27577 \begin_inset CommandInset label
27578 LatexCommand label
27579 name "chap:Names-of-colors"
27580
27581 \end_inset
27582
27583
27584 \end_layout
27585
27586 \begin_layout Standard
27587 The colors listed 
27588 \change_deleted -712698321 1505048041
27589 here
27590 \change_inserted -712698321 1505048041
27591 below
27592 \change_unchanged
27593  are the standard colors and 
27594 \change_deleted -712698321 1505048036
27595 the 
27596 \change_unchanged
27597 those that you can adjust in the \SpecialChar LyX
27598  preferences.
27599 \change_inserted -712698321 1505047917
27600
27601 \end_layout
27602
27603 \begin_layout Section
27604
27605 \change_inserted -712698321 1505048046
27606 Color functions
27607 \end_layout
27608
27609 \begin_layout Standard
27610
27611 \change_inserted -712698321 1505048063
27612 The following are no real colors, but rather act on color definitions:
27613 \change_unchanged
27614
27615 \end_layout
27616
27617 \begin_layout Description
27618
27619 \change_inserted -712698321 1505049948
27620 ignore The color is ignored
27621 \end_layout
27622
27623 \begin_layout Description
27624
27625 \change_inserted -712698321 1505049948
27626 inherit The color is inherited
27627 \end_layout
27628
27629 \begin_layout Description
27630 none
27631 \family roman
27632 \series medium
27633 \shape up
27634 \size normal
27635 \emph off
27636 \bar no
27637 \strikeout off
27638 \uuline off
27639 \uwave off
27640 \noun off
27641 \color none
27642  No particular color – clear or default
27643 \change_inserted -712698321 1505049946
27644
27645 \end_layout
27646
27647 \begin_layout Section
27648
27649 \change_inserted -712698321 1505048068
27650 Static colors
27651 \end_layout
27652
27653 \begin_layout Standard
27654
27655 \change_inserted -712698321 1505048080
27656 These are fixed colors that cannot me customized:
27657 \change_unchanged
27658
27659 \end_layout
27660
27661 \begin_layout Description
27662 black
27663 \end_layout
27664
27665 \begin_layout Description
27666 white
27667 \change_inserted -712698321 1505047780
27668
27669 \end_layout
27670
27671 \begin_layout Description
27672
27673 \change_inserted -712698321 1505047787
27674 blue
27675 \end_layout
27676
27677 \begin_layout Description
27678
27679 \change_inserted -712698321 1505047791
27680 brown
27681 \end_layout
27682
27683 \begin_layout Description
27684
27685 \change_inserted -712698321 1505047799
27686 cyan
27687 \end_layout
27688
27689 \begin_layout Description
27690
27691 \change_inserted -712698321 1505047807
27692 darkgray
27693 \end_layout
27694
27695 \begin_layout Description
27696
27697 \change_inserted -712698321 1505047809
27698 gray
27699 \change_unchanged
27700
27701 \end_layout
27702
27703 \begin_layout Description
27704
27705 \change_deleted -712698321 1505047820
27706 red
27707 \change_unchanged
27708
27709 \end_layout
27710
27711 \begin_layout Description
27712 green
27713 \change_inserted -712698321 1505047824
27714
27715 \end_layout
27716
27717 \begin_layout Description
27718
27719 \change_inserted -712698321 1505047828
27720 lightgray
27721 \change_unchanged
27722
27723 \end_layout
27724
27725 \begin_layout Description
27726
27727 \change_deleted -712698321 1505047798
27728 blue
27729 \end_layout
27730
27731 \begin_layout Description
27732
27733 \change_deleted -712698321 1505047798
27734 cyan
27735 \change_inserted -712698321 1505047834
27736
27737 \end_layout
27738
27739 \begin_layout Description
27740
27741 \change_inserted -712698321 1505047835
27742 lime
27743 \change_unchanged
27744
27745 \end_layout
27746
27747 \begin_layout Description
27748 magenta
27749 \change_inserted -712698321 1505047840
27750
27751 \end_layout
27752
27753 \begin_layout Description
27754
27755 \change_inserted -712698321 1505047846
27756 olive
27757 \end_layout
27758
27759 \begin_layout Description
27760
27761 \change_inserted -712698321 1505047850
27762 orange
27763 \end_layout
27764
27765 \begin_layout Description
27766
27767 \change_inserted -712698321 1505047861
27768 pink
27769 \end_layout
27770
27771 \begin_layout Description
27772
27773 \change_inserted -712698321 1505047863
27774 purple
27775 \end_layout
27776
27777 \begin_layout Description
27778
27779 \change_inserted -712698321 1505047867
27780 red
27781 \end_layout
27782
27783 \begin_layout Description
27784
27785 \change_inserted -712698321 1505047881
27786 teal
27787 \end_layout
27788
27789 \begin_layout Description
27790
27791 \change_inserted -712698321 1505047878
27792 violet
27793 \change_unchanged
27794
27795 \end_layout
27796
27797 \begin_layout Description
27798 yellow
27799 \change_inserted -712698321 1505047947
27800
27801 \end_layout
27802
27803 \begin_layout Section
27804
27805 \change_inserted -712698321 1505048092
27806 Dynamic colors
27807 \end_layout
27808
27809 \begin_layout Standard
27810
27811 \change_inserted -712698321 1505048589
27812 These are the colors allocated to specific elements in 
27813 \begin_inset Info
27814 type  "menu"
27815 arg   "dialog-show prefs"
27816 \end_inset
27817
27818 :
27819 \change_unchanged
27820
27821 \end_layout
27822
27823 \begin_layout Description
27824 added_space Added space 
27825 \change_deleted -712698321 1505049692
27826 marker 
27827 \change_unchanged
27828 color
27829 \end_layout
27830
27831 \begin_layout Description
27832 addedtext Added text color
27833 \end_layout
27834
27835 \begin_layout Description
27836 appendix Appendix marker color
27837 \end_layout
27838
27839 \begin_layout Description
27840 background Background color
27841 \end_layout
27842
27843 \begin_layout Description
27844 bottomarea Bottom area color
27845 \end_layout
27846
27847 \begin_layout Description
27848 branchlabel Label color for branches
27849 \end_layout
27850
27851 \begin_layout Description
27852 buttonbg Color used for button background
27853 \change_inserted -712698321 1505049724
27854
27855 \end_layout
27856
27857 \begin_layout Description
27858
27859 \change_inserted -712698321 1505049724
27860 buttonframe Color for inset button frames
27861 \change_unchanged
27862
27863 \end_layout
27864
27865 \begin_layout Description
27866 buttonhoverbg Color used for button background under focus
27867 \end_layout
27868
27869 \begin_layout Description
27870
27871 \change_deleted -712698321 1505049722
27872 buttonframe Color for inset button frames
27873 \change_unchanged
27874
27875 \end_layout
27876
27877 \begin_layout Description
27878 changebar Changebar color
27879 \end_layout
27880
27881 \begin_layout Description
27882 changedtextauthor1 Changed text color author 1
27883 \end_layout
27884
27885 \begin_layout Description
27886 changedtextauthor2 Changed text color author 2
27887 \end_layout
27888
27889 \begin_layout Description
27890 changedtextauthor3 Changed text color author 3
27891 \end_layout
27892
27893 \begin_layout Description
27894 changedtextauthor4 Changed text color author 4
27895 \end_layout
27896
27897 \begin_layout Description
27898 changedtextauthor5 Changed text color author 5
27899 \change_inserted -712698321 1505049811
27900
27901 \end_layout
27902
27903 \begin_layout Description
27904
27905 \change_inserted -712698321 1505049811
27906 collapsable Collapsable insets text color
27907 \end_layout
27908
27909 \begin_layout Description
27910 collapsable
27911 \change_deleted -712698321 1505049817
27912 _inset_
27913 \change_unchanged
27914 frame Collapsable insets framecolor
27915 \end_layout
27916
27917 \begin_layout Description
27918
27919 \change_deleted -712698321 1505049809
27920 collapsable_inset_text Collapsable insets text color
27921 \change_unchanged
27922
27923 \end_layout
27924
27925 \begin_layout Description
27926 command Text color for command insets
27927 \end_layout
27928
27929 \begin_layout Description
27930 commandbg Background color for command insets
27931 \end_layout
27932
27933 \begin_layout Description
27934 commandframe Frame color for command insets
27935 \change_inserted -712698321 1505048865
27936
27937 \end_layout
27938
27939 \begin_layout Description
27940
27941 \change_deleted -712698321 1505049843
27942 comment color for comments
27943 \change_unchanged
27944
27945 \end_layout
27946
27947 \begin_layout Description
27948 commentbg Background color of comments
27949 \change_inserted -712698321 1505048888
27950
27951 \end_layout
27952
27953 \begin_layout Description
27954
27955 \change_inserted -712698321 1505048891
27956 commentlabel Label color for comments
27957 \change_unchanged
27958
27959 \end_layout
27960
27961 \begin_layout Description
27962 cursor Cursor color
27963 \end_layout
27964
27965 \begin_layout Description
27966 deletedtext Deleted text color
27967 \end_layout
27968
27969 \begin_layout Description
27970 deletedtextmodifier Deleted text modifying color
27971 \end_layout
27972
27973 \begin_layout Description
27974 depthbar Color for the depth bars in the margin
27975 \end_layout
27976
27977 \begin_layout Description
27978 eolmarker End of line marker color
27979 \end_layout
27980
27981 \begin_layout Description
27982 error Color of the \SpecialChar LaTeX
27983  error box
27984 \end_layout
27985
27986 \begin_layout Description
27987 footlabel Label color for footnotes
27988 \change_inserted -712698321 1505048777
27989
27990 \end_layout
27991
27992 \begin_layout Description
27993
27994 \change_inserted -712698321 1505048785
27995 foreground Foreground color
27996 \change_unchanged
27997
27998 \end_layout
27999
28000 \begin_layout Description
28001 graphicsbg Graphics inset background color
28002 \end_layout
28003
28004 \begin_layout Description
28005
28006 \change_deleted -712698321 1505049909
28007 greyedout Label color for greyedout insets
28008 \change_unchanged
28009
28010 \end_layout
28011
28012 \begin_layout Description
28013 greyedoutbg Background color of greyedout inset
28014 \change_inserted -712698321 1505048914
28015
28016 \end_layout
28017
28018 \begin_layout Description
28019
28020 \change_inserted -712698321 1505049907
28021 greyedoutlabel Label color for greyedout insets
28022 \change_unchanged
28023
28024 \end_layout
28025
28026 \begin_layout Description
28027 greyedouttext Color for greyedout inset text
28028 \end_layout
28029
28030 \begin_layout Description
28031 indexlabel Label color for index insets
28032 \end_layout
28033
28034 \begin_layout Description
28035
28036 \change_deleted -712698321 1505049940
28037 ignore The color is ignored
28038 \end_layout
28039
28040 \begin_layout Description
28041
28042 \change_deleted -712698321 1505049940
28043 inherit The color is inherited
28044 \change_unchanged
28045
28046 \end_layout
28047
28048 \begin_layout Description
28049 inlinecompletion Inline completion color
28050 \end_layout
28051
28052 \begin_layout Description
28053 insetbg Inset marker background color
28054 \end_layout
28055
28056 \begin_layout Description
28057 insetframe Inset marker frame color
28058 \end_layout
28059
28060 \begin_layout Description
28061 language Color for marking foreign language words
28062 \end_layout
28063
28064 \begin_layout Description
28065 latex Text color in \SpecialChar LaTeX
28066  mode
28067 \end_layout
28068
28069 \begin_layout Description
28070 listingsbg Background color of listings inset
28071 \end_layout
28072
28073 \begin_layout Description
28074 marginlabel Label color for margin notes
28075 \end_layout
28076
28077 \begin_layout Description
28078 math Math inset text color
28079 \end_layout
28080
28081 \begin_layout Description
28082 mathbg Math inset background color
28083 \end_layout
28084
28085 \begin_layout Description
28086 mathcorners Math inset frame color not under focus
28087 \end_layout
28088
28089 \begin_layout Description
28090 mathframe Math inset frame color under focus
28091 \end_layout
28092
28093 \begin_layout Description
28094 mathline Math line color
28095 \end_layout
28096
28097 \begin_layout Description
28098 mathmacrobg Macro math inset background color
28099 \end_layout
28100
28101 \begin_layout Description
28102 mathmacroblend Macro math blended color
28103 \end_layout
28104
28105 \begin_layout Description
28106 mathmacroframe Macro math frame color
28107 \end_layout
28108
28109 \begin_layout Description
28110 mathmacrohoverbg Macro math inset background color hovered
28111 \end_layout
28112
28113 \begin_layout Description
28114 mathmacrolabel Macro math label color
28115 \end_layout
28116
28117 \begin_layout Description
28118 mathmacronewarg Macro template color for new parameters
28119 \end_layout
28120
28121 \begin_layout Description
28122 mathmacrooldarg Macro template color for old parameters
28123 \end_layout
28124
28125 \begin_layout Description
28126 newpage New page color
28127 \end_layout
28128
28129 \begin_layout Description
28130 nonunique_inlinecompletion Inline completion color for the non-unique part
28131 \end_layout
28132
28133 \begin_layout Description
28134 notebg Background color of notes
28135 \end_layout
28136
28137 \begin_layout Description
28138 notelabel Label color for notes
28139 \end_layout
28140
28141 \begin_layout Description
28142 pagebreak Page break/line break color
28143 \end_layout
28144
28145 \begin_layout Description
28146 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28147 \end_layout
28148
28149 \begin_layout Description
28150 phantomtext Text color for phantom insets
28151 \end_layout
28152
28153 \begin_layout Description
28154 preview The color used for previews
28155 \end_layout
28156
28157 \begin_layout Description
28158 previewframe Preview frame color
28159 \end_layout
28160
28161 \begin_layout Description
28162 regexpframe Color for regexp frame
28163 \change_inserted -712698321 1505050082
28164
28165 \end_layout
28166
28167 \begin_layout Description
28168
28169 \change_inserted -712698321 1505050082
28170 scroll Color that indicates when a row can be scrolled 
28171 \change_unchanged
28172
28173 \end_layout
28174
28175 \begin_layout Description
28176 selection Background color of selected text
28177 \end_layout
28178
28179 \begin_layout Description
28180 selectiontext Foreground color of selected text
28181 \end_layout
28182
28183 \begin_layout Description
28184 shadedbg Background color of shaded box
28185 \end_layout
28186
28187 \begin_layout Description
28188 special Special chars text color
28189 \end_layout
28190
28191 \begin_layout Description
28192 tabularline Table line color
28193 \end_layout
28194
28195 \begin_layout Description
28196 tabularonoffline Table line color
28197 \end_layout
28198
28199 \begin_layout Description
28200 urllabel Label color for URL insets
28201 \end_layout
28202
28203 \begin_layout Description
28204 urltext Color for URL inset text
28205 \end_layout
28206
28207 \end_body
28208 \end_document