]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Minor corrections
[features.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 false
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \end_header
133
134 \begin_body
135
136 \begin_layout Title
137 Customizing \SpecialChar LyX
138 : Features for the Advanced User
139 \end_layout
140
141 \begin_layout Author
142 by the \SpecialChar LyX
143  Team
144 \begin_inset Foot
145 status collapsed
146
147 \begin_layout Plain Layout
148 \noindent
149 If you have comments or error corrections, please send them to the \SpecialChar LyX
150  Documentatio
151 n mailing list, 
152 \begin_inset CommandInset href
153 LatexCommand href
154 target "lyx-docs@lists.lyx.org"
155 type "mailto:"
156 literal "false"
157
158 \end_inset
159
160 .
161  Include 
162 \begin_inset Quotes eld
163 \end_inset
164
165 [Customization]
166 \begin_inset Quotes erd
167 \end_inset
168
169  in the subject header, and please cc the current maintainer of this file,
170  Richard Heck <rgheck@comcast.net>.
171 \end_layout
172
173 \end_inset
174
175
176 \begin_inset Newline newline
177 \end_inset
178
179
180 \begin_inset Newline newline
181 \end_inset
182
183 Version 2.3.x 
184 \end_layout
185
186 \begin_layout Standard
187 \begin_inset CommandInset toc
188 LatexCommand tableofcontents
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Standard
196 \begin_inset Note Note
197 status open
198
199 \begin_layout Plain Layout
200 Please use change tracking when modifying this document.
201  This makes it easier for our translators to recognize things that have
202  been changed, and it helps the maintainer keep up-to-date with what's been
203  done.
204 \end_layout
205
206 \end_inset
207
208
209 \end_layout
210
211 \begin_layout Chapter
212 Introduction
213 \end_layout
214
215 \begin_layout Standard
216 This manual covers the customization features present in \SpecialChar LyX
217 .
218  In it, we discuss issues like keyboard shortcuts, screen previewing options,
219  printer options, sending commands to \SpecialChar LyX
220  via the \SpecialChar LyX
221  Server, internationalization,
222  installing new \SpecialChar LaTeX
223  classes and \SpecialChar LyX
224  layouts, etc.
225  We can't possibly hope to touch on everything you can change—our developers
226  add new features faster than we can document them—but we will explain the
227  most common customizations and hopefully point you in the right direction
228  for some of the more obscure ones.
229 \end_layout
230
231 \begin_layout Standard
232 \begin_inset Branch OutDated
233 inverted 0
234 status collapsed
235
236 \begin_layout Standard
237 Information from previous versions of this document that now seems to be
238  outdated is contained in the OutDated branch of this document.
239  By default, this information will not appear in the \SpecialChar LaTeX
240  output.
241 \end_layout
242
243 \end_inset
244
245
246 \end_layout
247
248 \begin_layout Chapter
249 \SpecialChar LyX
250  configuration files
251 \end_layout
252
253 \begin_layout Standard
254 This chapter aims to help you to find your way through the \SpecialChar LyX
255  configuration
256  files.
257  Before continuing to read this chapter, you should find out where your
258  \SpecialChar LyX
259  library and user directories are by using 
260 \begin_inset Flex Noun
261 status collapsed
262
263 \begin_layout Plain Layout
264 Help\SpecialChar menuseparator
265 About
266 \begin_inset space ~
267 \end_inset
268
269 LyX
270 \end_layout
271
272 \end_inset
273
274 .
275  The library directory is the place where \SpecialChar LyX
276  places its system-wide configuration
277  files; the user directory is where you can place your modified versions.
278  We will call the former 
279 \begin_inset Flex Code
280 status collapsed
281
282 \begin_layout Plain Layout
283 LyXDir
284 \end_layout
285
286 \end_inset
287
288  and the latter 
289 \begin_inset Flex Noun
290 status collapsed
291
292 \begin_layout Plain Layout
293 UserDir
294 \end_layout
295
296 \end_inset
297
298  in the remainder of this document.
299  
300 \end_layout
301
302 \begin_layout Section
303 What's in 
304 \begin_inset Flex Code
305 status collapsed
306
307 \begin_layout Plain Layout
308 LyXDir
309 \end_layout
310
311 \end_inset
312
313 ?
314 \end_layout
315
316 \begin_layout Standard
317 \begin_inset Flex Code
318 status collapsed
319
320 \begin_layout Plain Layout
321 LyXDir
322 \end_layout
323
324 \end_inset
325
326  and its sub-directories contain a number of files and that can be used
327  to customize \SpecialChar LyX
328 's behavior.
329  You can change many of these files from within \SpecialChar LyX
330  itself through the 
331 \begin_inset Flex Noun
332 status collapsed
333
334 \begin_layout Plain Layout
335 Tools\SpecialChar menuseparator
336 Preferences
337 \end_layout
338
339 \end_inset
340
341  dialog.
342  Most customization that you will want to do in \SpecialChar LyX
343  is possible through this
344  dialog.
345  However, many other inner aspects of \SpecialChar LyX
346  can be customized by modifying the
347  files in 
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 LyXDir
353 \end_layout
354
355 \end_inset
356
357 .
358  These files fall in different categories, described in the following subsection
359 s.
360 \end_layout
361
362 \begin_layout Subsection
363 Automatically generated files
364 \end_layout
365
366 \begin_layout Standard
367 The files, which are to be found in 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 UserDir
373 \end_layout
374
375 \end_inset
376
377 , are generated when you configure \SpecialChar LyX
378 .
379  They contain various default values that are guessed by inspection.
380  In general, it is not a good idea to modify them, since they might be overwritt
381 en at any time.
382 \end_layout
383
384 \begin_layout Labeling
385 \labelwidthstring 00.00.0000
386 \begin_inset Flex Code
387 status collapsed
388
389 \begin_layout Plain Layout
390 lyxrc.defaults
391 \end_layout
392
393 \end_inset
394
395  contains defaults for various commands.
396 \end_layout
397
398 \begin_layout Labeling
399 \labelwidthstring 00.00.0000
400 \begin_inset Flex Code
401 status collapsed
402
403 \begin_layout Plain Layout
404 packages.lst
405 \end_layout
406
407 \end_inset
408
409  contains the list of packages that have been recognized by \SpecialChar LyX
410 .
411  It is currently unused by the \SpecialChar LyX
412  program itself, but the information extracted,
413  and more, is made available with 
414 \begin_inset Flex Noun
415 status collapsed
416
417 \begin_layout Plain Layout
418 Help\SpecialChar menuseparator
419 \SpecialChar LaTeX
420
421 \begin_inset space ~
422 \end_inset
423
424 Configuration
425 \end_layout
426
427 \end_inset
428
429 .
430 \end_layout
431
432 \begin_layout Labeling
433 \labelwidthstring 00.00.0000
434 \begin_inset Flex Code
435 status collapsed
436
437 \begin_layout Plain Layout
438 textclass.lst
439 \end_layout
440
441 \end_inset
442
443  the list of text classes that have been found in your 
444 \begin_inset Flex Code
445 status collapsed
446
447 \begin_layout Plain Layout
448 layout/
449 \end_layout
450
451 \end_inset
452
453  directories, along with the associated \SpecialChar LaTeX
454  document class and their description.
455 \end_layout
456
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 lyxmodules.lst
464 \end_layout
465
466 \end_inset
467
468  the list of layout modules found in your 
469 \begin_inset Flex Code
470 status collapsed
471
472 \begin_layout Plain Layout
473 layout/
474 \end_layout
475
476 \end_inset
477
478  directories
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 *files.lst
488 \end_layout
489
490 \end_inset
491
492  lists of various sorts of \SpecialChar LaTeX
493 -related files found on your system
494 \end_layout
495
496 \begin_layout Labeling
497 \labelwidthstring 00.00.0000
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 doc/\SpecialChar LaTeX
503 Config.lyx
504 \end_layout
505
506 \end_inset
507
508  is automatically generated during configuration from the file 
509 \begin_inset Flex Code
510 status collapsed
511
512 \begin_layout Plain Layout
513 \SpecialChar LaTeX
514 Config.lyx.in
515 \end_layout
516
517 \end_inset
518
519 .
520  It contains information on your \SpecialChar LaTeX
521  configuration.
522 \end_layout
523
524 \begin_layout Subsection
525 Directories
526 \end_layout
527
528 \begin_layout Standard
529 These directories are duplicated between 
530 \begin_inset Flex Code
531 status collapsed
532
533 \begin_layout Plain Layout
534 LyXDir
535 \end_layout
536
537 \end_inset
538
539  and 
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 UserDir
545 \end_layout
546
547 \end_inset
548
549 .
550  If a particular files exists in both places, the one in 
551 \begin_inset Flex Code
552 status collapsed
553
554 \begin_layout Plain Layout
555 UserDir
556 \end_layout
557
558 \end_inset
559
560  will be used.
561 \end_layout
562
563 \begin_layout Labeling
564 \labelwidthstring 00.00.0000
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 bind/
570 \end_layout
571
572 \end_inset
573
574  this directory contains files with the extension 
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 .bind
580 \end_layout
581
582 \end_inset
583
584  that define the keybindings used in \SpecialChar LyX
585 .
586  If there exists an internationalized version of the bind file named 
587 \begin_inset Flex Code
588 status collapsed
589
590 \begin_layout Plain Layout
591 $LANG_xxx.bind
592 \end_layout
593
594 \end_inset
595
596 , that will be used first.
597 \end_layout
598
599 \begin_layout Labeling
600 \labelwidthstring 00.00.0000
601 \begin_inset Flex Code
602 status collapsed
603
604 \begin_layout Plain Layout
605 citeengines/
606 \end_layout
607
608 \end_inset
609
610  contains files with the extension 
611 \begin_inset Flex Code
612 status collapsed
613
614 \begin_layout Plain Layout
615 .citeengine
616 \end_layout
617
618 \end_inset
619
620  which define the diverse citation possibilities (natbib, biblatex etc.).
621  See 
622 \begin_inset CommandInset ref
623 LatexCommand ref
624 reference "subsec:Cite-Engine-Files"
625 plural "false"
626 caps "false"
627 noprefix "false"
628
629 \end_inset
630
631  for details.
632 \end_layout
633
634 \begin_layout Labeling
635 \labelwidthstring 00.00.0000
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640 clipart/
641 \end_layout
642
643 \end_inset
644
645  contains graphics files that can be included in documents.
646  
647 \end_layout
648
649 \begin_layout Labeling
650 \labelwidthstring 00.00.0000
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655 doc/
656 \end_layout
657
658 \end_inset
659
660  contains \SpecialChar LyX
661  documentation files (including the one you are currently reading).
662  The file 
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 \SpecialChar LaTeX
668 Config.lyx
669 \end_layout
670
671 \end_inset
672
673  deserves special attention, as noted above.
674  The internationalized help docs are in subdirectories 
675 \begin_inset Flex Code
676 status collapsed
677
678 \begin_layout Plain Layout
679 doc/xx
680 \end_layout
681
682 \end_inset
683
684  where 
685 \begin_inset Quotes eld
686 \end_inset
687
688 xx
689 \begin_inset Quotes erd
690 \end_inset
691
692  is the ISO language code.
693  See 
694 \begin_inset CommandInset ref
695 LatexCommand ref
696 reference "cha:Internationalizing-LyX"
697
698 \end_inset
699
700  for details.
701 \end_layout
702
703 \begin_layout Labeling
704 \labelwidthstring 00.00.0000
705 \begin_inset Flex Code
706 status collapsed
707
708 \begin_layout Plain Layout
709 examples/
710 \end_layout
711
712 \end_inset
713
714  contains example files that explain how to use some features.
715  In the file browser, press the 
716 \begin_inset Flex Noun
717 status collapsed
718
719 \begin_layout Plain Layout
720 Examples
721 \end_layout
722
723 \end_inset
724
725  button to get there.
726 \end_layout
727
728 \begin_layout Labeling
729 \labelwidthstring 00.00.0000
730 \begin_inset Flex Code
731 status collapsed
732
733 \begin_layout Plain Layout
734 images/
735 \end_layout
736
737 \end_inset
738
739  contains image files that are used by the 
740 \begin_inset Flex Noun
741 status collapsed
742
743 \begin_layout Plain Layout
744 Document
745 \end_layout
746
747 \end_inset
748
749  dialog.
750  In addition, it also contains the individual icons used in the toolbar
751  and the banners that can be shown when \SpecialChar LyX
752  is launched.
753 \end_layout
754
755 \begin_layout Labeling
756 \labelwidthstring 00.00.0000
757 \begin_inset Flex Code
758 status collapsed
759
760 \begin_layout Plain Layout
761 kbd/
762 \end_layout
763
764 \end_inset
765
766  contains keyboard keymapping files.
767  See 
768 \begin_inset CommandInset ref
769 LatexCommand ref
770 reference "sec:International-Keymap-Stuff"
771
772 \end_inset
773
774  for details.
775 \end_layout
776
777 \begin_layout Labeling
778 \labelwidthstring 00.00.0000
779 \begin_inset Flex Code
780 status collapsed
781
782 \begin_layout Plain Layout
783 layouts/
784 \end_layout
785
786 \end_inset
787
788  contains the text class and module files described in 
789 \begin_inset CommandInset ref
790 LatexCommand ref
791 reference "cha:Installing-New-Document"
792
793 \end_inset
794
795 .
796 \end_layout
797
798 \begin_layout Labeling
799 \labelwidthstring 00.00.0000
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 lyx2lyx
805 \end_layout
806
807 \end_inset
808
809  contains the 
810 \begin_inset Flex Code
811 status collapsed
812
813 \begin_layout Plain Layout
814 lyx2lyx
815 \end_layout
816
817 \end_inset
818
819  Python scripts used to convert between \SpecialChar LyX
820  versions.
821  These can be run from the command line if, say, you want to batch-convert
822  files.
823 \end_layout
824
825 \begin_layout Labeling
826 \labelwidthstring 00.00.0000
827 \begin_inset Flex Code
828 status collapsed
829
830 \begin_layout Plain Layout
831 scripts/
832 \end_layout
833
834 \end_inset
835
836  contains some files that demonstrate the capabilities of the 
837 \begin_inset Flex Noun
838 status collapsed
839
840 \begin_layout Plain Layout
841 External
842 \begin_inset space ~
843 \end_inset
844
845 Template
846 \end_layout
847
848 \end_inset
849
850  feature.
851  Also contains some scripts used by \SpecialChar LyX
852  itself.
853 \end_layout
854
855 \begin_layout Labeling
856 \labelwidthstring 00.00.0000
857 \begin_inset Flex Code
858 status collapsed
859
860 \begin_layout Plain Layout
861 templates/
862 \end_layout
863
864 \end_inset
865
866  contains the standard \SpecialChar LyX
867  template files described in 
868 \begin_inset CommandInset ref
869 LatexCommand ref
870 reference "subsec:Creating-Templates"
871
872 \end_inset
873
874 .
875 \end_layout
876
877 \begin_layout Labeling
878 \labelwidthstring 00.00.0000
879 \begin_inset Flex Code
880 status collapsed
881
882 \begin_layout Plain Layout
883 ui/
884 \end_layout
885
886 \end_inset
887
888  contains files with the extension 
889 \begin_inset Flex Code
890 status collapsed
891
892 \begin_layout Plain Layout
893 .ui
894 \end_layout
895
896 \end_inset
897
898  that define the user interface to \SpecialChar LyX
899 .
900  That is, the files define which items appear in which menus and the items
901  appearing on the toolbar.
902 \end_layout
903
904 \begin_layout Labeling
905 \labelwidthstring 00.00.0000
906 \begin_inset Flex Code
907 status collapsed
908
909 \begin_layout Plain Layout
910 xtemplates/
911 \end_layout
912
913 \end_inset
914
915  contains files with the extension 
916 \begin_inset Flex Code
917 status collapsed
918
919 \begin_layout Plain Layout
920 .xtemplate
921 \end_layout
922
923 \end_inset
924
925  which define the templates for the insertion of external material to a
926  \SpecialChar LyX
927  document; see 
928 \begin_inset CommandInset ref
929 LatexCommand ref
930 reference "chap:Including-External-Material"
931
932 \end_inset
933
934 .
935 \end_layout
936
937 \begin_layout Subsection
938 Files you don't want to modify
939 \end_layout
940
941 \begin_layout Standard
942 These files are used internally by \SpecialChar LyX
943  and you generally do not need to modify
944  them unless you are a developer.
945 \end_layout
946
947 \begin_layout Labeling
948 \labelwidthstring 00.00.0000
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 CREDITS
954 \end_layout
955
956 \end_inset
957
958  this file contains the list of \SpecialChar LyX
959  developers.
960  The contents are displayed with the menu entry 
961 \begin_inset Flex Noun
962 status collapsed
963
964 \begin_layout Plain Layout
965 Help\SpecialChar menuseparator
966 About
967 \begin_inset space ~
968 \end_inset
969
970 LyX
971 \end_layout
972
973 \end_inset
974
975 .
976 \end_layout
977
978 \begin_layout Labeling
979 \labelwidthstring 00.00.0000
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 chkconfig.ltx
985 \end_layout
986
987 \end_inset
988
989  this is a \SpecialChar LaTeX
990  script used during the configuration process.
991  Do not run directly.
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 configure.py
1001 \end_layout
1002
1003 \end_inset
1004
1005  this is a Python script that is used to re-configure \SpecialChar LyX
1006 .
1007  It creates configuration files in the directory it was run from.
1008 \end_layout
1009
1010 \begin_layout Subsection
1011 Other files needing a line or two
1012 \end_layout
1013
1014 \begin_layout Labeling
1015 \labelwidthstring 00.00.0000
1016 \begin_inset Flex Code
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 encodings
1021 \end_layout
1022
1023 \end_inset
1024
1025  this contains tables describing how different character encodings can be
1026  mapped to Unicode
1027 \end_layout
1028
1029 \begin_layout Labeling
1030 \labelwidthstring 00.00.0000
1031 \begin_inset Flex Code
1032 status collapsed
1033
1034 \begin_layout Plain Layout
1035 languages
1036 \end_layout
1037
1038 \end_inset
1039
1040  this file contains a list of all the languages currently supported by \SpecialChar LyX
1041 .
1042 \end_layout
1043
1044 \begin_layout Labeling
1045 \labelwidthstring 00.00.0000
1046 \begin_inset Flex Code
1047 status collapsed
1048
1049 \begin_layout Plain Layout
1050 latexfonts
1051 \end_layout
1052
1053 \end_inset
1054
1055  contains information about the supported fonts.
1056 \end_layout
1057
1058 \begin_layout Labeling
1059 \labelwidthstring 00.00.0000
1060 \begin_inset Flex Code
1061 status collapsed
1062
1063 \begin_layout Plain Layout
1064 layouttranslations
1065 \end_layout
1066
1067 \end_inset
1068
1069  this file contains translations for internationalized paragraph styles
1070  (see 
1071 \begin_inset CommandInset ref
1072 LatexCommand ref
1073 reference "subsec:I18n"
1074
1075 \end_inset
1076
1077 ).
1078 \end_layout
1079
1080 \begin_layout Labeling
1081 \labelwidthstring 00.00.0000
1082 \begin_inset Flex Code
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086 unicodesymbols
1087 \end_layout
1088
1089 \end_inset
1090
1091  this file contains information about unicode-encoded glyphs and the way
1092  they are supported by \SpecialChar LyX
1093  via \SpecialChar LaTeX
1094 .
1095 \end_layout
1096
1097 \begin_layout Section
1098 Your local configuration directory
1099 \end_layout
1100
1101 \begin_layout Standard
1102 Even if you are using \SpecialChar LyX
1103  as an unprivileged user, you might want to change
1104  \SpecialChar LyX
1105  configuration for your own use.
1106  The 
1107 \begin_inset Flex Code
1108 status collapsed
1109
1110 \begin_layout Plain Layout
1111 UserDir
1112 \end_layout
1113
1114 \end_inset
1115
1116  directory contains all your personal configuration files.
1117  This is the directory described as 
1118 \begin_inset Quotes eld
1119 \end_inset
1120
1121 user directory
1122 \begin_inset Quotes erd
1123 \end_inset
1124
1125  in 
1126 \begin_inset Flex Noun
1127 status collapsed
1128
1129 \begin_layout Plain Layout
1130 Help\SpecialChar menuseparator
1131 About
1132 \begin_inset space ~
1133 \end_inset
1134
1135 LyX
1136 \end_layout
1137
1138 \end_inset
1139
1140 .
1141  This directory is used as a mirror of 
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 LyXDir
1147 \end_layout
1148
1149 \end_inset
1150
1151 , which means that every file in 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 UserDir
1157 \end_layout
1158
1159 \end_inset
1160
1161  is a replacement for the corresponding file in 
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 LyXDir
1167 \end_layout
1168
1169 \end_inset
1170
1171 .
1172  Any configuration file described in the above sections can be placed either
1173  in the system-wide directory, in which case it will affect all users, or
1174  in your local directory for your own use.
1175 \end_layout
1176
1177 \begin_layout Standard
1178 To make things clearer, let's provide a few examples:
1179 \end_layout
1180
1181 \begin_layout Itemize
1182 The preferences set in the 
1183 \begin_inset Flex Noun
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187 Tools\SpecialChar menuseparator
1188 Preferences
1189 \end_layout
1190
1191 \end_inset
1192
1193  dialog are saved to a file 
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 preferences
1199 \end_layout
1200
1201 \end_inset
1202
1203  in 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 UserDir
1209 \end_layout
1210
1211 \end_inset
1212
1213 .
1214 \end_layout
1215
1216 \begin_layout Itemize
1217 When you reconfigure using 
1218 \begin_inset Flex Noun
1219 status collapsed
1220
1221 \begin_layout Plain Layout
1222 Tools\SpecialChar menuseparator
1223 Reconfigure
1224 \end_layout
1225
1226 \end_inset
1227
1228 , \SpecialChar LyX
1229  runs the 
1230 \begin_inset Flex Code
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234 configure.py
1235 \end_layout
1236
1237 \end_inset
1238
1239  script, and the resulting files are written in your local configuration
1240  directory.
1241  This means that any additional text class file that you might have added
1242  in 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 UserDir/layouts
1248 \end_layout
1249
1250 \end_inset
1251
1252  will be added to the list of classes in the 
1253 \begin_inset Flex Noun
1254 status collapsed
1255
1256 \begin_layout Plain Layout
1257 Document\SpecialChar menuseparator
1258 Settings
1259 \end_layout
1260
1261 \end_inset
1262
1263  dialog.
1264 \end_layout
1265
1266 \begin_layout Itemize
1267 If you get some updated documentation from \SpecialChar LyX
1268  ftp site and cannot install
1269  it because you do not have sysadmin rights on your system, you can just
1270  copy the files in 
1271 \begin_inset Flex Code
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 UserDir/doc/
1276 \end_layout
1277
1278 \end_inset
1279
1280  and the items in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Help
1286 \end_layout
1287
1288 \end_inset
1289
1290  menu will open them!
1291 \end_layout
1292
1293 \begin_layout Section
1294 Running \SpecialChar LyX
1295  with multiple configurations
1296 \end_layout
1297
1298 \begin_layout Standard
1299 The configuration freedom of the local configuration directory may not suffice
1300  if you want to have more than one configuration at your disposal.
1301  For example, you may want to be use different key bindings or printer settings
1302  at different times.
1303  You can achieve this by having several such directories.
1304  You then specify which directory to use at run-time.
1305 \end_layout
1306
1307 \begin_layout Standard
1308 Invoking \SpecialChar LyX
1309  with the command line switch 
1310 \begin_inset Flex Code
1311 status collapsed
1312
1313 \begin_layout Plain Layout
1314 -userdir
1315 \end_layout
1316
1317 \end_inset
1318
1319  
1320 \emph on
1321 <some directory>
1322 \emph default
1323  instructs the program to read the configuration from that directory, and
1324  not from the default directory.
1325  (You can determine the default directory by running \SpecialChar LyX
1326  without the 
1327 \begin_inset Flex Code
1328 status collapsed
1329
1330 \begin_layout Plain Layout
1331 -userdir
1332 \end_layout
1333
1334 \end_inset
1335
1336  switch.) If the specified directory does not exist, \SpecialChar LyX
1337  offers to create it
1338  for you, just like it does for the default directory on the first time
1339  you run the program.
1340  You can modify the configuration options in this additional user directory
1341  exactly as you would for the default directory.
1342  These directories are completely independent (but read on).
1343  Note that setting the environment variable 
1344 \begin_inset Flex Code
1345 status collapsed
1346
1347 \begin_layout Plain Layout
1348 LYX_USERDIR_VER
1349 \end_layout
1350
1351 \end_inset
1352
1353  to some value has exactly the same effect.
1354 \end_layout
1355
1356 \begin_layout Standard
1357 Having several configurations also requires more maintenance: if you want
1358  to add a new layout to 
1359 \begin_inset Flex Code
1360 status collapsed
1361
1362 \begin_layout Plain Layout
1363 NewUserDir/layouts
1364 \end_layout
1365
1366 \end_inset
1367
1368  which you want available from all your configurations, you must add it
1369  to each directory separately.
1370  You can avoid this with the following trick: after \SpecialChar LyX
1371  creates the additional
1372  directory, most of the subdirectories (see above) are empty.
1373  If you want the new configuration to mirror an existing one, replace the
1374  empty subdirectory with a symbolic link to the matching subdirectory in
1375  the existing configuration.
1376  Take care with the 
1377 \begin_inset Flex Code
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381 doc/
1382 \end_layout
1383
1384 \end_inset
1385
1386  subdirectory, however, since it contains a file written by the configuration
1387  script (also accessible through 
1388 \begin_inset Flex Noun
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 Tools\SpecialChar menuseparator
1393 Reconfigure
1394 \end_layout
1395
1396 \end_inset
1397
1398 ) which is configuration-specific.
1399 \end_layout
1400
1401 \begin_layout Chapter
1402 The Preferences dialog
1403 \end_layout
1404
1405 \begin_layout Standard
1406 All options of the preferences dialog are described in the Appendix 
1407 \emph on
1408 The Preferences Dialog
1409 \emph default
1410  in the 
1411 \emph on
1412 User's Guide
1413 \emph default
1414 .
1415  For some options you might find here more details.
1416 \end_layout
1417
1418 \begin_layout Section
1419 Formats
1420 \begin_inset CommandInset label
1421 LatexCommand label
1422 name "sec:Formats"
1423
1424 \end_inset
1425
1426
1427 \end_layout
1428
1429 \begin_layout Standard
1430 The first step is to define your file formats if they are not already defined.
1431  To do so, open the 
1432 \begin_inset Flex Noun
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 Tools\SpecialChar menuseparator
1437 Preferences
1438 \end_layout
1439
1440 \end_inset
1441
1442  dialog.
1443  Under 
1444 \begin_inset Flex Noun
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 File Handling\SpecialChar menuseparator
1449 File formats
1450 \end_layout
1451
1452 \end_inset
1453
1454  press the 
1455 \begin_inset Flex Noun
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 New
1460 \end_layout
1461
1462 \end_inset
1463
1464  button to define your new format.
1465  The 
1466 \begin_inset Flex Noun
1467 status collapsed
1468
1469 \begin_layout Plain Layout
1470 Format
1471 \end_layout
1472
1473 \end_inset
1474
1475  field contains the name used to identify the format in the GUI.
1476  The 
1477 \begin_inset Flex Noun
1478 status collapsed
1479
1480 \begin_layout Plain Layout
1481 Short Name
1482 \end_layout
1483
1484 \end_inset
1485
1486  is used to identify the format internally.
1487  You will also need to enter a file extension.
1488  These are all required.
1489  The optional 
1490 \begin_inset Flex Noun
1491 status collapsed
1492
1493 \begin_layout Plain Layout
1494 Shortcut
1495 \end_layout
1496
1497 \end_inset
1498
1499  field is used to provide a keyboard shortcut on the menus.
1500  (For example, pressing 
1501 \begin_inset Flex Noun
1502 status collapsed
1503
1504 \begin_layout Plain Layout
1505 Ctrl+D
1506 \end_layout
1507
1508 \end_inset
1509
1510  will 
1511 \begin_inset Flex Noun
1512 status collapsed
1513
1514 \begin_layout Plain Layout
1515 Document\SpecialChar menuseparator
1516 View (Other Formats)\SpecialChar menuseparator
1517 DVI
1518 \end_layout
1519
1520 \end_inset
1521
1522 .) 
1523 \end_layout
1524
1525 \begin_layout Standard
1526 A Format can have a 
1527 \begin_inset Flex Noun
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 Viewer
1532 \end_layout
1533
1534 \end_inset
1535
1536  and an 
1537 \begin_inset Flex Noun
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 Editor
1542 \end_layout
1543
1544 \end_inset
1545
1546  associated with it.
1547  For example, you might want to use 
1548 \begin_inset Flex Noun
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552 Ghostview
1553 \end_layout
1554
1555 \end_inset
1556
1557  to view PostScript files.
1558  You can enter the command needed to start the program in the corresponding
1559  fields.
1560  In defining this command, you can use the four variables listed in the
1561  next section.
1562  The viewer is launched when you view an image in \SpecialChar LyX
1563  or use the 
1564 \begin_inset Flex Noun
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568 Document\SpecialChar menuseparator
1569 View
1570 \end_layout
1571
1572 \end_inset
1573
1574  menu.
1575  The editor is for example launched when you right-click on an image and
1576  choose 
1577 \begin_inset Flex Noun
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 Edit externally
1582 \end_layout
1583
1584 \end_inset
1585
1586  in the appearing context menu.
1587 \end_layout
1588
1589 \begin_layout Standard
1590 The 
1591 \begin_inset Flex Noun
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 MIME
1596 \end_layout
1597
1598 \end_inset
1599
1600  type of a format is optional, but if it is specified, it must be unique
1601  across all formats.
1602  It is used to detect files of this format from the file contents.
1603  For some important file formats there is no MIME type officially registered
1604  with the 
1605 \begin_inset CommandInset href
1606 LatexCommand href
1607 name "IANA"
1608 target "http://www.iana.org/assignments/media-types/"
1609 literal "false"
1610
1611 \end_inset
1612
1613 .
1614  Therefore \SpecialChar LyX
1615  uses the extended list of MIME types as specified by 
1616 \begin_inset CommandInset href
1617 LatexCommand href
1618 name "freedesktop.org"
1619 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1620 literal "false"
1621
1622 \end_inset
1623
1624 .
1625 \end_layout
1626
1627 \begin_layout Standard
1628 The 
1629 \begin_inset Flex Noun
1630 status collapsed
1631
1632 \begin_layout Plain Layout
1633 Document format
1634 \end_layout
1635
1636 \end_inset
1637
1638  option tells \SpecialChar LyX
1639  that a format is suitable for document export.
1640  If this is set and if a suitable conversion route exists (see 
1641 \begin_inset CommandInset ref
1642 LatexCommand ref
1643 reference "sec:Converters"
1644
1645 \end_inset
1646
1647 ), the format will appear in the 
1648 \begin_inset Flex Noun
1649 status collapsed
1650
1651 \begin_layout Plain Layout
1652 File\SpecialChar menuseparator
1653 Export
1654 \end_layout
1655
1656 \end_inset
1657
1658  menu.
1659  The format will also appear in the 
1660 \begin_inset Flex Noun
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 Document\SpecialChar menuseparator
1665 View
1666 \end_layout
1667
1668 \end_inset
1669
1670  menu if a viewer is specified for the format.
1671  Pure image formats, such as 
1672 \begin_inset Flex Code
1673 status collapsed
1674
1675 \begin_layout Plain Layout
1676 png
1677 \end_layout
1678
1679 \end_inset
1680
1681 , should not use this option.
1682  Formats that can both represent vector graphics and documents like 
1683 \begin_inset Flex Code
1684 status collapsed
1685
1686 \begin_layout Plain Layout
1687 pdf
1688 \end_layout
1689
1690 \end_inset
1691
1692  should use it.
1693 \end_layout
1694
1695 \begin_layout Standard
1696 The option 
1697 \begin_inset Flex Noun
1698 status collapsed
1699
1700 \begin_layout Plain Layout
1701 Vector graphics format
1702 \end_layout
1703
1704 \end_inset
1705
1706  tells \SpecialChar LyX
1707  that a format can contain vector graphics.
1708  This information is used to determine the target format of included graphics
1709  for 
1710 \begin_inset Flex Noun
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 pdflatex
1715 \end_layout
1716
1717 \end_inset
1718
1719  export.
1720  Included graphics may need to be converted to either 
1721 \begin_inset Flex Noun
1722 status collapsed
1723
1724 \begin_layout Plain Layout
1725 pdf
1726 \end_layout
1727
1728 \end_inset
1729
1730
1731 \begin_inset Flex Noun
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 png
1736 \end_layout
1737
1738 \end_inset
1739
1740 , or 
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 jpg
1746 \end_layout
1747
1748 \end_inset
1749
1750 , since 
1751 \begin_inset Flex Noun
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755 pdflatex
1756 \end_layout
1757
1758 \end_inset
1759
1760  cannot handle other image formats.
1761  If an included graphic is not already in 
1762 \begin_inset Flex Noun
1763 status collapsed
1764
1765 \begin_layout Plain Layout
1766 pdf
1767 \end_layout
1768
1769 \end_inset
1770
1771
1772 \begin_inset Flex Noun
1773 status collapsed
1774
1775 \begin_layout Plain Layout
1776 png
1777 \end_layout
1778
1779 \end_inset
1780
1781 , or 
1782 \begin_inset Flex Noun
1783 status collapsed
1784
1785 \begin_layout Plain Layout
1786 jpg
1787 \end_layout
1788
1789 \end_inset
1790
1791  format, it is converted to 
1792 \begin_inset Flex Noun
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 pdf
1797 \end_layout
1798
1799 \end_inset
1800
1801  if the vector format option is set, and otherwise to 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 png
1807 \end_layout
1808
1809 \end_inset
1810
1811 .
1812 \end_layout
1813
1814 \begin_layout Section
1815 Copiers
1816 \end_layout
1817
1818 \begin_layout Standard
1819 Since all conversions from one format to another take place in \SpecialChar LyX
1820 's temporary
1821  directory, it is sometimes necessary to modify a file before copying it
1822  to the temporary directory in order that the conversion may be performed.
1823 \begin_inset Foot
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 For example, the file may refer to other files—images, for example—using
1828  relative file names, and these may become invalid when the file is copied
1829  to the temporary directory.
1830 \end_layout
1831
1832 \end_inset
1833
1834  This is done by a Copier: It copies a file to (or from) the temporary directory
1835  and may modify it in the process.
1836 \end_layout
1837
1838 \begin_layout Standard
1839 The definitions of the copiers may use eight variables:
1840 \end_layout
1841
1842 \begin_layout Labeling
1843 \labelwidthstring 00.00.0000
1844 \begin_inset Flex Code
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 $$s
1849 \end_layout
1850
1851 \end_inset
1852
1853  The \SpecialChar LyX
1854  system directory (e.
1855 \begin_inset space \thinspace{}
1856 \end_inset
1857
1858 g.
1859 \begin_inset space \space{}
1860 \end_inset
1861
1862
1863 \begin_inset Flex Noun
1864 status collapsed
1865
1866 \begin_layout Plain Layout
1867 /usr/share/lyx
1868 \end_layout
1869
1870 \end_inset
1871
1872 ).
1873 \end_layout
1874
1875 \begin_layout Labeling
1876 \labelwidthstring 00.00.0000
1877 \begin_inset Flex Code
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881 $$i
1882 \end_layout
1883
1884 \end_inset
1885
1886  The input file
1887 \end_layout
1888
1889 \begin_layout Labeling
1890 \labelwidthstring 00.00.0000
1891 \begin_inset Flex Code
1892 status collapsed
1893
1894 \begin_layout Plain Layout
1895 $$o
1896 \end_layout
1897
1898 \end_inset
1899
1900  The output file
1901 \end_layout
1902
1903 \begin_layout Labeling
1904 \labelwidthstring 00.00.0000
1905 \begin_inset Flex Code
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 $$b
1910 \end_layout
1911
1912 \end_inset
1913
1914  The base name (without filename extension) in the \SpecialChar LyX
1915  temporary directory
1916 \end_layout
1917
1918 \begin_layout Labeling
1919 \labelwidthstring 00.00.0000
1920 \begin_inset Flex Code
1921 status collapsed
1922
1923 \begin_layout Plain Layout
1924 $$p
1925 \end_layout
1926
1927 \end_inset
1928
1929  The full directory path of the \SpecialChar LyX
1930  temporary directory
1931 \end_layout
1932
1933 \begin_layout Labeling
1934 \labelwidthstring 00.00.0000
1935 \begin_inset Flex Code
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 $$r
1940 \end_layout
1941
1942 \end_inset
1943
1944  The full pathname to the original \SpecialChar LyX
1945  file being processed
1946 \end_layout
1947
1948 \begin_layout Labeling
1949 \labelwidthstring 00.00.0000
1950 \begin_inset Flex Code
1951 status collapsed
1952
1953 \begin_layout Plain Layout
1954 $$f
1955 \end_layout
1956
1957 \end_inset
1958
1959  The filename (without any directory path) of the \SpecialChar LyX
1960  file.
1961 \end_layout
1962
1963 \begin_layout Labeling
1964 \labelwidthstring 00.00.0000
1965 \begin_inset Flex Code
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 $$l
1970 \end_layout
1971
1972 \end_inset
1973
1974  The `\SpecialChar LaTeX
1975  name'
1976 \end_layout
1977
1978 \begin_layout Standard
1979 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1980 's 
1981 \series bold
1982
1983 \backslash
1984 include
1985 \series default
1986  command.
1987  It is relevant only when exporting files suitable for such inclusion.
1988 \end_layout
1989
1990 \begin_layout Standard
1991 Copiers can be used to do almost anything with output files.
1992  For example, suppose you want generated pdf files to be copied to a special
1993  directory, 
1994 \begin_inset Flex Code
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 /home/you/pdf/
1999 \end_layout
2000
2001 \end_inset
2002
2003 .
2004  Then you could write a shell script such as this one:
2005 \end_layout
2006
2007 \begin_layout Standard
2008 \begin_inset listings
2009 inline false
2010 status open
2011
2012 \begin_layout Plain Layout
2013
2014 #!/bin/bash
2015 \end_layout
2016
2017 \begin_layout Plain Layout
2018
2019 FROMFILE=$1
2020 \end_layout
2021
2022 \begin_layout Plain Layout
2023
2024 TOFILE=`basename $2`
2025 \end_layout
2026
2027 \begin_layout Plain Layout
2028
2029 cp $FROMFILE /home/you/pdf/$TOFILE
2030 \end_layout
2031
2032 \end_inset
2033
2034 Save it in your local \SpecialChar LyX
2035  directory—say, 
2036 \begin_inset Flex Code
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040 /home/you/.lyx/scripts/pdfcopier.sh
2041 \end_layout
2042
2043 \end_inset
2044
2045 —and make it executable, if you need to do so on your platform.
2046  Then, in the 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 Tools\SpecialChar menuseparator
2052 Preferences
2053 \end_layout
2054
2055 \end_inset
2056
2057  dialog, select under 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 File Handling\SpecialChar menuseparator
2063 File formats
2064 \end_layout
2065
2066 \end_inset
2067
2068  the 
2069 \begin_inset Flex Noun
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073 PDF(pdflatex)
2074 \end_layout
2075
2076 \end_inset
2077
2078  format—or one of the other pdf formats—and enter 
2079 \begin_inset Flex Code
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083 pdfcopier.sh $$i $$o
2084 \end_layout
2085
2086 \end_inset
2087
2088  into the 
2089 \begin_inset Flex Noun
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 Copier
2094 \end_layout
2095
2096 \end_inset
2097
2098  field.
2099  
2100 \end_layout
2101
2102 \begin_layout Standard
2103 Copiers are used by \SpecialChar LyX
2104  in various of its own conversions.
2105  For example, if appropriate programs are found, \SpecialChar LyX
2106  will automatically install
2107  copiers for the 
2108 \begin_inset Flex Noun
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 HTML
2113 \end_layout
2114
2115 \end_inset
2116
2117  and 
2118 \begin_inset Flex Noun
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122 HTML
2123 \begin_inset space ~
2124 \end_inset
2125
2126 (MS Word)
2127 \end_layout
2128
2129 \end_inset
2130
2131  formats.
2132  When these formats are exported, the copier sees that not just the main
2133  HTML file but various associated files (style files, images, etc.) are also
2134  copied.
2135  All these files are written to a subdirectory of the directory in which
2136  the original \SpecialChar LyX
2137  file was found.
2138 \begin_inset Foot
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 This copier can be customized.
2143  The optional 
2144 \begin_inset Quotes eld
2145 \end_inset
2146
2147 -e
2148 \begin_inset Quotes erd
2149 \end_inset
2150
2151  argument takes a comma-separated list of extensions to be copied; if it
2152  is omitted, all files will be copied.
2153  The 
2154 \begin_inset Quotes eld
2155 \end_inset
2156
2157 -t
2158 \begin_inset Quotes erd
2159 \end_inset
2160
2161  argument determines the extension added to the generated directory.
2162  By default, it is 
2163 \begin_inset Quotes eld
2164 \end_inset
2165
2166
2167 \begin_inset Flex Noun
2168 status collapsed
2169
2170 \begin_layout Plain Layout
2171 LyXconv
2172 \end_layout
2173
2174 \end_inset
2175
2176
2177 \begin_inset Quotes erd
2178 \end_inset
2179
2180 , so HTML generated from 
2181 \begin_inset Flex Noun
2182 status collapsed
2183
2184 \begin_layout Plain Layout
2185 /path/to/filename.lyx
2186 \end_layout
2187
2188 \end_inset
2189
2190  will end up in 
2191 \begin_inset Flex Noun
2192 status collapsed
2193
2194 \begin_layout Plain Layout
2195 /path/to/filename.html.LyXconv
2196 \end_layout
2197
2198 \end_inset
2199
2200 .
2201  
2202 \end_layout
2203
2204 \end_inset
2205
2206
2207 \end_layout
2208
2209 \begin_layout Section
2210 Converters
2211 \begin_inset CommandInset label
2212 LatexCommand label
2213 name "sec:Converters"
2214
2215 \end_inset
2216
2217
2218 \end_layout
2219
2220 \begin_layout Standard
2221 You can define your own Converters to convert files between different formats.
2222  This is done in the 
2223 \begin_inset Flex Noun
2224 status collapsed
2225
2226 \begin_layout Plain Layout
2227 Tools\SpecialChar menuseparator
2228 Preferences\SpecialChar menuseparator
2229 File Handling\SpecialChar menuseparator
2230 Converters
2231 \end_layout
2232
2233 \end_inset
2234
2235  dialog.
2236 \end_layout
2237
2238 \begin_layout Standard
2239 To define a new converter, select the 
2240 \begin_inset Flex Noun
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 From
2245 \begin_inset space ~
2246 \end_inset
2247
2248 format
2249 \end_layout
2250
2251 \end_inset
2252
2253  and 
2254 \begin_inset Flex Noun
2255 status collapsed
2256
2257 \begin_layout Plain Layout
2258 To
2259 \begin_inset space ~
2260 \end_inset
2261
2262 format
2263 \end_layout
2264
2265 \end_inset
2266
2267  from the drop-down lists, enter the command needed for the conversion,
2268  and then press the 
2269 \begin_inset Flex Noun
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 Add
2274 \end_layout
2275
2276 \end_inset
2277
2278  button.
2279  Several variables can be used in the definition of converters:
2280 \end_layout
2281
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Flex Code
2285 status collapsed
2286
2287 \begin_layout Plain Layout
2288 $$s
2289 \end_layout
2290
2291 \end_inset
2292
2293  The \SpecialChar LyX
2294  system directory
2295 \end_layout
2296
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Flex Code
2300 status collapsed
2301
2302 \begin_layout Plain Layout
2303 $$i
2304 \end_layout
2305
2306 \end_inset
2307
2308  The input file
2309 \end_layout
2310
2311 \begin_layout Labeling
2312 \labelwidthstring 00.00.0000
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 $$o
2318 \end_layout
2319
2320 \end_inset
2321
2322  The output file
2323 \end_layout
2324
2325 \begin_layout Labeling
2326 \labelwidthstring 00.00.0000
2327 \begin_inset Flex Code
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331 $$b
2332 \end_layout
2333
2334 \end_inset
2335
2336  The base filename of the input file (i.
2337 \begin_inset space \thinspace{}
2338 \end_inset
2339
2340 g., without the extension)
2341 \end_layout
2342
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Flex Code
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 $$p
2350 \end_layout
2351
2352 \end_inset
2353
2354  The path to the input file
2355 \end_layout
2356
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363 $$r
2364 \end_layout
2365
2366 \end_inset
2367
2368  The path to the original input file (this is different from $$p when a
2369  chain of converters is called)
2370 \end_layout
2371
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Flex Code
2375 status collapsed
2376
2377 \begin_layout Plain Layout
2378 $$e
2379 \end_layout
2380
2381 \end_inset
2382
2383  The iconv name for the encoding of the document.
2384 \end_layout
2385
2386 \begin_layout Standard
2387 In the 
2388 \begin_inset Flex Noun
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392 Extra
2393 \begin_inset space ~
2394 \end_inset
2395
2396 Flag
2397 \end_layout
2398
2399 \end_inset
2400
2401  field you can enter the following flags, separated by commas:
2402 \end_layout
2403
2404 \begin_layout Labeling
2405 \labelwidthstring 00.00.0000
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410 latex
2411 \end_layout
2412
2413 \end_inset
2414
2415  This converter runs some form of \SpecialChar LaTeX
2416 .
2417  This will make \SpecialChar LyX
2418 's \SpecialChar LaTeX
2419  error logs available.
2420 \end_layout
2421
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 needaux
2429 \end_layout
2430
2431 \end_inset
2432
2433  Needs the \SpecialChar LaTeX
2434  
2435 \begin_inset Flex Noun
2436 status collapsed
2437
2438 \begin_layout Plain Layout
2439 .aux
2440 \end_layout
2441
2442 \end_inset
2443
2444  file for the conversion.
2445 \end_layout
2446
2447 \begin_layout Labeling
2448 \labelwidthstring 00.00.0000
2449 \begin_inset Flex Code
2450 status collapsed
2451
2452 \begin_layout Plain Layout
2453 nice
2454 \end_layout
2455
2456 \end_inset
2457
2458  Needs a 
2459 \begin_inset Quotes eld
2460 \end_inset
2461
2462 nice
2463 \begin_inset Quotes erd
2464 \end_inset
2465
2466  file from the backend, which in practice means a \SpecialChar LaTeX
2467  file like the one we
2468  would export, without 
2469 \begin_inset Flex Code
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473 input@path
2474 \end_layout
2475
2476 \end_inset
2477
2478 .
2479 \end_layout
2480
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2483 \begin_inset Flex Code
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 xml
2488 \end_layout
2489
2490 \end_inset
2491
2492  Output is XML.
2493 \end_layout
2494
2495 \begin_layout Standard
2496 The following three flags are not really flags at all because they take
2497  an argument in the 
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 key
2503 \begin_inset space ~
2504 \end_inset
2505
2506 =
2507 \begin_inset space ~
2508 \end_inset
2509
2510 value
2511 \end_layout
2512
2513 \end_inset
2514
2515  format:
2516 \end_layout
2517
2518 \begin_layout Labeling
2519 \labelwidthstring 00.00.0000
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 parselog
2525 \end_layout
2526
2527 \end_inset
2528
2529  If set, the converter's standard error will be redirected to a file 
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 infile.out
2535 \end_layout
2536
2537 \end_inset
2538
2539 , and the script given as argument will be run as: 
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 script < infile.out > infile.log
2545 \end_layout
2546
2547 \end_inset
2548
2549 .
2550  The argument may contain 
2551 \begin_inset Flex Code
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 $$s
2556 \end_layout
2557
2558 \end_inset
2559
2560 .
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 resultdir
2570 \end_layout
2571
2572 \end_inset
2573
2574  The name of the directory in which the converter will dump the generated
2575  files.
2576  \SpecialChar LyX
2577  will not create this directory, and it does not copy anything into it,
2578  though it will copy this directory to the destination.
2579  The argument may contain 
2580 \begin_inset Flex Code
2581 status collapsed
2582
2583 \begin_layout Plain Layout
2584 $$b
2585 \end_layout
2586
2587 \end_inset
2588
2589 , which will be replaced by the base name of the input and output files,
2590  respectively, when the directory is copied.
2591 \begin_inset Newline newline
2592 \end_inset
2593
2594 Note that resultdir and usetempdir make no sense together.
2595  The latter will be ignored if the former is given.
2596 \end_layout
2597
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2600 \begin_inset Flex Code
2601 status collapsed
2602
2603 \begin_layout Plain Layout
2604 resultfile
2605 \end_layout
2606
2607 \end_inset
2608
2609  Determines the output file name and may, contain 
2610 \begin_inset Flex Code
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614 $$b
2615 \end_layout
2616
2617 \end_inset
2618
2619 .
2620  Sensible only with resultdir and optional even then; if not given, it defaults
2621  to `index'.
2622 \end_layout
2623
2624 \begin_layout Standard
2625 None of these last three are presently used in any of the converters that
2626  are installed with \SpecialChar LyX
2627 .
2628  
2629 \end_layout
2630
2631 \begin_layout Standard
2632 You do not have to define converters for all formats between which you want
2633  to convert.
2634  For example, you will note that there is no `\SpecialChar LyX
2635  to PostScript' converter,
2636  but \SpecialChar LyX
2637  will export PostScript.
2638  It does so by first creating a \SpecialChar LaTeX
2639  file (no converter needs to be defined
2640  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2641  to DVI' converter,
2642  and finally converting the resulting DVI file to PostScript.
2643  \SpecialChar LyX
2644  finds such `chains' of converters automatically, and it will always choose
2645  the shortest possible chain.
2646  You can, though, still define multiple conversion methods between file
2647  formats.
2648  For example, the standard \SpecialChar LyX
2649  configuration provides five ways to convert
2650  \SpecialChar LaTeX
2651  to PDF:
2652 \end_layout
2653
2654 \begin_layout Enumerate
2655 Directly, using 
2656 \begin_inset Flex Noun
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660 pdflatex
2661 \end_layout
2662
2663 \end_inset
2664
2665
2666 \end_layout
2667
2668 \begin_layout Enumerate
2669 via (DVI and) PostScript, using 
2670 \begin_inset Flex Noun
2671 status collapsed
2672
2673 \begin_layout Plain Layout
2674 ps2pdf
2675 \end_layout
2676
2677 \end_inset
2678
2679
2680 \end_layout
2681
2682 \begin_layout Enumerate
2683 via DVI, using 
2684 \begin_inset Flex Noun
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 dvipdfm
2689 \end_layout
2690
2691 \end_inset
2692
2693
2694 \end_layout
2695
2696 \begin_layout Enumerate
2697 directly using 
2698 \begin_inset Flex Noun
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 Xe\SpecialChar TeX
2703
2704 \end_layout
2705
2706 \end_inset
2707
2708
2709 \end_layout
2710
2711 \begin_layout Enumerate
2712 directly using 
2713 \begin_inset Flex Noun
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 Lua\SpecialChar TeX
2718
2719 \end_layout
2720
2721 \end_inset
2722
2723
2724 \end_layout
2725
2726 \begin_layout Standard
2727 To define such alternate chains, you must define multiple target `file formats',
2728  as described in 
2729 \begin_inset CommandInset ref
2730 LatexCommand ref
2731 reference "sec:Formats"
2732
2733 \end_inset
2734
2735 .
2736  For example, in the standard configuration, the formats named 
2737 \begin_inset Flex Noun
2738 status collapsed
2739
2740 \begin_layout Plain Layout
2741 pdf
2742 \end_layout
2743
2744 \end_inset
2745
2746  (for 
2747 \begin_inset Flex Noun
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 ps2pdf
2752 \end_layout
2753
2754 \end_inset
2755
2756 ), 
2757 \begin_inset Flex Noun
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 pdf2
2762 \end_layout
2763
2764 \end_inset
2765
2766  (for 
2767 \begin_inset Flex Noun
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 pdflatex
2772 \end_layout
2773
2774 \end_inset
2775
2776 ), 
2777 \begin_inset Flex Noun
2778 status collapsed
2779
2780 \begin_layout Plain Layout
2781 pdf3
2782 \end_layout
2783
2784 \end_inset
2785
2786  (for 
2787 \begin_inset Flex Noun
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 dvipdfm
2792 \end_layout
2793
2794 \end_inset
2795
2796 ), 
2797 \begin_inset Flex Noun
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801 pdf4
2802 \end_layout
2803
2804 \end_inset
2805
2806  (for 
2807 \begin_inset Flex Noun
2808 status collapsed
2809
2810 \begin_layout Plain Layout
2811 Xe\SpecialChar TeX
2812
2813 \end_layout
2814
2815 \end_inset
2816
2817 ), and 
2818 \begin_inset Flex Noun
2819 status collapsed
2820
2821 \begin_layout Plain Layout
2822 pdf5
2823 \end_layout
2824
2825 \end_inset
2826
2827  (for 
2828 \begin_inset Flex Noun
2829 status collapsed
2830
2831 \begin_layout Plain Layout
2832 Lua\SpecialChar TeX
2833
2834 \end_layout
2835
2836 \end_inset
2837
2838 ) are defined, all of which share the extension 
2839 \begin_inset Flex Noun
2840 status collapsed
2841
2842 \begin_layout Plain Layout
2843 .pdf
2844 \end_layout
2845
2846 \end_inset
2847
2848 , and which correspond to the conversion methods just mentioned.
2849 \end_layout
2850
2851 \begin_layout Chapter
2852 Internationalizing \SpecialChar LyX
2853
2854 \begin_inset CommandInset label
2855 LatexCommand label
2856 name "cha:Internationalizing-LyX"
2857
2858 \end_inset
2859
2860
2861 \end_layout
2862
2863 \begin_layout Standard
2864 \SpecialChar LyX
2865  supports using a translated interface.
2866  Last time we checked, \SpecialChar LyX
2867  provided text in thirty languages.
2868  The language of choice is called your 
2869 \emph on
2870 locale
2871 \emph default
2872 .
2873  (For further reading on locale settings, see also the documentation for
2874  locale that comes with your operating system.
2875  For Linux, the manual page for 
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 locale(5)
2881 \end_layout
2882
2883 \end_inset
2884
2885  could be a good place to start).
2886 \end_layout
2887
2888 \begin_layout Standard
2889 Notice that these translations will work, but do contain a few flaws.
2890  In particular, all dialogs have been designed with the English text in
2891  mind, which means that some of the translated text will be too large to
2892  fit within the space allocated.
2893  This is only a display problem and will not cause any harm.
2894  Also, you will find that some of the translations do not define shortcut
2895  keys for everything.
2896  Sometimes, there are simply not enough free letters to do it.
2897  Other times, the translator just hasn't got around to doing it yet.
2898  Our localization team, which you may wish to join,
2899 \begin_inset Foot
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 If you are a fluent speaker of a language other than English, joining these
2904  teams is a great way to give back to the \SpecialChar LyX
2905  community!
2906 \end_layout
2907
2908 \end_inset
2909
2910  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2911 .
2912 \end_layout
2913
2914 \begin_layout Section
2915 Translating \SpecialChar LyX
2916
2917 \end_layout
2918
2919 \begin_layout Subsection
2920 Translating the graphical user interface (text messages).
2921 \end_layout
2922
2923 \begin_layout Standard
2924 \SpecialChar LyX
2925  uses the GNU 
2926 \begin_inset Flex Code
2927 status collapsed
2928
2929 \begin_layout Plain Layout
2930 gettext
2931 \end_layout
2932
2933 \end_inset
2934
2935  library to handle the internationalization of the interface.
2936  To have \SpecialChar LyX
2937  speak your favorite language in all menus and dialogs, you need
2938  a 
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 -file for that language.
2949  When this is available, you'll have to generate a 
2950 \begin_inset Flex Code
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 mo
2955 \end_layout
2956
2957 \end_inset
2958
2959 -file from it and install the 
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 mo
2965 \end_layout
2966
2967 \end_inset
2968
2969 -file.
2970  The process of doing all of this is explained in the documentation for
2971  GNU 
2972 \begin_inset Flex Code
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 gettext
2977 \end_layout
2978
2979 \end_inset
2980
2981 .
2982  It is possible to do this just for yourself, but if you're going to do
2983  it, you might as well share the results of your labors with the rest of
2984  the \SpecialChar LyX
2985  community.
2986  Send a message to the \SpecialChar LyX
2987  developers' list for more information about how
2988  to proceed.
2989 \end_layout
2990
2991 \begin_layout Standard
2992 In short, this is what you should do (xx denotes the language code):
2993 \end_layout
2994
2995 \begin_layout Itemize
2996 Check out the \SpecialChar LyX
2997  source code.
2998  (See the 
2999 \begin_inset CommandInset href
3000 LatexCommand href
3001 name "information on the web"
3002 target "http://www.lyx.org/HowToUseGIT"
3003 literal "false"
3004
3005 \end_inset
3006
3007 .)
3008 \end_layout
3009
3010 \begin_layout Itemize
3011 Copy the file 
3012 \begin_inset Flex Code
3013 status collapsed
3014
3015 \begin_layout Plain Layout
3016 lyx.pot
3017 \end_layout
3018
3019 \end_inset
3020
3021  to the folder of the 
3022 \begin_inset Flex Code
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 **.po
3027 \end_layout
3028
3029 \end_inset
3030
3031  files.
3032  Then rename it to 
3033 \begin_inset Flex Code
3034 status collapsed
3035
3036 \begin_layout Plain Layout
3037 xx.po
3038 \end_layout
3039
3040 \end_inset
3041
3042 .
3043  (If 
3044 \begin_inset Flex Code
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048 lyx.pot
3049 \end_layout
3050
3051 \end_inset
3052
3053  doesn't exist anywhere, it can be remade with the console command 
3054 \begin_inset Flex Code
3055 status collapsed
3056
3057 \begin_layout Plain Layout
3058 make lyx.pot
3059 \end_layout
3060
3061 \end_inset
3062
3063  in that directory, or you can use an existing po-file for some other language
3064  as a template).
3065 \end_layout
3066
3067 \begin_layout Itemize
3068 Edit 
3069 \begin_inset Flex Code
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 xx.po
3074 \end_layout
3075
3076 \end_inset
3077
3078 .
3079 \begin_inset Foot
3080 status collapsed
3081
3082 \begin_layout Plain Layout
3083 This is just a text file, so it can be edited in any text editor.
3084  But there are also specialized programs that support such editing, such
3085  as 
3086 \family typewriter
3087 Poedit
3088 \family default
3089  (for all platforms) or 
3090 \family typewriter
3091 KBabel
3092 \family default
3093  (for KDE).
3094  
3095 \family typewriter
3096 Emacs
3097 \family default
3098  contains a `mode' for editing 
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 po
3104 \end_layout
3105
3106 \end_inset
3107
3108  files, as well, see 
3109 \begin_inset Flex URL
3110 status open
3111
3112 \begin_layout Plain Layout
3113
3114 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3115 \backslash
3116 #PO-Mode
3117 \end_layout
3118
3119 \end_inset
3120
3121 .
3122 \end_layout
3123
3124 \end_inset
3125
3126  For some menu- and widget-labels, there are also shortcut keys that should
3127  be translated.
3128  Those keys are marked after a `|', and should be translated according to
3129  the words and phrases of the language.
3130  You should also fill also out the information at the beginning of the new
3131  
3132 \begin_inset Flex Code
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 po
3137 \end_layout
3138
3139 \end_inset
3140
3141 -file with your email-address, etc., so people know where to reach you with
3142  suggestions and entertaining flames.
3143 \end_layout
3144
3145 \begin_layout Standard
3146 If you are just doing this on your own, then:
3147 \end_layout
3148
3149 \begin_layout Itemize
3150 Generate 
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 xx.mo
3156 \end_layout
3157
3158 \end_inset
3159
3160 .
3161  This can be done with 
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 msgfmt -o xx.mo < xx.po
3167 \end_layout
3168
3169 \end_inset
3170
3171 .
3172 \end_layout
3173
3174 \begin_layout Itemize
3175 Copy the 
3176 \begin_inset Flex Code
3177 status collapsed
3178
3179 \begin_layout Plain Layout
3180 mo
3181 \end_layout
3182
3183 \end_inset
3184
3185 -file to your locale-tree, at the correct directory for application messages
3186  for the language
3187 \series bold
3188  
3189 \series default
3190 xx, and under the name 
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195 lyx.mo
3196 \end_layout
3197
3198 \end_inset
3199
3200  (e.
3201 \begin_inset space \thinspace{}
3202 \end_inset
3203
3204 g.
3205 \begin_inset space \space{}
3206 \end_inset
3207
3208
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3214 \end_layout
3215
3216 \end_inset
3217
3218
3219 \series bold
3220 .
3221 \end_layout
3222
3223 \begin_layout Standard
3224 As said, however, it would be best if the new 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 po
3230 \end_layout
3231
3232 \end_inset
3233
3234  file could be added to the \SpecialChar LyX
3235  distribution, so others can use it.
3236  Adding it involves making additional changes to \SpecialChar LyX
3237 .
3238  So send an email to the developers' mailing list if you're interested in
3239  doing that.
3240 \end_layout
3241
3242 \begin_layout Subsubsection
3243 Ambiguous messages
3244 \end_layout
3245
3246 \begin_layout Standard
3247 Sometimes it turns out that one English message needs to be translated into
3248  different messages in the target language.
3249  One example is the message 
3250 \begin_inset Flex Code
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 To
3255 \end_layout
3256
3257 \end_inset
3258
3259  which has the German translation 
3260 \lang german
3261 Nach
3262 \lang english
3263  or 
3264 \lang german
3265 Bis
3266 \lang english
3267 , depending upon exactly what the English 
3268 \begin_inset Quotes eld
3269 \end_inset
3270
3271 to
3272 \begin_inset Quotes erd
3273 \end_inset
3274
3275  means.
3276  GNU 
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281 gettext
3282 \end_layout
3283
3284 \end_inset
3285
3286  does not handle such ambiguous translations.
3287  Therefore you have to add some context information to the message: Instead
3288  of 
3289 \begin_inset Flex Code
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 To
3294 \end_layout
3295
3296 \end_inset
3297
3298  it becomes 
3299 \begin_inset Flex Code
3300 status collapsed
3301
3302 \begin_layout Plain Layout
3303 To[[as in 'From format x to format y']]
3304 \end_layout
3305
3306 \end_inset
3307
3308  and 
3309 \begin_inset Flex Code
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313 To[[as in 'From page x to page y']].
3314 \end_layout
3315
3316 \end_inset
3317
3318  Now the two occurrences of 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 To
3324 \end_layout
3325
3326 \end_inset
3327
3328  are different for 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 gettext
3334 \end_layout
3335
3336 \end_inset
3337
3338  and can be translated correctly to 
3339 \lang german
3340 Nach
3341 \lang english
3342  and 
3343 \lang german
3344 Bis
3345 \lang english
3346 , respectively.
3347 \end_layout
3348
3349 \begin_layout Standard
3350 Of course the context information needs to be stripped off the original
3351  message when no translation is used.
3352  Therefore you have to put it in double square brackets at the end of the
3353  message (see the example above).
3354  The translation mechanism of \SpecialChar LyX
3355  ensures that everything in double square
3356  brackets at the end of messages is removed before displaying the message.
3357 \end_layout
3358
3359 \begin_layout Subsection
3360 Translating the documentation.
3361 \end_layout
3362
3363 \begin_layout Standard
3364 The online documentation (in the 
3365 \begin_inset Flex Noun
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 Help
3370 \end_layout
3371
3372 \end_inset
3373
3374 -menu) can (and should!) be translated.
3375  If there are translated versions of the documentation available
3376 \begin_inset Foot
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 As of March 2008, at least some of the documents have been translated into
3381  fourteen languages, with the Tutorial available in a few more.
3382 \end_layout
3383
3384 \end_inset
3385
3386  and the locale is set accordingly, these will be used automagically by
3387  \SpecialChar LyX
3388 .
3389  \SpecialChar LyX
3390  looks for translated versions as 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 LyXDir/doc/xx/DocName.lyx
3396 \end_layout
3397
3398 \end_inset
3399
3400 , where 
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405 xx
3406 \end_layout
3407
3408 \end_inset
3409
3410  is the code for the language currently in use.
3411  If there are no translated documents, the default English versions will
3412  be displayed.
3413  Note that the translated versions must have the same filenames (
3414 \begin_inset Flex Code
3415 status collapsed
3416
3417 \begin_layout Plain Layout
3418 DocName
3419 \end_layout
3420
3421 \end_inset
3422
3423  above) as the original.
3424  If you feel up to translating the documentation (an excellent way to proof-read
3425  the original documentation by the way!), there are a few things you should
3426  do right away:
3427 \end_layout
3428
3429 \begin_layout Itemize
3430 Check out the documentation translation web page at 
3431 \begin_inset CommandInset href
3432 LatexCommand href
3433 name "http://www.lyx.org/Translation"
3434 target "http://www.lyx.org/Translation"
3435 literal "false"
3436
3437 \end_inset
3438
3439 .
3440  That way, you can find out which (if any) documents have already been translate
3441 d into your language.
3442  You can also find out who (if anyone) is organizing the effort to translate
3443  the documentation into your language.
3444  If no one is organizing the effort, please let us know that you're interested.
3445 \end_layout
3446
3447 \begin_layout Standard
3448 Once you get to actually translating, here's a few hints for you that may
3449  save you trouble:
3450 \end_layout
3451
3452 \begin_layout Itemize
3453 Join the documentation team! There is information on how to do that in 
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458 Intro.lyx
3459 \end_layout
3460
3461 \end_inset
3462
3463  (
3464 \begin_inset Flex Noun
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 Help\SpecialChar menuseparator
3469 Introduction
3470 \end_layout
3471
3472 \end_inset
3473
3474 ), which by the way is the first document you should translate.
3475 \end_layout
3476
3477 \begin_layout Itemize
3478 Learn the typographic conventions for the language you are translating to.
3479  Typography is an ancient art and over the centuries, a great variety of
3480  conventions have developed throughout different parts of the world.
3481  Also study the professional terminology amongst typographers in your country.
3482  Inventing your own terminology will only confuse the users.
3483  
3484 \emph on
3485 (Warning! Typography is addictive!)
3486 \end_layout
3487
3488 \begin_layout Itemize
3489 Make a copy of the document.
3490  This will be your working copy.
3491  You can use this as your personal translated help-file by placing it in
3492  your 
3493 \begin_inset Flex Code
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497 UserDir/doc/xx/
3498 \end_layout
3499
3500 \end_inset
3501
3502  directory.
3503 \begin_inset Note Greyedout
3504 status open
3505
3506 \begin_layout Plain Layout
3507
3508 \series bold
3509 Note:
3510 \series default
3511  For a complex document with external material (images, etc.), if you make
3512  a copy e.
3513 \begin_inset space \thinspace{}
3514 \end_inset
3515
3516 g.
3517 \begin_inset space \space{}
3518 \end_inset
3519
3520 in a temp dir, beware that the links to external material may be broken
3521  when the document is moved to a different place.
3522  The best way is to retrieve the \SpecialChar LyX
3523  tree from git (see 
3524 \begin_inset Flex URL
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528
3529 http://www.lyx.org/HowToUseGIT
3530 \end_layout
3531
3532 \end_inset
3533
3534 ) and to edit the doc file in place.
3535 \end_layout
3536
3537 \end_inset
3538
3539
3540 \end_layout
3541
3542 \begin_layout Itemize
3543 Sometimes the original document (from the \SpecialChar LyX
3544  team) will be updated.
3545  Use the source viewer at 
3546 \begin_inset CommandInset href
3547 LatexCommand href
3548 name "http://www.lyx.org/trac/timeline"
3549 target "http://www.lyx.org/trac/timeline"
3550 literal "false"
3551
3552 \end_inset
3553
3554  to see what has been changed.
3555  That way you can easily see which parts of the translated document need
3556  to be updated.
3557 \end_layout
3558
3559 \begin_layout Standard
3560 If you ever find an error in the original document, fix it and notify the
3561  rest of the documentation team of the changes! (You didn't forget to join
3562  the documentation team, did you?)
3563 \end_layout
3564
3565 \begin_layout Standard
3566 \begin_inset Branch OutDated
3567 inverted 0
3568 status collapsed
3569
3570 \begin_layout Section
3571 International Keyboard Support
3572 \end_layout
3573
3574 \begin_layout Standard
3575
3576 \emph on
3577 [Editor's Note: The following section is by
3578 \emph default
3579  
3580 \shape smallcaps
3581 \emph on
3582 Ivan Schreter
3583 \shape default
3584 .
3585  It needs to be fixed to conform to the new Documentation Style sheet and
3586  to make use of the new v1.0 features.
3587  The whole thing also needs to be merged with the section following it.-jw
3588  It may also be badly out of date.-rh (2008)]
3589 \end_layout
3590
3591 \begin_layout Subsection
3592 Defining Own Keymaps: Keymap File Format
3593 \end_layout
3594
3595 \begin_layout Standard
3596 Let's look at a keyboard definition file a little closer.
3597  It is a plain text file defining
3598 \end_layout
3599
3600 \begin_layout Itemize
3601 key-to-key or key-to-string translations
3602 \end_layout
3603
3604 \begin_layout Itemize
3605 dead keys
3606 \end_layout
3607
3608 \begin_layout Itemize
3609 dead keys exceptions
3610 \end_layout
3611
3612 \begin_layout Standard
3613 To define key-to-key or key-to-string translation, use this command:
3614 \end_layout
3615
3616 \begin_layout Quotation
3617 \begin_inset Flex Code
3618 status collapsed
3619
3620 \begin_layout Plain Layout
3621
3622 \backslash
3623 kmap
3624 \end_layout
3625
3626 \end_inset
3627
3628  
3629 \begin_inset Flex Code
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633 key
3634 \end_layout
3635
3636 \end_inset
3637
3638  outstring 
3639 \end_layout
3640
3641 \begin_layout Standard
3642 where 
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 key
3648 \end_layout
3649
3650 \end_inset
3651
3652  is the key to be translated and 
3653 \begin_inset Flex Code
3654 status collapsed
3655
3656 \begin_layout Plain Layout
3657 outstring
3658 \end_layout
3659
3660 \end_inset
3661
3662  is the string to be inserted into the document.
3663  To define dead keys, use:
3664 \end_layout
3665
3666 \begin_layout Quotation
3667 \begin_inset Flex Code
3668 status collapsed
3669
3670 \begin_layout Plain Layout
3671
3672 \backslash
3673 kmod
3674 \end_layout
3675
3676 \end_inset
3677
3678  
3679 \begin_inset Flex Code
3680 status collapsed
3681
3682 \begin_layout Plain Layout
3683 key
3684 \end_layout
3685
3686 \end_inset
3687
3688  deadkey
3689 \end_layout
3690
3691 \begin_layout Standard
3692 where 
3693 \begin_inset Flex Code
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697 key
3698 \end_layout
3699
3700 \end_inset
3701
3702  is a keyboard key and 
3703 \begin_inset Flex Code
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707 deadkey
3708 \end_layout
3709
3710 \end_inset
3711
3712  is dead key name.
3713  The following dead keys are supported (shortcut name is in parentheses):
3714 \end_layout
3715
3716 \begin_layout Quotation
3717
3718 \emph on
3719 Name
3720 \begin_inset space \hfill{}
3721 \end_inset
3722
3723 Example
3724 \end_layout
3725
3726 \begin_layout Quotation
3727 acute (acu)
3728 \begin_inset space \hfill{}
3729 \end_inset
3730
3731 áéíóú
3732 \end_layout
3733
3734 \begin_layout Quotation
3735 grave (gra)
3736 \begin_inset space \hfill{}
3737 \end_inset
3738
3739 àèìòù
3740 \end_layout
3741
3742 \begin_layout Quotation
3743 macron (mac)
3744 \begin_inset space \hfill{}
3745 \end_inset
3746
3747  ō
3748 \end_layout
3749
3750 \begin_layout Quotation
3751 tilde (til)
3752 \begin_inset space \hfill{}
3753 \end_inset
3754
3755 ñÑ
3756 \end_layout
3757
3758 \begin_layout Quotation
3759 underbar (underb)
3760 \begin_inset space \hfill{}
3761 \end_inset
3762
3763
3764 \begin_inset ERT
3765 status open
3766
3767 \begin_layout Plain Layout
3768
3769
3770 \backslash
3771 b o
3772 \end_layout
3773
3774 \end_inset
3775
3776
3777 \end_layout
3778
3779 \begin_layout Quotation
3780 cedilla (ced)
3781 \begin_inset space \hfill{}
3782 \end_inset
3783
3784 çÇ
3785 \end_layout
3786
3787 \begin_layout Quotation
3788 underdot (underd)
3789 \begin_inset space \hfill{}
3790 \end_inset
3791
3792
3793 \begin_inset ERT
3794 status open
3795
3796 \begin_layout Plain Layout
3797
3798
3799 \backslash
3800 d o
3801 \end_layout
3802
3803 \end_inset
3804
3805
3806 \end_layout
3807
3808 \begin_layout Quotation
3809 circumflex (circu)
3810 \begin_inset space \hfill{}
3811 \end_inset
3812
3813 âêîôû
3814 \end_layout
3815
3816 \begin_layout Quotation
3817 circle (circl)
3818 \begin_inset space \hfill{}
3819 \end_inset
3820
3821 ÅůŮ
3822 \end_layout
3823
3824 \begin_layout Quotation
3825 tie (tie)
3826 \begin_inset space \hfill{}
3827 \end_inset
3828
3829
3830 \begin_inset ERT
3831 status open
3832
3833 \begin_layout Plain Layout
3834
3835
3836 \backslash
3837 t o
3838 \end_layout
3839
3840 \end_inset
3841
3842
3843 \end_layout
3844
3845 \begin_layout Quotation
3846 breve (bre)
3847 \begin_inset space \hfill{}
3848 \end_inset
3849
3850 ă
3851 \begin_inset ERT
3852 status open
3853
3854 \begin_layout Plain Layout
3855
3856
3857 \backslash
3858 u o
3859 \end_layout
3860
3861 \end_inset
3862
3863
3864 \end_layout
3865
3866 \begin_layout Quotation
3867 caron (car)
3868 \begin_inset space \hfill{}
3869 \end_inset
3870
3871 čšž
3872 \end_layout
3873
3874 \begin_layout Quotation
3875 hungarian umlaut (hug)
3876 \begin_inset space \hfill{}
3877 \end_inset
3878
3879 őű
3880 \end_layout
3881
3882 \begin_layout Quotation
3883 umlaut (uml)
3884 \begin_inset space \hfill{}
3885 \end_inset
3886
3887 äöü
3888 \end_layout
3889
3890 \begin_layout Quotation
3891 dot (dot)
3892 \begin_inset space \hfill{}
3893 \end_inset
3894
3895 ż
3896 \begin_inset ERT
3897 status open
3898
3899 \begin_layout Plain Layout
3900
3901
3902 \backslash
3903 .s
3904 \end_layout
3905
3906 \end_inset
3907
3908
3909 \end_layout
3910
3911 \begin_layout Standard
3912 Since in many international keyboards there are exceptions to what some
3913  dead keys should do, you can define them using
3914 \end_layout
3915
3916 \begin_layout Quotation
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921
3922 \backslash
3923 kxmod
3924 \end_layout
3925
3926 \end_inset
3927
3928  deadkey key outstring
3929 \end_layout
3930
3931 \begin_layout Standard
3932 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3933 , so you put in
3934 \end_layout
3935
3936 \begin_layout Quotation
3937 \begin_inset Flex Code
3938 status collapsed
3939
3940 \begin_layout Plain Layout
3941
3942 \backslash
3943 kxmod
3944 \end_layout
3945
3946 \end_inset
3947
3948  caron o "
3949 \backslash
3950 ^o"
3951 \end_layout
3952
3953 \begin_layout Standard
3954 to make it work correctly.
3955  Also, you have to define as exceptions dead keys over i and j, to remove
3956  the dot from them before inserting an accent mark.
3957  I will change this when the time comes, but so far I haven't had time.
3958 \end_layout
3959
3960 \begin_layout Standard
3961 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3962  double backslash.
3963  Also, quotes and 
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 #
3969 \end_layout
3970
3971 \end_inset
3972
3973  have different meaning.
3974  
3975 \begin_inset Flex Code
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979 #
3980 \end_layout
3981
3982 \end_inset
3983
3984  marks comments, quotes start and end \SpecialChar LaTeX
3985 -style commands.
3986  To enter quote, you'll need to use 
3987 \begin_inset Flex Code
3988 status collapsed
3989
3990 \begin_layout Plain Layout
3991
3992 \backslash
3993 "
3994 \end_layout
3995
3996 \end_inset
3997
3998 , to enter 
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 #
4004 \end_layout
4005
4006 \end_inset
4007
4008 , use 
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013
4014 \backslash
4015 #
4016 \end_layout
4017
4018 \end_inset
4019
4020 .
4021 \end_layout
4022
4023 \begin_layout Standard
4024 If you make a keyboard description file that works for your language, please
4025  mail it to me, so I can include it in the next keymap distribution.
4026 \end_layout
4027
4028 \begin_layout Standard
4029 More keywords will be supported in keymap configuration file in future,
4030  like
4031 \end_layout
4032
4033 \begin_layout Itemize
4034 \begin_inset Flex Code
4035 status collapsed
4036
4037 \begin_layout Plain Layout
4038
4039 \backslash
4040 kinclude filename
4041 \end_layout
4042
4043 \end_inset
4044
4045
4046 \emph on
4047
4048 \begin_inset space \hfill{}
4049 \end_inset
4050
4051
4052 \begin_inset Flex Code
4053 status collapsed
4054
4055 \begin_layout Plain Layout
4056 include
4057 \end_layout
4058
4059 \end_inset
4060
4061  another file
4062 \end_layout
4063
4064 \begin_layout Itemize
4065 \begin_inset Flex Code
4066 status collapsed
4067
4068 \begin_layout Plain Layout
4069
4070 \backslash
4071 kprog program
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \emph on
4078
4079 \begin_inset space \hfill{}
4080 \end_inset
4081
4082
4083 \begin_inset Flex Code
4084 status collapsed
4085
4086 \begin_layout Plain Layout
4087 define
4088 \end_layout
4089
4090 \end_inset
4091
4092  an external keymap translation program 
4093 \end_layout
4094
4095 \begin_layout Standard
4096 Also, it should look into 
4097 \begin_inset Flex Code
4098 status collapsed
4099
4100 \begin_layout Plain Layout
4101 lyxrc
4102 \end_layout
4103
4104 \end_inset
4105
4106  file for defaults, too (for example, a 
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111
4112 \backslash
4113 kinclude
4114 \end_layout
4115
4116 \end_inset
4117
4118  option to include default keyboard).
4119 \end_layout
4120
4121 \end_inset
4122
4123
4124 \end_layout
4125
4126 \begin_layout Section
4127 International Keymap Stuff
4128 \begin_inset CommandInset label
4129 LatexCommand label
4130 name "sec:International-Keymap-Stuff"
4131
4132 \end_inset
4133
4134
4135 \end_layout
4136
4137 \begin_layout Standard
4138 \begin_inset Note Note
4139 status open
4140
4141 \begin_layout Plain Layout
4142 In doing the revisions on this document in March 2008, I did not look over
4143  this stuff, as I do not understand it.
4144  It would be good if someone else could do so.
4145  (RH)
4146 \end_layout
4147
4148 \end_inset
4149
4150
4151 \end_layout
4152
4153 \begin_layout Standard
4154 The next two sections describe the 
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159
4160 \shape up
4161 .kmap
4162 \end_layout
4163
4164 \end_inset
4165
4166  and 
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171
4172 \shape up
4173 .cdef
4174 \end_layout
4175
4176 \end_inset
4177
4178  file syntax in detail.
4179  These sections should help you design your own key map if the ones provided
4180  do not meet your needs.
4181 \end_layout
4182
4183 \begin_layout Subsection
4184 The .kmap File
4185 \end_layout
4186
4187 \begin_layout Standard
4188
4189 \shape up
4190 .
4191 \begin_inset Flex Code
4192 status collapsed
4193
4194 \begin_layout Plain Layout
4195 kmap
4196 \end_layout
4197
4198 \end_inset
4199
4200  file maps keystrokes to characters or strings.
4201  As the name suggests, it sets a keyboard mapping.
4202  The 
4203 \begin_inset Flex Code
4204 status collapsed
4205
4206 \begin_layout Plain Layout
4207 .kmap
4208 \end_layout
4209
4210 \end_inset
4211
4212
4213 \shape default
4214  file keywords 
4215 \shape up
4216
4217 \begin_inset Flex Code
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221
4222 \shape up
4223 kmap
4224 \end_layout
4225
4226 \end_inset
4227
4228
4229 \shape default
4230 ,
4231 \shape up
4232  
4233 \shape default
4234
4235 \begin_inset Flex Code
4236 status collapsed
4237
4238 \begin_layout Plain Layout
4239
4240 \shape up
4241 kmod
4242 \end_layout
4243
4244 \end_inset
4245
4246 ,
4247 \shape up
4248  
4249 \shape default
4250
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255
4256 \shape up
4257 kxmod
4258 \end_layout
4259
4260 \end_inset
4261
4262 , and 
4263 \begin_inset Flex Code
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267
4268 \shape up
4269 kcomb
4270 \end_layout
4271
4272 \end_inset
4273
4274  are described in this section.
4275 \end_layout
4276
4277 \begin_layout Labeling
4278 \labelwidthstring 00.00.0000
4279 \begin_inset Flex Code
4280 status collapsed
4281
4282 \begin_layout Plain Layout
4283
4284 \shape up
4285 kmap
4286 \end_layout
4287
4288 \end_inset
4289
4290  Map a character to a string
4291 \end_layout
4292
4293 \begin_layout LyX-Code
4294
4295 \backslash
4296 kmap 
4297 \family roman
4298 \emph on
4299 char
4300 \family default
4301 \emph default
4302  
4303 \family roman
4304 \emph on
4305 string
4306 \end_layout
4307
4308 \begin_layout Standard
4309 This will ma
4310 \family roman
4311 p
4312 \family default
4313  
4314 \family roman
4315 \emph on
4316 char
4317 \family default
4318 \emph default
4319  
4320 \family roman
4321 to
4322 \family default
4323  
4324 \family roman
4325 \emph on
4326 string
4327 \emph default
4328 .
4329  Note that in
4330 \family default
4331  
4332 \family roman
4333 \emph on
4334 string
4335 \emph default
4336 ,
4337 \family default
4338  
4339 \family roman
4340 \shape up
4341 the double-quote (")
4342 \family default
4343 \shape default
4344  
4345 \family roman
4346 and
4347 \family default
4348  
4349 \family roman
4350 \shape up
4351 the backslash (
4352 \backslash
4353 )
4354 \family default
4355 \shape default
4356  
4357 \family roman
4358 must be escaped with a preceding backslash (
4359 \shape up
4360
4361 \backslash
4362
4363 \shape default
4364 )
4365 \family default
4366 .
4367 \end_layout
4368
4369 \begin_layout Standard
4370 An example of a 
4371 \begin_inset Flex Noun
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375
4376 \shape up
4377 kmap
4378 \end_layout
4379
4380 \end_inset
4381
4382  statement to cause the symbol 
4383 \begin_inset Flex Noun
4384 status collapsed
4385
4386 \begin_layout Plain Layout
4387
4388 \shape up
4389 /
4390 \end_layout
4391
4392 \end_inset
4393
4394  to be output for the keystroke 
4395 \begin_inset Flex Noun
4396 status collapsed
4397
4398 \begin_layout Plain Layout
4399
4400 \shape up
4401 &
4402 \end_layout
4403
4404 \end_inset
4405
4406  is:
4407 \end_layout
4408
4409 \begin_layout LyX-Code
4410
4411 \backslash
4412 kmap & /
4413 \end_layout
4414
4415 \begin_layout Labeling
4416 \labelwidthstring 00.00.0000
4417 \begin_inset Flex Code
4418 status collapsed
4419
4420 \begin_layout Plain Layout
4421
4422 \shape up
4423 kmod
4424 \end_layout
4425
4426 \end_inset
4427
4428  Specify an accent character
4429 \end_layout
4430
4431 \begin_layout LyX-Code
4432
4433 \backslash
4434 kmod 
4435 \family roman
4436 \emph on
4437 char accent allowed
4438 \end_layout
4439
4440 \begin_layout Standard
4441 This will make the cha
4442 \family roman
4443 racter
4444 \family default
4445  
4446 \family roman
4447 \emph on
4448 char
4449 \family default
4450 \emph default
4451  
4452 \family roman
4453 \shape up
4454 \emph on
4455 be an accent
4456 \family default
4457 \shape default
4458 \emph default
4459  
4460 \family roman
4461 \shape up
4462 on the
4463 \family default
4464 \shape default
4465  
4466 \family roman
4467 \shape up
4468 \emph on
4469 allowed
4470 \family default
4471 \shape default
4472 \emph default
4473  
4474 \family roman
4475 \shape up
4476 cha
4477 \family default
4478 racter(s).
4479  This is the dead key
4480 \begin_inset Foot
4481 status collapsed
4482
4483 \begin_layout Plain Layout
4484 The term 
4485 \family roman
4486 \emph on
4487 dead key
4488 \family default
4489 \emph default
4490  refers to a key that does not produce a character by itself, but when followed
4491  with another key, produces the desired accent character.
4492  For example, a German characte
4493 \family roman
4494 r with an umlaut like
4495 \family default
4496  
4497 \family roman
4498 \emph on
4499 ä
4500 \family default
4501 \emph default
4502  
4503 \family roman
4504 can be produced in this manner.
4505 \end_layout
4506
4507 \end_inset
4508
4509  mechanism.
4510  
4511 \end_layout
4512
4513 \begin_layout Standard
4514 If you 
4515 \family roman
4516 hit
4517 \family default
4518  
4519 \family roman
4520 \emph on
4521 char
4522 \family default
4523 \emph default
4524  
4525 \family roman
4526 and then another key not in
4527 \family default
4528  
4529 \family roman
4530 \emph on
4531 allowed
4532 \emph default
4533 , you will get a
4534 \family default
4535  
4536 \family roman
4537 \emph on
4538 char
4539 \family default
4540 \emph default
4541  
4542 \family roman
4543 followed by the other, not allowed key, as output.
4544
4545 \family default
4546  Note that a 
4547 \begin_inset Flex Noun
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551
4552 \shape up
4553 Backspace
4554 \end_layout
4555
4556 \end_inset
4557
4558  cancels a dead key, so if 
4559 \family roman
4560 you hit
4561 \family default
4562  
4563 \family roman
4564 \emph on
4565 char
4566 \family default
4567 \emph default
4568  
4569 \begin_inset Flex Noun
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \shape up
4575 \emph on
4576 Backspace
4577 \end_layout
4578
4579 \end_inset
4580
4581 , the cursor will not go one position backwards but will instead cancel
4582  the effect t
4583 \family roman
4584 hat
4585 \family default
4586  
4587 \family roman
4588 \shape up
4589 \emph on
4590 char
4591 \family default
4592 \shape default
4593 \emph default
4594  
4595 \family roman
4596 \shape up
4597 might have had on the next keystroke.
4598  
4599 \end_layout
4600
4601 \begin_layout Standard
4602 The following example specifies that the character ' is to be an acute accent,
4603  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4604 \end_layout
4605
4606 \begin_layout LyX-Code
4607
4608 \backslash
4609 kmod ' acute aeiouAEIOU
4610 \end_layout
4611
4612 \begin_layout Labeling
4613 \labelwidthstring 00.00.0000
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618 kxmod
4619 \end_layout
4620
4621 \end_inset
4622
4623  Specify an exception to the accent character
4624 \end_layout
4625
4626 \begin_layout LyX-Code
4627
4628 \backslash
4629 kxmod  
4630 \family roman
4631 \emph on
4632 accent char result
4633 \end_layout
4634
4635 \begin_layout Standard
4636 This defines an exce
4637 \family roman
4638 ption for
4639 \family default
4640  
4641 \family roman
4642 \emph on
4643 accent
4644 \family default
4645 \emph default
4646  
4647 \family roman
4648 on
4649 \family default
4650  
4651 \family roman
4652 \emph on
4653 char
4654 \emph default
4655 .
4656  T
4657 \shape up
4658 he
4659 \family default
4660 \shape default
4661  
4662 \family roman
4663 \shape up
4664 \emph on
4665 accent
4666 \family default
4667 \shape default
4668 \emph default
4669  
4670 \family roman
4671 \shape up
4672 must
4673 \family default
4674 \shape default
4675  
4676 \shape up
4677 have been assigned a keystroke with a previous
4678 \shape default
4679  
4680 \begin_inset Flex Code
4681 status collapsed
4682
4683 \begin_layout Plain Layout
4684
4685 \shape up
4686
4687 \backslash
4688 kmo
4689 \shape default
4690 d
4691 \end_layout
4692
4693 \end_inset
4694
4695  declar
4696 \family roman
4697 ation and
4698 \family default
4699  
4700 \family roman
4701 \emph on
4702 char
4703 \family default
4704 \emph default
4705  
4706 \family roman
4707 must not belong in the
4708 \family default
4709  
4710 \family roman
4711 \emph on
4712 allowed
4713 \family default
4714 \emph default
4715  
4716 \family roman
4717 set of
4718 \family default
4719  
4720 \family roman
4721 \emph on
4722 accent
4723 \emph default
4724 .
4725  When
4726 \family default
4727  
4728 \family roman
4729 \shape up
4730 you enter the
4731 \family default
4732 \shape default
4733  
4734 \family roman
4735 \shape up
4736 \emph on
4737 accent char
4738 \family default
4739 \shape default
4740 \emph default
4741  
4742 \family roman
4743 \shape up
4744 sequence,
4745 \family default
4746 \shape default
4747  
4748 \family roman
4749 \shape up
4750 \emph on
4751 result
4752 \emph default
4753  is produced.
4754  If such a declaration does not exist in
4755 \family default
4756 \shape default
4757  
4758 \shape up
4759 the
4760 \shape default
4761  
4762 \begin_inset Flex Code
4763 status collapsed
4764
4765 \begin_layout Plain Layout
4766
4767 \shape up
4768 .kmap
4769 \end_layout
4770
4771 \end_inset
4772
4773  file and yo
4774 \family roman
4775 u enter
4776 \family default
4777  
4778 \family roman
4779 \emph on
4780 accent char
4781 \emph default
4782 , you get
4783 \family default
4784  
4785 \family roman
4786 \emph on
4787 accent_key char
4788 \emph default
4789  where
4790 \family default
4791  
4792 \family roman
4793 \emph on
4794 accent_key
4795 \emph default
4796  is the first arg
4797 \family default
4798 ument of the 
4799 \begin_inset Flex Code
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803
4804 \shape up
4805
4806 \backslash
4807 kmod
4808 \end_layout
4809
4810 \end_inset
4811
4812  declaration.
4813  
4814 \end_layout
4815
4816 \begin_layout Standard
4817 The following command produces causes äi to be produced when you enter acute-i
4818  ('i):
4819 \end_layout
4820
4821 \begin_layout LyX-Code
4822
4823 \backslash
4824 kxmod acute i "
4825 \backslash
4826
4827 \backslash
4828 '{
4829 \backslash
4830
4831 \backslash
4832 i}"
4833 \end_layout
4834
4835 \begin_layout Labeling
4836 \labelwidthstring 00.00.0000
4837 \begin_inset Flex Code
4838 status collapsed
4839
4840 \begin_layout Plain Layout
4841 kcomb
4842 \end_layout
4843
4844 \end_inset
4845
4846  Combine two accent characters
4847 \end_layout
4848
4849 \begin_layout LyX-Code
4850
4851 \backslash
4852 kcomb 
4853 \family roman
4854 \emph on
4855 accent1 accent2 allowed
4856 \end_layout
4857
4858 \begin_layout Standard
4859 This one is getting pretty esoteric.
4860  It allows you to combine the effect 
4861 \family roman
4862 of
4863 \family default
4864  
4865 \family roman
4866 \emph on
4867 accent1
4868 \family default
4869 \emph default
4870  
4871 \family roman
4872 and
4873 \family default
4874  
4875 \family roman
4876 \emph on
4877 accent2
4878 \family default
4879 \emph default
4880  
4881 \family roman
4882 (in that order!) on
4883 \family default
4884  
4885 \family roman
4886 \emph on
4887 allowed
4888 \family default
4889 \emph default
4890  
4891 \family roman
4892 chars.
4893  The keystrokes for
4894 \family default
4895  
4896 \family roman
4897 \emph on
4898 accent1
4899 \family default
4900 \emph default
4901  
4902 \family roman
4903 and
4904 \family default
4905  
4906 \family roman
4907 \emph on
4908 accent2
4909 \family default
4910 \emph default
4911  
4912 \family roman
4913 must have be
4914 \family default
4915 en set with a 
4916 \begin_inset Flex Code
4917 status collapsed
4918
4919 \begin_layout Plain Layout
4920
4921 \shape up
4922
4923 \backslash
4924 kmod
4925 \end_layout
4926
4927 \end_inset
4928
4929  command at 
4930 \family roman
4931 a
4932 \family default
4933  
4934 \family roman
4935 \emph on
4936 previous
4937 \family default
4938 \emph default
4939  
4940 \family roman
4941 point in the
4942 \family default
4943  file.
4944  
4945 \end_layout
4946
4947 \begin_layout Standard
4948 Consider this example from the 
4949 \begin_inset Flex Code
4950 status collapsed
4951
4952 \begin_layout Plain Layout
4953
4954 \shape up
4955 greek.kmap
4956 \end_layout
4957
4958 \end_inset
4959
4960  file:
4961 \end_layout
4962
4963 \begin_layout LyX-Code
4964
4965 \backslash
4966 kmod ; acute aeioyvhAEIOYVH 
4967 \backslash
4968 kmod : umlaut iyIY 
4969 \backslash
4970 kcomb acute umlaut iyIY
4971 \end_layout
4972
4973 \begin_layout Standard
4974 This allows you to press 
4975 \begin_inset Flex Noun
4976 status collapsed
4977
4978 \begin_layout Plain Layout
4979
4980 \shape up
4981 ;:i
4982 \end_layout
4983
4984 \end_inset
4985
4986  and get the effect of 
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991
4992 \shape up
4993
4994 \backslash
4995 '{
4996 \backslash
4997 "{i}}
4998 \end_layout
4999
5000 \end_inset
5001
5002 .
5003  
5004 \family roman
5005 \shape up
5006 A backspace
5007 \family default
5008 \shape default
5009  in this case cancels the last dead key, so if you press 
5010 \begin_inset Flex Noun
5011 status collapsed
5012
5013 \begin_layout Plain Layout
5014
5015 \shape up
5016 ;: Backspace i
5017 \end_layout
5018
5019 \end_inset
5020
5021  you get 
5022 \begin_inset Flex Code
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026
5027 \shape up
5028
5029 \backslash
5030 '{i}
5031 \end_layout
5032
5033 \end_inset
5034
5035 .
5036 \end_layout
5037
5038 \begin_layout Subsection
5039 The .cdef File
5040 \end_layout
5041
5042 \begin_layout Standard
5043 After the 
5044 \begin_inset Flex Code
5045 status collapsed
5046
5047 \begin_layout Plain Layout
5048
5049 \shape up
5050 .kmap
5051 \end_layout
5052
5053 \end_inset
5054
5055  mapping is performed, a 
5056 \begin_inset Flex Code
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060
5061 \shape up
5062 .cde
5063 \shape default
5064 f
5065 \end_layout
5066
5067 \end_inset
5068
5069  file maps the strings that the symbols generate to characters in the current
5070  font.
5071  The \SpecialChar LyX
5072  distribution currently includes at least the 
5073 \begin_inset Flex Code
5074 status collapsed
5075
5076 \begin_layout Plain Layout
5077
5078 \shape up
5079 iso8859-1.cdef
5080 \end_layout
5081
5082 \end_inset
5083
5084  and 
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089
5090 \shape up
5091 iso8859-2.cdef
5092 \end_layout
5093
5094 \end_inset
5095
5096  files.
5097 \end_layout
5098
5099 \begin_layout Standard
5100 In general the 
5101 \begin_inset Flex Code
5102 status collapsed
5103
5104 \begin_layout Plain Layout
5105
5106 \shape up
5107 .cdef
5108 \end_layout
5109
5110 \end_inset
5111
5112  file is a sequence of declarations of the form
5113 \end_layout
5114
5115 \begin_layout LyX-Code
5116
5117 \family roman
5118 \emph on
5119 char_index_in_set
5120 \family default
5121 \emph default
5122  
5123 \family roman
5124 \emph on
5125  string
5126 \end_layout
5127
5128 \begin_layout Standard
5129 For example, in order to map 
5130 \begin_inset Flex Noun
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134
5135 \shape up
5136
5137 \backslash
5138 '{e}
5139 \end_layout
5140
5141 \end_inset
5142
5143  to the corresponding character in the iso-8859-1 set (233), the following
5144  declaration is used
5145 \end_layout
5146
5147 \begin_layout LyX-Code
5148 233 "
5149 \backslash
5150
5151 \backslash
5152 '{e}"
5153 \end_layout
5154
5155 \begin_layout Standard
5156 with 
5157 \begin_inset Flex Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161
5162 \backslash
5163
5164 \end_layout
5165
5166 \end_inset
5167
5168  and 
5169 \begin_inset Flex Code
5170 status collapsed
5171
5172 \begin_layout Plain Layout
5173 "
5174 \end_layout
5175
5176 \end_inset
5177
5178  being escap
5179 \family roman
5180 ed in
5181 \family default
5182  
5183 \family roman
5184 \emph on
5185 string
5186 \emph default
5187 .
5188  Note that
5189 \family default
5190  the same character can apply to more than one string.
5191  In the 
5192 \begin_inset Flex Code
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196 i
5197 \shape up
5198 so-8859-7.cdef
5199 \end_layout
5200
5201 \end_inset
5202
5203  file you have
5204 \end_layout
5205
5206 \begin_layout LyX-Code
5207 192 "
5208 \backslash
5209
5210 \backslash
5211 '{
5212 \backslash
5213
5214 \backslash
5215
5216 \backslash
5217 "{i}}"
5218 \begin_inset Newline newline
5219 \end_inset
5220
5221 192 "
5222 \backslash
5223
5224 \backslash
5225
5226 \backslash
5227 "{
5228 \backslash
5229
5230 \backslash
5231 '{i}}"
5232 \end_layout
5233
5234 \begin_layout Standard
5235 If \SpecialChar LyX
5236  cannot find a mapping for the string produced by the keystroke or a
5237  deadkey sequence, it will check if it looks like an accented char and try
5238  to draw an accent over the character on screen.
5239 \end_layout
5240
5241 \begin_layout Subsection
5242 Dead Keys
5243 \end_layout
5244
5245 \begin_layout Standard
5246 There is a second way to add support for international characters through
5247  so-called dead-keys.
5248  A dead-key works in combination with a letter to produce an accented character.
5249  Here, we'll explain how to create a really simple dead-key to illustrate
5250  how they work.
5251 \end_layout
5252
5253 \begin_layout Standard
5254 Suppose you happen to need the circumflex character, 
5255 \begin_inset Quotes eld
5256 \end_inset
5257
5258  ̂
5259 \begin_inset Quotes erd
5260 \end_inset
5261
5262 .
5263  You could bind the 
5264 \begin_inset Flex Noun
5265 status collapsed
5266
5267 \begin_layout Plain Layout
5268 ^
5269 \end_layout
5270
5271 \end_inset
5272
5273 -key [a.k.a.
5274 \begin_inset space ~
5275 \end_inset
5276
5277
5278 \begin_inset Flex Noun
5279 status collapsed
5280
5281 \begin_layout Plain Layout
5282 Shift-6
5283 \end_layout
5284
5285 \end_inset
5286
5287 ] to the \SpecialChar LyX
5288  command 
5289 \begin_inset Flex Code
5290 status collapsed
5291
5292 \begin_layout Plain Layout
5293 accent-circumflex
5294 \end_layout
5295
5296 \end_inset
5297
5298  in your 
5299 \begin_inset Flex Code
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303 lyxrc
5304 \end_layout
5305
5306 \end_inset
5307
5308  file.
5309  Now, whenever you type the 
5310 \begin_inset Flex Noun
5311 status collapsed
5312
5313 \begin_layout Plain Layout
5314 ^
5315 \end_layout
5316
5317 \end_inset
5318
5319 -key followed by a letter, that letter will have a circumflex accent on
5320  it.
5321  For example, the sequence 
5322 \begin_inset Quotes eld
5323 \end_inset
5324
5325
5326 \begin_inset Flex Noun
5327 status collapsed
5328
5329 \begin_layout Plain Layout
5330 ^e
5331 \end_layout
5332
5333 \end_inset
5334
5335
5336 \begin_inset Quotes erd
5337 \end_inset
5338
5339  produces the letter: 
5340 \begin_inset Quotes eld
5341 \end_inset
5342
5343 ê
5344 \begin_inset Quotes erd
5345 \end_inset
5346
5347 .
5348  If you tried to type 
5349 \begin_inset Quotes eld
5350 \end_inset
5351
5352
5353 \begin_inset Flex Noun
5354 status collapsed
5355
5356 \begin_layout Plain Layout
5357 ^t
5358 \end_layout
5359
5360 \end_inset
5361
5362
5363 \begin_inset Quotes erd
5364 \end_inset
5365
5366 , however, \SpecialChar LyX
5367  will complain with a beep, since a 
5368 \begin_inset Quotes eld
5369 \end_inset
5370
5371
5372 \begin_inset Flex Noun
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 t
5377 \end_layout
5378
5379 \end_inset
5380
5381
5382 \begin_inset Quotes erd
5383 \end_inset
5384
5385  never takes a circumflex accent.
5386  Hitting 
5387 \begin_inset Flex Noun
5388 status collapsed
5389
5390 \begin_layout Plain Layout
5391 Space
5392 \end_layout
5393
5394 \end_inset
5395
5396  after a dead-key produces the bare-accent.
5397  Please note this last point! If you bind a key to a dead-key, you'll need
5398  to rebind the character on that key to yet another key.
5399  Binding the 
5400 \begin_inset Flex Noun
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 ,-key
5405 \end_layout
5406
5407 \end_inset
5408
5409  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5410 \end_layout
5411
5412 \begin_layout Standard
5413 One common way to bind dead-keys is to use 
5414 \begin_inset Flex Noun
5415 status collapsed
5416
5417 \begin_layout Plain Layout
5418 Meta-
5419 \end_layout
5420
5421 \end_inset
5422
5423
5424 \begin_inset Flex Noun
5425 status collapsed
5426
5427 \begin_layout Plain Layout
5428 Ctrl-
5429 \end_layout
5430
5431 \end_inset
5432
5433 , and 
5434 \begin_inset Flex Noun
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438 Shift-
5439 \end_layout
5440
5441 \end_inset
5442
5443  in combination with an accent, like 
5444 \begin_inset Quotes eld
5445 \end_inset
5446
5447
5448 \begin_inset Flex Noun
5449 status collapsed
5450
5451 \begin_layout Plain Layout
5452 ~
5453 \end_layout
5454
5455 \end_inset
5456
5457
5458 \begin_inset Quotes erd
5459 \end_inset
5460
5461  or 
5462 \begin_inset Quotes eld
5463 \end_inset
5464
5465
5466 \begin_inset Flex Noun
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 ,
5471 \end_layout
5472
5473 \end_inset
5474
5475
5476 \begin_inset Quotes erd
5477 \end_inset
5478
5479  or 
5480 \begin_inset Quotes eld
5481 \end_inset
5482
5483
5484 \begin_inset Flex Noun
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488 ^
5489 \end_layout
5490
5491 \end_inset
5492
5493
5494 \begin_inset Quotes erd
5495 \end_inset
5496
5497 .
5498  Another way involves using 
5499 \begin_inset Flex Code
5500 status collapsed
5501
5502 \begin_layout Plain Layout
5503 xmodmap
5504 \end_layout
5505
5506 \end_inset
5507
5508  and 
5509 \begin_inset Flex Code
5510 status collapsed
5511
5512 \begin_layout Plain Layout
5513 xkeycaps
5514 \end_layout
5515
5516 \end_inset
5517
5518  to set up the special 
5519 \begin_inset Flex Code
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523 Mode_Switch
5524 \end_layout
5525
5526 \end_inset
5527
5528  key.
5529  The 
5530 \begin_inset Flex Code
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 Mode_Switch
5535 \end_layout
5536
5537 \end_inset
5538
5539  acts in some ways just like 
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 Shift
5545 \end_layout
5546
5547 \end_inset
5548
5549  and permits you to bind keys to accented characters.
5550  You can also turn keys into dead-keys by binding them to something like
5551  
5552 \begin_inset Flex Code
5553 status collapsed
5554
5555 \begin_layout Plain Layout
5556 usldead_cedilla
5557 \end_layout
5558
5559 \end_inset
5560
5561  and then binding this symbolic key to the corresponding \SpecialChar LyX
5562  command.
5563 \begin_inset Foot
5564 status collapsed
5565
5566 \begin_layout Plain Layout
5567 Note from 
5568 \noun on
5569 John Weiss
5570 \noun default
5571 : This is exactly what I do in my 
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 ~/.lyx/lyxrc
5577 \end_layout
5578
5579 \end_inset
5580
5581  and my 
5582 \begin_inset Flex Code
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 ~/.xmodmap
5587 \end_layout
5588
5589 \end_inset
5590
5591  files.
5592  I have my 
5593 \begin_inset Flex Noun
5594 status collapsed
5595
5596 \begin_layout Plain Layout
5597 Scroll
5598 \begin_inset space ~
5599 \end_inset
5600
5601 Lock
5602 \end_layout
5603
5604 \end_inset
5605
5606  key set up as 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 Mode_Shift
5612 \end_layout
5613
5614 \end_inset
5615
5616  and a bunch of these 
5617 \begin_inset Quotes eld
5618 \end_inset
5619
5620
5621 \begin_inset Flex Code
5622 status collapsed
5623
5624 \begin_layout Plain Layout
5625 usldead_*
5626 \end_layout
5627
5628 \end_inset
5629
5630
5631 \begin_inset Quotes erd
5632 \end_inset
5633
5634  symbolic keys bound such things as 
5635 \begin_inset Flex Noun
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 Scroll
5640 \begin_inset space ~
5641 \end_inset
5642
5643 Lock-^
5644 \end_layout
5645
5646 \end_inset
5647
5648  and 
5649 \begin_inset Flex Noun
5650 status collapsed
5651
5652 \begin_layout Plain Layout
5653 Scroll
5654 \begin_inset space ~
5655 \end_inset
5656
5657 Lock-~
5658 \end_layout
5659
5660 \end_inset
5661
5662 .
5663  This is how I produce my accented characters.
5664 \end_layout
5665
5666 \end_inset
5667
5668  You can make just about anything into the 
5669 \begin_inset Flex Code
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673 Mode_Switch
5674 \end_layout
5675
5676 \end_inset
5677
5678  key: One of the 
5679 \begin_inset Flex Noun
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 Ctrl-
5684 \end_layout
5685
5686 \end_inset
5687
5688  keys, a spare function key, etc.
5689  As for the \SpecialChar LyX
5690  commands that produce accents, check the entry for 
5691 \begin_inset Flex Code
5692 status collapsed
5693
5694 \begin_layout Plain Layout
5695 accent-acute
5696 \end_layout
5697
5698 \end_inset
5699
5700  in the 
5701 \emph on
5702 Reference Manual
5703 \emph default
5704 .
5705  You'll find the complete list there.
5706 \end_layout
5707
5708 \begin_layout Subsection
5709 Saving your Language Configuration
5710 \end_layout
5711
5712 \begin_layout Standard
5713 You can edit your preferences so that your desired language environment
5714  is automatically configured when \SpecialChar LyX
5715  starts up, via the 
5716 \begin_inset Flex Noun
5717 status collapsed
5718
5719 \begin_layout Plain Layout
5720 Edit\SpecialChar menuseparator
5721 Preferences
5722 \end_layout
5723
5724 \end_inset
5725
5726  dialog.
5727 \end_layout
5728
5729 \begin_layout Chapter
5730 Installing New Document Classes, Layouts, and Templates
5731 \begin_inset CommandInset label
5732 LatexCommand label
5733 name "cha:Installing-New-Document"
5734
5735 \end_inset
5736
5737
5738 \begin_inset Argument 1
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 Installing New Document Classes
5743 \end_layout
5744
5745 \end_inset
5746
5747
5748 \end_layout
5749
5750 \begin_layout Standard
5751 In this chapter, we describe the procedures for creating and installing
5752  new \SpecialChar LyX
5753  layout and template files, as well as offer a refresher on correctly
5754  installing new \SpecialChar LaTeX
5755  document classes.
5756  
5757 \end_layout
5758
5759 \begin_layout Standard
5760 First, let us a say a few words about how one ought to think about the relation
5761  between \SpecialChar LyX
5762  and \SpecialChar LaTeX
5763 .
5764  The thing to understand is that, in a certain sense, \SpecialChar LyX
5765  doesn't know anything
5766  about \SpecialChar LaTeX
5767 .
5768  Indeed, from \SpecialChar LyX
5769 's point of view, \SpecialChar LaTeX
5770  is just one of several 
5771 \begin_inset Quotes eld
5772 \end_inset
5773
5774 backend formats
5775 \begin_inset Quotes erd
5776 \end_inset
5777
5778  in which it is capable of producing output.
5779  Other such formats are DocBook, plaintext, and XHTML.
5780  \SpecialChar LaTeX
5781  is, of course, a particularly important format, but very little of the
5782  information \SpecialChar LyX
5783  has about \SpecialChar LaTeX
5784  is actually contained in the program itself.
5785 \begin_inset Foot
5786 status collapsed
5787
5788 \begin_layout Plain Layout
5789 Some commands are sufficiently complex that they are 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 hardcoded
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797  into \SpecialChar LyX
5798 .
5799  But the developers generally regard this as a Bad Thing.
5800 \end_layout
5801
5802 \end_inset
5803
5804  Rather, that information, even for the standard classes like 
5805 \begin_inset Flex Code
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 article.cls
5810 \end_layout
5811
5812 \end_inset
5813
5814 , is contained in `layout files'.
5815  Similarly, \SpecialChar LyX
5816  itself does not know much about DocBook or XHTML.
5817  What it knows is contained in layout files.
5818 \end_layout
5819
5820 \begin_layout Standard
5821 You can think of the layout file for a given document class as a translation
5822  manual between \SpecialChar LyX
5823  constructs—paragraphs with their corresponding styles,
5824  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5825 , DocBook, or XHTML
5826  constructs.
5827  Almost everything \SpecialChar LyX
5828  knows about 
5829 \begin_inset Flex Code
5830 status collapsed
5831
5832 \begin_layout Plain Layout
5833 article.cls
5834 \end_layout
5835
5836 \end_inset
5837
5838 , for example, is contained in the file 
5839 \begin_inset Flex Code
5840 status collapsed
5841
5842 \begin_layout Plain Layout
5843 article.layout
5844 \end_layout
5845
5846 \end_inset
5847
5848  and in various other files it includes.
5849  For this reason, anyone intending to write layout files should plan to
5850  study the existing files.
5851  A good place to start is with 
5852 \begin_inset Flex Code
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856 stdsections.inc
5857 \end_layout
5858
5859 \end_inset
5860
5861 , which is included in 
5862 \begin_inset Flex Code
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 article.layout
5867 \end_layout
5868
5869 \end_inset
5870
5871
5872 \begin_inset Flex Code
5873 status collapsed
5874
5875 \begin_layout Plain Layout
5876 book.layout
5877 \end_layout
5878
5879 \end_inset
5880
5881 , and many of the other layout files for document classes.
5882  This file is where sections and the like are defined: 
5883 \begin_inset Flex Code
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 stdsections.inc
5888 \end_layout
5889
5890 \end_inset
5891
5892  tells \SpecialChar LyX
5893  how paragraphs that are marked with the Section, Subsection, etc,
5894  styles can be translated into corresponding \SpecialChar LaTeX
5895 , DocBook, and XHTML commands
5896  and tags.
5897  The 
5898 \begin_inset Flex Code
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 article.layout
5903 \end_layout
5904
5905 \end_inset
5906
5907  file basically just includes several of these 
5908 \begin_inset Flex Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 std*.inc
5913 \end_layout
5914
5915 \end_inset
5916
5917  files.
5918 \end_layout
5919
5920 \begin_layout Standard
5921 Defining the \SpecialChar LyX
5922 –\SpecialChar LaTeX
5923  correspondence is not the only thing layout files do, though.
5924  Their other job is to define how the \SpecialChar LyX
5925  constructs themselves will appear
5926  on-screen.
5927  The fact that layout files have these two jobs is often a source of confusion,
5928  because they are completely separate.
5929  Telling \SpecialChar LyX
5930  how to translate a certain paragraph style into \SpecialChar LaTeX
5931  does not tell
5932  \SpecialChar LyX
5933  how to display it; conversely, telling \SpecialChar LyX
5934  how to display a certain paragraph
5935  style does not tell \SpecialChar LyX
5936  how to translate it into \SpecialChar LaTeX
5937  (let alone tell \SpecialChar LaTeX
5938  how to
5939  display it).
5940  So, in general, when you define a new \SpecialChar LyX
5941  construct, you must always do two
5942  quite separate things: (i)
5943 \begin_inset space ~
5944 \end_inset
5945
5946 tell \SpecialChar LyX
5947  how to translate it into \SpecialChar LaTeX
5948  and (ii)
5949 \begin_inset space ~
5950 \end_inset
5951
5952 tell \SpecialChar LyX
5953  how to display it.
5954 \end_layout
5955
5956 \begin_layout Standard
5957 Much the same is true, of course, as regards \SpecialChar LyX
5958 's other backend formats, though
5959  XHTML is in some ways different, because in that case \SpecialChar LyX
5960  
5961 \emph on
5962 is
5963 \emph default
5964  able, to some extent, to use information about how it should display a
5965  paragraph on the screen to output information (in the form of CSS) about
5966  how the paragraph should be displayed in a browser.
5967  Even in this case, however, the distinction between what \SpecialChar LyX
5968  does internally
5969  and how things are rendered externally remains in force, and the two can
5970  be controlled separately.
5971  See 
5972 \begin_inset CommandInset ref
5973 LatexCommand ref
5974 reference "sec:Tags-for-XHTML"
5975
5976 \end_inset
5977
5978  for the details.
5979 \end_layout
5980
5981 \begin_layout Section
5982 Installing new \SpecialChar LaTeX
5983  files
5984 \end_layout
5985
5986 \begin_layout Standard
5987 Some installations may not include a \SpecialChar LaTeX
5988  package or class file that you would
5989  like to use within \SpecialChar LyX
5990 .
5991  For example, you might need Foil\SpecialChar TeX
5992 , a package for preparing slides for overhead
5993  projectors.
5994  Modern \SpecialChar LaTeX
5995  distributions like \SpecialChar TeX
5996 Live (2008 or newer) or MiK\SpecialChar TeX
5997  provide a user interface
5998  for installing such packages.
5999  For example, with MiK\SpecialChar TeX
6000 , you start the program 
6001 \begin_inset Quotes eld
6002 \end_inset
6003
6004 Package
6005 \begin_inset space ~
6006 \end_inset
6007
6008 Manager
6009 \begin_inset Quotes erd
6010 \end_inset
6011
6012  to get a list of available packages.
6013  To install one of them, right click on it or use the corresponding toolbar
6014  button.
6015 \end_layout
6016
6017 \begin_layout Standard
6018 If your \SpecialChar LaTeX
6019  distribution does not provide such a `package manager', or if the
6020  package is not available from your distribution, then follow these steps
6021  to install it manually:
6022 \end_layout
6023
6024 \begin_layout Enumerate
6025 Get the package from 
6026 \begin_inset CommandInset href
6027 LatexCommand href
6028 name "CTAN"
6029 target "http://www.ctan.org/"
6030 literal "false"
6031
6032 \end_inset
6033
6034  or wherever.
6035 \end_layout
6036
6037 \begin_layout Enumerate
6038 If the package contains a file with the ending 
6039 \begin_inset Quotes eld
6040 \end_inset
6041
6042
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 .ins
6048 \end_layout
6049
6050 \end_inset
6051
6052
6053 \begin_inset Quotes erd
6054 \end_inset
6055
6056  (is the case for Foil\SpecialChar TeX
6057 ) then open a console, change to the folder of this
6058  file and execute the command 
6059 \begin_inset Flex Code
6060 status collapsed
6061
6062 \begin_layout Plain Layout
6063 latex foiltex.ins
6064 \end_layout
6065
6066 \end_inset
6067
6068 .
6069  You have now unpacked the package and have all files to install it.
6070  Most \SpecialChar LaTeX
6071 -packages are not packed and you can skip this step.
6072 \end_layout
6073
6074 \begin_layout Enumerate
6075 Now you need to decide if the package should be available for all users
6076  or only for you.
6077 \end_layout
6078
6079 \begin_deeper
6080 \begin_layout Enumerate
6081 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6082  for all users on your system, then install it in your `local' \SpecialChar TeX
6083  tree, otherwise
6084  install it in your own `user' \SpecialChar TeX
6085  tree.
6086  Where these trees should be created, if they do not already exist, depends
6087  on your system.
6088  To find this out, look in the file 
6089 \begin_inset Flex Code
6090 status collapsed
6091
6092 \begin_layout Plain Layout
6093 texmf.cnf
6094 \end_layout
6095
6096 \end_inset
6097
6098 .
6099 \begin_inset Foot
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 This is usually in the directory 
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 $TEXMF/web2c
6109 \end_layout
6110
6111 \end_inset
6112
6113 , though you can execute the command 
6114 \begin_inset Flex Code
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 kpsewhich texmf.cnf
6119 \end_layout
6120
6121 \end_inset
6122
6123  to locate it.
6124 \end_layout
6125
6126 \end_inset
6127
6128  The location of the `local' \SpecialChar TeX
6129  tree is defined by the 
6130 \begin_inset Flex Code
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 TEXMFLOCAL
6135 \end_layout
6136
6137 \end_inset
6138
6139  variable; this is usually somewhere like 
6140 \begin_inset Flex Code
6141 status collapsed
6142
6143 \begin_layout Plain Layout
6144 /usr/local/share/texmf
6145 \end_layout
6146
6147 \end_inset
6148
6149  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6150 Live
6151  distribution.
6152  The location of the `user' \SpecialChar TeX
6153  tree is defined by 
6154 \begin_inset Flex Code
6155 status collapsed
6156
6157 \begin_layout Plain Layout
6158 TEXMFHOME
6159 \end_layout
6160
6161 \end_inset
6162
6163  and is commonly 
6164 \begin_inset Flex Code
6165 status collapsed
6166
6167 \begin_layout Plain Layout
6168 $HOME/texmf
6169 \end_layout
6170
6171 \end_inset
6172
6173  or 
6174 \begin_inset Flex Code
6175 status collapsed
6176
6177 \begin_layout Plain Layout
6178
6179 \family sans
6180 $HOME/.texliveXXXX
6181 \end_layout
6182
6183 \end_inset
6184
6185 .
6186  (If these variables are not predefined, you have to define them.) You'll
6187  probably need root permissions to create or modify the `local' tree, but
6188  not for your `user' tree.
6189 \begin_inset Newline newline
6190 \end_inset
6191
6192 In general, it is recommended to install in the user tree because your user
6193  will not be modified or even overwritten when you upgrade your system.
6194  It will typically also be backed up together with everything else when
6195  you backup your home directory (which, of course, you do on a regular basis).
6196 \end_layout
6197
6198 \begin_layout Enumerate
6199 On Windows, if you want the new package to be available for all users on
6200  your system, change to the folder where \SpecialChar LaTeX
6201  is installed and then change to
6202  the subfolder 
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 ~
6208 \backslash
6209 tex
6210 \backslash
6211 latex
6212 \end_layout
6213
6214 \end_inset
6215
6216 .
6217  (For MiK\SpecialChar TeX
6218 , this would be by default the folder 
6219 \begin_inset Flex Code
6220 status collapsed
6221
6222 \begin_layout Plain Layout
6223 ~:
6224 \backslash
6225 Programs
6226 \backslash
6227 MiKTeX
6228 \backslash
6229 tex
6230 \backslash
6231 latex
6232 \end_layout
6233
6234 \end_inset
6235
6236 .)
6237 \begin_inset Foot
6238 status collapsed
6239
6240 \begin_layout Plain Layout
6241 Note that this will be the correct path only on English installations.
6242  On a German one, it would be 
6243 \begin_inset Flex Code
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247 ~:
6248 \backslash
6249 Programme
6250 \backslash
6251 MiKTeX
6252 \backslash
6253 tex
6254 \backslash
6255 latex
6256 \end_layout
6257
6258 \end_inset
6259
6260 , and similarly for other languages.
6261 \end_layout
6262
6263 \end_inset
6264
6265  Create there a new folder 
6266 \begin_inset Flex Code
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 foiltex
6271 \end_layout
6272
6273 \end_inset
6274
6275  and copy all files of the package into it.
6276  
6277 \begin_inset Newline newline
6278 \end_inset
6279
6280 If the package should only available for you or you don't have admin permissions
6281 , do the same, but in the local \SpecialChar LaTeX
6282  folder.
6283  E.
6284 \begin_inset space \thinspace{}
6285 \end_inset
6286
6287 g., for MiK\SpecialChar TeX
6288
6289 \begin_inset space ~
6290 \end_inset
6291
6292 2.8 under Windows XP, this would be the folder:
6293 \begin_inset Newline newline
6294 \end_inset
6295
6296
6297 \family sans
6298
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 ~:
6304 \backslash
6305 Documents and Settings
6306 \backslash
6307 <username>
6308 \backslash
6309 Application Data
6310 \backslash
6311
6312 \end_layout
6313
6314 \end_inset
6315
6316
6317 \begin_inset Newline newline
6318 \end_inset
6319
6320
6321 \family default
6322
6323 \begin_inset Phantom HPhantom
6324 status open
6325
6326 \begin_layout Plain Layout
6327
6328 \family sans
6329 ~:
6330 \backslash
6331
6332 \end_layout
6333
6334 \end_inset
6335
6336
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 MiKTeX
6342 \backslash
6343 2.8
6344 \backslash
6345 tex
6346 \backslash
6347 latex
6348 \end_layout
6349
6350 \end_inset
6351
6352
6353 \begin_inset Newline newline
6354 \end_inset
6355
6356 On Vista, it would be:
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360
6361 \begin_inset Flex Code
6362 status collapsed
6363
6364 \begin_layout Plain Layout
6365 ~:
6366 \backslash
6367 Users
6368 \backslash
6369 <username>
6370 \backslash
6371 AppData
6372 \backslash
6373 Roaming
6374 \backslash
6375 2.8
6376 \backslash
6377 MiKTeX
6378 \backslash
6379 tex
6380 \backslash
6381 latex
6382 \end_layout
6383
6384 \end_inset
6385
6386
6387 \end_layout
6388
6389 \end_deeper
6390 \begin_layout Enumerate
6391 Now one only need to tell \SpecialChar LaTeX
6392  that there are new files.
6393  This depends on the used \SpecialChar LaTeX
6394 -Distribution:
6395 \end_layout
6396
6397 \begin_deeper
6398 \begin_layout Enumerate
6399 For \SpecialChar TeX
6400 Live execute the command 
6401 \begin_inset Flex Code
6402 status collapsed
6403
6404 \begin_layout Plain Layout
6405 texhash
6406 \end_layout
6407
6408 \end_inset
6409
6410  from a console.
6411  If you installed the package for all users, then you will probably need
6412  to have root permissions for that.
6413 \end_layout
6414
6415 \begin_layout Enumerate
6416 For MiK\SpecialChar TeX
6417 , if you have installed the package for all users, start the program
6418  
6419 \begin_inset Quotes eld
6420 \end_inset
6421
6422 Settings
6423 \begin_inset space ~
6424 \end_inset
6425
6426 (Admin)
6427 \begin_inset Quotes erd
6428 \end_inset
6429
6430  and press the button marked 
6431 \begin_inset Quotes eld
6432 \end_inset
6433
6434 Refresh FNDB
6435 \begin_inset Quotes erd
6436 \end_inset
6437
6438 .
6439  Otherwise start the program 
6440 \begin_inset Quotes eld
6441 \end_inset
6442
6443 Settings
6444 \begin_inset Quotes erd
6445 \end_inset
6446
6447  and do the same.
6448 \end_layout
6449
6450 \end_deeper
6451 \begin_layout Enumerate
6452 Finally, you need to tell \SpecialChar LyX
6453  that there are new packages available.
6454  So, in \SpecialChar LyX
6455 , use the menu 
6456 \begin_inset Flex Noun
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460 Tools
6461 \family sans
6462 \SpecialChar menuseparator
6463 Reconfigure
6464 \end_layout
6465
6466 \end_inset
6467
6468  and then restart \SpecialChar LyX
6469 .
6470 \end_layout
6471
6472 \begin_layout Standard
6473 Now the package is installed.
6474  In our example, the document class 
6475 \begin_inset Flex Code
6476 status collapsed
6477
6478 \begin_layout Plain Layout
6479 FoilTex
6480 \end_layout
6481
6482 \end_inset
6483
6484  will now be available under 
6485 \begin_inset Flex Noun
6486 status collapsed
6487
6488 \begin_layout Plain Layout
6489 Document\SpecialChar menuseparator
6490 Settings\SpecialChar menuseparator
6491 Document Class
6492 \end_layout
6493
6494 \end_inset
6495
6496  (in the 
6497 \begin_inset Quotes eld
6498 \end_inset
6499
6500 Presentations
6501 \begin_inset Quotes erd
6502 \end_inset
6503
6504  category).
6505  
6506 \end_layout
6507
6508 \begin_layout Standard
6509 If you would like to use a \SpecialChar LaTeX
6510  document class that is not even listed in the
6511  menu 
6512 \begin_inset Flex Noun
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 Document\SpecialChar menuseparator
6517 Settings\SpecialChar menuseparator
6518 Document Class
6519 \end_layout
6520
6521 \end_inset
6522
6523 , then you need to create a `layout' file for it.
6524  That is the topic of the next section.
6525 \end_layout
6526
6527 \begin_layout Section
6528 Types of layout files
6529 \end_layout
6530
6531 \begin_layout Standard
6532 This section describes the various sorts of \SpecialChar LyX
6533  files that contain layout informati
6534 on.
6535  These files describe various paragraph and character styles, determining
6536  how \SpecialChar LyX
6537  should display them and how they should be translated into \SpecialChar LaTeX
6538 , DocBook,
6539  XHTML, or whatever output format is being used.
6540  
6541 \end_layout
6542
6543 \begin_layout Standard
6544 We shall try to provide a thorough description of the process of writing
6545  layout files here.
6546  However, there are so many different types of documents supported even
6547  by just \SpecialChar LaTeX
6548  that we can't hope to cover every different possibility or problem
6549  you might encounter.
6550  The \SpecialChar LyX
6551  users' list is frequented by people with lots of experience with layout
6552  design who are willing to share what they've learned, so please feel free
6553  to ask questions there.
6554 \end_layout
6555
6556 \begin_layout Standard
6557 As you prepare to write a new layout, it is extremely helpful to look at
6558  the layouts distributed with \SpecialChar LyX
6559 .
6560  If you write a \SpecialChar LyX
6561  layout for a \SpecialChar LaTeX
6562  document class that might also be used by
6563  others, or write a module that might be useful to others, then you should
6564  consider posting your layout to the 
6565 \begin_inset CommandInset href
6566 LatexCommand href
6567 name "layout section on the LyX wiki"
6568 target "http://wiki.lyx.org/Layouts/Layouts"
6569 literal "false"
6570
6571 \end_inset
6572
6573  or even to the \SpecialChar LyX
6574  developers' list, so that it might be included in \SpecialChar LyX
6575  itself.
6576 \begin_inset Foot
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 Note that \SpecialChar LyX
6581  is licensed under the General Public License, so any material
6582  that is contributed to \SpecialChar LyX
6583  must be similarly licensed.
6584 \end_layout
6585
6586 \end_inset
6587
6588
6589 \end_layout
6590
6591 \begin_layout Subsection
6592 Layout modules
6593 \begin_inset CommandInset label
6594 LatexCommand label
6595 name "subsec:Layout-modules"
6596
6597 \end_inset
6598
6599
6600 \end_layout
6601
6602 \begin_layout Standard
6603 We have spoken to this point about `layout files'.
6604  But there are different sorts of files that contain layout information.
6605  Layout files, strictly so called, have the 
6606 \begin_inset Flex Code
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 .layout
6611 \end_layout
6612
6613 \end_inset
6614
6615  extension and provide \SpecialChar LyX
6616  with information about document classes.
6617  Since \SpecialChar LyX
6618  1.6 layout information can also be contained in layout 
6619 \emph on
6620 modules
6621 \emph default
6622 , which have the 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 .module
6628 \end_layout
6629
6630 \end_inset
6631
6632  extension.
6633  Modules are to \SpecialChar LaTeX
6634  packages much as layouts are to \SpecialChar LaTeX
6635  classes, and some modules—such
6636  as the 
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 endnotes
6642 \end_layout
6643
6644 \end_inset
6645
6646  module—specifically provide support for one package.
6647  In a sense, layout modules are similar to included
6648 \begin_inset Foot
6649 status collapsed
6650
6651 \begin_layout Plain Layout
6652 These can have any extension, but by convention have the 
6653 \begin_inset Flex Code
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 .inc
6658 \end_layout
6659
6660 \end_inset
6661
6662  extension.
6663 \end_layout
6664
6665 \end_inset
6666
6667  files—files like 
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 stdsections.inc
6673 \end_layout
6674
6675 \end_inset
6676
6677 —in that modules are not specific to a given document class but may be used
6678  with many different classes.
6679  The difference is that using an included file with 
6680 \begin_inset Flex Code
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 article.cls
6685 \end_layout
6686
6687 \end_inset
6688
6689  requires editing that file.
6690  Modules, by contrast, are selected in the 
6691 \begin_inset Flex Noun
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 Document\SpecialChar menuseparator
6696 Settings
6697 \end_layout
6698
6699 \end_inset
6700
6701  dialog.
6702 \end_layout
6703
6704 \begin_layout Standard
6705 Building modules is the easiest way to get started with layout editing,
6706  since it can be as simple as adding a single new paragraph style or flex
6707  inset.
6708  But modules may, in principle, contain anything a layout file can contain.
6709 \end_layout
6710
6711 \begin_layout Standard
6712 After creating a new module and copying it to the 
6713 \begin_inset Flex Code
6714 status collapsed
6715
6716 \begin_layout Plain Layout
6717 layouts/
6718 \end_layout
6719
6720 \end_inset
6721
6722  folder, you will need to reconfigure and then restart \SpecialChar LyX
6723  for the module to
6724  appear in the menu.
6725  However, changes you make to the module will be seen immediately, if you
6726  open 
6727 \begin_inset Flex Noun
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731 Document\SpecialChar menuseparator
6732 Settings
6733 \end_layout
6734
6735 \end_inset
6736
6737 , highlight something, and then hit 
6738 \begin_inset Quotes eld
6739 \end_inset
6740
6741 OK
6742 \begin_inset Quotes erd
6743 \end_inset
6744
6745 .
6746  
6747 \emph on
6748 It is strongly recommended that you save your work before doing this
6749 \emph default
6750 .
6751  In fact, 
6752 \emph on
6753 it is strongly recommended that you not attempt to edit modules while simultaneo
6754 usly working on actual documents
6755 \emph default
6756 .
6757  Though of course the developers strive to keep \SpecialChar LyX
6758  stable in such situations,
6759  syntax errors and the like in your module file could cause strange behavior.
6760 \end_layout
6761
6762 \begin_layout Subsubsection
6763 Local Layout
6764 \end_layout
6765
6766 \begin_layout Standard
6767 Modules are to \SpecialChar LyX
6768  as packages are to \SpecialChar LaTeX
6769 .
6770  Sometimes, however, you find yourself wanting a specific inset or character
6771  style just for one document and writing a module that will also be available
6772  to other documents makes little sense.
6773  What you need is \SpecialChar LyX
6774 's 
6775 \begin_inset Quotes eld
6776 \end_inset
6777
6778 Local Layout
6779 \begin_inset Quotes erd
6780 \end_inset
6781
6782 .
6783 \end_layout
6784
6785 \begin_layout Standard
6786 You will find it under 
6787 \family sans
6788 Document\SpecialChar menuseparator
6789 Settings\SpecialChar menuseparator
6790 Local Layout
6791 \family default
6792 .
6793  The large text box allows you to enter anything that you might enter in
6794  a layout file or module.
6795  You can think of a document's local layout, in fact, as a module that belongs
6796  just to it.
6797  So, in particular, you must enter a 
6798 \begin_inset Flex Code
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 Format
6803 \end_layout
6804
6805 \end_inset
6806
6807  tag.
6808  Any format is acceptable, but one would normally use the format current
6809  at the time.
6810  (In \SpecialChar LyX
6811  2.3, the current layout format is 63.)
6812 \end_layout
6813
6814 \begin_layout Standard
6815 When you have entered something in the 
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 Local Layout
6821 \end_layout
6822
6823 \end_inset
6824
6825  pane, \SpecialChar LyX
6826  will enable the 
6827 \begin_inset Quotes eld
6828 \end_inset
6829
6830 Validate
6831 \begin_inset Quotes erd
6832 \end_inset
6833
6834  button at the bottom.
6835  Clicking this button will cause \SpecialChar LyX
6836  to determine whether what you have entered
6837  is valid layout information for the chosen format.
6838  \SpecialChar LyX
6839  will report the result but, unfortunately, will not tell you what errors
6840  there might have been.
6841  These will be written to the terminal, however, if \SpecialChar LyX
6842  is started from a terminal.
6843  You will not be permitted to save your local layout until you have entered
6844  something valid.
6845 \end_layout
6846
6847 \begin_layout Standard
6848 The warnings at the end of the previous section apply here, too.
6849  Do not play with local layout while you are actually working, especially
6850  if you have not saved your document.
6851  That said, using local layout with a test document can be a very convenient
6852  way to try out layout ideas, or even to start developing a module.
6853 \end_layout
6854
6855 \begin_layout Subsection
6856 Layout for 
6857 \begin_inset Flex Noun
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 .sty
6862 \end_layout
6863
6864 \end_inset
6865
6866  files
6867 \end_layout
6868
6869 \begin_layout Standard
6870 There are two situations you are likely to encounter when wanting to support
6871  a new \SpecialChar LaTeX
6872  document class, involving style (
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 .sty
6878 \end_layout
6879
6880 \end_inset
6881
6882 ) files and \SpecialChar LaTeX2e
6883  class (
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 .cls
6889 \end_layout
6890
6891 \end_inset
6892
6893 ) .
6894  Supporting a style file is usually fairly easy.
6895  Supporting a new class file is a bit harder.
6896  We'll discuss the former in this section and the latter in the next.
6897  Similar remarks apply, of course, if you want to support a new DocBook
6898  DTD.
6899 \end_layout
6900
6901 \begin_layout Standard
6902 The easier case is the one in which your new document class is provided
6903  as a style file that is to be used in conjunction with an already supported
6904  document class.
6905  For the sake of the example, we'll assume that the style file is called
6906  
6907 \begin_inset Flex Noun
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 myclass.sty
6912 \end_layout
6913
6914 \end_inset
6915
6916  and that it is meant to be used with 
6917 \begin_inset Flex Noun
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921 report.cls
6922 \end_layout
6923
6924 \end_inset
6925
6926 , which is a standard class.
6927  
6928 \end_layout
6929
6930 \begin_layout Standard
6931 Start by copying the existing class's layout file into your local directory:
6932 \begin_inset Foot
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 Of course, which directory is your local directory will vary by platform,
6937  and \SpecialChar LyX
6938  allows you to specify your local directory on startup, too, using
6939  the 
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 -userdir
6945 \end_layout
6946
6947 \end_inset
6948
6949  option.
6950 \end_layout
6951
6952 \end_inset
6953
6954
6955 \end_layout
6956
6957 \begin_layout LyX-Code
6958 cp report.layout ~/.lyx/layouts/myclass.layout
6959 \end_layout
6960
6961 \begin_layout Standard
6962 Then edit 
6963 \begin_inset Flex Code
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 myclass.layout
6968 \end_layout
6969
6970 \end_inset
6971
6972  and change the line: 
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \backslash
6978 DeclareLaTeXClass{Report (Standard Class)}
6979 \end_layout
6980
6981 \begin_layout Standard
6982 to read
6983 \end_layout
6984
6985 \begin_layout LyX-Code
6986
6987 \backslash
6988 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
6989 \end_layout
6990
6991 \begin_layout Standard
6992 Then add:
6993 \end_layout
6994
6995 \begin_layout LyX-Code
6996 Preamble 
6997 \begin_inset Newline newline
6998 \end_inset
6999
7000     
7001 \backslash
7002 usepackage{myclass}
7003 \begin_inset Newline newline
7004 \end_inset
7005
7006 EndPreamble
7007 \end_layout
7008
7009 \begin_layout Standard
7010 near the top of the file.
7011 \end_layout
7012
7013 \begin_layout Standard
7014 Start \SpecialChar LyX
7015  and select 
7016 \begin_inset Flex Noun
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 Tools\SpecialChar menuseparator
7021 Reconfigure
7022 \end_layout
7023
7024 \end_inset
7025
7026 .
7027  Then restart \SpecialChar LyX
7028  and try creating a new document.
7029  You should see "
7030 \begin_inset Flex Noun
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 Report (My Class)
7035 \end_layout
7036
7037 \end_inset
7038
7039 " as a document class option in the 
7040 \begin_inset Flex Noun
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 Document\SpecialChar menuseparator
7045 Settings
7046 \end_layout
7047
7048 \end_inset
7049
7050  dialog.
7051  It is likely that some of the sectioning commands and such in your new
7052  class will work differently from how they worked in the base class—
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 report
7058 \end_layout
7059
7060 \end_inset
7061
7062  in this example—so you can fiddle around with the settings for the different
7063  sections if you wish.
7064  The layout information for sections is contained in 
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 stdsections.inc
7070 \end_layout
7071
7072 \end_inset
7073
7074 , but you do not need to copy and change this file.
7075  Instead, you can simply add your changes to your layout file, after the
7076  line 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 Input stdclass.inc
7082 \end_layout
7083
7084 \end_inset
7085
7086 , which itself includes 
7087 \begin_inset Flex Code
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 stdsections.inc
7092 \end_layout
7093
7094 \end_inset
7095
7096 .
7097  For example, you might add these lines:
7098 \end_layout
7099
7100 \begin_layout LyX-Code
7101 Style Chapter
7102 \end_layout
7103
7104 \begin_layout LyX-Code
7105     Font
7106 \end_layout
7107
7108 \begin_layout LyX-Code
7109         Family Sans
7110 \end_layout
7111
7112 \begin_layout LyX-Code
7113     EndFont
7114 \end_layout
7115
7116 \begin_layout LyX-Code
7117 End
7118 \end_layout
7119
7120 \begin_layout Standard
7121 to change the font for chapter headings to sans-serif.
7122  This will override (or, in this case, add to) the existing declaration
7123  for the Chapter style.
7124  
7125 \end_layout
7126
7127 \begin_layout Standard
7128 Your new package may also provide commands or environments not present in
7129  the base class.
7130  In this case, you will want to add these to the layout file.
7131  See 
7132 \begin_inset CommandInset ref
7133 LatexCommand ref
7134 reference "sec:TextClass"
7135
7136 \end_inset
7137
7138  for information on how to do so.
7139 \end_layout
7140
7141 \begin_layout Standard
7142 If 
7143 \begin_inset Flex Noun
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 myclass.sty
7148 \end_layout
7149
7150 \end_inset
7151
7152  can be used with several different document classes, and even if it cannot,
7153  you might find it easiest just to write a module that you can load with
7154  the base class.
7155  The simplest possible such module would be:
7156 \end_layout
7157
7158 \begin_layout LyX-Code
7159 #
7160 \backslash
7161 DeclareLyXModule{My Class} 
7162 \end_layout
7163
7164 \begin_layout LyX-Code
7165 #DescriptionBegin 
7166 \end_layout
7167
7168 \begin_layout LyX-Code
7169 #Support for myclass.sty.
7170 \end_layout
7171
7172 \begin_layout LyX-Code
7173 #DescriptionEnd
7174 \begin_inset Newline newline
7175 \end_inset
7176
7177
7178 \end_layout
7179
7180 \begin_layout LyX-Code
7181 Format 63
7182 \begin_inset Newline newline
7183 \end_inset
7184
7185
7186 \end_layout
7187
7188 \begin_layout LyX-Code
7189 Preamble
7190 \begin_inset Newline newline
7191 \end_inset
7192
7193     
7194 \backslash
7195 usepackage{myclass}
7196 \begin_inset Newline newline
7197 \end_inset
7198
7199 EndPreamble
7200 \end_layout
7201
7202 \begin_layout Standard
7203 A more complex module might modify the behavior of some existing constructs
7204  or define some new ones.
7205  Again, see 
7206 \begin_inset CommandInset ref
7207 LatexCommand ref
7208 reference "sec:TextClass"
7209
7210 \end_inset
7211
7212  for discussion.
7213 \end_layout
7214
7215 \begin_layout Subsection
7216 Layout for 
7217 \begin_inset Flex Noun
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 .cls
7222 \end_layout
7223
7224 \end_inset
7225
7226  files
7227 \end_layout
7228
7229 \begin_layout Standard
7230 There are two possibilities here.
7231  One is that the class file is itself based upon an existing document class.
7232  For example, many thesis classes are based upon 
7233 \begin_inset Flex Noun
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 book.cls
7238 \end_layout
7239
7240 \end_inset
7241
7242 .
7243  To see whether yours is, look for a line like
7244 \end_layout
7245
7246 \begin_layout LyX-Code
7247
7248 \backslash
7249 LoadClass{book}
7250 \end_layout
7251
7252 \begin_layout Standard
7253 in the file.
7254  If so, then you may proceed largely as in the previous section, though
7255  the 
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 Declare\SpecialChar LaTeX
7261 Class
7262 \end_layout
7263
7264 \end_inset
7265
7266  line will be different.
7267  If your new class is 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 thesis
7273 \end_layout
7274
7275 \end_inset
7276
7277  and it is based upon 
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 book
7283 \end_layout
7284
7285 \end_inset
7286
7287 , then the line should read:
7288 \begin_inset Foot
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 And it will be easiest if you save the file to 
7293 \begin_inset Flex Code
7294 status collapsed
7295
7296 \begin_layout Plain Layout
7297 thesis.layout
7298 \end_layout
7299
7300 \end_inset
7301
7302 : \SpecialChar LyX
7303  assumes that the document class has the same name as the layout file.
7304  
7305 \end_layout
7306
7307 \end_inset
7308
7309
7310 \end_layout
7311
7312 \begin_layout LyX-Code
7313
7314 \backslash
7315 DeclareLaTeXClass[thesis,book]{thesis}
7316 \end_layout
7317
7318 \begin_layout Standard
7319 If, on the other hand, the new class is not based upon an existing class,
7320  you will probably have to 
7321 \begin_inset Quotes eld
7322 \end_inset
7323
7324 roll your own
7325 \begin_inset Quotes erd
7326 \end_inset
7327
7328  layout.
7329  We strongly suggest copying an existing layout file which uses a similar
7330  \SpecialChar LaTeX
7331  class and then modifying it, if you can do so.
7332  At least use an existing file as a starting point so you can find out what
7333  items you need to worry about.
7334  Again, the specifics are covered below.
7335 \end_layout
7336
7337 \begin_layout Subsection
7338 Creating templates
7339 \begin_inset CommandInset label
7340 LatexCommand label
7341 name "subsec:Creating-Templates"
7342
7343 \end_inset
7344
7345
7346 \end_layout
7347
7348 \begin_layout Standard
7349 Once you have written a layout file for a new document class, you might
7350  want to consider writing a 
7351 \emph on
7352 template
7353 \emph default
7354  for it, too.
7355  A template acts as a kind of tutorial for your layout, showing how it might
7356  be used, though containing dummy content.
7357  You can of course look at the various templates included with \SpecialChar LyX
7358  for ideas.
7359 \end_layout
7360
7361 \begin_layout Standard
7362 Templates are created just like usual documents: using \SpecialChar LyX
7363 .
7364  The only difference is that usual documents contain all possible settings,
7365  including the font scheme and the paper size.
7366  Usually a user doesn't want a template to overwrite his preferred settings
7367  for such parameters.
7368  For that reason, the designer of a template should remove the corresponding
7369  commands like 
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374
7375 \backslash
7376 font_roman
7377 \end_layout
7378
7379 \end_inset
7380
7381  or 
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386
7387 \backslash
7388 papersize
7389 \end_layout
7390
7391 \end_inset
7392
7393  from the template \SpecialChar LyX
7394  file.
7395  This can be done with any simple text-editor, for example 
7396 \begin_inset Flex Code
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 vi
7401 \end_layout
7402
7403 \end_inset
7404
7405  or 
7406 \begin_inset Flex Code
7407 status collapsed
7408
7409 \begin_layout Plain Layout
7410 notepad
7411 \end_layout
7412
7413 \end_inset
7414
7415 .
7416 \end_layout
7417
7418 \begin_layout Standard
7419 Put the edited template files you create in 
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 UserDir/templates/
7425 \end_layout
7426
7427 \end_inset
7428
7429 , copy the ones you use from the global template directory in 
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 LyXDir/templates/
7435 \end_layout
7436
7437 \end_inset
7438
7439  to the same place, and redefine the template path in the 
7440 \begin_inset Flex Noun
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 Tools\SpecialChar menuseparator
7445 Preferences\SpecialChar menuseparator
7446 Paths
7447 \end_layout
7448
7449 \end_inset
7450
7451  dialog.
7452 \end_layout
7453
7454 \begin_layout Standard
7455 Note, by the way, that there is a template which has a particular meaning:
7456  
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 defaults.lyx
7462 \end_layout
7463
7464 \end_inset
7465
7466 .
7467  This template is loaded every time you create a new document with 
7468 \begin_inset Flex Noun
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 File\SpecialChar menuseparator
7473 New
7474 \end_layout
7475
7476 \end_inset
7477
7478  in order to provide useful defaults.
7479  To create this template from inside \SpecialChar LyX
7480 , all you have to do is to open a document
7481  with the correct settings, and use the 
7482 \begin_inset Flex Noun
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 Save as Document Defaults
7487 \end_layout
7488
7489 \end_inset
7490
7491  button.
7492 \end_layout
7493
7494 \begin_layout Subsection
7495 Upgrading old layout files
7496 \end_layout
7497
7498 \begin_layout Standard
7499 The format of layout files changes with each \SpecialChar LyX
7500  release, so old layout files
7501  need to be converted to the new format.
7502  If \SpecialChar LyX
7503  reads a layout file in an older format, it automatically calls the
7504  script 
7505 \begin_inset Flex Code
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 layout2layout.py
7510 \end_layout
7511
7512 \end_inset
7513
7514  to convert it to a temporary file in current format.
7515  The original file is left untouched.
7516  If you use the layout file often, then, you may want to convert it permanently,
7517  so that \SpecialChar LyX
7518  does not have to do so itself every time.
7519  To do this, you can call the converter manually:
7520 \end_layout
7521
7522 \begin_layout Enumerate
7523 rename the file 
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 myclass.layout
7529 \end_layout
7530
7531 \end_inset
7532
7533  to 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 myclass.old
7539 \end_layout
7540
7541 \end_inset
7542
7543
7544 \end_layout
7545
7546 \begin_layout Enumerate
7547 Call the command
7548 \begin_inset Newline newline
7549 \end_inset
7550
7551
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7557 \end_layout
7558
7559 \end_inset
7560
7561
7562 \begin_inset Newline newline
7563 \end_inset
7564
7565 where 
7566 \begin_inset Flex Code
7567 status collapsed
7568
7569 \begin_layout Plain Layout
7570 LyXDir
7571 \end_layout
7572
7573 \end_inset
7574
7575  is the name of your \SpecialChar LyX
7576  system directory.
7577 \end_layout
7578
7579 \begin_layout Standard
7580 Note that manual conversion does not affect included files, so these will
7581  have to be converted separately.
7582 \end_layout
7583
7584 \begin_layout Subsection
7585 \begin_inset CommandInset label
7586 LatexCommand label
7587 name "subsec:Cite-Engine-Files"
7588
7589 \end_inset
7590
7591 Cite engine files
7592 \end_layout
7593
7594 \begin_layout Standard
7595 A specific form of layout files are the so-called 
7596 \begin_inset Flex Code
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 *.citeengine
7601 \end_layout
7602
7603 \end_inset
7604
7605  files that are located in the 
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 citeengines/
7611 \end_layout
7612
7613 \end_inset
7614
7615  sub-directory.
7616  Their purpose is to define the specifics of \SpecialChar LaTeX
7617  packages aimed at bibliography
7618  generation, such as 
7619 \family sans
7620 natbib
7621 \family default
7622 ,
7623 \family sans
7624  jurabib
7625 \family default
7626  or 
7627 \family sans
7628 biblatex
7629 \family default
7630 , but also the way how normal Bib\SpecialChar TeX
7631  citations (without additional packages)
7632  are handled in \SpecialChar LyX
7633  is defined in such a file.
7634  
7635 \end_layout
7636
7637 \begin_layout Standard
7638 More specifically, it is defined which packages \SpecialChar LyX
7639  needs to load, which citation
7640  commands are available, how these are to be displayed in \SpecialChar LyX
7641  (in the workarea,
7642  the dialogs, the context menus) as well as in the XHTML and plain text
7643  output.
7644  Furthermore, the files specify available style variants (author-year, numerical
7645 , etc.) and their specifics.
7646  The cite engine files are also used to generate the options that are available
7647  in 
7648 \family sans
7649 Document\SpecialChar menuseparator
7650 Settings\SpecialChar ldots
7651 \SpecialChar menuseparator
7652 Bibliography\SpecialChar menuseparator
7653 Style engine
7654 \family default
7655 .
7656 \end_layout
7657
7658 \begin_layout Standard
7659 Even though a cite engine file is essentially a normal layout file that
7660  could theoretically include any layout information, it usually primarily
7661  includes some specific parameters such as 
7662 \begin_inset Flex Code
7663 status collapsed
7664
7665 \begin_layout Plain Layout
7666 MaxCiteNames
7667 \end_layout
7668
7669 \end_inset
7670
7671
7672 \begin_inset Flex Code
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 CiteFramework
7677 \end_layout
7678
7679 \end_inset
7680
7681
7682 \begin_inset Flex Code
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 CiteEngine
7687 \end_layout
7688
7689 \end_inset
7690
7691  and 
7692 \begin_inset Flex Code
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 CiteFormat
7697 \end_layout
7698
7699 \end_inset
7700
7701  blocks.
7702  The syntax of the latter two is described in 
7703 \begin_inset CommandInset ref
7704 LatexCommand ref
7705 reference "subsec:Citation-engine-description"
7706 plural "false"
7707 caps "false"
7708 noprefix "false"
7709
7710 \end_inset
7711
7712  and 
7713 \begin_inset CommandInset ref
7714 LatexCommand ref
7715 reference "subsec:Citation-format-description"
7716
7717 \end_inset
7718
7719 , as well as in the files themselves.
7720 \end_layout
7721
7722 \begin_layout Section
7723 \begin_inset CommandInset label
7724 LatexCommand label
7725 name "sec:TextClass"
7726
7727 \end_inset
7728
7729 The layout file format
7730 \end_layout
7731
7732 \begin_layout Standard
7733 The following sections describe how layout files are structured and written.
7734  Our advice is to go slowly, save and test often.
7735  It is really not that hard, except that the multitude of options can become
7736  overwhelming, especially if you try to check out too many at once.
7737  It becomes easier if you use existing layouts of \SpecialChar LyX
7738  as examples/reference
7739  or if you modify an existing layout to your needs.
7740 \end_layout
7741
7742 \begin_layout Standard
7743 Note that all the tags used in layout files are case-insensitive.
7744  This means that 
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 Style
7750 \end_layout
7751
7752 \end_inset
7753
7754
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 style
7760 \end_layout
7761
7762 \end_inset
7763
7764  and 
7765 \begin_inset Flex Code
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 StYlE
7770 \end_layout
7771
7772 \end_inset
7773
7774  are really the same tag.
7775  The possible arguments are printed in brackets after the tag's name.
7776  The default argument is typeset 
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781
7782 \emph on
7783 emphasized
7784 \end_layout
7785
7786 \end_inset
7787
7788 .
7789  If the argument has a data type like 
7790 \begin_inset Quotes eld
7791 \end_inset
7792
7793 string
7794 \begin_inset Quotes erd
7795 \end_inset
7796
7797  or 
7798 \begin_inset Quotes eld
7799 \end_inset
7800
7801 float
7802 \begin_inset Quotes erd
7803 \end_inset
7804
7805 , the default is shown like this: 
7806 \begin_inset Flex Code
7807 status collapsed
7808
7809 \begin_layout Plain Layout
7810 float=
7811 \emph on
7812 default
7813 \end_layout
7814
7815 \end_inset
7816
7817 .
7818 \end_layout
7819
7820 \begin_layout Subsection
7821 The document class declaration and classification
7822 \end_layout
7823
7824 \begin_layout Standard
7825 Lines in a layout file which begin with 
7826 \begin_inset Flex Code
7827 status collapsed
7828
7829 \begin_layout Plain Layout
7830 #
7831 \end_layout
7832
7833 \end_inset
7834
7835  are comments.
7836  There is one exception to this rule.
7837  All 
7838 \begin_inset Flex Code
7839 status collapsed
7840
7841 \begin_layout Plain Layout
7842 *.layout
7843 \end_layout
7844
7845 \end_inset
7846
7847  files should begin with lines like:
7848 \end_layout
7849
7850 \begin_layout LyX-Code
7851
7852 \size small
7853 #% Do not delete the line below; configure depends on this 
7854 \end_layout
7855
7856 \begin_layout LyX-Code
7857
7858 \size small
7859 #  
7860 \backslash
7861 DeclareLaTeXClass{Article (Standard Class)}
7862 \end_layout
7863
7864 \begin_layout LyX-Code
7865
7866 \size small
7867 #  
7868 \backslash
7869 DeclareCategory{Articles}
7870 \end_layout
7871
7872 \begin_layout Standard
7873 The second and third lines are used when you (re)configure \SpecialChar LyX
7874 .
7875  The layout file is read by the \SpecialChar LaTeX
7876  script 
7877 \begin_inset Flex Code
7878 status collapsed
7879
7880 \begin_layout Plain Layout
7881 chkconfig.ltx
7882 \end_layout
7883
7884 \end_inset
7885
7886 , in a special mode where 
7887 \begin_inset Flex Code
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 #
7892 \end_layout
7893
7894 \end_inset
7895
7896  is ignored.
7897  The first line is just a \SpecialChar LaTeX
7898  comment, the second one contains the mandatory
7899  declaration of the text class and the third line contains the optional
7900  classification of the class.
7901  If these lines appear in a file named 
7902 \begin_inset Flex Code
7903 status collapsed
7904
7905 \begin_layout Plain Layout
7906 article.layout
7907 \end_layout
7908
7909 \end_inset
7910
7911 , then they define a text class of name 
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 article
7917 \end_layout
7918
7919 \end_inset
7920
7921  (the name of the layout file) which uses the \SpecialChar LaTeX
7922  document class 
7923 \begin_inset Flex Code
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 article.cls
7928 \end_layout
7929
7930 \end_inset
7931
7932  (the default is to use the same name as the layout).
7933  The string 
7934 \begin_inset Quotes eld
7935 \end_inset
7936
7937 Article (Standard Class)
7938 \begin_inset Quotes erd
7939 \end_inset
7940
7941  that appears above is used as a description of the text class in the 
7942 \begin_inset Flex Noun
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 Document\SpecialChar menuseparator
7947 Settings
7948 \end_layout
7949
7950 \end_inset
7951
7952  dialog.
7953  The category (
7954 \begin_inset Quotes eld
7955 \end_inset
7956
7957 Articles
7958 \begin_inset Quotes erd
7959 \end_inset
7960
7961  in the example) is also used in the 
7962 \begin_inset Flex Noun
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 Document\SpecialChar menuseparator
7967 Settings
7968 \end_layout
7969
7970 \end_inset
7971
7972  dialog: the text classes are grouped by these categories (which are usually
7973  genres, so typical categories are 
7974 \begin_inset Quotes eld
7975 \end_inset
7976
7977 Articles
7978 \begin_inset Quotes erd
7979 \end_inset
7980
7981
7982 \begin_inset Quotes eld
7983 \end_inset
7984
7985 Books
7986 \begin_inset Quotes erd
7987 \end_inset
7988
7989
7990 \begin_inset Quotes eld
7991 \end_inset
7992
7993 Reports
7994 \begin_inset Quotes erd
7995 \end_inset
7996
7997
7998 \begin_inset Quotes eld
7999 \end_inset
8000
8001 Letters
8002 \begin_inset Quotes erd
8003 \end_inset
8004
8005
8006 \begin_inset Quotes eld
8007 \end_inset
8008
8009 Presentations
8010 \begin_inset Quotes erd
8011 \end_inset
8012
8013
8014 \begin_inset Quotes eld
8015 \end_inset
8016
8017 Curricula Vitae
8018 \begin_inset Quotes erd
8019 \end_inset
8020
8021  etc.).
8022  If no category has been declared, the class will be put in the 
8023 \begin_inset Quotes eld
8024 \end_inset
8025
8026 Uncategorized
8027 \begin_inset Quotes erd
8028 \end_inset
8029
8030  group.
8031 \end_layout
8032
8033 \begin_layout Standard
8034 Let's assume that you wrote your own text class that uses the 
8035 \begin_inset Flex Code
8036 status collapsed
8037
8038 \begin_layout Plain Layout
8039 article.cls
8040 \end_layout
8041
8042 \end_inset
8043
8044  document class, but where you changed the appearance of the section headings.
8045  If you put it in a file 
8046 \begin_inset Flex Code
8047 status collapsed
8048
8049 \begin_layout Plain Layout
8050 myarticle.layout
8051 \end_layout
8052
8053 \end_inset
8054
8055 , the header of this file should be:
8056 \end_layout
8057
8058 \begin_layout LyX-Code
8059
8060 \size small
8061 #% Do not delete the line below; configure depends on this 
8062 \end_layout
8063
8064 \begin_layout LyX-Code
8065
8066 \size small
8067 #  
8068 \backslash
8069 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8070 \end_layout
8071
8072 \begin_layout LyX-Code
8073
8074 \size small
8075 #  
8076 \backslash
8077 DeclareCategory{Articles}
8078 \end_layout
8079
8080 \begin_layout Standard
8081 This declares a text class 
8082 \begin_inset Flex Code
8083 status collapsed
8084
8085 \begin_layout Plain Layout
8086 myarticle
8087 \end_layout
8088
8089 \end_inset
8090
8091 , associated with the \SpecialChar LaTeX
8092  document class 
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 article.cls
8098 \end_layout
8099
8100 \end_inset
8101
8102  and described as 
8103 \begin_inset Quotes eld
8104 \end_inset
8105
8106 Article (with My Own Headings)
8107 \begin_inset Quotes erd
8108 \end_inset
8109
8110 .
8111  If your text class depends on several packages, you can declare it as:
8112 \end_layout
8113
8114 \begin_layout LyX-Code
8115
8116 \size small
8117 #% Do not delete the line below; configure depends on this 
8118 \end_layout
8119
8120 \begin_layout LyX-Code
8121
8122 \size small
8123 #  
8124 \backslash
8125 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8126 \end_layout
8127
8128 \begin_layout LyX-Code
8129
8130 \size small
8131 #  
8132 \backslash
8133 DeclareCategory{Articles}
8134 \end_layout
8135
8136 \begin_layout Standard
8137 This indicates that your text class uses the 
8138 \begin_inset Flex Code
8139 status collapsed
8140
8141 \begin_layout Plain Layout
8142 foo.sty
8143 \end_layout
8144
8145 \end_inset
8146
8147  package.
8148  Finally, it is also possible to declare classes for DocBook code.
8149  Typical declarations will look like:
8150 \end_layout
8151
8152 \begin_layout LyX-Code
8153
8154 \size small
8155 #% Do not delete the line below; configure depends on this 
8156 \end_layout
8157
8158 \begin_layout LyX-Code
8159
8160 \size small
8161
8162 \backslash
8163 DeclareDocBookClass[article]{SGML (DocBook Article)}
8164 \end_layout
8165
8166 \begin_layout LyX-Code
8167
8168 \size small
8169
8170 \backslash
8171 DeclareCategory{Articles (DocBook)}
8172 \end_layout
8173
8174 \begin_layout Standard
8175 Note that these declarations can also be given an optional parameter declaring
8176  the name of the document class (but not a list).
8177 \end_layout
8178
8179 \begin_layout Standard
8180 So, to be as explicit as possible, the form of the layout declaration is:
8181 \end_layout
8182
8183 \begin_layout LyX-Code
8184
8185 \size small
8186 #  
8187 \backslash
8188 DeclareLaTeXClass[class,package.sty]{layout description}
8189 \end_layout
8190
8191 \begin_layout LyX-Code
8192
8193 \size small
8194 #  
8195 \backslash
8196 DeclareCategory{category}
8197 \end_layout
8198
8199 \begin_layout Standard
8200 The class need only be specified if the name of the \SpecialChar LaTeX
8201  class file and the
8202  name of the layout file are different or if there are packages to load.
8203  If the name of the class file is not specified, then \SpecialChar LyX
8204  will simply assume
8205  that it is the same as the name of the layout file.
8206 \end_layout
8207
8208 \begin_layout Standard
8209 When the text class has been modified to your taste, all you have to do
8210  is to copy it either to 
8211 \begin_inset Flex Code
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 LyXDir/layouts/
8216 \end_layout
8217
8218 \end_inset
8219
8220  or to 
8221 \begin_inset Flex Code
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225 UserDir/layouts
8226 \end_layout
8227
8228 \end_inset
8229
8230 , run 
8231 \begin_inset Flex Noun
8232 status collapsed
8233
8234 \begin_layout Plain Layout
8235 Tools\SpecialChar menuseparator
8236 Reconfigure
8237 \end_layout
8238
8239 \end_inset
8240
8241 , exit \SpecialChar LyX
8242  and restart.
8243  Then your new text class should be available along with the others.
8244 \end_layout
8245
8246 \begin_layout Standard
8247 Once the layout file is installed, you can edit it and see your changes
8248  without having to reconfigure or to restart \SpecialChar LyX
8249 .
8250 \begin_inset Foot
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 In versions of \SpecialChar LyX
8255  prior to 1.6, this was not true.
8256  As a result, editing layout files was very time consuming, since you had
8257  constantly to restart \SpecialChar LyX
8258  to see changes.
8259 \end_layout
8260
8261 \end_inset
8262
8263  You can force a reload of the current layout by using the \SpecialChar LyX
8264  function 
8265 \begin_inset Flex Noun
8266 status collapsed
8267
8268 \begin_layout Plain Layout
8269 layout-reload
8270 \end_layout
8271
8272 \end_inset
8273
8274 .
8275  There is no default binding for this function—though, of course, you can
8276  bind it to a key yourself.
8277  But you will normally use this function simply by entering it in the mini-buffe
8278 r.
8279  
8280 \end_layout
8281
8282 \begin_layout Standard
8283
8284 \emph on
8285 Warning
8286 \emph default
8287
8288 \begin_inset Flex Noun
8289 status collapsed
8290
8291 \begin_layout Plain Layout
8292 layout-reload
8293 \end_layout
8294
8295 \end_inset
8296
8297  is very much an `advanced feature'.
8298  It is 
8299 \emph on
8300 strongly
8301 \emph default
8302  recommended that you save your work before using this function.
8303  In fact, it is 
8304 \emph on
8305 strongly
8306 \emph default
8307  recommended that you not attempt to edit layout information while simultaneousl
8308 y working on a document that you care about.
8309  Use a test document.
8310  Syntax errors and the like in your layout file could cause peculiar behavior.
8311  In particular, such errors could cause \SpecialChar LyX
8312  to regard the current layout as
8313  invalid and to attempt to switch to some other layout.
8314 \begin_inset Foot
8315 status collapsed
8316
8317 \begin_layout Plain Layout
8318 Really bad syntax errors may even caused \SpecialChar LyX
8319  to exit.
8320  This is because certain sorts of errors may make \SpecialChar LyX
8321  unable to read 
8322 \emph on
8323 any
8324 \emph default
8325  layout information.
8326  Please be careful.
8327 \end_layout
8328
8329 \end_inset
8330
8331  The \SpecialChar LyX
8332  team strives to keep \SpecialChar LyX
8333  stable in such situations, but safe is better
8334  than sorry.
8335 \begin_inset Foot
8336 status collapsed
8337
8338 \begin_layout Plain Layout
8339 While we're giving advice: make regular backups.
8340  And be nice to your mother.
8341 \end_layout
8342
8343 \end_inset
8344
8345
8346 \end_layout
8347
8348 \begin_layout Subsection
8349 The Module declaration
8350 \end_layout
8351
8352 \begin_layout Standard
8353 A module must begin with a line like the following:
8354 \end_layout
8355
8356 \begin_layout LyX-Code
8357 #
8358 \backslash
8359 DeclareLyXModule[endnotes.sty]{Endnotes} 
8360 \end_layout
8361
8362 \begin_layout Standard
8363 The mandatory argument, in curly brackets, is the name of the module, as
8364  it should appear in 
8365 \begin_inset Flex Noun
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 Document\SpecialChar menuseparator
8370 Settings\SpecialChar menuseparator
8371 Modules
8372 \end_layout
8373
8374 \end_inset
8375
8376 .
8377  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8378  packages
8379  on which the module depends.
8380  It is also possible to use the form 
8381 \begin_inset Flex Noun
8382 status collapsed
8383
8384 \begin_layout Plain Layout
8385 from->to
8386 \end_layout
8387
8388 \end_inset
8389
8390  as an optional argument, which declares that the module can only be used
8391  when there exists a conversion chain between the formats `
8392 \begin_inset Flex Code
8393 status collapsed
8394
8395 \begin_layout Plain Layout
8396 from
8397 \end_layout
8398
8399 \end_inset
8400
8401 ' and `
8402 \begin_inset Flex Code
8403 status collapsed
8404
8405 \begin_layout Plain Layout
8406 to
8407 \end_layout
8408
8409 \end_inset
8410
8411 '.
8412 \end_layout
8413
8414 \begin_layout Standard
8415 The module declaration should then be followed by lines like the following
8416 \begin_inset Foot
8417 status collapsed
8418
8419 \begin_layout Plain Layout
8420 Preferably in English if the module should be published with \SpecialChar LyX
8421 .
8422  This description will appear in the list of messages to be translated and
8423  will be thus translated with the next interface update.
8424 \end_layout
8425
8426 \end_inset
8427
8428 :
8429 \end_layout
8430
8431 \begin_layout LyX-Code
8432 #DescriptionBegin 
8433 \end_layout
8434
8435 \begin_layout LyX-Code
8436 #Adds an endnote command, in addition to footnotes.
8437  
8438 \end_layout
8439
8440 \begin_layout LyX-Code
8441 #You will need to add  
8442 \backslash
8443 theendnotes in TeX code where you 
8444 \end_layout
8445
8446 \begin_layout LyX-Code
8447 #want the endnotes to appear.
8448  
8449 \end_layout
8450
8451 \begin_layout LyX-Code
8452 #DescriptionEnd 
8453 \end_layout
8454
8455 \begin_layout LyX-Code
8456 #Requires: somemodule | othermodule
8457 \end_layout
8458
8459 \begin_layout LyX-Code
8460 #Excludes: badmodule
8461 \end_layout
8462
8463 \begin_layout Standard
8464 The description is used in 
8465 \begin_inset Flex Noun
8466 status collapsed
8467
8468 \begin_layout Plain Layout
8469 Document\SpecialChar menuseparator
8470 Settings\SpecialChar menuseparator
8471 Modules
8472 \end_layout
8473
8474 \end_inset
8475
8476  to provide the user with information about what the module does.
8477  The 
8478 \begin_inset Flex Code
8479 status collapsed
8480
8481 \begin_layout Plain Layout
8482 Requires
8483 \end_layout
8484
8485 \end_inset
8486
8487  line is used to identify other modules with which this one must be used;
8488  the 
8489 \begin_inset Flex Code
8490 status collapsed
8491
8492 \begin_layout Plain Layout
8493 Excludes
8494 \end_layout
8495
8496 \end_inset
8497
8498  line is used to identify modules with which this one may not be used.
8499  Both are optional, and, as shown, multiple modules should be separated
8500  with the pipe symbol: |.
8501  Note that the required modules are treated disjunctively: 
8502 \emph on
8503 at least one
8504 \emph default
8505  of the required modules must be used.
8506  Similarly, 
8507 \emph on
8508 no
8509 \emph default
8510  excluded module may be used.
8511  Note that modules are identified here by their filenames without the 
8512 \begin_inset Flex Code
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 .module
8517 \end_layout
8518
8519 \end_inset
8520
8521  extension.
8522  So 
8523 \begin_inset Flex Code
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 somemodule
8528 \end_layout
8529
8530 \end_inset
8531
8532  is really 
8533 \begin_inset Flex Code
8534 status collapsed
8535
8536 \begin_layout Plain Layout
8537 somemodule.module
8538 \end_layout
8539
8540 \end_inset
8541
8542 .
8543 \end_layout
8544
8545 \begin_layout Subsection
8546 The CiteEngine file declaration
8547 \end_layout
8548
8549 \begin_layout Standard
8550 A cite engine file must begin with a line like the following:
8551 \end_layout
8552
8553 \begin_layout LyX-Code
8554 #
8555 \backslash
8556 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8557 \end_layout
8558
8559 \begin_layout Standard
8560 The mandatory argument, in curly brackets, is the name of the cite style,
8561  as it should appear in 
8562 \begin_inset Flex Noun
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 Document\SpecialChar menuseparator
8567 Settings\SpecialChar menuseparator
8568 Bibliography
8569 \end_layout
8570
8571 \end_inset
8572
8573 .
8574  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8575  packages
8576  on which the cite engine depends.
8577 \end_layout
8578
8579 \begin_layout Standard
8580 The cite engine declaration should then be followed by lines like the following
8581 \begin_inset Foot
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 Preferably in English if the module should be published with \SpecialChar LyX
8586 .
8587  This description will appear in the list of messages to be translated and
8588  will be thus translated with the next interface update.
8589 \end_layout
8590
8591 \end_inset
8592
8593 :
8594 \end_layout
8595
8596 \begin_layout LyX-Code
8597 # DescriptionBegin
8598 \end_layout
8599
8600 \begin_layout LyX-Code
8601 #   Biblatex supports many author-year and numerical styles.
8602 \end_layout
8603
8604 \begin_layout LyX-Code
8605 #   It is mainly aimed at the Humanities.
8606  It is highly
8607 \end_layout
8608
8609 \begin_layout LyX-Code
8610 #   customizable, fully localized and provides many features
8611 \end_layout
8612
8613 \begin_layout LyX-Code
8614 #   that are not possible with BibTeX.
8615  The use of 'biber' as
8616 \end_layout
8617
8618 \begin_layout LyX-Code
8619 #   bibliography processor is advised.
8620 \end_layout
8621
8622 \begin_layout LyX-Code
8623 # DescriptionEnd
8624 \end_layout
8625
8626 \begin_layout Standard
8627 The description is used in 
8628 \begin_inset Flex Noun
8629 status collapsed
8630
8631 \begin_layout Plain Layout
8632 Document\SpecialChar menuseparator
8633 Settings\SpecialChar menuseparator
8634 Bibliography
8635 \end_layout
8636
8637 \end_inset
8638
8639  to provide the user with information about the cite engine.
8640 \end_layout
8641
8642 \begin_layout Subsection
8643 Format number
8644 \end_layout
8645
8646 \begin_layout Standard
8647 The first non-comment line of any layout file, included file, or module
8648  
8649 \emph on
8650 must
8651 \emph default
8652  contain the file format number:
8653 \end_layout
8654
8655 \begin_layout Description
8656 \begin_inset Flex Code
8657 status collapsed
8658
8659 \begin_layout Plain Layout
8660 Format
8661 \end_layout
8662
8663 \end_inset
8664
8665  [
8666 \begin_inset Flex Code
8667 status collapsed
8668
8669 \begin_layout Plain Layout
8670 int
8671 \end_layout
8672
8673 \end_inset
8674
8675 ] The format number of the layout file.
8676 \end_layout
8677
8678 \begin_layout Standard
8679 This tag was introduced with \SpecialChar LyX
8680
8681 \begin_inset space ~
8682 \end_inset
8683
8684 1.4.0.
8685  Layout files from older \SpecialChar LyX
8686  versions do not have an explicit file format and
8687  are considered to have 
8688 \begin_inset Flex Code
8689 status collapsed
8690
8691 \begin_layout Plain Layout
8692 Format
8693 \begin_inset space ~
8694 \end_inset
8695
8696 1
8697 \end_layout
8698
8699 \end_inset
8700
8701 .
8702  The format for the present version of \SpecialChar LyX
8703  is format 60.
8704  But each version of \SpecialChar LyX
8705  is capable of reading earlier versions' layout files,
8706  just as they are capable of reading files produced by earlier versions
8707  of \SpecialChar LyX
8708 .
8709  There is, however, no provision for converting to earlier formats.
8710 \end_layout
8711
8712 \begin_layout Subsection
8713 \begin_inset CommandInset label
8714 LatexCommand label
8715 name "subsec:General-text-class"
8716
8717 \end_inset
8718
8719 General text class parameters
8720 \end_layout
8721
8722 \begin_layout Standard
8723 These are general parameters that govern the behavior of an entire document
8724  class.
8725  (This does 
8726 \emph on
8727 not
8728 \emph default
8729  mean that they must appear in 
8730 \begin_inset Flex Code
8731 status collapsed
8732
8733 \begin_layout Plain Layout
8734 .layout
8735 \end_layout
8736
8737 \end_inset
8738
8739  files rather than in modules.
8740  A module can contain any layout tag.)
8741 \end_layout
8742
8743 \begin_layout Description
8744 \begin_inset Flex Code
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 AddToHTMLPreamble
8749 \end_layout
8750
8751 \end_inset
8752
8753  Adds information that will be output in the 
8754 \begin_inset Flex Code
8755 status collapsed
8756
8757 \begin_layout Plain Layout
8758 <head>
8759 \end_layout
8760
8761 \end_inset
8762
8763  block when the document is output to XHTML.
8764  Typically, this would be used to output CSS style information, but it can
8765  be used for anything that can appear in 
8766 \begin_inset Flex Code
8767 status collapsed
8768
8769 \begin_layout Plain Layout
8770 <head>
8771 \end_layout
8772
8773 \end_inset
8774
8775 .
8776  Must end with 
8777 \begin_inset Quotes eld
8778 \end_inset
8779
8780
8781 \begin_inset Flex Code
8782 status collapsed
8783
8784 \begin_layout Plain Layout
8785 EndPreamble
8786 \end_layout
8787
8788 \end_inset
8789
8790
8791 \begin_inset Quotes erd
8792 \end_inset
8793
8794 .
8795 \end_layout
8796
8797 \begin_layout Description
8798 \begin_inset Flex Code
8799 status collapsed
8800
8801 \begin_layout Plain Layout
8802 AddToPreamble
8803 \end_layout
8804
8805 \end_inset
8806
8807  Adds information to the document preamble.
8808  Must end with
8809 \begin_inset Newline newline
8810 \end_inset
8811
8812
8813 \begin_inset Quotes eld
8814 \end_inset
8815
8816
8817 \begin_inset Flex Code
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 EndPreamble
8822 \end_layout
8823
8824 \end_inset
8825
8826
8827 \begin_inset Quotes erd
8828 \end_inset
8829
8830 .
8831 \end_layout
8832
8833 \begin_layout Description
8834 \begin_inset Flex Code
8835 status collapsed
8836
8837 \begin_layout Plain Layout
8838 CiteEngine <engine>
8839 \end_layout
8840
8841 \end_inset
8842
8843  Defines the possibilities for displaying citation references.
8844  See 
8845 \begin_inset CommandInset ref
8846 LatexCommand ref
8847 reference "subsec:Citation-engine-description"
8848 plural "false"
8849 caps "false"
8850 noprefix "false"
8851
8852 \end_inset
8853
8854  for details.
8855  Must end with 
8856 \begin_inset Quotes eld
8857 \end_inset
8858
8859
8860 \begin_inset Flex Code
8861 status collapsed
8862
8863 \begin_layout Plain Layout
8864 End
8865 \end_layout
8866
8867 \end_inset
8868
8869
8870 \begin_inset Quotes erd
8871 \end_inset
8872
8873 .
8874  Primarily used in cite engine files (see 
8875 \begin_inset CommandInset ref
8876 LatexCommand ref
8877 reference "subsec:Cite-Engine-Files"
8878 plural "false"
8879 caps "false"
8880 noprefix "false"
8881
8882 \end_inset
8883
8884 ).
8885 \end_layout
8886
8887 \begin_layout Description
8888 \begin_inset Flex Code
8889 status collapsed
8890
8891 \begin_layout Plain Layout
8892 CiteFormat
8893 \end_layout
8894
8895 \end_inset
8896
8897  Defines formats for use in the display of bibliographic information.
8898  See 
8899 \begin_inset CommandInset ref
8900 LatexCommand ref
8901 reference "subsec:Citation-format-description"
8902
8903 \end_inset
8904
8905  for details.
8906  Must end with 
8907 \begin_inset Quotes eld
8908 \end_inset
8909
8910
8911 \begin_inset Flex Code
8912 status collapsed
8913
8914 \begin_layout Plain Layout
8915 End
8916 \end_layout
8917
8918 \end_inset
8919
8920
8921 \begin_inset Quotes erd
8922 \end_inset
8923
8924 .
8925  Primarily used in cite engine files (see 
8926 \begin_inset CommandInset ref
8927 LatexCommand ref
8928 reference "subsec:Cite-Engine-Files"
8929 plural "false"
8930 caps "false"
8931 noprefix "false"
8932
8933 \end_inset
8934
8935 ).
8936 \end_layout
8937
8938 \begin_layout Description
8939 \begin_inset Flex Code
8940 status collapsed
8941
8942 \begin_layout Plain Layout
8943 CiteFramework
8944 \end_layout
8945
8946 \end_inset
8947
8948  [
8949 \begin_inset Flex Code
8950 status collapsed
8951
8952 \begin_layout Plain Layout
8953
8954 \emph on
8955 bibtex
8956 \end_layout
8957
8958 \end_inset
8959
8960 ,
8961 \begin_inset Flex Code
8962 status collapsed
8963
8964 \begin_layout Plain Layout
8965 biblatex
8966 \end_layout
8967
8968 \end_inset
8969
8970 ] Determines whether 
8971 \family sans
8972 Biblatex
8973 \family default
8974  or Bib\SpecialChar TeX
8975  is used to generate a Bibliography.
8976  Primarily used in cite engine files (see 
8977 \begin_inset CommandInset ref
8978 LatexCommand ref
8979 reference "subsec:Cite-Engine-Files"
8980 plural "false"
8981 caps "false"
8982 noprefix "false"
8983
8984 \end_inset
8985
8986 ).
8987 \end_layout
8988
8989 \begin_layout Description
8990 \begin_inset Flex Code
8991 status collapsed
8992
8993 \begin_layout Plain Layout
8994 ClassOptions
8995 \end_layout
8996
8997 \end_inset
8998
8999  Describes various global options supported by the document class.
9000  See 
9001 \begin_inset CommandInset ref
9002 LatexCommand ref
9003 reference "subsec:ClassOptions"
9004
9005 \end_inset
9006
9007  for a description.
9008  Must end with 
9009 \begin_inset Quotes eld
9010 \end_inset
9011
9012
9013 \begin_inset Flex Code
9014 status collapsed
9015
9016 \begin_layout Plain Layout
9017 End
9018 \end_layout
9019
9020 \end_inset
9021
9022
9023 \begin_inset Quotes erd
9024 \end_inset
9025
9026 .
9027 \end_layout
9028
9029 \begin_layout Description
9030 \begin_inset Flex Code
9031 status collapsed
9032
9033 \begin_layout Plain Layout
9034 Columns
9035 \end_layout
9036
9037 \end_inset
9038
9039  [
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044
9045 \emph on
9046 1
9047 \end_layout
9048
9049 \end_inset
9050
9051 ,
9052 \begin_inset space \thinspace{}
9053 \end_inset
9054
9055
9056 \begin_inset Flex Code
9057 status collapsed
9058
9059 \begin_layout Plain Layout
9060 2
9061 \end_layout
9062
9063 \end_inset
9064
9065 ] Whether the class should 
9066 \emph on
9067 default
9068 \emph default
9069  to having one or two columns.
9070  Can be changed in the 
9071 \begin_inset Flex Noun
9072 status collapsed
9073
9074 \begin_layout Plain Layout
9075 Document\SpecialChar menuseparator
9076 Settings
9077 \end_layout
9078
9079 \end_inset
9080
9081  dialog.
9082 \end_layout
9083
9084 \begin_layout Description
9085 \begin_inset Flex Code
9086 status collapsed
9087
9088 \begin_layout Plain Layout
9089 Counter
9090 \end_layout
9091
9092 \end_inset
9093
9094  [
9095 \begin_inset Flex Code
9096 status collapsed
9097
9098 \begin_layout Plain Layout
9099 string
9100 \end_layout
9101
9102 \end_inset
9103
9104 ] This sequence defines the properties for a counter.
9105  If the counter does not yet exist, it is created; if it does exist, it
9106  is modified.
9107  Must end with 
9108 \begin_inset Quotes eld
9109 \end_inset
9110
9111
9112 \begin_inset Flex Code
9113 status collapsed
9114
9115 \begin_layout Plain Layout
9116 End
9117 \end_layout
9118
9119 \end_inset
9120
9121
9122 \begin_inset Quotes erd
9123 \end_inset
9124
9125 .
9126 \begin_inset Newline newline
9127 \end_inset
9128
9129 See 
9130 \begin_inset CommandInset ref
9131 LatexCommand ref
9132 reference "subsec:Counters"
9133
9134 \end_inset
9135
9136  for details on counters.
9137 \end_layout
9138
9139 \begin_layout Description
9140 \begin_inset Flex Code
9141 status collapsed
9142
9143 \begin_layout Plain Layout
9144 DefaultFont
9145 \end_layout
9146
9147 \end_inset
9148
9149  Sets the default font used to display the document.
9150  See 
9151 \begin_inset CommandInset ref
9152 LatexCommand ref
9153 reference "subsec:Font-description"
9154
9155 \end_inset
9156
9157  for how to declare fonts.
9158  Must end with 
9159 \begin_inset Quotes eld
9160 \end_inset
9161
9162
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167 EndFont
9168 \end_layout
9169
9170 \end_inset
9171
9172
9173 \begin_inset Quotes erd
9174 \end_inset
9175
9176 .
9177 \end_layout
9178
9179 \begin_layout Description
9180 \begin_inset Flex Code
9181 status collapsed
9182
9183 \begin_layout Plain Layout
9184 DefaultModule
9185 \end_layout
9186
9187 \end_inset
9188
9189  [
9190 \begin_inset Flex Code
9191 status collapsed
9192
9193 \begin_layout Plain Layout
9194 <module>
9195 \end_layout
9196
9197 \end_inset
9198
9199 ] Specifies a module to be included by default with this document class.
9200  The module is specified as filename without the 
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 .module
9206 \end_layout
9207
9208 \end_inset
9209
9210  extension.
9211  The user can still remove the module, but it will be active at the outset.
9212  (This applies only when new files are created, or when this class is chosen
9213  for an existing document.)
9214 \end_layout
9215
9216 \begin_layout Description
9217 \begin_inset Flex Code
9218 status collapsed
9219
9220 \begin_layout Plain Layout
9221 DefaultStyle
9222 \end_layout
9223
9224 \end_inset
9225
9226  [
9227 \begin_inset Flex Code
9228 status collapsed
9229
9230 \begin_layout Plain Layout
9231 <style>
9232 \end_layout
9233
9234 \end_inset
9235
9236 ] This is the style that will be assigned to new paragraphs, usually 
9237 \begin_inset Flex Noun
9238 status collapsed
9239
9240 \begin_layout Plain Layout
9241 Standard
9242 \end_layout
9243
9244 \end_inset
9245
9246 .
9247  This will default to the first defined style if not given, but you are
9248  encouraged to use this directive.
9249 \end_layout
9250
9251 \begin_layout Description
9252 \begin_inset Flex Code
9253 status collapsed
9254
9255 \begin_layout Plain Layout
9256 ExcludesModule
9257 \end_layout
9258
9259 \end_inset
9260
9261  [
9262 \begin_inset Flex Code
9263 status collapsed
9264
9265 \begin_layout Plain Layout
9266 <module>
9267 \end_layout
9268
9269 \end_inset
9270
9271 ] This tag indicates that the module (which is specified by filename without
9272  the 
9273 \begin_inset Flex Code
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277 .module
9278 \end_layout
9279
9280 \end_inset
9281
9282  extension) cannot be used with this document class.
9283  This might be used in a journal-specific layout file to prevent, say, the
9284  use of the 
9285 \begin_inset Flex Code
9286 status collapsed
9287
9288 \begin_layout Plain Layout
9289 theorems-sec
9290 \end_layout
9291
9292 \end_inset
9293
9294  module that numbers theorems by section.
9295  This tag may 
9296 \emph on
9297 not
9298 \emph default
9299  be used in a module.
9300  Modules have their own way of excluding other modules (see 
9301 \begin_inset CommandInset ref
9302 LatexCommand ref
9303 reference "subsec:Layout-modules"
9304
9305 \end_inset
9306
9307 ).
9308 \end_layout
9309
9310 \begin_layout Description
9311 \begin_inset Flex Code
9312 status collapsed
9313
9314 \begin_layout Plain Layout
9315 Float
9316 \end_layout
9317
9318 \end_inset
9319
9320  Defines a new float.
9321  See 
9322 \begin_inset CommandInset ref
9323 LatexCommand ref
9324 reference "subsec:Floats"
9325
9326 \end_inset
9327
9328  for details.
9329  Must end with 
9330 \begin_inset Quotes eld
9331 \end_inset
9332
9333
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 End
9339 \end_layout
9340
9341 \end_inset
9342
9343
9344 \begin_inset Quotes erd
9345 \end_inset
9346
9347 .
9348 \end_layout
9349
9350 \begin_layout Description
9351 \begin_inset Flex Code
9352 status collapsed
9353
9354 \begin_layout Plain Layout
9355 HTMLPreamble
9356 \end_layout
9357
9358 \end_inset
9359
9360  Sets the information that will be output in the 
9361 \begin_inset Flex Code
9362 status collapsed
9363
9364 \begin_layout Plain Layout
9365 <head>
9366 \end_layout
9367
9368 \end_inset
9369
9370  block when this document class is output to XHTML.
9371  Note that this will completely override any prior 
9372 \begin_inset Flex Code
9373 status collapsed
9374
9375 \begin_layout Plain Layout
9376 HTMLPreamble
9377 \end_layout
9378
9379 \end_inset
9380
9381  or 
9382 \begin_inset Flex Code
9383 status collapsed
9384
9385 \begin_layout Plain Layout
9386 AddToHTMLPreamble
9387 \end_layout
9388
9389 \end_inset
9390
9391  declarations.
9392  (Use
9393 \begin_inset Newline newline
9394 \end_inset
9395
9396
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 AddToHTMLPreamble
9402 \end_layout
9403
9404 \end_inset
9405
9406  if you just want to add material to the preamble.) Must end with 
9407 \begin_inset Quotes eld
9408 \end_inset
9409
9410
9411 \begin_inset Flex Code
9412 status collapsed
9413
9414 \begin_layout Plain Layout
9415 EndPreamble
9416 \end_layout
9417
9418 \end_inset
9419
9420
9421 \begin_inset Quotes erd
9422 \end_inset
9423
9424 .
9425 \end_layout
9426
9427 \begin_layout Description
9428 \begin_inset Flex Code
9429 status collapsed
9430
9431 \begin_layout Plain Layout
9432 HTMLTOCSection
9433 \end_layout
9434
9435 \end_inset
9436
9437  [
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 <style>
9443 \end_layout
9444
9445 \end_inset
9446
9447 ] The style to use for the table of contents, bibliography, and so forth,
9448  when the document is output to HTML.
9449  For articles, this should normally be 
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 Section
9455 \end_layout
9456
9457 \end_inset
9458
9459 ; for books 
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 Chapter
9465 \end_layout
9466
9467 \end_inset
9468
9469 .
9470  If it is not given, then \SpecialChar LyX
9471  will attempt to figure out which layout to use.
9472 \end_layout
9473
9474 \begin_layout Description
9475 \begin_inset Flex Code
9476 status collapsed
9477
9478 \begin_layout Plain Layout
9479 IfCounter
9480 \end_layout
9481
9482 \end_inset
9483
9484  [
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 <counter>
9490 \end_layout
9491
9492 \end_inset
9493
9494 ] Modifies the properties of the given counter.
9495  If the counter does not exist, the statement is ignored.
9496  Must end with 
9497 \begin_inset Quotes eld
9498 \end_inset
9499
9500
9501 \begin_inset Flex Code
9502 status collapsed
9503
9504 \begin_layout Plain Layout
9505 End
9506 \end_layout
9507
9508 \end_inset
9509
9510
9511 \begin_inset Quotes erd
9512 \end_inset
9513
9514 .
9515 \begin_inset Newline newline
9516 \end_inset
9517
9518 See 
9519 \begin_inset CommandInset ref
9520 LatexCommand ref
9521 reference "subsec:Counters"
9522
9523 \end_inset
9524
9525  for details on counters.
9526 \end_layout
9527
9528 \begin_layout Description
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 Input
9534 \end_layout
9535
9536 \end_inset
9537
9538  [
9539 \begin_inset Flex Code
9540 status collapsed
9541
9542 \begin_layout Plain Layout
9543 <filename>
9544 \end_layout
9545
9546 \end_inset
9547
9548 ] This allows you to include another layout definition file within yours
9549  to avoid duplicating commands.
9550  Common examples are the standard layout files, for example, 
9551 \begin_inset Flex Code
9552 status collapsed
9553
9554 \begin_layout Plain Layout
9555 stdclass.inc
9556 \end_layout
9557
9558 \end_inset
9559
9560 , which contains most of the basic layouts.
9561 \end_layout
9562
9563 \begin_layout Description
9564 \begin_inset Flex Code
9565 status collapsed
9566
9567 \begin_layout Plain Layout
9568 InsetLayout
9569 \end_layout
9570
9571 \end_inset
9572
9573  [
9574 \begin_inset Flex Code
9575 status collapsed
9576
9577 \begin_layout Plain Layout
9578 <type>
9579 \end_layout
9580
9581 \end_inset
9582
9583 ] This section (re-)defines the layout of an inset.
9584  It can be applied to an existing inset or to a new, user-defined inset,
9585  e.g., a new character style.
9586  Must end with 
9587 \begin_inset Quotes eld
9588 \end_inset
9589
9590
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 End
9596 \end_layout
9597
9598 \end_inset
9599
9600
9601 \begin_inset Quotes erd
9602 \end_inset
9603
9604 .
9605 \begin_inset Newline newline
9606 \end_inset
9607
9608 See 
9609 \begin_inset CommandInset ref
9610 LatexCommand ref
9611 reference "subsec:Flex-insets-and"
9612
9613 \end_inset
9614
9615  for more information.
9616  
9617 \end_layout
9618
9619 \begin_layout Description
9620 \begin_inset Flex Code
9621 status collapsed
9622
9623 \begin_layout Plain Layout
9624 LeftMargin
9625 \end_layout
9626
9627 \end_inset
9628
9629  [
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 string
9635 \end_layout
9636
9637 \end_inset
9638
9639 ] A string that indicates the width of the left margin on the screen, for
9640  example, 
9641 \begin_inset Quotes eld
9642 \end_inset
9643
9644
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 MMMMM
9650 \end_layout
9651
9652 \end_inset
9653
9654
9655 \begin_inset Quotes erd
9656 \end_inset
9657
9658 .
9659  (Note that this is not a `length', like 
9660 \begin_inset Quotes eld
9661 \end_inset
9662
9663 2ex
9664 \begin_inset Quotes erd
9665 \end_inset
9666
9667 .)
9668 \end_layout
9669
9670 \begin_layout Description
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 MaxCiteNames
9676 \end_layout
9677
9678 \end_inset
9679
9680  [
9681 \begin_inset Flex Code
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 integer
9686 \end_layout
9687
9688 \end_inset
9689
9690 ] An integer that determines the maximal number of names displayed in an
9691  author-year citation before the citation switches to 
9692 \begin_inset Quotes eld
9693 \end_inset
9694
9695 FirstAuthor et al.
9696 \begin_inset Quotes erd
9697 \end_inset
9698
9699 .
9700  Primarily used in cite engine files (see 
9701 \begin_inset CommandInset ref
9702 LatexCommand ref
9703 reference "subsec:Cite-Engine-Files"
9704 plural "false"
9705 caps "false"
9706 noprefix "false"
9707
9708 \end_inset
9709
9710 ).
9711 \end_layout
9712
9713 \begin_layout Description
9714 \begin_inset Flex Code
9715 status collapsed
9716
9717 \begin_layout Plain Layout
9718 ModifyStyle
9719 \end_layout
9720
9721 \end_inset
9722
9723  [
9724 \begin_inset Flex Code
9725 status collapsed
9726
9727 \begin_layout Plain Layout
9728 <style>
9729 \end_layout
9730
9731 \end_inset
9732
9733 ] Modifies the properties of the given paragraph style.
9734  If the style does not exist, this section is ignored.
9735  Must end with 
9736 \begin_inset Quotes eld
9737 \end_inset
9738
9739
9740 \begin_inset Flex Code
9741 status collapsed
9742
9743 \begin_layout Plain Layout
9744 End
9745 \end_layout
9746
9747 \end_inset
9748
9749
9750 \begin_inset Quotes erd
9751 \end_inset
9752
9753 .
9754 \end_layout
9755
9756 \begin_layout Description
9757 \begin_inset Flex Code
9758 status collapsed
9759
9760 \begin_layout Plain Layout
9761 NoCounter
9762 \end_layout
9763
9764 \end_inset
9765
9766  [
9767 \begin_inset Flex Code
9768 status collapsed
9769
9770 \begin_layout Plain Layout
9771 <counter>
9772 \end_layout
9773
9774 \end_inset
9775
9776 ] Deletes an existing counter, usually one defined in an included file.
9777 \end_layout
9778
9779 \begin_layout Description
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 NoFloat
9785 \end_layout
9786
9787 \end_inset
9788
9789  [
9790 \begin_inset Flex Code
9791 status collapsed
9792
9793 \begin_layout Plain Layout
9794 <float>
9795 \end_layout
9796
9797 \end_inset
9798
9799 ] Deletes an existing float.
9800  This is particularly useful when you want to suppress a float that has
9801  been defined in an input file.
9802 \end_layout
9803
9804 \begin_layout Description
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809 NoStyle
9810 \end_layout
9811
9812 \end_inset
9813
9814  [
9815 \begin_inset Flex Code
9816 status collapsed
9817
9818 \begin_layout Plain Layout
9819 <style>
9820 \end_layout
9821
9822 \end_inset
9823
9824 ] Deletes an existing style.
9825 \end_layout
9826
9827 \begin_layout Description
9828 \begin_inset Flex Code
9829 status collapsed
9830
9831 \begin_layout Plain Layout
9832 OutlinerName
9833 \end_layout
9834
9835 \end_inset
9836
9837  [
9838 \begin_inset Flex Code
9839 status collapsed
9840
9841 \begin_layout Plain Layout
9842 <type>
9843 \end_layout
9844
9845 \end_inset
9846
9847 ] [
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 <string>
9853 \end_layout
9854
9855 \end_inset
9856
9857 ] Define a new table of contents with type 
9858 \begin_inset Flex Code
9859 status collapsed
9860
9861 \begin_layout Plain Layout
9862 <type>
9863 \end_layout
9864
9865 \end_inset
9866
9867  and name 
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872 <string>
9873 \end_layout
9874
9875 \end_inset
9876
9877 .
9878  See also the AddToToc commands.
9879 \end_layout
9880
9881 \begin_layout Description
9882 \begin_inset Flex Code
9883 status collapsed
9884
9885 \begin_layout Plain Layout
9886 OutputFormat
9887 \end_layout
9888
9889 \end_inset
9890
9891  [
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 <format>
9897 \end_layout
9898
9899 \end_inset
9900
9901 ] The file format (as defined in the \SpecialChar LyX
9902  preferences) produced by this document
9903  class.
9904  It is mainly useful when 
9905 \begin_inset Flex Code
9906 status collapsed
9907
9908 \begin_layout Plain Layout
9909 OutputType
9910 \end_layout
9911
9912 \end_inset
9913
9914  is 
9915 \begin_inset Flex Code
9916 status collapsed
9917
9918 \begin_layout Plain Layout
9919 literate
9920 \end_layout
9921
9922 \end_inset
9923
9924  and one wants to define a new type of literate document.
9925  The format is reset to 
9926 \begin_inset Quotes eld
9927 \end_inset
9928
9929
9930 \begin_inset Flex Code
9931 status collapsed
9932
9933 \begin_layout Plain Layout
9934 docbook
9935 \end_layout
9936
9937 \end_inset
9938
9939
9940 \begin_inset Quotes erd
9941 \end_inset
9942
9943  or 
9944 \begin_inset Quotes eld
9945 \end_inset
9946
9947
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 latex
9953 \end_layout
9954
9955 \end_inset
9956
9957
9958 \begin_inset Quotes erd
9959 \end_inset
9960
9961  when the corresponding 
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 OutputType
9967 \end_layout
9968
9969 \end_inset
9970
9971  parameter is encountered.
9972 \end_layout
9973
9974 \begin_layout Description
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 OutputType
9980 \end_layout
9981
9982 \end_inset
9983
9984  [
9985 \begin_inset Flex Code
9986 status collapsed
9987
9988 \begin_layout Plain Layout
9989
9990 \emph on
9991 lat
9992 \emph default
9993 ex
9994 \end_layout
9995
9996 \end_inset
9997
9998
9999 \begin_inset Flex Code
10000 status collapsed
10001
10002 \begin_layout Plain Layout
10003 docbook
10004 \end_layout
10005
10006 \end_inset
10007
10008
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013 literate
10014 \end_layout
10015
10016 \end_inset
10017
10018 ] Specifies what sort of output documents using this class will produce.
10019 \end_layout
10020
10021 \begin_layout Description
10022 \begin_inset Flex Code
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026 PackageOptions
10027 \end_layout
10028
10029 \end_inset
10030
10031  [
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036 string
10037 \end_layout
10038
10039 \end_inset
10040
10041  
10042 \begin_inset Flex Code
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 string
10047 \end_layout
10048
10049 \end_inset
10050
10051 ] Specifies options, given in the second string, for the package named by
10052  the first string.
10053  For example, 
10054 \begin_inset Quotes eld
10055 \end_inset
10056
10057
10058 \begin_inset Flex Code
10059 status collapsed
10060
10061 \begin_layout Plain Layout
10062 PackageOptions natbib square
10063 \end_layout
10064
10065 \end_inset
10066
10067
10068 \begin_inset Quotes erd
10069 \end_inset
10070
10071  will cause 
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 natbib
10077 \end_layout
10078
10079 \end_inset
10080
10081  to be loaded with the 
10082 \begin_inset Flex Code
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086 square
10087 \end_layout
10088
10089 \end_inset
10090
10091  option.
10092  (For \SpecialChar TeX
10093 perts, this causes \SpecialChar LyX
10094  to output: 
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099
10100 \backslash
10101 PassOptionsToPackage{natbib}{square}
10102 \end_layout
10103
10104 \end_inset
10105
10106  prior to loading 
10107 \begin_inset Flex Code
10108 status collapsed
10109
10110 \begin_layout Plain Layout
10111 natbib
10112 \end_layout
10113
10114 \end_inset
10115
10116 .)
10117 \end_layout
10118
10119 \begin_layout Description
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 PageStyle
10125 \end_layout
10126
10127 \end_inset
10128
10129  [
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134
10135 \emph on
10136 plain
10137 \end_layout
10138
10139 \end_inset
10140
10141
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 empty
10147 \end_layout
10148
10149 \end_inset
10150
10151
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 headings
10157 \end_layout
10158
10159 \end_inset
10160
10161 ] The default pagestyle.
10162  Can be changed in the 
10163 \begin_inset Flex Noun
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 Document\SpecialChar menuseparator
10168 Settings
10169 \end_layout
10170
10171 \end_inset
10172
10173  dialog.
10174 \end_layout
10175
10176 \begin_layout Description
10177 \begin_inset Flex Code
10178 status collapsed
10179
10180 \begin_layout Plain Layout
10181 Preamble
10182 \end_layout
10183
10184 \end_inset
10185
10186  Sets the preamble for the \SpecialChar LaTeX
10187  document.
10188  Note that this will completely override any prior 
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 Preamble
10194 \end_layout
10195
10196 \end_inset
10197
10198  or 
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 AddToPreamble
10204 \end_layout
10205
10206 \end_inset
10207
10208  declarations.
10209  (Use 
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 AddToPreamble
10215 \end_layout
10216
10217 \end_inset
10218
10219  if you just want to add material to the preamble.) Must end with 
10220 \begin_inset Quotes eld
10221 \end_inset
10222
10223
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228 EndPreamble
10229 \end_layout
10230
10231 \end_inset
10232
10233
10234 \begin_inset Quotes erd
10235 \end_inset
10236
10237 .
10238 \end_layout
10239
10240 \begin_layout Description
10241 \begin_inset Flex Code
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245 Provides
10246 \end_layout
10247
10248 \end_inset
10249
10250  [
10251 \begin_inset Flex Code
10252 status collapsed
10253
10254 \begin_layout Plain Layout
10255 string
10256 \end_layout
10257
10258 \end_inset
10259
10260 ] [
10261 \begin_inset Flex Code
10262 status collapsed
10263
10264 \begin_layout Plain Layout
10265
10266 \emph on
10267 0
10268 \end_layout
10269
10270 \end_inset
10271
10272 ,
10273 \begin_inset space \thinspace{}
10274 \end_inset
10275
10276
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 1
10282 \end_layout
10283
10284 \end_inset
10285
10286 ] Whether the class already provides the feature 
10287 \begin_inset Flex Code
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 string
10292 \end_layout
10293
10294 \end_inset
10295
10296 .
10297  A feature is in general the name of a package (e.
10298 \begin_inset space \thinspace{}
10299 \end_inset
10300
10301 g.
10302 \begin_inset space \space{}
10303 \end_inset
10304
10305
10306 \begin_inset Flex Code
10307 status collapsed
10308
10309 \begin_layout Plain Layout
10310 amsmath
10311 \end_layout
10312
10313 \end_inset
10314
10315  or 
10316 \begin_inset Flex Code
10317 status collapsed
10318
10319 \begin_layout Plain Layout
10320 makeidx
10321 \end_layout
10322
10323 \end_inset
10324
10325 ) or a macro (e.
10326 \begin_inset space \thinspace{}
10327 \end_inset
10328
10329 g.
10330 \begin_inset space \space{}
10331 \end_inset
10332
10333
10334 \begin_inset Flex Code
10335 status collapsed
10336
10337 \begin_layout Plain Layout
10338 url
10339 \end_layout
10340
10341 \end_inset
10342
10343  or 
10344 \begin_inset Flex Code
10345 status collapsed
10346
10347 \begin_layout Plain Layout
10348 boldsymbol
10349 \end_layout
10350
10351 \end_inset
10352
10353 ).
10354  See 
10355 \begin_inset CommandInset ref
10356 LatexCommand ref
10357 reference "chap:List-of-functions"
10358
10359 \end_inset
10360
10361  for the list of features.
10362 \end_layout
10363
10364 \begin_layout Description
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 ProvidesModule
10370 \end_layout
10371
10372 \end_inset
10373
10374  [
10375 \begin_inset Flex Code
10376 status collapsed
10377
10378 \begin_layout Plain Layout
10379 string
10380 \end_layout
10381
10382 \end_inset
10383
10384 ] Indicates that this layout provides the functionality of the module mentioned,
10385  which should be specified by the filename without the 
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390 .module
10391 \end_layout
10392
10393 \end_inset
10394
10395  extension.
10396  This will typically be used if the layout includes the module directly,
10397  rather than using the 
10398 \begin_inset Flex Code
10399 status collapsed
10400
10401 \begin_layout Plain Layout
10402 DefaultModule
10403 \end_layout
10404
10405 \end_inset
10406
10407  tag to indicate that it ought to be used.
10408  It could also be used in a module that provided an alternate implementation
10409  of the same functionality.
10410 \end_layout
10411
10412 \begin_layout Description
10413 \begin_inset Flex Code
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417 ProvideStyle
10418 \end_layout
10419
10420 \end_inset
10421
10422  [
10423 \begin_inset Flex Code
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427 <style>
10428 \end_layout
10429
10430 \end_inset
10431
10432 ] Creates a new paragraph style if it does not already exist.
10433  If the style does exist, this section is ignored.
10434  Must end with 
10435 \begin_inset Quotes eld
10436 \end_inset
10437
10438
10439 \begin_inset Flex Code
10440 status collapsed
10441
10442 \begin_layout Plain Layout
10443 End
10444 \end_layout
10445
10446 \end_inset
10447
10448
10449 \begin_inset Quotes erd
10450 \end_inset
10451
10452 .
10453 \end_layout
10454
10455 \begin_layout Description
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 Requires
10461 \end_layout
10462
10463 \end_inset
10464
10465  [
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 string
10471 \end_layout
10472
10473 \end_inset
10474
10475 ] Whether the class requires the feature 
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480 string
10481 \end_layout
10482
10483 \end_inset
10484
10485 .
10486  Multiple features must be separated by commas.
10487  Note that you can only request supported features.
10488  (See 
10489 \begin_inset CommandInset ref
10490 LatexCommand ref
10491 reference "chap:List-of-functions"
10492
10493 \end_inset
10494
10495  for the list of features.).
10496  If you require a package with specific options, you can additionally use
10497  
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 PackageOptions
10503 \end_layout
10504
10505 \end_inset
10506
10507 .
10508 \end_layout
10509
10510 \begin_layout Description
10511 \begin_inset Flex Code
10512 status collapsed
10513
10514 \begin_layout Plain Layout
10515 RightMargin
10516 \end_layout
10517
10518 \end_inset
10519
10520  [
10521 \begin_inset Flex Code
10522 status collapsed
10523
10524 \begin_layout Plain Layout
10525 string
10526 \end_layout
10527
10528 \end_inset
10529
10530 ] A string that indicates the width of the right margin on the screen, for
10531  example, 
10532 \begin_inset Quotes eld
10533 \end_inset
10534
10535
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 MMMMM
10541 \end_layout
10542
10543 \end_inset
10544
10545
10546 \begin_inset Quotes erd
10547 \end_inset
10548
10549 .
10550 \end_layout
10551
10552 \begin_layout Description
10553 \begin_inset Flex Code
10554 status collapsed
10555
10556 \begin_layout Plain Layout
10557 SecNumDepth
10558 \end_layout
10559
10560 \end_inset
10561
10562  [
10563 \begin_inset Flex Code
10564 status collapsed
10565
10566 \begin_layout Plain Layout
10567 int=3
10568 \end_layout
10569
10570 \end_inset
10571
10572 ] Sets which divisions get numbered.
10573  Corresponds to the
10574 \begin_inset Newline newline
10575 \end_inset
10576
10577
10578 \begin_inset Flex Code
10579 status collapsed
10580
10581 \begin_layout Plain Layout
10582 secnumdepth
10583 \end_layout
10584
10585 \end_inset
10586
10587  counter in \SpecialChar LaTeX
10588 .
10589 \end_layout
10590
10591 \begin_layout Description
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 Sides
10597 \end_layout
10598
10599 \end_inset
10600
10601  [
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606
10607 \emph on
10608 1
10609 \end_layout
10610
10611 \end_inset
10612
10613 ,
10614 \begin_inset space \thinspace{}
10615 \end_inset
10616
10617
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 2
10623 \end_layout
10624
10625 \end_inset
10626
10627 ] Whether the class-default should be printing on one or both sides of the
10628  paper.
10629  Can be changed in the 
10630 \begin_inset Flex Noun
10631 status collapsed
10632
10633 \begin_layout Plain Layout
10634 Document\SpecialChar menuseparator
10635 Settings
10636 \end_layout
10637
10638 \end_inset
10639
10640  dialog.
10641 \end_layout
10642
10643 \begin_layout Description
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 Style
10649 \end_layout
10650
10651 \end_inset
10652
10653  [
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658 <name>
10659 \end_layout
10660
10661 \end_inset
10662
10663 ] This sequence defines a paragraph style.
10664  If the style does not yet exist, it is created; if it does exist, its parameter
10665 s are modified.
10666  Must end with 
10667 \begin_inset Quotes eld
10668 \end_inset
10669
10670
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 End
10676 \end_layout
10677
10678 \end_inset
10679
10680
10681 \begin_inset Quotes erd
10682 \end_inset
10683
10684 .
10685 \begin_inset Newline newline
10686 \end_inset
10687
10688 See 
10689 \begin_inset CommandInset ref
10690 LatexCommand ref
10691 reference "subsec:Paragraph-Styles"
10692
10693 \end_inset
10694
10695  for details on paragraph styles.
10696 \end_layout
10697
10698 \begin_layout Description
10699 \begin_inset Flex Code
10700 status collapsed
10701
10702 \begin_layout Plain Layout
10703 TitleLatexName
10704 \end_layout
10705
10706 \end_inset
10707
10708  [
10709 \begin_inset Flex Code
10710 status collapsed
10711
10712 \begin_layout Plain Layout
10713 string="maketitle"
10714 \end_layout
10715
10716 \end_inset
10717
10718 ] The name of the command or environment to be used with 
10719 \begin_inset Flex Code
10720 status collapsed
10721
10722 \begin_layout Plain Layout
10723 TitleLatexType
10724 \end_layout
10725
10726 \end_inset
10727
10728 .
10729 \end_layout
10730
10731 \begin_layout Description
10732 \begin_inset Flex Code
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736 TitleLatexType
10737 \end_layout
10738
10739 \end_inset
10740
10741  [
10742 \begin_inset Flex Code
10743 status collapsed
10744
10745 \begin_layout Plain Layout
10746
10747 \emph on
10748 CommandAfter
10749 \end_layout
10750
10751 \end_inset
10752
10753
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 Environment
10759 \end_layout
10760
10761 \end_inset
10762
10763 ] Indicates what kind of markup is used to define the title of a document.
10764  
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 CommandAfter
10770 \end_layout
10771
10772 \end_inset
10773
10774  means that the macro with name 
10775 \begin_inset Flex Code
10776 status collapsed
10777
10778 \begin_layout Plain Layout
10779 TitleLatexName
10780 \end_layout
10781
10782 \end_inset
10783
10784  will be inserted after the last layout which has 
10785 \begin_inset Quotes eld
10786 \end_inset
10787
10788
10789 \begin_inset Flex Code
10790 status collapsed
10791
10792 \begin_layout Plain Layout
10793 InTitle
10794 \begin_inset space ~
10795 \end_inset
10796
10797 1
10798 \end_layout
10799
10800 \end_inset
10801
10802
10803 \begin_inset Quotes erd
10804 \end_inset
10805
10806 .
10807  
10808 \begin_inset Flex Code
10809 status collapsed
10810
10811 \begin_layout Plain Layout
10812 Environment
10813 \end_layout
10814
10815 \end_inset
10816
10817  corresponds to the case where all layouts which have 
10818 \begin_inset Quotes eld
10819 \end_inset
10820
10821
10822 \begin_inset Flex Code
10823 status collapsed
10824
10825 \begin_layout Plain Layout
10826 InTitle
10827 \begin_inset space ~
10828 \end_inset
10829
10830 1
10831 \end_layout
10832
10833 \end_inset
10834
10835
10836 \begin_inset Quotes erd
10837 \end_inset
10838
10839  should be enclosed into the 
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 TitleLatexName
10845 \end_layout
10846
10847 \end_inset
10848
10849  environment.
10850 \end_layout
10851
10852 \begin_layout Description
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 TocDepth
10858 \end_layout
10859
10860 \end_inset
10861
10862  [
10863 \begin_inset Flex Code
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867 int=3
10868 \end_layout
10869
10870 \end_inset
10871
10872 ] Sets which divisions are included in the table of contents.
10873  Corresponds to the 
10874 \begin_inset Flex Code
10875 status collapsed
10876
10877 \begin_layout Plain Layout
10878 tocdepth
10879 \end_layout
10880
10881 \end_inset
10882
10883  counter in \SpecialChar LaTeX
10884 .
10885 \end_layout
10886
10887 \begin_layout Subsection
10888 \begin_inset Flex Code
10889 status collapsed
10890
10891 \begin_layout Plain Layout
10892 ClassOptions
10893 \end_layout
10894
10895 \end_inset
10896
10897  section
10898 \begin_inset CommandInset label
10899 LatexCommand label
10900 name "subsec:ClassOptions"
10901
10902 \end_inset
10903
10904
10905 \end_layout
10906
10907 \begin_layout Standard
10908 The 
10909 \begin_inset Flex Code
10910 status collapsed
10911
10912 \begin_layout Plain Layout
10913 ClassOptions
10914 \end_layout
10915
10916 \end_inset
10917
10918  section can contain the following entries:
10919 \end_layout
10920
10921 \begin_layout Description
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 FontSize
10927 \end_layout
10928
10929 \end_inset
10930
10931  [
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 string="10|11|12"
10937 \end_layout
10938
10939 \end_inset
10940
10941 ] The list of available font sizes for the document's main font, separated
10942  by 
10943 \begin_inset Quotes eld
10944 \end_inset
10945
10946
10947 \begin_inset Flex Code
10948 status collapsed
10949
10950 \begin_layout Plain Layout
10951 |
10952 \end_layout
10953
10954 \end_inset
10955
10956
10957 \begin_inset Quotes erd
10958 \end_inset
10959
10960 .
10961 \end_layout
10962
10963 \begin_layout Description
10964 \begin_inset Flex Code
10965 status collapsed
10966
10967 \begin_layout Plain Layout
10968 Header
10969 \end_layout
10970
10971 \end_inset
10972
10973  Used to set the DTD line with XML-based output classes.
10974  E.
10975 \begin_inset space \thinspace{}
10976 \end_inset
10977
10978 g.: PUBLIC 
10979 \begin_inset Quotes eld
10980 \end_inset
10981
10982 -//OASIS//DTD DocBook V4.2//EN
10983 \begin_inset Quotes erd
10984 \end_inset
10985
10986 .
10987 \end_layout
10988
10989 \begin_layout Description
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 PageStyle
10995 \end_layout
10996
10997 \end_inset
10998
10999  [
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004 string="empty|plain|headings|fancy"
11005 \end_layout
11006
11007 \end_inset
11008
11009 ] The list of available page sty\SpecialChar softhyphen
11010 les, separated by 
11011 \begin_inset Quotes eld
11012 \end_inset
11013
11014
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 |
11020 \end_layout
11021
11022 \end_inset
11023
11024
11025 \begin_inset Quotes erd
11026 \end_inset
11027
11028 .
11029 \end_layout
11030
11031 \begin_layout Description
11032 \begin_inset Flex Code
11033 status collapsed
11034
11035 \begin_layout Plain Layout
11036 Other
11037 \end_layout
11038
11039 \end_inset
11040
11041  [
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046 string=""
11047 \end_layout
11048
11049 \end_inset
11050
11051 ] Some document class options, separated by a comma, that will be added
11052  to the optional part of the 
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057
11058 \backslash
11059 documentclass
11060 \end_layout
11061
11062 \end_inset
11063
11064  command.
11065 \end_layout
11066
11067 \begin_layout Standard
11068 The 
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073 ClassOptions
11074 \end_layout
11075
11076 \end_inset
11077
11078  section must end with 
11079 \begin_inset Quotes eld
11080 \end_inset
11081
11082
11083 \begin_inset Flex Code
11084 status collapsed
11085
11086 \begin_layout Plain Layout
11087 End
11088 \end_layout
11089
11090 \end_inset
11091
11092
11093 \begin_inset Quotes erd
11094 \end_inset
11095
11096 .
11097 \end_layout
11098
11099 \begin_layout Subsection
11100 Paragraph styles
11101 \begin_inset CommandInset label
11102 LatexCommand label
11103 name "subsec:Paragraph-Styles"
11104
11105 \end_inset
11106
11107
11108 \end_layout
11109
11110 \begin_layout Standard
11111 A paragraph style description looks like this:
11112 \begin_inset Foot
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116 Note that this will either define a new style or modify an existing one.
11117 \end_layout
11118
11119 \end_inset
11120
11121
11122 \end_layout
11123
11124 \begin_layout LyX-Code
11125 Style 
11126 \family roman
11127 \emph on
11128 name
11129 \end_layout
11130
11131 \begin_layout LyX-Code
11132  ...
11133 \end_layout
11134
11135 \begin_layout LyX-Code
11136 End
11137 \end_layout
11138
11139 \begin_layout Standard
11140 where the following commands are allowed:
11141 \end_layout
11142
11143 \begin_layout Description
11144 \begin_inset Flex Code
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148 AddToToc
11149 \end_layout
11150
11151 \end_inset
11152
11153  [
11154 \begin_inset Flex Code
11155 status collapsed
11156
11157 \begin_layout Plain Layout
11158 string
11159 \end_layout
11160
11161 \end_inset
11162
11163 =""] This paragraph will appear in the table of contents of the given type.
11164  An empty string disables.
11165  See also the OutlinerName and the IsTocCaption commands.
11166  Default: disabled.
11167 \end_layout
11168
11169 \begin_layout Description
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 Align
11175 \end_layout
11176
11177 \end_inset
11178
11179  [
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184
11185 \emph on
11186 block
11187 \emph default
11188 , left, right, center
11189 \end_layout
11190
11191 \end_inset
11192
11193 ] Paragraph alignment.
11194 \end_layout
11195
11196 \begin_layout Description
11197 \begin_inset Flex Code
11198 status collapsed
11199
11200 \begin_layout Plain Layout
11201 AlignPossible
11202 \end_layout
11203
11204 \end_inset
11205
11206  [
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211
11212 \emph on
11213 block
11214 \emph default
11215 , left, right, center
11216 \end_layout
11217
11218 \end_inset
11219
11220 ] A comma separated list of permitted alignments.
11221  (Some \SpecialChar LaTeX
11222  styles prohibit certain alignments, since those wouldn't make sense.
11223  For example a right-aligned or centered enumeration isn't possible.)
11224 \end_layout
11225
11226 \begin_layout Description
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231 Argument
11232 \end_layout
11233
11234 \end_inset
11235
11236  [
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241 int
11242 \end_layout
11243
11244 \end_inset
11245
11246 ] Defines argument number <int> of a command\SpecialChar breakableslash
11247 environment associated with
11248  the current style.
11249  This is useful for things like section headings, and only makes sense with
11250  \SpecialChar LaTeX
11251 .
11252  Every (optional or required) argument of a command or environment – except
11253  for the required argument that is associated with the content of the paragraph
11254  itself – has a separate definition, where the number specifies the order
11255  of the arguments.
11256  The definition must end with 
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 EndArgument
11262 \end_layout
11263
11264 \end_inset
11265
11266 .
11267  So a command with two optional arguments has:
11268 \end_layout
11269
11270 \begin_deeper
11271 \begin_layout Quote
11272
11273 \family typewriter
11274 Argument 1
11275 \end_layout
11276
11277 \begin_layout Quote
11278
11279 \family typewriter
11280 ...
11281 \end_layout
11282
11283 \begin_layout Quote
11284
11285 \family typewriter
11286 EndArgument
11287 \end_layout
11288
11289 \begin_layout Quote
11290
11291 \family typewriter
11292 Argument 2
11293 \end_layout
11294
11295 \begin_layout Quote
11296
11297 \family typewriter
11298 ...
11299 \end_layout
11300
11301 \begin_layout Quote
11302
11303 \family typewriter
11304 EndArgument
11305 \end_layout
11306
11307 \begin_layout Standard
11308 Inside the 
11309 \begin_inset Flex Code
11310 status collapsed
11311
11312 \begin_layout Plain Layout
11313 Argument
11314 \end_layout
11315
11316 \end_inset
11317
11318  definition, the following specifications are possible:
11319 \end_layout
11320
11321 \begin_layout Itemize
11322 \begin_inset Flex Code
11323 status collapsed
11324
11325 \begin_layout Plain Layout
11326 LabelString
11327 \end_layout
11328
11329 \end_inset
11330
11331  
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336 [string]
11337 \end_layout
11338
11339 \end_inset
11340
11341  The string that will appear both in the menu (to insert this argument)
11342  and on the argument inset button (unless you also specify a separate 
11343 \begin_inset Flex Code
11344 status collapsed
11345
11346 \begin_layout Plain Layout
11347 MenuString
11348 \end_layout
11349
11350 \end_inset
11351
11352 ).
11353  For the menu, you can define an accelerator by appending the respective
11354  character to the string, divided by 
11355 \begin_inset Quotes eld
11356 \end_inset
11357
11358 |
11359 \begin_inset Quotes erd
11360 \end_inset
11361
11362  (e.
11363 \begin_inset space \thinspace{}
11364 \end_inset
11365
11366 g.
11367 \begin_inset space \space{}
11368 \end_inset
11369
11370
11371 \begin_inset Quotes eld
11372 \end_inset
11373
11374
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379 Short Title|S
11380 \end_layout
11381
11382 \end_inset
11383
11384
11385 \begin_inset Quotes erd
11386 \end_inset
11387
11388 ).
11389 \end_layout
11390
11391 \begin_layout Itemize
11392 \begin_inset Flex Code
11393 status collapsed
11394
11395 \begin_layout Plain Layout
11396 MenuString
11397 \end_layout
11398
11399 \end_inset
11400
11401  
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 [string]
11407 \end_layout
11408
11409 \end_inset
11410
11411  A separate string for the menu.
11412  You can define an accelerator by appending the respective character to
11413  the string, divided by 
11414 \begin_inset Quotes eld
11415 \end_inset
11416
11417 |
11418 \begin_inset Quotes erd
11419 \end_inset
11420
11421  (e.
11422 \begin_inset space \thinspace{}
11423 \end_inset
11424
11425 g.
11426 \begin_inset space \space{}
11427 \end_inset
11428
11429
11430 \begin_inset Quotes eld
11431 \end_inset
11432
11433
11434 \begin_inset Flex Code
11435 status collapsed
11436
11437 \begin_layout Plain Layout
11438 Short Title|S
11439 \end_layout
11440
11441 \end_inset
11442
11443
11444 \begin_inset Quotes erd
11445 \end_inset
11446
11447 ).
11448  This specification is optional.
11449  If it is not given the 
11450 \begin_inset Flex Code
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 LabelString
11455 \end_layout
11456
11457 \end_inset
11458
11459  will be used instead for the menu.
11460 \end_layout
11461
11462 \begin_layout Itemize
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 Tooltip
11468 \end_layout
11469
11470 \end_inset
11471
11472  
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477 [string]
11478 \end_layout
11479
11480 \end_inset
11481
11482  A longer explanatory text that appears in the tooltip when hovering over
11483  the argument inset.
11484 \end_layout
11485
11486 \begin_layout Itemize
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491 Mandatory
11492 \end_layout
11493
11494 \end_inset
11495
11496  [
11497 \begin_inset Flex Code
11498 status collapsed
11499
11500 \begin_layout Plain Layout
11501
11502 \emph on
11503 0
11504 \end_layout
11505
11506 \end_inset
11507
11508 ,
11509 \begin_inset space \thinspace{}
11510 \end_inset
11511
11512
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 1
11518 \end_layout
11519
11520 \end_inset
11521
11522 ] Declare if this is a mandatory (1) or an optional (0) argument.
11523  Mandatory arguments will be output empty if not given, while optional arguments
11524  will not be output at all.
11525  By default, mandatory arguments are delimited by 
11526 \begin_inset Flex Code
11527 status collapsed
11528
11529 \begin_layout Plain Layout
11530 {...}
11531 \end_layout
11532
11533 \end_inset
11534
11535 , while optional arguments are delimited by 
11536 \begin_inset Flex Code
11537 status collapsed
11538
11539 \begin_layout Plain Layout
11540 [...]
11541 \end_layout
11542
11543 \end_inset
11544
11545
11546 \end_layout
11547
11548 \begin_layout Itemize
11549 \begin_inset Flex Code
11550 status collapsed
11551
11552 \begin_layout Plain Layout
11553 Requires
11554 \end_layout
11555
11556 \end_inset
11557
11558  
11559 \begin_inset Flex Code
11560 status collapsed
11561
11562 \begin_layout Plain Layout
11563 [int=0]
11564 \end_layout
11565
11566 \end_inset
11567
11568  defines another argument (by its number) which this argument requires to
11569  be output if it is itself output.
11570  E.
11571 \begin_inset space \thinspace{}
11572 \end_inset
11573
11574 g., in \SpecialChar LaTeX
11575  commands, optional arguments often require previous optional arguments
11576  to be output (at least empty), as in 
11577 \begin_inset Flex Code
11578 status collapsed
11579
11580 \begin_layout Plain Layout
11581
11582 \backslash
11583 command[][argument]{text}
11584 \end_layout
11585
11586 \end_inset
11587
11588 .
11589  This can be achieved by the statement 
11590 \begin_inset Flex Code
11591 status collapsed
11592
11593 \begin_layout Plain Layout
11594 Requires 1
11595 \end_layout
11596
11597 \end_inset
11598
11599  within 
11600 \begin_inset Flex Code
11601 status collapsed
11602
11603 \begin_layout Plain Layout
11604 Argument 2
11605 \end_layout
11606
11607 \end_inset
11608
11609 .
11610 \end_layout
11611
11612 \begin_layout Itemize
11613 \begin_inset Flex Code
11614 status collapsed
11615
11616 \begin_layout Plain Layout
11617 LeftDelim
11618 \end_layout
11619
11620 \end_inset
11621
11622  
11623 \begin_inset Flex Code
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 [string]
11628 \end_layout
11629
11630 \end_inset
11631
11632  defines a custom left delimiter (instead of 
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 {
11638 \end_layout
11639
11640 \end_inset
11641
11642  or 
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647 [
11648 \end_layout
11649
11650 \end_inset
11651
11652 ).
11653  A line break in the output can be indicated by 
11654 \begin_inset Flex Code
11655 status collapsed
11656
11657 \begin_layout Plain Layout
11658 <br/>
11659 \end_layout
11660
11661 \end_inset
11662
11663 .
11664 \end_layout
11665
11666 \begin_layout Itemize
11667 \begin_inset Flex Code
11668 status collapsed
11669
11670 \begin_layout Plain Layout
11671 RightDelim
11672 \end_layout
11673
11674 \end_inset
11675
11676  
11677 \begin_inset Flex Code
11678 status collapsed
11679
11680 \begin_layout Plain Layout
11681 [string]
11682 \end_layout
11683
11684 \end_inset
11685
11686  defines a custom right delimiter (instead of 
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 }
11692 \end_layout
11693
11694 \end_inset
11695
11696  or 
11697 \begin_inset Flex Code
11698 status collapsed
11699
11700 \begin_layout Plain Layout
11701 ]
11702 \end_layout
11703
11704 \end_inset
11705
11706 ).
11707  A line break in the output can be indicated by 
11708 \begin_inset Flex Code
11709 status collapsed
11710
11711 \begin_layout Plain Layout
11712 <br/>
11713 \end_layout
11714
11715 \end_inset
11716
11717 .
11718 \end_layout
11719
11720 \begin_layout Itemize
11721 \begin_inset Flex Code
11722 status collapsed
11723
11724 \begin_layout Plain Layout
11725 DefaultArg
11726 \end_layout
11727
11728 \end_inset
11729
11730  
11731 \begin_inset Flex Code
11732 status collapsed
11733
11734 \begin_layout Plain Layout
11735 [string]
11736 \end_layout
11737
11738 \end_inset
11739
11740  defines an argument that is inserted if and only if no user-specified arguments
11741  were given, i.
11742 \begin_inset space \thinspace{}
11743 \end_inset
11744
11745 e.
11746 \begin_inset space \space{}
11747 \end_inset
11748
11749 if no argument inset has been inserted (note that also an empty argument
11750  inset omits the DefaultArg).
11751  Multiple arguments need to be separated by comma.
11752 \end_layout
11753
11754 \begin_layout Itemize
11755 \begin_inset Flex Code
11756 status collapsed
11757
11758 \begin_layout Plain Layout
11759 PresetArg
11760 \end_layout
11761
11762 \end_inset
11763
11764  
11765 \begin_inset Flex Code
11766 status collapsed
11767
11768 \begin_layout Plain Layout
11769 [string]
11770 \end_layout
11771
11772 \end_inset
11773
11774  defines an argument that is inserted in any case (alone or in addition
11775  to user-specified arguments).
11776  Multiple arguments need to be separated by comma.
11777 \end_layout
11778
11779 \begin_layout Itemize
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 Font
11785 \end_layout
11786
11787 \end_inset
11788
11789  The font used for the argument content, see 
11790 \begin_inset CommandInset ref
11791 LatexCommand ref
11792 reference "subsec:Font-description"
11793
11794 \end_inset
11795
11796 .
11797 \end_layout
11798
11799 \begin_layout Itemize
11800 \begin_inset Flex Code
11801 status collapsed
11802
11803 \begin_layout Plain Layout
11804 LabelFont
11805 \end_layout
11806
11807 \end_inset
11808
11809  The font used for the label; see 
11810 \begin_inset CommandInset ref
11811 LatexCommand ref
11812 reference "subsec:Font-description"
11813
11814 \end_inset
11815
11816 .
11817 \end_layout
11818
11819 \begin_layout Itemize
11820 \begin_inset Flex Code
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 Decoration
11825 \end_layout
11826
11827 \end_inset
11828
11829  [
11830 \begin_inset Flex Code
11831 status collapsed
11832
11833 \begin_layout Plain Layout
11834
11835 \emph on
11836 Classic
11837 \emph default
11838 , Minimalistic, Conglomerate
11839 \end_layout
11840
11841 \end_inset
11842
11843 ] describes the rendering style used for the inset's frame and buttons.
11844 \end_layout
11845
11846 \begin_layout Itemize
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 AutoInsert
11852 \end_layout
11853
11854 \end_inset
11855
11856  
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861 [int=0]
11862 \end_layout
11863
11864 \end_inset
11865
11866  If this is set to 
11867 \begin_inset Flex Code
11868 status collapsed
11869
11870 \begin_layout Plain Layout
11871 1
11872 \end_layout
11873
11874 \end_inset
11875
11876 , this argument is automatically inserted when the respective style is selected.
11877  Currently, only one argument per style\SpecialChar breakableslash
11878 layout can be automatically inserted.
11879 \end_layout
11880
11881 \begin_layout Itemize
11882 \begin_inset Flex Code
11883 status collapsed
11884
11885 \begin_layout Plain Layout
11886 InsertCotext
11887 \end_layout
11888
11889 \end_inset
11890
11891  
11892 \begin_inset Flex Code
11893 status collapsed
11894
11895 \begin_layout Plain Layout
11896 [int=0]
11897 \end_layout
11898
11899 \end_inset
11900
11901  If this is set to 
11902 \begin_inset Flex Code
11903 status collapsed
11904
11905 \begin_layout Plain Layout
11906 1
11907 \end_layout
11908
11909 \end_inset
11910
11911 , this argument will be inserted with a copy of the co-text (either selected
11912  text or the whole paragraph) as content.
11913 \end_layout
11914
11915 \begin_layout Itemize
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 PassThru
11921 \end_layout
11922
11923 \end_inset
11924
11925  [
11926 \begin_inset Flex Code
11927 status collapsed
11928
11929 \begin_layout Plain Layout
11930
11931 \emph on
11932 inherited
11933 \emph default
11934 , true, false
11935 \end_layout
11936
11937 \end_inset
11938
11939 ] Whether the contents of this argument should be output in raw form, meaning
11940  without special translations that \SpecialChar LaTeX
11941  would require.
11942  By default, the 
11943 \begin_inset Flex Code
11944 status collapsed
11945
11946 \begin_layout Plain Layout
11947 PassThru
11948 \end_layout
11949
11950 \end_inset
11951
11952  status is inherited by the inset or paragraph layout the argument belongs
11953  to, true and false change the status for the given argument only.
11954 \end_layout
11955
11956 \begin_layout Itemize
11957 \begin_inset Flex Code
11958 status collapsed
11959
11960 \begin_layout Plain Layout
11961 PassThruChars
11962 \end_layout
11963
11964 \end_inset
11965
11966  [
11967 \begin_inset Flex Code
11968 status collapsed
11969
11970 \begin_layout Plain Layout
11971 string of characters
11972 \end_layout
11973
11974 \end_inset
11975
11976 ]
11977 \family typewriter
11978  
11979 \family default
11980 Defines individual characters that should be output in raw form, meaning
11981  without special translations that \SpecialChar LaTeX
11982  would require.
11983  Note that, contrary to PassThru, this needs to be explicitly defined for
11984  arguments.
11985  That is, arguments do not inherit PassThruChars from their parent inset
11986  or layout.
11987 \end_layout
11988
11989 \begin_layout Itemize
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 IsTocCaption
11995 \end_layout
11996
11997 \end_inset
11998
11999  [
12000 \begin_inset Flex Code
12001 status collapsed
12002
12003 \begin_layout Plain Layout
12004
12005 \emph on
12006 0
12007 \end_layout
12008
12009 \end_inset
12010
12011 ,
12012 \begin_inset space \thinspace{}
12013 \end_inset
12014
12015
12016 \begin_inset Flex Code
12017 status collapsed
12018
12019 \begin_layout Plain Layout
12020 1
12021 \end_layout
12022
12023 \end_inset
12024
12025 ] If this is set to 1, the argument will output its content in the corresponding
12026  item in the table of contents.
12027  See AddToToc.
12028 \end_layout
12029
12030 \begin_layout Standard
12031 By default, the text entered in the \SpecialChar LyX
12032  workarea in the respective layout is
12033  the last (mandatory) argument of a command if the 
12034 \begin_inset Flex Code
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038 LatexType
12039 \end_layout
12040
12041 \end_inset
12042
12043  is 
12044 \begin_inset Flex Code
12045 status collapsed
12046
12047 \begin_layout Plain Layout
12048 Command
12049 \end_layout
12050
12051 \end_inset
12052
12053 .
12054  However, arguments with the prefix 
12055 \begin_inset Flex Code
12056 status collapsed
12057
12058 \begin_layout Plain Layout
12059 post:
12060 \end_layout
12061
12062 \end_inset
12063
12064  are output after this workarea argument.
12065  Note that post-argument numbering restarts at 1, so the first argument
12066  following the workarea argument is 
12067 \begin_inset Flex Code
12068 status collapsed
12069
12070 \begin_layout Plain Layout
12071 post:1
12072 \end_layout
12073
12074 \end_inset
12075
12076 .
12077  Post-arguments are ignored in any other 
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 LatexType
12083 \end_layout
12084
12085 \end_inset
12086
12087  than 
12088 \begin_inset Flex Code
12089 status collapsed
12090
12091 \begin_layout Plain Layout
12092 Command
12093 \end_layout
12094
12095 \end_inset
12096
12097 .
12098 \end_layout
12099
12100 \begin_layout Standard
12101 Arguments for list 
12102 \begin_inset Flex Code
12103 status collapsed
12104
12105 \begin_layout Plain Layout
12106
12107 \backslash
12108 item
12109 \end_layout
12110
12111 \end_inset
12112
12113 s (as in 
12114 \begin_inset Flex Code
12115 status collapsed
12116
12117 \begin_layout Plain Layout
12118
12119 \backslash
12120 item[foo]
12121 \end_layout
12122
12123 \end_inset
12124
12125 ) have the prefix 
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 item:
12131 \end_layout
12132
12133 \end_inset
12134
12135  followed by the number (e.
12136 \begin_inset space \thinspace{}
12137 \end_inset
12138
12139 g.
12140 \begin_inset space \space{}
12141 \end_inset
12142
12143
12144 \begin_inset Flex Code
12145 status collapsed
12146
12147 \begin_layout Plain Layout
12148 Argument item:1
12149 \end_layout
12150
12151 \end_inset
12152
12153 ).
12154 \end_layout
12155
12156 \end_deeper
12157 \begin_layout Description
12158 \begin_inset Flex Code
12159 status collapsed
12160
12161 \begin_layout Plain Layout
12162 BabelPreamble
12163 \end_layout
12164
12165 \end_inset
12166
12167  Note that this will completely override any prior 
12168 \begin_inset Flex Code
12169 status collapsed
12170
12171 \begin_layout Plain Layout
12172 BabelPreamble
12173 \end_layout
12174
12175 \end_inset
12176
12177  declaration for this style.
12178  Must end with 
12179 \begin_inset Quotes eld
12180 \end_inset
12181
12182
12183 \begin_inset Flex Code
12184 status collapsed
12185
12186 \begin_layout Plain Layout
12187 EndBabelPreamble
12188 \end_layout
12189
12190 \end_inset
12191
12192
12193 \begin_inset Quotes erd
12194 \end_inset
12195
12196 .
12197  See 
12198 \begin_inset CommandInset ref
12199 LatexCommand ref
12200 reference "subsec:I18n"
12201
12202 \end_inset
12203
12204  for details on its use.
12205 \end_layout
12206
12207 \begin_layout Description
12208 \begin_inset Flex Code
12209 status collapsed
12210
12211 \begin_layout Plain Layout
12212 BottomSep
12213 \end_layout
12214
12215 \end_inset
12216
12217  [
12218 \begin_inset Flex Code
12219 status collapsed
12220
12221 \begin_layout Plain Layout
12222 float=0
12223 \end_layout
12224
12225 \end_inset
12226
12227 ]
12228 \begin_inset Foot
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 Note that a `float' here is a real number, such as: 1.5.
12233 \end_layout
12234
12235 \end_inset
12236
12237  The vertical space with which the last of a chain of paragraphs with this
12238  style is separated from the following paragraph.
12239  If the next paragraph has another style, the separations are not simply
12240  added, but the maximum is taken.
12241 \end_layout
12242
12243 \begin_layout Description
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 Category
12249 \end_layout
12250
12251 \end_inset
12252
12253  [
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 string
12259 \end_layout
12260
12261 \end_inset
12262
12263 ] The category for this style.
12264  This is used to group related styles in the style combobox on the toolbar.
12265  Any string can be used, but you may want to use existing categories with
12266  your own styles.
12267  
12268 \end_layout
12269
12270 \begin_layout Description
12271 \begin_inset Flex Code
12272 status collapsed
12273
12274 \begin_layout Plain Layout
12275 CommandDepth
12276 \end_layout
12277
12278 \end_inset
12279
12280  Depth of XML command.
12281  Used only with XML-type formats.
12282 \end_layout
12283
12284 \begin_layout Description
12285 \begin_inset Flex Code
12286 status collapsed
12287
12288 \begin_layout Plain Layout
12289 CopyStyle
12290 \end_layout
12291
12292 \end_inset
12293
12294  [
12295 \begin_inset Flex Code
12296 status collapsed
12297
12298 \begin_layout Plain Layout
12299 string
12300 \end_layout
12301
12302 \end_inset
12303
12304 ] Copies all the features of an existing style into the current one.
12305  
12306 \end_layout
12307
12308 \begin_layout Description
12309 \begin_inset Flex Code
12310 status collapsed
12311
12312 \begin_layout Plain Layout
12313 DependsOn
12314 \end_layout
12315
12316 \end_inset
12317
12318  [
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 <name>
12324 \end_layout
12325
12326 \end_inset
12327
12328 ] The name of a style whose preamble should be output 
12329 \emph on
12330 before
12331 \emph default
12332  this one.
12333  This allows to ensure some ordering of the preamble snippets when macros
12334  definitions depend on one another.
12335 \begin_inset Foot
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 Note that, besides that functionality, there is no way to ensure any ordering
12340  of preambles.
12341  The ordering that you see in a given version of \SpecialChar LyX
12342  may change without warning
12343  in later versions.
12344 \end_layout
12345
12346 \end_inset
12347
12348
12349 \end_layout
12350
12351 \begin_layout Description
12352 \begin_inset Flex Code
12353 status collapsed
12354
12355 \begin_layout Plain Layout
12356 EndLabeltype
12357 \end_layout
12358
12359 \end_inset
12360
12361  [
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366
12367 \emph on
12368 No_Label
12369 \emph default
12370 , Box, Filled_Box, Static
12371 \end_layout
12372
12373 \end_inset
12374
12375 ] The type of label that stands at the end of the paragraph (or sequence
12376  of paragraphs if 
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 LatexType
12382 \end_layout
12383
12384 \end_inset
12385
12386  is
12387 \begin_inset Newline newline
12388 \end_inset
12389
12390
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 Environment
12396 \end_layout
12397
12398 \end_inset
12399
12400
12401 \begin_inset Flex Code
12402 status collapsed
12403
12404 \begin_layout Plain Layout
12405 Item_Environment
12406 \end_layout
12407
12408 \end_inset
12409
12410  or 
12411 \begin_inset Flex Code
12412 status collapsed
12413
12414 \begin_layout Plain Layout
12415 List_Environment
12416 \end_layout
12417
12418 \end_inset
12419
12420 ).
12421  
12422 \begin_inset Flex Code
12423 status collapsed
12424
12425 \begin_layout Plain Layout
12426 No_Label
12427 \end_layout
12428
12429 \end_inset
12430
12431  means 
12432 \begin_inset Quotes eld
12433 \end_inset
12434
12435 nothing
12436 \begin_inset Quotes erd
12437 \end_inset
12438
12439
12440 \begin_inset Flex Code
12441 status collapsed
12442
12443 \begin_layout Plain Layout
12444 Box
12445 \end_layout
12446
12447 \end_inset
12448
12449  (resp.
12450 \begin_inset space \space{}
12451 \end_inset
12452
12453
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 Filled_Box
12459 \end_layout
12460
12461 \end_inset
12462
12463 ) is a white (resp.
12464 \begin_inset space ~
12465 \end_inset
12466
12467 black) square suitable for end of proof markers, 
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 Static
12473 \end_layout
12474
12475 \end_inset
12476
12477  is an explicit text string.
12478 \end_layout
12479
12480 \begin_layout Description
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 EndLabelString
12486 \end_layout
12487
12488 \end_inset
12489
12490  [
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495 string=""
12496 \end_layout
12497
12498 \end_inset
12499
12500 ] The string used for a label with a 
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 Static
12506 \end_layout
12507
12508 \end_inset
12509
12510
12511 \begin_inset Newline newline
12512 \end_inset
12513
12514
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 EndLabelType
12520 \end_layout
12521
12522 \end_inset
12523
12524 .
12525  
12526 \end_layout
12527
12528 \begin_layout Description
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 Font
12534 \end_layout
12535
12536 \end_inset
12537
12538  The font used for both the text body 
12539 \emph on
12540 and
12541 \emph default
12542  the label.
12543  See 
12544 \begin_inset CommandInset ref
12545 LatexCommand ref
12546 reference "subsec:Font-description"
12547
12548 \end_inset
12549
12550 .
12551  Note that defining this font automatically defines the 
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 LabelFont
12557 \end_layout
12558
12559 \end_inset
12560
12561  to the same value.
12562  So you should define this one first if you also want to define 
12563 \begin_inset Flex Code
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 LabelFont
12568 \end_layout
12569
12570 \end_inset
12571
12572 .
12573 \end_layout
12574
12575 \begin_layout Description
12576 \begin_inset Flex Code
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580 ForceLocal
12581 \end_layout
12582
12583 \end_inset
12584
12585  [
12586 \begin_inset Flex Code
12587 status collapsed
12588
12589 \begin_layout Plain Layout
12590 int=0
12591 \end_layout
12592
12593 \end_inset
12594
12595 ] Used for backporting new styles to stable \SpecialChar LyX
12596  versions.
12597  The first stable version that supports this tag is \SpecialChar LyX
12598  2.1.0.
12599  The argument is a number which may either be 0, -1 or any value greater
12600  than zero.
12601  If the 
12602 \begin_inset Flex Code
12603 status collapsed
12604
12605 \begin_layout Plain Layout
12606 ForceLocal
12607 \end_layout
12608
12609 \end_inset
12610
12611  flag of a style is greater than zero, it will always be written to the
12612  document header.
12613  If a .lyx file is read, the style definitions from the document header are
12614  added to the document class.
12615  Therefore even older \SpecialChar LyX
12616  versions can handle the style.
12617  The argument of 
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 ForceLocal
12623 \end_layout
12624
12625 \end_inset
12626
12627  is a version number: if the style is read, and the version number is less
12628  than the version number of the already existing style in the document class,
12629  the new style is ignored.
12630  If the version number is greater, the new style replaces the existing style.
12631  A value of -1 means an infinite version number, i.
12632 \begin_inset space \thinspace{}
12633 \end_inset
12634
12635 e.
12636 \begin_inset space \space{}
12637 \end_inset
12638
12639 the style is always used.
12640 \end_layout
12641
12642 \begin_layout Description
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 FreeSpacing
12648 \end_layout
12649
12650 \end_inset
12651
12652  [
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657
12658 \emph on
12659 0
12660 \end_layout
12661
12662 \end_inset
12663
12664 ,
12665 \begin_inset space \thinspace{}
12666 \end_inset
12667
12668
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 1
12674 \end_layout
12675
12676 \end_inset
12677
12678 ] Usually \SpecialChar LyX
12679  does not allow you to insert more than one space between words,
12680  since a space is considered as the separation between two words, not a
12681  character or symbol of its own.
12682  This is a very fine thing but sometimes annoying, for example, when typing
12683  program code or plain \SpecialChar LaTeX
12684  code.
12685  For this reason, 
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 FreeSpacing
12691 \end_layout
12692
12693 \end_inset
12694
12695  can be enabled.
12696  Note that \SpecialChar LyX
12697  will create protected blanks for the additional blanks when
12698  in another mode than \SpecialChar LaTeX
12699 -mode.
12700 \end_layout
12701
12702 \begin_layout Description
12703 \begin_inset Flex Code
12704 status collapsed
12705
12706 \begin_layout Plain Layout
12707 HTML*
12708 \end_layout
12709
12710 \end_inset
12711
12712  These tags are used with XHTML output.
12713  See 
12714 \begin_inset CommandInset ref
12715 LatexCommand ref
12716 reference "subsec:Paragraph-Style-XHTML"
12717
12718 \end_inset
12719
12720 .
12721 \end_layout
12722
12723 \begin_layout Description
12724 \begin_inset Flex Code
12725 status collapsed
12726
12727 \begin_layout Plain Layout
12728 InnerTag
12729 \end_layout
12730
12731 \end_inset
12732
12733  [FIXME] (Used only with XML-type formats.)
12734 \end_layout
12735
12736 \begin_layout Description
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741 InPreamble
12742 \end_layout
12743
12744 \end_inset
12745
12746  [
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751
12752 \emph on
12753 0
12754 \end_layout
12755
12756 \end_inset
12757
12758 ,
12759 \begin_inset space \thinspace{}
12760 \end_inset
12761
12762
12763 \begin_inset Flex Code
12764 status collapsed
12765
12766 \begin_layout Plain Layout
12767 1
12768 \end_layout
12769
12770 \end_inset
12771
12772 ] If 
12773 \begin_inset Flex Code
12774 status collapsed
12775
12776 \begin_layout Plain Layout
12777 1
12778 \end_layout
12779
12780 \end_inset
12781
12782 , marks the style as to be included in the document preamble and not in
12783  the document body.
12784  This is useful for document classes that want such information as the title
12785  and author to appear in the preamble.
12786  Note that this works only for styles for which the 
12787 \begin_inset Flex Code
12788 status collapsed
12789
12790 \begin_layout Plain Layout
12791 LatexType
12792 \end_layout
12793
12794 \end_inset
12795
12796  is 
12797 \begin_inset Flex Code
12798 status collapsed
12799
12800 \begin_layout Plain Layout
12801 Command
12802 \end_layout
12803
12804 \end_inset
12805
12806  or 
12807 \begin_inset Flex Code
12808 status collapsed
12809
12810 \begin_layout Plain Layout
12811 Paragraph
12812 \end_layout
12813
12814 \end_inset
12815
12816 .
12817 \end_layout
12818
12819 \begin_layout Description
12820 \begin_inset Flex Code
12821 status collapsed
12822
12823 \begin_layout Plain Layout
12824 InTitle
12825 \end_layout
12826
12827 \end_inset
12828
12829  [
12830 \begin_inset Flex Code
12831 status collapsed
12832
12833 \begin_layout Plain Layout
12834
12835 \emph on
12836 0
12837 \end_layout
12838
12839 \end_inset
12840
12841 ,
12842 \begin_inset space \thinspace{}
12843 \end_inset
12844
12845
12846 \begin_inset Flex Code
12847 status collapsed
12848
12849 \begin_layout Plain Layout
12850 1
12851 \end_layout
12852
12853 \end_inset
12854
12855 ] If 
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 1
12861 \end_layout
12862
12863 \end_inset
12864
12865 , marks the style as being part of a title block (see also the 
12866 \begin_inset Flex Code
12867 status collapsed
12868
12869 \begin_layout Plain Layout
12870 TitleLatexType
12871 \end_layout
12872
12873 \end_inset
12874
12875  and 
12876 \begin_inset Flex Code
12877 status collapsed
12878
12879 \begin_layout Plain Layout
12880 TitleLatexName
12881 \end_layout
12882
12883 \end_inset
12884
12885  global entries).
12886 \end_layout
12887
12888 \begin_layout Description
12889 \begin_inset Flex Code
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893 IsTocCaption
12894 \end_layout
12895
12896 \end_inset
12897
12898  [
12899 \begin_inset Flex Code
12900 status collapsed
12901
12902 \begin_layout Plain Layout
12903
12904 \emph on
12905 0
12906 \end_layout
12907
12908 \end_inset
12909
12910 ,
12911 \begin_inset space \thinspace{}
12912 \end_inset
12913
12914
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 1
12920 \end_layout
12921
12922 \end_inset
12923
12924 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
12925  of its contents in its item in the table of contents.
12926  Otherwise, only the label, if it exists, appears.
12927 \end_layout
12928
12929 \begin_layout Description
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934 ItemCommand
12935 \end_layout
12936
12937 \end_inset
12938
12939  [
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 string="item"
12945 \end_layout
12946
12947 \end_inset
12948
12949 ] The \SpecialChar LaTeX
12950  command sequence declaring an item in a list.
12951  The command is to be defined without the preceding backslash (the default
12952  is 
12953 \begin_inset Quotes eld
12954 \end_inset
12955
12956 item
12957 \begin_inset Quotes erd
12958 \end_inset
12959
12960 , resulting in 
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965
12966 \backslash
12967 item
12968 \end_layout
12969
12970 \end_inset
12971
12972  in the \SpecialChar LaTeX
12973  output).
12974 \end_layout
12975
12976 \begin_layout Description
12977 \begin_inset Flex Code
12978 status collapsed
12979
12980 \begin_layout Plain Layout
12981 ItemSep
12982 \end_layout
12983
12984 \end_inset
12985
12986  [
12987 \begin_inset Flex Code
12988 status collapsed
12989
12990 \begin_layout Plain Layout
12991 float=0
12992 \end_layout
12993
12994 \end_inset
12995
12996 ] This provides extra space between paragraphs that have the same style.
12997  If you put other styles into an environment, each is separated with the
12998  environment's 
12999 \begin_inset Flex Code
13000 status collapsed
13001
13002 \begin_layout Plain Layout
13003 ParSep
13004 \end_layout
13005
13006 \end_inset
13007
13008 .
13009  But the whole items of the environment are additionally separated with
13010  this 
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 ItemSep
13016 \end_layout
13017
13018 \end_inset
13019
13020 .
13021  Note that this is a
13022 \emph on
13023  multiplier.
13024 \end_layout
13025
13026 \begin_layout Description
13027 \begin_inset Flex Code
13028 status collapsed
13029
13030 \begin_layout Plain Layout
13031 ItemTag
13032 \end_layout
13033
13034 \end_inset
13035
13036  [FIXME] (Used only with XML-type formats.)
13037 \end_layout
13038
13039 \begin_layout Description
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044 KeepEmpty
13045 \end_layout
13046
13047 \end_inset
13048
13049  [
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054
13055 \emph on
13056 0
13057 \end_layout
13058
13059 \end_inset
13060
13061 ,
13062 \begin_inset space \thinspace{}
13063 \end_inset
13064
13065
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 1
13071 \end_layout
13072
13073 \end_inset
13074
13075 ] Usually \SpecialChar LyX
13076  does not allow you to leave a paragraph empty, since it would
13077  lead to empty \SpecialChar LaTeX
13078  output.
13079  There are some cases where this could be desirable however: in a letter
13080  template, the required fields can be provided as empty fields, so that
13081  people do not forget them; in some special classes, a style can be used
13082  as some kind of break, which does not contain actual text.
13083 \end_layout
13084
13085 \begin_layout Description
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 LabelBottomsep
13091 \end_layout
13092
13093 \end_inset
13094
13095  [
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100 float=0
13101 \end_layout
13102
13103 \end_inset
13104
13105 ] The vertical space between the label and the text body.
13106  Only used for labels that are above the text body (
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111 Top_Environment
13112 \end_layout
13113
13114 \end_inset
13115
13116  and
13117 \begin_inset Newline newline
13118 \end_inset
13119
13120
13121 \begin_inset Flex Code
13122 status collapsed
13123
13124 \begin_layout Plain Layout
13125 Centered_Top_Environment
13126 \end_layout
13127
13128 \end_inset
13129
13130 ).
13131 \end_layout
13132
13133 \begin_layout Description
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138 LabelCounter
13139 \end_layout
13140
13141 \end_inset
13142
13143  [
13144 \begin_inset Flex Code
13145 status collapsed
13146
13147 \begin_layout Plain Layout
13148 string=""
13149 \end_layout
13150
13151 \end_inset
13152
13153 ] The name of the counter for automatic numbering.
13154  In order to have the counter appear with your label, you will need to reference
13155  it in the 
13156 \begin_inset Flex Code
13157 status collapsed
13158
13159 \begin_layout Plain Layout
13160
13161 \family typewriter
13162 LabelString
13163 \end_layout
13164
13165 \end_inset
13166
13167 .
13168  This will work with 
13169 \begin_inset Flex Code
13170 status collapsed
13171
13172 \begin_layout Plain Layout
13173 LabelType
13174 \end_layout
13175
13176 \end_inset
13177
13178 s, 
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183 Static
13184 \end_layout
13185
13186 \end_inset
13187
13188
13189 \begin_inset Flex Code
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193 Above
13194 \end_layout
13195
13196 \end_inset
13197
13198  and 
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 Centered
13204 \end_layout
13205
13206 \end_inset
13207
13208 , at least.
13209 \begin_inset Newline newline
13210 \end_inset
13211
13212 This 
13213 \emph on
13214 may
13215 \emph default
13216  also be given if 
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 LabelType
13222 \end_layout
13223
13224 \end_inset
13225
13226  is 
13227 \begin_inset Flex Code
13228 status collapsed
13229
13230 \begin_layout Plain Layout
13231 Enumerate
13232 \end_layout
13233
13234 \end_inset
13235
13236 , though this case is a bit complicated.
13237  Suppose you declare 
13238 \begin_inset Quotes eld
13239 \end_inset
13240
13241
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246 LabelCounter myenum
13247 \end_layout
13248
13249 \end_inset
13250
13251
13252 \begin_inset Quotes erd
13253 \end_inset
13254
13255 .
13256  Then the actual counters used are 
13257 \begin_inset Flex Code
13258 status collapsed
13259
13260 \begin_layout Plain Layout
13261 myenumi
13262 \end_layout
13263
13264 \end_inset
13265
13266
13267 \begin_inset Flex Code
13268 status collapsed
13269
13270 \begin_layout Plain Layout
13271 myenumii
13272 \end_layout
13273
13274 \end_inset
13275
13276
13277 \begin_inset Flex Code
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281 myenumiii
13282 \end_layout
13283
13284 \end_inset
13285
13286  and 
13287 \begin_inset Flex Code
13288 status collapsed
13289
13290 \begin_layout Plain Layout
13291 myenumiv
13292 \end_layout
13293
13294 \end_inset
13295
13296 , much as in \SpecialChar LaTeX
13297 .
13298  These counters must all be declared separately.
13299 \begin_inset Newline newline
13300 \end_inset
13301
13302 See 
13303 \begin_inset CommandInset ref
13304 LatexCommand ref
13305 reference "subsec:Counters"
13306
13307 \end_inset
13308
13309  for details on counters.
13310 \end_layout
13311
13312 \begin_layout Description
13313 \begin_inset Flex Code
13314 status collapsed
13315
13316 \begin_layout Plain Layout
13317 LabelFont
13318 \end_layout
13319
13320 \end_inset
13321
13322  The font used for the label.
13323  See 
13324 \begin_inset CommandInset ref
13325 LatexCommand ref
13326 reference "subsec:Font-description"
13327
13328 \end_inset
13329
13330 .
13331 \end_layout
13332
13333 \begin_layout Description
13334 \begin_inset Flex Code
13335 status collapsed
13336
13337 \begin_layout Plain Layout
13338 LabelIndent
13339 \end_layout
13340
13341 \end_inset
13342
13343  [
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 string=""
13349 \end_layout
13350
13351 \end_inset
13352
13353 ] Text that indicates how far a label should be indented.
13354 \end_layout
13355
13356 \begin_layout Description
13357 \begin_inset Flex Code
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361 LabelSep
13362 \end_layout
13363
13364 \end_inset
13365
13366  [
13367 \begin_inset Flex Code
13368 status collapsed
13369
13370 \begin_layout Plain Layout
13371 string=""
13372 \end_layout
13373
13374 \end_inset
13375
13376 ] Text that indicates the amount of horizontal space between the label and
13377  the text body.
13378  Only used for labels that are not above the text body.
13379 \end_layout
13380
13381 \begin_layout Description
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 LabelString
13387 \end_layout
13388
13389 \end_inset
13390
13391  [
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 string=""
13397 \end_layout
13398
13399 \end_inset
13400
13401 ] The string used for the label.
13402  When 
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 LabelCounter
13408 \end_layout
13409
13410 \end_inset
13411
13412  is set, this string can be contain the special formatting commands described
13413  in 
13414 \begin_inset CommandInset ref
13415 LatexCommand ref
13416 reference "subsec:Counters"
13417
13418 \end_inset
13419
13420 .
13421 \end_layout
13422
13423 \begin_layout Description
13424 \begin_inset Flex Code
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 LabelStringAppendix
13429 \end_layout
13430
13431 \end_inset
13432
13433  [
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438 string=""
13439 \end_layout
13440
13441 \end_inset
13442
13443 ] This is used inside the appendix instead of
13444 \begin_inset Newline newline
13445 \end_inset
13446
13447
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452 LabelString
13453 \end_layout
13454
13455 \end_inset
13456
13457 .
13458  Note that every 
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463 LabelString
13464 \end_layout
13465
13466 \end_inset
13467
13468  statement resets
13469 \begin_inset Newline newline
13470 \end_inset
13471
13472
13473 \begin_inset Flex Code
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477 LabelStringAppendix
13478 \end_layout
13479
13480 \end_inset
13481
13482  too.
13483 \end_layout
13484
13485 \begin_layout Description
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 LabelTag
13491 \end_layout
13492
13493 \end_inset
13494
13495  [FIXME] (Used only with XML-type formats.)
13496 \end_layout
13497
13498 \begin_layout Description
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 LabelType
13504 \end_layout
13505
13506 \end_inset
13507
13508  [
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513
13514 \emph on
13515 No_Label
13516 \emph default
13517 , Manual, Static, Above, 
13518 \begin_inset Newline newline
13519 \end_inset
13520
13521 Centered, Sensitive, Enumerate,
13522 \begin_inset Newline newline
13523 \end_inset
13524
13525 Itemize, Bibliography
13526 \end_layout
13527
13528 \end_inset
13529
13530 ]
13531 \end_layout
13532
13533 \begin_deeper
13534 \begin_layout Description
13535 \begin_inset Flex Code
13536 status collapsed
13537
13538 \begin_layout Plain Layout
13539 Manual
13540 \end_layout
13541
13542 \end_inset
13543
13544  means the label is the very first word (up to the first real blank).
13545  Use protected spaces if you want more than one word as the label.
13546  
13547 \end_layout
13548
13549 \begin_layout Description
13550 \begin_inset Flex Code
13551 status collapsed
13552
13553 \begin_layout Plain Layout
13554 Static
13555 \end_layout
13556
13557 \end_inset
13558
13559  means the label is simply what is declared as 
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 LabelString
13565 \end_layout
13566
13567 \end_inset
13568
13569 .
13570  This will be displayed 
13571 \begin_inset Quotes eld
13572 \end_inset
13573
13574 inline
13575 \begin_inset Quotes erd
13576 \end_inset
13577
13578 , at the beginning of the paragraph.
13579  If the 
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 LatexType
13585 \end_layout
13586
13587 \end_inset
13588
13589  is 
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 Environment
13595 \end_layout
13596
13597 \end_inset
13598
13599 , then it will be displayed only in the first paragraph of any sequence
13600  of paragraphs with the same 
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 Style
13606 \end_layout
13607
13608 \end_inset
13609
13610 .
13611 \end_layout
13612
13613 \begin_layout Description
13614 \begin_inset Flex Code
13615 status collapsed
13616
13617 \begin_layout Plain Layout
13618 Above
13619 \end_layout
13620
13621 \end_inset
13622
13623
13624 \begin_inset space ~
13625 \end_inset
13626
13627 and
13628 \begin_inset space ~
13629 \end_inset
13630
13631
13632 \begin_inset Flex Code
13633 status collapsed
13634
13635 \begin_layout Plain Layout
13636 Centered
13637 \end_layout
13638
13639 \end_inset
13640
13641  are special cases of 
13642 \begin_inset Flex Code
13643 status collapsed
13644
13645 \begin_layout Plain Layout
13646 Static
13647 \end_layout
13648
13649 \end_inset
13650
13651 .
13652  The label will be printed above the paragraph either at the beginning of
13653  the line or centered.
13654 \end_layout
13655
13656 \begin_layout Description
13657 \begin_inset Flex Code
13658 status collapsed
13659
13660 \begin_layout Plain Layout
13661 Sensitive
13662 \end_layout
13663
13664 \end_inset
13665
13666  is a special case for the caption-labels 
13667 \begin_inset Quotes eld
13668 \end_inset
13669
13670 Figure
13671 \begin_inset Quotes erd
13672 \end_inset
13673
13674  and 
13675 \begin_inset Quotes eld
13676 \end_inset
13677
13678 Table
13679 \begin_inset Quotes erd
13680 \end_inset
13681
13682 .
13683 \begin_inset Newline newline
13684 \end_inset
13685
13686
13687 \begin_inset Flex Code
13688 status collapsed
13689
13690 \begin_layout Plain Layout
13691 Sensitive
13692 \end_layout
13693
13694 \end_inset
13695
13696  means the (hardcoded) label string depends on the kind of float: It is
13697  hardcoded to be `FloatType N', where N is the value of the counter associated
13698  with the float.
13699  For the case that a caption is inserted outside of a float the 
13700 \begin_inset Flex Code
13701 status collapsed
13702
13703 \begin_layout Plain Layout
13704 LabelString
13705 \end_layout
13706
13707 \end_inset
13708
13709  will appear as 
13710 \begin_inset Quotes eld
13711 \end_inset
13712
13713 Senseless!
13714 \begin_inset Quotes erd
13715 \end_inset
13716
13717 .
13718 \end_layout
13719
13720 \begin_layout Description
13721 \begin_inset Flex Code
13722 status collapsed
13723
13724 \begin_layout Plain Layout
13725 Enumerate
13726 \end_layout
13727
13728 \end_inset
13729
13730  produces the usual sort of enumeration labels.
13731  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13732  small Roman numerals, and uppercase letters for the four possible depths.
13733 \end_layout
13734
13735 \begin_layout Description
13736 \begin_inset Flex Code
13737 status collapsed
13738
13739 \begin_layout Plain Layout
13740 Itemize
13741 \end_layout
13742
13743 \end_inset
13744
13745  produces various bullets at the different levels.
13746  It is also hardcoded.
13747 \end_layout
13748
13749 \begin_layout Description
13750 \begin_inset Flex Code
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754 Bibliography
13755 \end_layout
13756
13757 \end_inset
13758
13759  should be used only with 
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764 LatexType BibEnvironment
13765 \end_layout
13766
13767 \end_inset
13768
13769 .
13770 \end_layout
13771
13772 \end_deeper
13773 \begin_layout Description
13774 \begin_inset Flex Code
13775 status collapsed
13776
13777 \begin_layout Plain Layout
13778 LangPreamble
13779 \end_layout
13780
13781 \end_inset
13782
13783  Note that this will completely override any prior 
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 LangPreamble
13789 \end_layout
13790
13791 \end_inset
13792
13793  declaration for this style.
13794  Must end with 
13795 \begin_inset Quotes eld
13796 \end_inset
13797
13798
13799 \begin_inset Flex Code
13800 status collapsed
13801
13802 \begin_layout Plain Layout
13803 EndLangPreamble
13804 \end_layout
13805
13806 \end_inset
13807
13808
13809 \begin_inset Quotes erd
13810 \end_inset
13811
13812 .
13813  See 
13814 \begin_inset CommandInset ref
13815 LatexCommand ref
13816 reference "subsec:I18n"
13817
13818 \end_inset
13819
13820  for details on its use.
13821 \end_layout
13822
13823 \begin_layout Description
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828 LatexName
13829 \end_layout
13830
13831 \end_inset
13832
13833  [
13834 \begin_inset Flex Code
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838 <name>
13839 \end_layout
13840
13841 \end_inset
13842
13843 ] The name of the corresponding \SpecialChar LaTeX
13844  stuff.
13845  Either the environment or command name.
13846 \end_layout
13847
13848 \begin_layout Description
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853 LatexParam
13854 \end_layout
13855
13856 \end_inset
13857
13858  [
13859 \begin_inset Flex Code
13860 status collapsed
13861
13862 \begin_layout Plain Layout
13863 <parameter>
13864 \end_layout
13865
13866 \end_inset
13867
13868 ] An optional parameter for the corresponding 
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 LatexName
13874 \end_layout
13875
13876 \end_inset
13877
13878  stuff.
13879  This parameter cannot be changed from within \SpecialChar LyX
13880  (use 
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885 Argument
13886 \end_layout
13887
13888 \end_inset
13889
13890  for customizable parameters).
13891  This will be output as is after all \SpecialChar LaTeX
13892  
13893 \begin_inset Flex Code
13894 status collapsed
13895
13896 \begin_layout Plain Layout
13897 Argument
13898 \end_layout
13899
13900 \end_inset
13901
13902 s.
13903 \end_layout
13904
13905 \begin_layout Description
13906 \begin_inset Flex Code
13907 status collapsed
13908
13909 \begin_layout Plain Layout
13910 LatexType
13911 \end_layout
13912
13913 \end_inset
13914
13915  [
13916 \begin_inset Flex Code
13917 status collapsed
13918
13919 \begin_layout Plain Layout
13920
13921 \emph on
13922 Paragraph
13923 \emph default
13924 , Command, Environment, Item_Environment,
13925 \begin_inset Newline newline
13926 \end_inset
13927
13928 List_Environment, Bib_Environment
13929 \end_layout
13930
13931 \end_inset
13932
13933 ] How the style should be translated into \SpecialChar LaTeX
13934 .
13935 \begin_inset Foot
13936 status collapsed
13937
13938 \begin_layout Plain Layout
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943 LatexType
13944 \end_layout
13945
13946 \end_inset
13947
13948  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13949  Visit the SGML class files for specific examples.
13950 \end_layout
13951
13952 \end_inset
13953
13954
13955 \end_layout
13956
13957 \begin_deeper
13958 \begin_layout Description
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 Paragraph
13964 \end_layout
13965
13966 \end_inset
13967
13968  means nothing special.
13969 \end_layout
13970
13971 \begin_layout Description
13972 \begin_inset Flex Code
13973 status collapsed
13974
13975 \begin_layout Plain Layout
13976 Command
13977 \end_layout
13978
13979 \end_inset
13980
13981  means 
13982 \begin_inset Flex Code
13983 status collapsed
13984
13985 \begin_layout Plain Layout
13986
13987 \backslash
13988
13989 \emph on
13990 LatexName
13991 \emph default
13992 {\SpecialChar ldots
13993 }
13994 \end_layout
13995
13996 \end_inset
13997
13998 .
13999 \end_layout
14000
14001 \begin_layout Description
14002 \begin_inset Flex Code
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006 Environment
14007 \end_layout
14008
14009 \end_inset
14010
14011  means 
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016
14017 \backslash
14018 begin{
14019 \emph on
14020 LatexName
14021 \emph default
14022 }\SpecialChar ldots
14023
14024 \backslash
14025 end{
14026 \emph on
14027 LatexName
14028 \emph default
14029 }
14030 \end_layout
14031
14032 \end_inset
14033
14034 .
14035  
14036 \end_layout
14037
14038 \begin_layout Description
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 Item_Environment
14044 \end_layout
14045
14046 \end_inset
14047
14048  is the same as 
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 Environment
14054 \end_layout
14055
14056 \end_inset
14057
14058 , except that an 
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063
14064 \backslash
14065 item
14066 \end_layout
14067
14068 \end_inset
14069
14070  is generated for each paragraph of this environment.
14071  
14072 \end_layout
14073
14074 \begin_layout Description
14075 \begin_inset Flex Code
14076 status collapsed
14077
14078 \begin_layout Plain Layout
14079 List_Environment
14080 \end_layout
14081
14082 \end_inset
14083
14084  is the same as 
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089 Item_Environment
14090 \end_layout
14091
14092 \end_inset
14093
14094 , except that
14095 \begin_inset Newline newline
14096 \end_inset
14097
14098
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 LabelWidthString
14104 \end_layout
14105
14106 \end_inset
14107
14108  is passed as an argument to the environment.
14109 \begin_inset Newline newline
14110 \end_inset
14111
14112
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 LabelWidthString
14118 \end_layout
14119
14120 \end_inset
14121
14122  can be defined in the 
14123 \begin_inset Flex Noun
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 Edit\SpecialChar menuseparator
14128 Paragraph
14129 \begin_inset space ~
14130 \end_inset
14131
14132 settings
14133 \end_layout
14134
14135 \end_inset
14136
14137  dialog.
14138 \end_layout
14139
14140 \begin_layout Description
14141 \begin_inset Flex Code
14142 status collapsed
14143
14144 \begin_layout Plain Layout
14145 Bib_Environment
14146 \end_layout
14147
14148 \end_inset
14149
14150  is like 
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 Environment
14156 \end_layout
14157
14158 \end_inset
14159
14160  but adds the necessary mandatory argument (the longest label) to the begin
14161  statement of the bibliography environment:
14162 \begin_inset Newline newline
14163 \end_inset
14164
14165
14166 \begin_inset Flex Code
14167 status collapsed
14168
14169 \begin_layout Plain Layout
14170
14171 \backslash
14172 begin{thebibliography}{99}
14173 \end_layout
14174
14175 \end_inset
14176
14177 .
14178  It is therefore only useful for bibliography environments.
14179  The default longest label 
14180 \begin_inset Quotes eld
14181 \end_inset
14182
14183 99
14184 \begin_inset Quotes erd
14185 \end_inset
14186
14187  can be changed by the user in the paragraph settings of a bibliography
14188  item.
14189 \end_layout
14190
14191 \begin_layout Standard
14192 Putting the last few things together, the \SpecialChar LaTeX
14193  output will be either: 
14194 \end_layout
14195
14196 \begin_layout LyX-Code
14197
14198 \backslash
14199 LatexName[LatexParam]{\SpecialChar ldots
14200 }
14201 \end_layout
14202
14203 \begin_layout Standard
14204 or: 
14205 \end_layout
14206
14207 \begin_layout LyX-Code
14208
14209 \backslash
14210 begin{LatexName}[LatexParam] \SpecialChar ldots
14211  
14212 \backslash
14213 end{LatexName}.
14214 \end_layout
14215
14216 \begin_layout Standard
14217 depending upon the \SpecialChar LaTeX
14218  type.
14219 \end_layout
14220
14221 \end_deeper
14222 \begin_layout Description
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 LeftDelim
14228 \end_layout
14229
14230 \end_inset
14231
14232  [
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237 string
14238 \end_layout
14239
14240 \end_inset
14241
14242 ] A string that is put at the beginning of the style content.
14243  A line break in the output can be indicated by 
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 <br/>
14249 \end_layout
14250
14251 \end_inset
14252
14253 .
14254 \end_layout
14255
14256 \begin_layout Description
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261 LeftMargin
14262 \end_layout
14263
14264 \end_inset
14265
14266  [
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 string=""
14272 \end_layout
14273
14274 \end_inset
14275
14276 ] If you put styles into environments, the different 
14277 \begin_inset Flex Code
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281 LeftMargin
14282 \end_layout
14283
14284 \end_inset
14285
14286  are not simply added, but added with a factor 
14287 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14288 \end_inset
14289
14290 .
14291  Note that this parameter is also used when 
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296 Margin
14297 \end_layout
14298
14299 \end_inset
14300
14301  is defined as 
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 Manual
14307 \end_layout
14308
14309 \end_inset
14310
14311  or 
14312 \begin_inset Flex Code
14313 status collapsed
14314
14315 \begin_layout Plain Layout
14316 Dynamic
14317 \end_layout
14318
14319 \end_inset
14320
14321 .
14322  Then it is added to the manual or dynamic margin.
14323 \begin_inset Newline newline
14324 \end_inset
14325
14326 For example 
14327 \begin_inset Quotes eld
14328 \end_inset
14329
14330
14331 \begin_inset Flex Code
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 MM
14336 \end_layout
14337
14338 \end_inset
14339
14340
14341 \begin_inset Quotes erd
14342 \end_inset
14343
14344  means that the paragraph is indented with the width of 
14345 \begin_inset Quotes eld
14346 \end_inset
14347
14348
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 MM
14354 \end_layout
14355
14356 \end_inset
14357
14358
14359 \begin_inset Quotes erd
14360 \end_inset
14361
14362  in the normal font.
14363  You can get a negative width by prefixing the string with 
14364 \begin_inset Quotes eld
14365 \end_inset
14366
14367
14368 \begin_inset Flex Code
14369 status collapsed
14370
14371 \begin_layout Plain Layout
14372 -
14373 \end_layout
14374
14375 \end_inset
14376
14377
14378 \begin_inset Quotes erd
14379 \end_inset
14380
14381 .
14382  This way was chosen so that the look is the same with each used screen
14383  font.
14384 \end_layout
14385
14386 \begin_layout Description
14387 \begin_inset Flex Code
14388 status collapsed
14389
14390 \begin_layout Plain Layout
14391 Margin
14392 \end_layout
14393
14394 \end_inset
14395
14396  [
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401
14402 \emph on
14403 Static
14404 \emph default
14405 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14406 \end_layout
14407
14408 \end_inset
14409
14410
14411 \begin_inset Newline newline
14412 \end_inset
14413
14414 The kind of margin that the style has on the left side.
14415 \end_layout
14416
14417 \begin_deeper
14418 \begin_layout Description
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Static
14424 \end_layout
14425
14426 \end_inset
14427
14428  just means a fixed margin.
14429 \end_layout
14430
14431 \begin_layout Description
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 Manual
14437 \end_layout
14438
14439 \end_inset
14440
14441  means that the left margin depends on the string entered in the 
14442 \begin_inset Flex Noun
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 Edit\SpecialChar menuseparator
14447 Paragraph
14448 \begin_inset space ~
14449 \end_inset
14450
14451 Settings
14452 \end_layout
14453
14454 \end_inset
14455
14456  dialog.
14457  This is used to typeset nice lists without tabulators.
14458 \end_layout
14459
14460 \begin_layout Description
14461 \begin_inset Flex Code
14462 status collapsed
14463
14464 \begin_layout Plain Layout
14465 Dynamic
14466 \end_layout
14467
14468 \end_inset
14469
14470  means that the margin depends on the size of the label.
14471  This is used for automatic enumerated headlines.
14472  It is obvious that the headline 
14473 \begin_inset Quotes eld
14474 \end_inset
14475
14476 5.4.3.2.1 Very long headline
14477 \begin_inset Quotes erd
14478 \end_inset
14479
14480  must have a wider left margin (as wide as 
14481 \begin_inset Quotes eld
14482 \end_inset
14483
14484 5.4.3.2.1
14485 \begin_inset Quotes erd
14486 \end_inset
14487
14488  plus the space) than 
14489 \begin_inset Quotes eld
14490 \end_inset
14491
14492 3.2 Very long headline
14493 \begin_inset Quotes erd
14494 \end_inset
14495
14496 , even if standard 
14497 \begin_inset Quotes eld
14498 \end_inset
14499
14500 word processors
14501 \begin_inset Quotes erd
14502 \end_inset
14503
14504  are not able to do this.
14505 \end_layout
14506
14507 \begin_layout Description
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512 First_Dynamic
14513 \end_layout
14514
14515 \end_inset
14516
14517  is similar, but only the very first row of the paragraph is dynamic, while
14518  the others are static; this is used, for example, for descriptions.
14519 \end_layout
14520
14521 \begin_layout Description
14522 \begin_inset Flex Code
14523 status collapsed
14524
14525 \begin_layout Plain Layout
14526 Right_Address_Box
14527 \end_layout
14528
14529 \end_inset
14530
14531  means the margin is chosen in a way that the longest row of this paragraph
14532  fits to the right margin.
14533  This is used to typeset an address on the right edge of the page.
14534 \end_layout
14535
14536 \end_deeper
14537 \begin_layout Description
14538 \begin_inset Flex Code
14539 status collapsed
14540
14541 \begin_layout Plain Layout
14542 NeedProtect
14543 \end_layout
14544
14545 \end_inset
14546
14547  [
14548 \begin_inset Flex Code
14549 status collapsed
14550
14551 \begin_layout Plain Layout
14552
14553 \emph on
14554 0
14555 \end_layout
14556
14557 \end_inset
14558
14559 ,
14560 \begin_inset space \thinspace{}
14561 \end_inset
14562
14563
14564 \begin_inset Flex Code
14565 status collapsed
14566
14567 \begin_layout Plain Layout
14568 1
14569 \end_layout
14570
14571 \end_inset
14572
14573 ] Whether fragile commands in this style should be 
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578
14579 \backslash
14580 protect
14581 \end_layout
14582
14583 \end_inset
14584
14585 'ed.
14586  (Note: This is 
14587 \emph on
14588 not
14589 \emph default
14590  whether this command should itself be protected.)
14591 \end_layout
14592
14593 \begin_layout Description
14594 \begin_inset Flex Code
14595 status collapsed
14596
14597 \begin_layout Plain Layout
14598 Newline
14599 \end_layout
14600
14601 \end_inset
14602
14603  [
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 0
14609 \end_layout
14610
14611 \end_inset
14612
14613 ,
14614 \begin_inset space \thinspace{}
14615 \end_inset
14616
14617
14618 \begin_inset Flex Code
14619 status collapsed
14620
14621 \begin_layout Plain Layout
14622
14623 \emph on
14624 1
14625 \end_layout
14626
14627 \end_inset
14628
14629 ] Whether newlines are translated into \SpecialChar LaTeX
14630  newlines (
14631 \begin_inset Flex Code
14632 status collapsed
14633
14634 \begin_layout Plain Layout
14635
14636 \backslash
14637
14638 \backslash
14639
14640 \end_layout
14641
14642 \end_inset
14643
14644 ) or not.
14645  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14646  editing
14647  inside \SpecialChar LyX
14648 .
14649 \end_layout
14650
14651 \begin_layout Description
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 NextNoIndent
14657 \end_layout
14658
14659 \end_inset
14660
14661  [
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666
14667 \emph on
14668 0
14669 \end_layout
14670
14671 \end_inset
14672
14673 ,
14674 \begin_inset space \thinspace{}
14675 \end_inset
14676
14677
14678 \begin_inset Flex Code
14679 status collapsed
14680
14681 \begin_layout Plain Layout
14682 1
14683 \end_layout
14684
14685 \end_inset
14686
14687 ] If set to true, and if 
14688 \begin_inset Flex Code
14689 status collapsed
14690
14691 \begin_layout Plain Layout
14692 DefaultStyle
14693 \end_layout
14694
14695 \end_inset
14696
14697  (usually 
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 Standard
14703 \end_layout
14704
14705 \end_inset
14706
14707 ) paragraphs are being indented, then the indentation of such a paragraph
14708  following one of this type will be suppressed.
14709  (So this will not affect the display of non-default paragraphs.)
14710 \end_layout
14711
14712 \begin_layout Description
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 ObsoletedBy
14718 \end_layout
14719
14720 \end_inset
14721
14722  [
14723 \begin_inset Flex Code
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727 <name>
14728 \end_layout
14729
14730 \end_inset
14731
14732 ] Name of a style that has replaced this style.
14733  This is used to rename a style, while keeping backward compatibility.
14734 \end_layout
14735
14736 \begin_layout Description
14737 \begin_inset Flex Code
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741 ParagraphGroup
14742 \end_layout
14743
14744 \end_inset
14745
14746  [
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 0
14752 \end_layout
14753
14754 \end_inset
14755
14756 ,
14757 \begin_inset space \thinspace{}
14758 \end_inset
14759
14760
14761 \begin_inset Flex Code
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765 1
14766 \end_layout
14767
14768 \end_inset
14769
14770 ] Determines whether consecutive pragraphs of the same type are treated
14771  as belonging together.
14772  This has the effect that the 
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777 GuiLabel
14778 \end_layout
14779
14780 \end_inset
14781
14782  is only printed once before such a group.
14783  By default, this is true for 
14784 \begin_inset Flex Code
14785 status collapsed
14786
14787 \begin_layout Plain Layout
14788 LaTeXType
14789 \end_layout
14790
14791 \end_inset
14792
14793  
14794 \begin_inset Flex Code
14795 status collapsed
14796
14797 \begin_layout Plain Layout
14798 Environment
14799 \end_layout
14800
14801 \end_inset
14802
14803  and 
14804 \begin_inset Flex Code
14805 status collapsed
14806
14807 \begin_layout Plain Layout
14808 Bib_Environment
14809 \end_layout
14810
14811 \end_inset
14812
14813  and false for all other types.
14814 \end_layout
14815
14816 \begin_layout Description
14817 \begin_inset Flex Code
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 ParbreakIsNewline
14822 \end_layout
14823
14824 \end_inset
14825
14826  [
14827 \begin_inset Flex Code
14828 status collapsed
14829
14830 \begin_layout Plain Layout
14831
14832 \emph on
14833 0
14834 \end_layout
14835
14836 \end_inset
14837
14838 ,
14839 \begin_inset space \thinspace{}
14840 \end_inset
14841
14842
14843 \begin_inset Flex Code
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847 1
14848 \end_layout
14849
14850 \end_inset
14851
14852 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14853  output,
14854  but only by a line break; together with 
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 PassThru 1
14860 \end_layout
14861
14862 \end_inset
14863
14864 , this allows to emulate a plain text editor (like the ERT inset).
14865 \end_layout
14866
14867 \begin_layout Description
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 ParIndent
14873 \end_layout
14874
14875 \end_inset
14876
14877  [
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 string=""
14883 \end_layout
14884
14885 \end_inset
14886
14887 ] The indent of the very first line of a paragraph.
14888  The
14889 \begin_inset Newline newline
14890 \end_inset
14891
14892
14893 \begin_inset Flex Code
14894 status collapsed
14895
14896 \begin_layout Plain Layout
14897 Parindent
14898 \end_layout
14899
14900 \end_inset
14901
14902  will be fixed for a certain style.
14903  The exception is the default style, since the indentation for these paragraphs
14904  can be prohibited with 
14905 \begin_inset Flex Code
14906 status collapsed
14907
14908 \begin_layout Plain Layout
14909 NextNoIndent
14910 \end_layout
14911
14912 \end_inset
14913
14914 .
14915  Also, 
14916 \begin_inset Flex Code
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920 Standard
14921 \end_layout
14922
14923 \end_inset
14924
14925  style paragraphs inside environments use the 
14926 \begin_inset Flex Code
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930 Parindent
14931 \end_layout
14932
14933 \end_inset
14934
14935  of the environment, not their native one.
14936  For example, 
14937 \begin_inset Flex Code
14938 status collapsed
14939
14940 \begin_layout Plain Layout
14941 Standard
14942 \end_layout
14943
14944 \end_inset
14945
14946  paragraphs inside an enumeration are not indented.
14947 \end_layout
14948
14949 \begin_layout Description
14950 \begin_inset Flex Code
14951 status collapsed
14952
14953 \begin_layout Plain Layout
14954 ParSep
14955 \end_layout
14956
14957 \end_inset
14958
14959  [
14960 \begin_inset Flex Code
14961 status collapsed
14962
14963 \begin_layout Plain Layout
14964 float=0
14965 \end_layout
14966
14967 \end_inset
14968
14969 ] The vertical space between two paragraphs of this style.
14970 \end_layout
14971
14972 \begin_layout Description
14973 \begin_inset Flex Code
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 Parskip
14978 \end_layout
14979
14980 \end_inset
14981
14982  [
14983 \begin_inset Flex Code
14984 status collapsed
14985
14986 \begin_layout Plain Layout
14987 float=0
14988 \end_layout
14989
14990 \end_inset
14991
14992 ] \SpecialChar LyX
14993  allows the user to choose either 
14994 \begin_inset Quotes eld
14995 \end_inset
14996
14997 indent
14998 \begin_inset Quotes erd
14999 \end_inset
15000
15001  or 
15002 \begin_inset Quotes eld
15003 \end_inset
15004
15005 skip
15006 \begin_inset Quotes erd
15007 \end_inset
15008
15009  to separate paragraphs.
15010  When 
15011 \begin_inset Quotes eld
15012 \end_inset
15013
15014 indent
15015 \begin_inset Quotes erd
15016 \end_inset
15017
15018  is chosen, 
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 Parskip
15024 \end_layout
15025
15026 \end_inset
15027
15028  is ignored.
15029  When 
15030 \begin_inset Quotes eld
15031 \end_inset
15032
15033 skip
15034 \begin_inset Quotes erd
15035 \end_inset
15036
15037  is chosen, 
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 ParIndent
15043 \end_layout
15044
15045 \end_inset
15046
15047  is ignored and all paragraphs are separated by the 
15048 \begin_inset Flex Code
15049 status collapsed
15050
15051 \begin_layout Plain Layout
15052 Parskip
15053 \end_layout
15054
15055 \end_inset
15056
15057  argument.
15058  The vertical space is calculated with 
15059 \begin_inset Flex Code
15060 status collapsed
15061
15062 \begin_layout Plain Layout
15063 Parskip
15064 \begin_inset space ~
15065 \end_inset
15066
15067 * DefaultHeight
15068 \end_layout
15069
15070 \end_inset
15071
15072  where 
15073 \begin_inset Flex Code
15074 status collapsed
15075
15076 \begin_layout Plain Layout
15077 DefaultHeight
15078 \end_layout
15079
15080 \end_inset
15081
15082  is the height of a row with the normal font.
15083  This way, the look stays the same with different screen fonts.
15084 \end_layout
15085
15086 \begin_layout Description
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 PassThru
15092 \end_layout
15093
15094 \end_inset
15095
15096  [
15097 \begin_inset Flex Code
15098 status collapsed
15099
15100 \begin_layout Plain Layout
15101
15102 \emph on
15103 0
15104 \end_layout
15105
15106 \end_inset
15107
15108 ,
15109 \begin_inset space \thinspace{}
15110 \end_inset
15111
15112
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117 1
15118 \end_layout
15119
15120 \end_inset
15121
15122 ] Whether the contents of this paragraph should be output in raw form, meaning
15123  without special translations that \SpecialChar LaTeX
15124  would require.
15125 \end_layout
15126
15127 \begin_layout Description
15128 \begin_inset Flex Code
15129 status collapsed
15130
15131 \begin_layout Plain Layout
15132 PassThruChars
15133 \end_layout
15134
15135 \end_inset
15136
15137  [
15138 \begin_inset Flex Code
15139 status collapsed
15140
15141 \begin_layout Plain Layout
15142 string
15143 \end_layout
15144
15145 \end_inset
15146
15147 ]
15148 \family typewriter
15149  
15150 \family default
15151 Defines individual characters that should be output in raw form, meaning
15152  without special translations that \SpecialChar LaTeX
15153  would require.
15154 \end_layout
15155
15156 \begin_layout Description
15157 \begin_inset Flex Code
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 Preamble
15162 \end_layout
15163
15164 \end_inset
15165
15166  Information to be included in the \SpecialChar LaTeX
15167  preamble when this style is used.
15168  Used to define macros, load packages, etc., required by this particular
15169  style.
15170  Must end with 
15171 \begin_inset Quotes eld
15172 \end_inset
15173
15174
15175 \begin_inset Flex Code
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179 EndPreamble
15180 \end_layout
15181
15182 \end_inset
15183
15184
15185 \begin_inset Quotes erd
15186 \end_inset
15187
15188 .
15189 \end_layout
15190
15191 \begin_layout Description
15192 \begin_inset Flex Code
15193 status collapsed
15194
15195 \begin_layout Plain Layout
15196 RefPrefix
15197 \end_layout
15198
15199 \end_inset
15200
15201  [
15202 \begin_inset Flex Code
15203 status collapsed
15204
15205 \begin_layout Plain Layout
15206 string
15207 \end_layout
15208
15209 \end_inset
15210
15211 ] The prefix to use when creating labels referring to paragraphs of this
15212  type.
15213  This allows the use of formatted references.
15214 \end_layout
15215
15216 \begin_layout Description
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 Requires 
15222 \end_layout
15223
15224 \end_inset
15225
15226  [
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 string
15232 \end_layout
15233
15234 \end_inset
15235
15236 ] Whether the style requires the feature 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 string
15242 \end_layout
15243
15244 \end_inset
15245
15246  (see 
15247 \begin_inset CommandInset ref
15248 LatexCommand ref
15249 reference "chap:List-of-functions"
15250
15251 \end_inset
15252
15253  for the list of features).
15254  If you require a package with specific options, you can additionally use
15255  
15256 \begin_inset Flex Code
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 PackageOptions
15261 \end_layout
15262
15263 \end_inset
15264
15265  as a general text class parameter (see 
15266 \begin_inset CommandInset ref
15267 LatexCommand ref
15268 reference "subsec:General-text-class"
15269
15270 \end_inset
15271
15272 ).
15273 \end_layout
15274
15275 \begin_layout Description
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 ResetArgs
15281 \end_layout
15282
15283 \end_inset
15284
15285  [
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290
15291 \emph on
15292 0
15293 \end_layout
15294
15295 \end_inset
15296
15297 ,
15298 \begin_inset Flex Code
15299 status collapsed
15300
15301 \begin_layout Plain Layout
15302 1
15303 \end_layout
15304
15305 \end_inset
15306
15307 ] Resets the \SpecialChar LaTeX
15308  arguments of this style (as defined via the 
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 Argument
15314 \end_layout
15315
15316 \end_inset
15317
15318  tag).
15319  This is useful if you have copied a style via 
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 CopyStyle
15325 \end_layout
15326
15327 \end_inset
15328
15329 , but you do not want to inherit its (required and optional) arguments.
15330 \end_layout
15331
15332 \begin_layout Description
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 ResumeCounter
15338 \end_layout
15339
15340 \end_inset
15341
15342  [
15343 \begin_inset Flex Code
15344 status collapsed
15345
15346 \begin_layout Plain Layout
15347
15348 \emph on
15349 0
15350 \end_layout
15351
15352 \end_inset
15353
15354 ,
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 1
15360 \end_layout
15361
15362 \end_inset
15363
15364 ] Resumes a counter that is usually reset at each new sequence of layouts.
15365  This is currently only useful when 
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 LabelType
15371 \end_layout
15372
15373 \end_inset
15374
15375  is 
15376 \begin_inset Flex Code
15377 status collapsed
15378
15379 \begin_layout Plain Layout
15380 Enumerate
15381 \end_layout
15382
15383 \end_inset
15384
15385 .
15386 \end_layout
15387
15388 \begin_layout Description
15389 \begin_inset Flex Code
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 RightDelim
15394 \end_layout
15395
15396 \end_inset
15397
15398  [
15399 \begin_inset Flex Code
15400 status collapsed
15401
15402 \begin_layout Plain Layout
15403 string
15404 \end_layout
15405
15406 \end_inset
15407
15408 ] A string that is put at the end of the layout content.
15409  A line break in the output can be indicated by 
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 <br/>
15415 \end_layout
15416
15417 \end_inset
15418
15419 .
15420 \end_layout
15421
15422 \begin_layout Description
15423 \begin_inset Flex Code
15424 status collapsed
15425
15426 \begin_layout Plain Layout
15427 RightMargin
15428 \end_layout
15429
15430 \end_inset
15431
15432  [
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 string=""
15438 \end_layout
15439
15440 \end_inset
15441
15442 ] Similar to 
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 LeftMargin
15448 \end_layout
15449
15450 \end_inset
15451
15452 .
15453 \end_layout
15454
15455 \begin_layout Description
15456 \begin_inset Flex Code
15457 status collapsed
15458
15459 \begin_layout Plain Layout
15460 Spacing
15461 \end_layout
15462
15463 \end_inset
15464
15465  [
15466 \begin_inset Flex Code
15467 status collapsed
15468
15469 \begin_layout Plain Layout
15470
15471 \emph on
15472 single
15473 \end_layout
15474
15475 \end_inset
15476
15477
15478 \begin_inset Flex Code
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 onehalf
15483 \end_layout
15484
15485 \end_inset
15486
15487
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492 double
15493 \end_layout
15494
15495 \end_inset
15496
15497
15498 \begin_inset Flex Code
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502 other
15503 \begin_inset space ~
15504 \end_inset
15505
15506 <value>
15507 \end_layout
15508
15509 \end_inset
15510
15511 ] This defines what the default spacing should be in the style.
15512  The arguments 
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 single
15518 \end_layout
15519
15520 \end_inset
15521
15522
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 onehalf
15528 \end_layout
15529
15530 \end_inset
15531
15532  and 
15533 \begin_inset Flex Code
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537 double
15538 \end_layout
15539
15540 \end_inset
15541
15542  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15543  If you specify the argument 
15544 \begin_inset Flex Code
15545 status collapsed
15546
15547 \begin_layout Plain Layout
15548 other
15549 \end_layout
15550
15551 \end_inset
15552
15553 , then you must also provide a value argument which will be the actual multiplie
15554 r value.
15555  Note that, contrary to other parameters, 
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 Spacing
15561 \end_layout
15562
15563 \end_inset
15564
15565  implies the generation of specific \SpecialChar LaTeX
15566  code, using the \SpecialChar LaTeX
15567  package 
15568 \family roman
15569
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 setspace
15575 \end_layout
15576
15577 \end_inset
15578
15579 .
15580 \end_layout
15581
15582 \begin_layout Description
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587 Spellcheck
15588 \end_layout
15589
15590 \end_inset
15591
15592  [
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597 0
15598 \end_layout
15599
15600 \end_inset
15601
15602 ,
15603 \begin_inset space \thinspace{}
15604 \end_inset
15605
15606
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611
15612 \emph on
15613 1
15614 \end_layout
15615
15616 \end_inset
15617
15618 ] Allow spell-checking paragraphs of this style.
15619  Default is true.
15620 \end_layout
15621
15622 \begin_layout Description
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 StepMasterCounter
15628 \end_layout
15629
15630 \end_inset
15631
15632  [
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637
15638 \emph on
15639 0
15640 \end_layout
15641
15642 \end_inset
15643
15644 ,
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 1
15650 \end_layout
15651
15652 \end_inset
15653
15654 ] Steps the master counter of a given counter at the beginning of a new
15655  sequence of layouts.
15656  This is currently only useful when 
15657 \begin_inset Flex Code
15658 status collapsed
15659
15660 \begin_layout Plain Layout
15661 LabelType
15662 \end_layout
15663
15664 \end_inset
15665
15666  is 
15667 \begin_inset Flex Code
15668 status collapsed
15669
15670 \begin_layout Plain Layout
15671 Enumerate
15672 \end_layout
15673
15674 \end_inset
15675
15676 .
15677 \end_layout
15678
15679 \begin_layout Description
15680 \begin_inset Flex Code
15681 status collapsed
15682
15683 \begin_layout Plain Layout
15684 TextFont
15685 \end_layout
15686
15687 \end_inset
15688
15689  The font used for the text body .
15690  See 
15691 \begin_inset CommandInset ref
15692 LatexCommand ref
15693 reference "subsec:Font-description"
15694
15695 \end_inset
15696
15697 .
15698 \end_layout
15699
15700 \begin_layout Description
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 TocLevel
15706 \end_layout
15707
15708 \end_inset
15709
15710
15711 \series medium
15712  [
15713 \begin_inset Flex Code
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717
15718 \series medium
15719 int=3
15720 \end_layout
15721
15722 \end_inset
15723
15724 ]
15725 \series default
15726  The level of the style in the table of contents.
15727  This is used for automatic numbering of section headings.
15728 \end_layout
15729
15730 \begin_layout Description
15731 \begin_inset Flex Code
15732 status collapsed
15733
15734 \begin_layout Plain Layout
15735 ToggleIndent
15736 \end_layout
15737
15738 \end_inset
15739
15740  [
15741 \emph on
15742
15743 \begin_inset Flex Code
15744 status collapsed
15745
15746 \begin_layout Plain Layout
15747
15748 \emph on
15749 default
15750 \end_layout
15751
15752 \end_inset
15753
15754
15755 \emph default
15756
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 always
15762 \end_layout
15763
15764 \end_inset
15765
15766
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 never
15772 \end_layout
15773
15774 \end_inset
15775
15776 ] This tag determines whether the first line indentation of this paragraph
15777  can be toggled via the Paragraph settings dialog.
15778  If 
15779 \emph on
15780
15781 \begin_inset Flex Code
15782 status collapsed
15783
15784 \begin_layout Plain Layout
15785
15786 \emph off
15787 default
15788 \end_layout
15789
15790 \end_inset
15791
15792
15793 \emph default
15794  is set, indentation can be toggled if the document settings use 
15795 \begin_inset Quotes eld
15796 \end_inset
15797
15798 indent
15799 \begin_inset Quotes erd
15800 \end_inset
15801
15802  paragraph style, with 
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 always
15808 \end_layout
15809
15810 \end_inset
15811
15812 , indentation can always be toggled, notwithstanding the document settings,
15813  with 
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 never
15819 \end_layout
15820
15821 \end_inset
15822
15823 , indentation can never be toggled.
15824 \end_layout
15825
15826 \begin_layout Description
15827 \begin_inset Flex Code
15828 status collapsed
15829
15830 \begin_layout Plain Layout
15831 TopSep
15832 \end_layout
15833
15834 \end_inset
15835
15836  [
15837 \begin_inset Flex Code
15838 status collapsed
15839
15840 \begin_layout Plain Layout
15841 float=0
15842 \end_layout
15843
15844 \end_inset
15845
15846 ] The vertical space with which the very first of a chain of paragraphs
15847  with this style is separated from the previous paragraph.
15848  If the previous paragraph has another style, the separations are not simply
15849  added, but the maximum is taken.
15850 \end_layout
15851
15852 \begin_layout Subsection
15853 \begin_inset CommandInset label
15854 LatexCommand label
15855 name "subsec:I18n"
15856
15857 \end_inset
15858
15859 Internationalization of Paragraph Styles
15860 \end_layout
15861
15862 \begin_layout Standard
15863 \SpecialChar LyX
15864  has long supported internationalization of layout information, but, until
15865  version 2.0, this applied only to the user interface and not to, say, PDF
15866  output.
15867  Thus, French authors were forced to resort to ugly hacks if they wanted
15868  `
15869 \lang french
15870 Théorème
15871 \lang english
15872  1' instead of `Theorem 1'.
15873  Thanks to Georg Baum, that is no longer the case.
15874 \end_layout
15875
15876 \begin_layout Standard
15877 If a 
15878 \begin_inset Flex Code
15879 status collapsed
15880
15881 \begin_layout Plain Layout
15882 Style
15883 \end_layout
15884
15885 \end_inset
15886
15887  defines text that is to appear in the typeset document, it may use 
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 LangPreamble
15893 \end_layout
15894
15895 \end_inset
15896
15897  and 
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 BabelPreamble
15903 \end_layout
15904
15905 \end_inset
15906
15907  to support non-English and even multi-language documents correctly.
15908  The following excerpt (from the 
15909 \begin_inset Flex Code
15910 status collapsed
15911
15912 \begin_layout Plain Layout
15913 theorems-ams.inc
15914 \end_layout
15915
15916 \end_inset
15917
15918  file) shows how this works:
15919 \end_layout
15920
15921 \begin_layout LyX-Code
15922 Preamble
15923 \end_layout
15924
15925 \begin_deeper
15926 \begin_layout LyX-Code
15927   
15928 \backslash
15929 theoremstyle{remark}
15930 \end_layout
15931
15932 \begin_layout LyX-Code
15933   
15934 \backslash
15935 newtheorem{claim}[thm]{
15936 \backslash
15937 protect
15938 \backslash
15939 claimname}
15940 \end_layout
15941
15942 \begin_layout LyX-Code
15943 EndPreamble
15944 \end_layout
15945
15946 \begin_layout LyX-Code
15947 LangPreamble
15948 \end_layout
15949
15950 \begin_layout LyX-Code
15951   
15952 \backslash
15953 providecommand{
15954 \backslash
15955 claimname}{_(Claim)}
15956 \end_layout
15957
15958 \begin_layout LyX-Code
15959 EndLangPreamble
15960 \end_layout
15961
15962 \begin_layout LyX-Code
15963 BabelPreamble
15964 \end_layout
15965
15966 \begin_layout LyX-Code
15967     
15968 \backslash
15969 addto
15970 \backslash
15971 captions$$lang{
15972 \backslash
15973 renewcommand{
15974 \backslash
15975 claimname}{_(Claim)}}
15976 \end_layout
15977
15978 \begin_layout LyX-Code
15979 EndBabelPreamble
15980 \end_layout
15981
15982 \end_deeper
15983 \begin_layout Standard
15984 In principle, any legal \SpecialChar LaTeX
15985  may appear in the 
15986 \begin_inset Flex Code
15987 status collapsed
15988
15989 \begin_layout Plain Layout
15990 LangPreamble
15991 \end_layout
15992
15993 \end_inset
15994
15995  and 
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 BabelPreamble
16001 \end_layout
16002
16003 \end_inset
16004
16005  tags, but in practice they will typically look as they do here.
16006  The key to correct translation of the typeset text is the definition of
16007  the \SpecialChar LaTeX
16008  command 
16009 \begin_inset Flex Code
16010 status collapsed
16011
16012 \begin_layout Plain Layout
16013
16014 \backslash
16015 claimname
16016 \end_layout
16017
16018 \end_inset
16019
16020  and its use in 
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025
16026 \backslash
16027 newtheorem
16028 \end_layout
16029
16030 \end_inset
16031
16032 .
16033  
16034 \end_layout
16035
16036 \begin_layout Standard
16037 The 
16038 \begin_inset Flex Code
16039 status collapsed
16040
16041 \begin_layout Plain Layout
16042 LangPreamble
16043 \end_layout
16044
16045 \end_inset
16046
16047  tag provides for internationalization based upon the overall language of
16048  the document.
16049  The contents of the tag will be included in the preamble, just as with
16050  the 
16051 \begin_inset Flex Code
16052 status collapsed
16053
16054 \begin_layout Plain Layout
16055 Preamble
16056 \end_layout
16057
16058 \end_inset
16059
16060  tag.
16061  What makes it special is the use of the 
16062 \begin_inset Quotes eld
16063 \end_inset
16064
16065 function
16066 \begin_inset Quotes erd
16067 \end_inset
16068
16069  
16070 \begin_inset Flex Code
16071 status collapsed
16072
16073 \begin_layout Plain Layout
16074 _()
16075 \end_layout
16076
16077 \end_inset
16078
16079 , which will be replaced, when \SpecialChar LyX
16080  produces \SpecialChar LaTeX
16081  output, with the translation of
16082  its argument into the document language.
16083 \end_layout
16084
16085 \begin_layout Standard
16086 The 
16087 \begin_inset Flex Code
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091 BabelPreamble
16092 \end_layout
16093
16094 \end_inset
16095
16096  tag is more complex, since it is meant to provide support for multi-language
16097  documents and so offers an interface to the 
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 babel
16103 \end_layout
16104
16105 \end_inset
16106
16107  package.
16108  Its contents will be added to the preamble once for each language that
16109  appears in the document.
16110  In this case, the argument to 
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 _()
16116 \end_layout
16117
16118 \end_inset
16119
16120  will be replaced with its translation into the language in question; the
16121  expression 
16122 \begin_inset Flex Code
16123 status collapsed
16124
16125 \begin_layout Plain Layout
16126 $$lang
16127 \end_layout
16128
16129 \end_inset
16130
16131  is replaced by the language name (as used by the babel package).
16132 \end_layout
16133
16134 \begin_layout Standard
16135 A German document that also included a French section would thus have the
16136  following in the preamble:
16137 \end_layout
16138
16139 \begin_layout LyX-Code
16140
16141 \backslash
16142 addto
16143 \backslash
16144 captionsfrench{
16145 \backslash
16146 renewcommand{
16147 \backslash
16148 claimname}{Affirmation}}
16149 \begin_inset Newline newline
16150 \end_inset
16151
16152
16153 \backslash
16154 addto
16155 \backslash
16156 captionsngerman{
16157 \backslash
16158 renewcommand{
16159 \backslash
16160 claimname}{Behauptung}}
16161 \begin_inset Newline newline
16162 \end_inset
16163
16164
16165 \backslash
16166 providecommand{
16167 \backslash
16168 claimname}{Behauptung}
16169 \end_layout
16170
16171 \begin_layout Standard
16172 \SpecialChar LaTeX
16173  and 
16174 \begin_inset Flex Code
16175 status collapsed
16176
16177 \begin_layout Plain Layout
16178 babel
16179 \end_layout
16180
16181 \end_inset
16182
16183  will then conspire to produce the correct text in the output.
16184 \end_layout
16185
16186 \begin_layout Standard
16187 One important point to note here is that the translations are provided by
16188  \SpecialChar LyX
16189  itself, through the file 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 layouttranslations
16195 \end_layout
16196
16197 \end_inset
16198
16199 .
16200  This means, in effect, that 
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 LangPreamble
16206 \end_layout
16207
16208 \end_inset
16209
16210  and 
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 BabelPreamble
16216 \end_layout
16217
16218 \end_inset
16219
16220  are really only of use in layout files that are provided with \SpecialChar LyX
16221 , since text
16222  entered in user-created layout files will not be seen by \SpecialChar LyX
16223 's internationalizatio
16224 n routines unless the 
16225 \begin_inset Flex Code
16226 status collapsed
16227
16228 \begin_layout Plain Layout
16229 layouttranslations
16230 \end_layout
16231
16232 \end_inset
16233
16234  file is modified accordingly.
16235  That said, however, any layout created with the intention that it will
16236  be included with \SpecialChar LyX
16237  should use these tags where appropriate.
16238  Please note that the paragraph style translations provided by \SpecialChar LyX
16239  will never
16240  change with a minor update (e.
16241 \begin_inset space \thinspace{}
16242 \end_inset
16243
16244 g.
16245 \begin_inset space \space{}
16246 \end_inset
16247
16248 from version 2.1.x to 2.1.y).
16249  It is however quite likely that a major update (e.
16250 \begin_inset space \thinspace{}
16251 \end_inset
16252
16253 g.
16254 \begin_inset space \space{}
16255 \end_inset
16256
16257 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16258 \end_layout
16259
16260 \begin_layout Subsection
16261 Floats
16262 \begin_inset CommandInset label
16263 LatexCommand label
16264 name "subsec:Floats"
16265
16266 \end_inset
16267
16268
16269 \end_layout
16270
16271 \begin_layout Standard
16272 It is necessary to define the floats (
16273 \begin_inset Flex Noun
16274 status collapsed
16275
16276 \begin_layout Plain Layout
16277 figure
16278 \end_layout
16279
16280 \end_inset
16281
16282
16283 \begin_inset Flex Noun
16284 status collapsed
16285
16286 \begin_layout Plain Layout
16287 table
16288 \end_layout
16289
16290 \end_inset
16291
16292 , \SpecialChar ldots
16293 ) in the text class itself.
16294  Standard floats are included in the file 
16295 \begin_inset Flex Code
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299 stdfloats.inc
16300 \end_layout
16301
16302 \end_inset
16303
16304 , so you may have to do no more than add
16305 \end_layout
16306
16307 \begin_layout LyX-Code
16308 Input stdfloats.inc
16309 \end_layout
16310
16311 \begin_layout Standard
16312 to your layout file.
16313  If you want to implement a text class that proposes some other float types
16314  (like the AGU class bundled with \SpecialChar LyX
16315 ), the information below will hopefully
16316  help you:
16317 \end_layout
16318
16319 \begin_layout Description
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 AllowedPlacement
16325 \end_layout
16326
16327 \end_inset
16328
16329  [
16330 \begin_inset Flex Code
16331 status collapsed
16332
16333 \begin_layout Plain Layout
16334 string
16335 \end_layout
16336
16337 \end_inset
16338
16339 =!htbpH] Allowed placement options for this float type.
16340  The value is a string of placement characters.
16341  Possible characters include: 
16342 \emph on
16343 h
16344 \emph default
16345  (
16346 \begin_inset Quotes eld
16347 \end_inset
16348
16349 here if possible
16350 \begin_inset Quotes erd
16351 \end_inset
16352
16353 ), 
16354 \emph on
16355 t
16356 \emph default
16357  (
16358 \begin_inset Quotes eld
16359 \end_inset
16360
16361 top of page
16362 \begin_inset Quotes erd
16363 \end_inset
16364
16365 ), 
16366 \emph on
16367 b
16368 \emph default
16369  (
16370 \begin_inset Quotes eld
16371 \end_inset
16372
16373 bottom of page
16374 \begin_inset Quotes erd
16375 \end_inset
16376
16377 ), 
16378 \emph on
16379 p
16380 \emph default
16381  (
16382 \begin_inset Quotes eld
16383 \end_inset
16384
16385 page of floats
16386 \begin_inset Quotes erd
16387 \end_inset
16388
16389 ), 
16390 \emph on
16391 H
16392 \emph default
16393  (
16394 \begin_inset Quotes eld
16395 \end_inset
16396
16397 here definitely
16398 \begin_inset Quotes erd
16399 \end_inset
16400
16401 ) and 
16402 \emph on
16403 !
16404 \emph default
16405  (
16406 \begin_inset Quotes eld
16407 \end_inset
16408
16409 ignore LaTeX rules
16410 \begin_inset Quotes erd
16411 \end_inset
16412
16413 ).
16414  The order of the characters in the string does not matter.
16415  If no placement options are allowed, use the string 
16416 \emph on
16417 none
16418 \emph default
16419 .
16420 \end_layout
16421
16422 \begin_layout Description
16423 \begin_inset Flex Code
16424 status collapsed
16425
16426 \begin_layout Plain Layout
16427 AllowsSideways
16428 \end_layout
16429
16430 \end_inset
16431
16432  [
16433 \begin_inset Flex Code
16434 status collapsed
16435
16436 \begin_layout Plain Layout
16437
16438 \emph off
16439 0
16440 \end_layout
16441
16442 \end_inset
16443
16444 ,
16445 \begin_inset space \thinspace{}
16446 \end_inset
16447
16448
16449 \emph on
16450
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455
16456 \emph on
16457 1
16458 \end_layout
16459
16460 \end_inset
16461
16462
16463 \emph default
16464 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16465 -package 
16466 \family typewriter
16467 rotfloat
16468 \family default
16469  (sidewaysfloat).
16470  Set to 
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 0
16476 \end_layout
16477
16478 \end_inset
16479
16480  if the float does not support this feature.
16481 \end_layout
16482
16483 \begin_layout Description
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488 AllowsWide
16489 \end_layout
16490
16491 \end_inset
16492
16493  [
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498
16499 \emph off
16500 0
16501 \end_layout
16502
16503 \end_inset
16504
16505 ,
16506 \begin_inset space \thinspace{}
16507 \end_inset
16508
16509
16510 \emph on
16511
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516
16517 \emph on
16518 1
16519 \end_layout
16520
16521 \end_inset
16522
16523
16524 \emph default
16525 ] Defines whether the float has a starred variant that spans columns in
16526  a two column paragraph.
16527  Set to 
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 0
16533 \end_layout
16534
16535 \end_inset
16536
16537  if the float does not support this feature.
16538 \end_layout
16539
16540 \begin_layout Description
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 Extension
16546 \end_layout
16547
16548 \end_inset
16549
16550  [
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 string
16556 \end_layout
16557
16558 \end_inset
16559
16560 =
16561 \begin_inset Quotes erd
16562 \end_inset
16563
16564
16565 \begin_inset Quotes erd
16566 \end_inset
16567
16568 ] The file name extension of an auxiliary file for the list of figures (or
16569  whatever).
16570  \SpecialChar LaTeX
16571  writes the captions to this file.
16572 \end_layout
16573
16574 \begin_layout Description
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 GuiName
16580 \end_layout
16581
16582 \end_inset
16583
16584  [
16585 \begin_inset Flex Code
16586 status collapsed
16587
16588 \begin_layout Plain Layout
16589 string
16590 \end_layout
16591
16592 \end_inset
16593
16594 =
16595 \begin_inset Quotes erd
16596 \end_inset
16597
16598
16599 \begin_inset Quotes erd
16600 \end_inset
16601
16602 ] The string that will be used in the menus and also for the caption.
16603  This is translated to the current language if babel is used.
16604 \end_layout
16605
16606 \begin_layout Description
16607 \begin_inset Flex Code
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611 HTML*
16612 \end_layout
16613
16614 \end_inset
16615
16616  These tags control the XHTML output.
16617  See 
16618 \begin_inset CommandInset ref
16619 LatexCommand ref
16620 reference "sec:Tags-for-XHTML"
16621
16622 \end_inset
16623
16624 .
16625 \end_layout
16626
16627 \begin_layout Description
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 IsPredefined
16633 \end_layout
16634
16635 \end_inset
16636
16637  [
16638 \emph on
16639
16640 \begin_inset Flex Code
16641 status collapsed
16642
16643 \begin_layout Plain Layout
16644 0
16645 \end_layout
16646
16647 \end_inset
16648
16649
16650 \emph default
16651 ,
16652 \begin_inset space \thinspace{}
16653 \end_inset
16654
16655
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660 1
16661 \end_layout
16662
16663 \end_inset
16664
16665 ] Indicates whether the float is already defined in the document class or
16666  if instead the \SpecialChar LaTeX
16667  package 
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 float
16673 \end_layout
16674
16675 \end_inset
16676
16677  needs to be loaded to define it on-the-fly.
16678  The default is 
16679 \begin_inset Flex Code
16680 status collapsed
16681
16682 \begin_layout Plain Layout
16683 0
16684 \end_layout
16685
16686 \end_inset
16687
16688 , which means: 
16689 \begin_inset Flex Code
16690 status collapsed
16691
16692 \begin_layout Plain Layout
16693 float
16694 \end_layout
16695
16696 \end_inset
16697
16698  is used.
16699  It should be set to 
16700 \begin_inset Flex Code
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 1
16705 \end_layout
16706
16707 \end_inset
16708
16709  if the float is already defined by the \SpecialChar LaTeX
16710  document class.
16711 \end_layout
16712
16713 \begin_layout Description
16714 \begin_inset Flex Code
16715 status collapsed
16716
16717 \begin_layout Plain Layout
16718 ListCommand
16719 \end_layout
16720
16721 \end_inset
16722
16723  [
16724 \begin_inset Flex Code
16725 status collapsed
16726
16727 \begin_layout Plain Layout
16728 string
16729 \end_layout
16730
16731 \end_inset
16732
16733 =
16734 \begin_inset Quotes erd
16735 \end_inset
16736
16737
16738 \begin_inset Quotes erd
16739 \end_inset
16740
16741 ] The command used to generate a list of floats of this type; the leading
16742  `
16743 \backslash
16744 ' must be omitted.
16745  This 
16746 \emph on
16747 must
16748 \emph default
16749  be given if 
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754 UsesFloatPkg
16755 \end_layout
16756
16757 \end_inset
16758
16759  is false, since there is no standard way to generate this command.
16760  It is ignored if 
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765 UsesFloatPkg
16766 \end_layout
16767
16768 \end_inset
16769
16770  is true, since in that case there is a standard way to define the command.
16771 \end_layout
16772
16773 \begin_layout Description
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 ListName
16779 \end_layout
16780
16781 \end_inset
16782
16783  [
16784 \begin_inset Flex Code
16785 status collapsed
16786
16787 \begin_layout Plain Layout
16788 string
16789 \end_layout
16790
16791 \end_inset
16792
16793 =
16794 \begin_inset Quotes erd
16795 \end_inset
16796
16797
16798 \begin_inset Quotes erd
16799 \end_inset
16800
16801 ] A title for a list of floats of this kind (list of figures, tables, or
16802  whatever).
16803  It is used for the screen label within \SpecialChar LyX
16804 , it is used by \SpecialChar LaTeX
16805  for the title and
16806  it is used as the title in the XHTML output.
16807  It will be translated to the document language.
16808 \end_layout
16809
16810 \begin_layout Description
16811 \begin_inset Flex Code
16812 status collapsed
16813
16814 \begin_layout Plain Layout
16815 NumberWithin
16816 \end_layout
16817
16818 \end_inset
16819
16820  [
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 string
16826 \end_layout
16827
16828 \end_inset
16829
16830 =
16831 \begin_inset Quotes erd
16832 \end_inset
16833
16834
16835 \begin_inset Quotes erd
16836 \end_inset
16837
16838 ] This (optional) argument determines whether floats of this class will
16839  be numbered within some sectional unit of the document.
16840  For example, if 
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 NumberWithin
16846 \end_layout
16847
16848 \end_inset
16849
16850  is set to 
16851 \begin_inset Quotes eld
16852 \end_inset
16853
16854
16855 \begin_inset Flex Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 chapter
16860 \end_layout
16861
16862 \end_inset
16863
16864
16865 \begin_inset Quotes erd
16866 \end_inset
16867
16868 , the floats will be numbered within chapters.
16869  
16870 \end_layout
16871
16872 \begin_layout Description
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 Placement
16878 \end_layout
16879
16880 \end_inset
16881
16882  [
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 string
16888 \end_layout
16889
16890 \end_inset
16891
16892 =
16893 \begin_inset Quotes erd
16894 \end_inset
16895
16896
16897 \begin_inset Quotes erd
16898 \end_inset
16899
16900 ] The default placement for the given class of floats.
16901  The string should be as in standard \SpecialChar LaTeX
16902
16903 \begin_inset Flex Code
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 t
16908 \end_layout
16909
16910 \end_inset
16911
16912
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 b
16918 \end_layout
16919
16920 \end_inset
16921
16922
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 p
16928 \end_layout
16929
16930 \end_inset
16931
16932  and 
16933 \begin_inset Flex Code
16934 status collapsed
16935
16936 \begin_layout Plain Layout
16937 h
16938 \end_layout
16939
16940 \end_inset
16941
16942  for top, bottom, page, and here, respectively.
16943 \begin_inset Foot
16944 status collapsed
16945
16946 \begin_layout Plain Layout
16947 Note that the order of these letters in the string is irrelevant, like in
16948  \SpecialChar LaTeX
16949 .
16950 \end_layout
16951
16952 \end_inset
16953
16954  On top of that there is a new type, 
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 H
16960 \end_layout
16961
16962 \end_inset
16963
16964 , which does not really correspond to a float, since it means: put it 
16965 \begin_inset Quotes eld
16966 \end_inset
16967
16968 here
16969 \begin_inset Quotes erd
16970 \end_inset
16971
16972  and nowhere else.
16973  Note however that the 
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978 H
16979 \end_layout
16980
16981 \end_inset
16982
16983  specifier is special and, because of implementation details, cannot be
16984  used in non-built in float types.
16985  If you do not understand what this means, just use 
16986 \begin_inset Quotes eld
16987 \end_inset
16988
16989
16990 \begin_inset Flex Code
16991 status collapsed
16992
16993 \begin_layout Plain Layout
16994 tbp
16995 \end_layout
16996
16997 \end_inset
16998
16999
17000 \begin_inset Quotes erd
17001 \end_inset
17002
17003 .
17004 \end_layout
17005
17006 \begin_layout Description
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 RefPrefix
17012 \end_layout
17013
17014 \end_inset
17015
17016  [
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 string
17022 \end_layout
17023
17024 \end_inset
17025
17026 ] The prefix to use when creating labels referring to floats of this type.
17027  This allows the use of formatted references.
17028  Note that you can remove any 
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 RefPrefix
17034 \end_layout
17035
17036 \end_inset
17037
17038  set by a copied style by using the special value 
17039 \begin_inset Quotes eld
17040 \end_inset
17041
17042 OFF
17043 \begin_inset Quotes erd
17044 \end_inset
17045
17046 , which must be all caps.
17047 \end_layout
17048
17049 \begin_layout Description
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 Style
17055 \end_layout
17056
17057 \end_inset
17058
17059  [
17060 \begin_inset Flex Code
17061 status collapsed
17062
17063 \begin_layout Plain Layout
17064 string
17065 \end_layout
17066
17067 \end_inset
17068
17069 =
17070 \begin_inset Quotes erd
17071 \end_inset
17072
17073
17074 \begin_inset Quotes erd
17075 \end_inset
17076
17077 ] The style used when defining the float using 
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082
17083 \backslash
17084 newfloat
17085 \end_layout
17086
17087 \end_inset
17088
17089 .
17090 \end_layout
17091
17092 \begin_layout Description
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 Type
17098 \end_layout
17099
17100 \end_inset
17101
17102  [
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 string
17108 \end_layout
17109
17110 \end_inset
17111
17112 =
17113 \begin_inset Quotes erd
17114 \end_inset
17115
17116
17117 \begin_inset Quotes erd
17118 \end_inset
17119
17120 ] The 
17121 \begin_inset Quotes eld
17122 \end_inset
17123
17124 type
17125 \begin_inset Quotes erd
17126 \end_inset
17127
17128  of the new class of floats, like program or algorithm.
17129  After the appropriate 
17130 \begin_inset Flex Code
17131 status collapsed
17132
17133 \begin_layout Plain Layout
17134
17135 \backslash
17136 newfloat
17137 \end_layout
17138
17139 \end_inset
17140
17141 , commands such as 
17142 \begin_inset Flex Code
17143 status collapsed
17144
17145 \begin_layout Plain Layout
17146
17147 \backslash
17148 begin{program}
17149 \end_layout
17150
17151 \end_inset
17152
17153  or 
17154 \begin_inset Flex Code
17155 status collapsed
17156
17157 \begin_layout Plain Layout
17158
17159 \backslash
17160 end{algorithm*}
17161 \end_layout
17162
17163 \end_inset
17164
17165  will be available.
17166 \end_layout
17167
17168 \begin_layout Description
17169 \begin_inset Flex Code
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173 UsesFloatPkg
17174 \end_layout
17175
17176 \end_inset
17177
17178  [
17179 \begin_inset Flex Code
17180 status collapsed
17181
17182 \begin_layout Plain Layout
17183 0
17184 \end_layout
17185
17186 \end_inset
17187
17188 ,
17189 \begin_inset space \thinspace{}
17190 \end_inset
17191
17192
17193 \begin_inset Flex Code
17194 status collapsed
17195
17196 \begin_layout Plain Layout
17197
17198 \emph on
17199 1
17200 \end_layout
17201
17202 \end_inset
17203
17204 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17205  package 
17206 \begin_inset Flex Code
17207 status collapsed
17208
17209 \begin_layout Plain Layout
17210 float
17211 \end_layout
17212
17213 \end_inset
17214
17215 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17216  itself.
17217 \end_layout
17218
17219 \begin_layout Standard
17220 Note that defining a float with type 
17221 \begin_inset Flex Code
17222 status collapsed
17223
17224 \begin_layout Plain Layout
17225
17226 \emph on
17227 type
17228 \end_layout
17229
17230 \end_inset
17231
17232  automatically defines the corresponding counter with name 
17233 \begin_inset Flex Code
17234 status collapsed
17235
17236 \begin_layout Plain Layout
17237
17238 \emph on
17239 type
17240 \end_layout
17241
17242 \end_inset
17243
17244 .
17245 \end_layout
17246
17247 \begin_layout Subsection
17248 Flex insets and InsetLayout
17249 \begin_inset CommandInset label
17250 LatexCommand label
17251 name "subsec:Flex-insets-and"
17252
17253 \end_inset
17254
17255
17256 \end_layout
17257
17258 \begin_layout Standard
17259 Flex insets come in three different kinds: 
17260 \end_layout
17261
17262 \begin_layout Itemize
17263 character style (
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268 CharStyle
17269 \end_layout
17270
17271 \end_inset
17272
17273 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17274  commands as 
17275 \begin_inset Flex Code
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279
17280 \backslash
17281 noun
17282 \end_layout
17283
17284 \end_inset
17285
17286  and 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291
17292 \backslash
17293 code
17294 \end_layout
17295
17296 \end_inset
17297
17298 .
17299 \end_layout
17300
17301 \begin_layout Itemize
17302 user custom (
17303 \begin_inset Flex Code
17304 status collapsed
17305
17306 \begin_layout Plain Layout
17307 Custom
17308 \end_layout
17309
17310 \end_inset
17311
17312 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17313  code,
17314  footnote, and the like.
17315  An obvious example is an endnote inset, which is defined in the 
17316 \begin_inset Flex Code
17317 status collapsed
17318
17319 \begin_layout Plain Layout
17320 endnote
17321 \end_layout
17322
17323 \end_inset
17324
17325  module.
17326 \end_layout
17327
17328 \begin_layout Itemize
17329 XML elements (
17330 \begin_inset Flex Code
17331 status collapsed
17332
17333 \begin_layout Plain Layout
17334 Element
17335 \end_layout
17336
17337 \end_inset
17338
17339 ): For use with DocBook classes.
17340 \end_layout
17341
17342 \begin_layout Standard
17343 Flex insets are defined using the 
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 InsetLayout
17349 \end_layout
17350
17351 \end_inset
17352
17353  tag, which shall be explained in a moment.
17354 \end_layout
17355
17356 \begin_layout Standard
17357 The 
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 InsetLayout
17363 \end_layout
17364
17365 \end_inset
17366
17367  tag also serves another function: It can be used to customize the general
17368  layout of many different types of insets.
17369  Currently, 
17370 \begin_inset Flex Code
17371 status collapsed
17372
17373 \begin_layout Plain Layout
17374 InsetLayout
17375 \end_layout
17376
17377 \end_inset
17378
17379  can be used to customize the layout parameters for footnotes, marginal
17380  notes, note insets, \SpecialChar TeX
17381  code (ERT) insets, branches, listings, indexes, boxes,
17382  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17383 \end_layout
17384
17385 \begin_layout Standard
17386 The 
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391 InsetLayout
17392 \end_layout
17393
17394 \end_inset
17395
17396  definition must begin with a line of the form:
17397 \end_layout
17398
17399 \begin_layout LyX-Code
17400 InsetLayout <type>
17401 \end_layout
17402
17403 \begin_layout Standard
17404 Here 
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409 <Type>
17410 \end_layout
17411
17412 \end_inset
17413
17414  indicates the inset whose layout is being defined, and here there are four
17415  cases.
17416 \end_layout
17417
17418 \begin_layout Enumerate
17419 The layout for a pre-existing inset is being modified.
17420  In this case, can be 
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 <Type>
17426 \end_layout
17427
17428 \end_inset
17429
17430  any one of the following: 
17431 \begin_inset Flex Code
17432 status collapsed
17433
17434 \begin_layout Plain Layout
17435 Algorithm
17436 \end_layout
17437
17438 \end_inset
17439
17440
17441 \begin_inset Flex Code
17442 status collapsed
17443
17444 \begin_layout Plain Layout
17445 Branch
17446 \end_layout
17447
17448 \end_inset
17449
17450
17451 \begin_inset Flex Code
17452 status collapsed
17453
17454 \begin_layout Plain Layout
17455 Box
17456 \end_layout
17457
17458 \end_inset
17459
17460
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 Box:shaded
17466 \end_layout
17467
17468 \end_inset
17469
17470
17471 \begin_inset Flex Code
17472 status collapsed
17473
17474 \begin_layout Plain Layout
17475 Caption:Standard
17476 \end_layout
17477
17478 \end_inset
17479
17480
17481 \begin_inset Flex Code
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485 ERT
17486 \end_layout
17487
17488 \end_inset
17489
17490
17491 \begin_inset Flex Code
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495 Figure
17496 \end_layout
17497
17498 \end_inset
17499
17500
17501 \begin_inset Flex Code
17502 status collapsed
17503
17504 \begin_layout Plain Layout
17505 Foot
17506 \end_layout
17507
17508 \end_inset
17509
17510
17511 \begin_inset Flex Code
17512 status collapsed
17513
17514 \begin_layout Plain Layout
17515 Index
17516 \end_layout
17517
17518 \end_inset
17519
17520
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525 Info
17526 \end_layout
17527
17528 \end_inset
17529
17530
17531 \begin_inset Flex Code
17532 status collapsed
17533
17534 \begin_layout Plain Layout
17535 Info:menu
17536 \end_layout
17537
17538 \end_inset
17539
17540
17541 \begin_inset Flex Code
17542 status collapsed
17543
17544 \begin_layout Plain Layout
17545 Info:shortcut
17546 \end_layout
17547
17548 \end_inset
17549
17550
17551 \begin_inset Flex Code
17552 status collapsed
17553
17554 \begin_layout Plain Layout
17555 Info:shortcuts
17556 \end_layout
17557
17558 \end_inset
17559
17560
17561 \begin_inset Flex Code
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 Listings
17566 \end_layout
17567
17568 \end_inset
17569
17570
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 Marginal
17576 \end_layout
17577
17578 \end_inset
17579
17580
17581 \begin_inset Flex Code
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 Note:Comment
17586 \end_layout
17587
17588 \end_inset
17589
17590
17591 \begin_inset Flex Code
17592 status collapsed
17593
17594 \begin_layout Plain Layout
17595 Note:Note
17596 \end_layout
17597
17598 \end_inset
17599
17600
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 Note:Greyedout
17606 \end_layout
17607
17608 \end_inset
17609
17610
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 Table
17616 \end_layout
17617
17618 \end_inset
17619
17620 , or 
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 URL
17626 \end_layout
17627
17628 \end_inset
17629
17630 .
17631 \end_layout
17632
17633 \begin_layout Enumerate
17634 The layout for a Flex inset is being defined.
17635  In this case, 
17636 \begin_inset Flex Code
17637 status collapsed
17638
17639 \begin_layout Plain Layout
17640 <Type>
17641 \end_layout
17642
17643 \end_inset
17644
17645  must be of the form 
17646 \begin_inset Quotes eld
17647 \end_inset
17648
17649
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 Flex:<name>
17655 \end_layout
17656
17657 \end_inset
17658
17659
17660 \begin_inset Quotes erd
17661 \end_inset
17662
17663 , where 
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 name
17669 \end_layout
17670
17671 \end_inset
17672
17673  may be be any valid identifier not used by a pre-existing Flex inset.
17674  The identifier may include spaces, but in that case the whole thing must
17675  be wrapped in quotes.
17676  Note that the definition of a flex inset 
17677 \emph on
17678 must 
17679 \emph default
17680 also include a 
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 LyXType
17686 \end_layout
17687
17688 \end_inset
17689
17690  entry, declaring which type of inset it defines.
17691 \end_layout
17692
17693 \begin_layout Enumerate
17694 The layout for user specific branch is being defined.
17695  In this case, 
17696 \begin_inset Flex Code
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700 <Type>
17701 \end_layout
17702
17703 \end_inset
17704
17705  must be of the form 
17706 \begin_inset Quotes eld
17707 \end_inset
17708
17709
17710 \begin_inset Flex Code
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 Branch:<name>
17715 \end_layout
17716
17717 \end_inset
17718
17719
17720 \begin_inset Quotes erd
17721 \end_inset
17722
17723 , where 
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 name
17729 \end_layout
17730
17731 \end_inset
17732
17733  may be be any valid identifier of branch defined in user's document.
17734  The identifier may include spaces, but in that case the whole thing must
17735  be wrapped in quotes.
17736  The main purpose of this feature is to allow \SpecialChar LaTeX
17737  wrapping around specific
17738  branches as user needs.
17739 \end_layout
17740
17741 \begin_layout Enumerate
17742 The layout of a user (or class) specific caption is being defined.
17743  In this case, 
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748 <Type>
17749 \end_layout
17750
17751 \end_inset
17752
17753  must be of the form 
17754 \begin_inset Quotes eld
17755 \end_inset
17756
17757
17758 \begin_inset Flex Code
17759 status collapsed
17760
17761 \begin_layout Plain Layout
17762 Caption:<name>
17763 \end_layout
17764
17765 \end_inset
17766
17767
17768 \begin_inset Quotes erd
17769 \end_inset
17770
17771 , where 
17772 \begin_inset Flex Code
17773 status collapsed
17774
17775 \begin_layout Plain Layout
17776 name
17777 \end_layout
17778
17779 \end_inset
17780
17781  specifies the name of the caption as it appears in the menu.
17782  Have a look at the standard caption (
17783 \begin_inset Flex Code
17784 status collapsed
17785
17786 \begin_layout Plain Layout
17787 Caption:Standard
17788 \end_layout
17789
17790 \end_inset
17791
17792 ), the specific captions of the KOMA-Script classes (
17793 \begin_inset Flex Code
17794 status collapsed
17795
17796 \begin_layout Plain Layout
17797 Caption:Above
17798 \end_layout
17799
17800 \end_inset
17801
17802
17803 \begin_inset Flex Code
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 Caption:Below
17808 \end_layout
17809
17810 \end_inset
17811
17812 ) or the module 
17813 \family sans
17814 Multilingual
17815 \begin_inset space ~
17816 \end_inset
17817
17818 Captions 
17819 \family default
17820 (
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 Caption:Bicaption
17826 \end_layout
17827
17828 \end_inset
17829
17830 ) for applications.
17831 \end_layout
17832
17833 \begin_layout Standard
17834 The 
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 InsetLayout
17840 \end_layout
17841
17842 \end_inset
17843
17844  definition can contain the following entries:
17845 \end_layout
17846
17847 \begin_layout Description
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852 AddToToc
17853 \end_layout
17854
17855 \end_inset
17856
17857  [
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 string
17863 \end_layout
17864
17865 \end_inset
17866
17867 =""] This inset will appear in the table of contents of the given type.
17868  An empty string disables.
17869  See also the OutlinerName and the IsTocCaption commands.
17870  This is only implemented for Flex insets.
17871  Default: disabled.
17872 \end_layout
17873
17874 \begin_layout Description
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 Argument
17880 \end_layout
17881
17882 \end_inset
17883
17884  [
17885 \begin_inset Flex Code
17886 status collapsed
17887
17888 \begin_layout Plain Layout
17889 int
17890 \end_layout
17891
17892 \end_inset
17893
17894 ] Defines argument number of a command\SpecialChar breakableslash
17895 environment associated with the current
17896  layout.
17897  The definition must end with 
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 EndArgument
17903 \end_layout
17904
17905 \end_inset
17906
17907 .
17908  See 
17909 \begin_inset CommandInset ref
17910 LatexCommand ref
17911 reference "subsec:Paragraph-Styles"
17912
17913 \end_inset
17914
17915  for details.
17916 \end_layout
17917
17918 \begin_layout Description
17919 \begin_inset Flex Code
17920 status collapsed
17921
17922 \begin_layout Plain Layout
17923 BabelPreamble
17924 \end_layout
17925
17926 \end_inset
17927
17928  Preamble for changing language commands; see 
17929 \begin_inset CommandInset ref
17930 LatexCommand ref
17931 reference "subsec:I18n"
17932
17933 \end_inset
17934
17935 .
17936 \end_layout
17937
17938 \begin_layout Description
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 BgColor
17944 \end_layout
17945
17946 \end_inset
17947
17948  [
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953 <name>
17954 \end_layout
17955
17956 \end_inset
17957
17958 ] The color for the inset's background.
17959  See 
17960 \begin_inset CommandInset ref
17961 LatexCommand ref
17962 reference "chap:Names-of-colors"
17963
17964 \end_inset
17965
17966  for a list of the available color names.
17967 \end_layout
17968
17969 \begin_layout Description
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 ContentAsLabel
17975 \end_layout
17976
17977 \end_inset
17978
17979  [
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984
17985 \emph on
17986 0
17987 \end_layout
17988
17989 \end_inset
17990
17991 ,
17992 \begin_inset space \thinspace{}
17993 \end_inset
17994
17995
17996 \begin_inset Flex Code
17997 status collapsed
17998
17999 \begin_layout Plain Layout
18000 1
18001 \end_layout
18002
18003 \end_inset
18004
18005 ] Whether to use the content of the inset as the label, when the inset is
18006  closed.
18007  Default is false.
18008 \end_layout
18009
18010 \begin_layout Description
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 CopyStyle
18016 \end_layout
18017
18018 \end_inset
18019
18020  [
18021 \begin_inset Flex Code
18022 status collapsed
18023
18024 \begin_layout Plain Layout
18025 <type>
18026 \end_layout
18027
18028 \end_inset
18029
18030 ] As with paragraph styles, see 
18031 \begin_inset CommandInset ref
18032 LatexCommand ref
18033 reference "subsec:Paragraph-Styles"
18034
18035 \end_inset
18036
18037 .
18038  Note that you need to specify the complete type, e.
18039 \begin_inset space \thinspace{}
18040 \end_inset
18041
18042 g.
18043 \begin_inset space ~
18044 \end_inset
18045
18046
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 CopyStyle Flex:<name>
18052 \end_layout
18053
18054 \end_inset
18055
18056 .
18057 \end_layout
18058
18059 \begin_layout Description
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 CustomPars
18065 \end_layout
18066
18067 \end_inset
18068
18069  [
18070 \begin_inset Flex Code
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074
18075 \emph on
18076 0
18077 \end_layout
18078
18079 \end_inset
18080
18081 ,
18082 \begin_inset space \thinspace{}
18083 \end_inset
18084
18085
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 1
18091 \end_layout
18092
18093 \end_inset
18094
18095 ] Indicates whether the user may employ the Paragraph Settings dialog to
18096  customize the paragraph.
18097 \end_layout
18098
18099 \begin_layout Description
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104 Decoration
18105 \end_layout
18106
18107 \end_inset
18108
18109  can be 
18110 \begin_inset Flex Code
18111 status collapsed
18112
18113 \begin_layout Plain Layout
18114 Classic
18115 \end_layout
18116
18117 \end_inset
18118
18119
18120 \begin_inset Flex Code
18121 status collapsed
18122
18123 \begin_layout Plain Layout
18124 Minimalistic
18125 \end_layout
18126
18127 \end_inset
18128
18129 , or 
18130 \begin_inset Flex Code
18131 status collapsed
18132
18133 \begin_layout Plain Layout
18134 Conglomerate
18135 \end_layout
18136
18137 \end_inset
18138
18139 , describing the rendering style used for the inset's frame and buttons.
18140  Footnotes generally use 
18141 \begin_inset Flex Code
18142 status collapsed
18143
18144 \begin_layout Plain Layout
18145 Classic
18146 \end_layout
18147
18148 \end_inset
18149
18150 , ERT insets generally 
18151 \begin_inset Flex Code
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 Minimalistic
18156 \end_layout
18157
18158 \end_inset
18159
18160 , and character styles 
18161 \begin_inset Flex Code
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 Conglomerate
18166 \end_layout
18167
18168 \end_inset
18169
18170 .
18171 \end_layout
18172
18173 \begin_layout Description
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 Display
18179 \end_layout
18180
18181 \end_inset
18182
18183  [
18184 \begin_inset Flex Code
18185 status collapsed
18186
18187 \begin_layout Plain Layout
18188 0
18189 \end_layout
18190
18191 \end_inset
18192
18193 ,
18194 \emph on
18195
18196 \begin_inset space \thinspace{}
18197 \end_inset
18198
18199
18200 \emph default
18201
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206
18207 \emph on
18208 1
18209 \end_layout
18210
18211 \end_inset
18212
18213 ] Only useful if 
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 LatexType
18219 \end_layout
18220
18221 \end_inset
18222
18223  is 
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 Environment
18229 \end_layout
18230
18231 \end_inset
18232
18233 .
18234  Indicates whether the environment will stand on its own in the output or
18235  will appear inline with the surrounding text.
18236  If set to false, it is supposed that the \SpecialChar LaTeX
18237  environment ignores white space
18238  (including one newline character) after the 
18239 \begin_inset Flex Code
18240 status collapsed
18241
18242 \begin_layout Plain Layout
18243
18244 \backslash
18245 begin{
18246 \emph on
18247 LatexName
18248 \emph default
18249 }
18250 \end_layout
18251
18252 \end_inset
18253
18254  and 
18255 \begin_inset Flex Code
18256 status collapsed
18257
18258 \begin_layout Plain Layout
18259
18260 \backslash
18261 end{
18262 \emph on
18263 LatexName
18264 \emph default
18265 }
18266 \end_layout
18267
18268 \end_inset
18269
18270  tags.
18271  Default is true.
18272 \end_layout
18273
18274 \begin_layout Description
18275 \begin_inset Flex Code
18276 status collapsed
18277
18278 \begin_layout Plain Layout
18279 End
18280 \end_layout
18281
18282 \end_inset
18283
18284  Required at the end of the 
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 InsetLayout
18290 \end_layout
18291
18292 \end_inset
18293
18294  declarations.
18295 \end_layout
18296
18297 \begin_layout Description
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 Font
18303 \end_layout
18304
18305 \end_inset
18306
18307  The font used for both the text body 
18308 \emph on
18309 and
18310 \emph default
18311  the label.
18312  See 
18313 \begin_inset CommandInset ref
18314 LatexCommand ref
18315 reference "subsec:Font-description"
18316
18317 \end_inset
18318
18319 .
18320  Note that defining this font automatically defines the 
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 LabelFont
18326 \end_layout
18327
18328 \end_inset
18329
18330  to the same value, so define this first and define 
18331 \begin_inset Flex Code
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335 LabelFont
18336 \end_layout
18337
18338 \end_inset
18339
18340  later if you want them to be different.
18341 \end_layout
18342
18343 \begin_layout Description
18344 \begin_inset Flex Code
18345 status collapsed
18346
18347 \begin_layout Plain Layout
18348 FixedWidthPreambleEncoding
18349 \end_layout
18350
18351 \end_inset
18352
18353  [
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358
18359 \emph on
18360 0
18361 \end_layout
18362
18363 \end_inset
18364
18365 ,
18366 \begin_inset space \thinspace{}
18367 \end_inset
18368
18369
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 1
18375 \end_layout
18376
18377 \end_inset
18378
18379 ] Force a fixed width encoding for the translated contents of 
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 BabelPreamble
18385 \end_layout
18386
18387 \end_inset
18388
18389  and 
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394 LangPreamble
18395 \end_layout
18396
18397 \end_inset
18398
18399  code generated by this layout.
18400  This is needed for special \SpecialChar LaTeX
18401 -packages like 
18402 \family typewriter
18403 listings
18404 \family default
18405  that do not work with variable width encodings such as 
18406 \family sans
18407 utf8
18408 \family default
18409 .
18410  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18411  backends such as Xe\SpecialChar TeX
18412  or
18413  Lua\SpecialChar TeX
18414  are used.
18415 \end_layout
18416
18417 \begin_layout Description
18418 \begin_inset Flex Code
18419 status collapsed
18420
18421 \begin_layout Plain Layout
18422 ForceLocalFontSwitch
18423 \end_layout
18424
18425 \end_inset
18426
18427  [
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432
18433 \emph on
18434 0
18435 \end_layout
18436
18437 \end_inset
18438
18439 ,
18440 \begin_inset space \thinspace{}
18441 \end_inset
18442
18443
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448 1
18449 \end_layout
18450
18451 \end_inset
18452
18453 ] When using babel, always use a local font switch (
18454 \begin_inset Flex Code
18455 status collapsed
18456
18457 \begin_layout Plain Layout
18458
18459 \backslash
18460 foreignlanguage
18461 \end_layout
18462
18463 \end_inset
18464
18465 ), never a global one (such as 
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470
18471 \backslash
18472 selectlanguage
18473 \end_layout
18474
18475 \end_inset
18476
18477 ).
18478 \end_layout
18479
18480 \begin_layout Description
18481 \begin_inset Flex Code
18482 status collapsed
18483
18484 \begin_layout Plain Layout
18485 ForceLTR
18486 \end_layout
18487
18488 \end_inset
18489
18490  [
18491 \begin_inset Flex Code
18492 status collapsed
18493
18494 \begin_layout Plain Layout
18495
18496 \emph on
18497 0
18498 \end_layout
18499
18500 \end_inset
18501
18502 ,
18503 \begin_inset space \thinspace{}
18504 \end_inset
18505
18506
18507 \begin_inset Flex Code
18508 status collapsed
18509
18510 \begin_layout Plain Layout
18511 1
18512 \end_layout
18513
18514 \end_inset
18515
18516 ] Force the 
18517 \begin_inset Quotes eld
18518 \end_inset
18519
18520 latex
18521 \begin_inset Quotes erd
18522 \end_inset
18523
18524  language, leading to Left-to-Right (Latin) output, e.
18525 \begin_inset space \thinspace{}
18526 \end_inset
18527
18528 g.
18529 \begin_inset space \space{}
18530 \end_inset
18531
18532 in \SpecialChar TeX
18533  code or URL.
18534  A kludge.
18535 \end_layout
18536
18537 \begin_layout Description
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542 ForceOwnlines
18543 \end_layout
18544
18545 \end_inset
18546
18547  [
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552
18553 \emph on
18554 0
18555 \end_layout
18556
18557 \end_inset
18558
18559 ,
18560 \begin_inset space \thinspace{}
18561 \end_inset
18562
18563
18564 \begin_inset Flex Code
18565 status collapsed
18566
18567 \begin_layout Plain Layout
18568 1
18569 \end_layout
18570
18571 \end_inset
18572
18573 ] Force a a line break in the \SpecialChar LaTeX
18574  output before the inset starts and after
18575  the inset ends.
18576  This assures the inset itself is output on its own lines, for parsing purposes.
18577 \end_layout
18578
18579 \begin_layout Description
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584 ForcePlain
18585 \end_layout
18586
18587 \end_inset
18588
18589  [
18590 \begin_inset Flex Code
18591 status collapsed
18592
18593 \begin_layout Plain Layout
18594
18595 \emph on
18596 0
18597 \end_layout
18598
18599 \end_inset
18600
18601 ,
18602 \begin_inset space \thinspace{}
18603 \end_inset
18604
18605
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610 1
18611 \end_layout
18612
18613 \end_inset
18614
18615 ] Indicates whether the 
18616 \begin_inset Flex Code
18617 status collapsed
18618
18619 \begin_layout Plain Layout
18620 PlainLayout
18621 \end_layout
18622
18623 \end_inset
18624
18625  should be used or, instead, the user can change the paragraph style used
18626  in the inset.
18627  Default is false.
18628 \end_layout
18629
18630 \begin_layout Description
18631 \begin_inset Flex Code
18632 status collapsed
18633
18634 \begin_layout Plain Layout
18635 FreeSpacing
18636 \end_layout
18637
18638 \end_inset
18639
18640  [
18641 \begin_inset Flex Code
18642 status collapsed
18643
18644 \begin_layout Plain Layout
18645
18646 \emph on
18647 0
18648 \end_layout
18649
18650 \end_inset
18651
18652 ,
18653 \begin_inset space \thinspace{}
18654 \end_inset
18655
18656
18657 \begin_inset Flex Code
18658 status collapsed
18659
18660 \begin_layout Plain Layout
18661 1
18662 \end_layout
18663
18664 \end_inset
18665
18666 ] As with paragraph styles, see 
18667 \begin_inset CommandInset ref
18668 LatexCommand ref
18669 reference "subsec:Paragraph-Styles"
18670
18671 \end_inset
18672
18673 .
18674 \end_layout
18675
18676 \begin_layout Description
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681 HTML*
18682 \end_layout
18683
18684 \end_inset
18685
18686  These tags control the XHTML output.
18687  See 
18688 \begin_inset CommandInset ref
18689 LatexCommand ref
18690 reference "sec:Tags-for-XHTML"
18691
18692 \end_inset
18693
18694 .
18695 \end_layout
18696
18697 \begin_layout Description
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 InToc
18703 \end_layout
18704
18705 \end_inset
18706
18707  [
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712
18713 \emph on
18714 0
18715 \end_layout
18716
18717 \end_inset
18718
18719 ,
18720 \begin_inset space \thinspace{}
18721 \end_inset
18722
18723
18724 \begin_inset Flex Code
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728 1
18729 \end_layout
18730
18731 \end_inset
18732
18733 ] Whether to include the contents of this inset in the strings generated
18734  for the `Outline' pane for all table of contents, regardless of the AddToToc
18735  setting.
18736  One would not, for example, want the content of a footnote in a section
18737  header to be included in the TOC displayed in the outline, but one would
18738  normally want the content of a character style displayed.
18739  Default is false: not to include.
18740 \end_layout
18741
18742 \begin_layout Description
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 IsTocCaption
18748 \end_layout
18749
18750 \end_inset
18751
18752  [
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757
18758 \emph on
18759 0
18760 \end_layout
18761
18762 \end_inset
18763
18764 ,
18765 \begin_inset space \thinspace{}
18766 \end_inset
18767
18768
18769 \begin_inset Flex Code
18770 status collapsed
18771
18772 \begin_layout Plain Layout
18773 1
18774 \end_layout
18775
18776 \end_inset
18777
18778 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18779  of its contents in its item in the table of contents.
18780  Otherwise, only the label appears.
18781 \end_layout
18782
18783 \begin_layout Description
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 KeepEmpty
18789 \end_layout
18790
18791 \end_inset
18792
18793  [
18794 \emph on
18795
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800 0
18801 \end_layout
18802
18803 \end_inset
18804
18805
18806 \emph default
18807 ,
18808 \begin_inset space \thinspace{}
18809 \end_inset
18810
18811
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 1
18817 \end_layout
18818
18819 \end_inset
18820
18821 ] As with paragraph styles, see 
18822 \begin_inset CommandInset ref
18823 LatexCommand ref
18824 reference "subsec:Paragraph-Styles"
18825
18826 \end_inset
18827
18828 .
18829 \end_layout
18830
18831 \begin_layout Description
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 LabelFont
18837 \end_layout
18838
18839 \end_inset
18840
18841  The font used for the label.
18842  See 
18843 \begin_inset CommandInset ref
18844 LatexCommand ref
18845 reference "subsec:Font-description"
18846
18847 \end_inset
18848
18849 .
18850  Note that this definition can never appear before 
18851 \begin_inset Flex Code
18852 status collapsed
18853
18854 \begin_layout Plain Layout
18855 Font
18856 \end_layout
18857
18858 \end_inset
18859
18860 , lest it be ineffective.
18861 \end_layout
18862
18863 \begin_layout Description
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 LabelString
18869 \end_layout
18870
18871 \end_inset
18872
18873  [
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 string
18879 \end_layout
18880
18881 \end_inset
18882
18883 =
18884 \begin_inset Quotes erd
18885 \end_inset
18886
18887
18888 \begin_inset Quotes erd
18889 \end_inset
18890
18891 ] What will be displayed on the button or elsewhere as the inset label.
18892  Some inset types (
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 \SpecialChar TeX
18898  code
18899 \end_layout
18900
18901 \end_inset
18902
18903  and 
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 Branch
18909 \end_layout
18910
18911 \end_inset
18912
18913 ) modify this label on the fly.
18914 \end_layout
18915
18916 \begin_layout Description
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 LangPreamble
18922 \end_layout
18923
18924 \end_inset
18925
18926  Language dependent preamble; see 
18927 \begin_inset CommandInset ref
18928 LatexCommand ref
18929 reference "subsec:I18n"
18930
18931 \end_inset
18932
18933 .
18934 \end_layout
18935
18936 \begin_layout Description
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941 LatexName
18942 \end_layout
18943
18944 \end_inset
18945
18946  [
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 <name>
18952 \end_layout
18953
18954 \end_inset
18955
18956 ] The name of the corresponding \SpecialChar LaTeX
18957  stuff.
18958  Either the environment or command name.
18959 \end_layout
18960
18961 \begin_layout Description
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 LatexParam
18967 \end_layout
18968
18969 \end_inset
18970
18971  [
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 <parameter>
18977 \end_layout
18978
18979 \end_inset
18980
18981 ] The optional parameter for the corresponding 
18982 \begin_inset Flex Code
18983 status collapsed
18984
18985 \begin_layout Plain Layout
18986 LatexName
18987 \end_layout
18988
18989 \end_inset
18990
18991  stuff, including possible bracket pairs like 
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 []
18997 \end_layout
18998
18999 \end_inset
19000
19001 .
19002  This parameter cannot be changed from within \SpecialChar LyX
19003  (use 
19004 \begin_inset Flex Code
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008 Argument
19009 \end_layout
19010
19011 \end_inset
19012
19013  for customizable parameters).
19014  It will be output as is after all \SpecialChar LaTeX
19015  
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 Argument
19021 \end_layout
19022
19023 \end_inset
19024
19025 s.
19026 \end_layout
19027
19028 \begin_layout Description
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 LatexType
19034 \end_layout
19035
19036 \end_inset
19037
19038  [
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 Command, Environment, None
19044 \end_layout
19045
19046 \end_inset
19047
19048 ] How the style should be translated into \SpecialChar LaTeX
19049 .
19050 \begin_inset Foot
19051 status collapsed
19052
19053 \begin_layout Plain Layout
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 LatexType
19059 \end_layout
19060
19061 \end_inset
19062
19063  is perhaps a bit misleading, since these rules apply to SGML classes too.
19064  Visit the SGML class files for specific examples.
19065 \end_layout
19066
19067 \end_inset
19068
19069
19070 \end_layout
19071
19072 \begin_deeper
19073 \begin_layout Description
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078 None
19079 \end_layout
19080
19081 \end_inset
19082
19083  means nothing special
19084 \end_layout
19085
19086 \begin_layout Description
19087 \begin_inset Flex Code
19088 status collapsed
19089
19090 \begin_layout Plain Layout
19091 Command
19092 \end_layout
19093
19094 \end_inset
19095
19096  means 
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101
19102 \backslash
19103
19104 \emph on
19105 LatexName
19106 \emph default
19107 {\SpecialChar ldots
19108 }
19109 \end_layout
19110
19111 \end_inset
19112
19113
19114 \end_layout
19115
19116 \begin_layout Description
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 Environment
19122 \end_layout
19123
19124 \end_inset
19125
19126  means 
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131
19132 \backslash
19133 begin{
19134 \emph on
19135 LatexName
19136 \emph default
19137 }\SpecialChar ldots
19138
19139 \backslash
19140 end{
19141 \emph on
19142 LatexName
19143 \emph default
19144 }
19145 \end_layout
19146
19147 \end_inset
19148
19149
19150 \end_layout
19151
19152 \begin_layout Standard
19153 Putting the last few things together, the \SpecialChar LaTeX
19154  output will be either: 
19155 \end_layout
19156
19157 \begin_layout LyX-Code
19158
19159 \backslash
19160 LatexName[LatexParam]{\SpecialChar ldots
19161 }
19162 \end_layout
19163
19164 \begin_layout Standard
19165 or: 
19166 \end_layout
19167
19168 \begin_layout LyX-Code
19169
19170 \backslash
19171 begin{LatexName}[LatexParam] \SpecialChar ldots
19172  
19173 \backslash
19174 end{LatexName}
19175 \end_layout
19176
19177 \begin_layout Standard
19178 depending upon the \SpecialChar LaTeX
19179  type.
19180 \end_layout
19181
19182 \end_deeper
19183 \begin_layout Description
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 LeftDelim
19189 \end_layout
19190
19191 \end_inset
19192
19193  [
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 string
19199 \end_layout
19200
19201 \end_inset
19202
19203 ] A string that is put at the beginning of the layout content.
19204  A line break in the output can be indicated by 
19205 \begin_inset Flex Code
19206 status collapsed
19207
19208 \begin_layout Plain Layout
19209 <br/>
19210 \end_layout
19211
19212 \end_inset
19213
19214 .
19215 \end_layout
19216
19217 \begin_layout Description
19218 \begin_inset Flex Code
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 LyxType
19223 \end_layout
19224
19225 \end_inset
19226
19227  Can be 
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 charstyle
19233 \end_layout
19234
19235 \end_inset
19236
19237
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 custom
19243 \end_layout
19244
19245 \end_inset
19246
19247
19248 \begin_inset Flex Code
19249 status collapsed
19250
19251 \begin_layout Plain Layout
19252 element
19253 \end_layout
19254
19255 \end_inset
19256
19257  or 
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262 end
19263 \end_layout
19264
19265 \end_inset
19266
19267  (indicating a dummy definition ending definitions of charstyles, etc).
19268  This entry is required in and is only meaningful for Flex insets.
19269  Among other things, it determines on which menu this inset will appear.
19270  Setting 
19271 \begin_inset Flex Code
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275 LyxType
19276 \end_layout
19277
19278 \end_inset
19279
19280  to 
19281 \begin_inset Flex Code
19282 status collapsed
19283
19284 \begin_layout Plain Layout
19285 charstyle
19286 \end_layout
19287
19288 \end_inset
19289
19290  will automatically set 
19291 \begin_inset Flex Code
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 MultiPar
19296 \end_layout
19297
19298 \end_inset
19299
19300  to false and 
19301 \begin_inset Flex Code
19302 status collapsed
19303
19304 \begin_layout Plain Layout
19305 ForcePlain
19306 \end_layout
19307
19308 \end_inset
19309
19310  to true.
19311  
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 MultiPar
19317 \end_layout
19318
19319 \end_inset
19320
19321  can be set to true, or 
19322 \begin_inset Flex Code
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326 ForcePlain
19327 \end_layout
19328
19329 \end_inset
19330
19331  to false, for 
19332 \begin_inset Flex Code
19333 status collapsed
19334
19335 \begin_layout Plain Layout
19336 charstyle
19337 \end_layout
19338
19339 \end_inset
19340
19341  insets by setting it 
19342 \emph on
19343 after
19344 \emph default
19345  you set the 
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 LyxType
19351 \end_layout
19352
19353 \end_inset
19354
19355 .
19356 \end_layout
19357
19358 \begin_layout Description
19359 \begin_inset Flex Code
19360 status collapsed
19361
19362 \begin_layout Plain Layout
19363 MultiPar
19364 \end_layout
19365
19366 \end_inset
19367
19368  [
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373
19374 \emph on
19375 0
19376 \end_layout
19377
19378 \end_inset
19379
19380 ,
19381 \begin_inset space \thinspace{}
19382 \end_inset
19383
19384
19385 \begin_inset Flex Code
19386 status collapsed
19387
19388 \begin_layout Plain Layout
19389 1
19390 \end_layout
19391
19392 \end_inset
19393
19394 ] Whether multiple paragraphs are permitted in this inset.
19395  This will also set 
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 CustomPars
19401 \end_layout
19402
19403 \end_inset
19404
19405  to the same value and 
19406 \begin_inset Flex Code
19407 status collapsed
19408
19409 \begin_layout Plain Layout
19410 ForcePlain
19411 \end_layout
19412
19413 \end_inset
19414
19415  to the opposite value.
19416  These can be reset to other values, if they are used 
19417 \emph on
19418 after
19419 \emph default
19420  
19421 \begin_inset Flex Code
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 MultiPar
19426 \end_layout
19427
19428 \end_inset
19429
19430 .
19431  Default is true.
19432 \end_layout
19433
19434 \begin_layout Description
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 NeedProtect
19440 \end_layout
19441
19442 \end_inset
19443
19444  [
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449
19450 \emph on
19451 0
19452 \end_layout
19453
19454 \end_inset
19455
19456 ,
19457 \begin_inset space \thinspace{}
19458 \end_inset
19459
19460
19461 \begin_inset Flex Code
19462 status collapsed
19463
19464 \begin_layout Plain Layout
19465 1
19466 \end_layout
19467
19468 \end_inset
19469
19470 ] Whether fragile commands in this inset should be 
19471 \begin_inset Flex Code
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475
19476 \backslash
19477 protect
19478 \end_layout
19479
19480 \end_inset
19481
19482 'ed.
19483  (Note: This is 
19484 \emph on
19485 not
19486 \emph default
19487  whether the command should itself be protected.) Default is false.
19488 \end_layout
19489
19490 \begin_layout Description
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495 NoInsetLayout
19496 \end_layout
19497
19498 \end_inset
19499
19500  [
19501 \begin_inset Flex Code
19502 status collapsed
19503
19504 \begin_layout Plain Layout
19505 <layout>
19506 \end_layout
19507
19508 \end_inset
19509
19510 ] Deletes an existing 
19511 \begin_inset Flex Code
19512 status collapsed
19513
19514 \begin_layout Plain Layout
19515 InsetLayout
19516 \end_layout
19517
19518 \end_inset
19519
19520 .
19521 \end_layout
19522
19523 \begin_layout Description
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 ObsoletedBy
19529 \end_layout
19530
19531 \end_inset
19532
19533  [
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538 <layout>
19539 \end_layout
19540
19541 \end_inset
19542
19543 ] Name of an 
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 InsetLayout
19549 \end_layout
19550
19551 \end_inset
19552
19553  that has replaced this 
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 InsetLayout
19559 \end_layout
19560
19561 \end_inset
19562
19563 .
19564  This is used to rename an 
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 InsetLayout
19570 \end_layout
19571
19572 \end_inset
19573
19574 , while keeping backward compatibility.
19575 \end_layout
19576
19577 \begin_layout Description
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 ParbreakIsNewline
19583 \end_layout
19584
19585 \end_inset
19586
19587  [
19588 \begin_inset Flex Code
19589 status collapsed
19590
19591 \begin_layout Plain Layout
19592
19593 \emph on
19594 0
19595 \end_layout
19596
19597 \end_inset
19598
19599 ,
19600 \begin_inset space \thinspace{}
19601 \end_inset
19602
19603
19604 \begin_inset Flex Code
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608 1
19609 \end_layout
19610
19611 \end_inset
19612
19613 ] As with paragraph styles, see 
19614 \begin_inset CommandInset ref
19615 LatexCommand ref
19616 reference "subsec:Paragraph-Styles"
19617
19618 \end_inset
19619
19620 .
19621  Default is false.
19622 \end_layout
19623
19624 \begin_layout Description
19625 \begin_inset Flex Code
19626 status collapsed
19627
19628 \begin_layout Plain Layout
19629 PassThru
19630 \end_layout
19631
19632 \end_inset
19633
19634  [
19635 \begin_inset Flex Code
19636 status collapsed
19637
19638 \begin_layout Plain Layout
19639
19640 \emph on
19641 0
19642 \end_layout
19643
19644 \end_inset
19645
19646 ,
19647 \begin_inset space \thinspace{}
19648 \end_inset
19649
19650
19651 \begin_inset Flex Code
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 1
19656 \end_layout
19657
19658 \end_inset
19659
19660 ] As with paragraph styles, see 
19661 \begin_inset CommandInset ref
19662 LatexCommand ref
19663 reference "subsec:Paragraph-Styles"
19664
19665 \end_inset
19666
19667 .
19668  Default is false.
19669 \end_layout
19670
19671 \begin_layout Description
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 Preamble
19677 \end_layout
19678
19679 \end_inset
19680
19681  As with paragraph styles, see 
19682 \begin_inset CommandInset ref
19683 LatexCommand ref
19684 reference "subsec:Paragraph-Styles"
19685
19686 \end_inset
19687
19688 .
19689 \end_layout
19690
19691 \begin_layout Description
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 RefPrefix
19697 \end_layout
19698
19699 \end_inset
19700
19701  [
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 string
19707 \end_layout
19708
19709 \end_inset
19710
19711 ] The prefix to use when creating labels referring to insets of this type.
19712  This allows the use of formatted references.
19713 \end_layout
19714
19715 \begin_layout Description
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720 Requires
19721 \end_layout
19722
19723 \end_inset
19724
19725  [
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 string
19731 \end_layout
19732
19733 \end_inset
19734
19735 ] As with paragraph styles, see 
19736 \begin_inset CommandInset ref
19737 LatexCommand ref
19738 reference "subsec:Paragraph-Styles"
19739
19740 \end_inset
19741
19742 .
19743 \end_layout
19744
19745 \begin_layout Description
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 ResetArgs
19751 \end_layout
19752
19753 \end_inset
19754
19755  [
19756 \begin_inset Flex Code
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760
19761 \emph on
19762 0
19763 \end_layout
19764
19765 \end_inset
19766
19767 ,
19768 \begin_inset space \thinspace{}
19769 \end_inset
19770
19771
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 1
19777 \end_layout
19778
19779 \end_inset
19780
19781 ] Resets the \SpecialChar LaTeX
19782  arguments of this layout (as defined via the 
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 Argument
19788 \end_layout
19789
19790 \end_inset
19791
19792  tag).
19793  This is useful if you have copied a style via 
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 CopyStyle
19799 \end_layout
19800
19801 \end_inset
19802
19803 , but you do not want to inherit its (required and optional) arguments.
19804 \end_layout
19805
19806 \begin_layout Description
19807 \begin_inset Flex Code
19808 status collapsed
19809
19810 \begin_layout Plain Layout
19811 ResetsFont
19812 \end_layout
19813
19814 \end_inset
19815
19816  [
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 0
19822 \end_layout
19823
19824 \end_inset
19825
19826 ,
19827 \begin_inset space \thinspace{}
19828 \end_inset
19829
19830
19831 \begin_inset Flex Code
19832 status collapsed
19833
19834 \begin_layout Plain Layout
19835
19836 \emph on
19837 1
19838 \end_layout
19839
19840 \end_inset
19841
19842 ] Whether this inset should use the font of its surrounding environment
19843  or uses its own.
19844  Default is false: use the font of the surrounding environment.
19845 \end_layout
19846
19847 \begin_layout Description
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 RightDelim
19853 \end_layout
19854
19855 \end_inset
19856
19857  [
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 string
19863 \end_layout
19864
19865 \end_inset
19866
19867 ] A string that is put at the end of the layout content.
19868  A line break in the output can be indicated by 
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 <br/>
19874 \end_layout
19875
19876 \end_inset
19877
19878 .
19879 \end_layout
19880
19881 \begin_layout Description
19882 \begin_inset Flex Code
19883 status collapsed
19884
19885 \begin_layout Plain Layout
19886 Spellcheck
19887 \end_layout
19888
19889 \end_inset
19890
19891  [
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 0
19897 \end_layout
19898
19899 \end_inset
19900
19901 ,
19902 \begin_inset space \thinspace{}
19903 \end_inset
19904
19905
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910
19911 \emph on
19912 1
19913 \end_layout
19914
19915 \end_inset
19916
19917 ] Allow spell-checking the contents of this inset.
19918  Default is true.
19919 \end_layout
19920
19921 \begin_layout Subsection
19922 Counters
19923 \begin_inset CommandInset label
19924 LatexCommand label
19925 name "subsec:Counters"
19926
19927 \end_inset
19928
19929
19930 \end_layout
19931
19932 \begin_layout Standard
19933 It is necessary to define the counters (
19934 \begin_inset Flex Noun
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 chapter
19939 \end_layout
19940
19941 \end_inset
19942
19943
19944 \begin_inset Flex Noun
19945 status collapsed
19946
19947 \begin_layout Plain Layout
19948 figure
19949 \end_layout
19950
19951 \end_inset
19952
19953 , \SpecialChar ldots
19954 ) in the text class itself.
19955  The standard counters are defined in the file 
19956 \begin_inset Flex Code
19957 status collapsed
19958
19959 \begin_layout Plain Layout
19960 stdcounters.inc
19961 \end_layout
19962
19963 \end_inset
19964
19965 , so you may have to do no more than add
19966 \end_layout
19967
19968 \begin_layout LyX-Code
19969 Input stdcounters.inc
19970 \end_layout
19971
19972 \begin_layout Standard
19973 to your layout file to get them to work.
19974  But if you want to define custom counters, then you can do so.
19975  The counter declaration must begin with:
19976 \end_layout
19977
19978 \begin_layout LyX-Code
19979 Counter CounterName
19980 \end_layout
19981
19982 \begin_layout Standard
19983 where of course `
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988 CounterName
19989 \end_layout
19990
19991 \end_inset
19992
19993 ' is replaced by the name of the counter.
19994  And it must end with 
19995 \begin_inset Quotes eld
19996 \end_inset
19997
19998
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 End
20004 \end_layout
20005
20006 \end_inset
20007
20008
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012 .
20013  The following parameters can also be used:
20014 \end_layout
20015
20016 \begin_layout Description
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 InitialValue
20022 \end_layout
20023
20024 \end_inset
20025
20026  [
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 int=1
20032 \end_layout
20033
20034 \end_inset
20035
20036 ] Sets the initial value for the counter, to which it will be reset whenever
20037  that happens.
20038  Normally, one will want the default, 1.
20039 \end_layout
20040
20041 \begin_layout Description
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046 LabelString
20047 \end_layout
20048
20049 \end_inset
20050
20051  [
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 string
20057 \end_layout
20058
20059 \end_inset
20060
20061 =
20062 \begin_inset Quotes erd
20063 \end_inset
20064
20065
20066 \begin_inset Quotes erd
20067 \end_inset
20068
20069 ] When defined, this string defines how the counter is displayed.
20070  Setting this value sets 
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 LabelStringAppendix
20076 \end_layout
20077
20078 \end_inset
20079
20080  to the same value.
20081  The following special constructs can be used in the string:
20082 \end_layout
20083
20084 \begin_deeper
20085 \begin_layout Itemize
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090
20091 \backslash
20092 thecounter
20093 \end_layout
20094
20095 \end_inset
20096
20097  will be replaced by the expansion of the 
20098 \begin_inset Flex Code
20099 status collapsed
20100
20101 \begin_layout Plain Layout
20102 LabelString
20103 \end_layout
20104
20105 \end_inset
20106
20107  (or 
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 LabelStringAppendix
20113 \end_layout
20114
20115 \end_inset
20116
20117 ) of the counter 
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 counter
20123 \end_layout
20124
20125 \end_inset
20126
20127 .
20128  
20129 \end_layout
20130
20131 \begin_layout Itemize
20132 counter values can be expressed using \SpecialChar LaTeX
20133 -like macros
20134 \begin_inset Newline newline
20135 \end_inset
20136
20137
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142
20143 \backslash
20144
20145 \emph on
20146 numbertype
20147 \emph default
20148 {
20149 \emph on
20150 counter
20151 \emph default
20152 }
20153 \end_layout
20154
20155 \end_inset
20156
20157 , where 
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162
20163 \emph on
20164 numbertype
20165 \end_layout
20166
20167 \end_inset
20168
20169  can be:
20170 \begin_inset Foot
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174
20175 \family roman
20176 \series medium
20177 \shape up
20178 \size normal
20179 \emph off
20180 \bar no
20181 \noun off
20182 \color none
20183 Actually, the situation is a bit more complicated: any
20184 \family default
20185 \series default
20186 \shape default
20187 \emph default
20188 \bar default
20189  
20190 \size default
20191 \emph on
20192 \noun default
20193 \color inherit
20194 numbertype
20195 \family roman
20196 \series medium
20197 \shape up
20198 \size normal
20199 \emph off
20200 \bar no
20201 \noun off
20202  other than those described below will produce arabic numerals.
20203  It would not be surprising to see this change in the future.
20204 \end_layout
20205
20206 \end_inset
20207
20208  
20209 \begin_inset Flex Code
20210 status collapsed
20211
20212 \begin_layout Plain Layout
20213 arabic
20214 \end_layout
20215
20216 \end_inset
20217
20218 : 1, 2, 3,\SpecialChar ldots
20219
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 alph
20225 \end_layout
20226
20227 \end_inset
20228
20229  for lower-case letters: a, b, c, \SpecialChar ldots
20230
20231 \begin_inset Flex Code
20232 status collapsed
20233
20234 \begin_layout Plain Layout
20235 Alph
20236 \end_layout
20237
20238 \end_inset
20239
20240  for upper-case letters: A, B, C, \SpecialChar ldots
20241
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 roman
20247 \end_layout
20248
20249 \end_inset
20250
20251  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20252
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 Roman
20258 \end_layout
20259
20260 \end_inset
20261
20262  for upper-case roman numerals: I, II, III\SpecialChar ldots
20263
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268 hebrew
20269 \end_layout
20270
20271 \end_inset
20272
20273  for hebrew numerals.
20274 \end_layout
20275
20276 \end_deeper
20277 \begin_layout Standard
20278 If LabelString is not defined, a default value is constructed as follows:
20279  if the counter has a master counter 
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 master
20285 \end_layout
20286
20287 \end_inset
20288
20289  (defined via 
20290 \begin_inset Flex Code
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294 Within
20295 \end_layout
20296
20297 \end_inset
20298
20299 ), the string
20300 \begin_inset Newline newline
20301 \end_inset
20302
20303
20304 \begin_inset Flex Code
20305 status collapsed
20306
20307 \begin_layout Plain Layout
20308
20309 \backslash
20310 themaster.
20311 \backslash
20312 arabic{counter}
20313 \end_layout
20314
20315 \end_inset
20316
20317  is used; otherwise the string 
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322
20323 \backslash
20324 arabic{counter}
20325 \end_layout
20326
20327 \end_inset
20328
20329  is used.
20330 \end_layout
20331
20332 \begin_layout Description
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 LabelStringAppendix
20338 \end_layout
20339
20340 \end_inset
20341
20342  [
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 string
20348 \end_layout
20349
20350 \end_inset
20351
20352 =
20353 \begin_inset Quotes erd
20354 \end_inset
20355
20356
20357 \begin_inset Quotes erd
20358 \end_inset
20359
20360 ] Same as 
20361 \begin_inset Flex Code
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 LabelString
20366 \end_layout
20367
20368 \end_inset
20369
20370 , but for use in the Appendix.
20371 \end_layout
20372
20373 \begin_layout Description
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378 PrettyFormat
20379 \end_layout
20380
20381 \end_inset
20382
20383  [
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 string
20389 \end_layout
20390
20391 \end_inset
20392
20393 =
20394 \begin_inset Quotes erd
20395 \end_inset
20396
20397
20398 \begin_inset Quotes erd
20399 \end_inset
20400
20401 ] A format for use with formatted references to this counter.
20402  For example, one might want to have references to section numbers appear
20403  as 
20404 \begin_inset Quotes eld
20405 \end_inset
20406
20407 Section 2.4
20408 \begin_inset Quotes erd
20409 \end_inset
20410
20411 .
20412  The string should contain 
20413 \begin_inset Quotes eld
20414 \end_inset
20415
20416 ##
20417 \begin_inset Quotes erd
20418 \end_inset
20419
20420 .
20421  This will be replaced by the counter number itself.
20422  So, for sections, it would be: Section ##.
20423 \end_layout
20424
20425 \begin_layout Description
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 Within
20431 \end_layout
20432
20433 \end_inset
20434
20435  [
20436 \begin_inset Flex Code
20437 status collapsed
20438
20439 \begin_layout Plain Layout
20440 string
20441 \end_layout
20442
20443 \end_inset
20444
20445 =
20446 \begin_inset Quotes erd
20447 \end_inset
20448
20449
20450 \begin_inset Quotes erd
20451 \end_inset
20452
20453 ] If this is set to the name of another counter, the present counter will
20454  be reset every time the other one is increased.
20455  For example, 
20456 \begin_inset Flex Code
20457 status collapsed
20458
20459 \begin_layout Plain Layout
20460 subsection
20461 \end_layout
20462
20463 \end_inset
20464
20465  is numbered inside 
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 section
20471 \end_layout
20472
20473 \end_inset
20474
20475 .
20476 \end_layout
20477
20478 \begin_layout Subsection
20479 Font description
20480 \begin_inset CommandInset label
20481 LatexCommand label
20482 name "subsec:Font-description"
20483
20484 \end_inset
20485
20486
20487 \end_layout
20488
20489 \begin_layout Standard
20490 A font description looks like this:
20491 \end_layout
20492
20493 \begin_layout LyX-Code
20494 Font 
20495 \family roman
20496 \emph on
20497 or
20498 \family default
20499 \emph default
20500  LabelFont
20501 \emph on
20502  
20503 \family roman
20504 or
20505 \family default
20506 \emph default
20507  DefaultFont
20508 \end_layout
20509
20510 \begin_layout LyX-Code
20511  ...
20512 \end_layout
20513
20514 \begin_layout LyX-Code
20515 EndFont
20516 \end_layout
20517
20518 \begin_layout Standard
20519 The following commands are available:
20520 \end_layout
20521
20522 \begin_layout Description
20523 \begin_inset Flex Code
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527 Color
20528 \end_layout
20529
20530 \end_inset
20531
20532  [
20533 \begin_inset Flex Code
20534 status collapsed
20535
20536 \begin_layout Plain Layout
20537
20538 \emph on
20539 none
20540 \end_layout
20541
20542 \end_inset
20543
20544
20545 \begin_inset Flex Code
20546 status collapsed
20547
20548 \begin_layout Plain Layout
20549 black
20550 \end_layout
20551
20552 \end_inset
20553
20554
20555 \begin_inset Flex Code
20556 status collapsed
20557
20558 \begin_layout Plain Layout
20559 white
20560 \end_layout
20561
20562 \end_inset
20563
20564
20565 \begin_inset Flex Code
20566 status collapsed
20567
20568 \begin_layout Plain Layout
20569 red
20570 \end_layout
20571
20572 \end_inset
20573
20574
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579 green
20580 \end_layout
20581
20582 \end_inset
20583
20584
20585 \begin_inset Flex Code
20586 status collapsed
20587
20588 \begin_layout Plain Layout
20589 blue
20590 \end_layout
20591
20592 \end_inset
20593
20594
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 cyan
20600 \end_layout
20601
20602 \end_inset
20603
20604
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 magenta
20610 \end_layout
20611
20612 \end_inset
20613
20614
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619 yellow
20620 \end_layout
20621
20622 \end_inset
20623
20624
20625 \begin_inset Flex Code
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 brown
20630 \end_layout
20631
20632 \end_inset
20633
20634
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 darkgray
20640 \end_layout
20641
20642 \end_inset
20643
20644
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 gray
20650 \end_layout
20651
20652 \end_inset
20653
20654
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 lightgray
20660 \end_layout
20661
20662 \end_inset
20663
20664
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 lime
20670 \end_layout
20671
20672 \end_inset
20673
20674
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 orange
20680 \end_layout
20681
20682 \end_inset
20683
20684
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 olive
20690 \end_layout
20691
20692 \end_inset
20693
20694
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 pink
20700 \end_layout
20701
20702 \end_inset
20703
20704
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 purple
20710 \end_layout
20711
20712 \end_inset
20713
20714
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 teal
20720 \end_layout
20721
20722 \end_inset
20723
20724
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 violet
20730 \end_layout
20731
20732 \end_inset
20733
20734 ]
20735 \end_layout
20736
20737 \begin_layout Description
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 Family
20743 \end_layout
20744
20745 \end_inset
20746
20747  [
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752
20753 \emph on
20754 Roman
20755 \end_layout
20756
20757 \end_inset
20758
20759
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 Sans
20765 \end_layout
20766
20767 \end_inset
20768
20769
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 Typewriter
20775 \end_layout
20776
20777 \end_inset
20778
20779 ]
20780 \end_layout
20781
20782 \begin_layout Description
20783 \begin_inset Flex Code
20784 status collapsed
20785
20786 \begin_layout Plain Layout
20787 Misc
20788 \end_layout
20789
20790 \end_inset
20791
20792  [
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 string
20798 \end_layout
20799
20800 \end_inset
20801
20802 ] Valid arguments are: 
20803 \begin_inset Flex Code
20804 status collapsed
20805
20806 \begin_layout Plain Layout
20807 emph
20808 \end_layout
20809
20810 \end_inset
20811
20812
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 noun
20818 \end_layout
20819
20820 \end_inset
20821
20822
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 strikeout
20828 \end_layout
20829
20830 \end_inset
20831
20832
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 underbar
20838 \end_layout
20839
20840 \end_inset
20841
20842
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 uuline
20848 \end_layout
20849
20850 \end_inset
20851
20852
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 uwave
20858 \end_layout
20859
20860 \end_inset
20861
20862
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 no_emph
20868 \end_layout
20869
20870 \end_inset
20871
20872
20873 \begin_inset Flex Code
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877 no_noun
20878 \end_layout
20879
20880 \end_inset
20881
20882
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 no_strikeout
20888 \end_layout
20889
20890 \end_inset
20891
20892
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 no_bar
20898 \end_layout
20899
20900 \end_inset
20901
20902
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 no_uuline
20908 \end_layout
20909
20910 \end_inset
20911
20912  and 
20913 \begin_inset Flex Code
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917 no_uwave
20918 \end_layout
20919
20920 \end_inset
20921
20922 .
20923  Each of these turns on or off the corresponding attribute.
20924  For example, 
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 emph
20930 \end_layout
20931
20932 \end_inset
20933
20934  turns on emphasis, and 
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 no_emph
20940 \end_layout
20941
20942 \end_inset
20943
20944  turns it off.
20945  
20946 \begin_inset Newline newline
20947 \end_inset
20948
20949 If the latter seems puzzling, remember that the font settings for the present
20950  context are generally inherited from the surrounding context.
20951  So 
20952 \begin_inset Flex Code
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956 no_emph
20957 \end_layout
20958
20959 \end_inset
20960
20961  would turn off the emphasis that was anyway in effect, say, in a theorem
20962  environment.
20963 \end_layout
20964
20965 \begin_layout Description
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 Series
20971 \end_layout
20972
20973 \end_inset
20974
20975  [
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980
20981 \emph on
20982 Medium
20983 \end_layout
20984
20985 \end_inset
20986
20987
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 Bold
20993 \end_layout
20994
20995 \end_inset
20996
20997
20998 \end_layout
20999
21000 \begin_layout Description
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 Shape
21006 \end_layout
21007
21008 \end_inset
21009
21010  [
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015
21016 \emph on
21017 Up
21018 \end_layout
21019
21020 \end_inset
21021
21022
21023 \begin_inset Flex Code
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 Italic
21028 \end_layout
21029
21030 \end_inset
21031
21032
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 SmallCaps
21038 \end_layout
21039
21040 \end_inset
21041
21042
21043 \begin_inset Flex Code
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047 Slanted
21048 \end_layout
21049
21050 \end_inset
21051
21052
21053 \end_layout
21054
21055 \begin_layout Description
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 Size
21061 \end_layout
21062
21063 \end_inset
21064
21065  [
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 tiny
21071 \end_layout
21072
21073 \end_inset
21074
21075
21076 \begin_inset Flex Code
21077 status collapsed
21078
21079 \begin_layout Plain Layout
21080 small
21081 \end_layout
21082
21083 \end_inset
21084
21085
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090
21091 \emph on
21092 normal
21093 \end_layout
21094
21095 \end_inset
21096
21097
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 large
21103 \end_layout
21104
21105 \end_inset
21106
21107
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 larger
21113 \end_layout
21114
21115 \end_inset
21116
21117
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 largest
21123 \end_layout
21124
21125 \end_inset
21126
21127
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 huge
21133 \end_layout
21134
21135 \end_inset
21136
21137
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 giant
21143 \end_layout
21144
21145 \end_inset
21146
21147 ]
21148 \end_layout
21149
21150 \begin_layout Subsection
21151 \begin_inset CommandInset label
21152 LatexCommand label
21153 name "subsec:Citation-engine-description"
21154
21155 \end_inset
21156
21157 Cite engine description
21158 \end_layout
21159
21160 \begin_layout Standard
21161 The 
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 CiteEngine
21167 \end_layout
21168
21169 \end_inset
21170
21171  blocks, as used mainly in cite engine files (see 
21172 \begin_inset CommandInset ref
21173 LatexCommand ref
21174 reference "subsec:Cite-Engine-Files"
21175 plural "false"
21176 caps "false"
21177 noprefix "false"
21178
21179 \end_inset
21180
21181 ), define the citation commands provided by a specific 
21182 \begin_inset Quotes eld
21183 \end_inset
21184
21185 cite engine
21186 \begin_inset Quotes erd
21187 \end_inset
21188
21189 .
21190  A cite engine, in \SpecialChar LyX
21191  terms, is way specific way to format citations, using
21192  numbers, author names and/or years.
21193  Currently, \SpecialChar LyX
21194  supports three such engine types, namely:
21195 \end_layout
21196
21197 \begin_layout Enumerate
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 default
21203 \end_layout
21204
21205 \end_inset
21206
21207 : the default Bib\SpecialChar TeX
21208  way to format citations, a simple numeric style (e.
21209 \begin_inset space \thinspace{}
21210 \end_inset
21211
21212 g., 
21213 \begin_inset Quotes eld
21214 \end_inset
21215
21216 [1]
21217 \begin_inset Quotes erd
21218 \end_inset
21219
21220 )
21221 \end_layout
21222
21223 \begin_layout Enumerate
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 authoryear
21229 \end_layout
21230
21231 \end_inset
21232
21233 : Harvard-styled citations using author names and publication year (e.
21234 \begin_inset space \thinspace{}
21235 \end_inset
21236
21237 g., 
21238 \begin_inset Quotes eld
21239 \end_inset
21240
21241 Smith and Miller (2017b)
21242 \begin_inset Quotes erd
21243 \end_inset
21244
21245 )
21246 \end_layout
21247
21248 \begin_layout Enumerate
21249 \begin_inset Flex Code
21250 status collapsed
21251
21252 \begin_layout Plain Layout
21253 numerical
21254 \end_layout
21255
21256 \end_inset
21257
21258 : extended numerical citations that also allow for author or title next
21259  to the number (e.
21260 \begin_inset space \thinspace{}
21261 \end_inset
21262
21263 g., 
21264 \begin_inset Quotes eld
21265 \end_inset
21266
21267 Smith and Miller [1]
21268 \begin_inset Quotes erd
21269 \end_inset
21270
21271 )
21272 \end_layout
21273
21274 \begin_layout Standard
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279 CiteEngine
21280 \end_layout
21281
21282 \end_inset
21283
21284  blocks look like this:
21285 \end_layout
21286
21287 \begin_layout LyX-Code
21288 CiteEngine default
21289 \end_layout
21290
21291 \begin_layout LyX-Code
21292  cite
21293 \end_layout
21294
21295 \begin_layout LyX-Code
21296  Citep*[][]
21297 \end_layout
21298
21299 \begin_layout LyX-Code
21300  citeyearpar[][]=parencite*
21301 \end_layout
21302
21303 \begin_layout LyX-Code
21304  ...
21305 \end_layout
21306
21307 \begin_layout LyX-Code
21308 End
21309 \end_layout
21310
21311 \begin_layout Standard
21312 The tag following 
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 CiteEngine
21318 \end_layout
21319
21320 \end_inset
21321
21322  denotes the engine.
21323  The individual lines respectively define a cite command or cite command
21324  paradigm supported by this engine.
21325  The line can be as simple as a cite command that is used both to name the
21326  respective \SpecialChar LyX
21327  command and the \SpecialChar LaTeX
21328  output or more complex in order to differentiate
21329  things.
21330  The full syntax is:
21331 \end_layout
21332
21333 \begin_layout LyX-Code
21334 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21335 \end_layout
21336
21337 \begin_layout Itemize
21338 \begin_inset Flex Code
21339 status collapsed
21340
21341 \begin_layout Plain Layout
21342 LyXName
21343 \end_layout
21344
21345 \end_inset
21346
21347 : The name as used in the 
21348 \begin_inset Flex Code
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352 *.lyx
21353 \end_layout
21354
21355 \end_inset
21356
21357  file.
21358 \end_layout
21359
21360 \begin_deeper
21361 \begin_layout Standard
21362 For portability reasons, we try to use the same name for same-formatted
21363  commands in different cite packages (thus many names stem from natbib,
21364  and thus we need to differentiate a 
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 latexcmd
21370 \end_layout
21371
21372 \end_inset
21373
21374  sometimes, if the \SpecialChar LaTeX
21375  command names differ).
21376 \end_layout
21377
21378 \end_deeper
21379 \begin_layout Itemize
21380 \begin_inset Flex Code
21381 status collapsed
21382
21383 \begin_layout Plain Layout
21384 alias
21385 \end_layout
21386
21387 \end_inset
21388
21389 : a (comma-separated) list of commands that fall back to the given 
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 LyXName
21395 \end_layout
21396
21397 \end_inset
21398
21399  in the current engine.
21400  This eases the switch of citation packages and engines.
21401  The 
21402 \begin_inset Flex Code
21403 status collapsed
21404
21405 \begin_layout Plain Layout
21406 alias
21407 \end_layout
21408
21409 \end_inset
21410
21411  can be compared to 
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 ObsoletedBy
21417 \end_layout
21418
21419 \end_inset
21420
21421  in layout definitions.
21422 \end_layout
21423
21424 \begin_layout Itemize
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 latexcmd
21430 \end_layout
21431
21432 \end_inset
21433
21434 : The actual \SpecialChar LaTeX
21435  command that is output.
21436  
21437 \end_layout
21438
21439 \begin_layout Standard
21440 \begin_inset Flex Code
21441 status collapsed
21442
21443 \begin_layout Plain Layout
21444 Alias
21445 \end_layout
21446
21447 \end_inset
21448
21449  and 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 latexcmd
21455 \end_layout
21456
21457 \end_inset
21458
21459  are optional.
21460  If no 
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 latexcmd
21466 \end_layout
21467
21468 \end_inset
21469
21470  is given, the 
21471 \begin_inset Flex Code
21472 status collapsed
21473
21474 \begin_layout Plain Layout
21475 LyXName
21476 \end_layout
21477
21478 \end_inset
21479
21480  will be output to \SpecialChar LaTeX
21481 .
21482 \end_layout
21483
21484 \begin_layout Standard
21485 Note further:
21486 \end_layout
21487
21488 \begin_layout Itemize
21489 Capitalization indicates that the command also has a capitalized form (
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494
21495 \backslash
21496 Latexcmd
21497 \end_layout
21498
21499 \end_inset
21500
21501  vs.
21502  
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507
21508 \backslash
21509 latexcmd
21510 \end_layout
21511
21512 \end_inset
21513
21514 ).
21515  These usually enforce up-casing of name prefixes (
21516 \emph on
21517 von Goethe
21518 \emph default
21519  
21520 \begin_inset Formula $\Rightarrow$
21521 \end_inset
21522
21523  
21524 \emph on
21525 Von Goethe
21526 \emph default
21527 ).
21528 \end_layout
21529
21530 \begin_layout Itemize
21531 Brackets 
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 []
21537 \end_layout
21538
21539 \end_inset
21540
21541  indicate the number of optional arguments (there can be 0–2).
21542 \end_layout
21543
21544 \begin_layout Itemize
21545 A star 
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550 *
21551 \end_layout
21552
21553 \end_inset
21554
21555  indicates there is a starred version of the command (
21556 \begin_inset Flex Code
21557 status collapsed
21558
21559 \begin_layout Plain Layout
21560
21561 \backslash
21562 latexcmd*
21563 \end_layout
21564
21565 \end_inset
21566
21567  vs.
21568  
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573
21574 \backslash
21575 latexcmd
21576 \end_layout
21577
21578 \end_inset
21579
21580 ).
21581  
21582 \end_layout
21583
21584 \begin_deeper
21585 \begin_layout Standard
21586 By default, the starred version means: Output all authors even if it should
21587  be shortened with 
21588 \begin_inset Quotes eld
21589 \end_inset
21590
21591 et al.
21592 \begin_inset Quotes erd
21593 \end_inset
21594
21595  due to the 
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 MaxCiteNames
21601 \end_layout
21602
21603 \end_inset
21604
21605  threshold.
21606 \end_layout
21607
21608 \begin_layout Standard
21609 If the star has a different meaning for a given command, it can be specified
21610  in angle brackets: 
21611 \begin_inset Flex Code
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615 <!_stardesc!_stardesctooltip>
21616 \end_layout
21617
21618 \end_inset
21619
21620 .
21621  Maximal two translatable macro keywords, marked by the prefix 
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 !_
21627 \end_layout
21628
21629 \end_inset
21630
21631 , can be given.
21632  The first points to the string that replaces the 
21633 \begin_inset Quotes eld
21634 \end_inset
21635
21636 Full aut&hor list
21637 \begin_inset Quotes erd
21638 \end_inset
21639
21640  checkbox label in the citation dialog, the second one to an optional tool
21641  tip for this checkbox.
21642  
21643 \end_layout
21644
21645 \begin_layout Standard
21646 Note that these two macros have to be defined in a 
21647 \begin_inset Flex Code
21648 status collapsed
21649
21650 \begin_layout Plain Layout
21651 CiteFormat
21652 \end_layout
21653
21654 \end_inset
21655
21656  (see next section), dropping the 
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661 !
21662 \end_layout
21663
21664 \end_inset
21665
21666  from the prefix, like this: 
21667 \end_layout
21668
21669 \begin_layout LyX-Code
21670 _stardesc Sta&rred command label
21671 \end_layout
21672
21673 \begin_layout LyX-Code
21674 _stardesctooltip Tooltip for the starred command checkbox.
21675 \end_layout
21676
21677 \end_deeper
21678 \begin_layout Itemize
21679 A dollar sign 
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 $
21685 \end_layout
21686
21687 \end_inset
21688
21689  indicates that this command features 
21690 \begin_inset Quotes eld
21691 \end_inset
21692
21693 qualified citation lists
21694 \begin_inset Quotes erd
21695 \end_inset
21696
21697 .
21698  This is a 
21699 \family sans
21700 Biblatex
21701 \family default
21702 -specific feature for multi-reference citations where an individual pre-
21703  and postnote can be given to each reference in the list.
21704  Please refer to the 
21705 \family sans
21706 Biblatex
21707 \family default
21708  manual for details.
21709 \end_layout
21710
21711 \begin_layout Subsection
21712 \begin_inset CommandInset label
21713 LatexCommand label
21714 name "subsec:Citation-format-description"
21715
21716 \end_inset
21717
21718 Cite format description
21719 \end_layout
21720
21721 \begin_layout Standard
21722 The 
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727 CiteFormat
21728 \end_layout
21729
21730 \end_inset
21731
21732  blocks are used to describe how bibliographic information should be displayed,
21733  both within \SpecialChar LyX
21734  itself (in the citation dialog and in tooltips, for example)
21735  and in XHTML output.
21736  Such a block might look like this:
21737 \end_layout
21738
21739 \begin_layout LyX-Code
21740 CiteFormat
21741 \end_layout
21742
21743 \begin_layout LyX-Code
21744  article ...
21745 \end_layout
21746
21747 \begin_layout LyX-Code
21748  book ...
21749 \end_layout
21750
21751 \begin_layout LyX-Code
21752 End
21753 \end_layout
21754
21755 \begin_layout Standard
21756 or
21757 \end_layout
21758
21759 \begin_layout LyX-Code
21760 CiteFormat
21761 \end_layout
21762
21763 \begin_layout LyX-Code
21764  cite ...
21765 \end_layout
21766
21767 \begin_layout LyX-Code
21768  citet*[][] ...
21769 \end_layout
21770
21771 \begin_layout LyX-Code
21772 End
21773 \end_layout
21774
21775 \begin_layout Standard
21776 In the first case, the individual lines define how the bibliographic information
21777  associated with an article or book, respectively, is to be displayed, and
21778  such a definition can be given for any 
21779 \begin_inset Quotes els
21780 \end_inset
21781
21782 entry type
21783 \begin_inset Quotes ers
21784 \end_inset
21785
21786  that might be present in a Bib\SpecialChar TeX
21787  file.
21788  \SpecialChar LyX
21789  defines a default format in the source code that will be used if no specific
21790  definition has been given.
21791  \SpecialChar LyX
21792  predefines several formats in the file 
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 stdciteformats.inc
21798 \end_layout
21799
21800 \end_inset
21801
21802 , which is included in most of \SpecialChar LyX
21803 's document classes.
21804 \end_layout
21805
21806 \begin_layout Standard
21807 In the second case, the lines define how a specific citation command (in
21808  the example 
21809 \begin_inset Flex Code
21810 status collapsed
21811
21812 \begin_layout Plain Layout
21813
21814 \backslash
21815 cite
21816 \end_layout
21817
21818 \end_inset
21819
21820
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825
21826 \backslash
21827 citet
21828 \end_layout
21829
21830 \end_inset
21831
21832 ) is to be displayed on the citation inset label, in the citation dialog,
21833  menu or XHTML output.
21834  \SpecialChar LyX
21835  defines such formats for the citation style variants it supports via 
21836 \family sans
21837 Document\SpecialChar menuseparator
21838 Setting\SpecialChar menuseparator
21839 Bibliography\SpecialChar ldots
21840
21841 \family default
21842  in specific 
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 *.citeengine
21848 \end_layout
21849
21850 \end_inset
21851
21852  files that are shipped with \SpecialChar LyX
21853  (see 
21854 \begin_inset CommandInset ref
21855 LatexCommand ref
21856 reference "subsec:Cite-Engine-Files"
21857 plural "false"
21858 caps "false"
21859 noprefix "false"
21860
21861 \end_inset
21862
21863 ).
21864 \end_layout
21865
21866 \begin_layout Standard
21867 The definitions use a simple language that allows Bib\SpecialChar TeX
21868  keys to be replaced
21869  with their values.
21870  Keys should be enclosed in 
21871 \begin_inset Flex Code
21872 status collapsed
21873
21874 \begin_layout Plain Layout
21875 %
21876 \end_layout
21877
21878 \end_inset
21879
21880  signs, e.g.: 
21881 \begin_inset Flex Code
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885 %author%
21886 \end_layout
21887
21888 \end_inset
21889
21890 .
21891  So a simple definition might look like this:
21892 \end_layout
21893
21894 \begin_layout LyX-Code
21895 misc %author%, 
21896 \begin_inset Quotes eld
21897 \end_inset
21898
21899 %title%
21900 \begin_inset Quotes erd
21901 \end_inset
21902
21903 .
21904 \end_layout
21905
21906 \begin_layout Standard
21907 This would print the author, followed by a comma, followed by the title,
21908  in quotes, followed by a period.
21909 \end_layout
21910
21911 \begin_layout Standard
21912 Of course, sometimes you may want to print a key only if it exists.
21913  This can be done by using a conditional construction, such as: 
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 {%volume%[[vol.
21919 \begin_inset space ~
21920 \end_inset
21921
21922 %volume%]]}
21923 \end_layout
21924
21925 \end_inset
21926
21927 .
21928  This says: If the 
21929 \begin_inset Flex Code
21930 status collapsed
21931
21932 \begin_layout Plain Layout
21933 volume
21934 \end_layout
21935
21936 \end_inset
21937
21938  key exists, then print 
21939 \begin_inset Quotes eld
21940 \end_inset
21941
21942 vol.
21943 \begin_inset space ~
21944 \end_inset
21945
21946
21947 \begin_inset Quotes erd
21948 \end_inset
21949
21950  followed by the volume key.
21951  It is also possible to have an else clause in the conditional, such as:
21952 \begin_inset Newline newline
21953 \end_inset
21954
21955
21956 \begin_inset Flex Code
21957 status collapsed
21958
21959 \begin_layout Plain Layout
21960 {%author%[[%author%]][[%editor%, ed.]]}
21961 \end_layout
21962
21963 \end_inset
21964
21965 .
21966 \begin_inset Newline newline
21967 \end_inset
21968
21969 Here, the 
21970 \begin_inset Flex Code
21971 status collapsed
21972
21973 \begin_layout Plain Layout
21974 author
21975 \end_layout
21976
21977 \end_inset
21978
21979  key is printed if it exists; otherwise, the editor key is printed, followed
21980  by 
21981 \begin_inset Quotes eld
21982 \end_inset
21983
21984 ,
21985 \begin_inset space ~
21986 \end_inset
21987
21988 ed.
21989 \begin_inset Quotes erd
21990 \end_inset
21991
21992  Note that the key is again enclosed in 
21993 \begin_inset Flex Code
21994 status collapsed
21995
21996 \begin_layout Plain Layout
21997 %
21998 \end_layout
21999
22000 \end_inset
22001
22002  signs; the entire conditional is enclosed in braces; and the if and else
22003  clauses are enclosed in double brackets, 
22004 \begin_inset Quotes eld
22005 \end_inset
22006
22007
22008 \begin_inset Flex Code
22009 status collapsed
22010
22011 \begin_layout Plain Layout
22012 [[
22013 \end_layout
22014
22015 \end_inset
22016
22017
22018 \begin_inset Quotes eld
22019 \end_inset
22020
22021  and 
22022 \begin_inset Quotes eld
22023 \end_inset
22024
22025
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 ]]
22031 \end_layout
22032
22033 \end_inset
22034
22035
22036 \begin_inset Quotes erd
22037 \end_inset
22038
22039 .
22040  There must be no space between any of these.
22041 \end_layout
22042
22043 \begin_layout Standard
22044 Next to the entry keys, there are some special keys that can be used for
22045  these conditionals:
22046 \end_layout
22047
22048 \begin_layout Itemize
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 {%dialog%[[true]][[false]]}
22054 \end_layout
22055
22056 \end_inset
22057
22058 : process the 
22059 \begin_inset Quotes eld
22060 \end_inset
22061
22062 true
22063 \begin_inset Quotes erd
22064 \end_inset
22065
22066  part for dialogs and menus, the 
22067 \begin_inset Quotes eld
22068 \end_inset
22069
22070 false
22071 \begin_inset Quotes erd
22072 \end_inset
22073
22074  part for other contexts (workarea, export)
22075 \end_layout
22076
22077 \begin_layout Itemize
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 {%export%[[true]][[false]]}
22083 \end_layout
22084
22085 \end_inset
22086
22087 : process the 
22088 \begin_inset Quotes eld
22089 \end_inset
22090
22091 true
22092 \begin_inset Quotes erd
22093 \end_inset
22094
22095  part for export and menus, the 
22096 \begin_inset Quotes eld
22097 \end_inset
22098
22099 false
22100 \begin_inset Quotes erd
22101 \end_inset
22102
22103  part for other contexts (workarea, dialog)
22104 \end_layout
22105
22106 \begin_layout Itemize
22107 \begin_inset Flex Code
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111 {%next%[[true]]}
22112 \end_layout
22113
22114 \end_inset
22115
22116 : process the 
22117 \begin_inset Quotes eld
22118 \end_inset
22119
22120 true
22121 \begin_inset Quotes erd
22122 \end_inset
22123
22124  part if another item follows (e.
22125 \begin_inset space \thinspace{}
22126 \end_inset
22127
22128 g., in a citation with multiple keys)
22129 \end_layout
22130
22131 \begin_layout Itemize
22132 \begin_inset Flex Code
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136 {%second%[[true]][[false]]}
22137 \end_layout
22138
22139 \end_inset
22140
22141 : process the 
22142 \begin_inset Quotes eld
22143 \end_inset
22144
22145 true
22146 \begin_inset Quotes erd
22147 \end_inset
22148
22149  if this is the second of multiple items, else the 
22150 \begin_inset Quotes eld
22151 \end_inset
22152
22153 false
22154 \begin_inset Quotes erd
22155 \end_inset
22156
22157  part
22158 \end_layout
22159
22160 \begin_layout Itemize
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 {%ifstar%[[true]][[false]]}
22166 \end_layout
22167
22168 \end_inset
22169
22170 : process the 
22171 \begin_inset Quotes eld
22172 \end_inset
22173
22174 true
22175 \begin_inset Quotes erd
22176 \end_inset
22177
22178  part for starred citation commands (such as 
22179 \begin_inset Flex Code
22180 status collapsed
22181
22182 \begin_layout Plain Layout
22183
22184 \backslash
22185 cite*
22186 \end_layout
22187
22188 \end_inset
22189
22190 ), the false part for unstarred
22191 \end_layout
22192
22193 \begin_layout Itemize
22194 \begin_inset Flex Code
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 {%ifentrytype:<type>%[[true]][[false]]}
22199 \end_layout
22200
22201 \end_inset
22202
22203 : process the 
22204 \begin_inset Quotes eld
22205 \end_inset
22206
22207 true
22208 \begin_inset Quotes erd
22209 \end_inset
22210
22211  if the current entry type matches 
22212 \begin_inset Flex Code
22213 status collapsed
22214
22215 \begin_layout Plain Layout
22216 <type>
22217 \end_layout
22218
22219 \end_inset
22220
22221 , else the false part (e.g., in a citation definition: 
22222 \begin_inset Flex Code
22223 status collapsed
22224
22225 \begin_layout Plain Layout
22226 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22227 \end_layout
22228
22229 \end_inset
22230
22231 )
22232 \end_layout
22233
22234 \begin_layout Itemize
22235 \begin_inset Flex Code
22236 status collapsed
22237
22238 \begin_layout Plain Layout
22239 {%ifmultiple:<authortype>%[[true]][[false]]}
22240 \end_layout
22241
22242 \end_inset
22243
22244 : process the 
22245 \begin_inset Quotes eld
22246 \end_inset
22247
22248 true
22249 \begin_inset Quotes erd
22250 \end_inset
22251
22252  if the current author type (author, editor etc.) has multiple authors, else
22253  the false part (e.g., in a bibliography definition: 
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258 {%ifmultiple:editor%[[eds.]][[ed.]]}
22259 \end_layout
22260
22261 \end_inset
22262
22263 )
22264 \end_layout
22265
22266 \begin_layout Itemize
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 {%ifqualified%[[true]][[false]]}
22272 \end_layout
22273
22274 \end_inset
22275
22276 : process the 
22277 \begin_inset Quotes eld
22278 \end_inset
22279
22280 true
22281 \begin_inset Quotes erd
22282 \end_inset
22283
22284  part if the current citation is a qualified citation list (a specific 
22285 \family sans
22286 Biblatex
22287 \family default
22288  format for multi-reference citations), the false part if this is not the
22289  case.
22290 \end_layout
22291
22292 \begin_layout Standard
22293 We said that 
22294 \begin_inset Flex Code
22295 status collapsed
22296
22297 \begin_layout Plain Layout
22298 %author%
22299 \end_layout
22300
22301 \end_inset
22302
22303  prints the author key as it is recorded in the bibliography file.
22304  This might not be what you want, since it will result in a string such
22305  as 
22306 \begin_inset Quotes eld
22307 \end_inset
22308
22309 Miller, Peter and Smith, Mary and White, Jane
22310 \begin_inset Quotes erd
22311 \end_inset
22312
22313  (since 
22314 \begin_inset Quotes eld
22315 \end_inset
22316
22317 and
22318 \begin_inset Quotes erd
22319 \end_inset
22320
22321  is used by Bib\SpecialChar TeX
22322  to delimit authors).
22323  \SpecialChar LyX
22324  therefore provides some methods to get properly formatted name lists (which
22325  will also get translated).
22326  The following keys are provided:
22327 \end_layout
22328
22329 \begin_layout Enumerate
22330 For name lists with pre- and surname, suitable for the main authors/editors
22331  of a bibliography item.
22332  The 
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337 <nametype>
22338 \end_layout
22339
22340 \end_inset
22341
22342  part denotes the kind of list that is requested (e.g.
22343  
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 <nametype:author>
22349 \end_layout
22350
22351 \end_inset
22352
22353 ):
22354 \end_layout
22355
22356 \begin_deeper
22357 \begin_layout Itemize
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 %abbrvnames:<nametype>%
22363 \end_layout
22364
22365 \end_inset
22366
22367 : Provides a name list which is abbreviated (with 
22368 \begin_inset Quotes eld
22369 \end_inset
22370
22371 et al.
22372 \begin_inset Quotes erd
22373 \end_inset
22374
22375 ) when 
22376 \begin_inset Flex Code
22377 status collapsed
22378
22379 \begin_layout Plain Layout
22380 MaxCiteNames
22381 \end_layout
22382
22383 \end_inset
22384
22385  is reached.
22386 \end_layout
22387
22388 \begin_layout Itemize
22389 \begin_inset Flex Code
22390 status collapsed
22391
22392 \begin_layout Plain Layout
22393 %fullnames:<nametype>%
22394 \end_layout
22395
22396 \end_inset
22397
22398 : Provides a full name list (never abbreviated with 
22399 \begin_inset Quotes eld
22400 \end_inset
22401
22402 et al.
22403 \begin_inset Quotes erd
22404 \end_inset
22405
22406 ).
22407 \end_layout
22408
22409 \begin_layout Itemize
22410 \begin_inset Flex Code
22411 status collapsed
22412
22413 \begin_layout Plain Layout
22414 %forceabbrvnames:<nametype>%
22415 \end_layout
22416
22417 \end_inset
22418
22419 : Provides a name list which is always abbreviated (with 
22420 \begin_inset Quotes eld
22421 \end_inset
22422
22423 et al.
22424 \begin_inset Quotes erd
22425 \end_inset
22426
22427 ) irrespective of 
22428 \begin_inset Flex Code
22429 status collapsed
22430
22431 \begin_layout Plain Layout
22432 MaxCiteNames
22433 \end_layout
22434
22435 \end_inset
22436
22437 .
22438 \end_layout
22439
22440 \end_deeper
22441 \begin_layout Enumerate
22442 Alternative name lists with pre- and surname, if the order of pre- and surname
22443  inside the bibliography item differs (as in: 
22444 \begin_inset Quotes eld
22445 \end_inset
22446
22447 Miller, John: Some text, in: Mary Smith, ed.: A volume
22448 \begin_inset Quotes erd
22449 \end_inset
22450
22451 ):
22452 \end_layout
22453
22454 \begin_deeper
22455 \begin_layout Itemize
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 %abbrvbynames:<nametype>%
22461 \end_layout
22462
22463 \end_inset
22464
22465 : Provides a name list which is abbreviated (with 
22466 \begin_inset Quotes eld
22467 \end_inset
22468
22469 et al.
22470 \begin_inset Quotes erd
22471 \end_inset
22472
22473 ) when 
22474 \begin_inset Flex Code
22475 status collapsed
22476
22477 \begin_layout Plain Layout
22478 MaxCiteNames
22479 \end_layout
22480
22481 \end_inset
22482
22483  is reached.
22484 \end_layout
22485
22486 \begin_layout Itemize
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 %fullbynames:<nametype>%
22492 \end_layout
22493
22494 \end_inset
22495
22496 : Provides a full name list (never abbreviated with 
22497 \begin_inset Quotes eld
22498 \end_inset
22499
22500 et al.
22501 \begin_inset Quotes erd
22502 \end_inset
22503
22504 ).
22505 \end_layout
22506
22507 \begin_layout Itemize
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 %forceabbrvbynames:<nametype>%
22513 \end_layout
22514
22515 \end_inset
22516
22517 : Provides a name list which is always abbreviated (with 
22518 \begin_inset Quotes eld
22519 \end_inset
22520
22521 et al.
22522 \begin_inset Quotes erd
22523 \end_inset
22524
22525 ) irrespective of 
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 MaxCiteNames
22531 \end_layout
22532
22533 \end_inset
22534
22535 .
22536 \end_layout
22537
22538 \end_deeper
22539 \begin_layout Enumerate
22540 And finally name lists which consist of family names only, as used in author-yea
22541 r citation labels.
22542  These do not take a 
22543 \begin_inset Flex Code
22544 status collapsed
22545
22546 \begin_layout Plain Layout
22547 <nametype>
22548 \end_layout
22549
22550 \end_inset
22551
22552  part, but always return either an author list or, if this does not exist,
22553  an editor list (as common in author-year labels):
22554 \end_layout
22555
22556 \begin_deeper
22557 \begin_layout Itemize
22558 \begin_inset Flex Code
22559 status collapsed
22560
22561 \begin_layout Plain Layout
22562 %abbrvciteauthor%
22563 \end_layout
22564
22565 \end_inset
22566
22567 : Provides a name list which is abbreviated (with 
22568 \begin_inset Quotes eld
22569 \end_inset
22570
22571 et al.
22572 \begin_inset Quotes erd
22573 \end_inset
22574
22575 ) when 
22576 \begin_inset Flex Code
22577 status collapsed
22578
22579 \begin_layout Plain Layout
22580 MaxCiteNames
22581 \end_layout
22582
22583 \end_inset
22584
22585  is reached.
22586 \end_layout
22587
22588 \begin_layout Itemize
22589 \begin_inset Flex Code
22590 status collapsed
22591
22592 \begin_layout Plain Layout
22593 %fullciteauthor%
22594 \end_layout
22595
22596 \end_inset
22597
22598 : Provides a full name list (never abbreviated with 
22599 \begin_inset Quotes eld
22600 \end_inset
22601
22602 et al.
22603 \begin_inset Quotes erd
22604 \end_inset
22605
22606 ).
22607 \end_layout
22608
22609 \begin_layout Itemize
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614 %forceabbrvciteauthor%
22615 \end_layout
22616
22617 \end_inset
22618
22619 : Provides a name list which is always abbreviated (with 
22620 \begin_inset Quotes eld
22621 \end_inset
22622
22623 et al.
22624 \begin_inset Quotes erd
22625 \end_inset
22626
22627 ) irrespective of 
22628 \begin_inset Flex Code
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 MaxCiteNames
22633 \end_layout
22634
22635 \end_inset
22636
22637 .
22638 \end_layout
22639
22640 \end_deeper
22641 \begin_layout Standard
22642 The order of pre- and surname in the former two lists can be adjusted by
22643  these macros:
22644 \end_layout
22645
22646 \begin_layout Itemize
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651 !firstnameform %surname%, %prename%
22652 \end_layout
22653
22654 \end_inset
22655
22656  (first author in lists of type 1)
22657 \end_layout
22658
22659 \begin_layout Itemize
22660 \begin_inset Flex Code
22661 status collapsed
22662
22663 \begin_layout Plain Layout
22664 !othernameform %surname%, %prename%
22665 \end_layout
22666
22667 \end_inset
22668
22669  (other authors in lists of type 1)
22670 \end_layout
22671
22672 \begin_layout Itemize
22673 \begin_inset Flex Code
22674 status collapsed
22675
22676 \begin_layout Plain Layout
22677 !firstbynameform %prename% %surname%
22678 \end_layout
22679
22680 \end_inset
22681
22682  (first author in lists of type 2)
22683 \end_layout
22684
22685 \begin_layout Itemize
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 !otherbynameform %prename% %surname%
22691 \end_layout
22692
22693 \end_inset
22694
22695  (other authors in lists of type 2)
22696 \end_layout
22697
22698 \begin_layout Standard
22699 This allows you to configure namings like 
22700 \begin_inset Quotes eld
22701 \end_inset
22702
22703 Miller, Peter and Mary Smith: \SpecialChar ldots
22704 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22705
22706 \begin_inset Quotes erd
22707 \end_inset
22708
22709 .
22710 \end_layout
22711
22712 \begin_layout Standard
22713 There is one other piece of syntax available in definitions, which looks
22714  like this: 
22715 \begin_inset Flex Code
22716 status collapsed
22717
22718 \begin_layout Plain Layout
22719 {!<i>!}
22720 \end_layout
22721
22722 \end_inset
22723
22724 .
22725  This defines a piece of formatting information that is to be used when
22726  creating 
22727 \begin_inset Quotes eld
22728 \end_inset
22729
22730 rich text
22731 \begin_inset Quotes erd
22732 \end_inset
22733
22734 .
22735  Obviously, we do not want to output HTML tags when writing plain text,
22736  so they should be wrapped in 
22737 \begin_inset Quotes eld
22738 \end_inset
22739
22740 {!
22741 \begin_inset Quotes erd
22742 \end_inset
22743
22744  and 
22745 \begin_inset Quotes eld
22746 \end_inset
22747
22748 !}
22749 \begin_inset Quotes erd
22750 \end_inset
22751
22752 .
22753 \end_layout
22754
22755 \begin_layout Standard
22756 Two special sorts of definitions are also possible in a 
22757 \begin_inset Flex Code
22758 status collapsed
22759
22760 \begin_layout Plain Layout
22761 CiteFormat
22762 \end_layout
22763
22764 \end_inset
22765
22766  block.
22767  An example of the first would be:
22768 \end_layout
22769
22770 \begin_layout LyX-Code
22771 !quotetitle 
22772 \begin_inset Quotes eld
22773 \end_inset
22774
22775 %title%
22776 \begin_inset Quotes erd
22777 \end_inset
22778
22779
22780 \end_layout
22781
22782 \begin_layout Standard
22783 This is an abbreviation, or macro, and it can be used by treating it as
22784  if it were a key: 
22785 \begin_inset Flex Code
22786 status collapsed
22787
22788 \begin_layout Plain Layout
22789 %!quotetitle%
22790 \end_layout
22791
22792 \end_inset
22793
22794 .
22795  \SpecialChar LyX
22796  will treat 
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 %!quotetitle%
22802 \end_layout
22803
22804 \end_inset
22805
22806  exactly as it would treat its definition.
22807  So, let us issue the obvious 
22808 \emph on
22809 warning
22810 \emph default
22811 .
22812  Do not do this:
22813 \end_layout
22814
22815 \begin_layout LyX-Code
22816 !funfun %funfun%
22817 \end_layout
22818
22819 \begin_layout Standard
22820 or anything like it.
22821  \SpecialChar LyX
22822  shouldn't go into an infinite loop, but it may go into a long one before
22823  it gives up.
22824 \end_layout
22825
22826 \begin_layout Standard
22827 The second sort of special definition might look like this:
22828 \end_layout
22829
22830 \begin_layout LyX-Code
22831 _pptext pp.
22832 \end_layout
22833
22834 \begin_layout Standard
22835 This defines a translatable piece of text, which allows relevant parts of
22836  the bibliography or citation to be translated.
22837  It can be included in a definition by treating it as a key: 
22838 \begin_inset Flex Code
22839 status collapsed
22840
22841 \begin_layout Plain Layout
22842 %_pptext%
22843 \end_layout
22844
22845 \end_inset
22846
22847 .
22848  Several of these are predefined in 
22849 \begin_inset Flex Code
22850 status collapsed
22851
22852 \begin_layout Plain Layout
22853 stdciteformats.inc
22854 \end_layout
22855
22856 \end_inset
22857
22858  and the diverse 
22859 \begin_inset Flex Code
22860 status collapsed
22861
22862 \begin_layout Plain Layout
22863 *.citeengine
22864 \end_layout
22865
22866 \end_inset
22867
22868  files.
22869  Note that these are not macros, in the sense just defined.
22870  They will not be expanded.
22871 \end_layout
22872
22873 \begin_layout Standard
22874 So here then is an example that use all these features:
22875 \begin_inset VSpace defskip
22876 \end_inset
22877
22878
22879 \end_layout
22880
22881 \begin_layout Standard
22882 \noindent
22883
22884 \family typewriter
22885 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
22886 \end_layout
22887
22888 \begin_layout Standard
22889 \begin_inset VSpace defskip
22890 \end_inset
22891
22892 This defines a macro that prints the author, followed by a comma, if the
22893  
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 author
22899 \end_layout
22900
22901 \end_inset
22902
22903  key is defined, or else prints the name of the editor, followed by the
22904  
22905 \begin_inset Flex Code
22906 status collapsed
22907
22908 \begin_layout Plain Layout
22909 _edtext
22910 \end_layout
22911
22912 \end_inset
22913
22914  or its translation (it is by default 
22915 \begin_inset Quotes eld
22916 \end_inset
22917
22918 ed.
22919 \begin_inset Quotes erd
22920 \end_inset
22921
22922 ), if the 
22923 \begin_inset Flex Code
22924 status collapsed
22925
22926 \begin_layout Plain Layout
22927 editor
22928 \end_layout
22929
22930 \end_inset
22931
22932  key is defined.
22933  Note that this is in fact defined in 
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 stdciteformats.inc
22939 \end_layout
22940
22941 \end_inset
22942
22943 , so you can use it in your own definitions, or re-definitions, if you load
22944  that file first.
22945 \end_layout
22946
22947 \begin_layout Section
22948 \begin_inset CommandInset label
22949 LatexCommand label
22950 name "sec:Tags-for-XHTML"
22951
22952 \end_inset
22953
22954 Tags for XHTML output
22955 \end_layout
22956
22957 \begin_layout Standard
22958 As with \SpecialChar LaTeX
22959  or DocBook, the format of \SpecialChar LyX
22960 's XHTML output is also controlled by
22961  layout information.
22962  In general, \SpecialChar LyX
22963  provides sensible defaults and, as mentioned earlier, it will
22964  even construct default CSS style rules from the other layout tags.
22965  For example, \SpecialChar LyX
22966  will attempt to use the information provided in the 
22967 \begin_inset Flex Code
22968 status collapsed
22969
22970 \begin_layout Plain Layout
22971 Font
22972 \end_layout
22973
22974 \end_inset
22975
22976  declaration for the Chapter style to write CSS that will appropriately
22977  format chapter headings.
22978 \end_layout
22979
22980 \begin_layout Standard
22981 In many cases, then, you may not have to do anything at all to get acceptable
22982  XHTML output for your own environments, custom insets, and so forth.
22983  But in some cases you will, and so \SpecialChar LyX
22984  provides a number of layout tags that
22985  can be used to customize the XHTML and CSS that are generated.
22986 \end_layout
22987
22988 \begin_layout Standard
22989 Note that there are two tags, 
22990 \begin_inset Flex Code
22991 status collapsed
22992
22993 \begin_layout Plain Layout
22994 HTMLPreamble
22995 \end_layout
22996
22997 \end_inset
22998
22999  and 
23000 \begin_inset Flex Code
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 AddToHTMLPreamble
23005 \end_layout
23006
23007 \end_inset
23008
23009  that may appear outside style and inset declarations.
23010  See 
23011 \begin_inset CommandInset ref
23012 LatexCommand ref
23013 reference "subsec:General-text-class"
23014
23015 \end_inset
23016
23017  for details on these.
23018 \end_layout
23019
23020 \begin_layout Subsection
23021 \begin_inset CommandInset label
23022 LatexCommand label
23023 name "subsec:Paragraph-Style-XHTML"
23024
23025 \end_inset
23026
23027 Paragraph styles
23028 \end_layout
23029
23030 \begin_layout Standard
23031 The sort of XHTML \SpecialChar LyX
23032  outputs for a paragraph depends upon whether we are dealing
23033  with a normal paragraph, a command, or an environment, where this is itself
23034  determined by the contents of the corresponding 
23035 \begin_inset Flex Code
23036 status collapsed
23037
23038 \begin_layout Plain Layout
23039 \SpecialChar LaTeX
23040 Type
23041 \end_layout
23042
23043 \end_inset
23044
23045  tag.
23046  
23047 \end_layout
23048
23049 \begin_layout Standard
23050 For a command or normal paragraph, the output XHTML has the following form:
23051 \end_layout
23052
23053 \begin_layout LyX-Code
23054 <tag attr=
23055 \begin_inset Quotes erd
23056 \end_inset
23057
23058 value
23059 \begin_inset Quotes erd
23060 \end_inset
23061
23062 >
23063 \end_layout
23064
23065 \begin_layout LyX-Code
23066 <labeltag attr=
23067 \begin_inset Quotes erd
23068 \end_inset
23069
23070 value
23071 \begin_inset Quotes erd
23072 \end_inset
23073
23074 >Label</labeltag>
23075 \end_layout
23076
23077 \begin_layout LyX-Code
23078 Contents of the paragraph.
23079 \end_layout
23080
23081 \begin_layout LyX-Code
23082 </tag>
23083 \end_layout
23084
23085 \begin_layout Standard
23086 The label tags are of course omitted if the paragraph does not have a label.
23087 \end_layout
23088
23089 \begin_layout Standard
23090 For an environment that is not some sort of list, the XHTML takes this form:
23091 \end_layout
23092
23093 \begin_layout LyX-Code
23094 <tag attr=
23095 \begin_inset Quotes erd
23096 \end_inset
23097
23098 value
23099 \begin_inset Quotes erd
23100 \end_inset
23101
23102 >
23103 \end_layout
23104
23105 \begin_layout LyX-Code
23106 <itemtag attr=
23107 \begin_inset Quotes erd
23108 \end_inset
23109
23110 value
23111 \begin_inset Quotes erd
23112 \end_inset
23113
23114 ><labeltag attr=
23115 \begin_inset Quotes erd
23116 \end_inset
23117
23118 value
23119 \begin_inset Quotes erd
23120 \end_inset
23121
23122 >Environment Label</labeltag>First paragraph.</itemtag>
23123 \end_layout
23124
23125 \begin_layout LyX-Code
23126 <itemtag>Second paragraph.</itemtag>
23127 \end_layout
23128
23129 \begin_layout LyX-Code
23130 </tag>
23131 \end_layout
23132
23133 \begin_layout Standard
23134 Note that the label is output only for the first paragraph, as it should
23135  be for a theorem, for example.
23136  
23137 \end_layout
23138
23139 \begin_layout Standard
23140 For a list, we have one of these forms:
23141 \end_layout
23142
23143 \begin_layout LyX-Code
23144 <tag attr=
23145 \begin_inset Quotes erd
23146 \end_inset
23147
23148 value
23149 \begin_inset Quotes erd
23150 \end_inset
23151
23152 >
23153 \end_layout
23154
23155 \begin_layout LyX-Code
23156 <itemtag attr=
23157 \begin_inset Quotes erd
23158 \end_inset
23159
23160 value
23161 \begin_inset Quotes erd
23162 \end_inset
23163
23164 ><labeltag attr=
23165 \begin_inset Quotes erd
23166 \end_inset
23167
23168 value
23169 \begin_inset Quotes erd
23170 \end_inset
23171
23172 >List Label</labeltag>First item.</itemtag>
23173 \end_layout
23174
23175 \begin_layout LyX-Code
23176 <itemtag attr=
23177 \begin_inset Quotes erd
23178 \end_inset
23179
23180 value
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184 ><labeltag attr=
23185 \begin_inset Quotes erd
23186 \end_inset
23187
23188 value
23189 \begin_inset Quotes erd
23190 \end_inset
23191
23192 >List Label</labeltag>Second item.</itemtag>
23193 \end_layout
23194
23195 \begin_layout LyX-Code
23196 </tag>
23197 \end_layout
23198
23199 \begin_layout LyX-Code
23200
23201 \end_layout
23202
23203 \begin_layout LyX-Code
23204 <tag attr=
23205 \begin_inset Quotes erd
23206 \end_inset
23207
23208 value
23209 \begin_inset Quotes erd
23210 \end_inset
23211
23212 >
23213 \end_layout
23214
23215 \begin_layout LyX-Code
23216 <labeltag attr=
23217 \begin_inset Quotes erd
23218 \end_inset
23219
23220 value
23221 \begin_inset Quotes erd
23222 \end_inset
23223
23224 >List Label</labeltag><itemtag attr=
23225 \begin_inset Quotes erd
23226 \end_inset
23227
23228 value
23229 \begin_inset Quotes erd
23230 \end_inset
23231
23232 >First item.</itemtag>
23233 \end_layout
23234
23235 \begin_layout LyX-Code
23236 <labeltag attr=
23237 \begin_inset Quotes erd
23238 \end_inset
23239
23240 value
23241 \begin_inset Quotes erd
23242 \end_inset
23243
23244 >List Label</labeltag><itemtag attr=
23245 \begin_inset Quotes erd
23246 \end_inset
23247
23248 value
23249 \begin_inset Quotes erd
23250 \end_inset
23251
23252 >Second item.</itemtag>
23253 \end_layout
23254
23255 \begin_layout LyX-Code
23256 </tag>
23257 \end_layout
23258
23259 \begin_layout Standard
23260 Note the different orders of 
23261 \begin_inset Flex Code
23262 status collapsed
23263
23264 \begin_layout Plain Layout
23265 labeltag
23266 \end_layout
23267
23268 \end_inset
23269
23270  and 
23271 \begin_inset Flex Code
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275 itemtag
23276 \end_layout
23277
23278 \end_inset
23279
23280 .
23281  Which order we get depends upon the setting of 
23282 \begin_inset Flex Code
23283 status collapsed
23284
23285 \begin_layout Plain Layout
23286 HTMLLabelFirst
23287 \end_layout
23288
23289 \end_inset
23290
23291 : If 
23292 \begin_inset Flex Code
23293 status collapsed
23294
23295 \begin_layout Plain Layout
23296 HTMLLabelFirst
23297 \end_layout
23298
23299 \end_inset
23300
23301  is false (the default), you get the first of these, with the label within
23302  the item; if true, you get the second, with the label outside the item.
23303 \end_layout
23304
23305 \begin_layout Standard
23306 The specific tags and attributes output for each paragraph type can be controlle
23307 d by means of the layout tags we are about to describe.
23308  As mentioned earlier, however, \SpecialChar LyX
23309  uses sensible defaults for many of these,
23310  so you often may not need to do very much to get good XHTML output.
23311  Think of the available tags as there so you can tweak things to your liking.
23312 \end_layout
23313
23314 \begin_layout Description
23315 \begin_inset Flex Code
23316 status collapsed
23317
23318 \begin_layout Plain Layout
23319 HTMLAttr
23320 \end_layout
23321
23322 \end_inset
23323
23324  [
23325 \begin_inset Flex Code
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329 string
23330 \end_layout
23331
23332 \end_inset
23333
23334 ] Specifies attribute information to be output with the main tag.
23335  For example, 
23336 \begin_inset Quotes eld
23337 \end_inset
23338
23339
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 class=`mydiv'
23345 \end_layout
23346
23347 \end_inset
23348
23349
23350 \begin_inset Quotes erd
23351 \end_inset
23352
23353 .
23354  By default, \SpecialChar LyX
23355  will output 
23356 \begin_inset Quotes eld
23357 \end_inset
23358
23359
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 class=`layoutname'
23365 \end_layout
23366
23367 \end_inset
23368
23369
23370 \begin_inset Quotes erd
23371 \end_inset
23372
23373 , where 
23374 \begin_inset Flex Code
23375 status collapsed
23376
23377 \begin_layout Plain Layout
23378 layoutname
23379 \end_layout
23380
23381 \end_inset
23382
23383  is the \SpecialChar LyX
23384  name of the layout, made lowercase, for example: chapter.
23385  This should 
23386 \emph on
23387 not
23388 \emph default
23389  contain any style information.
23390  Use 
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 HTMLStyle
23396 \end_layout
23397
23398 \end_inset
23399
23400  for that purpose.
23401 \end_layout
23402
23403 \begin_layout Description
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408 HTMLForceCSS
23409 \end_layout
23410
23411 \end_inset
23412
23413  [
23414 \begin_inset Flex Code
23415 status collapsed
23416
23417 \begin_layout Plain Layout
23418
23419 \emph on
23420 0
23421 \emph default
23422 ,1
23423 \end_layout
23424
23425 \end_inset
23426
23427 ] Whether to output the default CSS information \SpecialChar LyX
23428  generates for this layout,
23429  even if additional information is explicitly provided via 
23430 \begin_inset Flex Code
23431 status collapsed
23432
23433 \begin_layout Plain Layout
23434 HTMLStyle
23435 \end_layout
23436
23437 \end_inset
23438
23439 .
23440  Setting this to 
23441 \begin_inset Flex Code
23442 status collapsed
23443
23444 \begin_layout Plain Layout
23445 1
23446 \end_layout
23447
23448 \end_inset
23449
23450  allows you to alter or augment the generated CSS, rather than to override
23451  it completely.
23452  Default is 
23453 \begin_inset Flex Code
23454 status collapsed
23455
23456 \begin_layout Plain Layout
23457 0
23458 \end_layout
23459
23460 \end_inset
23461
23462 .
23463 \end_layout
23464
23465 \begin_layout Description
23466 \begin_inset Flex Code
23467 status collapsed
23468
23469 \begin_layout Plain Layout
23470 HTMLItem
23471 \end_layout
23472
23473 \end_inset
23474
23475  [
23476 \begin_inset Flex Code
23477 status collapsed
23478
23479 \begin_layout Plain Layout
23480 string
23481 \end_layout
23482
23483 \end_inset
23484
23485 ] The tag to be used for individual paragraphs of environments, replacing
23486  
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 itemtag
23492 \end_layout
23493
23494 \end_inset
23495
23496  in the examples above.
23497  Defaults to 
23498 \begin_inset Flex Code
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502 div
23503 \end_layout
23504
23505 \end_inset
23506
23507 .
23508 \end_layout
23509
23510 \begin_layout Description
23511 \begin_inset Flex Code
23512 status collapsed
23513
23514 \begin_layout Plain Layout
23515 HTMLItemAttr
23516 \end_layout
23517
23518 \end_inset
23519
23520  [
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 string
23526 \end_layout
23527
23528 \end_inset
23529
23530 ] Attributes for the item tag.
23531  Defaults to 
23532 \begin_inset Quotes eld
23533 \end_inset
23534
23535
23536 \begin_inset Flex Code
23537 status collapsed
23538
23539 \begin_layout Plain Layout
23540 class=`layoutname_item'
23541 \end_layout
23542
23543 \end_inset
23544
23545
23546 \begin_inset Quotes erd
23547 \end_inset
23548
23549 .
23550  This should 
23551 \emph on
23552 not
23553 \emph default
23554  contain any style information.
23555  Use 
23556 \begin_inset Flex Code
23557 status collapsed
23558
23559 \begin_layout Plain Layout
23560 HTMLStyle
23561 \end_layout
23562
23563 \end_inset
23564
23565  for that purpose.
23566 \end_layout
23567
23568 \begin_layout Description
23569 \begin_inset Flex Code
23570 status collapsed
23571
23572 \begin_layout Plain Layout
23573 HTMLLabel
23574 \end_layout
23575
23576 \end_inset
23577
23578  [
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583 string
23584 \end_layout
23585
23586 \end_inset
23587
23588 ] The tag to be used for paragraph and item labels, replacing 
23589 \begin_inset Flex Code
23590 status collapsed
23591
23592 \begin_layout Plain Layout
23593 labeltag
23594 \end_layout
23595
23596 \end_inset
23597
23598  in the examples above.
23599  Defaults to 
23600 \begin_inset Flex Code
23601 status collapsed
23602
23603 \begin_layout Plain Layout
23604 span
23605 \end_layout
23606
23607 \end_inset
23608
23609 , unless 
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 LabelType
23615 \end_layout
23616
23617 \end_inset
23618
23619  is either 
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624 Top_Environment
23625 \end_layout
23626
23627 \end_inset
23628
23629  or 
23630 \begin_inset Flex Code
23631 status collapsed
23632
23633 \begin_layout Plain Layout
23634 Centered_Top_Environment
23635 \end_layout
23636
23637 \end_inset
23638
23639 , in which case it defaults to 
23640 \begin_inset Flex Code
23641 status collapsed
23642
23643 \begin_layout Plain Layout
23644 div
23645 \end_layout
23646
23647 \end_inset
23648
23649 .
23650 \end_layout
23651
23652 \begin_layout Description
23653 \begin_inset Flex Code
23654 status collapsed
23655
23656 \begin_layout Plain Layout
23657 HTMLLabelAttr
23658 \end_layout
23659
23660 \end_inset
23661
23662  [
23663 \begin_inset Flex Code
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 string
23668 \end_layout
23669
23670 \end_inset
23671
23672 ] Attributes for the label tag.
23673  Defaults to 
23674 \begin_inset Quotes eld
23675 \end_inset
23676
23677
23678 \begin_inset Flex Code
23679 status collapsed
23680
23681 \begin_layout Plain Layout
23682 class=`layoutname_label'
23683 \end_layout
23684
23685 \end_inset
23686
23687
23688 \begin_inset Quotes erd
23689 \end_inset
23690
23691 .
23692  This should 
23693 \emph on
23694 not
23695 \emph default
23696  contain any style information.
23697  Use 
23698 \begin_inset Flex Code
23699 status collapsed
23700
23701 \begin_layout Plain Layout
23702 HTMLStyle
23703 \end_layout
23704
23705 \end_inset
23706
23707  for that purpose.
23708 \end_layout
23709
23710 \begin_layout Description
23711 \begin_inset Flex Code
23712 status collapsed
23713
23714 \begin_layout Plain Layout
23715 HTMLLabelFirst
23716 \end_layout
23717
23718 \end_inset
23719
23720  [
23721 \begin_inset Flex Code
23722 status collapsed
23723
23724 \begin_layout Plain Layout
23725
23726 \emph on
23727 0
23728 \emph default
23729 ,1
23730 \end_layout
23731
23732 \end_inset
23733
23734 ] Meaningful only for list-like environments, this tag controls whether
23735  the label tag is output before or inside the item tag.
23736  This is used, for example, in the description environment, where we want
23737  `
23738 \begin_inset Flex Code
23739 status collapsed
23740
23741 \begin_layout Plain Layout
23742 <dt>\SpecialChar ldots
23743 </dt><dd>\SpecialChar ldots
23744 </dd>
23745 \end_layout
23746
23747 \end_inset
23748
23749 .
23750  Default is 
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 0
23756 \end_layout
23757
23758 \end_inset
23759
23760 : The label tag is output inside the item tag.
23761 \end_layout
23762
23763 \begin_layout Description
23764 \begin_inset Flex Code
23765 status collapsed
23766
23767 \begin_layout Plain Layout
23768 HTMLPreamble
23769 \end_layout
23770
23771 \end_inset
23772
23773  Information to be output in the 
23774 \begin_inset Flex Code
23775 status collapsed
23776
23777 \begin_layout Plain Layout
23778 <head>
23779 \end_layout
23780
23781 \end_inset
23782
23783  section when this style is used.
23784  This might, for example, be used to include a 
23785 \begin_inset Flex Code
23786 status collapsed
23787
23788 \begin_layout Plain Layout
23789 <script>
23790 \end_layout
23791
23792 \end_inset
23793
23794  block defining an 
23795 \begin_inset Flex Code
23796 status collapsed
23797
23798 \begin_layout Plain Layout
23799 onclick
23800 \end_layout
23801
23802 \end_inset
23803
23804  handler.
23805 \end_layout
23806
23807 \begin_layout Description
23808 \begin_inset Flex Code
23809 status collapsed
23810
23811 \begin_layout Plain Layout
23812 HTMLStyle
23813 \end_layout
23814
23815 \end_inset
23816
23817  CSS style information to be included when this style is used.
23818  Note that this will automatically be wrapped in a layout-generated 
23819 \begin_inset Flex Code
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823 <style>
23824 \end_layout
23825
23826 \end_inset
23827
23828  block, so only the CSS itself need be included.
23829  Must end with 
23830 \begin_inset Flex Code
23831 status collapsed
23832
23833 \begin_layout Plain Layout
23834 EndHTMLStyle
23835 \end_layout
23836
23837 \end_inset
23838
23839 .
23840 \end_layout
23841
23842 \begin_layout Description
23843 \begin_inset Flex Code
23844 status collapsed
23845
23846 \begin_layout Plain Layout
23847 HTMLTag
23848 \end_layout
23849
23850 \end_inset
23851
23852  [
23853 \begin_inset Flex Code
23854 status collapsed
23855
23856 \begin_layout Plain Layout
23857 string
23858 \end_layout
23859
23860 \end_inset
23861
23862 ] The tag to be used for the main label, replacing 
23863 \begin_inset Flex Code
23864 status collapsed
23865
23866 \begin_layout Plain Layout
23867 tag
23868 \end_layout
23869
23870 \end_inset
23871
23872  in the examples above.
23873  Defaults to 
23874 \begin_inset Flex Code
23875 status collapsed
23876
23877 \begin_layout Plain Layout
23878 div
23879 \end_layout
23880
23881 \end_inset
23882
23883 .
23884 \end_layout
23885
23886 \begin_layout Description
23887 \begin_inset Flex Code
23888 status collapsed
23889
23890 \begin_layout Plain Layout
23891 HTMLTitle
23892 \end_layout
23893
23894 \end_inset
23895
23896  [
23897 \begin_inset Flex Code
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901
23902 \emph on
23903 0
23904 \emph default
23905 ,1
23906 \end_layout
23907
23908 \end_inset
23909
23910 ] Marks this style as the one to be used to generate the 
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915 <title>
23916 \end_layout
23917
23918 \end_inset
23919
23920  tag for the XHTML file.
23921  By default, it is false.
23922  The 
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 stdtitle.inc
23928 \end_layout
23929
23930 \end_inset
23931
23932  file sets it to true for the 
23933 \begin_inset Flex Code
23934 status collapsed
23935
23936 \begin_layout Plain Layout
23937 title
23938 \end_layout
23939
23940 \end_inset
23941
23942  environment.
23943  
23944 \end_layout
23945
23946 \begin_layout Subsection
23947 InsetLayout XHTML
23948 \end_layout
23949
23950 \begin_layout Standard
23951 The XHTML output of insets can also be controlled by information in layout
23952  files.
23953 \begin_inset Foot
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957 At present, this is true only for 
23958 \begin_inset Quotes eld
23959 \end_inset
23960
23961 text
23962 \begin_inset Quotes erd
23963 \end_inset
23964
23965  insets (insets you can type into) and is not true for 
23966 \begin_inset Quotes eld
23967 \end_inset
23968
23969 command
23970 \begin_inset Quotes erd
23971 \end_inset
23972
23973  insets (insets that are associated with dialog boxes).
23974 \end_layout
23975
23976 \end_inset
23977
23978  Here, too, \SpecialChar LyX
23979  tries to provide sensible defaults, and it constructs default
23980  CSS style rules.
23981  But everything can be customized.
23982 \end_layout
23983
23984 \begin_layout Standard
23985 The XHTML \SpecialChar LyX
23986  outputs for an inset has the following form:
23987 \end_layout
23988
23989 \begin_layout LyX-Code
23990 <tag attr=
23991 \begin_inset Quotes erd
23992 \end_inset
23993
23994 value
23995 \begin_inset Quotes erd
23996 \end_inset
23997
23998 >
23999 \end_layout
24000
24001 \begin_layout LyX-Code
24002 <labeltag>Label</labeltag>
24003 \end_layout
24004
24005 \begin_layout LyX-Code
24006 <innertag attr=
24007 \begin_inset Quotes erd
24008 \end_inset
24009
24010 value
24011 \begin_inset Quotes erd
24012 \end_inset
24013
24014 >Contents of the inset.</innertag>
24015 \end_layout
24016
24017 \begin_layout LyX-Code
24018 </tag>
24019 \end_layout
24020
24021 \begin_layout Standard
24022 If the inset permits multiple paragraphs—that is, if 
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 MultiPar
24028 \end_layout
24029
24030 \end_inset
24031
24032  is true—then the contents of the inset will itself be output as paragraphs
24033  formatted according to the styles used for those paragraphs (standard,
24034  quote, and the like).
24035  The label tag is of course omitted if the paragraph does not have a label
24036  and, at present, is always 
24037 \begin_inset Flex Code
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041 span
24042 \end_layout
24043
24044 \end_inset
24045
24046 .
24047  The inner tag is optional and, by default, does not appear.
24048 \end_layout
24049
24050 \begin_layout Standard
24051 The specific tags and attributes output for each inset can be controlled
24052  by means of the following layout tags.
24053 \end_layout
24054
24055 \begin_layout Description
24056 \begin_inset Flex Code
24057 status collapsed
24058
24059 \begin_layout Plain Layout
24060 HTMLAttr
24061 \end_layout
24062
24063 \end_inset
24064
24065  [
24066 \begin_inset Flex Code
24067 status collapsed
24068
24069 \begin_layout Plain Layout
24070 string
24071 \end_layout
24072
24073 \end_inset
24074
24075 ] Specifies attribute information to be output with the main tag.
24076  For example, 
24077 \begin_inset Quotes eld
24078 \end_inset
24079
24080
24081 \begin_inset Flex Code
24082 status collapsed
24083
24084 \begin_layout Plain Layout
24085 class=`myinset' onclick=`\SpecialChar ldots
24086 '
24087 \end_layout
24088
24089 \end_inset
24090
24091
24092 \begin_inset Quotes erd
24093 \end_inset
24094
24095 .
24096  By default, \SpecialChar LyX
24097  will output 
24098 \begin_inset Quotes eld
24099 \end_inset
24100
24101
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 class=`insetname'
24107 \end_layout
24108
24109 \end_inset
24110
24111
24112 \begin_inset Quotes erd
24113 \end_inset
24114
24115 , where 
24116 \begin_inset Flex Code
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120 insetname
24121 \end_layout
24122
24123 \end_inset
24124
24125  is the \SpecialChar LyX
24126  name of the inset, made lowercase and with non-alphanumeric characters
24127  converted to underscores, for example: footnote.
24128 \end_layout
24129
24130 \begin_layout Description
24131 \begin_inset Flex Code
24132 status collapsed
24133
24134 \begin_layout Plain Layout
24135 HTMLForceCSS
24136 \end_layout
24137
24138 \end_inset
24139
24140  [
24141 \begin_inset Flex Code
24142 status collapsed
24143
24144 \begin_layout Plain Layout
24145
24146 \emph on
24147 0
24148 \emph default
24149 ,1
24150 \end_layout
24151
24152 \end_inset
24153
24154 ] Whether to output the default CSS information \SpecialChar LyX
24155  generates for this layout,
24156  even if additional information is explicitly provided via 
24157 \begin_inset Flex Code
24158 status collapsed
24159
24160 \begin_layout Plain Layout
24161 HTMLStyle
24162 \end_layout
24163
24164 \end_inset
24165
24166 .
24167  Setting this to 
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 1
24173 \end_layout
24174
24175 \end_inset
24176
24177  allows you to alter or augment the generated CSS, rather than to override
24178  it completely.
24179  Default is 0.
24180 \end_layout
24181
24182 \begin_layout Description
24183 \begin_inset Flex Code
24184 status collapsed
24185
24186 \begin_layout Plain Layout
24187 HTMLInnerAttr
24188 \end_layout
24189
24190 \end_inset
24191
24192  [
24193 \begin_inset Flex Code
24194 status collapsed
24195
24196 \begin_layout Plain Layout
24197 string
24198 \end_layout
24199
24200 \end_inset
24201
24202 ] Attributes for the inner tag.
24203  Defaults to 
24204 \begin_inset Quotes eld
24205 \end_inset
24206
24207
24208 \begin_inset Flex Code
24209 status collapsed
24210
24211 \begin_layout Plain Layout
24212 class=`insetname_inner'
24213 \end_layout
24214
24215 \end_inset
24216
24217
24218 \begin_inset Quotes erd
24219 \end_inset
24220
24221 .
24222 \end_layout
24223
24224 \begin_layout Description
24225 \begin_inset Flex Code
24226 status collapsed
24227
24228 \begin_layout Plain Layout
24229 HTMLInnerTag
24230 \end_layout
24231
24232 \end_inset
24233
24234  [
24235 \begin_inset Flex Code
24236 status collapsed
24237
24238 \begin_layout Plain Layout
24239 string
24240 \end_layout
24241
24242 \end_inset
24243
24244 ] The inner tag, replacing 
24245 \begin_inset Flex Code
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249 innertag
24250 \end_layout
24251
24252 \end_inset
24253
24254  in the examples above.
24255  By default, there is none.
24256 \end_layout
24257
24258 \begin_layout Description
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 HTMLIsBlock
24264 \end_layout
24265
24266 \end_inset
24267
24268  [
24269 \begin_inset Flex Code
24270 status collapsed
24271
24272 \begin_layout Plain Layout
24273 0,
24274 \emph on
24275 1
24276 \end_layout
24277
24278 \end_inset
24279
24280 ] Whether this inset represents a standalone block of text (such as a footnote)
24281  or instead represents material that is included in the surrounding text
24282  (such as a branch).
24283  Defaults to 1.
24284 \end_layout
24285
24286 \begin_layout Description
24287 \begin_inset Flex Code
24288 status collapsed
24289
24290 \begin_layout Plain Layout
24291 HTMLLabel
24292 \end_layout
24293
24294 \end_inset
24295
24296  [
24297 \begin_inset Flex Code
24298 status collapsed
24299
24300 \begin_layout Plain Layout
24301 string
24302 \end_layout
24303
24304 \end_inset
24305
24306 ] A label for this inset, possibly including a reference to a counter.
24307  For example, for footnote, it might be: 
24308 \begin_inset Flex Code
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312
24313 \backslash
24314 arabic{footnote}
24315 \end_layout
24316
24317 \end_inset
24318
24319 .
24320  This is optional, and there is no default.
24321 \end_layout
24322
24323 \begin_layout Description
24324 \begin_inset Flex Code
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328 HTMLPreamble
24329 \end_layout
24330
24331 \end_inset
24332
24333  Information to be output in the 
24334 \begin_inset Flex Code
24335 status collapsed
24336
24337 \begin_layout Plain Layout
24338 <head>
24339 \end_layout
24340
24341 \end_inset
24342
24343  section when this style is used.
24344  This might, for example, be used to include a 
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 <script>
24350 \end_layout
24351
24352 \end_inset
24353
24354  block defining an 
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359 onclick
24360 \end_layout
24361
24362 \end_inset
24363
24364  handler.
24365 \end_layout
24366
24367 \begin_layout Description
24368 \begin_inset Flex Code
24369 status collapsed
24370
24371 \begin_layout Plain Layout
24372 HTMLStyle
24373 \end_layout
24374
24375 \end_inset
24376
24377  CSS style information to be included when this style is used.
24378  Note that this will automatically be wrapped in a layout-generated 
24379 \begin_inset Flex Code
24380 status collapsed
24381
24382 \begin_layout Plain Layout
24383 <style>
24384 \end_layout
24385
24386 \end_inset
24387
24388  block, so only the CSS itself need be included.
24389 \end_layout
24390
24391 \begin_layout Description
24392 \begin_inset Flex Code
24393 status collapsed
24394
24395 \begin_layout Plain Layout
24396 HTMLTag
24397 \end_layout
24398
24399 \end_inset
24400
24401  [
24402 \begin_inset Flex Code
24403 status collapsed
24404
24405 \begin_layout Plain Layout
24406 string
24407 \end_layout
24408
24409 \end_inset
24410
24411 ] The tag to be used for the main label, replacing 
24412 \begin_inset Flex Code
24413 status collapsed
24414
24415 \begin_layout Plain Layout
24416 tag
24417 \end_layout
24418
24419 \end_inset
24420
24421  in the examples above.
24422  The default depends upon the setting of 
24423 \begin_inset Flex Code
24424 status collapsed
24425
24426 \begin_layout Plain Layout
24427 MultiPar
24428 \end_layout
24429
24430 \end_inset
24431
24432 : If 
24433 \begin_inset Flex Code
24434 status collapsed
24435
24436 \begin_layout Plain Layout
24437 MultiPar
24438 \end_layout
24439
24440 \end_inset
24441
24442  is true, the default is 
24443 \begin_inset Flex Code
24444 status collapsed
24445
24446 \begin_layout Plain Layout
24447 div
24448 \end_layout
24449
24450 \end_inset
24451
24452 ; if it is false, the default is 
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 span
24458 \end_layout
24459
24460 \end_inset
24461
24462 .
24463 \end_layout
24464
24465 \begin_layout Subsection
24466 Float XHTML
24467 \end_layout
24468
24469 \begin_layout Standard
24470 The XHTML output for floats too can be controlled by layout information.
24471  The output has the following form:
24472 \end_layout
24473
24474 \begin_layout LyX-Code
24475 <tag attr=
24476 \begin_inset Quotes erd
24477 \end_inset
24478
24479 value
24480 \begin_inset Quotes erd
24481 \end_inset
24482
24483 >
24484 \end_layout
24485
24486 \begin_layout LyX-Code
24487 Contents of the float.
24488 \end_layout
24489
24490 \begin_layout LyX-Code
24491 </tag>
24492 \end_layout
24493
24494 \begin_layout Standard
24495 The caption, if there is one, is a separate inset and will be output as
24496  such.
24497  Its appearance can be controlled via the InsetLayout for caption insets.
24498  
24499 \end_layout
24500
24501 \begin_layout Description
24502 \begin_inset Flex Code
24503 status collapsed
24504
24505 \begin_layout Plain Layout
24506 HTMLAttr
24507 \end_layout
24508
24509 \end_inset
24510
24511  [
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516 string
24517 \end_layout
24518
24519 \end_inset
24520
24521 ] Specifies attribute information to be output with the main tag.
24522  For example, 
24523 \begin_inset Quotes eld
24524 \end_inset
24525
24526
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531 class=`myfloat' onclick=`\SpecialChar ldots
24532 '
24533 \end_layout
24534
24535 \end_inset
24536
24537
24538 \begin_inset Quotes erd
24539 \end_inset
24540
24541 .
24542  By default, \SpecialChar LyX
24543  will output 
24544 \begin_inset Quotes eld
24545 \end_inset
24546
24547
24548 \begin_inset Flex Code
24549 status collapsed
24550
24551 \begin_layout Plain Layout
24552 class=`float float-floattype'
24553 \end_layout
24554
24555 \end_inset
24556
24557
24558 \begin_inset Quotes erd
24559 \end_inset
24560
24561 , where 
24562 \begin_inset Flex Code
24563 status collapsed
24564
24565 \begin_layout Plain Layout
24566 floattype
24567 \end_layout
24568
24569 \end_inset
24570
24571  is \SpecialChar LyX
24572 's name for this type of float, as determined by the float declaration
24573  (see 
24574 \begin_inset CommandInset ref
24575 LatexCommand ref
24576 reference "subsec:Floats"
24577
24578 \end_inset
24579
24580 ), though made lowercase and with non-alphanumeric characters converted
24581  to underscores, for example: float-table.
24582 \end_layout
24583
24584 \begin_layout Description
24585 \begin_inset Flex Code
24586 status collapsed
24587
24588 \begin_layout Plain Layout
24589 HTMLStyle
24590 \end_layout
24591
24592 \end_inset
24593
24594  CSS style information to be included when this float is used.
24595  Note that this will automatically be wrapped in a layout-generated 
24596 \begin_inset Flex Code
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600 <style>
24601 \end_layout
24602
24603 \end_inset
24604
24605  block, so only the CSS itself need be included.
24606 \end_layout
24607
24608 \begin_layout Description
24609 \begin_inset Flex Code
24610 status collapsed
24611
24612 \begin_layout Plain Layout
24613 HTMLTag
24614 \end_layout
24615
24616 \end_inset
24617
24618  [
24619 \begin_inset Flex Code
24620 status collapsed
24621
24622 \begin_layout Plain Layout
24623 string
24624 \end_layout
24625
24626 \end_inset
24627
24628 ] The tag to be used for this float, replacing 
24629 \begin_inset Quotes eld
24630 \end_inset
24631
24632
24633 \begin_inset Flex Code
24634 status collapsed
24635
24636 \begin_layout Plain Layout
24637 tag
24638 \end_layout
24639
24640 \end_inset
24641
24642
24643 \begin_inset Quotes erd
24644 \end_inset
24645
24646  in the example above.
24647  The default is 
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652 div
24653 \end_layout
24654
24655 \end_inset
24656
24657  and will rarely need changing.
24658 \end_layout
24659
24660 \begin_layout Subsection
24661 Bibliography formatting
24662 \end_layout
24663
24664 \begin_layout Standard
24665 The bibliography can be formatted using 
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670 CiteFormat
24671 \end_layout
24672
24673 \end_inset
24674
24675  blocks.
24676  See 
24677 \begin_inset CommandInset ref
24678 LatexCommand ref
24679 reference "subsec:Citation-format-description"
24680
24681 \end_inset
24682
24683  for the details.
24684 \end_layout
24685
24686 \begin_layout Subsection
24687 \SpecialChar LyX
24688 -generated CSS
24689 \end_layout
24690
24691 \begin_layout Standard
24692 We have several times mentioned that \SpecialChar LyX
24693  will generate default CSS style rules
24694  for both insets and paragraph styles, based upon the other layout information
24695  that is provided.
24696  In this section, we shall say a word about which layout information \SpecialChar LyX
24697  uses
24698  and how.
24699 \end_layout
24700
24701 \begin_layout Standard
24702 At present, \SpecialChar LyX
24703  auto-generates CSS only for font information, making use of
24704  the 
24705 \begin_inset Flex Code
24706 status collapsed
24707
24708 \begin_layout Plain Layout
24709 Family
24710 \end_layout
24711
24712 \end_inset
24713
24714
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 Series
24720 \end_layout
24721
24722 \end_inset
24723
24724
24725 \begin_inset Flex Code
24726 status collapsed
24727
24728 \begin_layout Plain Layout
24729 Shape
24730 \end_layout
24731
24732 \end_inset
24733
24734 , and 
24735 \begin_inset Flex Code
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739 Size
24740 \end_layout
24741
24742 \end_inset
24743
24744  specified in the 
24745 \begin_inset Flex Code
24746 status collapsed
24747
24748 \begin_layout Plain Layout
24749 Font
24750 \end_layout
24751
24752 \end_inset
24753
24754  declaration (see 
24755 \begin_inset CommandInset ref
24756 LatexCommand ref
24757 reference "subsec:Font-description"
24758
24759 \end_inset
24760
24761 ).
24762  The translation is mostly straightforward and obvious.
24763  For example, 
24764 \begin_inset Quotes eld
24765 \end_inset
24766
24767
24768 \begin_inset Flex Code
24769 status collapsed
24770
24771 \begin_layout Plain Layout
24772 Family Sans
24773 \end_layout
24774
24775 \end_inset
24776
24777
24778 \begin_inset Quotes erd
24779 \end_inset
24780
24781  becomes 
24782 \begin_inset Quotes eld
24783 \end_inset
24784
24785
24786 \begin_inset Flex Code
24787 status collapsed
24788
24789 \begin_layout Plain Layout
24790 font-family: sans-serif;
24791 \end_layout
24792
24793 \end_inset
24794
24795
24796 \begin_inset Quotes erd
24797 \end_inset
24798
24799 .
24800  The correspondence of \SpecialChar LyX
24801  sizes and CSS sizes is a little less obvious but
24802  nonetheless intuitive.
24803  See the 
24804 \begin_inset Flex Code
24805 status collapsed
24806
24807 \begin_layout Plain Layout
24808 getSizeCSS()
24809 \end_layout
24810
24811 \end_inset
24812
24813  function in 
24814 \begin_inset Flex URL
24815 status collapsed
24816
24817 \begin_layout Plain Layout
24818
24819 src/FontInfo.cpp
24820 \end_layout
24821
24822 \end_inset
24823
24824  for the details.
24825 \end_layout
24826
24827 \begin_layout Chapter
24828 Including External Material
24829 \begin_inset CommandInset label
24830 LatexCommand label
24831 name "chap:Including-External-Material"
24832
24833 \end_inset
24834
24835
24836 \end_layout
24837
24838 \begin_layout Standard
24839 \begin_inset Box Shadowbox
24840 position "t"
24841 hor_pos "c"
24842 has_inner_box 1
24843 inner_pos "t"
24844 use_parbox 0
24845 use_makebox 0
24846 width "100col%"
24847 special "none"
24848 height "1in"
24849 height_special "totalheight"
24850 thickness "0.4pt"
24851 separation "3pt"
24852 shadowsize "4pt"
24853 framecolor "black"
24854 backgroundcolor "none"
24855 status open
24856
24857 \begin_layout Plain Layout
24858 WARNING: This portion of the documentation has not been updated for some
24859  time.
24860  We certainly hope that it is still accurate, but there are no guarantees.
24861 \end_layout
24862
24863 \end_inset
24864
24865
24866 \end_layout
24867
24868 \begin_layout Standard
24869 The use of material from sources external to \SpecialChar LyX
24870  is covered in detail in the
24871  
24872 \emph on
24873 Embedded Objects
24874 \emph default
24875  manual.
24876  This part of the manual covers what needs to happen behind the scenes for
24877  new sorts of material to be included.
24878 \end_layout
24879
24880 \begin_layout Section
24881 How does it work?
24882 \end_layout
24883
24884 \begin_layout Standard
24885 The external material feature is based on the concept of a 
24886 \emph on
24887 template
24888 \emph default
24889 .
24890  A template is a specification of how \SpecialChar LyX
24891  should interface with a certain kind
24892  of material.
24893  As bundled, \SpecialChar LyX
24894  comes with predefined templates for Xfig figures, various
24895  raster format images, chess diagrams, and LilyPond music notation.
24896  You can check the actual list by using the menu 
24897 \begin_inset Flex Noun
24898 status collapsed
24899
24900 \begin_layout Plain Layout
24901 Insert\SpecialChar menuseparator
24902 File\SpecialChar menuseparator
24903 External Material
24904 \end_layout
24905
24906 \end_inset
24907
24908 .
24909  Furthermore, it is possible to roll your own template to support a specific
24910  kind of material.
24911  Later we'll describe in more detail what is involved, and hopefully you
24912  will submit all the templates you create so we can include them in a later
24913  \SpecialChar LyX
24914  version.
24915 \end_layout
24916
24917 \begin_layout Standard
24918 Another basic idea of the external material feature is to distinguish between
24919  the original file that serves as a base for final material and the produced
24920  file that is included in your exported or printed document.
24921  For example, consider the case of a figure produced with 
24922 \begin_inset Flex Code
24923 status collapsed
24924
24925 \begin_layout Plain Layout
24926 Xfig
24927 \end_layout
24928
24929 \end_inset
24930
24931 .
24932  The Xfig application itself works on an original file with the 
24933 \begin_inset Flex Code
24934 status collapsed
24935
24936 \begin_layout Plain Layout
24937 .fig
24938 \end_layout
24939
24940 \end_inset
24941
24942  extension.
24943  Within Xfig, you create and change your figure, and when you are done,
24944  you save the 
24945 \begin_inset Flex Code
24946 status collapsed
24947
24948 \begin_layout Plain Layout
24949 fig
24950 \end_layout
24951
24952 \end_inset
24953
24954 -file.
24955  When you want to include the figure in your document, you invoke 
24956 \begin_inset Flex Code
24957 status collapsed
24958
24959 \begin_layout Plain Layout
24960 transfig
24961 \end_layout
24962
24963 \end_inset
24964
24965  in order to create a PostScript file that can readily be included in your
24966  \SpecialChar LaTeX
24967  file.
24968  In this case, the 
24969 \begin_inset Flex Code
24970 status collapsed
24971
24972 \begin_layout Plain Layout
24973 .fig
24974 \end_layout
24975
24976 \end_inset
24977
24978  file is the original file, and the PostScript file is the produced file.
24979 \end_layout
24980
24981 \begin_layout Standard
24982 This distinction is important in order to allow updating of the material
24983  while you are in the process of writing the document.
24984  Furthermore, it provides us with the flexibility that is needed to support
24985  multiple export formats.
24986  For instance, in the case of a plain text file, it is not exactly an award-winn
24987 ing idea to include the figure as raw PostScript.
24988  Instead, you would either prefer to just include a reference to the figure
24989  or try to invoke some graphics to ASCII converter to make the final result
24990  look similar to the real graphics.
24991  The external material management allows you to do this, because it is parametri
24992 zed on the different export formats that \SpecialChar LyX
24993  supports.
24994 \end_layout
24995
24996 \begin_layout Standard
24997 Besides supporting the production of different products according to the
24998  exported format, it supports tight integration with editing and viewing
24999  applications.
25000  In the case of an Xfig figure, you are able to invoke Xfig on the original
25001  file with a single click from within the external material dialog in \SpecialChar LyX
25002 ,
25003  and also preview the produced PostScript file with Ghostview with another
25004  click.
25005  No more fiddling around with the command line and/or file browsers to locate
25006  and manipulate the original or produced files.
25007  In this way, you are finally able to take full advantage of the many different
25008  applications that are relevant to use when you write your documents, and
25009  ultimately be more productive.
25010 \end_layout
25011
25012 \begin_layout Section
25013 The external template configuration files
25014 \end_layout
25015
25016 \begin_layout Standard
25017 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25018 .
25019  However, be aware that doing this in an careless manner most probably 
25020 \emph on
25021 will
25022 \emph default
25023  introduce an easily exploitable security hole.
25024  So before you do this, please read the discussion about security in 
25025 \begin_inset CommandInset ref
25026 LatexCommand ref
25027 reference "sec:Security-discussion"
25028
25029 \end_inset
25030
25031 .
25032 \end_layout
25033
25034 \begin_layout Standard
25035 Having said that, we encourage you to submit any interesting templates that
25036  you create.
25037  
25038 \end_layout
25039
25040 \begin_layout Standard
25041 The external templates are defined in the 
25042 \begin_inset Flex Code
25043 status collapsed
25044
25045 \begin_layout Plain Layout
25046 *.xtemplate
25047 \end_layout
25048
25049 \end_inset
25050
25051  files that are stored in the 
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056 LyXDir/lib/xtemplates/
25057 \end_layout
25058
25059 \end_inset
25060
25061  directory.
25062  Each template is defined in a file of its own.
25063  You can place your own templates in 
25064 \begin_inset Flex Code
25065 status collapsed
25066
25067 \begin_layout Plain Layout
25068 UserDir/xtemplates/
25069 \end_layout
25070
25071 \end_inset
25072
25073  or copy existing templates to that directory in order to modify them.
25074 \end_layout
25075
25076 \begin_layout Standard
25077 A typical template looks like this:
25078 \end_layout
25079
25080 \begin_layout LyX-Code
25081 Template XFig
25082 \end_layout
25083
25084 \begin_layout LyX-Code
25085 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25086 \end_layout
25087
25088 \begin_layout LyX-Code
25089 HelpText
25090 \end_layout
25091
25092 \begin_layout LyX-Code
25093 An XFig figure.
25094 \end_layout
25095
25096 \begin_layout LyX-Code
25097 HelpTextEnd
25098 \end_layout
25099
25100 \begin_layout LyX-Code
25101 InputFormat fig
25102 \end_layout
25103
25104 \begin_layout LyX-Code
25105 FileFilter "*.fig"
25106 \end_layout
25107
25108 \begin_layout LyX-Code
25109 AutomaticProduction true
25110 \end_layout
25111
25112 \begin_layout LyX-Code
25113 Transform Rotate
25114 \end_layout
25115
25116 \begin_layout LyX-Code
25117 Transform Resize
25118 \end_layout
25119
25120 \begin_layout LyX-Code
25121 Format LaTeX
25122 \end_layout
25123
25124 \begin_layout LyX-Code
25125 TransformCommand Rotate RotationLatexCommand
25126 \end_layout
25127
25128 \begin_layout LyX-Code
25129 TransformCommand Resize ResizeLatexCommand
25130 \end_layout
25131
25132 \begin_layout LyX-Code
25133 Product "$$RotateFront$$ResizeFront
25134 \end_layout
25135
25136 \begin_layout LyX-Code
25137          
25138 \backslash
25139
25140 \backslash
25141 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25142 \end_layout
25143
25144 \begin_layout LyX-Code
25145          $$ResizeBack$$RotateBack"
25146 \end_layout
25147
25148 \begin_layout LyX-Code
25149 UpdateFormat pstex
25150 \end_layout
25151
25152 \begin_layout LyX-Code
25153 UpdateResult "$$AbsPath$$Basename.pstex_t"
25154 \end_layout
25155
25156 \begin_layout LyX-Code
25157 Requirement "graphicx"
25158 \end_layout
25159
25160 \begin_layout LyX-Code
25161 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25162 \end_layout
25163
25164 \begin_layout LyX-Code
25165 ReferencedFile latex "$$AbsPath$$Basename.eps"
25166 \end_layout
25167
25168 \begin_layout LyX-Code
25169 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25170 \end_layout
25171
25172 \begin_layout LyX-Code
25173 FormatEnd
25174 \end_layout
25175
25176 \begin_layout LyX-Code
25177 Format PDFLaTeX
25178 \end_layout
25179
25180 \begin_layout LyX-Code
25181 TransformCommand Rotate RotationLatexCommand
25182 \end_layout
25183
25184 \begin_layout LyX-Code
25185 TransformCommand Resize ResizeLatexCommand
25186 \end_layout
25187
25188 \begin_layout LyX-Code
25189 Product "$$RotateFront$$ResizeFront
25190 \end_layout
25191
25192 \begin_layout LyX-Code
25193          
25194 \backslash
25195
25196 \backslash
25197 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25198 \end_layout
25199
25200 \begin_layout LyX-Code
25201          $$ResizeBack$$RotateBack"
25202 \end_layout
25203
25204 \begin_layout LyX-Code
25205 UpdateFormat pdftex
25206 \end_layout
25207
25208 \begin_layout LyX-Code
25209 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25210 \end_layout
25211
25212 \begin_layout LyX-Code
25213 Requirement "graphicx"
25214 \end_layout
25215
25216 \begin_layout LyX-Code
25217 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25218 \end_layout
25219
25220 \begin_layout LyX-Code
25221 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25222 \end_layout
25223
25224 \begin_layout LyX-Code
25225 FormatEnd
25226 \end_layout
25227
25228 \begin_layout LyX-Code
25229 Format Ascii
25230 \end_layout
25231
25232 \begin_layout LyX-Code
25233 Product "[XFig: $$FName]"
25234 \end_layout
25235
25236 \begin_layout LyX-Code
25237 FormatEnd
25238 \end_layout
25239
25240 \begin_layout LyX-Code
25241 Format DocBook
25242 \end_layout
25243
25244 \begin_layout LyX-Code
25245 Product "<graphic fileref=
25246 \backslash
25247 "$$AbsOrRelPathMaster$$Basename.eps
25248 \backslash
25249 ">
25250 \end_layout
25251
25252 \begin_layout LyX-Code
25253          </graphic>"
25254 \end_layout
25255
25256 \begin_layout LyX-Code
25257 UpdateFormat eps
25258 \end_layout
25259
25260 \begin_layout LyX-Code
25261 UpdateResult "$$AbsPath$$Basename.eps"
25262 \end_layout
25263
25264 \begin_layout LyX-Code
25265 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25266 \end_layout
25267
25268 \begin_layout LyX-Code
25269 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25270 \end_layout
25271
25272 \begin_layout LyX-Code
25273 FormatEnd
25274 \end_layout
25275
25276 \begin_layout LyX-Code
25277 TemplateEnd
25278 \end_layout
25279
25280 \begin_layout Standard
25281 As you can see, the template is enclosed in 
25282 \begin_inset Flex Code
25283 status collapsed
25284
25285 \begin_layout Plain Layout
25286 Template
25287 \end_layout
25288
25289 \end_inset
25290
25291  \SpecialChar ldots
25292  
25293 \begin_inset Flex Code
25294 status collapsed
25295
25296 \begin_layout Plain Layout
25297 TemplateEnd
25298 \end_layout
25299
25300 \end_inset
25301
25302 .
25303  It contains a header specifying some general settings and, for each supported
25304  primary document file format, a section 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 Format
25310 \end_layout
25311
25312 \end_inset
25313
25314  \SpecialChar ldots
25315  
25316 \begin_inset Flex Code
25317 status collapsed
25318
25319 \begin_layout Plain Layout
25320 FormatEnd
25321 \end_layout
25322
25323 \end_inset
25324
25325 .
25326 \end_layout
25327
25328 \begin_layout Subsection
25329 The template header
25330 \end_layout
25331
25332 \begin_layout Description
25333 \begin_inset Flex Code
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337 AutomaticProduction
25338 \begin_inset space ~
25339 \end_inset
25340
25341 true|false
25342 \end_layout
25343
25344 \end_inset
25345
25346  Whether the file represented by the template must be generated by \SpecialChar LyX
25347 .
25348  This command must occur exactly once.
25349 \end_layout
25350
25351 \begin_layout Description
25352 \begin_inset Flex Code
25353 status collapsed
25354
25355 \begin_layout Plain Layout
25356 FileFilter
25357 \begin_inset space ~
25358 \end_inset
25359
25360 <pattern>
25361 \end_layout
25362
25363 \end_inset
25364
25365  A glob pattern that is used in the file dialog to filter out the desired
25366  files.
25367  If there is more than one possible file extension (e.
25368 \begin_inset space \thinspace{}
25369 \end_inset
25370
25371 g.
25372 \begin_inset space \space{}
25373 \end_inset
25374
25375 tgif has 
25376 \begin_inset Flex Code
25377 status collapsed
25378
25379 \begin_layout Plain Layout
25380 .obj
25381 \end_layout
25382
25383 \end_inset
25384
25385  and 
25386 \begin_inset Flex Code
25387 status collapsed
25388
25389 \begin_layout Plain Layout
25390 .tgo
25391 \end_layout
25392
25393 \end_inset
25394
25395 ), use something like 
25396 \begin_inset Flex Code
25397 status collapsed
25398
25399 \begin_layout Plain Layout
25400 "*.{obj,tgo}"
25401 \end_layout
25402
25403 \end_inset
25404
25405 .
25406  This command must occur exactly once.
25407 \end_layout
25408
25409 \begin_layout Description
25410 \begin_inset Flex Code
25411 status collapsed
25412
25413 \begin_layout Plain Layout
25414 GuiName
25415 \begin_inset space ~
25416 \end_inset
25417
25418 <guiname>
25419 \end_layout
25420
25421 \end_inset
25422
25423  The text that is displayed on the button.
25424  This command must occur exactly once.
25425 \end_layout
25426
25427 \begin_layout Description
25428 \begin_inset Flex Code
25429 status collapsed
25430
25431 \begin_layout Plain Layout
25432 HelpText
25433 \begin_inset space ~
25434 \end_inset
25435
25436 <text>
25437 \begin_inset space ~
25438 \end_inset
25439
25440 HelpTextEnd
25441 \end_layout
25442
25443 \end_inset
25444
25445  The help text that is used in the External dialog.
25446  Provide enough information to explain to the user just what the template
25447  can provide him with.
25448  This command must occur exactly once.
25449 \end_layout
25450
25451 \begin_layout Description
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 InputFormat
25457 \begin_inset space ~
25458 \end_inset
25459
25460 <format>
25461 \end_layout
25462
25463 \end_inset
25464
25465  The file format of the original file.
25466  This must be the name of a format that is known to \SpecialChar LyX
25467  (see 
25468 \begin_inset CommandInset ref
25469 LatexCommand ref
25470 reference "sec:Formats"
25471
25472 \end_inset
25473
25474 ).
25475  Use 
25476 \begin_inset Quotes eld
25477 \end_inset
25478
25479
25480 \begin_inset Flex Code
25481 status collapsed
25482
25483 \begin_layout Plain Layout
25484 *
25485 \end_layout
25486
25487 \end_inset
25488
25489
25490 \begin_inset Quotes erd
25491 \end_inset
25492
25493  if the template can handle original files of more than one format.
25494  \SpecialChar LyX
25495  will attempt to interrogate the file itself in order to deduce its format
25496  in this case.
25497  This command must occur exactly once.
25498 \end_layout
25499
25500 \begin_layout Description
25501 \begin_inset Flex Code
25502 status collapsed
25503
25504 \begin_layout Plain Layout
25505 Template
25506 \begin_inset space ~
25507 \end_inset
25508
25509 <id>
25510 \end_layout
25511
25512 \end_inset
25513
25514  A unique name for the template.
25515  It must not contain substitution macros (see below).
25516 \end_layout
25517
25518 \begin_layout Description
25519 \begin_inset Flex Code
25520 status collapsed
25521
25522 \begin_layout Plain Layout
25523 Transform
25524 \begin_inset space ~
25525 \end_inset
25526
25527 Rotate|Resize|Clip|Extra
25528 \end_layout
25529
25530 \end_inset
25531
25532  This command specifies which transformations are supported by this template.
25533  It may occur zero or more times.
25534  This command enables the corresponding tabs in the external dialog.
25535  Each 
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 Transform
25541 \end_layout
25542
25543 \end_inset
25544
25545  command must have either a corresponding 
25546 \begin_inset Flex Code
25547 status collapsed
25548
25549 \begin_layout Plain Layout
25550 TransformCommand
25551 \end_layout
25552
25553 \end_inset
25554
25555  or a 
25556 \begin_inset Flex Code
25557 status collapsed
25558
25559 \begin_layout Plain Layout
25560 TransformOption
25561 \end_layout
25562
25563 \end_inset
25564
25565  command in the 
25566 \begin_inset Flex Code
25567 status collapsed
25568
25569 \begin_layout Plain Layout
25570 Format
25571 \end_layout
25572
25573 \end_inset
25574
25575  section.
25576  Otherwise the transformation will not be supported by that format.
25577 \end_layout
25578
25579 \begin_layout Subsection
25580 The Format section
25581 \end_layout
25582
25583 \begin_layout Description
25584 \begin_inset Flex Code
25585 status collapsed
25586
25587 \begin_layout Plain Layout
25588 Format
25589 \begin_inset space ~
25590 \end_inset
25591
25592 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25593 \end_layout
25594
25595 \end_inset
25596
25597  The primary document file format that this format definition is for.
25598  Not every template has a sensible representation in all document file formats.
25599  Please define nevertheless a 
25600 \begin_inset Flex Code
25601 status collapsed
25602
25603 \begin_layout Plain Layout
25604 Format
25605 \end_layout
25606
25607 \end_inset
25608
25609  section for all templates.
25610  Use a dummy text when no representation is available.
25611  Then you can at least see a reference to the external material in the exported
25612  document.
25613 \end_layout
25614
25615 \begin_layout Description
25616 \begin_inset Flex Code
25617 status collapsed
25618
25619 \begin_layout Plain Layout
25620 Option
25621 \begin_inset space ~
25622 \end_inset
25623
25624 <name>
25625 \begin_inset space ~
25626 \end_inset
25627
25628 <value>
25629 \end_layout
25630
25631 \end_inset
25632
25633  This command defines an additional macro 
25634 \begin_inset Flex Code
25635 status collapsed
25636
25637 \begin_layout Plain Layout
25638 $$<name>
25639 \end_layout
25640
25641 \end_inset
25642
25643  for substitution in 
25644 \begin_inset Flex Code
25645 status collapsed
25646
25647 \begin_layout Plain Layout
25648 Product
25649 \end_layout
25650
25651 \end_inset
25652
25653 .
25654  
25655 \begin_inset Flex Code
25656 status collapsed
25657
25658 \begin_layout Plain Layout
25659 <value>
25660 \end_layout
25661
25662 \end_inset
25663
25664  itself may contain substitution macros.
25665  The advantage over using 
25666 \begin_inset Flex Code
25667 status collapsed
25668
25669 \begin_layout Plain Layout
25670 <value>
25671 \end_layout
25672
25673 \end_inset
25674
25675  directly in 
25676 \begin_inset Flex Code
25677 status collapsed
25678
25679 \begin_layout Plain Layout
25680 Product
25681 \end_layout
25682
25683 \end_inset
25684
25685  is that the substituted value of 
25686 \begin_inset Flex Code
25687 status collapsed
25688
25689 \begin_layout Plain Layout
25690 $$<name>
25691 \end_layout
25692
25693 \end_inset
25694
25695  is sanitized so that it is a valid optional argument in the document format.
25696  This command may occur zero or more times.
25697 \end_layout
25698
25699 \begin_layout Description
25700 \begin_inset Flex Code
25701 status collapsed
25702
25703 \begin_layout Plain Layout
25704 Product
25705 \begin_inset space ~
25706 \end_inset
25707
25708 <text>
25709 \end_layout
25710
25711 \end_inset
25712
25713  The text that is inserted in the exported document.
25714  This is actually the most important command and can be quite complex.
25715  This command must occur exactly once.
25716 \end_layout
25717
25718 \begin_layout Description
25719 \begin_inset Flex Code
25720 status collapsed
25721
25722 \begin_layout Plain Layout
25723 Preamble
25724 \begin_inset space ~
25725 \end_inset
25726
25727 <name>
25728 \end_layout
25729
25730 \end_inset
25731
25732  This command specifies a preamble snippet that will be included in the
25733  \SpecialChar LaTeX
25734  preamble.
25735  It has to be defined using 
25736 \begin_inset Flex Code
25737 status collapsed
25738
25739 \begin_layout Plain Layout
25740 PreambleDef
25741 \end_layout
25742
25743 \end_inset
25744
25745  \SpecialChar ldots
25746  
25747 \begin_inset Flex Code
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751 PreambleDefEnd
25752 \end_layout
25753
25754 \end_inset
25755
25756 .
25757  This command may occur zero or more times.
25758 \end_layout
25759
25760 \begin_layout Description
25761 \begin_inset Flex Code
25762 status collapsed
25763
25764 \begin_layout Plain Layout
25765 ReferencedFile
25766 \begin_inset space ~
25767 \end_inset
25768
25769 <format>
25770 \begin_inset space ~
25771 \end_inset
25772
25773 <filename>
25774 \end_layout
25775
25776 \end_inset
25777
25778  This command denotes files that are created by the conversion process and
25779  are needed for a particular export format.
25780  If the filename is relative, it is interpreted relative to the master document.
25781  This command may be given zero or more times.
25782 \end_layout
25783
25784 \begin_layout Description
25785 \begin_inset Flex Code
25786 status collapsed
25787
25788 \begin_layout Plain Layout
25789 Requirement
25790 \begin_inset space ~
25791 \end_inset
25792
25793 <package>
25794 \end_layout
25795
25796 \end_inset
25797
25798  The name of a required \SpecialChar LaTeX
25799  package.
25800  The package is included via 
25801 \begin_inset Flex Code
25802 status collapsed
25803
25804 \begin_layout Plain Layout
25805
25806 \backslash
25807 usepackage{}
25808 \end_layout
25809
25810 \end_inset
25811
25812  in the \SpecialChar LaTeX
25813  preamble.
25814  This command may occur zero or more times.
25815 \end_layout
25816
25817 \begin_layout Description
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 TransformCommand
25823 \begin_inset space ~
25824 \end_inset
25825
25826 Rotate
25827 \begin_inset space ~
25828 \end_inset
25829
25830 RotationLatexCommand
25831 \end_layout
25832
25833 \end_inset
25834
25835  This command specifies that the built in \SpecialChar LaTeX
25836  command should be used for rotation.
25837  This command may occur once or not at all.
25838 \end_layout
25839
25840 \begin_layout Description
25841 \begin_inset Flex Code
25842 status collapsed
25843
25844 \begin_layout Plain Layout
25845 TransformCommand
25846 \begin_inset space ~
25847 \end_inset
25848
25849 Resize
25850 \begin_inset space ~
25851 \end_inset
25852
25853 ResizeLatexCommand
25854 \end_layout
25855
25856 \end_inset
25857
25858  This command specifies that the built in \SpecialChar LaTeX
25859  command should be used for resizing.
25860  This command may occur once or not at all.
25861 \end_layout
25862
25863 \begin_layout Description
25864 \begin_inset Flex Code
25865 status collapsed
25866
25867 \begin_layout Plain Layout
25868 TransformOption
25869 \begin_inset space ~
25870 \end_inset
25871
25872 Rotate
25873 \begin_inset space ~
25874 \end_inset
25875
25876 RotationLatexOption
25877 \end_layout
25878
25879 \end_inset
25880
25881  This command specifies that rotation is done via an optional argument.
25882  This command may occur once or not at all.
25883 \end_layout
25884
25885 \begin_layout Description
25886 \begin_inset Flex Code
25887 status collapsed
25888
25889 \begin_layout Plain Layout
25890 TransformOption
25891 \begin_inset space ~
25892 \end_inset
25893
25894 Resize
25895 \begin_inset space ~
25896 \end_inset
25897
25898 ResizeLatexOption
25899 \end_layout
25900
25901 \end_inset
25902
25903  This command specifies that resizing is done via an optional argument.
25904  This command may occur once or not at all.
25905 \end_layout
25906
25907 \begin_layout Description
25908 \begin_inset Flex Code
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 TransformOption
25913 \begin_inset space ~
25914 \end_inset
25915
25916 Clip
25917 \begin_inset space ~
25918 \end_inset
25919
25920 ClipLatexOption
25921 \end_layout
25922
25923 \end_inset
25924
25925  This command specifies that clipping is done via an optional argument.
25926  This command may occur once or not at all.
25927 \end_layout
25928
25929 \begin_layout Description
25930 \begin_inset Flex Code
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 TransformOption
25935 \begin_inset space ~
25936 \end_inset
25937
25938 Extra
25939 \begin_inset space ~
25940 \end_inset
25941
25942 ExtraLatexOption
25943 \end_layout
25944
25945 \end_inset
25946
25947  This command specifies that an extra optional argument is used.
25948  This command may occur once or not at all.
25949 \end_layout
25950
25951 \begin_layout Description
25952 \begin_inset Flex Code
25953 status collapsed
25954
25955 \begin_layout Plain Layout
25956 UpdateFormat
25957 \begin_inset space ~
25958 \end_inset
25959
25960 <format>
25961 \end_layout
25962
25963 \end_inset
25964
25965  The file format of the converted file.
25966  This must be the name of a format that is known to \SpecialChar LyX
25967  (see the 
25968 \begin_inset Flex Noun
25969 status collapsed
25970
25971 \begin_layout Plain Layout
25972 Tools\SpecialChar menuseparator
25973 Preferences\SpecialChar menuseparator
25974 File Handling\SpecialChar menuseparator
25975 File Format
25976 \end_layout
25977
25978 \end_inset
25979
25980  dialog).
25981  This command must occur exactly once.
25982  If the resulting file format is PDF, you need to specify the format 
25983 \begin_inset Flex Code
25984 status collapsed
25985
25986 \begin_layout Plain Layout
25987 pdf6
25988 \end_layout
25989
25990 \end_inset
25991
25992 .
25993  This is the PDF format used for including graphics.
25994  The other defined PDF formats are for document export.
25995 \end_layout
25996
25997 \begin_layout Description
25998 \begin_inset Flex Code
25999 status collapsed
26000
26001 \begin_layout Plain Layout
26002 UpdateResult
26003 \begin_inset space ~
26004 \end_inset
26005
26006 <filename>
26007 \end_layout
26008
26009 \end_inset
26010
26011  The file name of the converted file.
26012  The file name must be absolute.
26013  This command must occur exactly once.
26014 \end_layout
26015
26016 \begin_layout Subsection
26017 Preamble definitions
26018 \end_layout
26019
26020 \begin_layout Standard
26021 The external template configuration file may contain additional preamble
26022  definitions enclosed by 
26023 \begin_inset Flex Code
26024 status collapsed
26025
26026 \begin_layout Plain Layout
26027 PreambleDef
26028 \end_layout
26029
26030 \end_inset
26031
26032  \SpecialChar ldots
26033  
26034 \begin_inset Flex Code
26035 status collapsed
26036
26037 \begin_layout Plain Layout
26038 PreambleDefEnd
26039 \end_layout
26040
26041 \end_inset
26042
26043 .
26044  They can be used by the templates in the 
26045 \begin_inset Flex Code
26046 status collapsed
26047
26048 \begin_layout Plain Layout
26049 Format
26050 \end_layout
26051
26052 \end_inset
26053
26054  section.
26055 \end_layout
26056
26057 \begin_layout Section
26058 The substitution mechanism
26059 \end_layout
26060
26061 \begin_layout Standard
26062 When the external material facility invokes an external program, it is done
26063  on the basis of a command defined in the template configuration file.
26064  These commands can contain various macros that are expanded before execution.
26065  Execution always take place in the directory of the containing document.
26066 \end_layout
26067
26068 \begin_layout Standard
26069 Also, whenever external material is to be displayed, the name will be produced
26070  by the substitution mechanism, and most other commands in the template
26071  definition support substitution as well.
26072 \end_layout
26073
26074 \begin_layout Standard
26075 The available macros are the following:
26076 \end_layout
26077
26078 \begin_layout Description
26079 \begin_inset Flex Code
26080 status collapsed
26081
26082 \begin_layout Plain Layout
26083 $$AbsOrRelPathMaster
26084 \end_layout
26085
26086 \end_inset
26087
26088  The file path, absolute or relative to the master \SpecialChar LyX
26089  document.
26090 \end_layout
26091
26092 \begin_layout Description
26093 \begin_inset Flex Code
26094 status collapsed
26095
26096 \begin_layout Plain Layout
26097 $$AbsOrRelPathParent
26098 \end_layout
26099
26100 \end_inset
26101
26102  The file path, absolute or relative to the \SpecialChar LyX
26103  document.
26104 \end_layout
26105
26106 \begin_layout Description
26107 \begin_inset Flex Code
26108 status collapsed
26109
26110 \begin_layout Plain Layout
26111 $$AbsPath
26112 \end_layout
26113
26114 \end_inset
26115
26116  The absolute file path.
26117 \end_layout
26118
26119 \begin_layout Description
26120 \begin_inset Flex Code
26121 status collapsed
26122
26123 \begin_layout Plain Layout
26124 $$Basename
26125 \end_layout
26126
26127 \end_inset
26128
26129  The filename without path and without the extension.
26130 \end_layout
26131
26132 \begin_layout Description
26133 \begin_inset Flex Code
26134 status collapsed
26135
26136 \begin_layout Plain Layout
26137 $$Contents(
26138 \begin_inset Quotes eld
26139 \end_inset
26140
26141 filename.ext
26142 \begin_inset Quotes erd
26143 \end_inset
26144
26145 )
26146 \end_layout
26147
26148 \end_inset
26149
26150  This macro will expand to the contents of the file with the name 
26151 \begin_inset Flex Code
26152 status collapsed
26153
26154 \begin_layout Plain Layout
26155 filename.ext
26156 \end_layout
26157
26158 \end_inset
26159
26160 .
26161 \end_layout
26162
26163 \begin_layout Description
26164 \begin_inset Flex Code
26165 status collapsed
26166
26167 \begin_layout Plain Layout
26168 $$Extension
26169 \end_layout
26170
26171 \end_inset
26172
26173  The file extension (including the dot).
26174 \end_layout
26175
26176 \begin_layout Description
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 $$pngOrjpg
26182 \end_layout
26183
26184 \end_inset
26185
26186  This will be the string 
26187 \begin_inset Quotes eld
26188 \end_inset
26189
26190 jpg
26191 \begin_inset Quotes erd
26192 \end_inset
26193
26194  if the file is in JPEG format, otherwise it will be the string 
26195 \begin_inset Quotes eld
26196 \end_inset
26197
26198 png
26199 \begin_inset Quotes erd
26200 \end_inset
26201
26202 .
26203  This is useful to avoid uneeded conversions for output formats that support
26204  both PNG and JPEG fomats.
26205  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26206  output
26207  format.
26208 \end_layout
26209
26210 \begin_layout Description
26211 \begin_inset Flex Code
26212 status collapsed
26213
26214 \begin_layout Plain Layout
26215 $$FName
26216 \end_layout
26217
26218 \end_inset
26219
26220  The filename of the file specified in the external material dialog.
26221  This is either an absolute name, or it is relative to the \SpecialChar LyX
26222  document.
26223 \end_layout
26224
26225 \begin_layout Description
26226 \begin_inset Flex Code
26227 status collapsed
26228
26229 \begin_layout Plain Layout
26230 $$FPath
26231 \end_layout
26232
26233 \end_inset
26234
26235  The path part of 
26236 \begin_inset Flex Code
26237 status collapsed
26238
26239 \begin_layout Plain Layout
26240 $$FName
26241 \end_layout
26242
26243 \end_inset
26244
26245  (absolute name or relative to the \SpecialChar LyX
26246  document).
26247 \end_layout
26248
26249 \begin_layout Description
26250 \begin_inset Flex Code
26251 status collapsed
26252
26253 \begin_layout Plain Layout
26254 $$RelPathMaster
26255 \end_layout
26256
26257 \end_inset
26258
26259  The file path, relative to the master \SpecialChar LyX
26260  document.
26261 \end_layout
26262
26263 \begin_layout Description
26264 \begin_inset Flex Code
26265 status collapsed
26266
26267 \begin_layout Plain Layout
26268 $$RelPathParent
26269 \end_layout
26270
26271 \end_inset
26272
26273  The file path, relative to the \SpecialChar LyX
26274  document.
26275 \end_layout
26276
26277 \begin_layout Description
26278 \begin_inset Flex Code
26279 status collapsed
26280
26281 \begin_layout Plain Layout
26282 $$Sysdir
26283 \end_layout
26284
26285 \end_inset
26286
26287  This macro will expand to the absolute path of the system directory.
26288  This is typically used to point to the various helper scripts that are
26289  bundled with \SpecialChar LyX
26290 .
26291 \end_layout
26292
26293 \begin_layout Description
26294 \begin_inset Flex Code
26295 status collapsed
26296
26297 \begin_layout Plain Layout
26298 $$Tempname
26299 \end_layout
26300
26301 \end_inset
26302
26303  A name and full path to a temporary file which will be automatically deleted
26304  whenever the containing document is closed, or the external material insertion
26305  deleted.
26306 \end_layout
26307
26308 \begin_layout Standard
26309 All path macros contain a trailing directory separator, so you can construct
26310  e.
26311 \begin_inset space \thinspace{}
26312 \end_inset
26313
26314 g.
26315 \begin_inset space \space{}
26316 \end_inset
26317
26318 the absolute filename with 
26319 \begin_inset Flex Code
26320 status collapsed
26321
26322 \begin_layout Plain Layout
26323 $$AbsPath$$Basename$$Extension
26324 \end_layout
26325
26326 \end_inset
26327
26328 .
26329 \end_layout
26330
26331 \begin_layout Standard
26332 The macros above are substituted in all commands unless otherwise noted.
26333  The command 
26334 \begin_inset Flex Code
26335 status collapsed
26336
26337 \begin_layout Plain Layout
26338 Product
26339 \end_layout
26340
26341 \end_inset
26342
26343  supports additionally the following substitutions if they are enabled by
26344  the 
26345 \begin_inset Flex Code
26346 status collapsed
26347
26348 \begin_layout Plain Layout
26349 Transform
26350 \end_layout
26351
26352 \end_inset
26353
26354  and 
26355 \begin_inset Flex Code
26356 status collapsed
26357
26358 \begin_layout Plain Layout
26359 TransformCommand
26360 \end_layout
26361
26362 \end_inset
26363
26364  commands:
26365 \end_layout
26366
26367 \begin_layout Description
26368 \begin_inset Flex Code
26369 status collapsed
26370
26371 \begin_layout Plain Layout
26372 $$ResizeFront
26373 \end_layout
26374
26375 \end_inset
26376
26377  The front part of the resize command.
26378 \end_layout
26379
26380 \begin_layout Description
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 $$ResizeBack
26386 \end_layout
26387
26388 \end_inset
26389
26390  The back part of the resize command.
26391 \end_layout
26392
26393 \begin_layout Description
26394 \begin_inset Flex Code
26395 status collapsed
26396
26397 \begin_layout Plain Layout
26398 $$RotateFront
26399 \end_layout
26400
26401 \end_inset
26402
26403  The front part of the rotation command.
26404 \end_layout
26405
26406 \begin_layout Description
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 $$RotateBack
26412 \end_layout
26413
26414 \end_inset
26415
26416  The back part of the rotation command.
26417 \end_layout
26418
26419 \begin_layout Standard
26420 The value string of the 
26421 \begin_inset Flex Code
26422 status collapsed
26423
26424 \begin_layout Plain Layout
26425 Option
26426 \end_layout
26427
26428 \end_inset
26429
26430  command supports additionally the following substitutions if they are enabled
26431  by the 
26432 \begin_inset Flex Code
26433 status collapsed
26434
26435 \begin_layout Plain Layout
26436 Transform
26437 \end_layout
26438
26439 \end_inset
26440
26441  and 
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 TransformOption
26447 \end_layout
26448
26449 \end_inset
26450
26451  commands:
26452 \end_layout
26453
26454 \begin_layout Description
26455 \begin_inset Flex Code
26456 status collapsed
26457
26458 \begin_layout Plain Layout
26459 $$Clip
26460 \end_layout
26461
26462 \end_inset
26463
26464  The clip option.
26465 \end_layout
26466
26467 \begin_layout Description
26468 \begin_inset Flex Code
26469 status collapsed
26470
26471 \begin_layout Plain Layout
26472 $$Extra
26473 \end_layout
26474
26475 \end_inset
26476
26477  The extra option.
26478 \end_layout
26479
26480 \begin_layout Description
26481 \begin_inset Flex Code
26482 status collapsed
26483
26484 \begin_layout Plain Layout
26485 $$Resize
26486 \end_layout
26487
26488 \end_inset
26489
26490  The resize option.
26491 \end_layout
26492
26493 \begin_layout Description
26494 \begin_inset Flex Code
26495 status collapsed
26496
26497 \begin_layout Plain Layout
26498 $$Rotate
26499 \end_layout
26500
26501 \end_inset
26502
26503  The rotation option.
26504 \end_layout
26505
26506 \begin_layout Standard
26507 You may ask why there are so many path macros.
26508  There are mainly two reasons:
26509 \end_layout
26510
26511 \begin_layout Enumerate
26512 Relative and absolute file names should remain relative or absolute, respectivel
26513 y.
26514  Users may have reasons to prefer either form.
26515  Relative names are useful for portable documents that should work on different
26516  machines, for example.
26517  Absolute names may be required by some programs.
26518 \end_layout
26519
26520 \begin_layout Enumerate
26521 \SpecialChar LaTeX
26522  treats relative file names differently than \SpecialChar LyX
26523  and other programs in nested
26524  included files.
26525  For \SpecialChar LyX
26526 , a relative file name is always relative to the document that contains
26527  the file name.
26528  For \SpecialChar LaTeX
26529 , it is always relative to the master document.
26530  These two definitions are identical if you have only one document, but
26531  differ if you have a master document that includes part documents.
26532  That means that relative filenames must be transformed when presented to
26533  \SpecialChar LaTeX
26534 .
26535  Fortunately \SpecialChar LyX
26536  does this automatically for you if you choose the right macros.
26537 \end_layout
26538
26539 \begin_layout Standard
26540 So which path macro should be used in new template definitions? The rule
26541  is not difficult:
26542 \end_layout
26543
26544 \begin_layout Itemize
26545 Use 
26546 \begin_inset Flex Code
26547 status collapsed
26548
26549 \begin_layout Plain Layout
26550 $$AbsPath
26551 \end_layout
26552
26553 \end_inset
26554
26555  if an absolute path is required.
26556 \end_layout
26557
26558 \begin_layout Itemize
26559 Use 
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 $$AbsOrRelPathMaster
26565 \end_layout
26566
26567 \end_inset
26568
26569  if the substituted string is some kind of \SpecialChar LaTeX
26570  input.
26571 \end_layout
26572
26573 \begin_layout Itemize
26574 Else use 
26575 \begin_inset Flex Code
26576 status collapsed
26577
26578 \begin_layout Plain Layout
26579 $$AbsOrRelPathParent
26580 \end_layout
26581
26582 \end_inset
26583
26584  in order to preserve the user's choice.
26585 \end_layout
26586
26587 \begin_layout Standard
26588 There are special cases where this rule does not work and e.
26589 \begin_inset space \thinspace{}
26590 \end_inset
26591
26592 g.
26593 \begin_inset space \space{}
26594 \end_inset
26595
26596 relative names are needed, but normally it will work just fine.
26597  One example for such a case is the command 
26598 \begin_inset Flex Code
26599 status collapsed
26600
26601 \begin_layout Plain Layout
26602 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26603 \end_layout
26604
26605 \end_inset
26606
26607  in the XFig template above: We can't use the absolute name because the
26608  copier for 
26609 \begin_inset Flex Code
26610 status collapsed
26611
26612 \begin_layout Plain Layout
26613 .pstex_t
26614 \end_layout
26615
26616 \end_inset
26617
26618  files needs the relative name in order to rewrite the file content.
26619 \end_layout
26620
26621 \begin_layout Section
26622 Security discussion
26623 \begin_inset CommandInset label
26624 LatexCommand label
26625 name "sec:Security-discussion"
26626
26627 \end_inset
26628
26629
26630 \end_layout
26631
26632 \begin_layout Standard
26633 The external material feature interfaces with a lot of external programs
26634  and does so automatically, so we have to consider the security implications
26635  of this.
26636  In particular, since you have the option of including your own filenames
26637  and/or parameter strings and those are expanded into a command, it seems
26638  that it would be possible to create a malicious document which executes
26639  arbitrary commands when a user views or prints the document.
26640  This is something we definitely want to avoid.
26641 \end_layout
26642
26643 \begin_layout Standard
26644 However, since the external program commands are specified in the template
26645  configuration file only, there are no security issues if \SpecialChar LyX
26646  is properly configure
26647 d with safe templates only.
26648  This is so because the external programs are invoked with the 
26649 \begin_inset Flex Code
26650 status collapsed
26651
26652 \begin_layout Plain Layout
26653 execvp
26654 \end_layout
26655
26656 \end_inset
26657
26658 -system call rather than the 
26659 \begin_inset Flex Code
26660 status collapsed
26661
26662 \begin_layout Plain Layout
26663 system
26664 \end_layout
26665
26666 \end_inset
26667
26668  system-call, so it's not possible to execute arbitrary commands from the
26669  filename or parameter section via the shell.
26670 \end_layout
26671
26672 \begin_layout Standard
26673 This also implies that you are restricted in what command strings you can
26674  use in the external material templates.
26675  In particular, pipes and redirection are not readily available.
26676  This has to be so if \SpecialChar LyX
26677  should remain safe.
26678  If you want to use some of the shell features, you should write a safe
26679  script to do this in a controlled manner, and then invoke the script from
26680  the command string.
26681  
26682 \end_layout
26683
26684 \begin_layout Standard
26685 It is possible to design a template that interacts directly with the shell,
26686  but since this would allow a malicious user to execute arbitrary commands
26687  by writing clever filenames and/or parameters, we generally recommend that
26688  you only use safe scripts that work with the 
26689 \begin_inset Flex Code
26690 status collapsed
26691
26692 \begin_layout Plain Layout
26693 execvp
26694 \end_layout
26695
26696 \end_inset
26697
26698  system call in a controlled manner.
26699  Of course, for use in a controlled environment, it can be tempting to just
26700  fall back to use ordinary shell scripts.
26701  If you do so, be aware that you 
26702 \emph on
26703 will
26704 \emph default
26705  provide an easily exploitable security hole in your system.
26706  Of course it stands to reason that such unsafe templates will never be
26707  included in the standard \SpecialChar LyX
26708  distribution, although we do encourage people
26709  to submit new templates in the open source tradition.
26710  But \SpecialChar LyX
26711  as shipped from the official distribution channels will never have
26712  unsafe templates.
26713 \end_layout
26714
26715 \begin_layout Standard
26716 Including external material provides a lot of power, and you have to be
26717  careful not to introduce security hazards with this power.
26718  A subtle error in a single line in an innocent looking script can open
26719  the door to huge security problems.
26720  So if you do not fully understand the issues, we recommend that you consult
26721  a knowledgeable security professional or the \SpecialChar LyX
26722  development team if you have
26723  any questions about whether a given template is safe or not.
26724  And do this before you use it in an uncontrolled environment.
26725 \end_layout
26726
26727 \begin_layout Chapter
26728 \start_of_appendix
26729 List of supported \SpecialChar LyX
26730  functions to be used in layouts
26731 \begin_inset CommandInset label
26732 LatexCommand label
26733 name "chap:List-of-functions"
26734
26735 \end_inset
26736
26737
26738 \end_layout
26739
26740 \begin_layout Standard
26741 \align center
26742 \begin_inset Tabular
26743 <lyxtabular version="3" rows="11" columns="8">
26744 <features tabularvalignment="middle">
26745 <column alignment="left" valignment="top">
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 <row>
26754 <cell alignment="left" valignment="top" usebox="none">
26755 \begin_inset Text
26756
26757 \begin_layout Plain Layout
26758 accents
26759 \end_layout
26760
26761 \end_inset
26762 </cell>
26763 <cell alignment="left" valignment="top" usebox="none">
26764 \begin_inset Text
26765
26766 \begin_layout Plain Layout
26767 booktabs
26768 \end_layout
26769
26770 \end_inset
26771 </cell>
26772 <cell alignment="left" valignment="top" usebox="none">
26773 \begin_inset Text
26774
26775 \begin_layout Plain Layout
26776 feyn
26777 \end_layout
26778
26779 \end_inset
26780 </cell>
26781 <cell alignment="left" valignment="top" usebox="none">
26782 \begin_inset Text
26783
26784 \begin_layout Plain Layout
26785 listings
26786 \end_layout
26787
26788 \end_inset
26789 </cell>
26790 <cell alignment="center" valignment="top" usebox="none">
26791 \begin_inset Text
26792
26793 \begin_layout Plain Layout
26794 natbib
26795 \end_layout
26796
26797 \end_inset
26798 </cell>
26799 <cell alignment="center" valignment="top" usebox="none">
26800 \begin_inset Text
26801
26802 \begin_layout Plain Layout
26803 rotfloat
26804 \end_layout
26805
26806 \end_inset
26807 </cell>
26808 <cell alignment="center" valignment="top" usebox="none">
26809 \begin_inset Text
26810
26811 \begin_layout Plain Layout
26812 tfrupee
26813 \end_layout
26814
26815 \end_inset
26816 </cell>
26817 <cell alignment="center" valignment="top" usebox="none">
26818 \begin_inset Text
26819
26820 \begin_layout Plain Layout
26821 wasysym
26822 \end_layout
26823
26824 \end_inset
26825 </cell>
26826 </row>
26827 <row>
26828 <cell alignment="left" valignment="top" usebox="none">
26829 \begin_inset Text
26830
26831 \begin_layout Plain Layout
26832 amsbsy
26833 \end_layout
26834
26835 \end_inset
26836 </cell>
26837 <cell alignment="left" valignment="top" usebox="none">
26838 \begin_inset Text
26839
26840 \begin_layout Plain Layout
26841 calc
26842 \end_layout
26843
26844 \end_inset
26845 </cell>
26846 <cell alignment="left" valignment="top" usebox="none">
26847 \begin_inset Text
26848
26849 \begin_layout Plain Layout
26850 fixltx2e
26851 \end_layout
26852
26853 \end_inset
26854 </cell>
26855 <cell alignment="left" valignment="top" usebox="none">
26856 \begin_inset Text
26857
26858 \begin_layout Plain Layout
26859 longtable
26860 \end_layout
26861
26862 \end_inset
26863 </cell>
26864 <cell alignment="center" valignment="top" usebox="none">
26865 \begin_inset Text
26866
26867 \begin_layout Plain Layout
26868 nomencl
26869 \end_layout
26870
26871 \end_inset
26872 </cell>
26873 <cell alignment="center" valignment="top" usebox="none">
26874 \begin_inset Text
26875
26876 \begin_layout Plain Layout
26877 rsphrase
26878 \end_layout
26879
26880 \end_inset
26881 </cell>
26882 <cell alignment="center" valignment="top" usebox="none">
26883 \begin_inset Text
26884
26885 \begin_layout Plain Layout
26886 tipa
26887 \end_layout
26888
26889 \end_inset
26890 </cell>
26891 <cell alignment="center" valignment="top" usebox="none">
26892 \begin_inset Text
26893
26894 \begin_layout Plain Layout
26895 wrapfig
26896 \end_layout
26897
26898 \end_inset
26899 </cell>
26900 </row>
26901 <row>
26902 <cell alignment="left" valignment="top" usebox="none">
26903 \begin_inset Text
26904
26905 \begin_layout Plain Layout
26906 amscd
26907 \end_layout
26908
26909 \end_inset
26910 </cell>
26911 <cell alignment="left" valignment="top" usebox="none">
26912 \begin_inset Text
26913
26914 \begin_layout Plain Layout
26915 CJK
26916 \end_layout
26917
26918 \end_inset
26919 </cell>
26920 <cell alignment="left" valignment="top" usebox="none">
26921 \begin_inset Text
26922
26923 \begin_layout Plain Layout
26924 float
26925 \end_layout
26926
26927 \end_inset
26928 </cell>
26929 <cell alignment="left" valignment="top" usebox="none">
26930 \begin_inset Text
26931
26932 \begin_layout Plain Layout
26933 lyxskak
26934 \end_layout
26935
26936 \end_inset
26937 </cell>
26938 <cell alignment="center" valignment="top" usebox="none">
26939 \begin_inset Text
26940
26941 \begin_layout Plain Layout
26942 pdfcolmk
26943 \end_layout
26944
26945 \end_inset
26946 </cell>
26947 <cell alignment="center" valignment="top" usebox="none">
26948 \begin_inset Text
26949
26950 \begin_layout Plain Layout
26951 setspace
26952 \end_layout
26953
26954 \end_inset
26955 </cell>
26956 <cell alignment="center" valignment="top" usebox="none">
26957 \begin_inset Text
26958
26959 \begin_layout Plain Layout
26960 tipx
26961 \end_layout
26962
26963 \end_inset
26964 </cell>
26965 <cell alignment="center" valignment="top" usebox="none">
26966 \begin_inset Text
26967
26968 \begin_layout Plain Layout
26969 xargs
26970 \end_layout
26971
26972 \end_inset
26973 </cell>
26974 </row>
26975 <row>
26976 <cell alignment="left" valignment="top" usebox="none">
26977 \begin_inset Text
26978
26979 \begin_layout Plain Layout
26980 amsmath
26981 \end_layout
26982
26983 \end_inset
26984 </cell>
26985 <cell alignment="left" valignment="top" usebox="none">
26986 \begin_inset Text
26987
26988 \begin_layout Plain Layout
26989 color
26990 \end_layout
26991
26992 \end_inset
26993 </cell>
26994 <cell alignment="left" valignment="top" usebox="none">
26995 \begin_inset Text
26996
26997 \begin_layout Plain Layout
26998 framed
26999 \end_layout
27000
27001 \end_inset
27002 </cell>
27003 <cell alignment="left" valignment="top" usebox="none">
27004 \begin_inset Text
27005
27006 \begin_layout Plain Layout
27007 makeidx
27008 \end_layout
27009
27010 \end_inset
27011 </cell>
27012 <cell alignment="center" valignment="top" usebox="none">
27013 \begin_inset Text
27014
27015 \begin_layout Plain Layout
27016 pdfpages
27017 \end_layout
27018
27019 \end_inset
27020 </cell>
27021 <cell alignment="center" valignment="top" usebox="none">
27022 \begin_inset Text
27023
27024 \begin_layout Plain Layout
27025 shapepar
27026 \end_layout
27027
27028 \end_inset
27029 </cell>
27030 <cell alignment="center" valignment="top" usebox="none">
27031 \begin_inset Text
27032
27033 \begin_layout Plain Layout
27034 tone
27035 \end_layout
27036
27037 \end_inset
27038 </cell>
27039 <cell alignment="center" valignment="top" usebox="none">
27040 \begin_inset Text
27041
27042 \begin_layout Plain Layout
27043 xcolor
27044 \end_layout
27045
27046 \end_inset
27047 </cell>
27048 </row>
27049 <row>
27050 <cell alignment="left" valignment="top" usebox="none">
27051 \begin_inset Text
27052
27053 \begin_layout Plain Layout
27054 amssymb
27055 \end_layout
27056
27057 \end_inset
27058 </cell>
27059 <cell alignment="left" valignment="top" usebox="none">
27060 \begin_inset Text
27061
27062 \begin_layout Plain Layout
27063 covington
27064 \end_layout
27065
27066 \end_inset
27067 </cell>
27068 <cell alignment="left" valignment="top" usebox="none">
27069 \begin_inset Text
27070
27071 \begin_layout Plain Layout
27072 graphicx
27073 \end_layout
27074
27075 \end_inset
27076 </cell>
27077 <cell alignment="left" valignment="top" usebox="none">
27078 \begin_inset Text
27079
27080 \begin_layout Plain Layout
27081 marvosym
27082 \end_layout
27083
27084 \end_inset
27085 </cell>
27086 <cell alignment="center" valignment="top" usebox="none">
27087 \begin_inset Text
27088
27089 \begin_layout Plain Layout
27090 pifont
27091 \end_layout
27092
27093 \end_inset
27094 </cell>
27095 <cell alignment="center" valignment="top" usebox="none">
27096 \begin_inset Text
27097
27098 \begin_layout Plain Layout
27099 slashed
27100 \end_layout
27101
27102 \end_inset
27103 </cell>
27104 <cell alignment="center" valignment="top" usebox="none">
27105 \begin_inset Text
27106
27107 \begin_layout Plain Layout
27108 txfonts
27109 \end_layout
27110
27111 \end_inset
27112 </cell>
27113 <cell alignment="center" valignment="top" usebox="none">
27114 \begin_inset Text
27115
27116 \begin_layout Plain Layout
27117 xy
27118 \end_layout
27119
27120 \end_inset
27121 </cell>
27122 </row>
27123 <row>
27124 <cell alignment="left" valignment="top" usebox="none">
27125 \begin_inset Text
27126
27127 \begin_layout Plain Layout
27128 amstext
27129 \end_layout
27130
27131 \end_inset
27132 </cell>
27133 <cell alignment="left" valignment="top" usebox="none">
27134 \begin_inset Text
27135
27136 \begin_layout Plain Layout
27137 csquotes
27138 \end_layout
27139
27140 \end_inset
27141 </cell>
27142 <cell alignment="left" valignment="top" usebox="none">
27143 \begin_inset Text
27144
27145 \begin_layout Plain Layout
27146 hhline
27147 \end_layout
27148
27149 \end_inset
27150 </cell>
27151 <cell alignment="left" valignment="top" usebox="none">
27152 \begin_inset Text
27153
27154 \begin_layout Plain Layout
27155 mathdesign
27156 \end_layout
27157
27158 \end_inset
27159 </cell>
27160 <cell alignment="center" valignment="top" usebox="none">
27161 \begin_inset Text
27162
27163 \begin_layout Plain Layout
27164 pmboxdraw
27165 \end_layout
27166
27167 \end_inset
27168 </cell>
27169 <cell alignment="center" valignment="top" usebox="none">
27170 \begin_inset Text
27171
27172 \begin_layout Plain Layout
27173 soul
27174 \end_layout
27175
27176 \end_inset
27177 </cell>
27178 <cell alignment="center" valignment="top" usebox="none">
27179 \begin_inset Text
27180
27181 \begin_layout Plain Layout
27182 ulem
27183 \end_layout
27184
27185 \end_inset
27186 </cell>
27187 <cell alignment="center" valignment="top" usebox="none">
27188 \begin_inset Text
27189
27190 \begin_layout Plain Layout
27191 yhmath
27192 \end_layout
27193
27194 \end_inset
27195 </cell>
27196 </row>
27197 <row>
27198 <cell alignment="left" valignment="top" usebox="none">
27199 \begin_inset Text
27200
27201 \begin_layout Plain Layout
27202 amsthm
27203 \end_layout
27204
27205 \end_inset
27206 </cell>
27207 <cell alignment="left" valignment="top" usebox="none">
27208 \begin_inset Text
27209
27210 \begin_layout Plain Layout
27211 dvipost
27212 \end_layout
27213
27214 \end_inset
27215 </cell>
27216 <cell alignment="left" valignment="top" usebox="none">
27217 \begin_inset Text
27218
27219 \begin_layout Plain Layout
27220 hyperref
27221 \end_layout
27222
27223 \end_inset
27224 </cell>
27225 <cell alignment="left" valignment="top" usebox="none">
27226 \begin_inset Text
27227
27228 \begin_layout Plain Layout
27229 mathdots
27230 \end_layout
27231
27232 \end_inset
27233 </cell>
27234 <cell alignment="center" valignment="top" usebox="none">
27235 \begin_inset Text
27236
27237 \begin_layout Plain Layout
27238 polyglossia
27239 \end_layout
27240
27241 \end_inset
27242 </cell>
27243 <cell alignment="center" valignment="top" usebox="none">
27244 \begin_inset Text
27245
27246 \begin_layout Plain Layout
27247 splitidx
27248 \end_layout
27249
27250 \end_inset
27251 </cell>
27252 <cell alignment="center" valignment="top" usebox="none">
27253 \begin_inset Text
27254
27255 \begin_layout Plain Layout
27256 undertilde
27257 \end_layout
27258
27259 \end_inset
27260 </cell>
27261 <cell alignment="center" valignment="top" usebox="none">
27262 \begin_inset Text
27263
27264 \begin_layout Plain Layout
27265
27266 \end_layout
27267
27268 \end_inset
27269 </cell>
27270 </row>
27271 <row>
27272 <cell alignment="left" valignment="top" usebox="none">
27273 \begin_inset Text
27274
27275 \begin_layout Plain Layout
27276 array
27277 \end_layout
27278
27279 \end_inset
27280 </cell>
27281 <cell alignment="left" valignment="top" usebox="none">
27282 \begin_inset Text
27283
27284 \begin_layout Plain Layout
27285 endnotes
27286 \end_layout
27287
27288 \end_inset
27289 </cell>
27290 <cell alignment="left" valignment="top" usebox="none">
27291 \begin_inset Text
27292
27293 \begin_layout Plain Layout
27294 ifsym
27295 \end_layout
27296
27297 \end_inset
27298 </cell>
27299 <cell alignment="left" valignment="top" usebox="none">
27300 \begin_inset Text
27301
27302 \begin_layout Plain Layout
27303 mathrsfs
27304 \end_layout
27305
27306 \end_inset
27307 </cell>
27308 <cell alignment="center" valignment="top" usebox="none">
27309 \begin_inset Text
27310
27311 \begin_layout Plain Layout
27312 prettyref
27313 \end_layout
27314
27315 \end_inset
27316 </cell>
27317 <cell alignment="center" valignment="top" usebox="none">
27318 \begin_inset Text
27319
27320 \begin_layout Plain Layout
27321 subfig
27322 \end_layout
27323
27324 \end_inset
27325 </cell>
27326 <cell alignment="center" valignment="top" usebox="none">
27327 \begin_inset Text
27328
27329 \begin_layout Plain Layout
27330 units
27331 \end_layout
27332
27333 \end_inset
27334 </cell>
27335 <cell alignment="center" valignment="top" usebox="none">
27336 \begin_inset Text
27337
27338 \begin_layout Plain Layout
27339
27340 \end_layout
27341
27342 \end_inset
27343 </cell>
27344 </row>
27345 <row>
27346 <cell alignment="left" valignment="top" usebox="none">
27347 \begin_inset Text
27348
27349 \begin_layout Plain Layout
27350 ascii
27351 \end_layout
27352
27353 \end_inset
27354 </cell>
27355 <cell alignment="left" valignment="top" usebox="none">
27356 \begin_inset Text
27357
27358 \begin_layout Plain Layout
27359 enumitem
27360 \end_layout
27361
27362 \end_inset
27363 </cell>
27364 <cell alignment="left" valignment="top" usebox="none">
27365 \begin_inset Text
27366
27367 \begin_layout Plain Layout
27368 ifthen
27369 \end_layout
27370
27371 \end_inset
27372 </cell>
27373 <cell alignment="left" valignment="top" usebox="none">
27374 \begin_inset Text
27375
27376 \begin_layout Plain Layout
27377 mhchem
27378 \end_layout
27379
27380 \end_inset
27381 </cell>
27382 <cell alignment="center" valignment="top" usebox="none">
27383 \begin_inset Text
27384
27385 \begin_layout Plain Layout
27386 pxfonts
27387 \end_layout
27388
27389 \end_inset
27390 </cell>
27391 <cell alignment="center" valignment="top" usebox="none">
27392 \begin_inset Text
27393
27394 \begin_layout Plain Layout
27395 subscript
27396 \end_layout
27397
27398 \end_inset
27399 </cell>
27400 <cell alignment="center" valignment="top" usebox="none">
27401 \begin_inset Text
27402
27403 \begin_layout Plain Layout
27404 url
27405 \end_layout
27406
27407 \end_inset
27408 </cell>
27409 <cell alignment="center" valignment="top" usebox="none">
27410 \begin_inset Text
27411
27412 \begin_layout Plain Layout
27413
27414 \end_layout
27415
27416 \end_inset
27417 </cell>
27418 </row>
27419 <row>
27420 <cell alignment="left" valignment="top" usebox="none">
27421 \begin_inset Text
27422
27423 \begin_layout Plain Layout
27424 bbding
27425 \end_layout
27426
27427 \end_inset
27428 </cell>
27429 <cell alignment="left" valignment="top" usebox="none">
27430 \begin_inset Text
27431
27432 \begin_layout Plain Layout
27433 esint
27434 \end_layout
27435
27436 \end_inset
27437 </cell>
27438 <cell alignment="left" valignment="top" usebox="none">
27439 \begin_inset Text
27440
27441 \begin_layout Plain Layout
27442 jurabib
27443 \end_layout
27444
27445 \end_inset
27446 </cell>
27447 <cell alignment="left" valignment="top" usebox="none">
27448 \begin_inset Text
27449
27450 \begin_layout Plain Layout
27451 multicol
27452 \end_layout
27453
27454 \end_inset
27455 </cell>
27456 <cell alignment="center" valignment="top" usebox="none">
27457 \begin_inset Text
27458
27459 \begin_layout Plain Layout
27460 refstyle
27461 \end_layout
27462
27463 \end_inset
27464 </cell>
27465 <cell alignment="center" valignment="top" usebox="none">
27466 \begin_inset Text
27467
27468 \begin_layout Plain Layout
27469 textcomp
27470 \end_layout
27471
27472 \end_inset
27473 </cell>
27474 <cell alignment="center" valignment="top" usebox="none">
27475 \begin_inset Text
27476
27477 \begin_layout Plain Layout
27478 varioref
27479 \end_layout
27480
27481 \end_inset
27482 </cell>
27483 <cell alignment="center" valignment="top" usebox="none">
27484 \begin_inset Text
27485
27486 \begin_layout Plain Layout
27487
27488 \end_layout
27489
27490 \end_inset
27491 </cell>
27492 </row>
27493 <row>
27494 <cell alignment="center" valignment="top" usebox="none">
27495 \begin_inset Text
27496
27497 \begin_layout Plain Layout
27498 bm
27499 \end_layout
27500
27501 \end_inset
27502 </cell>
27503 <cell alignment="center" valignment="top" usebox="none">
27504 \begin_inset Text
27505
27506 \begin_layout Plain Layout
27507 fancybox
27508 \end_layout
27509
27510 \end_inset
27511 </cell>
27512 <cell alignment="center" valignment="top" usebox="none">
27513 \begin_inset Text
27514
27515 \begin_layout Plain Layout
27516 latexsym
27517 \end_layout
27518
27519 \end_inset
27520 </cell>
27521 <cell alignment="center" valignment="top" usebox="none">
27522 \begin_inset Text
27523
27524 \begin_layout Plain Layout
27525 multirow
27526 \end_layout
27527
27528 \end_inset
27529 </cell>
27530 <cell alignment="center" valignment="top" usebox="none">
27531 \begin_inset Text
27532
27533 \begin_layout Plain Layout
27534 rotating
27535 \end_layout
27536
27537 \end_inset
27538 </cell>
27539 <cell alignment="center" valignment="top" usebox="none">
27540 \begin_inset Text
27541
27542 \begin_layout Plain Layout
27543 textgreek
27544 \end_layout
27545
27546 \end_inset
27547 </cell>
27548 <cell alignment="center" valignment="top" usebox="none">
27549 \begin_inset Text
27550
27551 \begin_layout Plain Layout
27552 verbatim
27553 \end_layout
27554
27555 \end_inset
27556 </cell>
27557 <cell alignment="center" valignment="top" usebox="none">
27558 \begin_inset Text
27559
27560 \begin_layout Plain Layout
27561
27562 \end_layout
27563
27564 \end_inset
27565 </cell>
27566 </row>
27567 </lyxtabular>
27568
27569 \end_inset
27570
27571
27572 \end_layout
27573
27574 \begin_layout Chapter
27575 Names of available colors to be used in layouts
27576 \begin_inset CommandInset label
27577 LatexCommand label
27578 name "chap:Names-of-colors"
27579
27580 \end_inset
27581
27582
27583 \end_layout
27584
27585 \begin_layout Standard
27586 The colors listed here are the standard colors and the those that you can
27587  adjust in the \SpecialChar LyX
27588  preferences.
27589 \end_layout
27590
27591 \begin_layout Description
27592 none
27593 \family roman
27594 \series medium
27595 \shape up
27596 \size normal
27597 \emph off
27598 \bar no
27599 \strikeout off
27600 \uuline off
27601 \uwave off
27602 \noun off
27603 \color none
27604  No particular color – clear or default
27605 \end_layout
27606
27607 \begin_layout Description
27608 black
27609 \end_layout
27610
27611 \begin_layout Description
27612 white
27613 \end_layout
27614
27615 \begin_layout Description
27616 red
27617 \end_layout
27618
27619 \begin_layout Description
27620 green
27621 \end_layout
27622
27623 \begin_layout Description
27624 blue
27625 \end_layout
27626
27627 \begin_layout Description
27628 cyan
27629 \end_layout
27630
27631 \begin_layout Description
27632 magenta
27633 \end_layout
27634
27635 \begin_layout Description
27636 yellow
27637 \end_layout
27638
27639 \begin_layout Description
27640 added_space Added space marker color
27641 \end_layout
27642
27643 \begin_layout Description
27644 addedtext Added text color
27645 \end_layout
27646
27647 \begin_layout Description
27648 appendix Appendix marker color
27649 \end_layout
27650
27651 \begin_layout Description
27652 background Background color
27653 \end_layout
27654
27655 \begin_layout Description
27656 bottomarea Bottom area color
27657 \end_layout
27658
27659 \begin_layout Description
27660 branchlabel Label color for branches
27661 \end_layout
27662
27663 \begin_layout Description
27664 buttonbg Color used for button background
27665 \end_layout
27666
27667 \begin_layout Description
27668 buttonhoverbg Color used for button background under focus
27669 \end_layout
27670
27671 \begin_layout Description
27672 buttonframe Color for inset button frames
27673 \end_layout
27674
27675 \begin_layout Description
27676 changebar Changebar color
27677 \end_layout
27678
27679 \begin_layout Description
27680 changedtextauthor1 Changed text color author 1
27681 \end_layout
27682
27683 \begin_layout Description
27684 changedtextauthor2 Changed text color author 2
27685 \end_layout
27686
27687 \begin_layout Description
27688 changedtextauthor3 Changed text color author 3
27689 \end_layout
27690
27691 \begin_layout Description
27692 changedtextauthor4 Changed text color author 4
27693 \end_layout
27694
27695 \begin_layout Description
27696 changedtextauthor5 Changed text color author 5
27697 \end_layout
27698
27699 \begin_layout Description
27700 collapsable_inset_frame Collapsable insets framecolor
27701 \end_layout
27702
27703 \begin_layout Description
27704 collapsable_inset_text Collapsable insets text color
27705 \end_layout
27706
27707 \begin_layout Description
27708 command Text color for command insets
27709 \end_layout
27710
27711 \begin_layout Description
27712 commandbg Background color for command insets
27713 \end_layout
27714
27715 \begin_layout Description
27716 commandframe Frame color for command insets
27717 \end_layout
27718
27719 \begin_layout Description
27720 comment color for comments
27721 \end_layout
27722
27723 \begin_layout Description
27724 commentbg Background color of comments
27725 \end_layout
27726
27727 \begin_layout Description
27728 cursor Cursor color
27729 \end_layout
27730
27731 \begin_layout Description
27732 deletedtext Deleted text color
27733 \end_layout
27734
27735 \begin_layout Description
27736 deletedtextmodifier Deleted text modifying color
27737 \end_layout
27738
27739 \begin_layout Description
27740 depthbar Color for the depth bars in the margin
27741 \end_layout
27742
27743 \begin_layout Description
27744 eolmarker End of line marker color
27745 \end_layout
27746
27747 \begin_layout Description
27748 error Color of the \SpecialChar LaTeX
27749  error box
27750 \end_layout
27751
27752 \begin_layout Description
27753 footlabel Label color for footnotes
27754 \end_layout
27755
27756 \begin_layout Description
27757 graphicsbg Graphics inset background color
27758 \end_layout
27759
27760 \begin_layout Description
27761 greyedout Label color for greyedout insets
27762 \end_layout
27763
27764 \begin_layout Description
27765 greyedoutbg Background color of greyedout inset
27766 \end_layout
27767
27768 \begin_layout Description
27769 greyedouttext Color for greyedout inset text
27770 \end_layout
27771
27772 \begin_layout Description
27773 indexlabel Label color for index insets
27774 \end_layout
27775
27776 \begin_layout Description
27777 ignore The color is ignored
27778 \end_layout
27779
27780 \begin_layout Description
27781 inherit The color is inherited
27782 \end_layout
27783
27784 \begin_layout Description
27785 inlinecompletion Inline completion color
27786 \end_layout
27787
27788 \begin_layout Description
27789 insetbg Inset marker background color
27790 \end_layout
27791
27792 \begin_layout Description
27793 insetframe Inset marker frame color
27794 \end_layout
27795
27796 \begin_layout Description
27797 language Color for marking foreign language words
27798 \end_layout
27799
27800 \begin_layout Description
27801 latex Text color in \SpecialChar LaTeX
27802  mode
27803 \end_layout
27804
27805 \begin_layout Description
27806 listingsbg Background color of listings inset
27807 \end_layout
27808
27809 \begin_layout Description
27810 marginlabel Label color for margin notes
27811 \end_layout
27812
27813 \begin_layout Description
27814 math Math inset text color
27815 \end_layout
27816
27817 \begin_layout Description
27818 mathbg Math inset background color
27819 \end_layout
27820
27821 \begin_layout Description
27822 mathcorners Math inset frame color not under focus
27823 \end_layout
27824
27825 \begin_layout Description
27826 mathframe Math inset frame color under focus
27827 \end_layout
27828
27829 \begin_layout Description
27830 mathline Math line color
27831 \end_layout
27832
27833 \begin_layout Description
27834 mathmacrobg Macro math inset background color
27835 \end_layout
27836
27837 \begin_layout Description
27838 mathmacroblend Macro math blended color
27839 \end_layout
27840
27841 \begin_layout Description
27842 mathmacroframe Macro math frame color
27843 \end_layout
27844
27845 \begin_layout Description
27846 mathmacrohoverbg Macro math inset background color hovered
27847 \end_layout
27848
27849 \begin_layout Description
27850 mathmacrolabel Macro math label color
27851 \end_layout
27852
27853 \begin_layout Description
27854 mathmacronewarg Macro template color for new parameters
27855 \end_layout
27856
27857 \begin_layout Description
27858 mathmacrooldarg Macro template color for old parameters
27859 \end_layout
27860
27861 \begin_layout Description
27862 newpage New page color
27863 \end_layout
27864
27865 \begin_layout Description
27866 nonunique_inlinecompletion Inline completion color for the non-unique part
27867 \end_layout
27868
27869 \begin_layout Description
27870 notebg Background color of notes
27871 \end_layout
27872
27873 \begin_layout Description
27874 notelabel Label color for notes
27875 \end_layout
27876
27877 \begin_layout Description
27878 pagebreak Page break/line break color
27879 \end_layout
27880
27881 \begin_layout Description
27882 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
27883 \end_layout
27884
27885 \begin_layout Description
27886 phantomtext Text color for phantom insets
27887 \end_layout
27888
27889 \begin_layout Description
27890 preview The color used for previews
27891 \end_layout
27892
27893 \begin_layout Description
27894 previewframe Preview frame color
27895 \end_layout
27896
27897 \begin_layout Description
27898 regexpframe Color for regexp frame
27899 \end_layout
27900
27901 \begin_layout Description
27902 selection Background color of selected text
27903 \end_layout
27904
27905 \begin_layout Description
27906 selectiontext Foreground color of selected text
27907 \end_layout
27908
27909 \begin_layout Description
27910 shadedbg Background color of shaded box
27911 \end_layout
27912
27913 \begin_layout Description
27914 special Special chars text color
27915 \end_layout
27916
27917 \begin_layout Description
27918 tabularline Table line color
27919 \end_layout
27920
27921 \begin_layout Description
27922 tabularonoffline Table line color
27923 \end_layout
27924
27925 \begin_layout Description
27926 urllabel Label color for URL insets
27927 \end_layout
27928
27929 \begin_layout Description
27930 urltext Color for URL inset text
27931 \end_layout
27932
27933 \end_body
27934 \end_document