]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Update of localized versions of Customization manual
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 0
86 \use_package amssymb 0
87 \use_package cancel 0
88 \use_package esint 0
89 \use_package mathdots 1
90 \use_package mathtools 0
91 \use_package mhchem 0
92 \use_package stackrel 0
93 \use_package stmaryrd 0
94 \use_package undertilde 0
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes 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 \lang french
6181 $HOME/.texliveXXXX
6182 \end_layout
6183
6184 \end_inset
6185
6186 .
6187  (If these variables are not predefined, you have to define them.) You'll
6188  probably need root permissions to create or modify the `local' tree, but
6189  not for your `user' tree.
6190 \begin_inset Newline newline
6191 \end_inset
6192
6193 In general, it is recommended to install in the user tree because your user
6194  will not be modified or even overwritten when you upgrade your system.
6195  It will typically also be backed up together with everything else when
6196  you backup your home directory (which, of course, you do on a regular basis).
6197 \end_layout
6198
6199 \begin_layout Enumerate
6200 On Windows, if you want the new package to be available for all users on
6201  your system, change to the folder where \SpecialChar LaTeX
6202  is installed and then change to
6203  the subfolder 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 ~
6209 \backslash
6210 tex
6211 \backslash
6212 latex
6213 \end_layout
6214
6215 \end_inset
6216
6217 .
6218  (For MiK\SpecialChar TeX
6219 , this would be by default the folder 
6220 \begin_inset Flex Code
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 ~:
6225 \backslash
6226 Programs
6227 \backslash
6228 MiKTeX
6229 \backslash
6230 tex
6231 \backslash
6232 latex
6233 \end_layout
6234
6235 \end_inset
6236
6237 .)
6238 \begin_inset Foot
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 Note that this will be the correct path only on English installations.
6243  On a German one, it would be 
6244 \begin_inset Flex Code
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248 ~:
6249 \backslash
6250 Programme
6251 \backslash
6252 MiKTeX
6253 \backslash
6254 tex
6255 \backslash
6256 latex
6257 \end_layout
6258
6259 \end_inset
6260
6261 , and similarly for other languages.
6262 \end_layout
6263
6264 \end_inset
6265
6266  Create there a new folder 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 foiltex
6272 \end_layout
6273
6274 \end_inset
6275
6276  and copy all files of the package into it.
6277  
6278 \begin_inset Newline newline
6279 \end_inset
6280
6281 If the package should only available for you or you don't have admin permissions
6282 , do the same, but in the local \SpecialChar LaTeX
6283  folder.
6284  E.
6285 \begin_inset space \thinspace{}
6286 \end_inset
6287
6288 g., for MiK\SpecialChar TeX
6289
6290 \begin_inset space ~
6291 \end_inset
6292
6293 2.8 under Windows XP, this would be the folder:
6294 \begin_inset Newline newline
6295 \end_inset
6296
6297
6298 \family sans
6299
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 ~:
6305 \backslash
6306 Documents and Settings
6307 \backslash
6308 <username>
6309 \backslash
6310 Application Data
6311 \backslash
6312
6313 \end_layout
6314
6315 \end_inset
6316
6317
6318 \begin_inset Newline newline
6319 \end_inset
6320
6321
6322 \family default
6323
6324 \begin_inset Phantom HPhantom
6325 status open
6326
6327 \begin_layout Plain Layout
6328
6329 \family sans
6330 ~:
6331 \backslash
6332
6333 \end_layout
6334
6335 \end_inset
6336
6337
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 MiKTeX
6343 \backslash
6344 2.8
6345 \backslash
6346 tex
6347 \backslash
6348 latex
6349 \end_layout
6350
6351 \end_inset
6352
6353
6354 \begin_inset Newline newline
6355 \end_inset
6356
6357 On Vista, it would be:
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 ~:
6367 \backslash
6368 Users
6369 \backslash
6370 <username>
6371 \backslash
6372 AppData
6373 \backslash
6374 Roaming
6375 \backslash
6376 2.8
6377 \backslash
6378 MiKTeX
6379 \backslash
6380 tex
6381 \backslash
6382 latex
6383 \end_layout
6384
6385 \end_inset
6386
6387
6388 \end_layout
6389
6390 \end_deeper
6391 \begin_layout Enumerate
6392 Now one only need to tell \SpecialChar LaTeX
6393  that there are new files.
6394  This depends on the used \SpecialChar LaTeX
6395 -Distribution:
6396 \end_layout
6397
6398 \begin_deeper
6399 \begin_layout Enumerate
6400 For \SpecialChar TeX
6401 Live execute the command 
6402 \begin_inset Flex Code
6403 status collapsed
6404
6405 \begin_layout Plain Layout
6406 texhash
6407 \end_layout
6408
6409 \end_inset
6410
6411  from a console.
6412  If you installed the package for all users, then you will probably need
6413  to have root permissions for that.
6414 \end_layout
6415
6416 \begin_layout Enumerate
6417 For MiK\SpecialChar TeX
6418 , if you have installed the package for all users, start the program
6419  
6420 \begin_inset Quotes eld
6421 \end_inset
6422
6423 Settings
6424 \begin_inset space ~
6425 \end_inset
6426
6427 (Admin)
6428 \begin_inset Quotes erd
6429 \end_inset
6430
6431  and press the button marked 
6432 \begin_inset Quotes eld
6433 \end_inset
6434
6435 Refresh FNDB
6436 \begin_inset Quotes erd
6437 \end_inset
6438
6439 .
6440  Otherwise start the program 
6441 \begin_inset Quotes eld
6442 \end_inset
6443
6444 Settings
6445 \begin_inset Quotes erd
6446 \end_inset
6447
6448  and do the same.
6449 \end_layout
6450
6451 \end_deeper
6452 \begin_layout Enumerate
6453 Finally, you need to tell \SpecialChar LyX
6454  that there are new packages available.
6455  So, in \SpecialChar LyX
6456 , use the menu 
6457 \begin_inset Flex Noun
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 Tools
6462 \family sans
6463 \SpecialChar menuseparator
6464 Reconfigure
6465 \end_layout
6466
6467 \end_inset
6468
6469  and then restart \SpecialChar LyX
6470 .
6471 \end_layout
6472
6473 \begin_layout Standard
6474 Now the package is installed.
6475  In our example, the document class 
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 Slides
6481 \begin_inset space ~
6482 \end_inset
6483
6484 (FoilTex)
6485 \end_layout
6486
6487 \end_inset
6488
6489  will now be available under 
6490 \begin_inset Flex Noun
6491 status collapsed
6492
6493 \begin_layout Plain Layout
6494 Document\SpecialChar menuseparator
6495 Settings\SpecialChar menuseparator
6496 Document Class
6497 \end_layout
6498
6499 \end_inset
6500
6501 .
6502  
6503 \end_layout
6504
6505 \begin_layout Standard
6506 If you would like to use a \SpecialChar LaTeX
6507  document class that is not even listed in the
6508  menu 
6509 \begin_inset Flex Noun
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 Document\SpecialChar menuseparator
6514 Settings\SpecialChar menuseparator
6515 Document Class
6516 \end_layout
6517
6518 \end_inset
6519
6520 , then you need to create a `layout' file for it.
6521  That is the topic of the next section.
6522 \end_layout
6523
6524 \begin_layout Section
6525 Types of layout files
6526 \end_layout
6527
6528 \begin_layout Standard
6529 This section describes the various sorts of \SpecialChar LyX
6530  files that contain layout informati
6531 on.
6532  These files describe various paragraph and character styles, determining
6533  how \SpecialChar LyX
6534  should display them and how they should be translated into \SpecialChar LaTeX
6535 , DocBook,
6536  XHTML, or whatever output format is being used.
6537  
6538 \end_layout
6539
6540 \begin_layout Standard
6541 We shall try to provide a thorough description of the process of writing
6542  layout files here.
6543  However, there are so many different types of documents supported even
6544  by just \SpecialChar LaTeX
6545  that we can't hope to cover every different possibility or problem
6546  you might encounter.
6547  The \SpecialChar LyX
6548  users' list is frequented by people with lots of experience with layout
6549  design who are willing to share what they've learned, so please feel free
6550  to ask questions there.
6551 \end_layout
6552
6553 \begin_layout Standard
6554 As you prepare to write a new layout, it is extremely helpful to look at
6555  the layouts distributed with \SpecialChar LyX
6556 .
6557  If you write a \SpecialChar LyX
6558  layout for a \SpecialChar LaTeX
6559  document class that might also be used by
6560  others, or write a module that might be useful to others, then you should
6561  consider posting your layout to the 
6562 \begin_inset CommandInset href
6563 LatexCommand href
6564 name "layout section on the LyX wiki"
6565 target "http://wiki.lyx.org/Layouts/Layouts"
6566 literal "false"
6567
6568 \end_inset
6569
6570  or even to the \SpecialChar LyX
6571  developers' list, so that it might be included in \SpecialChar LyX
6572  itself.
6573 \begin_inset Foot
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 Note that \SpecialChar LyX
6578  is licensed under the General Public License, so any material
6579  that is contributed to \SpecialChar LyX
6580  must be similarly licensed.
6581 \end_layout
6582
6583 \end_inset
6584
6585
6586 \end_layout
6587
6588 \begin_layout Subsection
6589 Layout modules
6590 \begin_inset CommandInset label
6591 LatexCommand label
6592 name "subsec:Layout-modules"
6593
6594 \end_inset
6595
6596
6597 \end_layout
6598
6599 \begin_layout Standard
6600 We have spoken to this point about `layout files'.
6601  But there are different sorts of files that contain layout information.
6602  Layout files, strictly so called, have the 
6603 \begin_inset Flex Code
6604 status collapsed
6605
6606 \begin_layout Plain Layout
6607 .layout
6608 \end_layout
6609
6610 \end_inset
6611
6612  extension and provide \SpecialChar LyX
6613  with information about document classes.
6614  Since \SpecialChar LyX
6615  1.6 layout information can also be contained in layout 
6616 \emph on
6617 modules
6618 \emph default
6619 , which have the 
6620 \begin_inset Flex Code
6621 status collapsed
6622
6623 \begin_layout Plain Layout
6624 .module
6625 \end_layout
6626
6627 \end_inset
6628
6629  extension.
6630  Modules are to \SpecialChar LaTeX
6631  packages much as layouts are to \SpecialChar LaTeX
6632  classes, and some modules—such
6633  as the 
6634 \begin_inset Flex Code
6635 status collapsed
6636
6637 \begin_layout Plain Layout
6638 endnotes
6639 \end_layout
6640
6641 \end_inset
6642
6643  module—specifically provide support for one package.
6644  In a sense, layout modules are similar to included
6645 \begin_inset Foot
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649 These can have any extension, but by convention have the 
6650 \begin_inset Flex Code
6651 status collapsed
6652
6653 \begin_layout Plain Layout
6654 .inc
6655 \end_layout
6656
6657 \end_inset
6658
6659  extension.
6660 \end_layout
6661
6662 \end_inset
6663
6664  files—files like 
6665 \begin_inset Flex Code
6666 status collapsed
6667
6668 \begin_layout Plain Layout
6669 stdsections.inc
6670 \end_layout
6671
6672 \end_inset
6673
6674 —in that modules are not specific to a given document class but may be used
6675  with many different classes.
6676  The difference is that using an included file with 
6677 \begin_inset Flex Code
6678 status collapsed
6679
6680 \begin_layout Plain Layout
6681 article.cls
6682 \end_layout
6683
6684 \end_inset
6685
6686  requires editing that file.
6687  Modules, by contrast, are selected in the 
6688 \begin_inset Flex Noun
6689 status collapsed
6690
6691 \begin_layout Plain Layout
6692 Document\SpecialChar menuseparator
6693 Settings
6694 \end_layout
6695
6696 \end_inset
6697
6698  dialog.
6699 \end_layout
6700
6701 \begin_layout Standard
6702 Building modules is the easiest way to get started with layout editing,
6703  since it can be as simple as adding a single new paragraph style or flex
6704  inset.
6705  But modules may, in principle, contain anything a layout file can contain.
6706 \end_layout
6707
6708 \begin_layout Standard
6709 After creating a new module and copying it to the 
6710 \begin_inset Flex Code
6711 status collapsed
6712
6713 \begin_layout Plain Layout
6714 layouts/
6715 \end_layout
6716
6717 \end_inset
6718
6719  folder, you will need to reconfigure and then restart \SpecialChar LyX
6720  for the module to
6721  appear in the menu.
6722  However, changes you make to the module will be seen immediately, if you
6723  open 
6724 \begin_inset Flex Noun
6725 status collapsed
6726
6727 \begin_layout Plain Layout
6728 Document\SpecialChar menuseparator
6729 Settings
6730 \end_layout
6731
6732 \end_inset
6733
6734 , highlight something, and then hit 
6735 \begin_inset Quotes eld
6736 \end_inset
6737
6738 OK
6739 \begin_inset Quotes erd
6740 \end_inset
6741
6742 .
6743  
6744 \emph on
6745 It is strongly recommended that you save your work before doing this
6746 \emph default
6747 .
6748  In fact, 
6749 \emph on
6750 it is strongly recommended that you not attempt to edit modules while simultaneo
6751 usly working on actual documents
6752 \emph default
6753 .
6754  Though of course the developers strive to keep \SpecialChar LyX
6755  stable in such situations,
6756  syntax errors and the like in your module file could cause strange behavior.
6757 \end_layout
6758
6759 \begin_layout Subsubsection
6760 Local Layout
6761 \end_layout
6762
6763 \begin_layout Standard
6764 Modules are to \SpecialChar LyX
6765  as packages are to \SpecialChar LaTeX
6766 .
6767  Sometimes, however, you find yourself wanting a specific inset or character
6768  style just for one document and writing a module that will also be available
6769  to other documents makes little sense.
6770  What you need is \SpecialChar LyX
6771 's 
6772 \begin_inset Quotes eld
6773 \end_inset
6774
6775 Local Layout
6776 \begin_inset Quotes erd
6777 \end_inset
6778
6779 .
6780 \end_layout
6781
6782 \begin_layout Standard
6783 You will find it under 
6784 \family sans
6785 Document\SpecialChar menuseparator
6786 Settings\SpecialChar menuseparator
6787 Local Layout
6788 \family default
6789 .
6790  The large text box allows you to enter anything that you might enter in
6791  a layout file or module.
6792  You can think of a document's local layout, in fact, as a module that belongs
6793  just to it.
6794  So, in particular, you must enter a 
6795 \begin_inset Flex Code
6796 status collapsed
6797
6798 \begin_layout Plain Layout
6799 Format
6800 \end_layout
6801
6802 \end_inset
6803
6804  tag.
6805  Any format is acceptable, but one would normally use the format current
6806  at the time.
6807  (In \SpecialChar LyX
6808  2.2, the current layout format is 60.)
6809 \end_layout
6810
6811 \begin_layout Standard
6812 When you have entered something in the 
6813 \begin_inset Flex Code
6814 status collapsed
6815
6816 \begin_layout Plain Layout
6817 Local Layout
6818 \end_layout
6819
6820 \end_inset
6821
6822  pane, \SpecialChar LyX
6823  will enable the 
6824 \begin_inset Quotes eld
6825 \end_inset
6826
6827 Validate
6828 \begin_inset Quotes erd
6829 \end_inset
6830
6831  button at the bottom.
6832  Clicking this button will cause \SpecialChar LyX
6833  to determine whether what you have entered
6834  is valid layout information for the chosen format.
6835  \SpecialChar LyX
6836  will report the result but, unfortunately, will not tell you what errors
6837  there might have been.
6838  These will be written to the terminal, however, if \SpecialChar LyX
6839  is started from a terminal.
6840  You will not be permitted to save your local layout until you have entered
6841  something valid.
6842 \end_layout
6843
6844 \begin_layout Standard
6845 The warnings at the end of the previous section apply here, too.
6846  Do not play with local layout while you are actually working, especially
6847  if you have not saved your document.
6848  That said, using local layout with a test document can be a very convenient
6849  way to try out layout ideas, or even to start developing a module.
6850 \end_layout
6851
6852 \begin_layout Subsection
6853 Layout for 
6854 \begin_inset Flex Noun
6855 status collapsed
6856
6857 \begin_layout Plain Layout
6858 .sty
6859 \end_layout
6860
6861 \end_inset
6862
6863  files
6864 \end_layout
6865
6866 \begin_layout Standard
6867 There are two situations you are likely to encounter when wanting to support
6868  a new \SpecialChar LaTeX
6869  document class, involving style (
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 .sty
6875 \end_layout
6876
6877 \end_inset
6878
6879 ) files and \SpecialChar LaTeX2e
6880  class (
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 .cls
6886 \end_layout
6887
6888 \end_inset
6889
6890 ) .
6891  Supporting a style file is usually fairly easy.
6892  Supporting a new class file is a bit harder.
6893  We'll discuss the former in this section and the latter in the next.
6894  Similar remarks apply, of course, if you want to support a new DocBook
6895  DTD.
6896 \end_layout
6897
6898 \begin_layout Standard
6899 The easier case is the one in which your new document class is provided
6900  as a style file that is to be used in conjunction with an already supported
6901  document class.
6902  For the sake of the example, we'll assume that the style file is called
6903  
6904 \begin_inset Flex Noun
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 myclass.sty
6909 \end_layout
6910
6911 \end_inset
6912
6913  and that it is meant to be used with 
6914 \begin_inset Flex Noun
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 report.cls
6919 \end_layout
6920
6921 \end_inset
6922
6923 , which is a standard class.
6924  
6925 \end_layout
6926
6927 \begin_layout Standard
6928 Start by copying the existing class's layout file into your local directory:
6929 \begin_inset Foot
6930 status collapsed
6931
6932 \begin_layout Plain Layout
6933 Of course, which directory is your local directory will vary by platform,
6934  and \SpecialChar LyX
6935  allows you to specify your local directory on startup, too, using
6936  the 
6937 \begin_inset Flex Code
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 -userdir
6942 \end_layout
6943
6944 \end_inset
6945
6946  option.
6947 \end_layout
6948
6949 \end_inset
6950
6951
6952 \end_layout
6953
6954 \begin_layout LyX-Code
6955 cp report.layout ~/.lyx/layouts/myclass.layout
6956 \end_layout
6957
6958 \begin_layout Standard
6959 Then edit 
6960 \begin_inset Flex Code
6961 status collapsed
6962
6963 \begin_layout Plain Layout
6964 myclass.layout
6965 \end_layout
6966
6967 \end_inset
6968
6969  and change the line: 
6970 \end_layout
6971
6972 \begin_layout LyX-Code
6973
6974 \backslash
6975 DeclareLaTeXClass{report}
6976 \end_layout
6977
6978 \begin_layout Standard
6979 to read
6980 \end_layout
6981
6982 \begin_layout LyX-Code
6983
6984 \backslash
6985 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6986 \end_layout
6987
6988 \begin_layout Standard
6989 Then add:
6990 \end_layout
6991
6992 \begin_layout LyX-Code
6993 Preamble 
6994 \begin_inset Newline newline
6995 \end_inset
6996
6997     
6998 \backslash
6999 usepackage{myclass}
7000 \begin_inset Newline newline
7001 \end_inset
7002
7003 EndPreamble
7004 \end_layout
7005
7006 \begin_layout Standard
7007 near the top of the file.
7008 \end_layout
7009
7010 \begin_layout Standard
7011 Start \SpecialChar LyX
7012  and select 
7013 \begin_inset Flex Noun
7014 status collapsed
7015
7016 \begin_layout Plain Layout
7017 Tools\SpecialChar menuseparator
7018 Reconfigure
7019 \end_layout
7020
7021 \end_inset
7022
7023 .
7024  Then restart \SpecialChar LyX
7025  and try creating a new document.
7026  You should see "
7027 \begin_inset Flex Noun
7028 status collapsed
7029
7030 \begin_layout Plain Layout
7031 report (myclass)
7032 \end_layout
7033
7034 \end_inset
7035
7036 " as a document class option in the 
7037 \begin_inset Flex Noun
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 Document\SpecialChar menuseparator
7042 Settings
7043 \end_layout
7044
7045 \end_inset
7046
7047  dialog.
7048  It is likely that some of the sectioning commands and such in your new
7049  class will work differently from how they worked in the base class—
7050 \begin_inset Flex Code
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 report
7055 \end_layout
7056
7057 \end_inset
7058
7059  in this example—so you can fiddle around with the settings for the different
7060  sections if you wish.
7061  The layout information for sections is contained in 
7062 \begin_inset Flex Code
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 stdsections.inc
7067 \end_layout
7068
7069 \end_inset
7070
7071 , but you do not need to copy and change this file.
7072  Instead, you can simply add your changes to your layout file, after the
7073  line 
7074 \begin_inset Flex Code
7075 status collapsed
7076
7077 \begin_layout Plain Layout
7078 Input stdclass.inc
7079 \end_layout
7080
7081 \end_inset
7082
7083 , which itself includes 
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 stdsections.inc
7089 \end_layout
7090
7091 \end_inset
7092
7093 .
7094  For example, you might add these lines:
7095 \end_layout
7096
7097 \begin_layout LyX-Code
7098 Style Chapter
7099 \end_layout
7100
7101 \begin_layout LyX-Code
7102     Font
7103 \end_layout
7104
7105 \begin_layout LyX-Code
7106         Family Sans
7107 \end_layout
7108
7109 \begin_layout LyX-Code
7110     EndFont
7111 \end_layout
7112
7113 \begin_layout LyX-Code
7114 End
7115 \end_layout
7116
7117 \begin_layout Standard
7118 to change the font for chapter headings to sans-serif.
7119  This will override (or, in this case, add to) the existing declaration
7120  for the Chapter style.
7121  
7122 \end_layout
7123
7124 \begin_layout Standard
7125 Your new package may also provide commands or environments not present in
7126  the base class.
7127  In this case, you will want to add these to the layout file.
7128  See 
7129 \begin_inset CommandInset ref
7130 LatexCommand ref
7131 reference "sec:TextClass"
7132
7133 \end_inset
7134
7135  for information on how to do so.
7136 \end_layout
7137
7138 \begin_layout Standard
7139 If 
7140 \begin_inset Flex Noun
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 myclass.sty
7145 \end_layout
7146
7147 \end_inset
7148
7149  can be used with several different document classes, and even if it cannot,
7150  you might find it easiest just to write a module that you can load with
7151  the base class.
7152  The simplest possible such module would be:
7153 \end_layout
7154
7155 \begin_layout LyX-Code
7156 #
7157 \backslash
7158 DeclareLyXModule{My Package} 
7159 \end_layout
7160
7161 \begin_layout LyX-Code
7162 #DescriptionBegin 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166 #Support for mypkg.sty.
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170 #DescriptionEnd
7171 \begin_inset Newline newline
7172 \end_inset
7173
7174
7175 \end_layout
7176
7177 \begin_layout LyX-Code
7178 Format 60
7179 \begin_inset Newline newline
7180 \end_inset
7181
7182
7183 \end_layout
7184
7185 \begin_layout LyX-Code
7186 Preamble
7187 \begin_inset Newline newline
7188 \end_inset
7189
7190     
7191 \backslash
7192 usepackage{mypkg}
7193 \begin_inset Newline newline
7194 \end_inset
7195
7196 EndPreamble
7197 \end_layout
7198
7199 \begin_layout Standard
7200 A more complex module might modify the behavior of some existing constructs
7201  or define some new ones.
7202  Again, see 
7203 \begin_inset CommandInset ref
7204 LatexCommand ref
7205 reference "sec:TextClass"
7206
7207 \end_inset
7208
7209  for discussion.
7210 \end_layout
7211
7212 \begin_layout Subsection
7213 Layout for 
7214 \begin_inset Flex Noun
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 .cls
7219 \end_layout
7220
7221 \end_inset
7222
7223  files
7224 \end_layout
7225
7226 \begin_layout Standard
7227 There are two possibilities here.
7228  One is that the class file is itself based upon an existing document class.
7229  For example, many thesis classes are based upon 
7230 \begin_inset Flex Noun
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234 book.cls
7235 \end_layout
7236
7237 \end_inset
7238
7239 .
7240  To see whether yours is, look for a line like
7241 \end_layout
7242
7243 \begin_layout LyX-Code
7244
7245 \backslash
7246 LoadClass{book}
7247 \end_layout
7248
7249 \begin_layout Standard
7250 in the file.
7251  If so, then you may proceed largely as in the previous section, though
7252  the 
7253 \begin_inset Flex Code
7254 status collapsed
7255
7256 \begin_layout Plain Layout
7257 Declare\SpecialChar LaTeX
7258 Class
7259 \end_layout
7260
7261 \end_inset
7262
7263  line will be different.
7264  If your new class is 
7265 \begin_inset Flex Code
7266 status collapsed
7267
7268 \begin_layout Plain Layout
7269 thesis
7270 \end_layout
7271
7272 \end_inset
7273
7274  and it is based upon 
7275 \begin_inset Flex Code
7276 status collapsed
7277
7278 \begin_layout Plain Layout
7279 book
7280 \end_layout
7281
7282 \end_inset
7283
7284 , then the line should read:
7285 \begin_inset Foot
7286 status collapsed
7287
7288 \begin_layout Plain Layout
7289 And it will be easiest if you save the file to 
7290 \begin_inset Flex Code
7291 status collapsed
7292
7293 \begin_layout Plain Layout
7294 thesis.layout
7295 \end_layout
7296
7297 \end_inset
7298
7299 : \SpecialChar LyX
7300  assumes that the document class has the same name as the layout file.
7301  
7302 \end_layout
7303
7304 \end_inset
7305
7306
7307 \end_layout
7308
7309 \begin_layout LyX-Code
7310
7311 \backslash
7312 DeclareLaTeXClass[thesis,book]{thesis}
7313 \end_layout
7314
7315 \begin_layout Standard
7316 If, on the other hand, the new class is not based upon an existing class,
7317  you will probably have to 
7318 \begin_inset Quotes eld
7319 \end_inset
7320
7321 roll your own
7322 \begin_inset Quotes erd
7323 \end_inset
7324
7325  layout.
7326  We strongly suggest copying an existing layout file which uses a similar
7327  \SpecialChar LaTeX
7328  class and then modifying it, if you can do so.
7329  At least use an existing file as a starting point so you can find out what
7330  items you need to worry about.
7331  Again, the specifics are covered below.
7332 \end_layout
7333
7334 \begin_layout Subsection
7335 Creating templates
7336 \begin_inset CommandInset label
7337 LatexCommand label
7338 name "subsec:Creating-Templates"
7339
7340 \end_inset
7341
7342
7343 \end_layout
7344
7345 \begin_layout Standard
7346 Once you have written a layout file for a new document class, you might
7347  want to consider writing a 
7348 \emph on
7349 template
7350 \emph default
7351  for it, too.
7352  A template acts as a kind of tutorial for your layout, showing how it might
7353  be used, though containing dummy content.
7354  You can of course look at the various templates included with \SpecialChar LyX
7355  for ideas.
7356 \end_layout
7357
7358 \begin_layout Standard
7359 Templates are created just like usual documents: using \SpecialChar LyX
7360 .
7361  The only difference is that usual documents contain all possible settings,
7362  including the font scheme and the paper size.
7363  Usually a user doesn't want a template to overwrite his preferred settings
7364  for such parameters.
7365  For that reason, the designer of a template should remove the corresponding
7366  commands like 
7367 \begin_inset Flex Code
7368 status collapsed
7369
7370 \begin_layout Plain Layout
7371
7372 \backslash
7373 font_roman
7374 \end_layout
7375
7376 \end_inset
7377
7378  or 
7379 \begin_inset Flex Code
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383
7384 \backslash
7385 papersize
7386 \end_layout
7387
7388 \end_inset
7389
7390  from the template \SpecialChar LyX
7391  file.
7392  This can be done with any simple text-editor, for example 
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 vi
7398 \end_layout
7399
7400 \end_inset
7401
7402  or 
7403 \begin_inset Flex Code
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 notepad
7408 \end_layout
7409
7410 \end_inset
7411
7412 .
7413 \end_layout
7414
7415 \begin_layout Standard
7416 Put the edited template files you create in 
7417 \begin_inset Flex Code
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 UserDir/templates/
7422 \end_layout
7423
7424 \end_inset
7425
7426 , copy the ones you use from the global template directory in 
7427 \begin_inset Flex Code
7428 status collapsed
7429
7430 \begin_layout Plain Layout
7431 LyXDir/templates/
7432 \end_layout
7433
7434 \end_inset
7435
7436  to the same place, and redefine the template path in the 
7437 \begin_inset Flex Noun
7438 status collapsed
7439
7440 \begin_layout Plain Layout
7441 Tools\SpecialChar menuseparator
7442 Preferences\SpecialChar menuseparator
7443 Paths
7444 \end_layout
7445
7446 \end_inset
7447
7448  dialog.
7449 \end_layout
7450
7451 \begin_layout Standard
7452 Note, by the way, that there is a template which has a particular meaning:
7453  
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 defaults.lyx
7459 \end_layout
7460
7461 \end_inset
7462
7463 .
7464  This template is loaded every time you create a new document with 
7465 \begin_inset Flex Noun
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 File\SpecialChar menuseparator
7470 New
7471 \end_layout
7472
7473 \end_inset
7474
7475  in order to provide useful defaults.
7476  To create this template from inside \SpecialChar LyX
7477 , all you have to do is to open a document
7478  with the correct settings, and use the 
7479 \begin_inset Flex Noun
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 Save as Document Defaults
7484 \end_layout
7485
7486 \end_inset
7487
7488  button.
7489 \end_layout
7490
7491 \begin_layout Subsection
7492 Upgrading old layout files
7493 \end_layout
7494
7495 \begin_layout Standard
7496 The format of layout files changes with each \SpecialChar LyX
7497  release, so old layout files
7498  need to be converted to the new format.
7499  If \SpecialChar LyX
7500  reads a layout file in an older format, it automatically calls the
7501  script 
7502 \begin_inset Flex Code
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506 layout2layout.py
7507 \end_layout
7508
7509 \end_inset
7510
7511  to convert it to a temporary file in current format.
7512  The original file is left untouched.
7513  If you use the layout file often, then, you may want to convert it permanently,
7514  so that \SpecialChar LyX
7515  does not have to do so itself every time.
7516  To do this, you can call the converter manually:
7517 \end_layout
7518
7519 \begin_layout Enumerate
7520 rename the file 
7521 \begin_inset Flex Code
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 myclass.layout
7526 \end_layout
7527
7528 \end_inset
7529
7530  to 
7531 \begin_inset Flex Code
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 myclass.old
7536 \end_layout
7537
7538 \end_inset
7539
7540
7541 \end_layout
7542
7543 \begin_layout Enumerate
7544 Call the command
7545 \begin_inset Newline newline
7546 \end_inset
7547
7548
7549 \begin_inset Flex Code
7550 status collapsed
7551
7552 \begin_layout Plain Layout
7553 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7554 \end_layout
7555
7556 \end_inset
7557
7558
7559 \begin_inset Newline newline
7560 \end_inset
7561
7562 where 
7563 \begin_inset Flex Code
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 LyXDir
7568 \end_layout
7569
7570 \end_inset
7571
7572  is the name of your \SpecialChar LyX
7573  system directory.
7574 \end_layout
7575
7576 \begin_layout Standard
7577 Note that manual conversion does not affect included files, so these will
7578  have to be converted separately.
7579 \end_layout
7580
7581 \begin_layout Subsection
7582 \begin_inset CommandInset label
7583 LatexCommand label
7584 name "subsec:Cite-Engine-Files"
7585
7586 \end_inset
7587
7588 Cite engine files
7589 \end_layout
7590
7591 \begin_layout Standard
7592 A specific form of layout files are the so-called 
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 *.citeengine
7598 \end_layout
7599
7600 \end_inset
7601
7602  files that are located in the 
7603 \begin_inset Flex Code
7604 status collapsed
7605
7606 \begin_layout Plain Layout
7607 citeengines/
7608 \end_layout
7609
7610 \end_inset
7611
7612  sub-directory.
7613  Their purpose is to define the specifics of \SpecialChar LaTeX
7614  packages aimed at bibliography
7615  generation, such as 
7616 \family sans
7617 natbib
7618 \family default
7619 ,
7620 \family sans
7621  jurabib
7622 \family default
7623  or 
7624 \family sans
7625 biblatex
7626 \family default
7627 , but also the way how normal Bib\SpecialChar TeX
7628  citations (without additional packages)
7629  are handled in \SpecialChar LyX
7630  is defined in such a file.
7631  
7632 \end_layout
7633
7634 \begin_layout Standard
7635 More specifically, it is defined which packages \SpecialChar LyX
7636  needs to load, which citation
7637  commands are available, how these are to be displayed in \SpecialChar LyX
7638  (in the workarea,
7639  the dialogs, the context menus) as well as in the XHTML and plain text
7640  output.
7641  Furthermore, the files specify available style variants (author-year, numerical
7642 , etc.) and their specifics.
7643  The cite engine files are also used to generate the options that are available
7644  in 
7645 \family sans
7646 Document\SpecialChar menuseparator
7647 Settings\SpecialChar ldots
7648 \SpecialChar menuseparator
7649 Bibliography\SpecialChar menuseparator
7650 Style engine
7651 \family default
7652 .
7653 \end_layout
7654
7655 \begin_layout Standard
7656 Even though a cite engine file is essentially a normal layout file that
7657  could theoretically include any layout information, it usually primarily
7658  includes some specific parameters such as 
7659 \begin_inset Flex Code
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 MaxCiteNames
7664 \end_layout
7665
7666 \end_inset
7667
7668
7669 \begin_inset Flex Code
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 CiteFramework
7674 \end_layout
7675
7676 \end_inset
7677
7678
7679 \begin_inset Flex Code
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 CiteEngine
7684 \end_layout
7685
7686 \end_inset
7687
7688  and 
7689 \begin_inset Flex Code
7690 status collapsed
7691
7692 \begin_layout Plain Layout
7693 CiteFormat
7694 \end_layout
7695
7696 \end_inset
7697
7698  blocks.
7699  The syntax of the latter two is described in 
7700 \begin_inset CommandInset ref
7701 LatexCommand ref
7702 reference "subsec:Citation-engine-description"
7703 plural "false"
7704 caps "false"
7705 noprefix "false"
7706
7707 \end_inset
7708
7709  and 
7710 \begin_inset CommandInset ref
7711 LatexCommand ref
7712 reference "subsec:Citation-format-description"
7713
7714 \end_inset
7715
7716 , as well as in the files themselves.
7717 \end_layout
7718
7719 \begin_layout Section
7720 \begin_inset CommandInset label
7721 LatexCommand label
7722 name "sec:TextClass"
7723
7724 \end_inset
7725
7726 The layout file format
7727 \end_layout
7728
7729 \begin_layout Standard
7730 The following sections describe how layout files are structured and written.
7731  Our advice is to go slowly, save and test often.
7732  It is really not that hard, except that the multitude of options can become
7733  overwhelming, especially if you try to check out too many at once.
7734  It becomes easier if you use existing layouts of \SpecialChar LyX
7735  as examples/reference
7736  or if you modify an existing layout to your needs.
7737 \end_layout
7738
7739 \begin_layout Standard
7740 Note that all the tags used in layout files are case-insensitive.
7741  This means that 
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 Style
7747 \end_layout
7748
7749 \end_inset
7750
7751
7752 \begin_inset Flex Code
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756 style
7757 \end_layout
7758
7759 \end_inset
7760
7761  and 
7762 \begin_inset Flex Code
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766 StYlE
7767 \end_layout
7768
7769 \end_inset
7770
7771  are really the same tag.
7772  The possible arguments are printed in brackets after the tag's name.
7773  The default argument is typeset 
7774 \begin_inset Flex Code
7775 status collapsed
7776
7777 \begin_layout Plain Layout
7778
7779 \emph on
7780 emphasized
7781 \end_layout
7782
7783 \end_inset
7784
7785 .
7786  If the argument has a data type like 
7787 \begin_inset Quotes eld
7788 \end_inset
7789
7790 string
7791 \begin_inset Quotes erd
7792 \end_inset
7793
7794  or 
7795 \begin_inset Quotes eld
7796 \end_inset
7797
7798 float
7799 \begin_inset Quotes erd
7800 \end_inset
7801
7802 , the default is shown like this: 
7803 \begin_inset Flex Code
7804 status collapsed
7805
7806 \begin_layout Plain Layout
7807 float=
7808 \emph on
7809 default
7810 \end_layout
7811
7812 \end_inset
7813
7814 .
7815 \end_layout
7816
7817 \begin_layout Subsection
7818 The document class declaration and classification
7819 \end_layout
7820
7821 \begin_layout Standard
7822 Lines in a layout file which begin with 
7823 \begin_inset Flex Code
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 #
7828 \end_layout
7829
7830 \end_inset
7831
7832  are comments.
7833  There is one exception to this rule.
7834  All 
7835 \begin_inset Flex Code
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 *.layout
7840 \end_layout
7841
7842 \end_inset
7843
7844  files should begin with lines like:
7845 \end_layout
7846
7847 \begin_layout LyX-Code
7848
7849 \size small
7850 #% Do not delete the line below; configure depends on this 
7851 \end_layout
7852
7853 \begin_layout LyX-Code
7854
7855 \size small
7856 #  
7857 \backslash
7858 DeclareLaTeXClass{Article (Standard Class)}
7859 \end_layout
7860
7861 \begin_layout LyX-Code
7862
7863 \size small
7864 #  
7865 \backslash
7866 DeclareCategory{Articles}
7867 \end_layout
7868
7869 \begin_layout Standard
7870 The second and third lines are used when you (re)configure \SpecialChar LyX
7871 .
7872  The layout file is read by the \SpecialChar LaTeX
7873  script 
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 chkconfig.ltx
7879 \end_layout
7880
7881 \end_inset
7882
7883 , in a special mode where 
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 #
7889 \end_layout
7890
7891 \end_inset
7892
7893  is ignored.
7894  The first line is just a \SpecialChar LaTeX
7895  comment, the second one contains the mandatory
7896  declaration of the text class and the third line contains the optional
7897  classification of the class.
7898  If these lines appear in a file named 
7899 \begin_inset Flex Code
7900 status collapsed
7901
7902 \begin_layout Plain Layout
7903 article.layout
7904 \end_layout
7905
7906 \end_inset
7907
7908 , then they define a text class of name 
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 article
7914 \end_layout
7915
7916 \end_inset
7917
7918  (the name of the layout file) which uses the \SpecialChar LaTeX
7919  document class 
7920 \begin_inset Flex Code
7921 status collapsed
7922
7923 \begin_layout Plain Layout
7924 article.cls
7925 \end_layout
7926
7927 \end_inset
7928
7929  (the default is to use the same name as the layout).
7930  The string 
7931 \begin_inset Quotes eld
7932 \end_inset
7933
7934 Article (Standard Class)
7935 \begin_inset Quotes erd
7936 \end_inset
7937
7938  that appears above is used as a description of the text class in the 
7939 \begin_inset Flex Noun
7940 status collapsed
7941
7942 \begin_layout Plain Layout
7943 Document\SpecialChar menuseparator
7944 Settings
7945 \end_layout
7946
7947 \end_inset
7948
7949  dialog.
7950  The category (
7951 \begin_inset Quotes eld
7952 \end_inset
7953
7954 Articles
7955 \begin_inset Quotes erd
7956 \end_inset
7957
7958  in the example) is also used in the 
7959 \begin_inset Flex Noun
7960 status collapsed
7961
7962 \begin_layout Plain Layout
7963 Document\SpecialChar menuseparator
7964 Settings
7965 \end_layout
7966
7967 \end_inset
7968
7969  dialog: the text classes are grouped by these categories (which are usually
7970  genres, so typical categories are 
7971 \begin_inset Quotes eld
7972 \end_inset
7973
7974 Articles
7975 \begin_inset Quotes erd
7976 \end_inset
7977
7978
7979 \begin_inset Quotes eld
7980 \end_inset
7981
7982 Books
7983 \begin_inset Quotes erd
7984 \end_inset
7985
7986
7987 \begin_inset Quotes eld
7988 \end_inset
7989
7990 Reports
7991 \begin_inset Quotes erd
7992 \end_inset
7993
7994
7995 \begin_inset Quotes eld
7996 \end_inset
7997
7998 Letters
7999 \begin_inset Quotes erd
8000 \end_inset
8001
8002
8003 \begin_inset Quotes eld
8004 \end_inset
8005
8006 Presentations
8007 \begin_inset Quotes erd
8008 \end_inset
8009
8010
8011 \begin_inset Quotes eld
8012 \end_inset
8013
8014 Curricula Vitae
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018  etc.).
8019  If no category has been declared, the class will be put in the 
8020 \begin_inset Quotes eld
8021 \end_inset
8022
8023 Uncategorized
8024 \begin_inset Quotes erd
8025 \end_inset
8026
8027  group.
8028 \end_layout
8029
8030 \begin_layout Standard
8031 Let's assume that you wrote your own text class that uses the 
8032 \begin_inset Flex Code
8033 status collapsed
8034
8035 \begin_layout Plain Layout
8036 article.cls
8037 \end_layout
8038
8039 \end_inset
8040
8041  document class, but where you changed the appearance of the section headings.
8042  If you put it in a file 
8043 \begin_inset Flex Code
8044 status collapsed
8045
8046 \begin_layout Plain Layout
8047 myarticle.layout
8048 \end_layout
8049
8050 \end_inset
8051
8052 , the header of this file should be:
8053 \end_layout
8054
8055 \begin_layout LyX-Code
8056
8057 \size small
8058 #% Do not delete the line below; configure depends on this 
8059 \end_layout
8060
8061 \begin_layout LyX-Code
8062
8063 \size small
8064 #  
8065 \backslash
8066 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8067 \end_layout
8068
8069 \begin_layout LyX-Code
8070
8071 \size small
8072 #  
8073 \backslash
8074 DeclareCategory{Articles}
8075 \end_layout
8076
8077 \begin_layout Standard
8078 This declares a text class 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 myarticle
8084 \end_layout
8085
8086 \end_inset
8087
8088 , associated with the \SpecialChar LaTeX
8089  document class 
8090 \begin_inset Flex Code
8091 status collapsed
8092
8093 \begin_layout Plain Layout
8094 article.cls
8095 \end_layout
8096
8097 \end_inset
8098
8099  and described as 
8100 \begin_inset Quotes eld
8101 \end_inset
8102
8103 Article (with My Own Headings)
8104 \begin_inset Quotes erd
8105 \end_inset
8106
8107 .
8108  If your text class depends on several packages, you can declare it as:
8109 \end_layout
8110
8111 \begin_layout LyX-Code
8112
8113 \size small
8114 #% Do not delete the line below; configure depends on this 
8115 \end_layout
8116
8117 \begin_layout LyX-Code
8118
8119 \size small
8120 #  
8121 \backslash
8122 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8123 \end_layout
8124
8125 \begin_layout LyX-Code
8126
8127 \size small
8128 #  
8129 \backslash
8130 DeclareCategory{Articles}
8131 \end_layout
8132
8133 \begin_layout Standard
8134 This indicates that your text class uses the 
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 foo.sty
8140 \end_layout
8141
8142 \end_inset
8143
8144  package.
8145  Finally, it is also possible to declare classes for DocBook code.
8146  Typical declarations will look like:
8147 \end_layout
8148
8149 \begin_layout LyX-Code
8150
8151 \size small
8152 #% Do not delete the line below; configure depends on this 
8153 \end_layout
8154
8155 \begin_layout LyX-Code
8156
8157 \size small
8158
8159 \backslash
8160 DeclareDocBookClass[article]{SGML (DocBook Article)}
8161 \end_layout
8162
8163 \begin_layout LyX-Code
8164
8165 \size small
8166
8167 \backslash
8168 DeclareCategory{Articles (DocBook)}
8169 \end_layout
8170
8171 \begin_layout Standard
8172 Note that these declarations can also be given an optional parameter declaring
8173  the name of the document class (but not a list).
8174 \end_layout
8175
8176 \begin_layout Standard
8177 So, to be as explicit as possible, the form of the layout declaration is:
8178 \end_layout
8179
8180 \begin_layout LyX-Code
8181
8182 \size small
8183 #  
8184 \backslash
8185 DeclareLaTeXClass[class,package.sty]{layout description}
8186 \end_layout
8187
8188 \begin_layout LyX-Code
8189
8190 \size small
8191 #  
8192 \backslash
8193 DeclareCategory{category}
8194 \end_layout
8195
8196 \begin_layout Standard
8197 The class need only be specified if the name of the \SpecialChar LaTeX
8198  class file and the
8199  name of the layout file are different or if there are packages to load.
8200  If the name of the class file is not specified, then \SpecialChar LyX
8201  will simply assume
8202  that it is the same as the name of the layout file.
8203 \end_layout
8204
8205 \begin_layout Standard
8206 When the text class has been modified to your taste, all you have to do
8207  is to copy it either to 
8208 \begin_inset Flex Code
8209 status collapsed
8210
8211 \begin_layout Plain Layout
8212 LyXDir/layouts/
8213 \end_layout
8214
8215 \end_inset
8216
8217  or to 
8218 \begin_inset Flex Code
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222 UserDir/layouts
8223 \end_layout
8224
8225 \end_inset
8226
8227 , run 
8228 \begin_inset Flex Noun
8229 status collapsed
8230
8231 \begin_layout Plain Layout
8232 Tools\SpecialChar menuseparator
8233 Reconfigure
8234 \end_layout
8235
8236 \end_inset
8237
8238 , exit \SpecialChar LyX
8239  and restart.
8240  Then your new text class should be available along with the others.
8241 \end_layout
8242
8243 \begin_layout Standard
8244 Once the layout file is installed, you can edit it and see your changes
8245  without having to reconfigure or to restart \SpecialChar LyX
8246 .
8247  
8248 \begin_inset Foot
8249 status collapsed
8250
8251 \begin_layout Plain Layout
8252 In versions of \SpecialChar LyX
8253  prior to 1.6, this was not true.
8254  As a result, editing layout files was very time consuming, since you had
8255  constantly to restart \SpecialChar LyX
8256  to see changes.
8257 \end_layout
8258
8259 \end_inset
8260
8261  You can force a reload of the current layout by using the \SpecialChar LyX
8262  function 
8263 \begin_inset Flex Noun
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 layout-reload
8268 \end_layout
8269
8270 \end_inset
8271
8272 .
8273  There is no default binding for this function—though, of course, you can
8274  bind it to a key yourself.
8275  But you will normally use this function simply by entering it in the mini-buffe
8276 r.
8277  
8278 \end_layout
8279
8280 \begin_layout Standard
8281
8282 \emph on
8283 Warning
8284 \emph default
8285
8286 \begin_inset Flex Noun
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290 layout-reload
8291 \end_layout
8292
8293 \end_inset
8294
8295  is very much an `advanced feature'.
8296  It is 
8297 \emph on
8298 strongly
8299 \emph default
8300  recommended that you save your work before using this function.
8301  In fact, it is 
8302 \emph on
8303 strongly
8304 \emph default
8305  recommended that you not attempt to edit layout information while simultaneousl
8306 y working on a document that you care about.
8307  Use a test document.
8308  Syntax errors and the like in your layout file could cause peculiar behavior.
8309  In particular, such errors could cause \SpecialChar LyX
8310  to regard the current layout as
8311  invalid and to attempt to switch to some other layout.
8312 \begin_inset Foot
8313 status collapsed
8314
8315 \begin_layout Plain Layout
8316 Really bad syntax errors may even caused \SpecialChar LyX
8317  to exit.
8318  This is because certain sorts of errors may make \SpecialChar LyX
8319  unable to read 
8320 \emph on
8321 any
8322 \emph default
8323  layout information.
8324  Please be careful.
8325 \end_layout
8326
8327 \end_inset
8328
8329  The \SpecialChar LyX
8330  team strives to keep \SpecialChar LyX
8331  stable in such situations, but safe is better
8332  than sorry.
8333 \begin_inset Foot
8334 status collapsed
8335
8336 \begin_layout Plain Layout
8337 While we're giving advice: make regular backups.
8338  And be nice to your mother.
8339 \end_layout
8340
8341 \end_inset
8342
8343
8344 \end_layout
8345
8346 \begin_layout Subsection
8347 The Module declaration
8348 \end_layout
8349
8350 \begin_layout Standard
8351 A module must begin with a line like the following:
8352 \end_layout
8353
8354 \begin_layout LyX-Code
8355 #
8356 \backslash
8357 DeclareLyXModule[endnotes.sty]{Endnotes} 
8358 \end_layout
8359
8360 \begin_layout Standard
8361 The mandatory argument, in curly brackets, is the name of the module, as
8362  it should appear in 
8363 \begin_inset Flex Noun
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 Document\SpecialChar menuseparator
8368 Settings\SpecialChar menuseparator
8369 Modules
8370 \end_layout
8371
8372 \end_inset
8373
8374 .
8375  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8376  packages
8377  on which the module depends.
8378  It is also possible to use the form 
8379 \begin_inset Flex Noun
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 from->to
8384 \end_layout
8385
8386 \end_inset
8387
8388  as an optional argument, which declares that the module can only be used
8389  when there exists a conversion chain between the formats `
8390 \begin_inset Flex Code
8391 status collapsed
8392
8393 \begin_layout Plain Layout
8394 from
8395 \end_layout
8396
8397 \end_inset
8398
8399 ' and `
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 to
8405 \end_layout
8406
8407 \end_inset
8408
8409 '.
8410 \end_layout
8411
8412 \begin_layout Standard
8413 The module declaration should then be followed by lines like the following
8414 \begin_inset Foot
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 Preferably in English if the module should be published with \SpecialChar LyX
8419 .
8420  This description will appear in the list of messages to be translated and
8421  will be thus translated with the next interface update.
8422 \end_layout
8423
8424 \end_inset
8425
8426 :
8427 \end_layout
8428
8429 \begin_layout LyX-Code
8430 #DescriptionBegin 
8431 \end_layout
8432
8433 \begin_layout LyX-Code
8434 #Adds an endnote command, in addition to footnotes.
8435  
8436 \end_layout
8437
8438 \begin_layout LyX-Code
8439 #You will need to add  
8440 \backslash
8441 theendnotes in TeX code where you 
8442 \end_layout
8443
8444 \begin_layout LyX-Code
8445 #want the endnotes to appear.
8446  
8447 \end_layout
8448
8449 \begin_layout LyX-Code
8450 #DescriptionEnd 
8451 \end_layout
8452
8453 \begin_layout LyX-Code
8454 #Requires: somemodule | othermodule
8455 \end_layout
8456
8457 \begin_layout LyX-Code
8458 #Excludes: badmodule
8459 \end_layout
8460
8461 \begin_layout Standard
8462 The description is used in 
8463 \begin_inset Flex Noun
8464 status collapsed
8465
8466 \begin_layout Plain Layout
8467 Document\SpecialChar menuseparator
8468 Settings\SpecialChar menuseparator
8469 Modules
8470 \end_layout
8471
8472 \end_inset
8473
8474  to provide the user with information about what the module does.
8475  The 
8476 \begin_inset Flex Code
8477 status collapsed
8478
8479 \begin_layout Plain Layout
8480 Requires
8481 \end_layout
8482
8483 \end_inset
8484
8485  line is used to identify other modules with which this one must be used;
8486  the 
8487 \begin_inset Flex Code
8488 status collapsed
8489
8490 \begin_layout Plain Layout
8491 Excludes
8492 \end_layout
8493
8494 \end_inset
8495
8496  line is used to identify modules with which this one may not be used.
8497  Both are optional, and, as shown, multiple modules should be separated
8498  with the pipe symbol: |.
8499  Note that the required modules are treated disjunctively: 
8500 \emph on
8501 at least one
8502 \emph default
8503  of the required modules must be used.
8504  Similarly, 
8505 \emph on
8506 no
8507 \emph default
8508  excluded module may be used.
8509  Note that modules are identified here by their filenames without the 
8510 \begin_inset Flex Code
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 .module
8515 \end_layout
8516
8517 \end_inset
8518
8519  extension.
8520  So 
8521 \begin_inset Flex Code
8522 status collapsed
8523
8524 \begin_layout Plain Layout
8525 somemodule
8526 \end_layout
8527
8528 \end_inset
8529
8530  is really 
8531 \begin_inset Flex Code
8532 status collapsed
8533
8534 \begin_layout Plain Layout
8535 somemodule.module
8536 \end_layout
8537
8538 \end_inset
8539
8540 .
8541 \end_layout
8542
8543 \begin_layout Subsection
8544 The CiteEngine file declaration
8545 \end_layout
8546
8547 \begin_layout Standard
8548 A cite engine file must begin with a line like the following:
8549 \end_layout
8550
8551 \begin_layout LyX-Code
8552 #
8553 \backslash
8554 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8555 \end_layout
8556
8557 \begin_layout Standard
8558 The mandatory argument, in curly brackets, is the name of the module, as
8559  it should appear in 
8560 \begin_inset Flex Noun
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 Document\SpecialChar menuseparator
8565 Settings\SpecialChar menuseparator
8566 Bibliography
8567 \end_layout
8568
8569 \end_inset
8570
8571 .
8572  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8573  packages
8574  on which the cite engine depends.
8575 \end_layout
8576
8577 \begin_layout Standard
8578 The cite engine declaration should then be followed by lines like the following
8579 \begin_inset Foot
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 Preferably in English if the module should be published with \SpecialChar LyX
8584 .
8585  This description will appear in the list of messages to be translated and
8586  will be thus translated with the next interface update.
8587 \end_layout
8588
8589 \end_inset
8590
8591 :
8592 \end_layout
8593
8594 \begin_layout LyX-Code
8595 # DescriptionBegin
8596 \end_layout
8597
8598 \begin_layout LyX-Code
8599 #   Biblatex supports many author-year and numerical styles.
8600 \end_layout
8601
8602 \begin_layout LyX-Code
8603 #   It is mainly aimed at the Humanities.
8604  It is highly
8605 \end_layout
8606
8607 \begin_layout LyX-Code
8608 #   customizable, fully localized and provides many features
8609 \end_layout
8610
8611 \begin_layout LyX-Code
8612 #   that are not possible with BibTeX.
8613  The use of 'biber' as
8614 \end_layout
8615
8616 \begin_layout LyX-Code
8617 #   bibliography processor is advised.
8618 \end_layout
8619
8620 \begin_layout LyX-Code
8621 # DescriptionEnd
8622 \end_layout
8623
8624 \begin_layout Standard
8625 The description is used in 
8626 \begin_inset Flex Noun
8627 status collapsed
8628
8629 \begin_layout Plain Layout
8630 Document\SpecialChar menuseparator
8631 Settings\SpecialChar menuseparator
8632 Bibliography
8633 \end_layout
8634
8635 \end_inset
8636
8637  to provide the user with information about the cite engine.
8638 \end_layout
8639
8640 \begin_layout Subsection
8641 Format number
8642 \end_layout
8643
8644 \begin_layout Standard
8645 The first non-comment line of any layout file, included file, or module
8646  
8647 \emph on
8648 must
8649 \emph default
8650  contain the file format number:
8651 \end_layout
8652
8653 \begin_layout Description
8654 \begin_inset Flex Code
8655 status collapsed
8656
8657 \begin_layout Plain Layout
8658 Format
8659 \end_layout
8660
8661 \end_inset
8662
8663  [
8664 \begin_inset Flex Code
8665 status collapsed
8666
8667 \begin_layout Plain Layout
8668 int
8669 \end_layout
8670
8671 \end_inset
8672
8673 ] The format number of the layout file.
8674 \end_layout
8675
8676 \begin_layout Standard
8677 This tag was introduced with \SpecialChar LyX
8678
8679 \begin_inset space ~
8680 \end_inset
8681
8682 1.4.0.
8683  Layout files from older \SpecialChar LyX
8684  versions do not have an explicit file format and
8685  are considered to have 
8686 \begin_inset Flex Code
8687 status collapsed
8688
8689 \begin_layout Plain Layout
8690 Format
8691 \begin_inset space ~
8692 \end_inset
8693
8694 1
8695 \end_layout
8696
8697 \end_inset
8698
8699 .
8700  The format for the present version of \SpecialChar LyX
8701  is format 60.
8702  But each version of \SpecialChar LyX
8703  is capable of reading earlier versions' layout files,
8704  just as they are capable of reading files produced by earlier versions
8705  of \SpecialChar LyX
8706 .
8707  There is, however, no provision for converting to earlier formats.
8708 \end_layout
8709
8710 \begin_layout Subsection
8711 \begin_inset CommandInset label
8712 LatexCommand label
8713 name "subsec:General-text-class"
8714
8715 \end_inset
8716
8717 General text class parameters
8718 \end_layout
8719
8720 \begin_layout Standard
8721 These are general parameters that govern the behavior of an entire document
8722  class.
8723  (This does 
8724 \emph on
8725 not
8726 \emph default
8727  mean that they must appear in 
8728 \begin_inset Flex Code
8729 status collapsed
8730
8731 \begin_layout Plain Layout
8732 .layout
8733 \end_layout
8734
8735 \end_inset
8736
8737  files rather than in modules.
8738  A module can contain any layout tag.)
8739 \end_layout
8740
8741 \begin_layout Description
8742 \begin_inset Flex Code
8743 status collapsed
8744
8745 \begin_layout Plain Layout
8746 AddToHTMLPreamble
8747 \end_layout
8748
8749 \end_inset
8750
8751  Adds information that will be output in the 
8752 \begin_inset Flex Code
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 <head>
8757 \end_layout
8758
8759 \end_inset
8760
8761  block when the document is output to XHTML.
8762  Typically, this would be used to output CSS style information, but it can
8763  be used for anything that can appear in 
8764 \begin_inset Flex Code
8765 status collapsed
8766
8767 \begin_layout Plain Layout
8768 <head>
8769 \end_layout
8770
8771 \end_inset
8772
8773 .
8774  Must end with 
8775 \begin_inset Quotes eld
8776 \end_inset
8777
8778
8779 \begin_inset Flex Code
8780 status collapsed
8781
8782 \begin_layout Plain Layout
8783 EndPreamble
8784 \end_layout
8785
8786 \end_inset
8787
8788
8789 \begin_inset Quotes erd
8790 \end_inset
8791
8792 .
8793 \end_layout
8794
8795 \begin_layout Description
8796 \begin_inset Flex Code
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 AddToPreamble
8801 \end_layout
8802
8803 \end_inset
8804
8805  Adds information to the document preamble.
8806  Must end with
8807 \begin_inset Newline newline
8808 \end_inset
8809
8810
8811 \begin_inset Quotes eld
8812 \end_inset
8813
8814
8815 \begin_inset Flex Code
8816 status collapsed
8817
8818 \begin_layout Plain Layout
8819 EndPreamble
8820 \end_layout
8821
8822 \end_inset
8823
8824
8825 \begin_inset Quotes erd
8826 \end_inset
8827
8828 .
8829 \end_layout
8830
8831 \begin_layout Description
8832 \begin_inset Flex Code
8833 status collapsed
8834
8835 \begin_layout Plain Layout
8836 CiteEngine <engine>
8837 \end_layout
8838
8839 \end_inset
8840
8841  Defines the possibilities for displaying citation references.
8842  See 
8843 \begin_inset CommandInset ref
8844 LatexCommand ref
8845 reference "subsec:Citation-engine-description"
8846 plural "false"
8847 caps "false"
8848 noprefix "false"
8849
8850 \end_inset
8851
8852  for details.
8853  Must end with 
8854 \begin_inset Quotes eld
8855 \end_inset
8856
8857
8858 \begin_inset Flex Code
8859 status collapsed
8860
8861 \begin_layout Plain Layout
8862 End
8863 \end_layout
8864
8865 \end_inset
8866
8867
8868 \begin_inset Quotes erd
8869 \end_inset
8870
8871 .
8872  Primarily used in cite engine files (see 
8873 \begin_inset CommandInset ref
8874 LatexCommand ref
8875 reference "subsec:Cite-Engine-Files"
8876 plural "false"
8877 caps "false"
8878 noprefix "false"
8879
8880 \end_inset
8881
8882 ).
8883 \end_layout
8884
8885 \begin_layout Description
8886 \begin_inset Flex Code
8887 status collapsed
8888
8889 \begin_layout Plain Layout
8890 CiteFormat
8891 \end_layout
8892
8893 \end_inset
8894
8895  Defines formats for use in the display of bibliographic information.
8896  See 
8897 \begin_inset CommandInset ref
8898 LatexCommand ref
8899 reference "subsec:Citation-format-description"
8900
8901 \end_inset
8902
8903  for details.
8904  Must end with 
8905 \begin_inset Quotes eld
8906 \end_inset
8907
8908
8909 \begin_inset Flex Code
8910 status collapsed
8911
8912 \begin_layout Plain Layout
8913 End
8914 \end_layout
8915
8916 \end_inset
8917
8918
8919 \begin_inset Quotes erd
8920 \end_inset
8921
8922 .
8923  Primarily used in cite engine files (see 
8924 \begin_inset CommandInset ref
8925 LatexCommand ref
8926 reference "subsec:Cite-Engine-Files"
8927 plural "false"
8928 caps "false"
8929 noprefix "false"
8930
8931 \end_inset
8932
8933 ).
8934 \end_layout
8935
8936 \begin_layout Description
8937 \begin_inset Flex Code
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 CiteFramework
8942 \end_layout
8943
8944 \end_inset
8945
8946  [
8947 \begin_inset Flex Code
8948 status collapsed
8949
8950 \begin_layout Plain Layout
8951
8952 \emph on
8953 bibtex
8954 \end_layout
8955
8956 \end_inset
8957
8958 ,
8959 \begin_inset Flex Code
8960 status collapsed
8961
8962 \begin_layout Plain Layout
8963 biblatex
8964 \end_layout
8965
8966 \end_inset
8967
8968 ] Determines whether 
8969 \family sans
8970 Biblatex
8971 \family default
8972  or Bib\SpecialChar TeX
8973  is used to generate a Bibliography.
8974  Primarily used in cite engine files (see 
8975 \begin_inset CommandInset ref
8976 LatexCommand ref
8977 reference "subsec:Cite-Engine-Files"
8978 plural "false"
8979 caps "false"
8980 noprefix "false"
8981
8982 \end_inset
8983
8984 ).
8985 \end_layout
8986
8987 \begin_layout Description
8988 \begin_inset Flex Code
8989 status collapsed
8990
8991 \begin_layout Plain Layout
8992 ClassOptions
8993 \end_layout
8994
8995 \end_inset
8996
8997  Describes various global options supported by the document class.
8998  See 
8999 \begin_inset CommandInset ref
9000 LatexCommand ref
9001 reference "subsec:ClassOptions"
9002
9003 \end_inset
9004
9005  for a description.
9006  Must end with 
9007 \begin_inset Quotes eld
9008 \end_inset
9009
9010
9011 \begin_inset Flex Code
9012 status collapsed
9013
9014 \begin_layout Plain Layout
9015 End
9016 \end_layout
9017
9018 \end_inset
9019
9020
9021 \begin_inset Quotes erd
9022 \end_inset
9023
9024 .
9025 \end_layout
9026
9027 \begin_layout Description
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 Columns
9033 \end_layout
9034
9035 \end_inset
9036
9037  [
9038 \begin_inset Flex Code
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042
9043 \emph on
9044 1
9045 \end_layout
9046
9047 \end_inset
9048
9049 ,
9050 \begin_inset space \thinspace{}
9051 \end_inset
9052
9053
9054 \begin_inset Flex Code
9055 status collapsed
9056
9057 \begin_layout Plain Layout
9058 2
9059 \end_layout
9060
9061 \end_inset
9062
9063 ] Whether the class should 
9064 \emph on
9065 default
9066 \emph default
9067  to having one or two columns.
9068  Can be changed in the 
9069 \begin_inset Flex Noun
9070 status collapsed
9071
9072 \begin_layout Plain Layout
9073 Document\SpecialChar menuseparator
9074 Settings
9075 \end_layout
9076
9077 \end_inset
9078
9079  dialog.
9080 \end_layout
9081
9082 \begin_layout Description
9083 \begin_inset Flex Code
9084 status collapsed
9085
9086 \begin_layout Plain Layout
9087 Counter
9088 \end_layout
9089
9090 \end_inset
9091
9092  [
9093 \begin_inset Flex Code
9094 status collapsed
9095
9096 \begin_layout Plain Layout
9097 string
9098 \end_layout
9099
9100 \end_inset
9101
9102 ] This sequence defines the properties for a counter.
9103  If the counter does not yet exist, it is created; if it does exist, it
9104  is modified.
9105  Must end with 
9106 \begin_inset Quotes eld
9107 \end_inset
9108
9109
9110 \begin_inset Flex Code
9111 status collapsed
9112
9113 \begin_layout Plain Layout
9114 End
9115 \end_layout
9116
9117 \end_inset
9118
9119
9120 \begin_inset Quotes erd
9121 \end_inset
9122
9123 .
9124 \begin_inset Newline newline
9125 \end_inset
9126
9127 See 
9128 \begin_inset CommandInset ref
9129 LatexCommand ref
9130 reference "subsec:Counters"
9131
9132 \end_inset
9133
9134  for details on counters.
9135 \end_layout
9136
9137 \begin_layout Description
9138 \begin_inset Flex Code
9139 status collapsed
9140
9141 \begin_layout Plain Layout
9142 DefaultFont
9143 \end_layout
9144
9145 \end_inset
9146
9147  Sets the default font used to display the document.
9148  See 
9149 \begin_inset CommandInset ref
9150 LatexCommand ref
9151 reference "subsec:Font-description"
9152
9153 \end_inset
9154
9155  for how to declare fonts.
9156  Must end with 
9157 \begin_inset Quotes eld
9158 \end_inset
9159
9160
9161 \begin_inset Flex Code
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165 EndFont
9166 \end_layout
9167
9168 \end_inset
9169
9170
9171 \begin_inset Quotes erd
9172 \end_inset
9173
9174 .
9175 \end_layout
9176
9177 \begin_layout Description
9178 \begin_inset Flex Code
9179 status collapsed
9180
9181 \begin_layout Plain Layout
9182 DefaultModule
9183 \end_layout
9184
9185 \end_inset
9186
9187  [
9188 \begin_inset Flex Code
9189 status collapsed
9190
9191 \begin_layout Plain Layout
9192 <module>
9193 \end_layout
9194
9195 \end_inset
9196
9197 ] Specifies a module to be included by default with this document class.
9198  The module is specified as filename without the 
9199 \begin_inset Flex Code
9200 status collapsed
9201
9202 \begin_layout Plain Layout
9203 .module
9204 \end_layout
9205
9206 \end_inset
9207
9208  extension.
9209  The user can still remove the module, but it will be active at the outset.
9210  (This applies only when new files are created, or when this class is chosen
9211  for an existing document.)
9212 \end_layout
9213
9214 \begin_layout Description
9215 \begin_inset Flex Code
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219 DefaultStyle
9220 \end_layout
9221
9222 \end_inset
9223
9224  [
9225 \begin_inset Flex Code
9226 status collapsed
9227
9228 \begin_layout Plain Layout
9229 <style>
9230 \end_layout
9231
9232 \end_inset
9233
9234 ] This is the style that will be assigned to new paragraphs, usually 
9235 \begin_inset Flex Noun
9236 status collapsed
9237
9238 \begin_layout Plain Layout
9239 Standard
9240 \end_layout
9241
9242 \end_inset
9243
9244 .
9245  This will default to the first defined style if not given, but you are
9246  encouraged to use this directive.
9247 \end_layout
9248
9249 \begin_layout Description
9250 \begin_inset Flex Code
9251 status collapsed
9252
9253 \begin_layout Plain Layout
9254 ExcludesModule
9255 \end_layout
9256
9257 \end_inset
9258
9259  [
9260 \begin_inset Flex Code
9261 status collapsed
9262
9263 \begin_layout Plain Layout
9264 <module>
9265 \end_layout
9266
9267 \end_inset
9268
9269 ] This tag indicates that the module (which is specified by filename without
9270  the 
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 .module
9276 \end_layout
9277
9278 \end_inset
9279
9280  extension) cannot be used with this document class.
9281  This might be used in a journal-specific layout file to prevent, say, the
9282  use of the 
9283 \begin_inset Flex Code
9284 status collapsed
9285
9286 \begin_layout Plain Layout
9287 theorems-sec
9288 \end_layout
9289
9290 \end_inset
9291
9292  module that numbers theorems by section.
9293  This tag may 
9294 \emph on
9295 not
9296 \emph default
9297  be used in a module.
9298  Modules have their own way of excluding other modules (see 
9299 \begin_inset CommandInset ref
9300 LatexCommand ref
9301 reference "subsec:Layout-modules"
9302
9303 \end_inset
9304
9305 ).
9306 \end_layout
9307
9308 \begin_layout Description
9309 \begin_inset Flex Code
9310 status collapsed
9311
9312 \begin_layout Plain Layout
9313 Float
9314 \end_layout
9315
9316 \end_inset
9317
9318  Defines a new float.
9319  See 
9320 \begin_inset CommandInset ref
9321 LatexCommand ref
9322 reference "subsec:Floats"
9323
9324 \end_inset
9325
9326  for details.
9327  Must end with 
9328 \begin_inset Quotes eld
9329 \end_inset
9330
9331
9332 \begin_inset Flex Code
9333 status collapsed
9334
9335 \begin_layout Plain Layout
9336 End
9337 \end_layout
9338
9339 \end_inset
9340
9341
9342 \begin_inset Quotes erd
9343 \end_inset
9344
9345 .
9346 \end_layout
9347
9348 \begin_layout Description
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 HTMLPreamble
9354 \end_layout
9355
9356 \end_inset
9357
9358  Sets the information that will be output in the 
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 <head>
9364 \end_layout
9365
9366 \end_inset
9367
9368  block when this document class is output to XHTML.
9369  Note that this will completely override any prior 
9370 \begin_inset Flex Code
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 HTMLPreamble
9375 \end_layout
9376
9377 \end_inset
9378
9379  or 
9380 \begin_inset Flex Code
9381 status collapsed
9382
9383 \begin_layout Plain Layout
9384 AddToHTMLPreamble
9385 \end_layout
9386
9387 \end_inset
9388
9389  declarations.
9390  (Use
9391 \begin_inset Newline newline
9392 \end_inset
9393
9394
9395 \begin_inset Flex Code
9396 status collapsed
9397
9398 \begin_layout Plain Layout
9399 AddToHTMLPreamble
9400 \end_layout
9401
9402 \end_inset
9403
9404  if you just want to add material to the preamble.) Must end with 
9405 \begin_inset Quotes eld
9406 \end_inset
9407
9408
9409 \begin_inset Flex Code
9410 status collapsed
9411
9412 \begin_layout Plain Layout
9413 EndPreamble
9414 \end_layout
9415
9416 \end_inset
9417
9418
9419 \begin_inset Quotes erd
9420 \end_inset
9421
9422 .
9423 \end_layout
9424
9425 \begin_layout Description
9426 \begin_inset Flex Code
9427 status collapsed
9428
9429 \begin_layout Plain Layout
9430 HTMLTOCSection
9431 \end_layout
9432
9433 \end_inset
9434
9435  [
9436 \begin_inset Flex Code
9437 status collapsed
9438
9439 \begin_layout Plain Layout
9440 <style>
9441 \end_layout
9442
9443 \end_inset
9444
9445 ] The style to use for the table of contents, bibliography, and so forth,
9446  when the document is output to HTML.
9447  For articles, this should normally be 
9448 \begin_inset Flex Code
9449 status collapsed
9450
9451 \begin_layout Plain Layout
9452 Section
9453 \end_layout
9454
9455 \end_inset
9456
9457 ; for books 
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 Chapter
9463 \end_layout
9464
9465 \end_inset
9466
9467 .
9468  If it is not given, then \SpecialChar LyX
9469  will attempt to figure out which layout to use.
9470 \end_layout
9471
9472 \begin_layout Description
9473 \begin_inset Flex Code
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477 IfCounter
9478 \end_layout
9479
9480 \end_inset
9481
9482  [
9483 \begin_inset Flex Code
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 <counter>
9488 \end_layout
9489
9490 \end_inset
9491
9492 ] Modifies the properties of the given counter.
9493  If the counter does not exist, the statement is ignored.
9494  Must end with 
9495 \begin_inset Quotes eld
9496 \end_inset
9497
9498
9499 \begin_inset Flex Code
9500 status collapsed
9501
9502 \begin_layout Plain Layout
9503 End
9504 \end_layout
9505
9506 \end_inset
9507
9508
9509 \begin_inset Quotes erd
9510 \end_inset
9511
9512 .
9513 \begin_inset Newline newline
9514 \end_inset
9515
9516 See 
9517 \begin_inset CommandInset ref
9518 LatexCommand ref
9519 reference "subsec:Counters"
9520
9521 \end_inset
9522
9523  for details on counters.
9524 \end_layout
9525
9526 \begin_layout Description
9527 \begin_inset Flex Code
9528 status collapsed
9529
9530 \begin_layout Plain Layout
9531 Input
9532 \end_layout
9533
9534 \end_inset
9535
9536  [
9537 \begin_inset Flex Code
9538 status collapsed
9539
9540 \begin_layout Plain Layout
9541 <filename>
9542 \end_layout
9543
9544 \end_inset
9545
9546 ] This allows you to include another layout definition file within yours
9547  to avoid duplicating commands.
9548  Common examples are the standard layout files, for example, 
9549 \begin_inset Flex Code
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553 stdclass.inc
9554 \end_layout
9555
9556 \end_inset
9557
9558 , which contains most of the basic layouts.
9559 \end_layout
9560
9561 \begin_layout Description
9562 \begin_inset Flex Code
9563 status collapsed
9564
9565 \begin_layout Plain Layout
9566 InsetLayout
9567 \end_layout
9568
9569 \end_inset
9570
9571  [
9572 \begin_inset Flex Code
9573 status collapsed
9574
9575 \begin_layout Plain Layout
9576 <type>
9577 \end_layout
9578
9579 \end_inset
9580
9581 ] This section (re-)defines the layout of an inset.
9582  It can be applied to an existing inset or to a new, user-defined inset,
9583  e.g., a new character style.
9584  Must end with 
9585 \begin_inset Quotes eld
9586 \end_inset
9587
9588
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 End
9594 \end_layout
9595
9596 \end_inset
9597
9598
9599 \begin_inset Quotes erd
9600 \end_inset
9601
9602 .
9603 \begin_inset Newline newline
9604 \end_inset
9605
9606 See 
9607 \begin_inset CommandInset ref
9608 LatexCommand ref
9609 reference "subsec:Flex-insets-and"
9610
9611 \end_inset
9612
9613  for more information.
9614  
9615 \end_layout
9616
9617 \begin_layout Description
9618 \begin_inset Flex Code
9619 status collapsed
9620
9621 \begin_layout Plain Layout
9622 LeftMargin
9623 \end_layout
9624
9625 \end_inset
9626
9627  [
9628 \begin_inset Flex Code
9629 status collapsed
9630
9631 \begin_layout Plain Layout
9632 string
9633 \end_layout
9634
9635 \end_inset
9636
9637 ] A string that indicates the width of the left margin on the screen, for
9638  example, 
9639 \begin_inset Quotes eld
9640 \end_inset
9641
9642
9643 \begin_inset Flex Code
9644 status collapsed
9645
9646 \begin_layout Plain Layout
9647 MMMMM
9648 \end_layout
9649
9650 \end_inset
9651
9652
9653 \begin_inset Quotes erd
9654 \end_inset
9655
9656 .
9657  (Note that this is not a `length', like 
9658 \begin_inset Quotes eld
9659 \end_inset
9660
9661 2ex
9662 \begin_inset Quotes erd
9663 \end_inset
9664
9665 .)
9666 \end_layout
9667
9668 \begin_layout Description
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 MaxCiteNames
9674 \end_layout
9675
9676 \end_inset
9677
9678  [
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 integer
9684 \end_layout
9685
9686 \end_inset
9687
9688 ] An integer that determines the maximal number of names displayed in an
9689  author-year citation before the citation switches to 
9690 \begin_inset Quotes eld
9691 \end_inset
9692
9693 FirstAuthor et al.
9694 \begin_inset Quotes erd
9695 \end_inset
9696
9697 .
9698  Primarily used in cite engine files (see 
9699 \begin_inset CommandInset ref
9700 LatexCommand ref
9701 reference "subsec:Cite-Engine-Files"
9702 plural "false"
9703 caps "false"
9704 noprefix "false"
9705
9706 \end_inset
9707
9708 ).
9709 \end_layout
9710
9711 \begin_layout Description
9712 \begin_inset Flex Code
9713 status collapsed
9714
9715 \begin_layout Plain Layout
9716 ModifyStyle
9717 \end_layout
9718
9719 \end_inset
9720
9721  [
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 <style>
9727 \end_layout
9728
9729 \end_inset
9730
9731 ] Modifies the properties of the given paragraph style.
9732  If the style does not exist, this section is ignored.
9733  Must end with 
9734 \begin_inset Quotes eld
9735 \end_inset
9736
9737
9738 \begin_inset Flex Code
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 End
9743 \end_layout
9744
9745 \end_inset
9746
9747
9748 \begin_inset Quotes erd
9749 \end_inset
9750
9751 .
9752 \end_layout
9753
9754 \begin_layout Description
9755 \begin_inset Flex Code
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759 NoCounter
9760 \end_layout
9761
9762 \end_inset
9763
9764  [
9765 \begin_inset Flex Code
9766 status collapsed
9767
9768 \begin_layout Plain Layout
9769 <counter>
9770 \end_layout
9771
9772 \end_inset
9773
9774 ] Deletes an existing counter, usually one defined in an included file.
9775 \end_layout
9776
9777 \begin_layout Description
9778 \begin_inset Flex Code
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 NoFloat
9783 \end_layout
9784
9785 \end_inset
9786
9787  [
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 <float>
9793 \end_layout
9794
9795 \end_inset
9796
9797 ] Deletes an existing float.
9798  This is particularly useful when you want to suppress a float that has
9799  been defined in an input file.
9800 \end_layout
9801
9802 \begin_layout Description
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 NoStyle
9808 \end_layout
9809
9810 \end_inset
9811
9812  [
9813 \begin_inset Flex Code
9814 status collapsed
9815
9816 \begin_layout Plain Layout
9817 <style>
9818 \end_layout
9819
9820 \end_inset
9821
9822 ] Deletes an existing style.
9823 \end_layout
9824
9825 \begin_layout Description
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830 OutlinerName
9831 \end_layout
9832
9833 \end_inset
9834
9835  [
9836 \begin_inset Flex Code
9837 status collapsed
9838
9839 \begin_layout Plain Layout
9840 <type>
9841 \end_layout
9842
9843 \end_inset
9844
9845 ] [
9846 \begin_inset Flex Code
9847 status collapsed
9848
9849 \begin_layout Plain Layout
9850 <string>
9851 \end_layout
9852
9853 \end_inset
9854
9855 ] Define a new table of contents with type 
9856 \begin_inset Flex Code
9857 status collapsed
9858
9859 \begin_layout Plain Layout
9860 <type>
9861 \end_layout
9862
9863 \end_inset
9864
9865  and name 
9866 \begin_inset Flex Code
9867 status collapsed
9868
9869 \begin_layout Plain Layout
9870 <string>
9871 \end_layout
9872
9873 \end_inset
9874
9875 .
9876  See also the AddToToc commands.
9877 \end_layout
9878
9879 \begin_layout Description
9880 \begin_inset Flex Code
9881 status collapsed
9882
9883 \begin_layout Plain Layout
9884 OutputFormat
9885 \end_layout
9886
9887 \end_inset
9888
9889  [
9890 \begin_inset Flex Code
9891 status collapsed
9892
9893 \begin_layout Plain Layout
9894 <format>
9895 \end_layout
9896
9897 \end_inset
9898
9899 ] The file format (as defined in the \SpecialChar LyX
9900  preferences) produced by this document
9901  class.
9902  It is mainly useful when 
9903 \begin_inset Flex Code
9904 status collapsed
9905
9906 \begin_layout Plain Layout
9907 OutputType
9908 \end_layout
9909
9910 \end_inset
9911
9912  is 
9913 \begin_inset Flex Code
9914 status collapsed
9915
9916 \begin_layout Plain Layout
9917 literate
9918 \end_layout
9919
9920 \end_inset
9921
9922  and one wants to define a new type of literate document.
9923  The format is reset to 
9924 \begin_inset Quotes eld
9925 \end_inset
9926
9927
9928 \begin_inset Flex Code
9929 status collapsed
9930
9931 \begin_layout Plain Layout
9932 docbook
9933 \end_layout
9934
9935 \end_inset
9936
9937
9938 \begin_inset Quotes erd
9939 \end_inset
9940
9941  or 
9942 \begin_inset Quotes eld
9943 \end_inset
9944
9945
9946 \begin_inset Flex Code
9947 status collapsed
9948
9949 \begin_layout Plain Layout
9950 latex
9951 \end_layout
9952
9953 \end_inset
9954
9955
9956 \begin_inset Quotes erd
9957 \end_inset
9958
9959  when the corresponding 
9960 \begin_inset Flex Code
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964 OutputType
9965 \end_layout
9966
9967 \end_inset
9968
9969  parameter is encountered.
9970 \end_layout
9971
9972 \begin_layout Description
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 OutputType
9978 \end_layout
9979
9980 \end_inset
9981
9982  [
9983 \begin_inset Flex Code
9984 status collapsed
9985
9986 \begin_layout Plain Layout
9987
9988 \emph on
9989 lat
9990 \emph default
9991 ex
9992 \end_layout
9993
9994 \end_inset
9995
9996
9997 \begin_inset Flex Code
9998 status collapsed
9999
10000 \begin_layout Plain Layout
10001 docbook
10002 \end_layout
10003
10004 \end_inset
10005
10006
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 literate
10012 \end_layout
10013
10014 \end_inset
10015
10016 ] Specifies what sort of output documents using this class will produce.
10017 \end_layout
10018
10019 \begin_layout Description
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024 PackageOptions
10025 \end_layout
10026
10027 \end_inset
10028
10029  [
10030 \begin_inset Flex Code
10031 status collapsed
10032
10033 \begin_layout Plain Layout
10034 string
10035 \end_layout
10036
10037 \end_inset
10038
10039  
10040 \begin_inset Flex Code
10041 status collapsed
10042
10043 \begin_layout Plain Layout
10044 string
10045 \end_layout
10046
10047 \end_inset
10048
10049 ] Specifies options, given in the second string, for the package named by
10050  the first string.
10051  For example, 
10052 \begin_inset Quotes eld
10053 \end_inset
10054
10055
10056 \begin_inset Flex Code
10057 status collapsed
10058
10059 \begin_layout Plain Layout
10060 PackageOptions natbib square
10061 \end_layout
10062
10063 \end_inset
10064
10065
10066 \begin_inset Quotes erd
10067 \end_inset
10068
10069  will cause 
10070 \begin_inset Flex Code
10071 status collapsed
10072
10073 \begin_layout Plain Layout
10074 natbib
10075 \end_layout
10076
10077 \end_inset
10078
10079  to be loaded with the 
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 square
10085 \end_layout
10086
10087 \end_inset
10088
10089  option.
10090  (For \SpecialChar TeX
10091 perts, this causes \SpecialChar LyX
10092  to output: 
10093 \begin_inset Flex Code
10094 status collapsed
10095
10096 \begin_layout Plain Layout
10097
10098 \backslash
10099 PassOptionsToPackage{natbib}{square}
10100 \end_layout
10101
10102 \end_inset
10103
10104  prior to loading 
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 natbib
10110 \end_layout
10111
10112 \end_inset
10113
10114 .)
10115 \end_layout
10116
10117 \begin_layout Description
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 PageStyle
10123 \end_layout
10124
10125 \end_inset
10126
10127  [
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132
10133 \emph on
10134 plain
10135 \end_layout
10136
10137 \end_inset
10138
10139
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 empty
10145 \end_layout
10146
10147 \end_inset
10148
10149
10150 \begin_inset Flex Code
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 headings
10155 \end_layout
10156
10157 \end_inset
10158
10159 ] The default pagestyle.
10160  Can be changed in the 
10161 \begin_inset Flex Noun
10162 status collapsed
10163
10164 \begin_layout Plain Layout
10165 Document\SpecialChar menuseparator
10166 Settings
10167 \end_layout
10168
10169 \end_inset
10170
10171  dialog.
10172 \end_layout
10173
10174 \begin_layout Description
10175 \begin_inset Flex Code
10176 status collapsed
10177
10178 \begin_layout Plain Layout
10179 Preamble
10180 \end_layout
10181
10182 \end_inset
10183
10184  Sets the preamble for the \SpecialChar LaTeX
10185  document.
10186  Note that this will completely override any prior 
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 Preamble
10192 \end_layout
10193
10194 \end_inset
10195
10196  or 
10197 \begin_inset Flex Code
10198 status collapsed
10199
10200 \begin_layout Plain Layout
10201 AddToPreamble
10202 \end_layout
10203
10204 \end_inset
10205
10206  declarations.
10207  (Use 
10208 \begin_inset Flex Code
10209 status collapsed
10210
10211 \begin_layout Plain Layout
10212 AddToPreamble
10213 \end_layout
10214
10215 \end_inset
10216
10217  if you just want to add material to the preamble.) Must end with 
10218 \begin_inset Quotes eld
10219 \end_inset
10220
10221
10222 \begin_inset Flex Code
10223 status collapsed
10224
10225 \begin_layout Plain Layout
10226 EndPreamble
10227 \end_layout
10228
10229 \end_inset
10230
10231
10232 \begin_inset Quotes erd
10233 \end_inset
10234
10235 .
10236 \end_layout
10237
10238 \begin_layout Description
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 Provides
10244 \end_layout
10245
10246 \end_inset
10247
10248  [
10249 \begin_inset Flex Code
10250 status collapsed
10251
10252 \begin_layout Plain Layout
10253 string
10254 \end_layout
10255
10256 \end_inset
10257
10258 ] [
10259 \begin_inset Flex Code
10260 status collapsed
10261
10262 \begin_layout Plain Layout
10263
10264 \emph on
10265 0
10266 \end_layout
10267
10268 \end_inset
10269
10270 ,
10271 \begin_inset space \thinspace{}
10272 \end_inset
10273
10274
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 1
10280 \end_layout
10281
10282 \end_inset
10283
10284 ] Whether the class already provides the feature 
10285 \begin_inset Flex Code
10286 status collapsed
10287
10288 \begin_layout Plain Layout
10289 string
10290 \end_layout
10291
10292 \end_inset
10293
10294 .
10295  A feature is in general the name of a package (e.
10296 \begin_inset space \thinspace{}
10297 \end_inset
10298
10299 g.
10300 \begin_inset space \space{}
10301 \end_inset
10302
10303
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 amsmath
10309 \end_layout
10310
10311 \end_inset
10312
10313  or 
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 makeidx
10319 \end_layout
10320
10321 \end_inset
10322
10323 ) or a macro (e.
10324 \begin_inset space \thinspace{}
10325 \end_inset
10326
10327 g.
10328 \begin_inset space \space{}
10329 \end_inset
10330
10331
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 url
10337 \end_layout
10338
10339 \end_inset
10340
10341  or 
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 boldsymbol
10347 \end_layout
10348
10349 \end_inset
10350
10351 ).
10352  See 
10353 \begin_inset CommandInset ref
10354 LatexCommand ref
10355 reference "chap:List-of-functions"
10356
10357 \end_inset
10358
10359  for the list of features.
10360 \end_layout
10361
10362 \begin_layout Description
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 ProvidesModule
10368 \end_layout
10369
10370 \end_inset
10371
10372  [
10373 \begin_inset Flex Code
10374 status collapsed
10375
10376 \begin_layout Plain Layout
10377 string
10378 \end_layout
10379
10380 \end_inset
10381
10382 ] Indicates that this layout provides the functionality of the module mentioned,
10383  which should be specified by the filename without the 
10384 \begin_inset Flex Code
10385 status collapsed
10386
10387 \begin_layout Plain Layout
10388 .module
10389 \end_layout
10390
10391 \end_inset
10392
10393  extension.
10394  This will typically be used if the layout includes the module directly,
10395  rather than using the 
10396 \begin_inset Flex Code
10397 status collapsed
10398
10399 \begin_layout Plain Layout
10400 DefaultModule
10401 \end_layout
10402
10403 \end_inset
10404
10405  tag to indicate that it ought to be used.
10406  It could also be used in a module that provided an alternate implementation
10407  of the same functionality.
10408 \end_layout
10409
10410 \begin_layout Description
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 ProvideStyle
10416 \end_layout
10417
10418 \end_inset
10419
10420  [
10421 \begin_inset Flex Code
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425 <style>
10426 \end_layout
10427
10428 \end_inset
10429
10430 ] Creates a new paragraph style if it does not already exist.
10431  If the style does exist, this section is ignored.
10432  Must end with 
10433 \begin_inset Quotes eld
10434 \end_inset
10435
10436
10437 \begin_inset Flex Code
10438 status collapsed
10439
10440 \begin_layout Plain Layout
10441 End
10442 \end_layout
10443
10444 \end_inset
10445
10446
10447 \begin_inset Quotes erd
10448 \end_inset
10449
10450 .
10451 \end_layout
10452
10453 \begin_layout Description
10454 \begin_inset Flex Code
10455 status collapsed
10456
10457 \begin_layout Plain Layout
10458 Requires
10459 \end_layout
10460
10461 \end_inset
10462
10463  [
10464 \begin_inset Flex Code
10465 status collapsed
10466
10467 \begin_layout Plain Layout
10468 string
10469 \end_layout
10470
10471 \end_inset
10472
10473 ] Whether the class requires the feature 
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478 string
10479 \end_layout
10480
10481 \end_inset
10482
10483 .
10484  Multiple features must be separated by commas.
10485  Note that you can only request supported features.
10486  (See 
10487 \begin_inset CommandInset ref
10488 LatexCommand ref
10489 reference "chap:List-of-functions"
10490
10491 \end_inset
10492
10493  for the list of features.).
10494  If you require a package with specific options, you can additionally use
10495  
10496 \begin_inset Flex Code
10497 status collapsed
10498
10499 \begin_layout Plain Layout
10500 PackageOptions
10501 \end_layout
10502
10503 \end_inset
10504
10505 .
10506 \end_layout
10507
10508 \begin_layout Description
10509 \begin_inset Flex Code
10510 status collapsed
10511
10512 \begin_layout Plain Layout
10513 RightMargin
10514 \end_layout
10515
10516 \end_inset
10517
10518  [
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523 string
10524 \end_layout
10525
10526 \end_inset
10527
10528 ] A string that indicates the width of the right margin on the screen, for
10529  example, 
10530 \begin_inset Quotes eld
10531 \end_inset
10532
10533
10534 \begin_inset Flex Code
10535 status collapsed
10536
10537 \begin_layout Plain Layout
10538 MMMMM
10539 \end_layout
10540
10541 \end_inset
10542
10543
10544 \begin_inset Quotes erd
10545 \end_inset
10546
10547 .
10548 \end_layout
10549
10550 \begin_layout Description
10551 \begin_inset Flex Code
10552 status collapsed
10553
10554 \begin_layout Plain Layout
10555 SecNumDepth
10556 \end_layout
10557
10558 \end_inset
10559
10560  [
10561 \begin_inset Flex Code
10562 status collapsed
10563
10564 \begin_layout Plain Layout
10565 int=3
10566 \end_layout
10567
10568 \end_inset
10569
10570 ] Sets which divisions get numbered.
10571  Corresponds to the
10572 \begin_inset Newline newline
10573 \end_inset
10574
10575
10576 \begin_inset Flex Code
10577 status collapsed
10578
10579 \begin_layout Plain Layout
10580 secnumdepth
10581 \end_layout
10582
10583 \end_inset
10584
10585  counter in \SpecialChar LaTeX
10586 .
10587 \end_layout
10588
10589 \begin_layout Description
10590 \begin_inset Flex Code
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 Sides
10595 \end_layout
10596
10597 \end_inset
10598
10599  [
10600 \begin_inset Flex Code
10601 status collapsed
10602
10603 \begin_layout Plain Layout
10604
10605 \emph on
10606 1
10607 \end_layout
10608
10609 \end_inset
10610
10611 ,
10612 \begin_inset space \thinspace{}
10613 \end_inset
10614
10615
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 2
10621 \end_layout
10622
10623 \end_inset
10624
10625 ] Whether the class-default should be printing on one or both sides of the
10626  paper.
10627  Can be changed in the 
10628 \begin_inset Flex Noun
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 Document\SpecialChar menuseparator
10633 Settings
10634 \end_layout
10635
10636 \end_inset
10637
10638  dialog.
10639 \end_layout
10640
10641 \begin_layout Description
10642 \begin_inset Flex Code
10643 status collapsed
10644
10645 \begin_layout Plain Layout
10646 Style
10647 \end_layout
10648
10649 \end_inset
10650
10651  [
10652 \begin_inset Flex Code
10653 status collapsed
10654
10655 \begin_layout Plain Layout
10656 <name>
10657 \end_layout
10658
10659 \end_inset
10660
10661 ] This sequence defines a paragraph style.
10662  If the style does not yet exist, it is created; if it does exist, its parameter
10663 s are modified.
10664  Must end with 
10665 \begin_inset Quotes eld
10666 \end_inset
10667
10668
10669 \begin_inset Flex Code
10670 status collapsed
10671
10672 \begin_layout Plain Layout
10673 End
10674 \end_layout
10675
10676 \end_inset
10677
10678
10679 \begin_inset Quotes erd
10680 \end_inset
10681
10682 .
10683 \begin_inset Newline newline
10684 \end_inset
10685
10686 See 
10687 \begin_inset CommandInset ref
10688 LatexCommand ref
10689 reference "subsec:Paragraph-Styles"
10690
10691 \end_inset
10692
10693  for details on paragraph styles.
10694 \end_layout
10695
10696 \begin_layout Description
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 TitleLatexName
10702 \end_layout
10703
10704 \end_inset
10705
10706  [
10707 \begin_inset Flex Code
10708 status collapsed
10709
10710 \begin_layout Plain Layout
10711 string="maketitle"
10712 \end_layout
10713
10714 \end_inset
10715
10716 ] The name of the command or environment to be used with 
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 TitleLatexType
10722 \end_layout
10723
10724 \end_inset
10725
10726 .
10727 \end_layout
10728
10729 \begin_layout Description
10730 \begin_inset Flex Code
10731 status collapsed
10732
10733 \begin_layout Plain Layout
10734 TitleLatexType
10735 \end_layout
10736
10737 \end_inset
10738
10739  [
10740 \begin_inset Flex Code
10741 status collapsed
10742
10743 \begin_layout Plain Layout
10744
10745 \emph on
10746 CommandAfter
10747 \end_layout
10748
10749 \end_inset
10750
10751
10752 \begin_inset Flex Code
10753 status collapsed
10754
10755 \begin_layout Plain Layout
10756 Environment
10757 \end_layout
10758
10759 \end_inset
10760
10761 ] Indicates what kind of markup is used to define the title of a document.
10762  
10763 \begin_inset Flex Code
10764 status collapsed
10765
10766 \begin_layout Plain Layout
10767 CommandAfter
10768 \end_layout
10769
10770 \end_inset
10771
10772  means that the macro with name 
10773 \begin_inset Flex Code
10774 status collapsed
10775
10776 \begin_layout Plain Layout
10777 TitleLatexName
10778 \end_layout
10779
10780 \end_inset
10781
10782  will be inserted after the last layout which has 
10783 \begin_inset Quotes eld
10784 \end_inset
10785
10786
10787 \begin_inset Flex Code
10788 status collapsed
10789
10790 \begin_layout Plain Layout
10791 InTitle
10792 \begin_inset space ~
10793 \end_inset
10794
10795 1
10796 \end_layout
10797
10798 \end_inset
10799
10800
10801 \begin_inset Quotes erd
10802 \end_inset
10803
10804 .
10805  
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 Environment
10811 \end_layout
10812
10813 \end_inset
10814
10815  corresponds to the case where all layouts which have 
10816 \begin_inset Quotes eld
10817 \end_inset
10818
10819
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 InTitle
10825 \begin_inset space ~
10826 \end_inset
10827
10828 1
10829 \end_layout
10830
10831 \end_inset
10832
10833
10834 \begin_inset Quotes erd
10835 \end_inset
10836
10837  should be enclosed into the 
10838 \begin_inset Flex Code
10839 status collapsed
10840
10841 \begin_layout Plain Layout
10842 TitleLatexName
10843 \end_layout
10844
10845 \end_inset
10846
10847  environment.
10848 \end_layout
10849
10850 \begin_layout Description
10851 \begin_inset Flex Code
10852 status collapsed
10853
10854 \begin_layout Plain Layout
10855 TocDepth
10856 \end_layout
10857
10858 \end_inset
10859
10860  [
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865 int=3
10866 \end_layout
10867
10868 \end_inset
10869
10870 ] Sets which divisions are included in the table of contents.
10871  Corresponds to the 
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 tocdepth
10877 \end_layout
10878
10879 \end_inset
10880
10881  counter in \SpecialChar LaTeX
10882 .
10883 \end_layout
10884
10885 \begin_layout Subsection
10886 \begin_inset Flex Code
10887 status collapsed
10888
10889 \begin_layout Plain Layout
10890 ClassOptions
10891 \end_layout
10892
10893 \end_inset
10894
10895  section
10896 \begin_inset CommandInset label
10897 LatexCommand label
10898 name "subsec:ClassOptions"
10899
10900 \end_inset
10901
10902
10903 \end_layout
10904
10905 \begin_layout Standard
10906 The 
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 ClassOptions
10912 \end_layout
10913
10914 \end_inset
10915
10916  section can contain the following entries:
10917 \end_layout
10918
10919 \begin_layout Description
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924 FontSize
10925 \end_layout
10926
10927 \end_inset
10928
10929  [
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 string="10|11|12"
10935 \end_layout
10936
10937 \end_inset
10938
10939 ] The list of available font sizes for the document's main font, separated
10940  by 
10941 \begin_inset Quotes eld
10942 \end_inset
10943
10944
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 |
10950 \end_layout
10951
10952 \end_inset
10953
10954
10955 \begin_inset Quotes erd
10956 \end_inset
10957
10958 .
10959 \end_layout
10960
10961 \begin_layout Description
10962 \begin_inset Flex Code
10963 status collapsed
10964
10965 \begin_layout Plain Layout
10966 Header
10967 \end_layout
10968
10969 \end_inset
10970
10971  Used to set the DTD line with XML-based output classes.
10972  E.
10973 \begin_inset space \thinspace{}
10974 \end_inset
10975
10976 g.: PUBLIC 
10977 \begin_inset Quotes eld
10978 \end_inset
10979
10980 -//OASIS//DTD DocBook V4.2//EN
10981 \begin_inset Quotes erd
10982 \end_inset
10983
10984 .
10985 \end_layout
10986
10987 \begin_layout Description
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 PageStyle
10993 \end_layout
10994
10995 \end_inset
10996
10997  [
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002 string="empty|plain|headings|fancy"
11003 \end_layout
11004
11005 \end_inset
11006
11007 ] The list of available page sty\SpecialChar softhyphen
11008 les, separated by 
11009 \begin_inset Quotes eld
11010 \end_inset
11011
11012
11013 \begin_inset Flex Code
11014 status collapsed
11015
11016 \begin_layout Plain Layout
11017 |
11018 \end_layout
11019
11020 \end_inset
11021
11022
11023 \begin_inset Quotes erd
11024 \end_inset
11025
11026 .
11027 \end_layout
11028
11029 \begin_layout Description
11030 \begin_inset Flex Code
11031 status collapsed
11032
11033 \begin_layout Plain Layout
11034 Other
11035 \end_layout
11036
11037 \end_inset
11038
11039  [
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 string=""
11045 \end_layout
11046
11047 \end_inset
11048
11049 ] Some document class options, separated by a comma, that will be added
11050  to the optional part of the 
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055
11056 \backslash
11057 documentclass
11058 \end_layout
11059
11060 \end_inset
11061
11062  command.
11063 \end_layout
11064
11065 \begin_layout Standard
11066 The 
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071 ClassOptions
11072 \end_layout
11073
11074 \end_inset
11075
11076  section must end with 
11077 \begin_inset Quotes eld
11078 \end_inset
11079
11080
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 End
11086 \end_layout
11087
11088 \end_inset
11089
11090
11091 \begin_inset Quotes erd
11092 \end_inset
11093
11094 .
11095 \end_layout
11096
11097 \begin_layout Subsection
11098 Paragraph styles
11099 \begin_inset CommandInset label
11100 LatexCommand label
11101 name "subsec:Paragraph-Styles"
11102
11103 \end_inset
11104
11105
11106 \end_layout
11107
11108 \begin_layout Standard
11109 A paragraph style description looks like this:
11110 \begin_inset Foot
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 Note that this will either define a new style or modify an existing one.
11115 \end_layout
11116
11117 \end_inset
11118
11119
11120 \end_layout
11121
11122 \begin_layout LyX-Code
11123 Style 
11124 \family roman
11125 \emph on
11126 name
11127 \end_layout
11128
11129 \begin_layout LyX-Code
11130  ...
11131 \end_layout
11132
11133 \begin_layout LyX-Code
11134 End
11135 \end_layout
11136
11137 \begin_layout Standard
11138 where the following commands are allowed:
11139 \end_layout
11140
11141 \begin_layout Description
11142 \begin_inset Flex Code
11143 status collapsed
11144
11145 \begin_layout Plain Layout
11146 AddToToc
11147 \end_layout
11148
11149 \end_inset
11150
11151  [
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 string
11157 \end_layout
11158
11159 \end_inset
11160
11161 =""] This paragraph will appear in the table of contents of the given type.
11162  An empty string disables.
11163  See also the OutlinerName and the IsTocCaption commands.
11164  Default: disabled.
11165 \end_layout
11166
11167 \begin_layout Description
11168 \begin_inset Flex Code
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172 Align
11173 \end_layout
11174
11175 \end_inset
11176
11177  [
11178 \begin_inset Flex Code
11179 status collapsed
11180
11181 \begin_layout Plain Layout
11182
11183 \emph on
11184 block
11185 \emph default
11186 , left, right, center
11187 \end_layout
11188
11189 \end_inset
11190
11191 ] Paragraph alignment.
11192 \end_layout
11193
11194 \begin_layout Description
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 AlignPossible
11200 \end_layout
11201
11202 \end_inset
11203
11204  [
11205 \begin_inset Flex Code
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209
11210 \emph on
11211 block
11212 \emph default
11213 , left, right, center
11214 \end_layout
11215
11216 \end_inset
11217
11218 ] A comma separated list of permitted alignments.
11219  (Some \SpecialChar LaTeX
11220  styles prohibit certain alignments, since those wouldn't make sense.
11221  For example a right-aligned or centered enumeration isn't possible.)
11222 \end_layout
11223
11224 \begin_layout Description
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229 Argument
11230 \end_layout
11231
11232 \end_inset
11233
11234  [
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 int
11240 \end_layout
11241
11242 \end_inset
11243
11244 ] Defines argument number <int> of a command\SpecialChar breakableslash
11245 environment associated with
11246  the current style.
11247  This is useful for things like section headings, and only makes sense with
11248  \SpecialChar LaTeX
11249 .
11250  Every (optional or required) argument of a command or environment – except
11251  for the required argument that is associated with the content of the paragraph
11252  itself – has a separate definition, where the number specifies the order
11253  of the arguments.
11254  The definition must end with 
11255 \begin_inset Flex Code
11256 status collapsed
11257
11258 \begin_layout Plain Layout
11259 EndArgument
11260 \end_layout
11261
11262 \end_inset
11263
11264 .
11265  So a command with two optional arguments has:
11266 \end_layout
11267
11268 \begin_deeper
11269 \begin_layout Quote
11270
11271 \family typewriter
11272 Argument 1
11273 \end_layout
11274
11275 \begin_layout Quote
11276
11277 \family typewriter
11278 ...
11279 \end_layout
11280
11281 \begin_layout Quote
11282
11283 \family typewriter
11284 EndArgument
11285 \end_layout
11286
11287 \begin_layout Quote
11288
11289 \family typewriter
11290 Argument 2
11291 \end_layout
11292
11293 \begin_layout Quote
11294
11295 \family typewriter
11296 ...
11297 \end_layout
11298
11299 \begin_layout Quote
11300
11301 \family typewriter
11302 EndArgument
11303 \end_layout
11304
11305 \begin_layout Standard
11306 Inside the 
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 Argument
11312 \end_layout
11313
11314 \end_inset
11315
11316  definition, the following specifications are possible:
11317 \end_layout
11318
11319 \begin_layout Itemize
11320 \begin_inset Flex Code
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 LabelString
11325 \end_layout
11326
11327 \end_inset
11328
11329  
11330 \begin_inset Flex Code
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334 [string]
11335 \end_layout
11336
11337 \end_inset
11338
11339  The string that will appear both in the menu (to insert this argument)
11340  and on the argument inset button (unless you also specify a separate 
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 MenuString
11346 \end_layout
11347
11348 \end_inset
11349
11350 ).
11351  For the menu, you can define an accelerator by appending the respective
11352  character to the string, divided by 
11353 \begin_inset Quotes eld
11354 \end_inset
11355
11356 |
11357 \begin_inset Quotes erd
11358 \end_inset
11359
11360  (e.
11361 \begin_inset space \thinspace{}
11362 \end_inset
11363
11364 g.
11365 \begin_inset space \space{}
11366 \end_inset
11367
11368
11369 \begin_inset Quotes eld
11370 \end_inset
11371
11372
11373 \begin_inset Flex Code
11374 status collapsed
11375
11376 \begin_layout Plain Layout
11377 Short Title|S
11378 \end_layout
11379
11380 \end_inset
11381
11382
11383 \begin_inset Quotes erd
11384 \end_inset
11385
11386 ).
11387 \end_layout
11388
11389 \begin_layout Itemize
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 MenuString
11395 \end_layout
11396
11397 \end_inset
11398
11399  
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 [string]
11405 \end_layout
11406
11407 \end_inset
11408
11409  A separate string for the menu.
11410  You can define an accelerator by appending the respective character to
11411  the string, divided by 
11412 \begin_inset Quotes eld
11413 \end_inset
11414
11415 |
11416 \begin_inset Quotes erd
11417 \end_inset
11418
11419  (e.
11420 \begin_inset space \thinspace{}
11421 \end_inset
11422
11423 g.
11424 \begin_inset space \space{}
11425 \end_inset
11426
11427
11428 \begin_inset Quotes eld
11429 \end_inset
11430
11431
11432 \begin_inset Flex Code
11433 status collapsed
11434
11435 \begin_layout Plain Layout
11436 Short Title|S
11437 \end_layout
11438
11439 \end_inset
11440
11441
11442 \begin_inset Quotes erd
11443 \end_inset
11444
11445 ).
11446  This specification is optional.
11447  If it is not given the 
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 LabelString
11453 \end_layout
11454
11455 \end_inset
11456
11457  will be used instead for the menu.
11458 \end_layout
11459
11460 \begin_layout Itemize
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 Tooltip
11466 \end_layout
11467
11468 \end_inset
11469
11470  
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 [string]
11476 \end_layout
11477
11478 \end_inset
11479
11480  A longer explanatory text that appears in the tooltip when hovering over
11481  the argument inset.
11482 \end_layout
11483
11484 \begin_layout Itemize
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 Mandatory
11490 \end_layout
11491
11492 \end_inset
11493
11494  [
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499
11500 \emph on
11501 0
11502 \end_layout
11503
11504 \end_inset
11505
11506 ,
11507 \begin_inset space \thinspace{}
11508 \end_inset
11509
11510
11511 \begin_inset Flex Code
11512 status collapsed
11513
11514 \begin_layout Plain Layout
11515 1
11516 \end_layout
11517
11518 \end_inset
11519
11520 ] Declare if this is a mandatory (1) or an optional (0) argument.
11521  Mandatory arguments will be output empty if not given, while optional arguments
11522  will not be output at all.
11523  By default, mandatory arguments are delimited by 
11524 \begin_inset Flex Code
11525 status collapsed
11526
11527 \begin_layout Plain Layout
11528 {...}
11529 \end_layout
11530
11531 \end_inset
11532
11533 , while optional arguments are delimited by 
11534 \begin_inset Flex Code
11535 status collapsed
11536
11537 \begin_layout Plain Layout
11538 [...]
11539 \end_layout
11540
11541 \end_inset
11542
11543
11544 \end_layout
11545
11546 \begin_layout Itemize
11547 \begin_inset Flex Code
11548 status collapsed
11549
11550 \begin_layout Plain Layout
11551 Requires
11552 \end_layout
11553
11554 \end_inset
11555
11556  
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561 [int=0]
11562 \end_layout
11563
11564 \end_inset
11565
11566  defines another argument (by its number) which this argument requires to
11567  be output if it is itself output.
11568  E.
11569 \begin_inset space \thinspace{}
11570 \end_inset
11571
11572 g., in \SpecialChar LaTeX
11573  commands, optional arguments often require previous optional arguments
11574  to be output (at least empty), as in 
11575 \begin_inset Flex Code
11576 status collapsed
11577
11578 \begin_layout Plain Layout
11579
11580 \backslash
11581 command[][argument]{text}
11582 \end_layout
11583
11584 \end_inset
11585
11586 .
11587  This can be achieved by the statement 
11588 \begin_inset Flex Code
11589 status collapsed
11590
11591 \begin_layout Plain Layout
11592 Requires 1
11593 \end_layout
11594
11595 \end_inset
11596
11597  within 
11598 \begin_inset Flex Code
11599 status collapsed
11600
11601 \begin_layout Plain Layout
11602 Argument 2
11603 \end_layout
11604
11605 \end_inset
11606
11607 .
11608 \end_layout
11609
11610 \begin_layout Itemize
11611 \begin_inset Flex Code
11612 status collapsed
11613
11614 \begin_layout Plain Layout
11615 LeftDelim
11616 \end_layout
11617
11618 \end_inset
11619
11620  
11621 \begin_inset Flex Code
11622 status collapsed
11623
11624 \begin_layout Plain Layout
11625 [string]
11626 \end_layout
11627
11628 \end_inset
11629
11630  defines a custom left delimiter (instead of 
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635 {
11636 \end_layout
11637
11638 \end_inset
11639
11640  or 
11641 \begin_inset Flex Code
11642 status collapsed
11643
11644 \begin_layout Plain Layout
11645 [
11646 \end_layout
11647
11648 \end_inset
11649
11650 ).
11651  A line break in the output can be indicated by 
11652 \begin_inset Flex Code
11653 status collapsed
11654
11655 \begin_layout Plain Layout
11656 <br/>
11657 \end_layout
11658
11659 \end_inset
11660
11661 .
11662 \end_layout
11663
11664 \begin_layout Itemize
11665 \begin_inset Flex Code
11666 status collapsed
11667
11668 \begin_layout Plain Layout
11669 RightDelim
11670 \end_layout
11671
11672 \end_inset
11673
11674  
11675 \begin_inset Flex Code
11676 status collapsed
11677
11678 \begin_layout Plain Layout
11679 [string]
11680 \end_layout
11681
11682 \end_inset
11683
11684  defines a custom right delimiter (instead of 
11685 \begin_inset Flex Code
11686 status collapsed
11687
11688 \begin_layout Plain Layout
11689 }
11690 \end_layout
11691
11692 \end_inset
11693
11694  or 
11695 \begin_inset Flex Code
11696 status collapsed
11697
11698 \begin_layout Plain Layout
11699 ]
11700 \end_layout
11701
11702 \end_inset
11703
11704 ).
11705  A line break in the output can be indicated by 
11706 \begin_inset Flex Code
11707 status collapsed
11708
11709 \begin_layout Plain Layout
11710 <br/>
11711 \end_layout
11712
11713 \end_inset
11714
11715 .
11716 \end_layout
11717
11718 \begin_layout Itemize
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723 DefaultArg
11724 \end_layout
11725
11726 \end_inset
11727
11728  
11729 \begin_inset Flex Code
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 [string]
11734 \end_layout
11735
11736 \end_inset
11737
11738  defines an argument that is inserted if and only if no user-specified arguments
11739  were given, i.
11740 \begin_inset space \thinspace{}
11741 \end_inset
11742
11743 e.
11744 \begin_inset space \space{}
11745 \end_inset
11746
11747 if no argument inset has been inserted (note that also an empty argument
11748  inset omits the DefaultArg).
11749  Multiple arguments need to be separated by comma.
11750 \end_layout
11751
11752 \begin_layout Itemize
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757 PresetArg
11758 \end_layout
11759
11760 \end_inset
11761
11762  
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 [string]
11768 \end_layout
11769
11770 \end_inset
11771
11772  defines an argument that is inserted in any case (alone or in addition
11773  to user-specified arguments).
11774  Multiple arguments need to be separated by comma.
11775 \end_layout
11776
11777 \begin_layout Itemize
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782 Font
11783 \end_layout
11784
11785 \end_inset
11786
11787  The font used for the argument content, see 
11788 \begin_inset CommandInset ref
11789 LatexCommand ref
11790 reference "subsec:Font-description"
11791
11792 \end_inset
11793
11794 .
11795 \end_layout
11796
11797 \begin_layout Itemize
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 LabelFont
11803 \end_layout
11804
11805 \end_inset
11806
11807  The font used for the label; see 
11808 \begin_inset CommandInset ref
11809 LatexCommand ref
11810 reference "subsec:Font-description"
11811
11812 \end_inset
11813
11814 .
11815 \end_layout
11816
11817 \begin_layout Itemize
11818 \begin_inset Flex Code
11819 status collapsed
11820
11821 \begin_layout Plain Layout
11822 Decoration
11823 \end_layout
11824
11825 \end_inset
11826
11827  [
11828 \begin_inset Flex Code
11829 status collapsed
11830
11831 \begin_layout Plain Layout
11832
11833 \emph on
11834 Classic
11835 \emph default
11836 , Minimalistic, Conglomerate
11837 \end_layout
11838
11839 \end_inset
11840
11841 ] describes the rendering style used for the inset's frame and buttons.
11842 \end_layout
11843
11844 \begin_layout Itemize
11845 \begin_inset Flex Code
11846 status collapsed
11847
11848 \begin_layout Plain Layout
11849 AutoInsert
11850 \end_layout
11851
11852 \end_inset
11853
11854  
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 [int=0]
11860 \end_layout
11861
11862 \end_inset
11863
11864  If this is set to 
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 1
11870 \end_layout
11871
11872 \end_inset
11873
11874 , this argument is automatically inserted when the respective style is selected.
11875  Currently, only one argument per style\SpecialChar breakableslash
11876 layout can be automatically inserted.
11877 \end_layout
11878
11879 \begin_layout Itemize
11880 \begin_inset Flex Code
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884 InsertCotext
11885 \end_layout
11886
11887 \end_inset
11888
11889  
11890 \begin_inset Flex Code
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 [int=0]
11895 \end_layout
11896
11897 \end_inset
11898
11899  If this is set to 
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 1
11905 \end_layout
11906
11907 \end_inset
11908
11909 , this argument will be inserted with a copy of the co-text (either selected
11910  text or the whole paragraph) as content.
11911 \end_layout
11912
11913 \begin_layout Itemize
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 PassThru
11919 \end_layout
11920
11921 \end_inset
11922
11923  [
11924 \begin_inset Flex Code
11925 status collapsed
11926
11927 \begin_layout Plain Layout
11928
11929 \emph on
11930 inherited
11931 \emph default
11932 , true, false
11933 \end_layout
11934
11935 \end_inset
11936
11937 ] Whether the contents of this argument should be output in raw form, meaning
11938  without special translations that \SpecialChar LaTeX
11939  would require.
11940  By default, the 
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 PassThru
11946 \end_layout
11947
11948 \end_inset
11949
11950  status is inherited by the inset or paragraph layout the argument belongs
11951  to, true and false change the status for the given argument only.
11952 \end_layout
11953
11954 \begin_layout Itemize
11955 \begin_inset Flex Code
11956 status collapsed
11957
11958 \begin_layout Plain Layout
11959 PassThruChars
11960 \end_layout
11961
11962 \end_inset
11963
11964  [
11965 \begin_inset Flex Code
11966 status collapsed
11967
11968 \begin_layout Plain Layout
11969 string of characters
11970 \end_layout
11971
11972 \end_inset
11973
11974 ]
11975 \family typewriter
11976  
11977 \family default
11978 Defines individual characters that should be output in raw form, meaning
11979  without special translations that \SpecialChar LaTeX
11980  would require.
11981  Note that, contrary to PassThru, this needs to be explicitly defined for
11982  arguments.
11983  That is, arguments do not inherit PassThruChars from their parent inset
11984  or layout.
11985 \end_layout
11986
11987 \begin_layout Itemize
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992 IsTocCaption
11993 \end_layout
11994
11995 \end_inset
11996
11997  [
11998 \begin_inset Flex Code
11999 status collapsed
12000
12001 \begin_layout Plain Layout
12002
12003 \emph on
12004 0
12005 \end_layout
12006
12007 \end_inset
12008
12009 ,
12010 \begin_inset space \thinspace{}
12011 \end_inset
12012
12013
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 1
12019 \end_layout
12020
12021 \end_inset
12022
12023 ] If this is set to 1, the argument will output its content in the corresponding
12024  item in the table of contents.
12025  See AddToToc.
12026 \end_layout
12027
12028 \begin_layout Standard
12029 By default, the text entered in the \SpecialChar LyX
12030  workarea in the respective layout is
12031  the last (mandatory) argument of a command if the 
12032 \begin_inset Flex Code
12033 status collapsed
12034
12035 \begin_layout Plain Layout
12036 LatexType
12037 \end_layout
12038
12039 \end_inset
12040
12041  is 
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 Command
12047 \end_layout
12048
12049 \end_inset
12050
12051 .
12052  However, arguments with the prefix 
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 post:
12058 \end_layout
12059
12060 \end_inset
12061
12062  are output after this workarea argument.
12063  Note that post-argument numbering restarts at 1, so the first argument
12064  following the workarea argument is 
12065 \begin_inset Flex Code
12066 status collapsed
12067
12068 \begin_layout Plain Layout
12069 post:1
12070 \end_layout
12071
12072 \end_inset
12073
12074 .
12075  Post-arguments are ignored in any other 
12076 \begin_inset Flex Code
12077 status collapsed
12078
12079 \begin_layout Plain Layout
12080 LatexType
12081 \end_layout
12082
12083 \end_inset
12084
12085  than 
12086 \begin_inset Flex Code
12087 status collapsed
12088
12089 \begin_layout Plain Layout
12090 Command
12091 \end_layout
12092
12093 \end_inset
12094
12095 .
12096 \end_layout
12097
12098 \begin_layout Standard
12099 Arguments for list 
12100 \begin_inset Flex Code
12101 status collapsed
12102
12103 \begin_layout Plain Layout
12104
12105 \backslash
12106 item
12107 \end_layout
12108
12109 \end_inset
12110
12111 s (as in 
12112 \begin_inset Flex Code
12113 status collapsed
12114
12115 \begin_layout Plain Layout
12116
12117 \backslash
12118 item[foo]
12119 \end_layout
12120
12121 \end_inset
12122
12123 ) have the prefix 
12124 \begin_inset Flex Code
12125 status collapsed
12126
12127 \begin_layout Plain Layout
12128 item:
12129 \end_layout
12130
12131 \end_inset
12132
12133  followed by the number (e.
12134 \begin_inset space \thinspace{}
12135 \end_inset
12136
12137 g.
12138 \begin_inset space \space{}
12139 \end_inset
12140
12141
12142 \begin_inset Flex Code
12143 status collapsed
12144
12145 \begin_layout Plain Layout
12146 Argument item:1
12147 \end_layout
12148
12149 \end_inset
12150
12151 ).
12152 \end_layout
12153
12154 \end_deeper
12155 \begin_layout Description
12156 \begin_inset Flex Code
12157 status collapsed
12158
12159 \begin_layout Plain Layout
12160 BabelPreamble
12161 \end_layout
12162
12163 \end_inset
12164
12165  Note that this will completely override any prior 
12166 \begin_inset Flex Code
12167 status collapsed
12168
12169 \begin_layout Plain Layout
12170 BabelPreamble
12171 \end_layout
12172
12173 \end_inset
12174
12175  declaration for this style.
12176  Must end with 
12177 \begin_inset Quotes eld
12178 \end_inset
12179
12180
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 EndBabelPreamble
12186 \end_layout
12187
12188 \end_inset
12189
12190
12191 \begin_inset Quotes erd
12192 \end_inset
12193
12194 .
12195  See 
12196 \begin_inset CommandInset ref
12197 LatexCommand ref
12198 reference "subsec:I18n"
12199
12200 \end_inset
12201
12202  for details on its use.
12203 \end_layout
12204
12205 \begin_layout Description
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 BottomSep
12211 \end_layout
12212
12213 \end_inset
12214
12215  [
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 float=0
12221 \end_layout
12222
12223 \end_inset
12224
12225 ]
12226 \begin_inset Foot
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 Note that a `float' here is a real number, such as: 1.5.
12231 \end_layout
12232
12233 \end_inset
12234
12235  The vertical space with which the last of a chain of paragraphs with this
12236  style is separated from the following paragraph.
12237  If the next paragraph has another style, the separations are not simply
12238  added, but the maximum is taken.
12239 \end_layout
12240
12241 \begin_layout Description
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 Category
12247 \end_layout
12248
12249 \end_inset
12250
12251  [
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 string
12257 \end_layout
12258
12259 \end_inset
12260
12261 ] The category for this style.
12262  This is used to group related styles in the style combobox on the toolbar.
12263  Any string can be used, but you may want to use existing categories with
12264  your own styles.
12265  
12266 \end_layout
12267
12268 \begin_layout Description
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 CommandDepth
12274 \end_layout
12275
12276 \end_inset
12277
12278  Depth of XML command.
12279  Used only with XML-type formats.
12280 \end_layout
12281
12282 \begin_layout Description
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 CopyStyle
12288 \end_layout
12289
12290 \end_inset
12291
12292  [
12293 \begin_inset Flex Code
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297 string
12298 \end_layout
12299
12300 \end_inset
12301
12302 ] Copies all the features of an existing style into the current one.
12303  
12304 \end_layout
12305
12306 \begin_layout Description
12307 \begin_inset Flex Code
12308 status collapsed
12309
12310 \begin_layout Plain Layout
12311 DependsOn
12312 \end_layout
12313
12314 \end_inset
12315
12316  [
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 <name>
12322 \end_layout
12323
12324 \end_inset
12325
12326 ] The name of a style whose preamble should be output 
12327 \emph on
12328 before
12329 \emph default
12330  this one.
12331  This allows to ensure some ordering of the preamble snippets when macros
12332  definitions depend on one another.
12333 \begin_inset Foot
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 Note that, besides that functionality, there is no way to ensure any ordering
12338  of preambles.
12339  The ordering that you see in a given version of \SpecialChar LyX
12340  may change without warning
12341  in later versions.
12342 \end_layout
12343
12344 \end_inset
12345
12346
12347 \end_layout
12348
12349 \begin_layout Description
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 EndLabeltype
12355 \end_layout
12356
12357 \end_inset
12358
12359  [
12360 \begin_inset Flex Code
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364
12365 \emph on
12366 No_Label
12367 \emph default
12368 , Box, Filled_Box, Static
12369 \end_layout
12370
12371 \end_inset
12372
12373 ] The type of label that stands at the end of the paragraph (or sequence
12374  of paragraphs if 
12375 \begin_inset Flex Code
12376 status collapsed
12377
12378 \begin_layout Plain Layout
12379 LatexType
12380 \end_layout
12381
12382 \end_inset
12383
12384  is
12385 \begin_inset Newline newline
12386 \end_inset
12387
12388
12389 \begin_inset Flex Code
12390 status collapsed
12391
12392 \begin_layout Plain Layout
12393 Environment
12394 \end_layout
12395
12396 \end_inset
12397
12398
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403 Item_Environment
12404 \end_layout
12405
12406 \end_inset
12407
12408  or 
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 List_Environment
12414 \end_layout
12415
12416 \end_inset
12417
12418 ).
12419  
12420 \begin_inset Flex Code
12421 status collapsed
12422
12423 \begin_layout Plain Layout
12424 No_Label
12425 \end_layout
12426
12427 \end_inset
12428
12429  means 
12430 \begin_inset Quotes eld
12431 \end_inset
12432
12433 nothing
12434 \begin_inset Quotes erd
12435 \end_inset
12436
12437
12438 \begin_inset Flex Code
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 Box
12443 \end_layout
12444
12445 \end_inset
12446
12447  (resp.
12448 \begin_inset space \space{}
12449 \end_inset
12450
12451
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 Filled_Box
12457 \end_layout
12458
12459 \end_inset
12460
12461 ) is a white (resp.
12462 \begin_inset space ~
12463 \end_inset
12464
12465 black) square suitable for end of proof markers, 
12466 \begin_inset Flex Code
12467 status collapsed
12468
12469 \begin_layout Plain Layout
12470 Static
12471 \end_layout
12472
12473 \end_inset
12474
12475  is an explicit text string.
12476 \end_layout
12477
12478 \begin_layout Description
12479 \begin_inset Flex Code
12480 status collapsed
12481
12482 \begin_layout Plain Layout
12483 EndLabelString
12484 \end_layout
12485
12486 \end_inset
12487
12488  [
12489 \begin_inset Flex Code
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 string=""
12494 \end_layout
12495
12496 \end_inset
12497
12498 ] The string used for a label with a 
12499 \begin_inset Flex Code
12500 status collapsed
12501
12502 \begin_layout Plain Layout
12503 Static
12504 \end_layout
12505
12506 \end_inset
12507
12508
12509 \begin_inset Newline newline
12510 \end_inset
12511
12512
12513 \begin_inset Flex Code
12514 status collapsed
12515
12516 \begin_layout Plain Layout
12517 EndLabelType
12518 \end_layout
12519
12520 \end_inset
12521
12522 .
12523  
12524 \end_layout
12525
12526 \begin_layout Description
12527 \begin_inset Flex Code
12528 status collapsed
12529
12530 \begin_layout Plain Layout
12531 Font
12532 \end_layout
12533
12534 \end_inset
12535
12536  The font used for both the text body 
12537 \emph on
12538 and
12539 \emph default
12540  the label.
12541  See 
12542 \begin_inset CommandInset ref
12543 LatexCommand ref
12544 reference "subsec:Font-description"
12545
12546 \end_inset
12547
12548 .
12549  Note that defining this font automatically defines the 
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 LabelFont
12555 \end_layout
12556
12557 \end_inset
12558
12559  to the same value.
12560  So you should define this one first if you also want to define 
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 LabelFont
12566 \end_layout
12567
12568 \end_inset
12569
12570 .
12571 \end_layout
12572
12573 \begin_layout Description
12574 \begin_inset Flex Code
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578 ForceLocal
12579 \end_layout
12580
12581 \end_inset
12582
12583  [
12584 \begin_inset Flex Code
12585 status collapsed
12586
12587 \begin_layout Plain Layout
12588 int=0
12589 \end_layout
12590
12591 \end_inset
12592
12593 ] Used for backporting new styles to stable \SpecialChar LyX
12594  versions.
12595  The first stable version that supports this tag is \SpecialChar LyX
12596  2.1.0.
12597  The argument is a number which may either be 0, -1 or any value greater
12598  than zero.
12599  If the 
12600 \begin_inset Flex Code
12601 status collapsed
12602
12603 \begin_layout Plain Layout
12604 ForceLocal
12605 \end_layout
12606
12607 \end_inset
12608
12609  flag of a style is greater than zero, it will always be written to the
12610  document header.
12611  If a .lyx file is read, the style definitions from the document header are
12612  added to the document class.
12613  Therefore even older \SpecialChar LyX
12614  versions can handle the style.
12615  The argument of 
12616 \begin_inset Flex Code
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 ForceLocal
12621 \end_layout
12622
12623 \end_inset
12624
12625  is a version number: if the style is read, and the version number is less
12626  than the version number of the already existing style in the document class,
12627  the new style is ignored.
12628  If the version number is greater, the new style replaces the existing style.
12629  A value of -1 means an infinite version number, i.
12630 \begin_inset space \thinspace{}
12631 \end_inset
12632
12633 e.
12634 \begin_inset space \space{}
12635 \end_inset
12636
12637 the style is always used.
12638 \end_layout
12639
12640 \begin_layout Description
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 FreeSpacing
12646 \end_layout
12647
12648 \end_inset
12649
12650  [
12651 \begin_inset Flex Code
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655
12656 \emph on
12657 0
12658 \end_layout
12659
12660 \end_inset
12661
12662 ,
12663 \begin_inset space \thinspace{}
12664 \end_inset
12665
12666
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 1
12672 \end_layout
12673
12674 \end_inset
12675
12676 ] Usually \SpecialChar LyX
12677  does not allow you to insert more than one space between words,
12678  since a space is considered as the separation between two words, not a
12679  character or symbol of its own.
12680  This is a very fine thing but sometimes annoying, for example, when typing
12681  program code or plain \SpecialChar LaTeX
12682  code.
12683  For this reason, 
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688 FreeSpacing
12689 \end_layout
12690
12691 \end_inset
12692
12693  can be enabled.
12694  Note that \SpecialChar LyX
12695  will create protected blanks for the additional blanks when
12696  in another mode than \SpecialChar LaTeX
12697 -mode.
12698 \end_layout
12699
12700 \begin_layout Description
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 HTML*
12706 \end_layout
12707
12708 \end_inset
12709
12710  These tags are used with XHTML output.
12711  See 
12712 \begin_inset CommandInset ref
12713 LatexCommand ref
12714 reference "subsec:Paragraph-Style-XHTML"
12715
12716 \end_inset
12717
12718 .
12719 \end_layout
12720
12721 \begin_layout Description
12722 \begin_inset Flex Code
12723 status collapsed
12724
12725 \begin_layout Plain Layout
12726 InnerTag
12727 \end_layout
12728
12729 \end_inset
12730
12731  [FIXME] (Used only with XML-type formats.)
12732 \end_layout
12733
12734 \begin_layout Description
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 InPreamble
12740 \end_layout
12741
12742 \end_inset
12743
12744  [
12745 \begin_inset Flex Code
12746 status collapsed
12747
12748 \begin_layout Plain Layout
12749
12750 \emph on
12751 0
12752 \end_layout
12753
12754 \end_inset
12755
12756 ,
12757 \begin_inset space \thinspace{}
12758 \end_inset
12759
12760
12761 \begin_inset Flex Code
12762 status collapsed
12763
12764 \begin_layout Plain Layout
12765 1
12766 \end_layout
12767
12768 \end_inset
12769
12770 ] If 
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 1
12776 \end_layout
12777
12778 \end_inset
12779
12780 , marks the style as to be included in the document preamble and not in
12781  the document body.
12782  This is useful for document classes that want such information as the title
12783  and author to appear in the preamble.
12784  Note that this works only for styles for which the 
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 LatexType
12790 \end_layout
12791
12792 \end_inset
12793
12794  is 
12795 \begin_inset Flex Code
12796 status collapsed
12797
12798 \begin_layout Plain Layout
12799 Command
12800 \end_layout
12801
12802 \end_inset
12803
12804  or 
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809 Paragraph
12810 \end_layout
12811
12812 \end_inset
12813
12814 .
12815 \end_layout
12816
12817 \begin_layout Description
12818 \begin_inset Flex Code
12819 status collapsed
12820
12821 \begin_layout Plain Layout
12822 InTitle
12823 \end_layout
12824
12825 \end_inset
12826
12827  [
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832
12833 \emph on
12834 0
12835 \end_layout
12836
12837 \end_inset
12838
12839 ,
12840 \begin_inset space \thinspace{}
12841 \end_inset
12842
12843
12844 \begin_inset Flex Code
12845 status collapsed
12846
12847 \begin_layout Plain Layout
12848 1
12849 \end_layout
12850
12851 \end_inset
12852
12853 ] If 
12854 \begin_inset Flex Code
12855 status collapsed
12856
12857 \begin_layout Plain Layout
12858 1
12859 \end_layout
12860
12861 \end_inset
12862
12863 , marks the style as being part of a title block (see also the 
12864 \begin_inset Flex Code
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868 TitleLatexType
12869 \end_layout
12870
12871 \end_inset
12872
12873  and 
12874 \begin_inset Flex Code
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878 TitleLatexName
12879 \end_layout
12880
12881 \end_inset
12882
12883  global entries).
12884 \end_layout
12885
12886 \begin_layout Description
12887 \begin_inset Flex Code
12888 status collapsed
12889
12890 \begin_layout Plain Layout
12891 IsTocCaption
12892 \end_layout
12893
12894 \end_inset
12895
12896  [
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901
12902 \emph on
12903 0
12904 \end_layout
12905
12906 \end_inset
12907
12908 ,
12909 \begin_inset space \thinspace{}
12910 \end_inset
12911
12912
12913 \begin_inset Flex Code
12914 status collapsed
12915
12916 \begin_layout Plain Layout
12917 1
12918 \end_layout
12919
12920 \end_inset
12921
12922 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
12923  of its contents in its item in the table of contents.
12924  Otherwise, only the label, if it exists, appears.
12925 \end_layout
12926
12927 \begin_layout Description
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 ItemCommand
12933 \end_layout
12934
12935 \end_inset
12936
12937  [
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942 string="item"
12943 \end_layout
12944
12945 \end_inset
12946
12947 ] The \SpecialChar LaTeX
12948  command sequence declaring an item in a list.
12949  The command is to be defined without the preceding backslash (the default
12950  is 
12951 \begin_inset Quotes eld
12952 \end_inset
12953
12954 item
12955 \begin_inset Quotes erd
12956 \end_inset
12957
12958 , resulting in 
12959 \begin_inset Flex Code
12960 status collapsed
12961
12962 \begin_layout Plain Layout
12963
12964 \backslash
12965 item
12966 \end_layout
12967
12968 \end_inset
12969
12970  in the \SpecialChar LaTeX
12971  output).
12972 \end_layout
12973
12974 \begin_layout Description
12975 \begin_inset Flex Code
12976 status collapsed
12977
12978 \begin_layout Plain Layout
12979 ItemSep
12980 \end_layout
12981
12982 \end_inset
12983
12984  [
12985 \begin_inset Flex Code
12986 status collapsed
12987
12988 \begin_layout Plain Layout
12989 float=0
12990 \end_layout
12991
12992 \end_inset
12993
12994 ] This provides extra space between paragraphs that have the same style.
12995  If you put other styles into an environment, each is separated with the
12996  environment's 
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001 ParSep
13002 \end_layout
13003
13004 \end_inset
13005
13006 .
13007  But the whole items of the environment are additionally separated with
13008  this 
13009 \begin_inset Flex Code
13010 status collapsed
13011
13012 \begin_layout Plain Layout
13013 ItemSep
13014 \end_layout
13015
13016 \end_inset
13017
13018 .
13019  Note that this is a
13020 \emph on
13021  multiplier.
13022 \end_layout
13023
13024 \begin_layout Description
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 ItemTag
13030 \end_layout
13031
13032 \end_inset
13033
13034  [FIXME] (Used only with XML-type formats.)
13035 \end_layout
13036
13037 \begin_layout Description
13038 \begin_inset Flex Code
13039 status collapsed
13040
13041 \begin_layout Plain Layout
13042 KeepEmpty
13043 \end_layout
13044
13045 \end_inset
13046
13047  [
13048 \begin_inset Flex Code
13049 status collapsed
13050
13051 \begin_layout Plain Layout
13052
13053 \emph on
13054 0
13055 \end_layout
13056
13057 \end_inset
13058
13059 ,
13060 \begin_inset space \thinspace{}
13061 \end_inset
13062
13063
13064 \begin_inset Flex Code
13065 status collapsed
13066
13067 \begin_layout Plain Layout
13068 1
13069 \end_layout
13070
13071 \end_inset
13072
13073 ] Usually \SpecialChar LyX
13074  does not allow you to leave a paragraph empty, since it would
13075  lead to empty \SpecialChar LaTeX
13076  output.
13077  There are some cases where this could be desirable however: in a letter
13078  template, the required fields can be provided as empty fields, so that
13079  people do not forget them; in some special classes, a style can be used
13080  as some kind of break, which does not contain actual text.
13081 \end_layout
13082
13083 \begin_layout Description
13084 \begin_inset Flex Code
13085 status collapsed
13086
13087 \begin_layout Plain Layout
13088 LabelBottomsep
13089 \end_layout
13090
13091 \end_inset
13092
13093  [
13094 \begin_inset Flex Code
13095 status collapsed
13096
13097 \begin_layout Plain Layout
13098 float=0
13099 \end_layout
13100
13101 \end_inset
13102
13103 ] The vertical space between the label and the text body.
13104  Only used for labels that are above the text body (
13105 \begin_inset Flex Code
13106 status collapsed
13107
13108 \begin_layout Plain Layout
13109 Top_Environment
13110 \end_layout
13111
13112 \end_inset
13113
13114  and
13115 \begin_inset Newline newline
13116 \end_inset
13117
13118
13119 \begin_inset Flex Code
13120 status collapsed
13121
13122 \begin_layout Plain Layout
13123 Centered_Top_Environment
13124 \end_layout
13125
13126 \end_inset
13127
13128 ).
13129 \end_layout
13130
13131 \begin_layout Description
13132 \begin_inset Flex Code
13133 status collapsed
13134
13135 \begin_layout Plain Layout
13136 LabelCounter
13137 \end_layout
13138
13139 \end_inset
13140
13141  [
13142 \begin_inset Flex Code
13143 status collapsed
13144
13145 \begin_layout Plain Layout
13146 string=""
13147 \end_layout
13148
13149 \end_inset
13150
13151 ] The name of the counter for automatic numbering.
13152  In order to have the counter appear with your label, you will need to reference
13153  it in the 
13154 \begin_inset Flex Code
13155 status collapsed
13156
13157 \begin_layout Plain Layout
13158
13159 \family typewriter
13160 LabelString
13161 \end_layout
13162
13163 \end_inset
13164
13165 .
13166  This will work with 
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 LabelType
13172 \end_layout
13173
13174 \end_inset
13175
13176 s, 
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 Static
13182 \end_layout
13183
13184 \end_inset
13185
13186
13187 \begin_inset Flex Code
13188 status collapsed
13189
13190 \begin_layout Plain Layout
13191 Above
13192 \end_layout
13193
13194 \end_inset
13195
13196  and 
13197 \begin_inset Flex Code
13198 status collapsed
13199
13200 \begin_layout Plain Layout
13201 Centered
13202 \end_layout
13203
13204 \end_inset
13205
13206 , at least.
13207 \begin_inset Newline newline
13208 \end_inset
13209
13210 This 
13211 \emph on
13212 may
13213 \emph default
13214  also be given if 
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 LabelType
13220 \end_layout
13221
13222 \end_inset
13223
13224  is 
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 Enumerate
13230 \end_layout
13231
13232 \end_inset
13233
13234 , though this case is a bit complicated.
13235  Suppose you declare 
13236 \begin_inset Quotes eld
13237 \end_inset
13238
13239
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244 LabelCounter myenum
13245 \end_layout
13246
13247 \end_inset
13248
13249
13250 \begin_inset Quotes erd
13251 \end_inset
13252
13253 .
13254  Then the actual counters used are 
13255 \begin_inset Flex Code
13256 status collapsed
13257
13258 \begin_layout Plain Layout
13259 myenumi
13260 \end_layout
13261
13262 \end_inset
13263
13264
13265 \begin_inset Flex Code
13266 status collapsed
13267
13268 \begin_layout Plain Layout
13269 myenumii
13270 \end_layout
13271
13272 \end_inset
13273
13274
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 myenumiii
13280 \end_layout
13281
13282 \end_inset
13283
13284  and 
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289 myenumiv
13290 \end_layout
13291
13292 \end_inset
13293
13294 , much as in \SpecialChar LaTeX
13295 .
13296  These counters must all be declared separately.
13297 \begin_inset Newline newline
13298 \end_inset
13299
13300 See 
13301 \begin_inset CommandInset ref
13302 LatexCommand ref
13303 reference "subsec:Counters"
13304
13305 \end_inset
13306
13307  for details on counters.
13308 \end_layout
13309
13310 \begin_layout Description
13311 \begin_inset Flex Code
13312 status collapsed
13313
13314 \begin_layout Plain Layout
13315 LabelFont
13316 \end_layout
13317
13318 \end_inset
13319
13320  The font used for the label.
13321  See 
13322 \begin_inset CommandInset ref
13323 LatexCommand ref
13324 reference "subsec:Font-description"
13325
13326 \end_inset
13327
13328 .
13329 \end_layout
13330
13331 \begin_layout Description
13332 \begin_inset Flex Code
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336 LabelIndent
13337 \end_layout
13338
13339 \end_inset
13340
13341  [
13342 \begin_inset Flex Code
13343 status collapsed
13344
13345 \begin_layout Plain Layout
13346 string=""
13347 \end_layout
13348
13349 \end_inset
13350
13351 ] Text that indicates how far a label should be indented.
13352 \end_layout
13353
13354 \begin_layout Description
13355 \begin_inset Flex Code
13356 status collapsed
13357
13358 \begin_layout Plain Layout
13359 LabelSep
13360 \end_layout
13361
13362 \end_inset
13363
13364  [
13365 \begin_inset Flex Code
13366 status collapsed
13367
13368 \begin_layout Plain Layout
13369 string=""
13370 \end_layout
13371
13372 \end_inset
13373
13374 ] Text that indicates the amount of horizontal space between the label and
13375  the text body.
13376  Only used for labels that are not above the text body.
13377 \end_layout
13378
13379 \begin_layout Description
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384 LabelString
13385 \end_layout
13386
13387 \end_inset
13388
13389  [
13390 \begin_inset Flex Code
13391 status collapsed
13392
13393 \begin_layout Plain Layout
13394 string=""
13395 \end_layout
13396
13397 \end_inset
13398
13399 ] The string used for the label.
13400  When 
13401 \begin_inset Flex Code
13402 status collapsed
13403
13404 \begin_layout Plain Layout
13405 LabelCounter
13406 \end_layout
13407
13408 \end_inset
13409
13410  is set, this string can be contain the special formatting commands described
13411  in 
13412 \begin_inset CommandInset ref
13413 LatexCommand ref
13414 reference "subsec:Counters"
13415
13416 \end_inset
13417
13418 .
13419 \end_layout
13420
13421 \begin_layout Description
13422 \begin_inset Flex Code
13423 status collapsed
13424
13425 \begin_layout Plain Layout
13426 LabelStringAppendix
13427 \end_layout
13428
13429 \end_inset
13430
13431  [
13432 \begin_inset Flex Code
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 string=""
13437 \end_layout
13438
13439 \end_inset
13440
13441 ] This is used inside the appendix instead of
13442 \begin_inset Newline newline
13443 \end_inset
13444
13445
13446 \begin_inset Flex Code
13447 status collapsed
13448
13449 \begin_layout Plain Layout
13450 LabelString
13451 \end_layout
13452
13453 \end_inset
13454
13455 .
13456  Note that every 
13457 \begin_inset Flex Code
13458 status collapsed
13459
13460 \begin_layout Plain Layout
13461 LabelString
13462 \end_layout
13463
13464 \end_inset
13465
13466  statement resets
13467 \begin_inset Newline newline
13468 \end_inset
13469
13470
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 LabelStringAppendix
13476 \end_layout
13477
13478 \end_inset
13479
13480  too.
13481 \end_layout
13482
13483 \begin_layout Description
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 LabelTag
13489 \end_layout
13490
13491 \end_inset
13492
13493  [FIXME] (Used only with XML-type formats.)
13494 \end_layout
13495
13496 \begin_layout Description
13497 \begin_inset Flex Code
13498 status collapsed
13499
13500 \begin_layout Plain Layout
13501 LabelType
13502 \end_layout
13503
13504 \end_inset
13505
13506  [
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511
13512 \emph on
13513 No_Label
13514 \emph default
13515 , Manual, Static, Above, 
13516 \begin_inset Newline newline
13517 \end_inset
13518
13519 Centered, Sensitive, Enumerate,
13520 \begin_inset Newline newline
13521 \end_inset
13522
13523 Itemize, Bibliography
13524 \end_layout
13525
13526 \end_inset
13527
13528 ]
13529 \end_layout
13530
13531 \begin_deeper
13532 \begin_layout Description
13533 \begin_inset Flex Code
13534 status collapsed
13535
13536 \begin_layout Plain Layout
13537 Manual
13538 \end_layout
13539
13540 \end_inset
13541
13542  means the label is the very first word (up to the first real blank).
13543  Use protected spaces if you want more than one word as the label.
13544  
13545 \end_layout
13546
13547 \begin_layout Description
13548 \begin_inset Flex Code
13549 status collapsed
13550
13551 \begin_layout Plain Layout
13552 Static
13553 \end_layout
13554
13555 \end_inset
13556
13557  means the label is simply what is declared as 
13558 \begin_inset Flex Code
13559 status collapsed
13560
13561 \begin_layout Plain Layout
13562 LabelString
13563 \end_layout
13564
13565 \end_inset
13566
13567 .
13568  This will be displayed 
13569 \begin_inset Quotes eld
13570 \end_inset
13571
13572 inline
13573 \begin_inset Quotes erd
13574 \end_inset
13575
13576 , at the beginning of the paragraph.
13577  If the 
13578 \begin_inset Flex Code
13579 status collapsed
13580
13581 \begin_layout Plain Layout
13582 LatexType
13583 \end_layout
13584
13585 \end_inset
13586
13587  is 
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 Environment
13593 \end_layout
13594
13595 \end_inset
13596
13597 , then it will be displayed only in the first paragraph of any sequence
13598  of paragraphs with the same 
13599 \begin_inset Flex Code
13600 status collapsed
13601
13602 \begin_layout Plain Layout
13603 Style
13604 \end_layout
13605
13606 \end_inset
13607
13608 .
13609 \end_layout
13610
13611 \begin_layout Description
13612 \begin_inset Flex Code
13613 status collapsed
13614
13615 \begin_layout Plain Layout
13616 Above
13617 \end_layout
13618
13619 \end_inset
13620
13621
13622 \begin_inset space ~
13623 \end_inset
13624
13625 and
13626 \begin_inset space ~
13627 \end_inset
13628
13629
13630 \begin_inset Flex Code
13631 status collapsed
13632
13633 \begin_layout Plain Layout
13634 Centered
13635 \end_layout
13636
13637 \end_inset
13638
13639  are special cases of 
13640 \begin_inset Flex Code
13641 status collapsed
13642
13643 \begin_layout Plain Layout
13644 Static
13645 \end_layout
13646
13647 \end_inset
13648
13649 .
13650  The label will be printed above the paragraph either at the beginning of
13651  the line or centered.
13652 \end_layout
13653
13654 \begin_layout Description
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659 Sensitive
13660 \end_layout
13661
13662 \end_inset
13663
13664  is a special case for the caption-labels 
13665 \begin_inset Quotes eld
13666 \end_inset
13667
13668 Figure
13669 \begin_inset Quotes erd
13670 \end_inset
13671
13672  and 
13673 \begin_inset Quotes eld
13674 \end_inset
13675
13676 Table
13677 \begin_inset Quotes erd
13678 \end_inset
13679
13680 .
13681 \begin_inset Newline newline
13682 \end_inset
13683
13684
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 Sensitive
13690 \end_layout
13691
13692 \end_inset
13693
13694  means the (hardcoded) label string depends on the kind of float: It is
13695  hardcoded to be `FloatType N', where N is the value of the counter associated
13696  with the float.
13697  For the case that a caption is inserted outside of a float the 
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 LabelString
13703 \end_layout
13704
13705 \end_inset
13706
13707  will appear as 
13708 \begin_inset Quotes eld
13709 \end_inset
13710
13711 Senseless!
13712 \begin_inset Quotes erd
13713 \end_inset
13714
13715 .
13716 \end_layout
13717
13718 \begin_layout Description
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723 Enumerate
13724 \end_layout
13725
13726 \end_inset
13727
13728  produces the usual sort of enumeration labels.
13729  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13730  small Roman numerals, and uppercase letters for the four possible depths.
13731 \end_layout
13732
13733 \begin_layout Description
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 Itemize
13739 \end_layout
13740
13741 \end_inset
13742
13743  produces various bullets at the different levels.
13744  It is also hardcoded.
13745 \end_layout
13746
13747 \begin_layout Description
13748 \begin_inset Flex Code
13749 status collapsed
13750
13751 \begin_layout Plain Layout
13752 Bibliography
13753 \end_layout
13754
13755 \end_inset
13756
13757  should be used only with 
13758 \begin_inset Flex Code
13759 status collapsed
13760
13761 \begin_layout Plain Layout
13762 LatexType BibEnvironment
13763 \end_layout
13764
13765 \end_inset
13766
13767 .
13768 \end_layout
13769
13770 \end_deeper
13771 \begin_layout Description
13772 \begin_inset Flex Code
13773 status collapsed
13774
13775 \begin_layout Plain Layout
13776 LangPreamble
13777 \end_layout
13778
13779 \end_inset
13780
13781  Note that this will completely override any prior 
13782 \begin_inset Flex Code
13783 status collapsed
13784
13785 \begin_layout Plain Layout
13786 LangPreamble
13787 \end_layout
13788
13789 \end_inset
13790
13791  declaration for this style.
13792  Must end with 
13793 \begin_inset Quotes eld
13794 \end_inset
13795
13796
13797 \begin_inset Flex Code
13798 status collapsed
13799
13800 \begin_layout Plain Layout
13801 EndLangPreamble
13802 \end_layout
13803
13804 \end_inset
13805
13806
13807 \begin_inset Quotes erd
13808 \end_inset
13809
13810 .
13811  See 
13812 \begin_inset CommandInset ref
13813 LatexCommand ref
13814 reference "subsec:I18n"
13815
13816 \end_inset
13817
13818  for details on its use.
13819 \end_layout
13820
13821 \begin_layout Description
13822 \begin_inset Flex Code
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826 LatexName
13827 \end_layout
13828
13829 \end_inset
13830
13831  [
13832 \begin_inset Flex Code
13833 status collapsed
13834
13835 \begin_layout Plain Layout
13836 <name>
13837 \end_layout
13838
13839 \end_inset
13840
13841 ] The name of the corresponding \SpecialChar LaTeX
13842  stuff.
13843  Either the environment or command name.
13844 \end_layout
13845
13846 \begin_layout Description
13847 \begin_inset Flex Code
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851 LatexParam
13852 \end_layout
13853
13854 \end_inset
13855
13856  [
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 <parameter>
13862 \end_layout
13863
13864 \end_inset
13865
13866 ] An optional parameter for the corresponding 
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 LatexName
13872 \end_layout
13873
13874 \end_inset
13875
13876  stuff.
13877  This parameter cannot be changed from within \SpecialChar LyX
13878  (use 
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 Argument
13884 \end_layout
13885
13886 \end_inset
13887
13888  for customizable parameters).
13889  This will be output as is after all \SpecialChar LaTeX
13890  
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 Argument
13896 \end_layout
13897
13898 \end_inset
13899
13900 s.
13901 \end_layout
13902
13903 \begin_layout Description
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 LatexType
13909 \end_layout
13910
13911 \end_inset
13912
13913  [
13914 \begin_inset Flex Code
13915 status collapsed
13916
13917 \begin_layout Plain Layout
13918
13919 \emph on
13920 Paragraph
13921 \emph default
13922 , Command, Environment, Item_Environment,
13923 \begin_inset Newline newline
13924 \end_inset
13925
13926 List_Environment, Bib_Environment
13927 \end_layout
13928
13929 \end_inset
13930
13931 ] How the style should be translated into \SpecialChar LaTeX
13932 .
13933 \begin_inset Foot
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 \begin_inset Flex Code
13938 status collapsed
13939
13940 \begin_layout Plain Layout
13941 LatexType
13942 \end_layout
13943
13944 \end_inset
13945
13946  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13947  Visit the SGML class files for specific examples.
13948 \end_layout
13949
13950 \end_inset
13951
13952
13953 \end_layout
13954
13955 \begin_deeper
13956 \begin_layout Description
13957 \begin_inset Flex Code
13958 status collapsed
13959
13960 \begin_layout Plain Layout
13961 Paragraph
13962 \end_layout
13963
13964 \end_inset
13965
13966  means nothing special.
13967 \end_layout
13968
13969 \begin_layout Description
13970 \begin_inset Flex Code
13971 status collapsed
13972
13973 \begin_layout Plain Layout
13974 Command
13975 \end_layout
13976
13977 \end_inset
13978
13979  means 
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984
13985 \backslash
13986
13987 \emph on
13988 LatexName
13989 \emph default
13990 {\SpecialChar ldots
13991 }
13992 \end_layout
13993
13994 \end_inset
13995
13996 .
13997 \end_layout
13998
13999 \begin_layout Description
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 Environment
14005 \end_layout
14006
14007 \end_inset
14008
14009  means 
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014
14015 \backslash
14016 begin{
14017 \emph on
14018 LatexName
14019 \emph default
14020 }\SpecialChar ldots
14021
14022 \backslash
14023 end{
14024 \emph on
14025 LatexName
14026 \emph default
14027 }
14028 \end_layout
14029
14030 \end_inset
14031
14032 .
14033  
14034 \end_layout
14035
14036 \begin_layout Description
14037 \begin_inset Flex Code
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041 Item_Environment
14042 \end_layout
14043
14044 \end_inset
14045
14046  is the same as 
14047 \begin_inset Flex Code
14048 status collapsed
14049
14050 \begin_layout Plain Layout
14051 Environment
14052 \end_layout
14053
14054 \end_inset
14055
14056 , except that an 
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061
14062 \backslash
14063 item
14064 \end_layout
14065
14066 \end_inset
14067
14068  is generated for each paragraph of this environment.
14069  
14070 \end_layout
14071
14072 \begin_layout Description
14073 \begin_inset Flex Code
14074 status collapsed
14075
14076 \begin_layout Plain Layout
14077 List_Environment
14078 \end_layout
14079
14080 \end_inset
14081
14082  is the same as 
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 Item_Environment
14088 \end_layout
14089
14090 \end_inset
14091
14092 , except that
14093 \begin_inset Newline newline
14094 \end_inset
14095
14096
14097 \begin_inset Flex Code
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 LabelWidthString
14102 \end_layout
14103
14104 \end_inset
14105
14106  is passed as an argument to the environment.
14107 \begin_inset Newline newline
14108 \end_inset
14109
14110
14111 \begin_inset Flex Code
14112 status collapsed
14113
14114 \begin_layout Plain Layout
14115 LabelWidthString
14116 \end_layout
14117
14118 \end_inset
14119
14120  can be defined in the 
14121 \begin_inset Flex Noun
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 Edit\SpecialChar menuseparator
14126 Paragraph
14127 \begin_inset space ~
14128 \end_inset
14129
14130 settings
14131 \end_layout
14132
14133 \end_inset
14134
14135  dialog.
14136 \end_layout
14137
14138 \begin_layout Description
14139 \begin_inset Flex Code
14140 status collapsed
14141
14142 \begin_layout Plain Layout
14143 Bib_Environment
14144 \end_layout
14145
14146 \end_inset
14147
14148  is like 
14149 \begin_inset Flex Code
14150 status collapsed
14151
14152 \begin_layout Plain Layout
14153 Environment
14154 \end_layout
14155
14156 \end_inset
14157
14158  but adds the necessary mandatory argument (the longest label) to the begin
14159  statement of the bibliography environment:
14160 \begin_inset Newline newline
14161 \end_inset
14162
14163
14164 \begin_inset Flex Code
14165 status collapsed
14166
14167 \begin_layout Plain Layout
14168
14169 \backslash
14170 begin{thebibliography}{99}
14171 \end_layout
14172
14173 \end_inset
14174
14175 .
14176  It is therefore only useful for bibliography environments.
14177  The default longest label 
14178 \begin_inset Quotes eld
14179 \end_inset
14180
14181 99
14182 \begin_inset Quotes erd
14183 \end_inset
14184
14185  can be changed by the user in the paragraph settings of a bibliography
14186  item.
14187 \end_layout
14188
14189 \begin_layout Standard
14190 Putting the last few things together, the \SpecialChar LaTeX
14191  output will be either: 
14192 \end_layout
14193
14194 \begin_layout LyX-Code
14195
14196 \backslash
14197 LatexName[LatexParam]{\SpecialChar ldots
14198 }
14199 \end_layout
14200
14201 \begin_layout Standard
14202 or: 
14203 \end_layout
14204
14205 \begin_layout LyX-Code
14206
14207 \backslash
14208 begin{LatexName}[LatexParam] \SpecialChar ldots
14209  
14210 \backslash
14211 end{LatexName}.
14212 \end_layout
14213
14214 \begin_layout Standard
14215 depending upon the \SpecialChar LaTeX
14216  type.
14217 \end_layout
14218
14219 \end_deeper
14220 \begin_layout Description
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225 LeftDelim
14226 \end_layout
14227
14228 \end_inset
14229
14230  [
14231 \begin_inset Flex Code
14232 status collapsed
14233
14234 \begin_layout Plain Layout
14235 string
14236 \end_layout
14237
14238 \end_inset
14239
14240 ] A string that is put at the beginning of the style content.
14241  A line break in the output can be indicated by 
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 <br/>
14247 \end_layout
14248
14249 \end_inset
14250
14251 .
14252 \end_layout
14253
14254 \begin_layout Description
14255 \begin_inset Flex Code
14256 status collapsed
14257
14258 \begin_layout Plain Layout
14259 LeftMargin
14260 \end_layout
14261
14262 \end_inset
14263
14264  [
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 string=""
14270 \end_layout
14271
14272 \end_inset
14273
14274 ] If you put styles into environments, the different 
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 LeftMargin
14280 \end_layout
14281
14282 \end_inset
14283
14284  are not simply added, but added with a factor 
14285 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14286 \end_inset
14287
14288 .
14289  Note that this parameter is also used when 
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 Margin
14295 \end_layout
14296
14297 \end_inset
14298
14299  is defined as 
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 Manual
14305 \end_layout
14306
14307 \end_inset
14308
14309  or 
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 Dynamic
14315 \end_layout
14316
14317 \end_inset
14318
14319 .
14320  Then it is added to the manual or dynamic margin.
14321 \begin_inset Newline newline
14322 \end_inset
14323
14324 For example 
14325 \begin_inset Quotes eld
14326 \end_inset
14327
14328
14329 \begin_inset Flex Code
14330 status collapsed
14331
14332 \begin_layout Plain Layout
14333 MM
14334 \end_layout
14335
14336 \end_inset
14337
14338
14339 \begin_inset Quotes erd
14340 \end_inset
14341
14342  means that the paragraph is indented with the width of 
14343 \begin_inset Quotes eld
14344 \end_inset
14345
14346
14347 \begin_inset Flex Code
14348 status collapsed
14349
14350 \begin_layout Plain Layout
14351 MM
14352 \end_layout
14353
14354 \end_inset
14355
14356
14357 \begin_inset Quotes erd
14358 \end_inset
14359
14360  in the normal font.
14361  You can get a negative width by prefixing the string with 
14362 \begin_inset Quotes eld
14363 \end_inset
14364
14365
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370 -
14371 \end_layout
14372
14373 \end_inset
14374
14375
14376 \begin_inset Quotes erd
14377 \end_inset
14378
14379 .
14380  This way was chosen so that the look is the same with each used screen
14381  font.
14382 \end_layout
14383
14384 \begin_layout Description
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 Margin
14390 \end_layout
14391
14392 \end_inset
14393
14394  [
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399
14400 \emph on
14401 Static
14402 \emph default
14403 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14404 \end_layout
14405
14406 \end_inset
14407
14408
14409 \begin_inset Newline newline
14410 \end_inset
14411
14412 The kind of margin that the style has on the left side.
14413 \end_layout
14414
14415 \begin_deeper
14416 \begin_layout Description
14417 \begin_inset Flex Code
14418 status collapsed
14419
14420 \begin_layout Plain Layout
14421 Static
14422 \end_layout
14423
14424 \end_inset
14425
14426  just means a fixed margin.
14427 \end_layout
14428
14429 \begin_layout Description
14430 \begin_inset Flex Code
14431 status collapsed
14432
14433 \begin_layout Plain Layout
14434 Manual
14435 \end_layout
14436
14437 \end_inset
14438
14439  means that the left margin depends on the string entered in the 
14440 \begin_inset Flex Noun
14441 status collapsed
14442
14443 \begin_layout Plain Layout
14444 Edit\SpecialChar menuseparator
14445 Paragraph
14446 \begin_inset space ~
14447 \end_inset
14448
14449 Settings
14450 \end_layout
14451
14452 \end_inset
14453
14454  dialog.
14455  This is used to typeset nice lists without tabulators.
14456 \end_layout
14457
14458 \begin_layout Description
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 Dynamic
14464 \end_layout
14465
14466 \end_inset
14467
14468  means that the margin depends on the size of the label.
14469  This is used for automatic enumerated headlines.
14470  It is obvious that the headline 
14471 \begin_inset Quotes eld
14472 \end_inset
14473
14474 5.4.3.2.1 Very long headline
14475 \begin_inset Quotes erd
14476 \end_inset
14477
14478  must have a wider left margin (as wide as 
14479 \begin_inset Quotes eld
14480 \end_inset
14481
14482 5.4.3.2.1
14483 \begin_inset Quotes erd
14484 \end_inset
14485
14486  plus the space) than 
14487 \begin_inset Quotes eld
14488 \end_inset
14489
14490 3.2 Very long headline
14491 \begin_inset Quotes erd
14492 \end_inset
14493
14494 , even if standard 
14495 \begin_inset Quotes eld
14496 \end_inset
14497
14498 word processors
14499 \begin_inset Quotes erd
14500 \end_inset
14501
14502  are not able to do this.
14503 \end_layout
14504
14505 \begin_layout Description
14506 \begin_inset Flex Code
14507 status collapsed
14508
14509 \begin_layout Plain Layout
14510 First_Dynamic
14511 \end_layout
14512
14513 \end_inset
14514
14515  is similar, but only the very first row of the paragraph is dynamic, while
14516  the others are static; this is used, for example, for descriptions.
14517 \end_layout
14518
14519 \begin_layout Description
14520 \begin_inset Flex Code
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 Right_Address_Box
14525 \end_layout
14526
14527 \end_inset
14528
14529  means the margin is chosen in a way that the longest row of this paragraph
14530  fits to the right margin.
14531  This is used to typeset an address on the right edge of the page.
14532 \end_layout
14533
14534 \end_deeper
14535 \begin_layout Description
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 NeedProtect
14541 \end_layout
14542
14543 \end_inset
14544
14545  [
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550
14551 \emph on
14552 0
14553 \end_layout
14554
14555 \end_inset
14556
14557 ,
14558 \begin_inset space \thinspace{}
14559 \end_inset
14560
14561
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566 1
14567 \end_layout
14568
14569 \end_inset
14570
14571 ] Whether fragile commands in this style should be 
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576
14577 \backslash
14578 protect
14579 \end_layout
14580
14581 \end_inset
14582
14583 'ed.
14584  (Note: This is 
14585 \emph on
14586 not
14587 \emph default
14588  whether this command should itself be protected.)
14589 \end_layout
14590
14591 \begin_layout Description
14592 \begin_inset Flex Code
14593 status collapsed
14594
14595 \begin_layout Plain Layout
14596 Newline
14597 \end_layout
14598
14599 \end_inset
14600
14601  [
14602 \begin_inset Flex Code
14603 status collapsed
14604
14605 \begin_layout Plain Layout
14606 0
14607 \end_layout
14608
14609 \end_inset
14610
14611 ,
14612 \begin_inset space \thinspace{}
14613 \end_inset
14614
14615
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620
14621 \emph on
14622 1
14623 \end_layout
14624
14625 \end_inset
14626
14627 ] Whether newlines are translated into \SpecialChar LaTeX
14628  newlines (
14629 \begin_inset Flex Code
14630 status collapsed
14631
14632 \begin_layout Plain Layout
14633
14634 \backslash
14635
14636 \backslash
14637
14638 \end_layout
14639
14640 \end_inset
14641
14642 ) or not.
14643  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14644  editing
14645  inside \SpecialChar LyX
14646 .
14647 \end_layout
14648
14649 \begin_layout Description
14650 \begin_inset Flex Code
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 NextNoIndent
14655 \end_layout
14656
14657 \end_inset
14658
14659  [
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664
14665 \emph on
14666 0
14667 \end_layout
14668
14669 \end_inset
14670
14671 ,
14672 \begin_inset space \thinspace{}
14673 \end_inset
14674
14675
14676 \begin_inset Flex Code
14677 status collapsed
14678
14679 \begin_layout Plain Layout
14680 1
14681 \end_layout
14682
14683 \end_inset
14684
14685 ] If set to true, and if 
14686 \begin_inset Flex Code
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690 DefaultStyle
14691 \end_layout
14692
14693 \end_inset
14694
14695  (usually 
14696 \begin_inset Flex Code
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700 Standard
14701 \end_layout
14702
14703 \end_inset
14704
14705 ) paragraphs are being indented, then the indentation of such a paragraph
14706  following one of this type will be suppressed.
14707  (So this will not affect the display of non-default paragraphs.)
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 ObsoletedBy
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 <name>
14726 \end_layout
14727
14728 \end_inset
14729
14730 ] Name of a style that has replaced this style.
14731  This is used to rename a style, while keeping backward compatibility.
14732 \end_layout
14733
14734 \begin_layout Description
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 ParagraphGroup
14740 \end_layout
14741
14742 \end_inset
14743
14744  [
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 0
14750 \end_layout
14751
14752 \end_inset
14753
14754 ,
14755 \begin_inset space \thinspace{}
14756 \end_inset
14757
14758
14759 \begin_inset Flex Code
14760 status collapsed
14761
14762 \begin_layout Plain Layout
14763 1
14764 \end_layout
14765
14766 \end_inset
14767
14768 ] Determines whether consecutive pragraphs of the same type are treated
14769  as belonging together.
14770  This has the effect that the 
14771 \begin_inset Flex Code
14772 status collapsed
14773
14774 \begin_layout Plain Layout
14775 GuiLabel
14776 \end_layout
14777
14778 \end_inset
14779
14780  is only printed once before such a group.
14781  By default, this is true for 
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 LaTeXType
14787 \end_layout
14788
14789 \end_inset
14790
14791  
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 Environment
14797 \end_layout
14798
14799 \end_inset
14800
14801  and 
14802 \begin_inset Flex Code
14803 status collapsed
14804
14805 \begin_layout Plain Layout
14806 Bib_Environment
14807 \end_layout
14808
14809 \end_inset
14810
14811  and false for all other types.
14812 \end_layout
14813
14814 \begin_layout Description
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 ParbreakIsNewline
14820 \end_layout
14821
14822 \end_inset
14823
14824  [
14825 \begin_inset Flex Code
14826 status collapsed
14827
14828 \begin_layout Plain Layout
14829
14830 \emph on
14831 0
14832 \end_layout
14833
14834 \end_inset
14835
14836 ,
14837 \begin_inset space \thinspace{}
14838 \end_inset
14839
14840
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 1
14846 \end_layout
14847
14848 \end_inset
14849
14850 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14851  output,
14852  but only by a line break; together with 
14853 \begin_inset Flex Code
14854 status collapsed
14855
14856 \begin_layout Plain Layout
14857 PassThru 1
14858 \end_layout
14859
14860 \end_inset
14861
14862 , this allows to emulate a plain text editor (like the ERT inset).
14863 \end_layout
14864
14865 \begin_layout Description
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 ParIndent
14871 \end_layout
14872
14873 \end_inset
14874
14875  [
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 string=""
14881 \end_layout
14882
14883 \end_inset
14884
14885 ] The indent of the very first line of a paragraph.
14886  The
14887 \begin_inset Newline newline
14888 \end_inset
14889
14890
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 Parindent
14896 \end_layout
14897
14898 \end_inset
14899
14900  will be fixed for a certain style.
14901  The exception is the default style, since the indentation for these paragraphs
14902  can be prohibited with 
14903 \begin_inset Flex Code
14904 status collapsed
14905
14906 \begin_layout Plain Layout
14907 NextNoIndent
14908 \end_layout
14909
14910 \end_inset
14911
14912 .
14913  Also, 
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 Standard
14919 \end_layout
14920
14921 \end_inset
14922
14923  style paragraphs inside environments use the 
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 Parindent
14929 \end_layout
14930
14931 \end_inset
14932
14933  of the environment, not their native one.
14934  For example, 
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 Standard
14940 \end_layout
14941
14942 \end_inset
14943
14944  paragraphs inside an enumeration are not indented.
14945 \end_layout
14946
14947 \begin_layout Description
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 ParSep
14953 \end_layout
14954
14955 \end_inset
14956
14957  [
14958 \begin_inset Flex Code
14959 status collapsed
14960
14961 \begin_layout Plain Layout
14962 float=0
14963 \end_layout
14964
14965 \end_inset
14966
14967 ] The vertical space between two paragraphs of this style.
14968 \end_layout
14969
14970 \begin_layout Description
14971 \begin_inset Flex Code
14972 status collapsed
14973
14974 \begin_layout Plain Layout
14975 Parskip
14976 \end_layout
14977
14978 \end_inset
14979
14980  [
14981 \begin_inset Flex Code
14982 status collapsed
14983
14984 \begin_layout Plain Layout
14985 float=0
14986 \end_layout
14987
14988 \end_inset
14989
14990 ] \SpecialChar LyX
14991  allows the user to choose either 
14992 \begin_inset Quotes eld
14993 \end_inset
14994
14995 indent
14996 \begin_inset Quotes erd
14997 \end_inset
14998
14999  or 
15000 \begin_inset Quotes eld
15001 \end_inset
15002
15003 skip
15004 \begin_inset Quotes erd
15005 \end_inset
15006
15007  to separate paragraphs.
15008  When 
15009 \begin_inset Quotes eld
15010 \end_inset
15011
15012 indent
15013 \begin_inset Quotes erd
15014 \end_inset
15015
15016  is chosen, 
15017 \begin_inset Flex Code
15018 status collapsed
15019
15020 \begin_layout Plain Layout
15021 Parskip
15022 \end_layout
15023
15024 \end_inset
15025
15026  is ignored.
15027  When 
15028 \begin_inset Quotes eld
15029 \end_inset
15030
15031 skip
15032 \begin_inset Quotes erd
15033 \end_inset
15034
15035  is chosen, 
15036 \begin_inset Flex Code
15037 status collapsed
15038
15039 \begin_layout Plain Layout
15040 ParIndent
15041 \end_layout
15042
15043 \end_inset
15044
15045  is ignored and all paragraphs are separated by the 
15046 \begin_inset Flex Code
15047 status collapsed
15048
15049 \begin_layout Plain Layout
15050 Parskip
15051 \end_layout
15052
15053 \end_inset
15054
15055  argument.
15056  The vertical space is calculated with 
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 Parskip
15062 \begin_inset space ~
15063 \end_inset
15064
15065 * DefaultHeight
15066 \end_layout
15067
15068 \end_inset
15069
15070  where 
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 DefaultHeight
15076 \end_layout
15077
15078 \end_inset
15079
15080  is the height of a row with the normal font.
15081  This way, the look stays the same with different screen fonts.
15082 \end_layout
15083
15084 \begin_layout Description
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 PassThru
15090 \end_layout
15091
15092 \end_inset
15093
15094  [
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099
15100 \emph on
15101 0
15102 \end_layout
15103
15104 \end_inset
15105
15106 ,
15107 \begin_inset space \thinspace{}
15108 \end_inset
15109
15110
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 1
15116 \end_layout
15117
15118 \end_inset
15119
15120 ] Whether the contents of this paragraph should be output in raw form, meaning
15121  without special translations that \SpecialChar LaTeX
15122  would require.
15123 \end_layout
15124
15125 \begin_layout Description
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 PassThruChars
15131 \end_layout
15132
15133 \end_inset
15134
15135  [
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 string
15141 \end_layout
15142
15143 \end_inset
15144
15145 ]
15146 \family typewriter
15147  
15148 \family default
15149 Defines individual characters that should be output in raw form, meaning
15150  without special translations that \SpecialChar LaTeX
15151  would require.
15152 \end_layout
15153
15154 \begin_layout Description
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 Preamble
15160 \end_layout
15161
15162 \end_inset
15163
15164  Information to be included in the \SpecialChar LaTeX
15165  preamble when this style is used.
15166  Used to define macros, load packages, etc., required by this particular
15167  style.
15168  Must end with 
15169 \begin_inset Quotes eld
15170 \end_inset
15171
15172
15173 \begin_inset Flex Code
15174 status collapsed
15175
15176 \begin_layout Plain Layout
15177 EndPreamble
15178 \end_layout
15179
15180 \end_inset
15181
15182
15183 \begin_inset Quotes erd
15184 \end_inset
15185
15186 .
15187 \end_layout
15188
15189 \begin_layout Description
15190 \begin_inset Flex Code
15191 status collapsed
15192
15193 \begin_layout Plain Layout
15194 RefPrefix
15195 \end_layout
15196
15197 \end_inset
15198
15199  [
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 string
15205 \end_layout
15206
15207 \end_inset
15208
15209 ] The prefix to use when creating labels referring to paragraphs of this
15210  type.
15211  This allows the use of formatted references.
15212 \end_layout
15213
15214 \begin_layout Description
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219 Requires 
15220 \end_layout
15221
15222 \end_inset
15223
15224  [
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 string
15230 \end_layout
15231
15232 \end_inset
15233
15234 ] Whether the style requires the feature 
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239 string
15240 \end_layout
15241
15242 \end_inset
15243
15244  (see 
15245 \begin_inset CommandInset ref
15246 LatexCommand ref
15247 reference "chap:List-of-functions"
15248
15249 \end_inset
15250
15251  for the list of features).
15252  If you require a package with specific options, you can additionally use
15253  
15254 \begin_inset Flex Code
15255 status collapsed
15256
15257 \begin_layout Plain Layout
15258 PackageOptions
15259 \end_layout
15260
15261 \end_inset
15262
15263  as a general text class parameter (see 
15264 \begin_inset CommandInset ref
15265 LatexCommand ref
15266 reference "subsec:General-text-class"
15267
15268 \end_inset
15269
15270 ).
15271 \end_layout
15272
15273 \begin_layout Description
15274 \begin_inset Flex Code
15275 status collapsed
15276
15277 \begin_layout Plain Layout
15278 ResetArgs
15279 \end_layout
15280
15281 \end_inset
15282
15283  [
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288
15289 \emph on
15290 0
15291 \end_layout
15292
15293 \end_inset
15294
15295 ,
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 1
15301 \end_layout
15302
15303 \end_inset
15304
15305 ] Resets the \SpecialChar LaTeX
15306  arguments of this style (as defined via the 
15307 \begin_inset Flex Code
15308 status collapsed
15309
15310 \begin_layout Plain Layout
15311 Argument
15312 \end_layout
15313
15314 \end_inset
15315
15316  tag).
15317  This is useful if you have copied a style via 
15318 \begin_inset Flex Code
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 CopyStyle
15323 \end_layout
15324
15325 \end_inset
15326
15327 , but you do not want to inherit its (required and optional) arguments.
15328 \end_layout
15329
15330 \begin_layout Description
15331 \begin_inset Flex Code
15332 status collapsed
15333
15334 \begin_layout Plain Layout
15335 ResumeCounter
15336 \end_layout
15337
15338 \end_inset
15339
15340  [
15341 \begin_inset Flex Code
15342 status collapsed
15343
15344 \begin_layout Plain Layout
15345
15346 \emph on
15347 0
15348 \end_layout
15349
15350 \end_inset
15351
15352 ,
15353 \begin_inset Flex Code
15354 status collapsed
15355
15356 \begin_layout Plain Layout
15357 1
15358 \end_layout
15359
15360 \end_inset
15361
15362 ] Resumes a counter that is usually reset at each new sequence of layouts.
15363  This is currently only useful when 
15364 \begin_inset Flex Code
15365 status collapsed
15366
15367 \begin_layout Plain Layout
15368 LabelType
15369 \end_layout
15370
15371 \end_inset
15372
15373  is 
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 Enumerate
15379 \end_layout
15380
15381 \end_inset
15382
15383 .
15384 \end_layout
15385
15386 \begin_layout Description
15387 \begin_inset Flex Code
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391 RightDelim
15392 \end_layout
15393
15394 \end_inset
15395
15396  [
15397 \begin_inset Flex Code
15398 status collapsed
15399
15400 \begin_layout Plain Layout
15401 string
15402 \end_layout
15403
15404 \end_inset
15405
15406 ] A string that is put at the end of the layout content.
15407  A line break in the output can be indicated by 
15408 \begin_inset Flex Code
15409 status collapsed
15410
15411 \begin_layout Plain Layout
15412 <br/>
15413 \end_layout
15414
15415 \end_inset
15416
15417 .
15418 \end_layout
15419
15420 \begin_layout Description
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 RightMargin
15426 \end_layout
15427
15428 \end_inset
15429
15430  [
15431 \begin_inset Flex Code
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435 string=""
15436 \end_layout
15437
15438 \end_inset
15439
15440 ] Similar to 
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 LeftMargin
15446 \end_layout
15447
15448 \end_inset
15449
15450 .
15451 \end_layout
15452
15453 \begin_layout Description
15454 \begin_inset Flex Code
15455 status collapsed
15456
15457 \begin_layout Plain Layout
15458 Spacing
15459 \end_layout
15460
15461 \end_inset
15462
15463  [
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468
15469 \emph on
15470 single
15471 \end_layout
15472
15473 \end_inset
15474
15475
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 onehalf
15481 \end_layout
15482
15483 \end_inset
15484
15485
15486 \begin_inset Flex Code
15487 status collapsed
15488
15489 \begin_layout Plain Layout
15490 double
15491 \end_layout
15492
15493 \end_inset
15494
15495
15496 \begin_inset Flex Code
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500 other
15501 \begin_inset space ~
15502 \end_inset
15503
15504 <value>
15505 \end_layout
15506
15507 \end_inset
15508
15509 ] This defines what the default spacing should be in the style.
15510  The arguments 
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515 single
15516 \end_layout
15517
15518 \end_inset
15519
15520
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525 onehalf
15526 \end_layout
15527
15528 \end_inset
15529
15530  and 
15531 \begin_inset Flex Code
15532 status collapsed
15533
15534 \begin_layout Plain Layout
15535 double
15536 \end_layout
15537
15538 \end_inset
15539
15540  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15541  If you specify the argument 
15542 \begin_inset Flex Code
15543 status collapsed
15544
15545 \begin_layout Plain Layout
15546 other
15547 \end_layout
15548
15549 \end_inset
15550
15551 , then you must also provide a value argument which will be the actual multiplie
15552 r value.
15553  Note that, contrary to other parameters, 
15554 \begin_inset Flex Code
15555 status collapsed
15556
15557 \begin_layout Plain Layout
15558 Spacing
15559 \end_layout
15560
15561 \end_inset
15562
15563  implies the generation of specific \SpecialChar LaTeX
15564  code, using the \SpecialChar LaTeX
15565  package 
15566 \family roman
15567
15568 \begin_inset Flex Code
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572 setspace
15573 \end_layout
15574
15575 \end_inset
15576
15577 .
15578 \end_layout
15579
15580 \begin_layout Description
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 Spellcheck
15586 \end_layout
15587
15588 \end_inset
15589
15590  [
15591 \begin_inset Flex Code
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595 0
15596 \end_layout
15597
15598 \end_inset
15599
15600 ,
15601 \begin_inset space \thinspace{}
15602 \end_inset
15603
15604
15605 \begin_inset Flex Code
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609
15610 \emph on
15611 1
15612 \end_layout
15613
15614 \end_inset
15615
15616 ] Allow spell-checking paragraphs of this style.
15617  Default is true.
15618 \end_layout
15619
15620 \begin_layout Description
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 StepMasterCounter
15626 \end_layout
15627
15628 \end_inset
15629
15630  [
15631 \begin_inset Flex Code
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635
15636 \emph on
15637 0
15638 \end_layout
15639
15640 \end_inset
15641
15642 ,
15643 \begin_inset Flex Code
15644 status collapsed
15645
15646 \begin_layout Plain Layout
15647 1
15648 \end_layout
15649
15650 \end_inset
15651
15652 ] Steps the master counter of a given counter at the beginning of a new
15653  sequence of layouts.
15654  This is currently only useful when 
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 LabelType
15660 \end_layout
15661
15662 \end_inset
15663
15664  is 
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 Enumerate
15670 \end_layout
15671
15672 \end_inset
15673
15674 .
15675 \end_layout
15676
15677 \begin_layout Description
15678 \begin_inset Flex Code
15679 status collapsed
15680
15681 \begin_layout Plain Layout
15682 TextFont
15683 \end_layout
15684
15685 \end_inset
15686
15687  The font used for the text body .
15688  See 
15689 \begin_inset CommandInset ref
15690 LatexCommand ref
15691 reference "subsec:Font-description"
15692
15693 \end_inset
15694
15695 .
15696 \end_layout
15697
15698 \begin_layout Description
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703 TocLevel
15704 \end_layout
15705
15706 \end_inset
15707
15708
15709 \series medium
15710  [
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715
15716 \series medium
15717 int=3
15718 \end_layout
15719
15720 \end_inset
15721
15722 ]
15723 \series default
15724  The level of the style in the table of contents.
15725  This is used for automatic numbering of section headings.
15726 \end_layout
15727
15728 \begin_layout Description
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 ToggleIndent
15734 \end_layout
15735
15736 \end_inset
15737
15738  [
15739 \emph on
15740
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745
15746 \emph on
15747 default
15748 \end_layout
15749
15750 \end_inset
15751
15752
15753 \emph default
15754
15755 \begin_inset Flex Code
15756 status collapsed
15757
15758 \begin_layout Plain Layout
15759 always
15760 \end_layout
15761
15762 \end_inset
15763
15764
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 never
15770 \end_layout
15771
15772 \end_inset
15773
15774 ] This tag determines whether the first line indentation of this paragraph
15775  can be toggled via the Paragraph settings dialog.
15776  If 
15777 \emph on
15778
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783
15784 \emph off
15785 default
15786 \end_layout
15787
15788 \end_inset
15789
15790
15791 \emph default
15792  is set, indentation can be toggled if the document settings use 
15793 \begin_inset Quotes eld
15794 \end_inset
15795
15796 indent
15797 \begin_inset Quotes erd
15798 \end_inset
15799
15800  paragraph style, with 
15801 \begin_inset Flex Code
15802 status collapsed
15803
15804 \begin_layout Plain Layout
15805 always
15806 \end_layout
15807
15808 \end_inset
15809
15810 , indentation can always be toggled, notwithstanding the document settings,
15811  with 
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 never
15817 \end_layout
15818
15819 \end_inset
15820
15821 , indentation can never be toggled.
15822 \end_layout
15823
15824 \begin_layout Description
15825 \begin_inset Flex Code
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 TopSep
15830 \end_layout
15831
15832 \end_inset
15833
15834  [
15835 \begin_inset Flex Code
15836 status collapsed
15837
15838 \begin_layout Plain Layout
15839 float=0
15840 \end_layout
15841
15842 \end_inset
15843
15844 ] The vertical space with which the very first of a chain of paragraphs
15845  with this style is separated from the previous paragraph.
15846  If the previous paragraph has another style, the separations are not simply
15847  added, but the maximum is taken.
15848 \end_layout
15849
15850 \begin_layout Subsection
15851 \begin_inset CommandInset label
15852 LatexCommand label
15853 name "subsec:I18n"
15854
15855 \end_inset
15856
15857 Internationalization of Paragraph Styles
15858 \end_layout
15859
15860 \begin_layout Standard
15861 \SpecialChar LyX
15862  has long supported internationalization of layout information, but, until
15863  version 2.0, this applied only to the user interface and not to, say, PDF
15864  output.
15865  Thus, French authors were forced to resort to ugly hacks if they wanted
15866  `
15867 \lang french
15868 Théorème
15869 \lang english
15870  1' instead of `Theorem 1'.
15871  Thanks to Georg Baum, that is no longer the case.
15872 \end_layout
15873
15874 \begin_layout Standard
15875 If a 
15876 \begin_inset Flex Code
15877 status collapsed
15878
15879 \begin_layout Plain Layout
15880 Style
15881 \end_layout
15882
15883 \end_inset
15884
15885  defines text that is to appear in the typeset document, it may use 
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 LangPreamble
15891 \end_layout
15892
15893 \end_inset
15894
15895  and 
15896 \begin_inset Flex Code
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900 BabelPreamble
15901 \end_layout
15902
15903 \end_inset
15904
15905  to support non-English and even multi-language documents correctly.
15906  The following excerpt (from the 
15907 \begin_inset Flex Code
15908 status collapsed
15909
15910 \begin_layout Plain Layout
15911 theorems-ams.inc
15912 \end_layout
15913
15914 \end_inset
15915
15916  file) shows how this works:
15917 \end_layout
15918
15919 \begin_layout LyX-Code
15920 Preamble
15921 \end_layout
15922
15923 \begin_deeper
15924 \begin_layout LyX-Code
15925   
15926 \backslash
15927 theoremstyle{remark}
15928 \end_layout
15929
15930 \begin_layout LyX-Code
15931   
15932 \backslash
15933 newtheorem{claim}[thm]{
15934 \backslash
15935 protect
15936 \backslash
15937 claimname}
15938 \end_layout
15939
15940 \begin_layout LyX-Code
15941 EndPreamble
15942 \end_layout
15943
15944 \begin_layout LyX-Code
15945 LangPreamble
15946 \end_layout
15947
15948 \begin_layout LyX-Code
15949   
15950 \backslash
15951 providecommand{
15952 \backslash
15953 claimname}{_(Claim)}
15954 \end_layout
15955
15956 \begin_layout LyX-Code
15957 EndLangPreamble
15958 \end_layout
15959
15960 \begin_layout LyX-Code
15961 BabelPreamble
15962 \end_layout
15963
15964 \begin_layout LyX-Code
15965     
15966 \backslash
15967 addto
15968 \backslash
15969 captions$$lang{
15970 \backslash
15971 renewcommand{
15972 \backslash
15973 claimname}{_(Claim)}}
15974 \end_layout
15975
15976 \begin_layout LyX-Code
15977 EndBabelPreamble
15978 \end_layout
15979
15980 \end_deeper
15981 \begin_layout Standard
15982 In principle, any legal \SpecialChar LaTeX
15983  may appear in the 
15984 \begin_inset Flex Code
15985 status collapsed
15986
15987 \begin_layout Plain Layout
15988 LangPreamble
15989 \end_layout
15990
15991 \end_inset
15992
15993  and 
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 BabelPreamble
15999 \end_layout
16000
16001 \end_inset
16002
16003  tags, but in practice they will typically look as they do here.
16004  The key to correct translation of the typeset text is the definition of
16005  the \SpecialChar LaTeX
16006  command 
16007 \begin_inset Flex Code
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011
16012 \backslash
16013 claimname
16014 \end_layout
16015
16016 \end_inset
16017
16018  and its use in 
16019 \begin_inset Flex Code
16020 status collapsed
16021
16022 \begin_layout Plain Layout
16023
16024 \backslash
16025 newtheorem
16026 \end_layout
16027
16028 \end_inset
16029
16030 .
16031  
16032 \end_layout
16033
16034 \begin_layout Standard
16035 The 
16036 \begin_inset Flex Code
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040 LangPreamble
16041 \end_layout
16042
16043 \end_inset
16044
16045  tag provides for internationalization based upon the overall language of
16046  the document.
16047  The contents of the tag will be included in the preamble, just as with
16048  the 
16049 \begin_inset Flex Code
16050 status collapsed
16051
16052 \begin_layout Plain Layout
16053 Preamble
16054 \end_layout
16055
16056 \end_inset
16057
16058  tag.
16059  What makes it special is the use of the 
16060 \begin_inset Quotes eld
16061 \end_inset
16062
16063 function
16064 \begin_inset Quotes erd
16065 \end_inset
16066
16067  
16068 \begin_inset Flex Code
16069 status collapsed
16070
16071 \begin_layout Plain Layout
16072 _()
16073 \end_layout
16074
16075 \end_inset
16076
16077 , which will be replaced, when \SpecialChar LyX
16078  produces \SpecialChar LaTeX
16079  output, with the translation of
16080  its argument into the document language.
16081 \end_layout
16082
16083 \begin_layout Standard
16084 The 
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 BabelPreamble
16090 \end_layout
16091
16092 \end_inset
16093
16094  tag is more complex, since it is meant to provide support for multi-language
16095  documents and so offers an interface to the 
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 babel
16101 \end_layout
16102
16103 \end_inset
16104
16105  package.
16106  Its contents will be added to the preamble once for each language that
16107  appears in the document.
16108  In this case, the argument to 
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 _()
16114 \end_layout
16115
16116 \end_inset
16117
16118  will be replaced with its translation into the language in question; the
16119  expression 
16120 \begin_inset Flex Code
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 $$lang
16125 \end_layout
16126
16127 \end_inset
16128
16129  is replaced by the language name (as used by the babel package).
16130 \end_layout
16131
16132 \begin_layout Standard
16133 A German document that also included a French section would thus have the
16134  following in the preamble:
16135 \end_layout
16136
16137 \begin_layout LyX-Code
16138
16139 \backslash
16140 addto
16141 \backslash
16142 captionsfrench{
16143 \backslash
16144 renewcommand{
16145 \backslash
16146 claimname}{Affirmation}}
16147 \begin_inset Newline newline
16148 \end_inset
16149
16150
16151 \backslash
16152 addto
16153 \backslash
16154 captionsngerman{
16155 \backslash
16156 renewcommand{
16157 \backslash
16158 claimname}{Behauptung}}
16159 \begin_inset Newline newline
16160 \end_inset
16161
16162
16163 \backslash
16164 providecommand{
16165 \backslash
16166 claimname}{Behauptung}
16167 \end_layout
16168
16169 \begin_layout Standard
16170 \SpecialChar LaTeX
16171  and 
16172 \begin_inset Flex Code
16173 status collapsed
16174
16175 \begin_layout Plain Layout
16176 babel
16177 \end_layout
16178
16179 \end_inset
16180
16181  will then conspire to produce the correct text in the output.
16182 \end_layout
16183
16184 \begin_layout Standard
16185 One important point to note here is that the translations are provided by
16186  \SpecialChar LyX
16187  itself, through the file 
16188 \begin_inset Flex Code
16189 status collapsed
16190
16191 \begin_layout Plain Layout
16192 layouttranslations
16193 \end_layout
16194
16195 \end_inset
16196
16197 .
16198  This means, in effect, that 
16199 \begin_inset Flex Code
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203 LangPreamble
16204 \end_layout
16205
16206 \end_inset
16207
16208  and 
16209 \begin_inset Flex Code
16210 status collapsed
16211
16212 \begin_layout Plain Layout
16213 BabelPreamble
16214 \end_layout
16215
16216 \end_inset
16217
16218  are really only of use in layout files that are provided with \SpecialChar LyX
16219 , since text
16220  entered in user-created layout files will not be seen by \SpecialChar LyX
16221 's internationalizatio
16222 n routines unless the 
16223 \begin_inset Flex Code
16224 status collapsed
16225
16226 \begin_layout Plain Layout
16227 layouttranslations
16228 \end_layout
16229
16230 \end_inset
16231
16232  file is modified accordingly.
16233  That said, however, any layout created with the intention that it will
16234  be included with \SpecialChar LyX
16235  should use these tags where appropriate.
16236  Please note that the paragraph style translations provided by \SpecialChar LyX
16237  will never
16238  change with a minor update (e.
16239 \begin_inset space \thinspace{}
16240 \end_inset
16241
16242 g.
16243 \begin_inset space \space{}
16244 \end_inset
16245
16246 from version 2.1.x to 2.1.y).
16247  It is however quite likely that a major update (e.
16248 \begin_inset space \thinspace{}
16249 \end_inset
16250
16251 g.
16252 \begin_inset space \space{}
16253 \end_inset
16254
16255 from 2.0.x to 2.1.y) will introduce new translations or corrections.
16256 \end_layout
16257
16258 \begin_layout Subsection
16259 Floats
16260 \begin_inset CommandInset label
16261 LatexCommand label
16262 name "subsec:Floats"
16263
16264 \end_inset
16265
16266
16267 \end_layout
16268
16269 \begin_layout Standard
16270 It is necessary to define the floats (
16271 \begin_inset Flex Noun
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 figure
16276 \end_layout
16277
16278 \end_inset
16279
16280
16281 \begin_inset Flex Noun
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 table
16286 \end_layout
16287
16288 \end_inset
16289
16290 , \SpecialChar ldots
16291 ) in the text class itself.
16292  Standard floats are included in the file 
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 stdfloats.inc
16298 \end_layout
16299
16300 \end_inset
16301
16302 , so you may have to do no more than add
16303 \end_layout
16304
16305 \begin_layout LyX-Code
16306 Input stdfloats.inc
16307 \end_layout
16308
16309 \begin_layout Standard
16310 to your layout file.
16311  If you want to implement a text class that proposes some other float types
16312  (like the AGU class bundled with \SpecialChar LyX
16313 ), the information below will hopefully
16314  help you:
16315 \end_layout
16316
16317 \begin_layout Description
16318 \begin_inset Flex Code
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322 AllowedPlacement
16323 \end_layout
16324
16325 \end_inset
16326
16327  [
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 string
16333 \end_layout
16334
16335 \end_inset
16336
16337 =!htbpH] Allowed placement options for this float type.
16338  The value is a string of placement characters.
16339  Possible characters include: 
16340 \emph on
16341 h
16342 \emph default
16343  (
16344 \begin_inset Quotes eld
16345 \end_inset
16346
16347 here if possible
16348 \begin_inset Quotes erd
16349 \end_inset
16350
16351 ), 
16352 \emph on
16353 t
16354 \emph default
16355  (
16356 \begin_inset Quotes eld
16357 \end_inset
16358
16359 top of page
16360 \begin_inset Quotes erd
16361 \end_inset
16362
16363 ), 
16364 \emph on
16365 b
16366 \emph default
16367  (
16368 \begin_inset Quotes eld
16369 \end_inset
16370
16371 bottom of page
16372 \begin_inset Quotes erd
16373 \end_inset
16374
16375 ), 
16376 \emph on
16377 p
16378 \emph default
16379  (
16380 \begin_inset Quotes eld
16381 \end_inset
16382
16383 page of floats
16384 \begin_inset Quotes erd
16385 \end_inset
16386
16387 ), 
16388 \emph on
16389 H
16390 \emph default
16391  (
16392 \begin_inset Quotes eld
16393 \end_inset
16394
16395 here definitely
16396 \begin_inset Quotes erd
16397 \end_inset
16398
16399 ) and 
16400 \emph on
16401 !
16402 \emph default
16403  (
16404 \begin_inset Quotes eld
16405 \end_inset
16406
16407 ignore LaTeX rules
16408 \begin_inset Quotes erd
16409 \end_inset
16410
16411 ).
16412  The order of the characters in the string does not matter.
16413  If no placement options are allowed, use the string 
16414 \emph on
16415 none
16416 \emph default
16417 .
16418 \end_layout
16419
16420 \begin_layout Description
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 AllowsSideways
16426 \end_layout
16427
16428 \end_inset
16429
16430  [
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435
16436 \emph off
16437 0
16438 \end_layout
16439
16440 \end_inset
16441
16442 ,
16443 \begin_inset space \thinspace{}
16444 \end_inset
16445
16446
16447 \emph on
16448
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453
16454 \emph on
16455 1
16456 \end_layout
16457
16458 \end_inset
16459
16460
16461 \emph default
16462 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16463 -package 
16464 \family typewriter
16465 rotfloat
16466 \family default
16467  (sidewaysfloat).
16468  Set to 
16469 \begin_inset Flex Code
16470 status collapsed
16471
16472 \begin_layout Plain Layout
16473 0
16474 \end_layout
16475
16476 \end_inset
16477
16478  if the float does not support this feature.
16479 \end_layout
16480
16481 \begin_layout Description
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486 AllowsWide
16487 \end_layout
16488
16489 \end_inset
16490
16491  [
16492 \begin_inset Flex Code
16493 status collapsed
16494
16495 \begin_layout Plain Layout
16496
16497 \emph off
16498 0
16499 \end_layout
16500
16501 \end_inset
16502
16503 ,
16504 \begin_inset space \thinspace{}
16505 \end_inset
16506
16507
16508 \emph on
16509
16510 \begin_inset Flex Code
16511 status collapsed
16512
16513 \begin_layout Plain Layout
16514
16515 \emph on
16516 1
16517 \end_layout
16518
16519 \end_inset
16520
16521
16522 \emph default
16523 ] Defines whether the float has a starred variant that spans columns in
16524  a two column paragraph.
16525  Set to 
16526 \begin_inset Flex Code
16527 status collapsed
16528
16529 \begin_layout Plain Layout
16530 0
16531 \end_layout
16532
16533 \end_inset
16534
16535  if the float does not support this feature.
16536 \end_layout
16537
16538 \begin_layout Description
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543 Extension
16544 \end_layout
16545
16546 \end_inset
16547
16548  [
16549 \begin_inset Flex Code
16550 status collapsed
16551
16552 \begin_layout Plain Layout
16553 string
16554 \end_layout
16555
16556 \end_inset
16557
16558 =
16559 \begin_inset Quotes erd
16560 \end_inset
16561
16562
16563 \begin_inset Quotes erd
16564 \end_inset
16565
16566 ] The file name extension of an auxiliary file for the list of figures (or
16567  whatever).
16568  \SpecialChar LaTeX
16569  writes the captions to this file.
16570 \end_layout
16571
16572 \begin_layout Description
16573 \begin_inset Flex Code
16574 status collapsed
16575
16576 \begin_layout Plain Layout
16577 GuiName
16578 \end_layout
16579
16580 \end_inset
16581
16582  [
16583 \begin_inset Flex Code
16584 status collapsed
16585
16586 \begin_layout Plain Layout
16587 string
16588 \end_layout
16589
16590 \end_inset
16591
16592 =
16593 \begin_inset Quotes erd
16594 \end_inset
16595
16596
16597 \begin_inset Quotes erd
16598 \end_inset
16599
16600 ] The string that will be used in the menus and also for the caption.
16601  This is translated to the current language if babel is used.
16602 \end_layout
16603
16604 \begin_layout Description
16605 \begin_inset Flex Code
16606 status collapsed
16607
16608 \begin_layout Plain Layout
16609 HTML*
16610 \end_layout
16611
16612 \end_inset
16613
16614  These tags control the XHTML output.
16615  See 
16616 \begin_inset CommandInset ref
16617 LatexCommand ref
16618 reference "sec:Tags-for-XHTML"
16619
16620 \end_inset
16621
16622 .
16623 \end_layout
16624
16625 \begin_layout Description
16626 \begin_inset Flex Code
16627 status collapsed
16628
16629 \begin_layout Plain Layout
16630 IsPredefined
16631 \end_layout
16632
16633 \end_inset
16634
16635  [
16636 \emph on
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 0
16643 \end_layout
16644
16645 \end_inset
16646
16647
16648 \emph default
16649 ,
16650 \begin_inset space \thinspace{}
16651 \end_inset
16652
16653
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 1
16659 \end_layout
16660
16661 \end_inset
16662
16663 ] Indicates whether the float is already defined in the document class or
16664  if instead the \SpecialChar LaTeX
16665  package 
16666 \begin_inset Flex Code
16667 status collapsed
16668
16669 \begin_layout Plain Layout
16670 float
16671 \end_layout
16672
16673 \end_inset
16674
16675  needs to be loaded to define it on-the-fly.
16676  The default is 
16677 \begin_inset Flex Code
16678 status collapsed
16679
16680 \begin_layout Plain Layout
16681 0
16682 \end_layout
16683
16684 \end_inset
16685
16686 , which means: 
16687 \begin_inset Flex Code
16688 status collapsed
16689
16690 \begin_layout Plain Layout
16691 float
16692 \end_layout
16693
16694 \end_inset
16695
16696  is used.
16697  It should be set to 
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 1
16703 \end_layout
16704
16705 \end_inset
16706
16707  if the float is already defined by the \SpecialChar LaTeX
16708  document class.
16709 \end_layout
16710
16711 \begin_layout Description
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716 ListCommand
16717 \end_layout
16718
16719 \end_inset
16720
16721  [
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 string
16727 \end_layout
16728
16729 \end_inset
16730
16731 =
16732 \begin_inset Quotes erd
16733 \end_inset
16734
16735
16736 \begin_inset Quotes erd
16737 \end_inset
16738
16739 ] The command used to generate a list of floats of this type; the leading
16740  `
16741 \backslash
16742 ' must be omitted.
16743  This 
16744 \emph on
16745 must
16746 \emph default
16747  be given if 
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 UsesFloatPkg
16753 \end_layout
16754
16755 \end_inset
16756
16757  is false, since there is no standard way to generate this command.
16758  It is ignored if 
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 UsesFloatPkg
16764 \end_layout
16765
16766 \end_inset
16767
16768  is true, since in that case there is a standard way to define the command.
16769 \end_layout
16770
16771 \begin_layout Description
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 ListName
16777 \end_layout
16778
16779 \end_inset
16780
16781  [
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 string
16787 \end_layout
16788
16789 \end_inset
16790
16791 =
16792 \begin_inset Quotes erd
16793 \end_inset
16794
16795
16796 \begin_inset Quotes erd
16797 \end_inset
16798
16799 ] A title for a list of floats of this kind (list of figures, tables, or
16800  whatever).
16801  It is used for the screen label within \SpecialChar LyX
16802 , it is used by \SpecialChar LaTeX
16803  for the title and
16804  it is used as the title in the XHTML output.
16805  It will be translated to the document language.
16806 \end_layout
16807
16808 \begin_layout Description
16809 \begin_inset Flex Code
16810 status collapsed
16811
16812 \begin_layout Plain Layout
16813 NumberWithin
16814 \end_layout
16815
16816 \end_inset
16817
16818  [
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823 string
16824 \end_layout
16825
16826 \end_inset
16827
16828 =
16829 \begin_inset Quotes erd
16830 \end_inset
16831
16832
16833 \begin_inset Quotes erd
16834 \end_inset
16835
16836 ] This (optional) argument determines whether floats of this class will
16837  be numbered within some sectional unit of the document.
16838  For example, if 
16839 \begin_inset Flex Code
16840 status collapsed
16841
16842 \begin_layout Plain Layout
16843 NumberWithin
16844 \end_layout
16845
16846 \end_inset
16847
16848  is set to 
16849 \begin_inset Quotes eld
16850 \end_inset
16851
16852
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 chapter
16858 \end_layout
16859
16860 \end_inset
16861
16862
16863 \begin_inset Quotes erd
16864 \end_inset
16865
16866 , the floats will be numbered within chapters.
16867  
16868 \end_layout
16869
16870 \begin_layout Description
16871 \begin_inset Flex Code
16872 status collapsed
16873
16874 \begin_layout Plain Layout
16875 Placement
16876 \end_layout
16877
16878 \end_inset
16879
16880  [
16881 \begin_inset Flex Code
16882 status collapsed
16883
16884 \begin_layout Plain Layout
16885 string
16886 \end_layout
16887
16888 \end_inset
16889
16890 =
16891 \begin_inset Quotes erd
16892 \end_inset
16893
16894
16895 \begin_inset Quotes erd
16896 \end_inset
16897
16898 ] The default placement for the given class of floats.
16899  The string should be as in standard \SpecialChar LaTeX
16900
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 t
16906 \end_layout
16907
16908 \end_inset
16909
16910
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 b
16916 \end_layout
16917
16918 \end_inset
16919
16920
16921 \begin_inset Flex Code
16922 status collapsed
16923
16924 \begin_layout Plain Layout
16925 p
16926 \end_layout
16927
16928 \end_inset
16929
16930  and 
16931 \begin_inset Flex Code
16932 status collapsed
16933
16934 \begin_layout Plain Layout
16935 h
16936 \end_layout
16937
16938 \end_inset
16939
16940  for top, bottom, page, and here, respectively.
16941 \begin_inset Foot
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 Note that the order of these letters in the string is irrelevant, like in
16946  \SpecialChar LaTeX
16947 .
16948 \end_layout
16949
16950 \end_inset
16951
16952  On top of that there is a new type, 
16953 \begin_inset Flex Code
16954 status collapsed
16955
16956 \begin_layout Plain Layout
16957 H
16958 \end_layout
16959
16960 \end_inset
16961
16962 , which does not really correspond to a float, since it means: put it 
16963 \begin_inset Quotes eld
16964 \end_inset
16965
16966 here
16967 \begin_inset Quotes erd
16968 \end_inset
16969
16970  and nowhere else.
16971  Note however that the 
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 H
16977 \end_layout
16978
16979 \end_inset
16980
16981  specifier is special and, because of implementation details, cannot be
16982  used in non-built in float types.
16983  If you do not understand what this means, just use 
16984 \begin_inset Quotes eld
16985 \end_inset
16986
16987
16988 \begin_inset Flex Code
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 tbp
16993 \end_layout
16994
16995 \end_inset
16996
16997
16998 \begin_inset Quotes erd
16999 \end_inset
17000
17001 .
17002 \end_layout
17003
17004 \begin_layout Description
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 RefPrefix
17010 \end_layout
17011
17012 \end_inset
17013
17014  [
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 string
17020 \end_layout
17021
17022 \end_inset
17023
17024 ] The prefix to use when creating labels referring to floats of this type.
17025  This allows the use of formatted references.
17026  Note that you can remove any 
17027 \begin_inset Flex Code
17028 status collapsed
17029
17030 \begin_layout Plain Layout
17031 RefPrefix
17032 \end_layout
17033
17034 \end_inset
17035
17036  set by a copied style by using the special value 
17037 \begin_inset Quotes eld
17038 \end_inset
17039
17040 OFF
17041 \begin_inset Quotes erd
17042 \end_inset
17043
17044 , which must be all caps.
17045 \end_layout
17046
17047 \begin_layout Description
17048 \begin_inset Flex Code
17049 status collapsed
17050
17051 \begin_layout Plain Layout
17052 Style
17053 \end_layout
17054
17055 \end_inset
17056
17057  [
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062 string
17063 \end_layout
17064
17065 \end_inset
17066
17067 =
17068 \begin_inset Quotes erd
17069 \end_inset
17070
17071
17072 \begin_inset Quotes erd
17073 \end_inset
17074
17075 ] The style used when defining the float using 
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080
17081 \backslash
17082 newfloat
17083 \end_layout
17084
17085 \end_inset
17086
17087 .
17088 \end_layout
17089
17090 \begin_layout Description
17091 \begin_inset Flex Code
17092 status collapsed
17093
17094 \begin_layout Plain Layout
17095 Type
17096 \end_layout
17097
17098 \end_inset
17099
17100  [
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105 string
17106 \end_layout
17107
17108 \end_inset
17109
17110 =
17111 \begin_inset Quotes erd
17112 \end_inset
17113
17114
17115 \begin_inset Quotes erd
17116 \end_inset
17117
17118 ] The 
17119 \begin_inset Quotes eld
17120 \end_inset
17121
17122 type
17123 \begin_inset Quotes erd
17124 \end_inset
17125
17126  of the new class of floats, like program or algorithm.
17127  After the appropriate 
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132
17133 \backslash
17134 newfloat
17135 \end_layout
17136
17137 \end_inset
17138
17139 , commands such as 
17140 \begin_inset Flex Code
17141 status collapsed
17142
17143 \begin_layout Plain Layout
17144
17145 \backslash
17146 begin{program}
17147 \end_layout
17148
17149 \end_inset
17150
17151  or 
17152 \begin_inset Flex Code
17153 status collapsed
17154
17155 \begin_layout Plain Layout
17156
17157 \backslash
17158 end{algorithm*}
17159 \end_layout
17160
17161 \end_inset
17162
17163  will be available.
17164 \end_layout
17165
17166 \begin_layout Description
17167 \begin_inset Flex Code
17168 status collapsed
17169
17170 \begin_layout Plain Layout
17171 UsesFloatPkg
17172 \end_layout
17173
17174 \end_inset
17175
17176  [
17177 \begin_inset Flex Code
17178 status collapsed
17179
17180 \begin_layout Plain Layout
17181 0
17182 \end_layout
17183
17184 \end_inset
17185
17186 ,
17187 \begin_inset space \thinspace{}
17188 \end_inset
17189
17190
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195
17196 \emph on
17197 1
17198 \end_layout
17199
17200 \end_inset
17201
17202 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17203  package 
17204 \begin_inset Flex Code
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208 float
17209 \end_layout
17210
17211 \end_inset
17212
17213 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17214  itself.
17215 \end_layout
17216
17217 \begin_layout Standard
17218 Note that defining a float with type 
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223
17224 \emph on
17225 type
17226 \end_layout
17227
17228 \end_inset
17229
17230  automatically defines the corresponding counter with name 
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235
17236 \emph on
17237 type
17238 \end_layout
17239
17240 \end_inset
17241
17242 .
17243 \end_layout
17244
17245 \begin_layout Subsection
17246 Flex insets and InsetLayout
17247 \begin_inset CommandInset label
17248 LatexCommand label
17249 name "subsec:Flex-insets-and"
17250
17251 \end_inset
17252
17253
17254 \end_layout
17255
17256 \begin_layout Standard
17257 Flex insets come in three different kinds: 
17258 \end_layout
17259
17260 \begin_layout Itemize
17261 character style (
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 CharStyle
17267 \end_layout
17268
17269 \end_inset
17270
17271 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17272  commands as 
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277
17278 \backslash
17279 noun
17280 \end_layout
17281
17282 \end_inset
17283
17284  and 
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289
17290 \backslash
17291 code
17292 \end_layout
17293
17294 \end_inset
17295
17296 .
17297 \end_layout
17298
17299 \begin_layout Itemize
17300 user custom (
17301 \begin_inset Flex Code
17302 status collapsed
17303
17304 \begin_layout Plain Layout
17305 Custom
17306 \end_layout
17307
17308 \end_inset
17309
17310 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17311  code,
17312  footnote, and the like.
17313  An obvious example is an endnote inset, which is defined in the 
17314 \begin_inset Flex Code
17315 status collapsed
17316
17317 \begin_layout Plain Layout
17318 endnote
17319 \end_layout
17320
17321 \end_inset
17322
17323  module.
17324 \end_layout
17325
17326 \begin_layout Itemize
17327 XML elements (
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332 Element
17333 \end_layout
17334
17335 \end_inset
17336
17337 ): For use with DocBook classes.
17338 \end_layout
17339
17340 \begin_layout Standard
17341 Flex insets are defined using the 
17342 \begin_inset Flex Code
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346 InsetLayout
17347 \end_layout
17348
17349 \end_inset
17350
17351  tag, which shall be explained in a moment.
17352 \end_layout
17353
17354 \begin_layout Standard
17355 The 
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 InsetLayout
17361 \end_layout
17362
17363 \end_inset
17364
17365  tag also serves another function: It can be used to customize the general
17366  layout of many different types of insets.
17367  Currently, 
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372 InsetLayout
17373 \end_layout
17374
17375 \end_inset
17376
17377  can be used to customize the layout parameters for footnotes, marginal
17378  notes, note insets, \SpecialChar TeX
17379  code (ERT) insets, branches, listings, indexes, boxes,
17380  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17381 \end_layout
17382
17383 \begin_layout Standard
17384 The 
17385 \begin_inset Flex Code
17386 status collapsed
17387
17388 \begin_layout Plain Layout
17389 InsetLayout
17390 \end_layout
17391
17392 \end_inset
17393
17394  definition must begin with a line of the form:
17395 \end_layout
17396
17397 \begin_layout LyX-Code
17398 InsetLayout <type>
17399 \end_layout
17400
17401 \begin_layout Standard
17402 Here 
17403 \begin_inset Flex Code
17404 status collapsed
17405
17406 \begin_layout Plain Layout
17407 <Type>
17408 \end_layout
17409
17410 \end_inset
17411
17412  indicates the inset whose layout is being defined, and here there are four
17413  cases.
17414 \end_layout
17415
17416 \begin_layout Enumerate
17417 The layout for a pre-existing inset is being modified.
17418  In this case, can be 
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 <Type>
17424 \end_layout
17425
17426 \end_inset
17427
17428  any one of the following: 
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 Algorithm
17434 \end_layout
17435
17436 \end_inset
17437
17438
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 Branch
17444 \end_layout
17445
17446 \end_inset
17447
17448
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 Box
17454 \end_layout
17455
17456 \end_inset
17457
17458
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 Box:shaded
17464 \end_layout
17465
17466 \end_inset
17467
17468
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473 Caption:Standard
17474 \end_layout
17475
17476 \end_inset
17477
17478
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483 ERT
17484 \end_layout
17485
17486 \end_inset
17487
17488
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493 Figure
17494 \end_layout
17495
17496 \end_inset
17497
17498
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 Foot
17504 \end_layout
17505
17506 \end_inset
17507
17508
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513 Index
17514 \end_layout
17515
17516 \end_inset
17517
17518
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523 Info
17524 \end_layout
17525
17526 \end_inset
17527
17528
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 Info:menu
17534 \end_layout
17535
17536 \end_inset
17537
17538
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 Info:shortcut
17544 \end_layout
17545
17546 \end_inset
17547
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 Info:shortcuts
17554 \end_layout
17555
17556 \end_inset
17557
17558
17559 \begin_inset Flex Code
17560 status collapsed
17561
17562 \begin_layout Plain Layout
17563 Listings
17564 \end_layout
17565
17566 \end_inset
17567
17568
17569 \begin_inset Flex Code
17570 status collapsed
17571
17572 \begin_layout Plain Layout
17573 Marginal
17574 \end_layout
17575
17576 \end_inset
17577
17578
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 Note:Comment
17584 \end_layout
17585
17586 \end_inset
17587
17588
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 Note:Note
17594 \end_layout
17595
17596 \end_inset
17597
17598
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 Note:Greyedout
17604 \end_layout
17605
17606 \end_inset
17607
17608
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 Table
17614 \end_layout
17615
17616 \end_inset
17617
17618 , or 
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 URL
17624 \end_layout
17625
17626 \end_inset
17627
17628 .
17629 \end_layout
17630
17631 \begin_layout Enumerate
17632 The layout for a Flex inset is being defined.
17633  In this case, 
17634 \begin_inset Flex Code
17635 status collapsed
17636
17637 \begin_layout Plain Layout
17638 <Type>
17639 \end_layout
17640
17641 \end_inset
17642
17643  must be of the form 
17644 \begin_inset Quotes eld
17645 \end_inset
17646
17647
17648 \begin_inset Flex Code
17649 status collapsed
17650
17651 \begin_layout Plain Layout
17652 Flex:<name>
17653 \end_layout
17654
17655 \end_inset
17656
17657
17658 \begin_inset Quotes erd
17659 \end_inset
17660
17661 , where 
17662 \begin_inset Flex Code
17663 status collapsed
17664
17665 \begin_layout Plain Layout
17666 name
17667 \end_layout
17668
17669 \end_inset
17670
17671  may be be any valid identifier not used by a pre-existing Flex inset.
17672  The identifier may include spaces, but in that case the whole thing must
17673  be wrapped in quotes.
17674  Note that the definition of a flex inset 
17675 \emph on
17676 must 
17677 \emph default
17678 also include a 
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 LyXType
17684 \end_layout
17685
17686 \end_inset
17687
17688  entry, declaring which type of inset it defines.
17689 \end_layout
17690
17691 \begin_layout Enumerate
17692 The layout for user specific branch is being defined.
17693  In this case, 
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698 <Type>
17699 \end_layout
17700
17701 \end_inset
17702
17703  must be of the form 
17704 \begin_inset Quotes eld
17705 \end_inset
17706
17707
17708 \begin_inset Flex Code
17709 status collapsed
17710
17711 \begin_layout Plain Layout
17712 Branch:<name>
17713 \end_layout
17714
17715 \end_inset
17716
17717
17718 \begin_inset Quotes erd
17719 \end_inset
17720
17721 , where 
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726 name
17727 \end_layout
17728
17729 \end_inset
17730
17731  may be be any valid identifier of branch defined in user's document.
17732  The identifier may include spaces, but in that case the whole thing must
17733  be wrapped in quotes.
17734  The main purpose of this feature is to allow \SpecialChar LaTeX
17735  wrapping around specific
17736  branches as user needs.
17737 \end_layout
17738
17739 \begin_layout Enumerate
17740 The layout of a user (or class) specific caption is being defined.
17741  In this case, 
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 <Type>
17747 \end_layout
17748
17749 \end_inset
17750
17751  must be of the form 
17752 \begin_inset Quotes eld
17753 \end_inset
17754
17755
17756 \begin_inset Flex Code
17757 status collapsed
17758
17759 \begin_layout Plain Layout
17760 Caption:<name>
17761 \end_layout
17762
17763 \end_inset
17764
17765
17766 \begin_inset Quotes erd
17767 \end_inset
17768
17769 , where 
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 name
17775 \end_layout
17776
17777 \end_inset
17778
17779  specifies the name of the caption as it appears in the menu.
17780  Have a look at the standard caption (
17781 \begin_inset Flex Code
17782 status collapsed
17783
17784 \begin_layout Plain Layout
17785 Caption:Standard
17786 \end_layout
17787
17788 \end_inset
17789
17790 ), the specific captions of the KOMA-Script classes (
17791 \begin_inset Flex Code
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795 Caption:Above
17796 \end_layout
17797
17798 \end_inset
17799
17800
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 Caption:Below
17806 \end_layout
17807
17808 \end_inset
17809
17810 ) or the module 
17811 \family sans
17812 Multilingual
17813 \begin_inset space ~
17814 \end_inset
17815
17816 Captions 
17817 \family default
17818 (
17819 \begin_inset Flex Code
17820 status collapsed
17821
17822 \begin_layout Plain Layout
17823 Caption:Bicaption
17824 \end_layout
17825
17826 \end_inset
17827
17828 ) for applications.
17829 \end_layout
17830
17831 \begin_layout Standard
17832 The 
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 InsetLayout
17838 \end_layout
17839
17840 \end_inset
17841
17842  definition can contain the following entries:
17843 \end_layout
17844
17845 \begin_layout Description
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 AddToToc
17851 \end_layout
17852
17853 \end_inset
17854
17855  [
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860 string
17861 \end_layout
17862
17863 \end_inset
17864
17865 =""] This inset will appear in the table of contents of the given type.
17866  An empty string disables.
17867  See also the OutlinerName and the IsTocCaption commands.
17868  This is only implemented for Flex insets.
17869  Default: disabled.
17870 \end_layout
17871
17872 \begin_layout Description
17873 \begin_inset Flex Code
17874 status collapsed
17875
17876 \begin_layout Plain Layout
17877 Argument
17878 \end_layout
17879
17880 \end_inset
17881
17882  [
17883 \begin_inset Flex Code
17884 status collapsed
17885
17886 \begin_layout Plain Layout
17887 int
17888 \end_layout
17889
17890 \end_inset
17891
17892 ] Defines argument number of a command\SpecialChar breakableslash
17893 environment associated with the current
17894  layout.
17895  The definition must end with 
17896 \begin_inset Flex Code
17897 status collapsed
17898
17899 \begin_layout Plain Layout
17900 EndArgument
17901 \end_layout
17902
17903 \end_inset
17904
17905 .
17906  See 
17907 \begin_inset CommandInset ref
17908 LatexCommand ref
17909 reference "subsec:Paragraph-Styles"
17910
17911 \end_inset
17912
17913  for details.
17914 \end_layout
17915
17916 \begin_layout Description
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921 BabelPreamble
17922 \end_layout
17923
17924 \end_inset
17925
17926  Preamble for changing language commands; see 
17927 \begin_inset CommandInset ref
17928 LatexCommand ref
17929 reference "subsec:I18n"
17930
17931 \end_inset
17932
17933 .
17934 \end_layout
17935
17936 \begin_layout Description
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 BgColor
17942 \end_layout
17943
17944 \end_inset
17945
17946  [
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 <name>
17952 \end_layout
17953
17954 \end_inset
17955
17956 ] The color for the inset's background.
17957  See 
17958 \begin_inset CommandInset ref
17959 LatexCommand ref
17960 reference "chap:Names-of-colors"
17961
17962 \end_inset
17963
17964  for a list of the available color names.
17965 \end_layout
17966
17967 \begin_layout Description
17968 \begin_inset Flex Code
17969 status collapsed
17970
17971 \begin_layout Plain Layout
17972 ContentAsLabel
17973 \end_layout
17974
17975 \end_inset
17976
17977  [
17978 \begin_inset Flex Code
17979 status collapsed
17980
17981 \begin_layout Plain Layout
17982
17983 \emph on
17984 0
17985 \end_layout
17986
17987 \end_inset
17988
17989 ,
17990 \begin_inset space \thinspace{}
17991 \end_inset
17992
17993
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 1
17999 \end_layout
18000
18001 \end_inset
18002
18003 ] Whether to use the content of the inset as the label, when the inset is
18004  closed.
18005  Default is false.
18006 \end_layout
18007
18008 \begin_layout Description
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 CopyStyle
18014 \end_layout
18015
18016 \end_inset
18017
18018  [
18019 \begin_inset Flex Code
18020 status collapsed
18021
18022 \begin_layout Plain Layout
18023 <type>
18024 \end_layout
18025
18026 \end_inset
18027
18028 ] As with paragraph styles, see 
18029 \begin_inset CommandInset ref
18030 LatexCommand ref
18031 reference "subsec:Paragraph-Styles"
18032
18033 \end_inset
18034
18035 .
18036  Note that you need to specify the complete type, e.
18037 \begin_inset space \thinspace{}
18038 \end_inset
18039
18040 g.
18041 \begin_inset space ~
18042 \end_inset
18043
18044
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 CopyStyle Flex:<name>
18050 \end_layout
18051
18052 \end_inset
18053
18054 .
18055 \end_layout
18056
18057 \begin_layout Description
18058 \begin_inset Flex Code
18059 status collapsed
18060
18061 \begin_layout Plain Layout
18062 CustomPars
18063 \end_layout
18064
18065 \end_inset
18066
18067  [
18068 \begin_inset Flex Code
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072
18073 \emph on
18074 0
18075 \end_layout
18076
18077 \end_inset
18078
18079 ,
18080 \begin_inset space \thinspace{}
18081 \end_inset
18082
18083
18084 \begin_inset Flex Code
18085 status collapsed
18086
18087 \begin_layout Plain Layout
18088 1
18089 \end_layout
18090
18091 \end_inset
18092
18093 ] Indicates whether the user may employ the Paragraph Settings dialog to
18094  customize the paragraph.
18095 \end_layout
18096
18097 \begin_layout Description
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 Decoration
18103 \end_layout
18104
18105 \end_inset
18106
18107  can be 
18108 \begin_inset Flex Code
18109 status collapsed
18110
18111 \begin_layout Plain Layout
18112 Classic
18113 \end_layout
18114
18115 \end_inset
18116
18117
18118 \begin_inset Flex Code
18119 status collapsed
18120
18121 \begin_layout Plain Layout
18122 Minimalistic
18123 \end_layout
18124
18125 \end_inset
18126
18127 , or 
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 Conglomerate
18133 \end_layout
18134
18135 \end_inset
18136
18137 , describing the rendering style used for the inset's frame and buttons.
18138  Footnotes generally use 
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 Classic
18144 \end_layout
18145
18146 \end_inset
18147
18148 , ERT insets generally 
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 Minimalistic
18154 \end_layout
18155
18156 \end_inset
18157
18158 , and character styles 
18159 \begin_inset Flex Code
18160 status collapsed
18161
18162 \begin_layout Plain Layout
18163 Conglomerate
18164 \end_layout
18165
18166 \end_inset
18167
18168 .
18169 \end_layout
18170
18171 \begin_layout Description
18172 \begin_inset Flex Code
18173 status collapsed
18174
18175 \begin_layout Plain Layout
18176 Display
18177 \end_layout
18178
18179 \end_inset
18180
18181  [
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 0
18187 \end_layout
18188
18189 \end_inset
18190
18191 ,
18192 \emph on
18193
18194 \begin_inset space \thinspace{}
18195 \end_inset
18196
18197
18198 \emph default
18199
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204
18205 \emph on
18206 1
18207 \end_layout
18208
18209 \end_inset
18210
18211 ] Only useful if 
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 LatexType
18217 \end_layout
18218
18219 \end_inset
18220
18221  is 
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 Environment
18227 \end_layout
18228
18229 \end_inset
18230
18231 .
18232  Indicates whether the environment will stand on its own in the output or
18233  will appear inline with the surrounding text.
18234  If set to false, it is supposed that the \SpecialChar LaTeX
18235  environment ignores white space
18236  (including one newline character) after the 
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241
18242 \backslash
18243 begin{
18244 \emph on
18245 LatexName
18246 \emph default
18247 }
18248 \end_layout
18249
18250 \end_inset
18251
18252  and 
18253 \begin_inset Flex Code
18254 status collapsed
18255
18256 \begin_layout Plain Layout
18257
18258 \backslash
18259 end{
18260 \emph on
18261 LatexName
18262 \emph default
18263 }
18264 \end_layout
18265
18266 \end_inset
18267
18268  tags.
18269  Default is true.
18270 \end_layout
18271
18272 \begin_layout Description
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 End
18278 \end_layout
18279
18280 \end_inset
18281
18282  Required at the end of the 
18283 \begin_inset Flex Code
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 InsetLayout
18288 \end_layout
18289
18290 \end_inset
18291
18292  declarations.
18293 \end_layout
18294
18295 \begin_layout Description
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 Font
18301 \end_layout
18302
18303 \end_inset
18304
18305  The font used for both the text body 
18306 \emph on
18307 and
18308 \emph default
18309  the label.
18310  See 
18311 \begin_inset CommandInset ref
18312 LatexCommand ref
18313 reference "subsec:Font-description"
18314
18315 \end_inset
18316
18317 .
18318  Note that defining this font automatically defines the 
18319 \begin_inset Flex Code
18320 status collapsed
18321
18322 \begin_layout Plain Layout
18323 LabelFont
18324 \end_layout
18325
18326 \end_inset
18327
18328  to the same value, so define this first and define 
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 LabelFont
18334 \end_layout
18335
18336 \end_inset
18337
18338  later if you want them to be different.
18339 \end_layout
18340
18341 \begin_layout Description
18342 \begin_inset Flex Code
18343 status collapsed
18344
18345 \begin_layout Plain Layout
18346 FixedWidthPreambleEncoding
18347 \end_layout
18348
18349 \end_inset
18350
18351  [
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356
18357 \emph on
18358 0
18359 \end_layout
18360
18361 \end_inset
18362
18363 ,
18364 \begin_inset space \thinspace{}
18365 \end_inset
18366
18367
18368 \begin_inset Flex Code
18369 status collapsed
18370
18371 \begin_layout Plain Layout
18372 1
18373 \end_layout
18374
18375 \end_inset
18376
18377 ] Force a fixed width encoding for the translated contents of 
18378 \begin_inset Flex Code
18379 status collapsed
18380
18381 \begin_layout Plain Layout
18382 BabelPreamble
18383 \end_layout
18384
18385 \end_inset
18386
18387  and 
18388 \begin_inset Flex Code
18389 status collapsed
18390
18391 \begin_layout Plain Layout
18392 LangPreamble
18393 \end_layout
18394
18395 \end_inset
18396
18397  code generated by this layout.
18398  This is needed for special \SpecialChar LaTeX
18399 -packages like 
18400 \family typewriter
18401 listings
18402 \family default
18403  that do not work with variable width encodings such as 
18404 \family sans
18405 utf8
18406 \family default
18407 .
18408  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18409  backends such as Xe\SpecialChar TeX
18410  or
18411  Lua\SpecialChar TeX
18412  are used.
18413 \end_layout
18414
18415 \begin_layout Description
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 ForceLocalFontSwitch
18421 \end_layout
18422
18423 \end_inset
18424
18425  [
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430
18431 \emph on
18432 0
18433 \end_layout
18434
18435 \end_inset
18436
18437 ,
18438 \begin_inset space \thinspace{}
18439 \end_inset
18440
18441
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 1
18447 \end_layout
18448
18449 \end_inset
18450
18451 ] When using babel, always use a local font switch (
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456
18457 \backslash
18458 foreignlanguage
18459 \end_layout
18460
18461 \end_inset
18462
18463 ), never a global one (such as 
18464 \begin_inset Flex Code
18465 status collapsed
18466
18467 \begin_layout Plain Layout
18468
18469 \backslash
18470 selectlanguage
18471 \end_layout
18472
18473 \end_inset
18474
18475 ).
18476 \end_layout
18477
18478 \begin_layout Description
18479 \begin_inset Flex Code
18480 status collapsed
18481
18482 \begin_layout Plain Layout
18483 ForceLTR
18484 \end_layout
18485
18486 \end_inset
18487
18488  [
18489 \begin_inset Flex Code
18490 status collapsed
18491
18492 \begin_layout Plain Layout
18493
18494 \emph on
18495 0
18496 \end_layout
18497
18498 \end_inset
18499
18500 ,
18501 \begin_inset space \thinspace{}
18502 \end_inset
18503
18504
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509 1
18510 \end_layout
18511
18512 \end_inset
18513
18514 ] Force the 
18515 \begin_inset Quotes eld
18516 \end_inset
18517
18518 latex
18519 \begin_inset Quotes erd
18520 \end_inset
18521
18522  language, leading to Left-to-Right (Latin) output, e.
18523 \begin_inset space \thinspace{}
18524 \end_inset
18525
18526 g.
18527 \begin_inset space \space{}
18528 \end_inset
18529
18530 in \SpecialChar TeX
18531  code or URL.
18532  A kludge.
18533 \end_layout
18534
18535 \begin_layout Description
18536 \begin_inset Flex Code
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540 ForceOwnlines
18541 \end_layout
18542
18543 \end_inset
18544
18545  [
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550
18551 \emph on
18552 0
18553 \end_layout
18554
18555 \end_inset
18556
18557 ,
18558 \begin_inset space \thinspace{}
18559 \end_inset
18560
18561
18562 \begin_inset Flex Code
18563 status collapsed
18564
18565 \begin_layout Plain Layout
18566 1
18567 \end_layout
18568
18569 \end_inset
18570
18571 ] Force a a line break in the \SpecialChar LaTeX
18572  output before the inset starts and after
18573  the inset ends.
18574  This assures the inset itself is output on its own lines, for parsing purposes.
18575 \end_layout
18576
18577 \begin_layout Description
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 ForcePlain
18583 \end_layout
18584
18585 \end_inset
18586
18587  [
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592
18593 \emph on
18594 0
18595 \end_layout
18596
18597 \end_inset
18598
18599 ,
18600 \begin_inset space \thinspace{}
18601 \end_inset
18602
18603
18604 \begin_inset Flex Code
18605 status collapsed
18606
18607 \begin_layout Plain Layout
18608 1
18609 \end_layout
18610
18611 \end_inset
18612
18613 ] Indicates whether the 
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 PlainLayout
18619 \end_layout
18620
18621 \end_inset
18622
18623  should be used or, instead, the user can change the paragraph style used
18624  in the inset.
18625  Default is false.
18626 \end_layout
18627
18628 \begin_layout Description
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 FreeSpacing
18634 \end_layout
18635
18636 \end_inset
18637
18638  [
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643
18644 \emph on
18645 0
18646 \end_layout
18647
18648 \end_inset
18649
18650 ,
18651 \begin_inset space \thinspace{}
18652 \end_inset
18653
18654
18655 \begin_inset Flex Code
18656 status collapsed
18657
18658 \begin_layout Plain Layout
18659 1
18660 \end_layout
18661
18662 \end_inset
18663
18664 ] As with paragraph styles, see 
18665 \begin_inset CommandInset ref
18666 LatexCommand ref
18667 reference "subsec:Paragraph-Styles"
18668
18669 \end_inset
18670
18671 .
18672 \end_layout
18673
18674 \begin_layout Description
18675 \begin_inset Flex Code
18676 status collapsed
18677
18678 \begin_layout Plain Layout
18679 HTML*
18680 \end_layout
18681
18682 \end_inset
18683
18684  These tags control the XHTML output.
18685  See 
18686 \begin_inset CommandInset ref
18687 LatexCommand ref
18688 reference "sec:Tags-for-XHTML"
18689
18690 \end_inset
18691
18692 .
18693 \end_layout
18694
18695 \begin_layout Description
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700 InToc
18701 \end_layout
18702
18703 \end_inset
18704
18705  [
18706 \begin_inset Flex Code
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710
18711 \emph on
18712 0
18713 \end_layout
18714
18715 \end_inset
18716
18717 ,
18718 \begin_inset space \thinspace{}
18719 \end_inset
18720
18721
18722 \begin_inset Flex Code
18723 status collapsed
18724
18725 \begin_layout Plain Layout
18726 1
18727 \end_layout
18728
18729 \end_inset
18730
18731 ] Whether to include the contents of this inset in the strings generated
18732  for the `Outline' pane for all table of contents, regardless of the AddToToc
18733  setting.
18734  One would not, for example, want the content of a footnote in a section
18735  header to be included in the TOC displayed in the outline, but one would
18736  normally want the content of a character style displayed.
18737  Default is false: not to include.
18738 \end_layout
18739
18740 \begin_layout Description
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 IsTocCaption
18746 \end_layout
18747
18748 \end_inset
18749
18750  [
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755
18756 \emph on
18757 0
18758 \end_layout
18759
18760 \end_inset
18761
18762 ,
18763 \begin_inset space \thinspace{}
18764 \end_inset
18765
18766
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 1
18772 \end_layout
18773
18774 \end_inset
18775
18776 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18777  of its contents in its item in the table of contents.
18778  Otherwise, only the label appears.
18779 \end_layout
18780
18781 \begin_layout Description
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 KeepEmpty
18787 \end_layout
18788
18789 \end_inset
18790
18791  [
18792 \emph on
18793
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 0
18799 \end_layout
18800
18801 \end_inset
18802
18803
18804 \emph default
18805 ,
18806 \begin_inset space \thinspace{}
18807 \end_inset
18808
18809
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 1
18815 \end_layout
18816
18817 \end_inset
18818
18819 ] As with paragraph styles, see 
18820 \begin_inset CommandInset ref
18821 LatexCommand ref
18822 reference "subsec:Paragraph-Styles"
18823
18824 \end_inset
18825
18826 .
18827 \end_layout
18828
18829 \begin_layout Description
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 LabelFont
18835 \end_layout
18836
18837 \end_inset
18838
18839  The font used for the label.
18840  See 
18841 \begin_inset CommandInset ref
18842 LatexCommand ref
18843 reference "subsec:Font-description"
18844
18845 \end_inset
18846
18847 .
18848  Note that this definition can never appear before 
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 Font
18854 \end_layout
18855
18856 \end_inset
18857
18858 , lest it be ineffective.
18859 \end_layout
18860
18861 \begin_layout Description
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 LabelString
18867 \end_layout
18868
18869 \end_inset
18870
18871  [
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876 string
18877 \end_layout
18878
18879 \end_inset
18880
18881 =
18882 \begin_inset Quotes erd
18883 \end_inset
18884
18885
18886 \begin_inset Quotes erd
18887 \end_inset
18888
18889 ] What will be displayed on the button or elsewhere as the inset label.
18890  Some inset types (
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 \SpecialChar TeX
18896  code
18897 \end_layout
18898
18899 \end_inset
18900
18901  and 
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 Branch
18907 \end_layout
18908
18909 \end_inset
18910
18911 ) modify this label on the fly.
18912 \end_layout
18913
18914 \begin_layout Description
18915 \begin_inset Flex Code
18916 status collapsed
18917
18918 \begin_layout Plain Layout
18919 LangPreamble
18920 \end_layout
18921
18922 \end_inset
18923
18924  Language dependent preamble; see 
18925 \begin_inset CommandInset ref
18926 LatexCommand ref
18927 reference "subsec:I18n"
18928
18929 \end_inset
18930
18931 .
18932 \end_layout
18933
18934 \begin_layout Description
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939 LatexName
18940 \end_layout
18941
18942 \end_inset
18943
18944  [
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949 <name>
18950 \end_layout
18951
18952 \end_inset
18953
18954 ] The name of the corresponding \SpecialChar LaTeX
18955  stuff.
18956  Either the environment or command name.
18957 \end_layout
18958
18959 \begin_layout Description
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 LatexParam
18965 \end_layout
18966
18967 \end_inset
18968
18969  [
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 <parameter>
18975 \end_layout
18976
18977 \end_inset
18978
18979 ] The optional parameter for the corresponding 
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 LatexName
18985 \end_layout
18986
18987 \end_inset
18988
18989  stuff, including possible bracket pairs like 
18990 \begin_inset Flex Code
18991 status collapsed
18992
18993 \begin_layout Plain Layout
18994 []
18995 \end_layout
18996
18997 \end_inset
18998
18999 .
19000  This parameter cannot be changed from within \SpecialChar LyX
19001  (use 
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006 Argument
19007 \end_layout
19008
19009 \end_inset
19010
19011  for customizable parameters).
19012  It will be output as is after all \SpecialChar LaTeX
19013  
19014 \begin_inset Flex Code
19015 status collapsed
19016
19017 \begin_layout Plain Layout
19018 Argument
19019 \end_layout
19020
19021 \end_inset
19022
19023 s.
19024 \end_layout
19025
19026 \begin_layout Description
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 LatexType
19032 \end_layout
19033
19034 \end_inset
19035
19036  [
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 Command, Environment, None
19042 \end_layout
19043
19044 \end_inset
19045
19046 ] How the style should be translated into \SpecialChar LaTeX
19047 .
19048 \begin_inset Foot
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 LatexType
19057 \end_layout
19058
19059 \end_inset
19060
19061  is perhaps a bit misleading, since these rules apply to SGML classes too.
19062  Visit the SGML class files for specific examples.
19063 \end_layout
19064
19065 \end_inset
19066
19067
19068 \end_layout
19069
19070 \begin_deeper
19071 \begin_layout Description
19072 \begin_inset Flex Code
19073 status collapsed
19074
19075 \begin_layout Plain Layout
19076 None
19077 \end_layout
19078
19079 \end_inset
19080
19081  means nothing special
19082 \end_layout
19083
19084 \begin_layout Description
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 Command
19090 \end_layout
19091
19092 \end_inset
19093
19094  means 
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099
19100 \backslash
19101
19102 \emph on
19103 LatexName
19104 \emph default
19105 {\SpecialChar ldots
19106 }
19107 \end_layout
19108
19109 \end_inset
19110
19111
19112 \end_layout
19113
19114 \begin_layout Description
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 Environment
19120 \end_layout
19121
19122 \end_inset
19123
19124  means 
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129
19130 \backslash
19131 begin{
19132 \emph on
19133 LatexName
19134 \emph default
19135 }\SpecialChar ldots
19136
19137 \backslash
19138 end{
19139 \emph on
19140 LatexName
19141 \emph default
19142 }
19143 \end_layout
19144
19145 \end_inset
19146
19147
19148 \end_layout
19149
19150 \begin_layout Standard
19151 Putting the last few things together, the \SpecialChar LaTeX
19152  output will be either: 
19153 \end_layout
19154
19155 \begin_layout LyX-Code
19156
19157 \backslash
19158 LatexName[LatexParam]{\SpecialChar ldots
19159 }
19160 \end_layout
19161
19162 \begin_layout Standard
19163 or: 
19164 \end_layout
19165
19166 \begin_layout LyX-Code
19167
19168 \backslash
19169 begin{LatexName}[LatexParam] \SpecialChar ldots
19170  
19171 \backslash
19172 end{LatexName}
19173 \end_layout
19174
19175 \begin_layout Standard
19176 depending upon the \SpecialChar LaTeX
19177  type.
19178 \end_layout
19179
19180 \end_deeper
19181 \begin_layout Description
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 LeftDelim
19187 \end_layout
19188
19189 \end_inset
19190
19191  [
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 string
19197 \end_layout
19198
19199 \end_inset
19200
19201 ] A string that is put at the beginning of the layout content.
19202  A line break in the output can be indicated by 
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207 <br/>
19208 \end_layout
19209
19210 \end_inset
19211
19212 .
19213 \end_layout
19214
19215 \begin_layout Description
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 LyxType
19221 \end_layout
19222
19223 \end_inset
19224
19225  Can be 
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 charstyle
19231 \end_layout
19232
19233 \end_inset
19234
19235
19236 \begin_inset Flex Code
19237 status collapsed
19238
19239 \begin_layout Plain Layout
19240 custom
19241 \end_layout
19242
19243 \end_inset
19244
19245
19246 \begin_inset Flex Code
19247 status collapsed
19248
19249 \begin_layout Plain Layout
19250 element
19251 \end_layout
19252
19253 \end_inset
19254
19255  or 
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 end
19261 \end_layout
19262
19263 \end_inset
19264
19265  (indicating a dummy definition ending definitions of charstyles, etc).
19266  This entry is required in and is only meaningful for Flex insets.
19267  Among other things, it determines on which menu this inset will appear.
19268  Setting 
19269 \begin_inset Flex Code
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 LyxType
19274 \end_layout
19275
19276 \end_inset
19277
19278  to 
19279 \begin_inset Flex Code
19280 status collapsed
19281
19282 \begin_layout Plain Layout
19283 charstyle
19284 \end_layout
19285
19286 \end_inset
19287
19288  will automatically set 
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293 MultiPar
19294 \end_layout
19295
19296 \end_inset
19297
19298  to false and 
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303 ForcePlain
19304 \end_layout
19305
19306 \end_inset
19307
19308  to true.
19309  
19310 \begin_inset Flex Code
19311 status collapsed
19312
19313 \begin_layout Plain Layout
19314 MultiPar
19315 \end_layout
19316
19317 \end_inset
19318
19319  can be set to true, or 
19320 \begin_inset Flex Code
19321 status collapsed
19322
19323 \begin_layout Plain Layout
19324 ForcePlain
19325 \end_layout
19326
19327 \end_inset
19328
19329  to false, for 
19330 \begin_inset Flex Code
19331 status collapsed
19332
19333 \begin_layout Plain Layout
19334 charstyle
19335 \end_layout
19336
19337 \end_inset
19338
19339  insets by setting it 
19340 \emph on
19341 after
19342 \emph default
19343  you set the 
19344 \begin_inset Flex Code
19345 status collapsed
19346
19347 \begin_layout Plain Layout
19348 LyxType
19349 \end_layout
19350
19351 \end_inset
19352
19353 .
19354 \end_layout
19355
19356 \begin_layout Description
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361 MultiPar
19362 \end_layout
19363
19364 \end_inset
19365
19366  [
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371
19372 \emph on
19373 0
19374 \end_layout
19375
19376 \end_inset
19377
19378 ,
19379 \begin_inset space \thinspace{}
19380 \end_inset
19381
19382
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 1
19388 \end_layout
19389
19390 \end_inset
19391
19392 ] Whether multiple paragraphs are permitted in this inset.
19393  This will also set 
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 CustomPars
19399 \end_layout
19400
19401 \end_inset
19402
19403  to the same value and 
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 ForcePlain
19409 \end_layout
19410
19411 \end_inset
19412
19413  to the opposite value.
19414  These can be reset to other values, if they are used 
19415 \emph on
19416 after
19417 \emph default
19418  
19419 \begin_inset Flex Code
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423 MultiPar
19424 \end_layout
19425
19426 \end_inset
19427
19428 .
19429  Default is true.
19430 \end_layout
19431
19432 \begin_layout Description
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 NeedProtect
19438 \end_layout
19439
19440 \end_inset
19441
19442  [
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447
19448 \emph on
19449 0
19450 \end_layout
19451
19452 \end_inset
19453
19454 ,
19455 \begin_inset space \thinspace{}
19456 \end_inset
19457
19458
19459 \begin_inset Flex Code
19460 status collapsed
19461
19462 \begin_layout Plain Layout
19463 1
19464 \end_layout
19465
19466 \end_inset
19467
19468 ] Whether fragile commands in this inset should be 
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473
19474 \backslash
19475 protect
19476 \end_layout
19477
19478 \end_inset
19479
19480 'ed.
19481  (Note: This is 
19482 \emph on
19483 not
19484 \emph default
19485  whether the command should itself be protected.) Default is false.
19486 \end_layout
19487
19488 \begin_layout Description
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 NoInsetLayout
19494 \end_layout
19495
19496 \end_inset
19497
19498  [
19499 \begin_inset Flex Code
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 <layout>
19504 \end_layout
19505
19506 \end_inset
19507
19508 ] Deletes an existing 
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 InsetLayout
19514 \end_layout
19515
19516 \end_inset
19517
19518 .
19519 \end_layout
19520
19521 \begin_layout Description
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526 ObsoletedBy
19527 \end_layout
19528
19529 \end_inset
19530
19531  [
19532 \begin_inset Flex Code
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 <layout>
19537 \end_layout
19538
19539 \end_inset
19540
19541 ] Name of an 
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 InsetLayout
19547 \end_layout
19548
19549 \end_inset
19550
19551  that has replaced this 
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 InsetLayout
19557 \end_layout
19558
19559 \end_inset
19560
19561 .
19562  This is used to rename an 
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 InsetLayout
19568 \end_layout
19569
19570 \end_inset
19571
19572 , while keeping backward compatibility.
19573 \end_layout
19574
19575 \begin_layout Description
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 ParbreakIsNewline
19581 \end_layout
19582
19583 \end_inset
19584
19585  [
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590
19591 \emph on
19592 0
19593 \end_layout
19594
19595 \end_inset
19596
19597 ,
19598 \begin_inset space \thinspace{}
19599 \end_inset
19600
19601
19602 \begin_inset Flex Code
19603 status collapsed
19604
19605 \begin_layout Plain Layout
19606 1
19607 \end_layout
19608
19609 \end_inset
19610
19611 ] As with paragraph styles, see 
19612 \begin_inset CommandInset ref
19613 LatexCommand ref
19614 reference "subsec:Paragraph-Styles"
19615
19616 \end_inset
19617
19618 .
19619  Default is false.
19620 \end_layout
19621
19622 \begin_layout Description
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 PassThru
19628 \end_layout
19629
19630 \end_inset
19631
19632  [
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637
19638 \emph on
19639 0
19640 \end_layout
19641
19642 \end_inset
19643
19644 ,
19645 \begin_inset space \thinspace{}
19646 \end_inset
19647
19648
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 1
19654 \end_layout
19655
19656 \end_inset
19657
19658 ] As with paragraph styles, see 
19659 \begin_inset CommandInset ref
19660 LatexCommand ref
19661 reference "subsec:Paragraph-Styles"
19662
19663 \end_inset
19664
19665 .
19666  Default is false.
19667 \end_layout
19668
19669 \begin_layout Description
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 Preamble
19675 \end_layout
19676
19677 \end_inset
19678
19679  As with paragraph styles, see 
19680 \begin_inset CommandInset ref
19681 LatexCommand ref
19682 reference "subsec:Paragraph-Styles"
19683
19684 \end_inset
19685
19686 .
19687 \end_layout
19688
19689 \begin_layout Description
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 RefPrefix
19695 \end_layout
19696
19697 \end_inset
19698
19699  [
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 string
19705 \end_layout
19706
19707 \end_inset
19708
19709 ] The prefix to use when creating labels referring to insets of this type.
19710  This allows the use of formatted references.
19711 \end_layout
19712
19713 \begin_layout Description
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 Requires
19719 \end_layout
19720
19721 \end_inset
19722
19723  [
19724 \begin_inset Flex Code
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 string
19729 \end_layout
19730
19731 \end_inset
19732
19733 ] As with paragraph styles, see 
19734 \begin_inset CommandInset ref
19735 LatexCommand ref
19736 reference "subsec:Paragraph-Styles"
19737
19738 \end_inset
19739
19740 .
19741 \end_layout
19742
19743 \begin_layout Description
19744 \begin_inset Flex Code
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 ResetArgs
19749 \end_layout
19750
19751 \end_inset
19752
19753  [
19754 \begin_inset Flex Code
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758
19759 \emph on
19760 0
19761 \end_layout
19762
19763 \end_inset
19764
19765 ,
19766 \begin_inset space \thinspace{}
19767 \end_inset
19768
19769
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774 1
19775 \end_layout
19776
19777 \end_inset
19778
19779 ] Resets the \SpecialChar LaTeX
19780  arguments of this layout (as defined via the 
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 Argument
19786 \end_layout
19787
19788 \end_inset
19789
19790  tag).
19791  This is useful if you have copied a style via 
19792 \begin_inset Flex Code
19793 status collapsed
19794
19795 \begin_layout Plain Layout
19796 CopyStyle
19797 \end_layout
19798
19799 \end_inset
19800
19801 , but you do not want to inherit its (required and optional) arguments.
19802 \end_layout
19803
19804 \begin_layout Description
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 ResetsFont
19810 \end_layout
19811
19812 \end_inset
19813
19814  [
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 0
19820 \end_layout
19821
19822 \end_inset
19823
19824 ,
19825 \begin_inset space \thinspace{}
19826 \end_inset
19827
19828
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833
19834 \emph on
19835 1
19836 \end_layout
19837
19838 \end_inset
19839
19840 ] Whether this inset should use the font of its surrounding environment
19841  or uses its own.
19842  Default is false: use the font of the surrounding environment.
19843 \end_layout
19844
19845 \begin_layout Description
19846 \begin_inset Flex Code
19847 status collapsed
19848
19849 \begin_layout Plain Layout
19850 RightDelim
19851 \end_layout
19852
19853 \end_inset
19854
19855  [
19856 \begin_inset Flex Code
19857 status collapsed
19858
19859 \begin_layout Plain Layout
19860 string
19861 \end_layout
19862
19863 \end_inset
19864
19865 ] A string that is put at the end of the layout content.
19866  A line break in the output can be indicated by 
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 <br/>
19872 \end_layout
19873
19874 \end_inset
19875
19876 .
19877 \end_layout
19878
19879 \begin_layout Description
19880 \begin_inset Flex Code
19881 status collapsed
19882
19883 \begin_layout Plain Layout
19884 Spellcheck
19885 \end_layout
19886
19887 \end_inset
19888
19889  [
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894 0
19895 \end_layout
19896
19897 \end_inset
19898
19899 ,
19900 \begin_inset space \thinspace{}
19901 \end_inset
19902
19903
19904 \begin_inset Flex Code
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908
19909 \emph on
19910 1
19911 \end_layout
19912
19913 \end_inset
19914
19915 ] Allow spell-checking the contents of this inset.
19916  Default is true.
19917 \end_layout
19918
19919 \begin_layout Subsection
19920 Counters
19921 \begin_inset CommandInset label
19922 LatexCommand label
19923 name "subsec:Counters"
19924
19925 \end_inset
19926
19927
19928 \end_layout
19929
19930 \begin_layout Standard
19931 It is necessary to define the counters (
19932 \begin_inset Flex Noun
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 chapter
19937 \end_layout
19938
19939 \end_inset
19940
19941
19942 \begin_inset Flex Noun
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 figure
19947 \end_layout
19948
19949 \end_inset
19950
19951 , \SpecialChar ldots
19952 ) in the text class itself.
19953  The standard counters are defined in the file 
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958 stdcounters.inc
19959 \end_layout
19960
19961 \end_inset
19962
19963 , so you may have to do no more than add
19964 \end_layout
19965
19966 \begin_layout LyX-Code
19967 Input stdcounters.inc
19968 \end_layout
19969
19970 \begin_layout Standard
19971 to your layout file to get them to work.
19972  But if you want to define custom counters, then you can do so.
19973  The counter declaration must begin with:
19974 \end_layout
19975
19976 \begin_layout LyX-Code
19977 Counter CounterName
19978 \end_layout
19979
19980 \begin_layout Standard
19981 where of course `
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 CounterName
19987 \end_layout
19988
19989 \end_inset
19990
19991 ' is replaced by the name of the counter.
19992  And it must end with 
19993 \begin_inset Quotes eld
19994 \end_inset
19995
19996
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 End
20002 \end_layout
20003
20004 \end_inset
20005
20006
20007 \begin_inset Quotes erd
20008 \end_inset
20009
20010 .
20011  The following parameters can also be used:
20012 \end_layout
20013
20014 \begin_layout Description
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 InitialValue
20020 \end_layout
20021
20022 \end_inset
20023
20024  [
20025 \begin_inset Flex Code
20026 status collapsed
20027
20028 \begin_layout Plain Layout
20029 int=1
20030 \end_layout
20031
20032 \end_inset
20033
20034 ] Sets the initial value for the counter, to which it will be reset whenever
20035  that happens.
20036  Normally, one will want the default, 1.
20037 \end_layout
20038
20039 \begin_layout Description
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 LabelString
20045 \end_layout
20046
20047 \end_inset
20048
20049  [
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 string
20055 \end_layout
20056
20057 \end_inset
20058
20059 =
20060 \begin_inset Quotes erd
20061 \end_inset
20062
20063
20064 \begin_inset Quotes erd
20065 \end_inset
20066
20067 ] When defined, this string defines how the counter is displayed.
20068  Setting this value sets 
20069 \begin_inset Flex Code
20070 status collapsed
20071
20072 \begin_layout Plain Layout
20073 LabelStringAppendix
20074 \end_layout
20075
20076 \end_inset
20077
20078  to the same value.
20079  The following special constructs can be used in the string:
20080 \end_layout
20081
20082 \begin_deeper
20083 \begin_layout Itemize
20084 \begin_inset Flex Code
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088
20089 \backslash
20090 thecounter
20091 \end_layout
20092
20093 \end_inset
20094
20095  will be replaced by the expansion of the 
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 LabelString
20101 \end_layout
20102
20103 \end_inset
20104
20105  (or 
20106 \begin_inset Flex Code
20107 status collapsed
20108
20109 \begin_layout Plain Layout
20110 LabelStringAppendix
20111 \end_layout
20112
20113 \end_inset
20114
20115 ) of the counter 
20116 \begin_inset Flex Code
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120 counter
20121 \end_layout
20122
20123 \end_inset
20124
20125 .
20126  
20127 \end_layout
20128
20129 \begin_layout Itemize
20130 counter values can be expressed using \SpecialChar LaTeX
20131 -like macros
20132 \begin_inset Newline newline
20133 \end_inset
20134
20135
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140
20141 \backslash
20142
20143 \emph on
20144 numbertype
20145 \emph default
20146 {
20147 \emph on
20148 counter
20149 \emph default
20150 }
20151 \end_layout
20152
20153 \end_inset
20154
20155 , where 
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160
20161 \emph on
20162 numbertype
20163 \end_layout
20164
20165 \end_inset
20166
20167  can be:
20168 \begin_inset Foot
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172
20173 \family roman
20174 \series medium
20175 \shape up
20176 \size normal
20177 \emph off
20178 \bar no
20179 \noun off
20180 \color none
20181 Actually, the situation is a bit more complicated: any
20182 \family default
20183 \series default
20184 \shape default
20185 \emph default
20186 \bar default
20187  
20188 \size default
20189 \emph on
20190 \noun default
20191 \color inherit
20192 numbertype
20193 \family roman
20194 \series medium
20195 \shape up
20196 \size normal
20197 \emph off
20198 \bar no
20199 \noun off
20200  other than those described below will produce arabic numerals.
20201  It would not be surprising to see this change in the future.
20202 \end_layout
20203
20204 \end_inset
20205
20206  
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 arabic
20212 \end_layout
20213
20214 \end_inset
20215
20216 : 1, 2, 3,\SpecialChar ldots
20217
20218 \begin_inset Flex Code
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 alph
20223 \end_layout
20224
20225 \end_inset
20226
20227  for lower-case letters: a, b, c, \SpecialChar ldots
20228
20229 \begin_inset Flex Code
20230 status collapsed
20231
20232 \begin_layout Plain Layout
20233 Alph
20234 \end_layout
20235
20236 \end_inset
20237
20238  for upper-case letters: A, B, C, \SpecialChar ldots
20239
20240 \begin_inset Flex Code
20241 status collapsed
20242
20243 \begin_layout Plain Layout
20244 roman
20245 \end_layout
20246
20247 \end_inset
20248
20249  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20250
20251 \begin_inset Flex Code
20252 status collapsed
20253
20254 \begin_layout Plain Layout
20255 Roman
20256 \end_layout
20257
20258 \end_inset
20259
20260  for upper-case roman numerals: I, II, III\SpecialChar ldots
20261
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 hebrew
20267 \end_layout
20268
20269 \end_inset
20270
20271  for hebrew numerals.
20272 \end_layout
20273
20274 \end_deeper
20275 \begin_layout Standard
20276 If LabelString is not defined, a default value is constructed as follows:
20277  if the counter has a master counter 
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 master
20283 \end_layout
20284
20285 \end_inset
20286
20287  (defined via 
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 Within
20293 \end_layout
20294
20295 \end_inset
20296
20297 ), the string
20298 \begin_inset Newline newline
20299 \end_inset
20300
20301
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306
20307 \backslash
20308 themaster.
20309 \backslash
20310 arabic{counter}
20311 \end_layout
20312
20313 \end_inset
20314
20315  is used; otherwise the string 
20316 \begin_inset Flex Code
20317 status collapsed
20318
20319 \begin_layout Plain Layout
20320
20321 \backslash
20322 arabic{counter}
20323 \end_layout
20324
20325 \end_inset
20326
20327  is used.
20328 \end_layout
20329
20330 \begin_layout Description
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 LabelStringAppendix
20336 \end_layout
20337
20338 \end_inset
20339
20340  [
20341 \begin_inset Flex Code
20342 status collapsed
20343
20344 \begin_layout Plain Layout
20345 string
20346 \end_layout
20347
20348 \end_inset
20349
20350 =
20351 \begin_inset Quotes erd
20352 \end_inset
20353
20354
20355 \begin_inset Quotes erd
20356 \end_inset
20357
20358 ] Same as 
20359 \begin_inset Flex Code
20360 status collapsed
20361
20362 \begin_layout Plain Layout
20363 LabelString
20364 \end_layout
20365
20366 \end_inset
20367
20368 , but for use in the Appendix.
20369 \end_layout
20370
20371 \begin_layout Description
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 PrettyFormat
20377 \end_layout
20378
20379 \end_inset
20380
20381  [
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 string
20387 \end_layout
20388
20389 \end_inset
20390
20391 =
20392 \begin_inset Quotes erd
20393 \end_inset
20394
20395
20396 \begin_inset Quotes erd
20397 \end_inset
20398
20399 ] A format for use with formatted references to this counter.
20400  For example, one might want to have references to section numbers appear
20401  as 
20402 \begin_inset Quotes eld
20403 \end_inset
20404
20405 Section 2.4
20406 \begin_inset Quotes erd
20407 \end_inset
20408
20409 .
20410  The string should contain 
20411 \begin_inset Quotes eld
20412 \end_inset
20413
20414 ##
20415 \begin_inset Quotes erd
20416 \end_inset
20417
20418 .
20419  This will be replaced by the counter number itself.
20420  So, for sections, it would be: Section ##.
20421 \end_layout
20422
20423 \begin_layout Description
20424 \begin_inset Flex Code
20425 status collapsed
20426
20427 \begin_layout Plain Layout
20428 Within
20429 \end_layout
20430
20431 \end_inset
20432
20433  [
20434 \begin_inset Flex Code
20435 status collapsed
20436
20437 \begin_layout Plain Layout
20438 string
20439 \end_layout
20440
20441 \end_inset
20442
20443 =
20444 \begin_inset Quotes erd
20445 \end_inset
20446
20447
20448 \begin_inset Quotes erd
20449 \end_inset
20450
20451 ] If this is set to the name of another counter, the present counter will
20452  be reset every time the other one is increased.
20453  For example, 
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 subsection
20459 \end_layout
20460
20461 \end_inset
20462
20463  is numbered inside 
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468 section
20469 \end_layout
20470
20471 \end_inset
20472
20473 .
20474 \end_layout
20475
20476 \begin_layout Subsection
20477 Font description
20478 \begin_inset CommandInset label
20479 LatexCommand label
20480 name "subsec:Font-description"
20481
20482 \end_inset
20483
20484
20485 \end_layout
20486
20487 \begin_layout Standard
20488 A font description looks like this:
20489 \end_layout
20490
20491 \begin_layout LyX-Code
20492 Font 
20493 \family roman
20494 \emph on
20495 or
20496 \family default
20497 \emph default
20498  LabelFont
20499 \emph on
20500  or
20501 \emph default
20502  DefaultFont
20503 \end_layout
20504
20505 \begin_layout LyX-Code
20506  ...
20507 \end_layout
20508
20509 \begin_layout LyX-Code
20510 EndFont
20511 \end_layout
20512
20513 \begin_layout Standard
20514 The following commands are available:
20515 \end_layout
20516
20517 \begin_layout Description
20518 \begin_inset Flex Code
20519 status collapsed
20520
20521 \begin_layout Plain Layout
20522 Color
20523 \end_layout
20524
20525 \end_inset
20526
20527  [
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532
20533 \emph on
20534 none
20535 \end_layout
20536
20537 \end_inset
20538
20539
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 black
20545 \end_layout
20546
20547 \end_inset
20548
20549
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 white
20555 \end_layout
20556
20557 \end_inset
20558
20559
20560 \begin_inset Flex Code
20561 status collapsed
20562
20563 \begin_layout Plain Layout
20564 red
20565 \end_layout
20566
20567 \end_inset
20568
20569
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 green
20575 \end_layout
20576
20577 \end_inset
20578
20579
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 blue
20585 \end_layout
20586
20587 \end_inset
20588
20589
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 cyan
20595 \end_layout
20596
20597 \end_inset
20598
20599
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 magenta
20605 \end_layout
20606
20607 \end_inset
20608
20609
20610 \begin_inset Flex Code
20611 status collapsed
20612
20613 \begin_layout Plain Layout
20614 yellow
20615 \end_layout
20616
20617 \end_inset
20618
20619
20620 \begin_inset Flex Code
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 brown
20625 \end_layout
20626
20627 \end_inset
20628
20629
20630 \begin_inset Flex Code
20631 status collapsed
20632
20633 \begin_layout Plain Layout
20634 darkgray
20635 \end_layout
20636
20637 \end_inset
20638
20639
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644 gray
20645 \end_layout
20646
20647 \end_inset
20648
20649
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654 lightgray
20655 \end_layout
20656
20657 \end_inset
20658
20659
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664 lime
20665 \end_layout
20666
20667 \end_inset
20668
20669
20670 \begin_inset Flex Code
20671 status collapsed
20672
20673 \begin_layout Plain Layout
20674 orange
20675 \end_layout
20676
20677 \end_inset
20678
20679
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 olive
20685 \end_layout
20686
20687 \end_inset
20688
20689
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 pink
20695 \end_layout
20696
20697 \end_inset
20698
20699
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 purple
20705 \end_layout
20706
20707 \end_inset
20708
20709
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 teal
20715 \end_layout
20716
20717 \end_inset
20718
20719
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 violet
20725 \end_layout
20726
20727 \end_inset
20728
20729 ]
20730 \end_layout
20731
20732 \begin_layout Description
20733 \begin_inset Flex Code
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737 Family
20738 \end_layout
20739
20740 \end_inset
20741
20742  [
20743 \begin_inset Flex Code
20744 status collapsed
20745
20746 \begin_layout Plain Layout
20747
20748 \emph on
20749 Roman
20750 \end_layout
20751
20752 \end_inset
20753
20754
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 Sans
20760 \end_layout
20761
20762 \end_inset
20763
20764
20765 \begin_inset Flex Code
20766 status collapsed
20767
20768 \begin_layout Plain Layout
20769 Typewriter
20770 \end_layout
20771
20772 \end_inset
20773
20774 ]
20775 \end_layout
20776
20777 \begin_layout Description
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782 Misc
20783 \end_layout
20784
20785 \end_inset
20786
20787  [
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 string
20793 \end_layout
20794
20795 \end_inset
20796
20797 ] Valid arguments are: 
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802 emph
20803 \end_layout
20804
20805 \end_inset
20806
20807
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 noun
20813 \end_layout
20814
20815 \end_inset
20816
20817
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 strikeout
20823 \end_layout
20824
20825 \end_inset
20826
20827
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 underbar
20833 \end_layout
20834
20835 \end_inset
20836
20837
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 uuline
20843 \end_layout
20844
20845 \end_inset
20846
20847
20848 \begin_inset Flex Code
20849 status collapsed
20850
20851 \begin_layout Plain Layout
20852 uwave
20853 \end_layout
20854
20855 \end_inset
20856
20857
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 no_emph
20863 \end_layout
20864
20865 \end_inset
20866
20867
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 no_noun
20873 \end_layout
20874
20875 \end_inset
20876
20877
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 no_strikeout
20883 \end_layout
20884
20885 \end_inset
20886
20887
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 no_bar
20893 \end_layout
20894
20895 \end_inset
20896
20897
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 no_uuline
20903 \end_layout
20904
20905 \end_inset
20906
20907  and 
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 no_uwave
20913 \end_layout
20914
20915 \end_inset
20916
20917 .
20918  Each of these turns on or off the corresponding attribute.
20919  For example, 
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 emph
20925 \end_layout
20926
20927 \end_inset
20928
20929  turns on emphasis, and 
20930 \begin_inset Flex Code
20931 status collapsed
20932
20933 \begin_layout Plain Layout
20934 no_emph
20935 \end_layout
20936
20937 \end_inset
20938
20939  turns it off.
20940  
20941 \begin_inset Newline newline
20942 \end_inset
20943
20944 If the latter seems puzzling, remember that the font settings for the present
20945  context are generally inherited from the surrounding context.
20946  So 
20947 \begin_inset Flex Code
20948 status collapsed
20949
20950 \begin_layout Plain Layout
20951 no_emph
20952 \end_layout
20953
20954 \end_inset
20955
20956  would turn off the emphasis that was anyway in effect, say, in a theorem
20957  environment.
20958 \end_layout
20959
20960 \begin_layout Description
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 Series
20966 \end_layout
20967
20968 \end_inset
20969
20970  [
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975
20976 \emph on
20977 Medium
20978 \end_layout
20979
20980 \end_inset
20981
20982
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 Bold
20988 \end_layout
20989
20990 \end_inset
20991
20992
20993 \end_layout
20994
20995 \begin_layout Description
20996 \begin_inset Flex Code
20997 status collapsed
20998
20999 \begin_layout Plain Layout
21000 Shape
21001 \end_layout
21002
21003 \end_inset
21004
21005  [
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010
21011 \emph on
21012 Up
21013 \end_layout
21014
21015 \end_inset
21016
21017
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 Italic
21023 \end_layout
21024
21025 \end_inset
21026
21027
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 SmallCaps
21033 \end_layout
21034
21035 \end_inset
21036
21037
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 Slanted
21043 \end_layout
21044
21045 \end_inset
21046
21047
21048 \end_layout
21049
21050 \begin_layout Description
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 Size
21056 \end_layout
21057
21058 \end_inset
21059
21060  [
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 tiny
21066 \end_layout
21067
21068 \end_inset
21069
21070
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 small
21076 \end_layout
21077
21078 \end_inset
21079
21080
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085
21086 \emph on
21087 normal
21088 \end_layout
21089
21090 \end_inset
21091
21092
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 large
21098 \end_layout
21099
21100 \end_inset
21101
21102
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 larger
21108 \end_layout
21109
21110 \end_inset
21111
21112
21113 \begin_inset Flex Code
21114 status collapsed
21115
21116 \begin_layout Plain Layout
21117 largest
21118 \end_layout
21119
21120 \end_inset
21121
21122
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 huge
21128 \end_layout
21129
21130 \end_inset
21131
21132
21133 \begin_inset Flex Code
21134 status collapsed
21135
21136 \begin_layout Plain Layout
21137 giant
21138 \end_layout
21139
21140 \end_inset
21141
21142 ]
21143 \end_layout
21144
21145 \begin_layout Subsection
21146 \begin_inset CommandInset label
21147 LatexCommand label
21148 name "subsec:Citation-engine-description"
21149
21150 \end_inset
21151
21152 Citation engine description
21153 \end_layout
21154
21155 \begin_layout Standard
21156 The 
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 CiteEngine
21162 \end_layout
21163
21164 \end_inset
21165
21166  blocks, as used mainly in cite engine files (see 
21167 \begin_inset CommandInset ref
21168 LatexCommand ref
21169 reference "subsec:Cite-Engine-Files"
21170 plural "false"
21171 caps "false"
21172 noprefix "false"
21173
21174 \end_inset
21175
21176 ), define the citation commands provided by a specific 
21177 \begin_inset Quotes eld
21178 \end_inset
21179
21180 cite engine
21181 \begin_inset Quotes erd
21182 \end_inset
21183
21184 .
21185  A cite engine, in \SpecialChar LyX
21186  terms, is way specific way to format citations, using
21187  numbers, author names and/or years.
21188  Currently, \SpecialChar LyX
21189  supports three such engine types, namely:
21190 \end_layout
21191
21192 \begin_layout Enumerate
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 default
21198 \end_layout
21199
21200 \end_inset
21201
21202 : the default Bib\SpecialChar TeX
21203  way to format citations, a simple numeric style (e.
21204 \begin_inset space \thinspace{}
21205 \end_inset
21206
21207 g., 
21208 \begin_inset Quotes eld
21209 \end_inset
21210
21211 [1]
21212 \begin_inset Quotes erd
21213 \end_inset
21214
21215 )
21216 \end_layout
21217
21218 \begin_layout Enumerate
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 authoryear
21224 \end_layout
21225
21226 \end_inset
21227
21228 : Harvard-styled citations using author names and publication year (e.
21229 \begin_inset space \thinspace{}
21230 \end_inset
21231
21232 g., 
21233 \begin_inset Quotes eld
21234 \end_inset
21235
21236 Smith and Miller (2017b)
21237 \begin_inset Quotes erd
21238 \end_inset
21239
21240 )
21241 \end_layout
21242
21243 \begin_layout Enumerate
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248 numerical
21249 \end_layout
21250
21251 \end_inset
21252
21253 : extended numerical citations that also allow for author or title next
21254  to the number (e.
21255 \begin_inset space \thinspace{}
21256 \end_inset
21257
21258 g., 
21259 \begin_inset Quotes eld
21260 \end_inset
21261
21262 Smith and Miller [1]
21263 \begin_inset Quotes erd
21264 \end_inset
21265
21266 )
21267 \end_layout
21268
21269 \begin_layout Standard
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274 CiteEngine
21275 \end_layout
21276
21277 \end_inset
21278
21279  blocks look like this:
21280 \end_layout
21281
21282 \begin_layout LyX-Code
21283 CiteEngine default
21284 \end_layout
21285
21286 \begin_layout LyX-Code
21287  cite
21288 \end_layout
21289
21290 \begin_layout LyX-Code
21291  Citep*[][]
21292 \end_layout
21293
21294 \begin_layout LyX-Code
21295  citeyearpar[][]=parencite*
21296 \end_layout
21297
21298 \begin_layout LyX-Code
21299  ...
21300 \end_layout
21301
21302 \begin_layout LyX-Code
21303 End
21304 \end_layout
21305
21306 \begin_layout Standard
21307 The tag following 
21308 \begin_inset Flex Code
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312 CiteEngine
21313 \end_layout
21314
21315 \end_inset
21316
21317  denotes the engine.
21318  The individual lines respectively define a cite command or cite command
21319  paradigm supported by this engine.
21320  The line can be as simple as a cite command that is used both to name the
21321  respective \SpecialChar LyX
21322  command and the \SpecialChar LaTeX
21323  output or more complex in order to differentiate
21324  things.
21325  The full syntax is:
21326 \end_layout
21327
21328 \begin_layout LyX-Code
21329 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21330 \end_layout
21331
21332 \begin_layout Itemize
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 LyXName
21338 \end_layout
21339
21340 \end_inset
21341
21342 : The name as used in the 
21343 \begin_inset Flex Code
21344 status collapsed
21345
21346 \begin_layout Plain Layout
21347 *.lyx
21348 \end_layout
21349
21350 \end_inset
21351
21352  file.
21353 \end_layout
21354
21355 \begin_deeper
21356 \begin_layout Standard
21357 For portability reasons, we try to use the same name for same-formatted
21358  commands in different cite packages (thus many names stem from natbib,
21359  and thus we need to differentiate a 
21360 \begin_inset Flex Code
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 latexcmd
21365 \end_layout
21366
21367 \end_inset
21368
21369  sometimes, if the \SpecialChar LaTeX
21370  command names differ).
21371 \end_layout
21372
21373 \end_deeper
21374 \begin_layout Itemize
21375 \begin_inset Flex Code
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379 alias
21380 \end_layout
21381
21382 \end_inset
21383
21384 : a (comma-separated) list of commands that fall back to the given 
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 LyXName
21390 \end_layout
21391
21392 \end_inset
21393
21394  in the current engine.
21395  This eases the switch of citation packages and engines.
21396  The 
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 alias
21402 \end_layout
21403
21404 \end_inset
21405
21406  can be compared to 
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 ObsoletedBy
21412 \end_layout
21413
21414 \end_inset
21415
21416  in layout definitions.
21417 \end_layout
21418
21419 \begin_layout Itemize
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 latexcmd
21425 \end_layout
21426
21427 \end_inset
21428
21429 : The actual \SpecialChar LaTeX
21430  command that is output.
21431  
21432 \end_layout
21433
21434 \begin_layout Standard
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 Alias
21440 \end_layout
21441
21442 \end_inset
21443
21444  and 
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 latexcmd
21450 \end_layout
21451
21452 \end_inset
21453
21454  are optional.
21455  If no 
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 latexcmd
21461 \end_layout
21462
21463 \end_inset
21464
21465  is given, the 
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 LyXName
21471 \end_layout
21472
21473 \end_inset
21474
21475  will be output to \SpecialChar LaTeX
21476 .
21477 \end_layout
21478
21479 \begin_layout Standard
21480 Note further:
21481 \end_layout
21482
21483 \begin_layout Itemize
21484 Capitalization indicates that the command also has a capitalized form (
21485 \begin_inset Flex Code
21486 status collapsed
21487
21488 \begin_layout Plain Layout
21489
21490 \backslash
21491 Latexcmd
21492 \end_layout
21493
21494 \end_inset
21495
21496  vs.
21497  
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502
21503 \backslash
21504 latexcmd
21505 \end_layout
21506
21507 \end_inset
21508
21509 ).
21510  These usually enforce up-casing of name prefixes (
21511 \emph on
21512 von Goethe
21513 \emph default
21514  
21515 \begin_inset Formula $\Rightarrow$
21516 \end_inset
21517
21518  
21519 \emph on
21520 Von Goethe
21521 \emph default
21522 ).
21523 \end_layout
21524
21525 \begin_layout Itemize
21526 Brackets 
21527 \begin_inset Flex Code
21528 status collapsed
21529
21530 \begin_layout Plain Layout
21531 []
21532 \end_layout
21533
21534 \end_inset
21535
21536  indicate the number of optional arguments (there can be 0–2).
21537 \end_layout
21538
21539 \begin_layout Itemize
21540 A star 
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 *
21546 \end_layout
21547
21548 \end_inset
21549
21550  indicates there is a starred version of the command (
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555
21556 \backslash
21557 latexcmd*
21558 \end_layout
21559
21560 \end_inset
21561
21562  vs.
21563  
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568
21569 \backslash
21570 latexcmd
21571 \end_layout
21572
21573 \end_inset
21574
21575 ).
21576  
21577 \end_layout
21578
21579 \begin_deeper
21580 \begin_layout Standard
21581 By default, the starred version means: Output all authors even if it should
21582  be shortened with 
21583 \begin_inset Quotes eld
21584 \end_inset
21585
21586 et al.
21587 \begin_inset Quotes erd
21588 \end_inset
21589
21590  due to the 
21591 \begin_inset Flex Code
21592 status collapsed
21593
21594 \begin_layout Plain Layout
21595 MaxCiteNames
21596 \end_layout
21597
21598 \end_inset
21599
21600  threshold.
21601 \end_layout
21602
21603 \begin_layout Standard
21604 If the star has a different meaning for a given command, it can be specified
21605  in angle brackets: 
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 <!_stardesc!_stardesctooltip>
21611 \end_layout
21612
21613 \end_inset
21614
21615 .
21616  Maximal two translatable macro keywords, marked by the prefix 
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 !_
21622 \end_layout
21623
21624 \end_inset
21625
21626 , can be given.
21627  The first points to the string that replaces the 
21628 \begin_inset Quotes eld
21629 \end_inset
21630
21631 Full aut&hor list
21632 \begin_inset Quotes erd
21633 \end_inset
21634
21635  checkbox label in the citation dialog, the second one to an optional tool
21636  tip for this checkbox.
21637  
21638 \end_layout
21639
21640 \begin_layout Standard
21641 Note that these two macros have to be defined in a 
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646 CiteFormat
21647 \end_layout
21648
21649 \end_inset
21650
21651  (see next section), dropping the 
21652 \begin_inset Flex Code
21653 status collapsed
21654
21655 \begin_layout Plain Layout
21656 !
21657 \end_layout
21658
21659 \end_inset
21660
21661  from the prefix, like this: 
21662 \end_layout
21663
21664 \begin_layout LyX-Code
21665 _stardesc Sta&rred command label
21666 \end_layout
21667
21668 \begin_layout LyX-Code
21669 _stardesctooltip Tooltip for the starred command checkbox.
21670 \end_layout
21671
21672 \end_deeper
21673 \begin_layout Itemize
21674 A dollar sign 
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 $
21680 \end_layout
21681
21682 \end_inset
21683
21684  indicates that this command features 
21685 \begin_inset Quotes eld
21686 \end_inset
21687
21688 qualified citation lists
21689 \begin_inset Quotes erd
21690 \end_inset
21691
21692 .
21693  This is a 
21694 \family sans
21695 Biblatex
21696 \family default
21697 -specific feature for multi-reference citations where an individual pre-
21698  and postnote can be given to each reference in the list.
21699  Please refer to the 
21700 \family sans
21701 Biblatex
21702 \family default
21703  manual for details.
21704 \end_layout
21705
21706 \begin_layout Subsection
21707 \begin_inset CommandInset label
21708 LatexCommand label
21709 name "subsec:Citation-format-description"
21710
21711 \end_inset
21712
21713 Citation format description
21714 \end_layout
21715
21716 \begin_layout Standard
21717 The 
21718 \begin_inset Flex Code
21719 status collapsed
21720
21721 \begin_layout Plain Layout
21722 CiteFormat
21723 \end_layout
21724
21725 \end_inset
21726
21727  blocks are used to describe how bibliographic information should be displayed,
21728  both within \SpecialChar LyX
21729  itself (in the citation dialog and in tooltips, for example)
21730  and in XHTML output.
21731  Such a block might look like this:
21732 \end_layout
21733
21734 \begin_layout LyX-Code
21735 CiteFormat
21736 \end_layout
21737
21738 \begin_layout LyX-Code
21739  article ...
21740 \end_layout
21741
21742 \begin_layout LyX-Code
21743  book ...
21744 \end_layout
21745
21746 \begin_layout LyX-Code
21747 End
21748 \end_layout
21749
21750 \begin_layout Standard
21751 or
21752 \end_layout
21753
21754 \begin_layout LyX-Code
21755 CiteFormat
21756 \end_layout
21757
21758 \begin_layout LyX-Code
21759  cite ...
21760 \end_layout
21761
21762 \begin_layout LyX-Code
21763  citet*[][] ...
21764 \end_layout
21765
21766 \begin_layout LyX-Code
21767 End
21768 \end_layout
21769
21770 \begin_layout Standard
21771 In the first case, the individual lines define how the bibliographic information
21772  associated with an article or book, respectively, is to be displayed, and
21773  such a definition can be given for any 
21774 \begin_inset Quotes els
21775 \end_inset
21776
21777 entry type
21778 \begin_inset Quotes ers
21779 \end_inset
21780
21781  that might be present in a Bib\SpecialChar TeX
21782  file.
21783  \SpecialChar LyX
21784  defines a default format in the source code that will be used if no specific
21785  definition has been given.
21786  \SpecialChar LyX
21787  predefines several formats in the file 
21788 \begin_inset Flex Code
21789 status collapsed
21790
21791 \begin_layout Plain Layout
21792 stdciteformats.inc
21793 \end_layout
21794
21795 \end_inset
21796
21797 , which is included in most of \SpecialChar LyX
21798 's document classes.
21799 \end_layout
21800
21801 \begin_layout Standard
21802 In the second case, the lines define how a specific citation command (in
21803  the example 
21804 \begin_inset Flex Code
21805 status collapsed
21806
21807 \begin_layout Plain Layout
21808
21809 \backslash
21810 cite
21811 \end_layout
21812
21813 \end_inset
21814
21815
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820
21821 \backslash
21822 citet
21823 \end_layout
21824
21825 \end_inset
21826
21827 ) is to be displayed on the citation inset label, in the citation dialog,
21828  menu or XHTML output.
21829  \SpecialChar LyX
21830  defines such formats for the citation style variants it supports via 
21831 \family sans
21832 Document\SpecialChar menuseparator
21833 Setting\SpecialChar menuseparator
21834 Bibliography\SpecialChar ldots
21835
21836 \family default
21837  in specific 
21838 \begin_inset Flex Code
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 *.citeengine
21843 \end_layout
21844
21845 \end_inset
21846
21847  files that are shipped with \SpecialChar LyX
21848  (see 
21849 \begin_inset CommandInset ref
21850 LatexCommand ref
21851 reference "subsec:Cite-Engine-Files"
21852 plural "false"
21853 caps "false"
21854 noprefix "false"
21855
21856 \end_inset
21857
21858 ).
21859 \end_layout
21860
21861 \begin_layout Standard
21862 The definitions use a simple language that allows Bib\SpecialChar TeX
21863  keys to be replaced
21864  with their values.
21865  Keys should be enclosed in 
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 %
21871 \end_layout
21872
21873 \end_inset
21874
21875  signs, e.g.: 
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880 %author%
21881 \end_layout
21882
21883 \end_inset
21884
21885 .
21886  So a simple definition might look like this:
21887 \end_layout
21888
21889 \begin_layout LyX-Code
21890 misc %author%, 
21891 \begin_inset Quotes eld
21892 \end_inset
21893
21894 %title%
21895 \begin_inset Quotes erd
21896 \end_inset
21897
21898 .
21899 \end_layout
21900
21901 \begin_layout Standard
21902 This would print the author, followed by a comma, followed by the title,
21903  in quotes, followed by a period.
21904 \end_layout
21905
21906 \begin_layout Standard
21907 Of course, sometimes you may want to print a key only if it exists.
21908  This can be done by using a conditional construction, such as: 
21909 \begin_inset Flex Code
21910 status collapsed
21911
21912 \begin_layout Plain Layout
21913 {%volume%[[vol.
21914 \begin_inset space ~
21915 \end_inset
21916
21917 %volume%]]}
21918 \end_layout
21919
21920 \end_inset
21921
21922 .
21923  This says: If the 
21924 \begin_inset Flex Code
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 volume
21929 \end_layout
21930
21931 \end_inset
21932
21933  key exists, then print 
21934 \begin_inset Quotes eld
21935 \end_inset
21936
21937 vol.
21938 \begin_inset space ~
21939 \end_inset
21940
21941
21942 \begin_inset Quotes erd
21943 \end_inset
21944
21945  followed by the volume key.
21946  It is also possible to have an else clause in the conditional, such as:
21947 \begin_inset Newline newline
21948 \end_inset
21949
21950
21951 \begin_inset Flex Code
21952 status collapsed
21953
21954 \begin_layout Plain Layout
21955 {%author%[[%author%]][[%editor%, ed.]]}
21956 \end_layout
21957
21958 \end_inset
21959
21960 .
21961 \begin_inset Newline newline
21962 \end_inset
21963
21964 Here, the 
21965 \begin_inset Flex Code
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969 author
21970 \end_layout
21971
21972 \end_inset
21973
21974  key is printed if it exists; otherwise, the editor key is printed, followed
21975  by 
21976 \begin_inset Quotes eld
21977 \end_inset
21978
21979 ,
21980 \begin_inset space ~
21981 \end_inset
21982
21983 ed.
21984 \begin_inset Quotes erd
21985 \end_inset
21986
21987  Note that the key is again enclosed in 
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 %
21993 \end_layout
21994
21995 \end_inset
21996
21997  signs; the entire conditional is enclosed in braces; and the if and else
21998  clauses are enclosed in double brackets, 
21999 \begin_inset Quotes eld
22000 \end_inset
22001
22002
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 [[
22008 \end_layout
22009
22010 \end_inset
22011
22012
22013 \begin_inset Quotes eld
22014 \end_inset
22015
22016  and 
22017 \begin_inset Quotes eld
22018 \end_inset
22019
22020
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 ]]
22026 \end_layout
22027
22028 \end_inset
22029
22030
22031 \begin_inset Quotes erd
22032 \end_inset
22033
22034 .
22035  There must be no space between any of these.
22036 \end_layout
22037
22038 \begin_layout Standard
22039 Next to the entry keys, there are some special keys that can be used for
22040  these conditionals:
22041 \end_layout
22042
22043 \begin_layout Itemize
22044 \begin_inset Flex Code
22045 status collapsed
22046
22047 \begin_layout Plain Layout
22048 {%dialog%[[true]][[false]]}
22049 \end_layout
22050
22051 \end_inset
22052
22053 : process the 
22054 \begin_inset Quotes eld
22055 \end_inset
22056
22057 true
22058 \begin_inset Quotes erd
22059 \end_inset
22060
22061  part for dialogs and menus, the 
22062 \begin_inset Quotes eld
22063 \end_inset
22064
22065 false
22066 \begin_inset Quotes erd
22067 \end_inset
22068
22069  part for other contexts (workarea, export)
22070 \end_layout
22071
22072 \begin_layout Itemize
22073 \begin_inset Flex Code
22074 status collapsed
22075
22076 \begin_layout Plain Layout
22077 {%export%[[true]][[false]]}
22078 \end_layout
22079
22080 \end_inset
22081
22082 : process the 
22083 \begin_inset Quotes eld
22084 \end_inset
22085
22086 true
22087 \begin_inset Quotes erd
22088 \end_inset
22089
22090  part for export and menus, the 
22091 \begin_inset Quotes eld
22092 \end_inset
22093
22094 false
22095 \begin_inset Quotes erd
22096 \end_inset
22097
22098  part for other contexts (workarea, dialog)
22099 \end_layout
22100
22101 \begin_layout Itemize
22102 \begin_inset Flex Code
22103 status collapsed
22104
22105 \begin_layout Plain Layout
22106 {%next%[[true]]}
22107 \end_layout
22108
22109 \end_inset
22110
22111 : process the 
22112 \begin_inset Quotes eld
22113 \end_inset
22114
22115 true
22116 \begin_inset Quotes erd
22117 \end_inset
22118
22119  part if another item follows (e.
22120 \begin_inset space \thinspace{}
22121 \end_inset
22122
22123 g., in a citation with multiple keys)
22124 \end_layout
22125
22126 \begin_layout Itemize
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131 {%second%[[true]][[false]]}
22132 \end_layout
22133
22134 \end_inset
22135
22136 : process the 
22137 \begin_inset Quotes eld
22138 \end_inset
22139
22140 true
22141 \begin_inset Quotes erd
22142 \end_inset
22143
22144  if this is the second of multiple items, else the 
22145 \begin_inset Quotes eld
22146 \end_inset
22147
22148 false
22149 \begin_inset Quotes erd
22150 \end_inset
22151
22152  part
22153 \end_layout
22154
22155 \begin_layout Itemize
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 {%ifstar%[[true]][[false]]}
22161 \end_layout
22162
22163 \end_inset
22164
22165 : process the 
22166 \begin_inset Quotes eld
22167 \end_inset
22168
22169 true
22170 \begin_inset Quotes erd
22171 \end_inset
22172
22173  part for starred citation commands (such as 
22174 \begin_inset Flex Code
22175 status collapsed
22176
22177 \begin_layout Plain Layout
22178
22179 \backslash
22180 cite*
22181 \end_layout
22182
22183 \end_inset
22184
22185 ), the false part for unstarred
22186 \end_layout
22187
22188 \begin_layout Itemize
22189 \begin_inset Flex Code
22190 status collapsed
22191
22192 \begin_layout Plain Layout
22193 {%ifentrytype:<type>%[[true]][[false]]}
22194 \end_layout
22195
22196 \end_inset
22197
22198 : process the 
22199 \begin_inset Quotes eld
22200 \end_inset
22201
22202 true
22203 \begin_inset Quotes erd
22204 \end_inset
22205
22206  if the current entry type matches 
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 <type>
22212 \end_layout
22213
22214 \end_inset
22215
22216 , else the false part (e.g., in a citation definition: 
22217 \begin_inset Flex Code
22218 status collapsed
22219
22220 \begin_layout Plain Layout
22221 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22222 \end_layout
22223
22224 \end_inset
22225
22226 )
22227 \end_layout
22228
22229 \begin_layout Itemize
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 {%ifmultiple:<authortype>%[[true]][[false]]}
22235 \end_layout
22236
22237 \end_inset
22238
22239 : process the 
22240 \begin_inset Quotes eld
22241 \end_inset
22242
22243 true
22244 \begin_inset Quotes erd
22245 \end_inset
22246
22247  if the current author type (author, editor etc.) has multiple authors, else
22248  the false part (e.g., in a bibliography definition: 
22249 \begin_inset Flex Code
22250 status collapsed
22251
22252 \begin_layout Plain Layout
22253 {%ifmultiple:editor%[[eds.]][[ed.]]}
22254 \end_layout
22255
22256 \end_inset
22257
22258 )
22259 \end_layout
22260
22261 \begin_layout Itemize
22262 \begin_inset Flex Code
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266 {%ifqualified%[[true]][[false]]}
22267 \end_layout
22268
22269 \end_inset
22270
22271 : process the 
22272 \begin_inset Quotes eld
22273 \end_inset
22274
22275 true
22276 \begin_inset Quotes erd
22277 \end_inset
22278
22279  part if the current citation is a qualified citation list (a specific 
22280 \family sans
22281 Biblatex
22282 \family default
22283  format for multi-reference citations), the false part if this is not the
22284  case.
22285 \end_layout
22286
22287 \begin_layout Standard
22288 We said that 
22289 \begin_inset Flex Code
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293 %author%
22294 \end_layout
22295
22296 \end_inset
22297
22298  prints the author key as it is recorded in the bibliography file.
22299  This might not be what you want, since it will result in a string such
22300  as 
22301 \begin_inset Quotes eld
22302 \end_inset
22303
22304 Miller, Peter and Smith, Mary and White, Jane
22305 \begin_inset Quotes erd
22306 \end_inset
22307
22308  (since 
22309 \begin_inset Quotes eld
22310 \end_inset
22311
22312 and
22313 \begin_inset Quotes erd
22314 \end_inset
22315
22316  is used by Bib\SpecialChar TeX
22317  to delimit authors).
22318  \SpecialChar LyX
22319  therefore provides some methods to get properly formatted name lists (which
22320  will also get translated).
22321  The following keys are provided:
22322 \end_layout
22323
22324 \begin_layout Enumerate
22325 For name lists with pre- and surname, suitable for the main authors/editors
22326  of a bibliography item.
22327  The 
22328 \begin_inset Flex Code
22329 status collapsed
22330
22331 \begin_layout Plain Layout
22332 <nametype>
22333 \end_layout
22334
22335 \end_inset
22336
22337  part denotes the kind of list that is requested (e.g.
22338  
22339 \begin_inset Flex Code
22340 status collapsed
22341
22342 \begin_layout Plain Layout
22343 <nametype:author>
22344 \end_layout
22345
22346 \end_inset
22347
22348 ):
22349 \end_layout
22350
22351 \begin_deeper
22352 \begin_layout Itemize
22353 \begin_inset Flex Code
22354 status collapsed
22355
22356 \begin_layout Plain Layout
22357 %abbrvnames:<nametype>%
22358 \end_layout
22359
22360 \end_inset
22361
22362 : Provides a name list which is abbreviated (with 
22363 \begin_inset Quotes eld
22364 \end_inset
22365
22366 et al.
22367 \begin_inset Quotes erd
22368 \end_inset
22369
22370 ) when 
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 MaxCiteNames
22376 \end_layout
22377
22378 \end_inset
22379
22380  is reached.
22381 \end_layout
22382
22383 \begin_layout Itemize
22384 \begin_inset Flex Code
22385 status collapsed
22386
22387 \begin_layout Plain Layout
22388 %fullnames:<nametype>%
22389 \end_layout
22390
22391 \end_inset
22392
22393 : Provides a full name list (never abbreviated with 
22394 \begin_inset Quotes eld
22395 \end_inset
22396
22397 et al.
22398 \begin_inset Quotes erd
22399 \end_inset
22400
22401 ).
22402 \end_layout
22403
22404 \begin_layout Itemize
22405 \begin_inset Flex Code
22406 status collapsed
22407
22408 \begin_layout Plain Layout
22409 %forceabbrvnames:<nametype>%
22410 \end_layout
22411
22412 \end_inset
22413
22414 : Provides a name list which is always abbreviated (with 
22415 \begin_inset Quotes eld
22416 \end_inset
22417
22418 et al.
22419 \begin_inset Quotes erd
22420 \end_inset
22421
22422 ) irrespective of 
22423 \begin_inset Flex Code
22424 status collapsed
22425
22426 \begin_layout Plain Layout
22427 MaxCiteNames
22428 \end_layout
22429
22430 \end_inset
22431
22432 .
22433 \end_layout
22434
22435 \end_deeper
22436 \begin_layout Enumerate
22437 Alternative name lists with pre- and surname, if the order of pre- and surname
22438  inside the bibliography item differs (as in: 
22439 \begin_inset Quotes eld
22440 \end_inset
22441
22442 Miller, John: Some text, in: Mary Smith, ed.: A volume
22443 \begin_inset Quotes erd
22444 \end_inset
22445
22446 ):
22447 \end_layout
22448
22449 \begin_deeper
22450 \begin_layout Itemize
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 %abbrvbynames:<nametype>%
22456 \end_layout
22457
22458 \end_inset
22459
22460 : Provides a name list which is abbreviated (with 
22461 \begin_inset Quotes eld
22462 \end_inset
22463
22464 et al.
22465 \begin_inset Quotes erd
22466 \end_inset
22467
22468 ) when 
22469 \begin_inset Flex Code
22470 status collapsed
22471
22472 \begin_layout Plain Layout
22473 MaxCiteNames
22474 \end_layout
22475
22476 \end_inset
22477
22478  is reached.
22479 \end_layout
22480
22481 \begin_layout Itemize
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 %fullbynames:<nametype>%
22487 \end_layout
22488
22489 \end_inset
22490
22491 : Provides a full name list (never abbreviated with 
22492 \begin_inset Quotes eld
22493 \end_inset
22494
22495 et al.
22496 \begin_inset Quotes erd
22497 \end_inset
22498
22499 ).
22500 \end_layout
22501
22502 \begin_layout Itemize
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 %forceabbrvbynames:<nametype>%
22508 \end_layout
22509
22510 \end_inset
22511
22512 : Provides a name list which is always abbreviated (with 
22513 \begin_inset Quotes eld
22514 \end_inset
22515
22516 et al.
22517 \begin_inset Quotes erd
22518 \end_inset
22519
22520 ) irrespective of 
22521 \begin_inset Flex Code
22522 status collapsed
22523
22524 \begin_layout Plain Layout
22525 MaxCiteNames
22526 \end_layout
22527
22528 \end_inset
22529
22530 .
22531 \end_layout
22532
22533 \end_deeper
22534 \begin_layout Enumerate
22535 And finally name lists which consist of family names only, as used in author-yea
22536 r citation labels.
22537  these do not take a 
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 <nametype>
22543 \end_layout
22544
22545 \end_inset
22546
22547  part, but always return either an author list or, if this does not exist,
22548  an editor list (as common in author-year labels):
22549 \end_layout
22550
22551 \begin_deeper
22552 \begin_layout Itemize
22553 \begin_inset Flex Code
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 %abbrvciteauthor%
22558 \end_layout
22559
22560 \end_inset
22561
22562 : Provides a name list which is abbreviated (with 
22563 \begin_inset Quotes eld
22564 \end_inset
22565
22566 et al.
22567 \begin_inset Quotes erd
22568 \end_inset
22569
22570 ) when 
22571 \begin_inset Flex Code
22572 status collapsed
22573
22574 \begin_layout Plain Layout
22575 MaxCiteNames
22576 \end_layout
22577
22578 \end_inset
22579
22580  is reached.
22581 \end_layout
22582
22583 \begin_layout Itemize
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 %fullciteauthor%
22589 \end_layout
22590
22591 \end_inset
22592
22593 : Provides a full name list (never abbreviated with 
22594 \begin_inset Quotes eld
22595 \end_inset
22596
22597 et al.
22598 \begin_inset Quotes erd
22599 \end_inset
22600
22601 ).
22602 \end_layout
22603
22604 \begin_layout Itemize
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609 %forceabbrvciteauthor%
22610 \end_layout
22611
22612 \end_inset
22613
22614 : Provides a name list which is always abbreviated (with 
22615 \begin_inset Quotes eld
22616 \end_inset
22617
22618 et al.
22619 \begin_inset Quotes erd
22620 \end_inset
22621
22622 ) irrespective of 
22623 \begin_inset Flex Code
22624 status collapsed
22625
22626 \begin_layout Plain Layout
22627 MaxCiteNames
22628 \end_layout
22629
22630 \end_inset
22631
22632 .
22633 \end_layout
22634
22635 \end_deeper
22636 \begin_layout Standard
22637 The order of pre- and surname in the former two lists can be adjusted by
22638  these macros:
22639 \end_layout
22640
22641 \begin_layout Itemize
22642 \begin_inset Flex Code
22643 status collapsed
22644
22645 \begin_layout Plain Layout
22646 !firstnameform %surname%, %prename%
22647 \end_layout
22648
22649 \end_inset
22650
22651  (first author in lists of type 1)
22652 \end_layout
22653
22654 \begin_layout Itemize
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 !othernameform %surname%, %prename%
22660 \end_layout
22661
22662 \end_inset
22663
22664  (other authors in lists of type 1)
22665 \end_layout
22666
22667 \begin_layout Itemize
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 !firstbynameform %prename% %surname%
22673 \end_layout
22674
22675 \end_inset
22676
22677  (first author in lists of type 2)
22678 \end_layout
22679
22680 \begin_layout Itemize
22681 \begin_inset Flex Code
22682 status collapsed
22683
22684 \begin_layout Plain Layout
22685 !otherbynameform %prename% %surname%
22686 \end_layout
22687
22688 \end_inset
22689
22690  (other authors in lists of type 2)
22691 \end_layout
22692
22693 \begin_layout Standard
22694 This allows you to configure namings like 
22695 \begin_inset Quotes eld
22696 \end_inset
22697
22698 Miller, Peter and Mary Smith: \SpecialChar ldots
22699 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22700
22701 \begin_inset Quotes erd
22702 \end_inset
22703
22704 .
22705 \end_layout
22706
22707 \begin_layout Standard
22708 There is one other piece of syntax available in definitions, which looks
22709  like this: 
22710 \begin_inset Flex Code
22711 status collapsed
22712
22713 \begin_layout Plain Layout
22714 {!<i>!}
22715 \end_layout
22716
22717 \end_inset
22718
22719 .
22720  This defines a piece of formatting information that is to be used when
22721  creating 
22722 \begin_inset Quotes eld
22723 \end_inset
22724
22725 rich text
22726 \begin_inset Quotes erd
22727 \end_inset
22728
22729 .
22730  Obviously, we do not want to output HTML tags when writing plain text,
22731  so they should be wrapped in 
22732 \begin_inset Quotes eld
22733 \end_inset
22734
22735 {!
22736 \begin_inset Quotes erd
22737 \end_inset
22738
22739  and 
22740 \begin_inset Quotes eld
22741 \end_inset
22742
22743 !}
22744 \begin_inset Quotes erd
22745 \end_inset
22746
22747 .
22748 \end_layout
22749
22750 \begin_layout Standard
22751 Two special sorts of definitions are also possible in a 
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 CiteFormat
22757 \end_layout
22758
22759 \end_inset
22760
22761  block.
22762  An example of the first would be:
22763 \end_layout
22764
22765 \begin_layout LyX-Code
22766 !quotetitle 
22767 \begin_inset Quotes eld
22768 \end_inset
22769
22770 %title%
22771 \begin_inset Quotes erd
22772 \end_inset
22773
22774
22775 \end_layout
22776
22777 \begin_layout Standard
22778 This is an abbreviation, or macro, and it can be used by treating it as
22779  if it were a key: 
22780 \begin_inset Flex Code
22781 status collapsed
22782
22783 \begin_layout Plain Layout
22784 %!quotetitle%
22785 \end_layout
22786
22787 \end_inset
22788
22789 .
22790  \SpecialChar LyX
22791  will treat 
22792 \begin_inset Flex Code
22793 status collapsed
22794
22795 \begin_layout Plain Layout
22796 %!quotetitle%
22797 \end_layout
22798
22799 \end_inset
22800
22801  exactly as it would treat its definition.
22802  So, let us issue the obvious 
22803 \emph on
22804 warning
22805 \emph default
22806 .
22807  Do not do this:
22808 \end_layout
22809
22810 \begin_layout LyX-Code
22811 !funfun %funfun%
22812 \end_layout
22813
22814 \begin_layout Standard
22815 or anything like it.
22816  \SpecialChar LyX
22817  shouldn't go into an infinite loop, but it may go into a long one before
22818  it gives up.
22819 \end_layout
22820
22821 \begin_layout Standard
22822 The second sort of special definition might look like this:
22823 \end_layout
22824
22825 \begin_layout LyX-Code
22826 _pptext pp.
22827 \end_layout
22828
22829 \begin_layout Standard
22830 This defines a translatable piece of text, which allows relevant parts of
22831  the bibliography or citation to be translated.
22832  It can be included in a definition by treating it as a key: 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 %_pptext%
22838 \end_layout
22839
22840 \end_inset
22841
22842 .
22843  Several of these are predefined in 
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848 stdciteformats.inc
22849 \end_layout
22850
22851 \end_inset
22852
22853  and the diverse 
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 *.citeengine
22859 \end_layout
22860
22861 \end_inset
22862
22863  files.
22864  Note that these are not macros, in the sense just defined.
22865  They will not be expanded.
22866 \end_layout
22867
22868 \begin_layout Standard
22869 So here then is an example that use all these features:
22870 \begin_inset VSpace defskip
22871 \end_inset
22872
22873
22874 \end_layout
22875
22876 \begin_layout Standard
22877 \noindent
22878
22879 \family typewriter
22880 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
22881 \end_layout
22882
22883 \begin_layout Standard
22884 \begin_inset VSpace defskip
22885 \end_inset
22886
22887 This defines a macro that prints the author, followed by a comma, if the
22888  
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 author
22894 \end_layout
22895
22896 \end_inset
22897
22898  key is defined, or else prints the name of the editor, followed by the
22899  
22900 \begin_inset Flex Code
22901 status collapsed
22902
22903 \begin_layout Plain Layout
22904 _edtext
22905 \end_layout
22906
22907 \end_inset
22908
22909  or its translation (it is by default 
22910 \begin_inset Quotes eld
22911 \end_inset
22912
22913 ed.
22914 \begin_inset Quotes erd
22915 \end_inset
22916
22917 ), if the 
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922 editor
22923 \end_layout
22924
22925 \end_inset
22926
22927  key is defined.
22928  Note that this is in fact defined in 
22929 \begin_inset Flex Code
22930 status collapsed
22931
22932 \begin_layout Plain Layout
22933 stdciteformats.inc
22934 \end_layout
22935
22936 \end_inset
22937
22938 , so you can use it in your own definitions, or re-definitions, if you load
22939  that file first.
22940 \end_layout
22941
22942 \begin_layout Section
22943 \begin_inset CommandInset label
22944 LatexCommand label
22945 name "sec:Tags-for-XHTML"
22946
22947 \end_inset
22948
22949 Tags for XHTML output
22950 \end_layout
22951
22952 \begin_layout Standard
22953 As with \SpecialChar LaTeX
22954  or DocBook, the format of \SpecialChar LyX
22955 's XHTML output is also controlled by
22956  layout information.
22957  In general, \SpecialChar LyX
22958  provides sensible defaults and, as mentioned earlier, it will
22959  even construct default CSS style rules from the other layout tags.
22960  For example, \SpecialChar LyX
22961  will attempt to use the information provided in the 
22962 \begin_inset Flex Code
22963 status collapsed
22964
22965 \begin_layout Plain Layout
22966 Font
22967 \end_layout
22968
22969 \end_inset
22970
22971  declaration for the Chapter style to write CSS that will appropriately
22972  format chapter headings.
22973 \end_layout
22974
22975 \begin_layout Standard
22976 In many cases, then, you may not have to do anything at all to get acceptable
22977  XHTML output for your own environments, custom insets, and so forth.
22978  But in some cases you will, and so \SpecialChar LyX
22979  provides a number of layout tags that
22980  can be used to customize the XHTML and CSS that are generated.
22981 \end_layout
22982
22983 \begin_layout Standard
22984 Note that there are two tags, 
22985 \begin_inset Flex Code
22986 status collapsed
22987
22988 \begin_layout Plain Layout
22989 HTMLPreamble
22990 \end_layout
22991
22992 \end_inset
22993
22994  and 
22995 \begin_inset Flex Code
22996 status collapsed
22997
22998 \begin_layout Plain Layout
22999 AddToHTMLPreamble
23000 \end_layout
23001
23002 \end_inset
23003
23004  that may appear outside style and inset declarations.
23005  See 
23006 \begin_inset CommandInset ref
23007 LatexCommand ref
23008 reference "subsec:General-text-class"
23009
23010 \end_inset
23011
23012  for details on these.
23013 \end_layout
23014
23015 \begin_layout Subsection
23016 \begin_inset CommandInset label
23017 LatexCommand label
23018 name "subsec:Paragraph-Style-XHTML"
23019
23020 \end_inset
23021
23022 Paragraph styles
23023 \end_layout
23024
23025 \begin_layout Standard
23026 The sort of XHTML \SpecialChar LyX
23027  outputs for a paragraph depends upon whether we are dealing
23028  with a normal paragraph, a command, or an environment, where this is itself
23029  determined by the contents of the corresponding 
23030 \begin_inset Flex Code
23031 status collapsed
23032
23033 \begin_layout Plain Layout
23034 \SpecialChar LaTeX
23035 Type
23036 \end_layout
23037
23038 \end_inset
23039
23040  tag.
23041  
23042 \end_layout
23043
23044 \begin_layout Standard
23045 For a command or normal paragraph, the output XHTML has the following form:
23046 \end_layout
23047
23048 \begin_layout LyX-Code
23049 <tag attr=
23050 \begin_inset Quotes erd
23051 \end_inset
23052
23053 value
23054 \begin_inset Quotes erd
23055 \end_inset
23056
23057 >
23058 \end_layout
23059
23060 \begin_layout LyX-Code
23061 <labeltag attr=
23062 \begin_inset Quotes erd
23063 \end_inset
23064
23065 value
23066 \begin_inset Quotes erd
23067 \end_inset
23068
23069 >Label</labeltag>
23070 \end_layout
23071
23072 \begin_layout LyX-Code
23073 Contents of the paragraph.
23074 \end_layout
23075
23076 \begin_layout LyX-Code
23077 </tag>
23078 \end_layout
23079
23080 \begin_layout Standard
23081 The label tags are of course omitted if the paragraph does not have a label.
23082 \end_layout
23083
23084 \begin_layout Standard
23085 For an environment that is not some sort of list, the XHTML takes this form:
23086 \end_layout
23087
23088 \begin_layout LyX-Code
23089 <tag attr=
23090 \begin_inset Quotes erd
23091 \end_inset
23092
23093 value
23094 \begin_inset Quotes erd
23095 \end_inset
23096
23097 >
23098 \end_layout
23099
23100 \begin_layout LyX-Code
23101 <itemtag attr=
23102 \begin_inset Quotes erd
23103 \end_inset
23104
23105 value
23106 \begin_inset Quotes erd
23107 \end_inset
23108
23109 ><labeltag attr=
23110 \begin_inset Quotes erd
23111 \end_inset
23112
23113 value
23114 \begin_inset Quotes erd
23115 \end_inset
23116
23117 >Environment Label</labeltag>First paragraph.</itemtag>
23118 \end_layout
23119
23120 \begin_layout LyX-Code
23121 <itemtag>Second paragraph.</itemtag>
23122 \end_layout
23123
23124 \begin_layout LyX-Code
23125 </tag>
23126 \end_layout
23127
23128 \begin_layout Standard
23129 Note that the label is output only for the first paragraph, as it should
23130  be for a theorem, for example.
23131  
23132 \end_layout
23133
23134 \begin_layout Standard
23135 For a list, we have one of these forms:
23136 \end_layout
23137
23138 \begin_layout LyX-Code
23139 <tag attr=
23140 \begin_inset Quotes erd
23141 \end_inset
23142
23143 value
23144 \begin_inset Quotes erd
23145 \end_inset
23146
23147 >
23148 \end_layout
23149
23150 \begin_layout LyX-Code
23151 <itemtag attr=
23152 \begin_inset Quotes erd
23153 \end_inset
23154
23155 value
23156 \begin_inset Quotes erd
23157 \end_inset
23158
23159 ><labeltag attr=
23160 \begin_inset Quotes erd
23161 \end_inset
23162
23163 value
23164 \begin_inset Quotes erd
23165 \end_inset
23166
23167 >List Label</labeltag>First item.</itemtag>
23168 \end_layout
23169
23170 \begin_layout LyX-Code
23171 <itemtag attr=
23172 \begin_inset Quotes erd
23173 \end_inset
23174
23175 value
23176 \begin_inset Quotes erd
23177 \end_inset
23178
23179 ><labeltag attr=
23180 \begin_inset Quotes erd
23181 \end_inset
23182
23183 value
23184 \begin_inset Quotes erd
23185 \end_inset
23186
23187 >List Label</labeltag>Second item.</itemtag>
23188 \end_layout
23189
23190 \begin_layout LyX-Code
23191 </tag>
23192 \end_layout
23193
23194 \begin_layout LyX-Code
23195
23196 \end_layout
23197
23198 \begin_layout LyX-Code
23199 <tag attr=
23200 \begin_inset Quotes erd
23201 \end_inset
23202
23203 value
23204 \begin_inset Quotes erd
23205 \end_inset
23206
23207 >
23208 \end_layout
23209
23210 \begin_layout LyX-Code
23211 <labeltag attr=
23212 \begin_inset Quotes erd
23213 \end_inset
23214
23215 value
23216 \begin_inset Quotes erd
23217 \end_inset
23218
23219 >List Label</labeltag><itemtag attr=
23220 \begin_inset Quotes erd
23221 \end_inset
23222
23223 value
23224 \begin_inset Quotes erd
23225 \end_inset
23226
23227 >First item.</itemtag>
23228 \end_layout
23229
23230 \begin_layout LyX-Code
23231 <labeltag attr=
23232 \begin_inset Quotes erd
23233 \end_inset
23234
23235 value
23236 \begin_inset Quotes erd
23237 \end_inset
23238
23239 >List Label</labeltag><itemtag attr=
23240 \begin_inset Quotes erd
23241 \end_inset
23242
23243 value
23244 \begin_inset Quotes erd
23245 \end_inset
23246
23247 >Second item.</itemtag>
23248 \end_layout
23249
23250 \begin_layout LyX-Code
23251 </tag>
23252 \end_layout
23253
23254 \begin_layout Standard
23255 Note the different orders of 
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 labeltag
23261 \end_layout
23262
23263 \end_inset
23264
23265  and 
23266 \begin_inset Flex Code
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270 itemtag
23271 \end_layout
23272
23273 \end_inset
23274
23275 .
23276  Which order we get depends upon the setting of 
23277 \begin_inset Flex Code
23278 status collapsed
23279
23280 \begin_layout Plain Layout
23281 HTMLLabelFirst
23282 \end_layout
23283
23284 \end_inset
23285
23286 : If 
23287 \begin_inset Flex Code
23288 status collapsed
23289
23290 \begin_layout Plain Layout
23291 HTMLLabelFirst
23292 \end_layout
23293
23294 \end_inset
23295
23296  is false (the default), you get the first of these, with the label within
23297  the item; if true, you get the second, with the label outside the item.
23298 \end_layout
23299
23300 \begin_layout Standard
23301 The specific tags and attributes output for each paragraph type can be controlle
23302 d by means of the layout tags we are about to describe.
23303  As mentioned earlier, however, \SpecialChar LyX
23304  uses sensible defaults for many of these,
23305  so you often may not need to do very much to get good XHTML output.
23306  Think of the available tags as there so you can tweak things to your liking.
23307 \end_layout
23308
23309 \begin_layout Description
23310 \begin_inset Flex Code
23311 status collapsed
23312
23313 \begin_layout Plain Layout
23314 HTMLAttr
23315 \end_layout
23316
23317 \end_inset
23318
23319  [
23320 \begin_inset Flex Code
23321 status collapsed
23322
23323 \begin_layout Plain Layout
23324 string
23325 \end_layout
23326
23327 \end_inset
23328
23329 ] Specifies attribute information to be output with the main tag.
23330  For example, 
23331 \begin_inset Quotes eld
23332 \end_inset
23333
23334
23335 \begin_inset Flex Code
23336 status collapsed
23337
23338 \begin_layout Plain Layout
23339 class=`mydiv'
23340 \end_layout
23341
23342 \end_inset
23343
23344
23345 \begin_inset Quotes erd
23346 \end_inset
23347
23348 .
23349  By default, \SpecialChar LyX
23350  will output 
23351 \begin_inset Quotes eld
23352 \end_inset
23353
23354
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 class=`layoutname'
23360 \end_layout
23361
23362 \end_inset
23363
23364
23365 \begin_inset Quotes erd
23366 \end_inset
23367
23368 , where 
23369 \begin_inset Flex Code
23370 status collapsed
23371
23372 \begin_layout Plain Layout
23373 layoutname
23374 \end_layout
23375
23376 \end_inset
23377
23378  is the \SpecialChar LyX
23379  name of the layout, made lowercase, for example: chapter.
23380  This should 
23381 \emph on
23382 not
23383 \emph default
23384  contain any style information.
23385  Use 
23386 \begin_inset Flex Code
23387 status collapsed
23388
23389 \begin_layout Plain Layout
23390 HTMLStyle
23391 \end_layout
23392
23393 \end_inset
23394
23395  for that purpose.
23396 \end_layout
23397
23398 \begin_layout Description
23399 \begin_inset Flex Code
23400 status collapsed
23401
23402 \begin_layout Plain Layout
23403 HTMLForceCSS
23404 \end_layout
23405
23406 \end_inset
23407
23408  [
23409 \begin_inset Flex Code
23410 status collapsed
23411
23412 \begin_layout Plain Layout
23413
23414 \emph on
23415 0
23416 \emph default
23417 ,1
23418 \end_layout
23419
23420 \end_inset
23421
23422 ] Whether to output the default CSS information \SpecialChar LyX
23423  generates for this layout,
23424  even if additional information is explicitly provided via 
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 HTMLStyle
23430 \end_layout
23431
23432 \end_inset
23433
23434 .
23435  Setting this to 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 1
23441 \end_layout
23442
23443 \end_inset
23444
23445  allows you to alter or augment the generated CSS, rather than to override
23446  it completely.
23447  Default is 
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 0
23453 \end_layout
23454
23455 \end_inset
23456
23457 .
23458 \end_layout
23459
23460 \begin_layout Description
23461 \begin_inset Flex Code
23462 status collapsed
23463
23464 \begin_layout Plain Layout
23465 HTMLItem
23466 \end_layout
23467
23468 \end_inset
23469
23470  [
23471 \begin_inset Flex Code
23472 status collapsed
23473
23474 \begin_layout Plain Layout
23475 string
23476 \end_layout
23477
23478 \end_inset
23479
23480 ] The tag to be used for individual paragraphs of environments, replacing
23481  
23482 \begin_inset Flex Code
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486 itemtag
23487 \end_layout
23488
23489 \end_inset
23490
23491  in the examples above.
23492  Defaults to 
23493 \begin_inset Flex Code
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 div
23498 \end_layout
23499
23500 \end_inset
23501
23502 .
23503 \end_layout
23504
23505 \begin_layout Description
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 HTMLItemAttr
23511 \end_layout
23512
23513 \end_inset
23514
23515  [
23516 \begin_inset Flex Code
23517 status collapsed
23518
23519 \begin_layout Plain Layout
23520 string
23521 \end_layout
23522
23523 \end_inset
23524
23525 ] Attributes for the item tag.
23526  Defaults to 
23527 \begin_inset Quotes eld
23528 \end_inset
23529
23530
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535 class=`layoutname_item'
23536 \end_layout
23537
23538 \end_inset
23539
23540
23541 \begin_inset Quotes erd
23542 \end_inset
23543
23544 .
23545  This should 
23546 \emph on
23547 not
23548 \emph default
23549  contain any style information.
23550  Use 
23551 \begin_inset Flex Code
23552 status collapsed
23553
23554 \begin_layout Plain Layout
23555 HTMLStyle
23556 \end_layout
23557
23558 \end_inset
23559
23560  for that purpose.
23561 \end_layout
23562
23563 \begin_layout Description
23564 \begin_inset Flex Code
23565 status collapsed
23566
23567 \begin_layout Plain Layout
23568 HTMLLabel
23569 \end_layout
23570
23571 \end_inset
23572
23573  [
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 string
23579 \end_layout
23580
23581 \end_inset
23582
23583 ] The tag to be used for paragraph and item labels, replacing 
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588 labeltag
23589 \end_layout
23590
23591 \end_inset
23592
23593  in the examples above.
23594  Defaults to 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 span
23600 \end_layout
23601
23602 \end_inset
23603
23604 , unless 
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 LabelType
23610 \end_layout
23611
23612 \end_inset
23613
23614  is either 
23615 \begin_inset Flex Code
23616 status collapsed
23617
23618 \begin_layout Plain Layout
23619 Top_Environment
23620 \end_layout
23621
23622 \end_inset
23623
23624  or 
23625 \begin_inset Flex Code
23626 status collapsed
23627
23628 \begin_layout Plain Layout
23629 Centered_Top_Environment
23630 \end_layout
23631
23632 \end_inset
23633
23634 , in which case it defaults to 
23635 \begin_inset Flex Code
23636 status collapsed
23637
23638 \begin_layout Plain Layout
23639 div
23640 \end_layout
23641
23642 \end_inset
23643
23644 .
23645 \end_layout
23646
23647 \begin_layout Description
23648 \begin_inset Flex Code
23649 status collapsed
23650
23651 \begin_layout Plain Layout
23652 HTMLLabelAttr
23653 \end_layout
23654
23655 \end_inset
23656
23657  [
23658 \begin_inset Flex Code
23659 status collapsed
23660
23661 \begin_layout Plain Layout
23662 string
23663 \end_layout
23664
23665 \end_inset
23666
23667 ] Attributes for the label tag.
23668  Defaults to 
23669 \begin_inset Quotes eld
23670 \end_inset
23671
23672
23673 \begin_inset Flex Code
23674 status collapsed
23675
23676 \begin_layout Plain Layout
23677 class=`layoutname_label'
23678 \end_layout
23679
23680 \end_inset
23681
23682
23683 \begin_inset Quotes erd
23684 \end_inset
23685
23686 .
23687  This should 
23688 \emph on
23689 not
23690 \emph default
23691  contain any style information.
23692  Use 
23693 \begin_inset Flex Code
23694 status collapsed
23695
23696 \begin_layout Plain Layout
23697 HTMLStyle
23698 \end_layout
23699
23700 \end_inset
23701
23702  for that purpose.
23703 \end_layout
23704
23705 \begin_layout Description
23706 \begin_inset Flex Code
23707 status collapsed
23708
23709 \begin_layout Plain Layout
23710 HTMLLabelFirst
23711 \end_layout
23712
23713 \end_inset
23714
23715  [
23716 \begin_inset Flex Code
23717 status collapsed
23718
23719 \begin_layout Plain Layout
23720
23721 \emph on
23722 0
23723 \emph default
23724 ,1
23725 \end_layout
23726
23727 \end_inset
23728
23729 ] Meaningful only for list-like environments, this tag controls whether
23730  the label tag is output before or inside the item tag.
23731  This is used, for example, in the description environment, where we want
23732  `
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 <dt>\SpecialChar ldots
23738 </dt><dd>\SpecialChar ldots
23739 </dd>
23740 \end_layout
23741
23742 \end_inset
23743
23744 .
23745  Default is 
23746 \begin_inset Flex Code
23747 status collapsed
23748
23749 \begin_layout Plain Layout
23750 0
23751 \end_layout
23752
23753 \end_inset
23754
23755 : The label tag is output inside the item tag.
23756 \end_layout
23757
23758 \begin_layout Description
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763 HTMLPreamble
23764 \end_layout
23765
23766 \end_inset
23767
23768  Information to be output in the 
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 <head>
23774 \end_layout
23775
23776 \end_inset
23777
23778  section when this style is used.
23779  This might, for example, be used to include a 
23780 \begin_inset Flex Code
23781 status collapsed
23782
23783 \begin_layout Plain Layout
23784 <script>
23785 \end_layout
23786
23787 \end_inset
23788
23789  block defining an 
23790 \begin_inset Flex Code
23791 status collapsed
23792
23793 \begin_layout Plain Layout
23794 onclick
23795 \end_layout
23796
23797 \end_inset
23798
23799  handler.
23800 \end_layout
23801
23802 \begin_layout Description
23803 \begin_inset Flex Code
23804 status collapsed
23805
23806 \begin_layout Plain Layout
23807 HTMLStyle
23808 \end_layout
23809
23810 \end_inset
23811
23812  CSS style information to be included when this style is used.
23813  Note that this will automatically be wrapped in a layout-generated 
23814 \begin_inset Flex Code
23815 status collapsed
23816
23817 \begin_layout Plain Layout
23818 <style>
23819 \end_layout
23820
23821 \end_inset
23822
23823  block, so only the CSS itself need be included.
23824  Must end with 
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829 EndHTMLStyle
23830 \end_layout
23831
23832 \end_inset
23833
23834 .
23835 \end_layout
23836
23837 \begin_layout Description
23838 \begin_inset Flex Code
23839 status collapsed
23840
23841 \begin_layout Plain Layout
23842 HTMLTag
23843 \end_layout
23844
23845 \end_inset
23846
23847  [
23848 \begin_inset Flex Code
23849 status collapsed
23850
23851 \begin_layout Plain Layout
23852 string
23853 \end_layout
23854
23855 \end_inset
23856
23857 ] The tag to be used for the main label, replacing 
23858 \begin_inset Flex Code
23859 status collapsed
23860
23861 \begin_layout Plain Layout
23862 tag
23863 \end_layout
23864
23865 \end_inset
23866
23867  in the examples above.
23868  Defaults to 
23869 \begin_inset Flex Code
23870 status collapsed
23871
23872 \begin_layout Plain Layout
23873 div
23874 \end_layout
23875
23876 \end_inset
23877
23878 .
23879 \end_layout
23880
23881 \begin_layout Description
23882 \begin_inset Flex Code
23883 status collapsed
23884
23885 \begin_layout Plain Layout
23886 HTMLTitle
23887 \end_layout
23888
23889 \end_inset
23890
23891  [
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896
23897 \emph on
23898 0
23899 \emph default
23900 ,1
23901 \end_layout
23902
23903 \end_inset
23904
23905 ] Marks this style as the one to be used to generate the 
23906 \begin_inset Flex Code
23907 status collapsed
23908
23909 \begin_layout Plain Layout
23910 <title>
23911 \end_layout
23912
23913 \end_inset
23914
23915  tag for the XHTML file.
23916  By default, it is false.
23917  The 
23918 \begin_inset Flex Code
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922 stdtitle.inc
23923 \end_layout
23924
23925 \end_inset
23926
23927  file sets it to true for the 
23928 \begin_inset Flex Code
23929 status collapsed
23930
23931 \begin_layout Plain Layout
23932 title
23933 \end_layout
23934
23935 \end_inset
23936
23937  environment.
23938  
23939 \end_layout
23940
23941 \begin_layout Subsection
23942 InsetLayout XHTML
23943 \end_layout
23944
23945 \begin_layout Standard
23946 The XHTML output of insets can also be controlled by information in layout
23947  files.
23948 \begin_inset Foot
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952 At present, this is true only for 
23953 \begin_inset Quotes eld
23954 \end_inset
23955
23956 text
23957 \begin_inset Quotes erd
23958 \end_inset
23959
23960  insets (insets you can type into) and is not true for 
23961 \begin_inset Quotes eld
23962 \end_inset
23963
23964 command
23965 \begin_inset Quotes erd
23966 \end_inset
23967
23968  insets (insets that are associated with dialog boxes).
23969 \end_layout
23970
23971 \end_inset
23972
23973  Here, too, \SpecialChar LyX
23974  tries to provide sensible defaults, and it constructs default
23975  CSS style rules.
23976  But everything can be customized.
23977 \end_layout
23978
23979 \begin_layout Standard
23980 The XHTML \SpecialChar LyX
23981  outputs for an inset has the following form:
23982 \end_layout
23983
23984 \begin_layout LyX-Code
23985 <tag attr=
23986 \begin_inset Quotes erd
23987 \end_inset
23988
23989 value
23990 \begin_inset Quotes erd
23991 \end_inset
23992
23993 >
23994 \end_layout
23995
23996 \begin_layout LyX-Code
23997 <labeltag>Label</labeltag>
23998 \end_layout
23999
24000 \begin_layout LyX-Code
24001 <innertag attr=
24002 \begin_inset Quotes erd
24003 \end_inset
24004
24005 value
24006 \begin_inset Quotes erd
24007 \end_inset
24008
24009 >Contents of the inset.</innertag>
24010 \end_layout
24011
24012 \begin_layout LyX-Code
24013 </tag>
24014 \end_layout
24015
24016 \begin_layout Standard
24017 If the inset permits multiple paragraphs—that is, if 
24018 \begin_inset Flex Code
24019 status collapsed
24020
24021 \begin_layout Plain Layout
24022 MultiPar
24023 \end_layout
24024
24025 \end_inset
24026
24027  is true—then the contents of the inset will itself be output as paragraphs
24028  formatted according to the styles used for those paragraphs (standard,
24029  quote, and the like).
24030  The label tag is of course omitted if the paragraph does not have a label
24031  and, at present, is always 
24032 \begin_inset Flex Code
24033 status collapsed
24034
24035 \begin_layout Plain Layout
24036 span
24037 \end_layout
24038
24039 \end_inset
24040
24041 .
24042  The inner tag is optional and, by default, does not appear.
24043 \end_layout
24044
24045 \begin_layout Standard
24046 The specific tags and attributes output for each inset can be controlled
24047  by means of the following layout tags.
24048 \end_layout
24049
24050 \begin_layout Description
24051 \begin_inset Flex Code
24052 status collapsed
24053
24054 \begin_layout Plain Layout
24055 HTMLAttr
24056 \end_layout
24057
24058 \end_inset
24059
24060  [
24061 \begin_inset Flex Code
24062 status collapsed
24063
24064 \begin_layout Plain Layout
24065 string
24066 \end_layout
24067
24068 \end_inset
24069
24070 ] Specifies attribute information to be output with the main tag.
24071  For example, 
24072 \begin_inset Quotes eld
24073 \end_inset
24074
24075
24076 \begin_inset Flex Code
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080 class=`myinset' onclick=`\SpecialChar ldots
24081 '
24082 \end_layout
24083
24084 \end_inset
24085
24086
24087 \begin_inset Quotes erd
24088 \end_inset
24089
24090 .
24091  By default, \SpecialChar LyX
24092  will output 
24093 \begin_inset Quotes eld
24094 \end_inset
24095
24096
24097 \begin_inset Flex Code
24098 status collapsed
24099
24100 \begin_layout Plain Layout
24101 class=`insetname'
24102 \end_layout
24103
24104 \end_inset
24105
24106
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 , where 
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 insetname
24116 \end_layout
24117
24118 \end_inset
24119
24120  is the \SpecialChar LyX
24121  name of the inset, made lowercase and with non-alphanumeric characters
24122  converted to underscores, for example: footnote.
24123 \end_layout
24124
24125 \begin_layout Description
24126 \begin_inset Flex Code
24127 status collapsed
24128
24129 \begin_layout Plain Layout
24130 HTMLForceCSS
24131 \end_layout
24132
24133 \end_inset
24134
24135  [
24136 \begin_inset Flex Code
24137 status collapsed
24138
24139 \begin_layout Plain Layout
24140
24141 \emph on
24142 0
24143 \emph default
24144 ,1
24145 \end_layout
24146
24147 \end_inset
24148
24149 ] Whether to output the default CSS information \SpecialChar LyX
24150  generates for this layout,
24151  even if additional information is explicitly provided via 
24152 \begin_inset Flex Code
24153 status collapsed
24154
24155 \begin_layout Plain Layout
24156 HTMLStyle
24157 \end_layout
24158
24159 \end_inset
24160
24161 .
24162  Setting this to 
24163 \begin_inset Flex Code
24164 status collapsed
24165
24166 \begin_layout Plain Layout
24167 1
24168 \end_layout
24169
24170 \end_inset
24171
24172  allows you to alter or augment the generated CSS, rather than to override
24173  it completely.
24174  Default is 0.
24175 \end_layout
24176
24177 \begin_layout Description
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182 HTMLInnerAttr
24183 \end_layout
24184
24185 \end_inset
24186
24187  [
24188 \begin_inset Flex Code
24189 status collapsed
24190
24191 \begin_layout Plain Layout
24192 string
24193 \end_layout
24194
24195 \end_inset
24196
24197 ] Attributes for the inner tag.
24198  Defaults to 
24199 \begin_inset Quotes eld
24200 \end_inset
24201
24202
24203 \begin_inset Flex Code
24204 status collapsed
24205
24206 \begin_layout Plain Layout
24207 class=`insetname_inner'
24208 \end_layout
24209
24210 \end_inset
24211
24212
24213 \begin_inset Quotes erd
24214 \end_inset
24215
24216 .
24217 \end_layout
24218
24219 \begin_layout Description
24220 \begin_inset Flex Code
24221 status collapsed
24222
24223 \begin_layout Plain Layout
24224 HTMLInnerTag
24225 \end_layout
24226
24227 \end_inset
24228
24229  [
24230 \begin_inset Flex Code
24231 status collapsed
24232
24233 \begin_layout Plain Layout
24234 string
24235 \end_layout
24236
24237 \end_inset
24238
24239 ] The inner tag, replacing 
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 innertag
24245 \end_layout
24246
24247 \end_inset
24248
24249  in the examples above.
24250  By default, there is none.
24251 \end_layout
24252
24253 \begin_layout Description
24254 \begin_inset Flex Code
24255 status collapsed
24256
24257 \begin_layout Plain Layout
24258 HTMLIsBlock
24259 \end_layout
24260
24261 \end_inset
24262
24263  [
24264 \begin_inset Flex Code
24265 status collapsed
24266
24267 \begin_layout Plain Layout
24268 0,
24269 \emph on
24270 1
24271 \end_layout
24272
24273 \end_inset
24274
24275 ] Whether this inset represents a standalone block of text (such as a footnote)
24276  or instead represents material that is included in the surrounding text
24277  (such as a branch).
24278  Defaults to 1.
24279 \end_layout
24280
24281 \begin_layout Description
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 HTMLLabel
24287 \end_layout
24288
24289 \end_inset
24290
24291  [
24292 \begin_inset Flex Code
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 string
24297 \end_layout
24298
24299 \end_inset
24300
24301 ] A label for this inset, possibly including a reference to a counter.
24302  For example, for footnote, it might be: 
24303 \begin_inset Flex Code
24304 status collapsed
24305
24306 \begin_layout Plain Layout
24307
24308 \backslash
24309 arabic{footnote}
24310 \end_layout
24311
24312 \end_inset
24313
24314 .
24315  This is optional, and there is no default.
24316 \end_layout
24317
24318 \begin_layout Description
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323 HTMLPreamble
24324 \end_layout
24325
24326 \end_inset
24327
24328  Information to be output in the 
24329 \begin_inset Flex Code
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333 <head>
24334 \end_layout
24335
24336 \end_inset
24337
24338  section when this style is used.
24339  This might, for example, be used to include a 
24340 \begin_inset Flex Code
24341 status collapsed
24342
24343 \begin_layout Plain Layout
24344 <script>
24345 \end_layout
24346
24347 \end_inset
24348
24349  block defining an 
24350 \begin_inset Flex Code
24351 status collapsed
24352
24353 \begin_layout Plain Layout
24354 onclick
24355 \end_layout
24356
24357 \end_inset
24358
24359  handler.
24360 \end_layout
24361
24362 \begin_layout Description
24363 \begin_inset Flex Code
24364 status collapsed
24365
24366 \begin_layout Plain Layout
24367 HTMLStyle
24368 \end_layout
24369
24370 \end_inset
24371
24372  CSS style information to be included when this style is used.
24373  Note that this will automatically be wrapped in a layout-generated 
24374 \begin_inset Flex Code
24375 status collapsed
24376
24377 \begin_layout Plain Layout
24378 <style>
24379 \end_layout
24380
24381 \end_inset
24382
24383  block, so only the CSS itself need be included.
24384 \end_layout
24385
24386 \begin_layout Description
24387 \begin_inset Flex Code
24388 status collapsed
24389
24390 \begin_layout Plain Layout
24391 HTMLTag
24392 \end_layout
24393
24394 \end_inset
24395
24396  [
24397 \begin_inset Flex Code
24398 status collapsed
24399
24400 \begin_layout Plain Layout
24401 string
24402 \end_layout
24403
24404 \end_inset
24405
24406 ] The tag to be used for the main label, replacing 
24407 \begin_inset Flex Code
24408 status collapsed
24409
24410 \begin_layout Plain Layout
24411 tag
24412 \end_layout
24413
24414 \end_inset
24415
24416  in the examples above.
24417  The default depends upon the setting of 
24418 \begin_inset Flex Code
24419 status collapsed
24420
24421 \begin_layout Plain Layout
24422 MultiPar
24423 \end_layout
24424
24425 \end_inset
24426
24427 : If 
24428 \begin_inset Flex Code
24429 status collapsed
24430
24431 \begin_layout Plain Layout
24432 MultiPar
24433 \end_layout
24434
24435 \end_inset
24436
24437  is true, the default is 
24438 \begin_inset Flex Code
24439 status collapsed
24440
24441 \begin_layout Plain Layout
24442 div
24443 \end_layout
24444
24445 \end_inset
24446
24447 ; if it is false, the default is 
24448 \begin_inset Flex Code
24449 status collapsed
24450
24451 \begin_layout Plain Layout
24452 span
24453 \end_layout
24454
24455 \end_inset
24456
24457 .
24458 \end_layout
24459
24460 \begin_layout Subsection
24461 Float XHTML
24462 \end_layout
24463
24464 \begin_layout Standard
24465 The XHTML output for floats too can be controlled by layout information.
24466  The output has the following form:
24467 \end_layout
24468
24469 \begin_layout LyX-Code
24470 <tag attr=
24471 \begin_inset Quotes erd
24472 \end_inset
24473
24474 value
24475 \begin_inset Quotes erd
24476 \end_inset
24477
24478 >
24479 \end_layout
24480
24481 \begin_layout LyX-Code
24482 Contents of the float.
24483 \end_layout
24484
24485 \begin_layout LyX-Code
24486 </tag>
24487 \end_layout
24488
24489 \begin_layout Standard
24490 The caption, if there is one, is a separate inset and will be output as
24491  such.
24492  Its appearance can be controlled via the InsetLayout for caption insets.
24493  
24494 \end_layout
24495
24496 \begin_layout Description
24497 \begin_inset Flex Code
24498 status collapsed
24499
24500 \begin_layout Plain Layout
24501 HTMLAttr
24502 \end_layout
24503
24504 \end_inset
24505
24506  [
24507 \begin_inset Flex Code
24508 status collapsed
24509
24510 \begin_layout Plain Layout
24511 string
24512 \end_layout
24513
24514 \end_inset
24515
24516 ] Specifies attribute information to be output with the main tag.
24517  For example, 
24518 \begin_inset Quotes eld
24519 \end_inset
24520
24521
24522 \begin_inset Flex Code
24523 status collapsed
24524
24525 \begin_layout Plain Layout
24526 class=`myfloat' onclick=`\SpecialChar ldots
24527 '
24528 \end_layout
24529
24530 \end_inset
24531
24532
24533 \begin_inset Quotes erd
24534 \end_inset
24535
24536 .
24537  By default, \SpecialChar LyX
24538  will output 
24539 \begin_inset Quotes eld
24540 \end_inset
24541
24542
24543 \begin_inset Flex Code
24544 status collapsed
24545
24546 \begin_layout Plain Layout
24547 class=`float float-floattype'
24548 \end_layout
24549
24550 \end_inset
24551
24552
24553 \begin_inset Quotes erd
24554 \end_inset
24555
24556 , where 
24557 \begin_inset Flex Code
24558 status collapsed
24559
24560 \begin_layout Plain Layout
24561 floattype
24562 \end_layout
24563
24564 \end_inset
24565
24566  is \SpecialChar LyX
24567 's name for this type of float, as determined by the float declaration
24568  (see 
24569 \begin_inset CommandInset ref
24570 LatexCommand ref
24571 reference "subsec:Floats"
24572
24573 \end_inset
24574
24575 ), though made lowercase and with non-alphanumeric characters converted
24576  to underscores, for example: float-table.
24577 \end_layout
24578
24579 \begin_layout Description
24580 \begin_inset Flex Code
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584 HTMLStyle
24585 \end_layout
24586
24587 \end_inset
24588
24589  CSS style information to be included when this float is used.
24590  Note that this will automatically be wrapped in a layout-generated 
24591 \begin_inset Flex Code
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595 <style>
24596 \end_layout
24597
24598 \end_inset
24599
24600  block, so only the CSS itself need be included.
24601 \end_layout
24602
24603 \begin_layout Description
24604 \begin_inset Flex Code
24605 status collapsed
24606
24607 \begin_layout Plain Layout
24608 HTMLTag
24609 \end_layout
24610
24611 \end_inset
24612
24613  [
24614 \begin_inset Flex Code
24615 status collapsed
24616
24617 \begin_layout Plain Layout
24618 string
24619 \end_layout
24620
24621 \end_inset
24622
24623 ] The tag to be used for this float, replacing 
24624 \begin_inset Quotes eld
24625 \end_inset
24626
24627
24628 \begin_inset Flex Code
24629 status collapsed
24630
24631 \begin_layout Plain Layout
24632 tag
24633 \end_layout
24634
24635 \end_inset
24636
24637
24638 \begin_inset Quotes erd
24639 \end_inset
24640
24641  in the example above.
24642  The default is 
24643 \begin_inset Flex Code
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647 div
24648 \end_layout
24649
24650 \end_inset
24651
24652  and will rarely need changing.
24653 \end_layout
24654
24655 \begin_layout Subsection
24656 Bibliography formatting
24657 \end_layout
24658
24659 \begin_layout Standard
24660 The bibliography can be formatted using 
24661 \begin_inset Flex Code
24662 status collapsed
24663
24664 \begin_layout Plain Layout
24665 CiteFormat
24666 \end_layout
24667
24668 \end_inset
24669
24670  blocks.
24671  See 
24672 \begin_inset CommandInset ref
24673 LatexCommand ref
24674 reference "subsec:Citation-format-description"
24675
24676 \end_inset
24677
24678  for the details.
24679 \end_layout
24680
24681 \begin_layout Subsection
24682 \SpecialChar LyX
24683 -generated CSS
24684 \end_layout
24685
24686 \begin_layout Standard
24687 We have several times mentioned that \SpecialChar LyX
24688  will generate default CSS style rules
24689  for both insets and paragraph styles, based upon the other layout information
24690  that is provided.
24691  In this section, we shall say a word about which layout information \SpecialChar LyX
24692  uses
24693  and how.
24694 \end_layout
24695
24696 \begin_layout Standard
24697 At present, \SpecialChar LyX
24698  auto-generates CSS only for font information, making use of
24699  the 
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704 Family
24705 \end_layout
24706
24707 \end_inset
24708
24709
24710 \begin_inset Flex Code
24711 status collapsed
24712
24713 \begin_layout Plain Layout
24714 Series
24715 \end_layout
24716
24717 \end_inset
24718
24719
24720 \begin_inset Flex Code
24721 status collapsed
24722
24723 \begin_layout Plain Layout
24724 Shape
24725 \end_layout
24726
24727 \end_inset
24728
24729 , and 
24730 \begin_inset Flex Code
24731 status collapsed
24732
24733 \begin_layout Plain Layout
24734 Size
24735 \end_layout
24736
24737 \end_inset
24738
24739  specified in the 
24740 \begin_inset Flex Code
24741 status collapsed
24742
24743 \begin_layout Plain Layout
24744 Font
24745 \end_layout
24746
24747 \end_inset
24748
24749  declaration (see 
24750 \begin_inset CommandInset ref
24751 LatexCommand ref
24752 reference "subsec:Font-description"
24753
24754 \end_inset
24755
24756 ).
24757  The translation is mostly straightforward and obvious.
24758  For example, 
24759 \begin_inset Quotes eld
24760 \end_inset
24761
24762
24763 \begin_inset Flex Code
24764 status collapsed
24765
24766 \begin_layout Plain Layout
24767 Family Sans
24768 \end_layout
24769
24770 \end_inset
24771
24772
24773 \begin_inset Quotes erd
24774 \end_inset
24775
24776  becomes 
24777 \begin_inset Quotes eld
24778 \end_inset
24779
24780
24781 \begin_inset Flex Code
24782 status collapsed
24783
24784 \begin_layout Plain Layout
24785 font-family: sans-serif;
24786 \end_layout
24787
24788 \end_inset
24789
24790
24791 \begin_inset Quotes erd
24792 \end_inset
24793
24794 .
24795  The correspondence of \SpecialChar LyX
24796  sizes and CSS sizes is a little less obvious but
24797  nonetheless intuitive.
24798  See the 
24799 \begin_inset Flex Code
24800 status collapsed
24801
24802 \begin_layout Plain Layout
24803 getSizeCSS()
24804 \end_layout
24805
24806 \end_inset
24807
24808  function in 
24809 \begin_inset Flex URL
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813
24814 src/FontInfo.cpp
24815 \end_layout
24816
24817 \end_inset
24818
24819  for the details.
24820 \end_layout
24821
24822 \begin_layout Chapter
24823 Including External Material
24824 \begin_inset CommandInset label
24825 LatexCommand label
24826 name "chap:Including-External-Material"
24827
24828 \end_inset
24829
24830
24831 \end_layout
24832
24833 \begin_layout Standard
24834 \begin_inset Box Shadowbox
24835 position "t"
24836 hor_pos "c"
24837 has_inner_box 1
24838 inner_pos "t"
24839 use_parbox 0
24840 use_makebox 0
24841 width "100col%"
24842 special "none"
24843 height "1in"
24844 height_special "totalheight"
24845 thickness "0.4pt"
24846 separation "3pt"
24847 shadowsize "4pt"
24848 framecolor "black"
24849 backgroundcolor "none"
24850 status open
24851
24852 \begin_layout Plain Layout
24853 WARNING: This portion of the documentation has not been updated for some
24854  time.
24855  We certainly hope that it is still accurate, but there are no guarantees.
24856 \end_layout
24857
24858 \end_inset
24859
24860
24861 \end_layout
24862
24863 \begin_layout Standard
24864 The use of material from sources external to \SpecialChar LyX
24865  is covered in detail in the
24866  
24867 \emph on
24868 Embedded Objects
24869 \emph default
24870  manual.
24871  This part of the manual covers what needs to happen behind the scenes for
24872  new sorts of material to be included.
24873 \end_layout
24874
24875 \begin_layout Section
24876 How does it work?
24877 \end_layout
24878
24879 \begin_layout Standard
24880 The external material feature is based on the concept of a 
24881 \emph on
24882 template
24883 \emph default
24884 .
24885  A template is a specification of how \SpecialChar LyX
24886  should interface with a certain kind
24887  of material.
24888  As bundled, \SpecialChar LyX
24889  comes with predefined templates for Xfig figures, various
24890  raster format images, chess diagrams, and LilyPond music notation.
24891  You can check the actual list by using the menu 
24892 \begin_inset Flex Noun
24893 status collapsed
24894
24895 \begin_layout Plain Layout
24896 Insert\SpecialChar menuseparator
24897 File\SpecialChar menuseparator
24898 External Material
24899 \end_layout
24900
24901 \end_inset
24902
24903 .
24904  Furthermore, it is possible to roll your own template to support a specific
24905  kind of material.
24906  Later we'll describe in more detail what is involved, and hopefully you
24907  will submit all the templates you create so we can include them in a later
24908  \SpecialChar LyX
24909  version.
24910 \end_layout
24911
24912 \begin_layout Standard
24913 Another basic idea of the external material feature is to distinguish between
24914  the original file that serves as a base for final material and the produced
24915  file that is included in your exported or printed document.
24916  For example, consider the case of a figure produced with 
24917 \begin_inset Flex Code
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921 Xfig
24922 \end_layout
24923
24924 \end_inset
24925
24926 .
24927  The Xfig application itself works on an original file with the 
24928 \begin_inset Flex Code
24929 status collapsed
24930
24931 \begin_layout Plain Layout
24932 .fig
24933 \end_layout
24934
24935 \end_inset
24936
24937  extension.
24938  Within Xfig, you create and change your figure, and when you are done,
24939  you save the 
24940 \begin_inset Flex Code
24941 status collapsed
24942
24943 \begin_layout Plain Layout
24944 fig
24945 \end_layout
24946
24947 \end_inset
24948
24949 -file.
24950  When you want to include the figure in your document, you invoke 
24951 \begin_inset Flex Code
24952 status collapsed
24953
24954 \begin_layout Plain Layout
24955 transfig
24956 \end_layout
24957
24958 \end_inset
24959
24960  in order to create a PostScript file that can readily be included in your
24961  \SpecialChar LaTeX
24962  file.
24963  In this case, the 
24964 \begin_inset Flex Code
24965 status collapsed
24966
24967 \begin_layout Plain Layout
24968 .fig
24969 \end_layout
24970
24971 \end_inset
24972
24973  file is the original file, and the PostScript file is the produced file.
24974 \end_layout
24975
24976 \begin_layout Standard
24977 This distinction is important in order to allow updating of the material
24978  while you are in the process of writing the document.
24979  Furthermore, it provides us with the flexibility that is needed to support
24980  multiple export formats.
24981  For instance, in the case of a plain text file, it is not exactly an award-winn
24982 ing idea to include the figure as raw PostScript.
24983  Instead, you would either prefer to just include a reference to the figure
24984  or try to invoke some graphics to ASCII converter to make the final result
24985  look similar to the real graphics.
24986  The external material management allows you to do this, because it is parametri
24987 zed on the different export formats that \SpecialChar LyX
24988  supports.
24989 \end_layout
24990
24991 \begin_layout Standard
24992 Besides supporting the production of different products according to the
24993  exported format, it supports tight integration with editing and viewing
24994  applications.
24995  In the case of an Xfig figure, you are able to invoke Xfig on the original
24996  file with a single click from within the external material dialog in \SpecialChar LyX
24997 ,
24998  and also preview the produced PostScript file with Ghostview with another
24999  click.
25000  No more fiddling around with the command line and/or file browsers to locate
25001  and manipulate the original or produced files.
25002  In this way, you are finally able to take full advantage of the many different
25003  applications that are relevant to use when you write your documents, and
25004  ultimately be more productive.
25005 \end_layout
25006
25007 \begin_layout Section
25008 The external template configuration files
25009 \end_layout
25010
25011 \begin_layout Standard
25012 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25013 .
25014  However, be aware that doing this in an careless manner most probably 
25015 \emph on
25016 will
25017 \emph default
25018  introduce an easily exploitable security hole.
25019  So before you do this, please read the discussion about security in 
25020 \begin_inset CommandInset ref
25021 LatexCommand ref
25022 reference "sec:Security-discussion"
25023
25024 \end_inset
25025
25026 .
25027 \end_layout
25028
25029 \begin_layout Standard
25030 Having said that, we encourage you to submit any interesting templates that
25031  you create.
25032  
25033 \end_layout
25034
25035 \begin_layout Standard
25036 The external templates are defined in the 
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041 *.xtemplate
25042 \end_layout
25043
25044 \end_inset
25045
25046  files that are stored in the 
25047 \begin_inset Flex Code
25048 status collapsed
25049
25050 \begin_layout Plain Layout
25051 LyXDir/lib/xtemplates/
25052 \end_layout
25053
25054 \end_inset
25055
25056  directory.
25057  Each template is defined in a file of its own.
25058  You can place your own templates in 
25059 \begin_inset Flex Code
25060 status collapsed
25061
25062 \begin_layout Plain Layout
25063 UserDir/xtemplates/
25064 \end_layout
25065
25066 \end_inset
25067
25068  or copy existing templates to that directory in order to modify them.
25069 \end_layout
25070
25071 \begin_layout Standard
25072 A typical template looks like this:
25073 \end_layout
25074
25075 \begin_layout LyX-Code
25076 Template XFig
25077 \end_layout
25078
25079 \begin_layout LyX-Code
25080 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25081 \end_layout
25082
25083 \begin_layout LyX-Code
25084 HelpText
25085 \end_layout
25086
25087 \begin_layout LyX-Code
25088 An XFig figure.
25089 \end_layout
25090
25091 \begin_layout LyX-Code
25092 HelpTextEnd
25093 \end_layout
25094
25095 \begin_layout LyX-Code
25096 InputFormat fig
25097 \end_layout
25098
25099 \begin_layout LyX-Code
25100 FileFilter "*.fig"
25101 \end_layout
25102
25103 \begin_layout LyX-Code
25104 AutomaticProduction true
25105 \end_layout
25106
25107 \begin_layout LyX-Code
25108 Transform Rotate
25109 \end_layout
25110
25111 \begin_layout LyX-Code
25112 Transform Resize
25113 \end_layout
25114
25115 \begin_layout LyX-Code
25116 Format LaTeX
25117 \end_layout
25118
25119 \begin_layout LyX-Code
25120 TransformCommand Rotate RotationLatexCommand
25121 \end_layout
25122
25123 \begin_layout LyX-Code
25124 TransformCommand Resize ResizeLatexCommand
25125 \end_layout
25126
25127 \begin_layout LyX-Code
25128 Product "$$RotateFront$$ResizeFront
25129 \end_layout
25130
25131 \begin_layout LyX-Code
25132          
25133 \backslash
25134
25135 \backslash
25136 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25137 \end_layout
25138
25139 \begin_layout LyX-Code
25140          $$ResizeBack$$RotateBack"
25141 \end_layout
25142
25143 \begin_layout LyX-Code
25144 UpdateFormat pstex
25145 \end_layout
25146
25147 \begin_layout LyX-Code
25148 UpdateResult "$$AbsPath$$Basename.pstex_t"
25149 \end_layout
25150
25151 \begin_layout LyX-Code
25152 Requirement "graphicx"
25153 \end_layout
25154
25155 \begin_layout LyX-Code
25156 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25157 \end_layout
25158
25159 \begin_layout LyX-Code
25160 ReferencedFile latex "$$AbsPath$$Basename.eps"
25161 \end_layout
25162
25163 \begin_layout LyX-Code
25164 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25165 \end_layout
25166
25167 \begin_layout LyX-Code
25168 FormatEnd
25169 \end_layout
25170
25171 \begin_layout LyX-Code
25172 Format PDFLaTeX
25173 \end_layout
25174
25175 \begin_layout LyX-Code
25176 TransformCommand Rotate RotationLatexCommand
25177 \end_layout
25178
25179 \begin_layout LyX-Code
25180 TransformCommand Resize ResizeLatexCommand
25181 \end_layout
25182
25183 \begin_layout LyX-Code
25184 Product "$$RotateFront$$ResizeFront
25185 \end_layout
25186
25187 \begin_layout LyX-Code
25188          
25189 \backslash
25190
25191 \backslash
25192 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25193 \end_layout
25194
25195 \begin_layout LyX-Code
25196          $$ResizeBack$$RotateBack"
25197 \end_layout
25198
25199 \begin_layout LyX-Code
25200 UpdateFormat pdftex
25201 \end_layout
25202
25203 \begin_layout LyX-Code
25204 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25205 \end_layout
25206
25207 \begin_layout LyX-Code
25208 Requirement "graphicx"
25209 \end_layout
25210
25211 \begin_layout LyX-Code
25212 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25213 \end_layout
25214
25215 \begin_layout LyX-Code
25216 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25217 \end_layout
25218
25219 \begin_layout LyX-Code
25220 FormatEnd
25221 \end_layout
25222
25223 \begin_layout LyX-Code
25224 Format Ascii
25225 \end_layout
25226
25227 \begin_layout LyX-Code
25228 Product "[XFig: $$FName]"
25229 \end_layout
25230
25231 \begin_layout LyX-Code
25232 FormatEnd
25233 \end_layout
25234
25235 \begin_layout LyX-Code
25236 Format DocBook
25237 \end_layout
25238
25239 \begin_layout LyX-Code
25240 Product "<graphic fileref=
25241 \backslash
25242 "$$AbsOrRelPathMaster$$Basename.eps
25243 \backslash
25244 ">
25245 \end_layout
25246
25247 \begin_layout LyX-Code
25248          </graphic>"
25249 \end_layout
25250
25251 \begin_layout LyX-Code
25252 UpdateFormat eps
25253 \end_layout
25254
25255 \begin_layout LyX-Code
25256 UpdateResult "$$AbsPath$$Basename.eps"
25257 \end_layout
25258
25259 \begin_layout LyX-Code
25260 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25261 \end_layout
25262
25263 \begin_layout LyX-Code
25264 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25265 \end_layout
25266
25267 \begin_layout LyX-Code
25268 FormatEnd
25269 \end_layout
25270
25271 \begin_layout LyX-Code
25272 TemplateEnd
25273 \end_layout
25274
25275 \begin_layout Standard
25276 As you can see, the template is enclosed in 
25277 \begin_inset Flex Code
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281 Template
25282 \end_layout
25283
25284 \end_inset
25285
25286  \SpecialChar ldots
25287  
25288 \begin_inset Flex Code
25289 status collapsed
25290
25291 \begin_layout Plain Layout
25292 TemplateEnd
25293 \end_layout
25294
25295 \end_inset
25296
25297 .
25298  It contains a header specifying some general settings and, for each supported
25299  primary document file format, a section 
25300 \begin_inset Flex Code
25301 status collapsed
25302
25303 \begin_layout Plain Layout
25304 Format
25305 \end_layout
25306
25307 \end_inset
25308
25309  \SpecialChar ldots
25310  
25311 \begin_inset Flex Code
25312 status collapsed
25313
25314 \begin_layout Plain Layout
25315 FormatEnd
25316 \end_layout
25317
25318 \end_inset
25319
25320 .
25321 \end_layout
25322
25323 \begin_layout Subsection
25324 The template header
25325 \end_layout
25326
25327 \begin_layout Description
25328 \begin_inset Flex Code
25329 status collapsed
25330
25331 \begin_layout Plain Layout
25332 AutomaticProduction
25333 \begin_inset space ~
25334 \end_inset
25335
25336 true|false
25337 \end_layout
25338
25339 \end_inset
25340
25341  Whether the file represented by the template must be generated by \SpecialChar LyX
25342 .
25343  This command must occur exactly once.
25344 \end_layout
25345
25346 \begin_layout Description
25347 \begin_inset Flex Code
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351 FileFilter
25352 \begin_inset space ~
25353 \end_inset
25354
25355 <pattern>
25356 \end_layout
25357
25358 \end_inset
25359
25360  A glob pattern that is used in the file dialog to filter out the desired
25361  files.
25362  If there is more than one possible file extension (e.
25363 \begin_inset space \thinspace{}
25364 \end_inset
25365
25366 g.
25367 \begin_inset space \space{}
25368 \end_inset
25369
25370 tgif has 
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 .obj
25376 \end_layout
25377
25378 \end_inset
25379
25380  and 
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 .tgo
25386 \end_layout
25387
25388 \end_inset
25389
25390 ), use something like 
25391 \begin_inset Flex Code
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395 "*.{obj,tgo}"
25396 \end_layout
25397
25398 \end_inset
25399
25400 .
25401  This command must occur exactly once.
25402 \end_layout
25403
25404 \begin_layout Description
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 GuiName
25410 \begin_inset space ~
25411 \end_inset
25412
25413 <guiname>
25414 \end_layout
25415
25416 \end_inset
25417
25418  The text that is displayed on the button.
25419  This command must occur exactly once.
25420 \end_layout
25421
25422 \begin_layout Description
25423 \begin_inset Flex Code
25424 status collapsed
25425
25426 \begin_layout Plain Layout
25427 HelpText
25428 \begin_inset space ~
25429 \end_inset
25430
25431 <text>
25432 \begin_inset space ~
25433 \end_inset
25434
25435 HelpTextEnd
25436 \end_layout
25437
25438 \end_inset
25439
25440  The help text that is used in the External dialog.
25441  Provide enough information to explain to the user just what the template
25442  can provide him with.
25443  This command must occur exactly once.
25444 \end_layout
25445
25446 \begin_layout Description
25447 \begin_inset Flex Code
25448 status collapsed
25449
25450 \begin_layout Plain Layout
25451 InputFormat
25452 \begin_inset space ~
25453 \end_inset
25454
25455 <format>
25456 \end_layout
25457
25458 \end_inset
25459
25460  The file format of the original file.
25461  This must be the name of a format that is known to \SpecialChar LyX
25462  (see 
25463 \begin_inset CommandInset ref
25464 LatexCommand ref
25465 reference "sec:Formats"
25466
25467 \end_inset
25468
25469 ).
25470  Use 
25471 \begin_inset Quotes eld
25472 \end_inset
25473
25474
25475 \begin_inset Flex Code
25476 status collapsed
25477
25478 \begin_layout Plain Layout
25479 *
25480 \end_layout
25481
25482 \end_inset
25483
25484
25485 \begin_inset Quotes erd
25486 \end_inset
25487
25488  if the template can handle original files of more than one format.
25489  \SpecialChar LyX
25490  will attempt to interrogate the file itself in order to deduce its format
25491  in this case.
25492  This command must occur exactly once.
25493 \end_layout
25494
25495 \begin_layout Description
25496 \begin_inset Flex Code
25497 status collapsed
25498
25499 \begin_layout Plain Layout
25500 Template
25501 \begin_inset space ~
25502 \end_inset
25503
25504 <id>
25505 \end_layout
25506
25507 \end_inset
25508
25509  A unique name for the template.
25510  It must not contain substitution macros (see below).
25511 \end_layout
25512
25513 \begin_layout Description
25514 \begin_inset Flex Code
25515 status collapsed
25516
25517 \begin_layout Plain Layout
25518 Transform
25519 \begin_inset space ~
25520 \end_inset
25521
25522 Rotate|Resize|Clip|Extra
25523 \end_layout
25524
25525 \end_inset
25526
25527  This command specifies which transformations are supported by this template.
25528  It may occur zero or more times.
25529  This command enables the corresponding tabs in the external dialog.
25530  Each 
25531 \begin_inset Flex Code
25532 status collapsed
25533
25534 \begin_layout Plain Layout
25535 Transform
25536 \end_layout
25537
25538 \end_inset
25539
25540  command must have either a corresponding 
25541 \begin_inset Flex Code
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 TransformCommand
25546 \end_layout
25547
25548 \end_inset
25549
25550  or a 
25551 \begin_inset Flex Code
25552 status collapsed
25553
25554 \begin_layout Plain Layout
25555 TransformOption
25556 \end_layout
25557
25558 \end_inset
25559
25560  command in the 
25561 \begin_inset Flex Code
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565 Format
25566 \end_layout
25567
25568 \end_inset
25569
25570  section.
25571  Otherwise the transformation will not be supported by that format.
25572 \end_layout
25573
25574 \begin_layout Subsection
25575 The Format section
25576 \end_layout
25577
25578 \begin_layout Description
25579 \begin_inset Flex Code
25580 status collapsed
25581
25582 \begin_layout Plain Layout
25583 Format
25584 \begin_inset space ~
25585 \end_inset
25586
25587 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25588 \end_layout
25589
25590 \end_inset
25591
25592  The primary document file format that this format definition is for.
25593  Not every template has a sensible representation in all document file formats.
25594  Please define nevertheless a 
25595 \begin_inset Flex Code
25596 status collapsed
25597
25598 \begin_layout Plain Layout
25599 Format
25600 \end_layout
25601
25602 \end_inset
25603
25604  section for all templates.
25605  Use a dummy text when no representation is available.
25606  Then you can at least see a reference to the external material in the exported
25607  document.
25608 \end_layout
25609
25610 \begin_layout Description
25611 \begin_inset Flex Code
25612 status collapsed
25613
25614 \begin_layout Plain Layout
25615 Option
25616 \begin_inset space ~
25617 \end_inset
25618
25619 <name>
25620 \begin_inset space ~
25621 \end_inset
25622
25623 <value>
25624 \end_layout
25625
25626 \end_inset
25627
25628  This command defines an additional macro 
25629 \begin_inset Flex Code
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 $$<name>
25634 \end_layout
25635
25636 \end_inset
25637
25638  for substitution in 
25639 \begin_inset Flex Code
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 Product
25644 \end_layout
25645
25646 \end_inset
25647
25648 .
25649  
25650 \begin_inset Flex Code
25651 status collapsed
25652
25653 \begin_layout Plain Layout
25654 <value>
25655 \end_layout
25656
25657 \end_inset
25658
25659  itself may contain substitution macros.
25660  The advantage over using 
25661 \begin_inset Flex Code
25662 status collapsed
25663
25664 \begin_layout Plain Layout
25665 <value>
25666 \end_layout
25667
25668 \end_inset
25669
25670  directly in 
25671 \begin_inset Flex Code
25672 status collapsed
25673
25674 \begin_layout Plain Layout
25675 Product
25676 \end_layout
25677
25678 \end_inset
25679
25680  is that the substituted value of 
25681 \begin_inset Flex Code
25682 status collapsed
25683
25684 \begin_layout Plain Layout
25685 $$<name>
25686 \end_layout
25687
25688 \end_inset
25689
25690  is sanitized so that it is a valid optional argument in the document format.
25691  This command may occur zero or more times.
25692 \end_layout
25693
25694 \begin_layout Description
25695 \begin_inset Flex Code
25696 status collapsed
25697
25698 \begin_layout Plain Layout
25699 Product
25700 \begin_inset space ~
25701 \end_inset
25702
25703 <text>
25704 \end_layout
25705
25706 \end_inset
25707
25708  The text that is inserted in the exported document.
25709  This is actually the most important command and can be quite complex.
25710  This command must occur exactly once.
25711 \end_layout
25712
25713 \begin_layout Description
25714 \begin_inset Flex Code
25715 status collapsed
25716
25717 \begin_layout Plain Layout
25718 Preamble
25719 \begin_inset space ~
25720 \end_inset
25721
25722 <name>
25723 \end_layout
25724
25725 \end_inset
25726
25727  This command specifies a preamble snippet that will be included in the
25728  \SpecialChar LaTeX
25729  preamble.
25730  It has to be defined using 
25731 \begin_inset Flex Code
25732 status collapsed
25733
25734 \begin_layout Plain Layout
25735 PreambleDef
25736 \end_layout
25737
25738 \end_inset
25739
25740  \SpecialChar ldots
25741  
25742 \begin_inset Flex Code
25743 status collapsed
25744
25745 \begin_layout Plain Layout
25746 PreambleDefEnd
25747 \end_layout
25748
25749 \end_inset
25750
25751 .
25752  This command may occur zero or more times.
25753 \end_layout
25754
25755 \begin_layout Description
25756 \begin_inset Flex Code
25757 status collapsed
25758
25759 \begin_layout Plain Layout
25760 ReferencedFile
25761 \begin_inset space ~
25762 \end_inset
25763
25764 <format>
25765 \begin_inset space ~
25766 \end_inset
25767
25768 <filename>
25769 \end_layout
25770
25771 \end_inset
25772
25773  This command denotes files that are created by the conversion process and
25774  are needed for a particular export format.
25775  If the filename is relative, it is interpreted relative to the master document.
25776  This command may be given zero or more times.
25777 \end_layout
25778
25779 \begin_layout Description
25780 \begin_inset Flex Code
25781 status collapsed
25782
25783 \begin_layout Plain Layout
25784 Requirement
25785 \begin_inset space ~
25786 \end_inset
25787
25788 <package>
25789 \end_layout
25790
25791 \end_inset
25792
25793  The name of a required \SpecialChar LaTeX
25794  package.
25795  The package is included via 
25796 \begin_inset Flex Code
25797 status collapsed
25798
25799 \begin_layout Plain Layout
25800
25801 \backslash
25802 usepackage{}
25803 \end_layout
25804
25805 \end_inset
25806
25807  in the \SpecialChar LaTeX
25808  preamble.
25809  This command may occur zero or more times.
25810 \end_layout
25811
25812 \begin_layout Description
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 TransformCommand
25818 \begin_inset space ~
25819 \end_inset
25820
25821 Rotate
25822 \begin_inset space ~
25823 \end_inset
25824
25825 RotationLatexCommand
25826 \end_layout
25827
25828 \end_inset
25829
25830  This command specifies that the built in \SpecialChar LaTeX
25831  command should be used for rotation.
25832  This command may occur once or not at all.
25833 \end_layout
25834
25835 \begin_layout Description
25836 \begin_inset Flex Code
25837 status collapsed
25838
25839 \begin_layout Plain Layout
25840 TransformCommand
25841 \begin_inset space ~
25842 \end_inset
25843
25844 Resize
25845 \begin_inset space ~
25846 \end_inset
25847
25848 ResizeLatexCommand
25849 \end_layout
25850
25851 \end_inset
25852
25853  This command specifies that the built in \SpecialChar LaTeX
25854  command should be used for resizing.
25855  This command may occur once or not at all.
25856 \end_layout
25857
25858 \begin_layout Description
25859 \begin_inset Flex Code
25860 status collapsed
25861
25862 \begin_layout Plain Layout
25863 TransformOption
25864 \begin_inset space ~
25865 \end_inset
25866
25867 Rotate
25868 \begin_inset space ~
25869 \end_inset
25870
25871 RotationLatexOption
25872 \end_layout
25873
25874 \end_inset
25875
25876  This command specifies that rotation is done via an optional argument.
25877  This command may occur once or not at all.
25878 \end_layout
25879
25880 \begin_layout Description
25881 \begin_inset Flex Code
25882 status collapsed
25883
25884 \begin_layout Plain Layout
25885 TransformOption
25886 \begin_inset space ~
25887 \end_inset
25888
25889 Resize
25890 \begin_inset space ~
25891 \end_inset
25892
25893 ResizeLatexOption
25894 \end_layout
25895
25896 \end_inset
25897
25898  This command specifies that resizing is done via an optional argument.
25899  This command may occur once or not at all.
25900 \end_layout
25901
25902 \begin_layout Description
25903 \begin_inset Flex Code
25904 status collapsed
25905
25906 \begin_layout Plain Layout
25907 TransformOption
25908 \begin_inset space ~
25909 \end_inset
25910
25911 Clip
25912 \begin_inset space ~
25913 \end_inset
25914
25915 ClipLatexOption
25916 \end_layout
25917
25918 \end_inset
25919
25920  This command specifies that clipping is done via an optional argument.
25921  This command may occur once or not at all.
25922 \end_layout
25923
25924 \begin_layout Description
25925 \begin_inset Flex Code
25926 status collapsed
25927
25928 \begin_layout Plain Layout
25929 TransformOption
25930 \begin_inset space ~
25931 \end_inset
25932
25933 Extra
25934 \begin_inset space ~
25935 \end_inset
25936
25937 ExtraLatexOption
25938 \end_layout
25939
25940 \end_inset
25941
25942  This command specifies that an extra optional argument is used.
25943  This command may occur once or not at all.
25944 \end_layout
25945
25946 \begin_layout Description
25947 \begin_inset Flex Code
25948 status collapsed
25949
25950 \begin_layout Plain Layout
25951 UpdateFormat
25952 \begin_inset space ~
25953 \end_inset
25954
25955 <format>
25956 \end_layout
25957
25958 \end_inset
25959
25960  The file format of the converted file.
25961  This must be the name of a format that is known to \SpecialChar LyX
25962  (see the 
25963 \begin_inset Flex Noun
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 Tools\SpecialChar menuseparator
25968 Preferences\SpecialChar menuseparator
25969 File Handling\SpecialChar menuseparator
25970 File Format
25971 \end_layout
25972
25973 \end_inset
25974
25975  dialog).
25976  This command must occur exactly once.
25977  If the resulting file format is PDF, you need to specify the format 
25978 \begin_inset Flex Code
25979 status collapsed
25980
25981 \begin_layout Plain Layout
25982 pdf6
25983 \end_layout
25984
25985 \end_inset
25986
25987 .
25988  This is the PDF format used for including graphics.
25989  The other defined PDF formats are for document export.
25990 \end_layout
25991
25992 \begin_layout Description
25993 \begin_inset Flex Code
25994 status collapsed
25995
25996 \begin_layout Plain Layout
25997 UpdateResult
25998 \begin_inset space ~
25999 \end_inset
26000
26001 <filename>
26002 \end_layout
26003
26004 \end_inset
26005
26006  The file name of the converted file.
26007  The file name must be absolute.
26008  This command must occur exactly once.
26009 \end_layout
26010
26011 \begin_layout Subsection
26012 Preamble definitions
26013 \end_layout
26014
26015 \begin_layout Standard
26016 The external template configuration file may contain additional preamble
26017  definitions enclosed by 
26018 \begin_inset Flex Code
26019 status collapsed
26020
26021 \begin_layout Plain Layout
26022 PreambleDef
26023 \end_layout
26024
26025 \end_inset
26026
26027  \SpecialChar ldots
26028  
26029 \begin_inset Flex Code
26030 status collapsed
26031
26032 \begin_layout Plain Layout
26033 PreambleDefEnd
26034 \end_layout
26035
26036 \end_inset
26037
26038 .
26039  They can be used by the templates in the 
26040 \begin_inset Flex Code
26041 status collapsed
26042
26043 \begin_layout Plain Layout
26044 Format
26045 \end_layout
26046
26047 \end_inset
26048
26049  section.
26050 \end_layout
26051
26052 \begin_layout Section
26053 The substitution mechanism
26054 \end_layout
26055
26056 \begin_layout Standard
26057 When the external material facility invokes an external program, it is done
26058  on the basis of a command defined in the template configuration file.
26059  These commands can contain various macros that are expanded before execution.
26060  Execution always take place in the directory of the containing document.
26061 \end_layout
26062
26063 \begin_layout Standard
26064 Also, whenever external material is to be displayed, the name will be produced
26065  by the substitution mechanism, and most other commands in the template
26066  definition support substitution as well.
26067 \end_layout
26068
26069 \begin_layout Standard
26070 The available macros are the following:
26071 \end_layout
26072
26073 \begin_layout Description
26074 \begin_inset Flex Code
26075 status collapsed
26076
26077 \begin_layout Plain Layout
26078 $$AbsOrRelPathMaster
26079 \end_layout
26080
26081 \end_inset
26082
26083  The file path, absolute or relative to the master \SpecialChar LyX
26084  document.
26085 \end_layout
26086
26087 \begin_layout Description
26088 \begin_inset Flex Code
26089 status collapsed
26090
26091 \begin_layout Plain Layout
26092 $$AbsOrRelPathParent
26093 \end_layout
26094
26095 \end_inset
26096
26097  The file path, absolute or relative to the \SpecialChar LyX
26098  document.
26099 \end_layout
26100
26101 \begin_layout Description
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 $$AbsPath
26107 \end_layout
26108
26109 \end_inset
26110
26111  The absolute file path.
26112 \end_layout
26113
26114 \begin_layout Description
26115 \begin_inset Flex Code
26116 status collapsed
26117
26118 \begin_layout Plain Layout
26119 $$Basename
26120 \end_layout
26121
26122 \end_inset
26123
26124  The filename without path and without the extension.
26125 \end_layout
26126
26127 \begin_layout Description
26128 \begin_inset Flex Code
26129 status collapsed
26130
26131 \begin_layout Plain Layout
26132 $$Contents(
26133 \begin_inset Quotes eld
26134 \end_inset
26135
26136 filename.ext
26137 \begin_inset Quotes erd
26138 \end_inset
26139
26140 )
26141 \end_layout
26142
26143 \end_inset
26144
26145  This macro will expand to the contents of the file with the name 
26146 \begin_inset Flex Code
26147 status collapsed
26148
26149 \begin_layout Plain Layout
26150 filename.ext
26151 \end_layout
26152
26153 \end_inset
26154
26155 .
26156 \end_layout
26157
26158 \begin_layout Description
26159 \begin_inset Flex Code
26160 status collapsed
26161
26162 \begin_layout Plain Layout
26163 $$Extension
26164 \end_layout
26165
26166 \end_inset
26167
26168  The file extension (including the dot).
26169 \end_layout
26170
26171 \begin_layout Description
26172 \begin_inset Flex Code
26173 status collapsed
26174
26175 \begin_layout Plain Layout
26176 $$pngOrjpg
26177 \end_layout
26178
26179 \end_inset
26180
26181  This will be the string 
26182 \begin_inset Quotes eld
26183 \end_inset
26184
26185 jpg
26186 \begin_inset Quotes erd
26187 \end_inset
26188
26189  if the file is in JPEG format, otherwise it will be the string 
26190 \begin_inset Quotes eld
26191 \end_inset
26192
26193 png
26194 \begin_inset Quotes erd
26195 \end_inset
26196
26197 .
26198  This is useful to avoid uneeded conversions for output formats that support
26199  both PNG and JPEG fomats.
26200  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26201  output
26202  format.
26203 \end_layout
26204
26205 \begin_layout Description
26206 \begin_inset Flex Code
26207 status collapsed
26208
26209 \begin_layout Plain Layout
26210 $$FName
26211 \end_layout
26212
26213 \end_inset
26214
26215  The filename of the file specified in the external material dialog.
26216  This is either an absolute name, or it is relative to the \SpecialChar LyX
26217  document.
26218 \end_layout
26219
26220 \begin_layout Description
26221 \begin_inset Flex Code
26222 status collapsed
26223
26224 \begin_layout Plain Layout
26225 $$FPath
26226 \end_layout
26227
26228 \end_inset
26229
26230  The path part of 
26231 \begin_inset Flex Code
26232 status collapsed
26233
26234 \begin_layout Plain Layout
26235 $$FName
26236 \end_layout
26237
26238 \end_inset
26239
26240  (absolute name or relative to the \SpecialChar LyX
26241  document).
26242 \end_layout
26243
26244 \begin_layout Description
26245 \begin_inset Flex Code
26246 status collapsed
26247
26248 \begin_layout Plain Layout
26249 $$RelPathMaster
26250 \end_layout
26251
26252 \end_inset
26253
26254  The file path, relative to the master \SpecialChar LyX
26255  document.
26256 \end_layout
26257
26258 \begin_layout Description
26259 \begin_inset Flex Code
26260 status collapsed
26261
26262 \begin_layout Plain Layout
26263 $$RelPathParent
26264 \end_layout
26265
26266 \end_inset
26267
26268  The file path, relative to the \SpecialChar LyX
26269  document.
26270 \end_layout
26271
26272 \begin_layout Description
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 $$Sysdir
26278 \end_layout
26279
26280 \end_inset
26281
26282  This macro will expand to the absolute path of the system directory.
26283  This is typically used to point to the various helper scripts that are
26284  bundled with \SpecialChar LyX
26285 .
26286 \end_layout
26287
26288 \begin_layout Description
26289 \begin_inset Flex Code
26290 status collapsed
26291
26292 \begin_layout Plain Layout
26293 $$Tempname
26294 \end_layout
26295
26296 \end_inset
26297
26298  A name and full path to a temporary file which will be automatically deleted
26299  whenever the containing document is closed, or the external material insertion
26300  deleted.
26301 \end_layout
26302
26303 \begin_layout Standard
26304 All path macros contain a trailing directory separator, so you can construct
26305  e.
26306 \begin_inset space \thinspace{}
26307 \end_inset
26308
26309 g.
26310 \begin_inset space \space{}
26311 \end_inset
26312
26313 the absolute filename with 
26314 \begin_inset Flex Code
26315 status collapsed
26316
26317 \begin_layout Plain Layout
26318 $$AbsPath$$Basename$$Extension
26319 \end_layout
26320
26321 \end_inset
26322
26323 .
26324 \end_layout
26325
26326 \begin_layout Standard
26327 The macros above are substituted in all commands unless otherwise noted.
26328  The command 
26329 \begin_inset Flex Code
26330 status collapsed
26331
26332 \begin_layout Plain Layout
26333 Product
26334 \end_layout
26335
26336 \end_inset
26337
26338  supports additionally the following substitutions if they are enabled by
26339  the 
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 Transform
26345 \end_layout
26346
26347 \end_inset
26348
26349  and 
26350 \begin_inset Flex Code
26351 status collapsed
26352
26353 \begin_layout Plain Layout
26354 TransformCommand
26355 \end_layout
26356
26357 \end_inset
26358
26359  commands:
26360 \end_layout
26361
26362 \begin_layout Description
26363 \begin_inset Flex Code
26364 status collapsed
26365
26366 \begin_layout Plain Layout
26367 $$ResizeFront
26368 \end_layout
26369
26370 \end_inset
26371
26372  The front part of the resize command.
26373 \end_layout
26374
26375 \begin_layout Description
26376 \begin_inset Flex Code
26377 status collapsed
26378
26379 \begin_layout Plain Layout
26380 $$ResizeBack
26381 \end_layout
26382
26383 \end_inset
26384
26385  The back part of the resize command.
26386 \end_layout
26387
26388 \begin_layout Description
26389 \begin_inset Flex Code
26390 status collapsed
26391
26392 \begin_layout Plain Layout
26393 $$RotateFront
26394 \end_layout
26395
26396 \end_inset
26397
26398  The front part of the rotation command.
26399 \end_layout
26400
26401 \begin_layout Description
26402 \begin_inset Flex Code
26403 status collapsed
26404
26405 \begin_layout Plain Layout
26406 $$RotateBack
26407 \end_layout
26408
26409 \end_inset
26410
26411  The back part of the rotation command.
26412 \end_layout
26413
26414 \begin_layout Standard
26415 The value string of the 
26416 \begin_inset Flex Code
26417 status collapsed
26418
26419 \begin_layout Plain Layout
26420 Option
26421 \end_layout
26422
26423 \end_inset
26424
26425  command supports additionally the following substitutions if they are enabled
26426  by the 
26427 \begin_inset Flex Code
26428 status collapsed
26429
26430 \begin_layout Plain Layout
26431 Transform
26432 \end_layout
26433
26434 \end_inset
26435
26436  and 
26437 \begin_inset Flex Code
26438 status collapsed
26439
26440 \begin_layout Plain Layout
26441 TransformOption
26442 \end_layout
26443
26444 \end_inset
26445
26446  commands:
26447 \end_layout
26448
26449 \begin_layout Description
26450 \begin_inset Flex Code
26451 status collapsed
26452
26453 \begin_layout Plain Layout
26454 $$Clip
26455 \end_layout
26456
26457 \end_inset
26458
26459  The clip option.
26460 \end_layout
26461
26462 \begin_layout Description
26463 \begin_inset Flex Code
26464 status collapsed
26465
26466 \begin_layout Plain Layout
26467 $$Extra
26468 \end_layout
26469
26470 \end_inset
26471
26472  The extra option.
26473 \end_layout
26474
26475 \begin_layout Description
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 $$Resize
26481 \end_layout
26482
26483 \end_inset
26484
26485  The resize option.
26486 \end_layout
26487
26488 \begin_layout Description
26489 \begin_inset Flex Code
26490 status collapsed
26491
26492 \begin_layout Plain Layout
26493 $$Rotate
26494 \end_layout
26495
26496 \end_inset
26497
26498  The rotation option.
26499 \end_layout
26500
26501 \begin_layout Standard
26502 You may ask why there are so many path macros.
26503  There are mainly two reasons:
26504 \end_layout
26505
26506 \begin_layout Enumerate
26507 Relative and absolute file names should remain relative or absolute, respectivel
26508 y.
26509  Users may have reasons to prefer either form.
26510  Relative names are useful for portable documents that should work on different
26511  machines, for example.
26512  Absolute names may be required by some programs.
26513 \end_layout
26514
26515 \begin_layout Enumerate
26516 \SpecialChar LaTeX
26517  treats relative file names differently than \SpecialChar LyX
26518  and other programs in nested
26519  included files.
26520  For \SpecialChar LyX
26521 , a relative file name is always relative to the document that contains
26522  the file name.
26523  For \SpecialChar LaTeX
26524 , it is always relative to the master document.
26525  These two definitions are identical if you have only one document, but
26526  differ if you have a master document that includes part documents.
26527  That means that relative filenames must be transformed when presented to
26528  \SpecialChar LaTeX
26529 .
26530  Fortunately \SpecialChar LyX
26531  does this automatically for you if you choose the right macros.
26532 \end_layout
26533
26534 \begin_layout Standard
26535 So which path macro should be used in new template definitions? The rule
26536  is not difficult:
26537 \end_layout
26538
26539 \begin_layout Itemize
26540 Use 
26541 \begin_inset Flex Code
26542 status collapsed
26543
26544 \begin_layout Plain Layout
26545 $$AbsPath
26546 \end_layout
26547
26548 \end_inset
26549
26550  if an absolute path is required.
26551 \end_layout
26552
26553 \begin_layout Itemize
26554 Use 
26555 \begin_inset Flex Code
26556 status collapsed
26557
26558 \begin_layout Plain Layout
26559 $$AbsOrRelPathMaster
26560 \end_layout
26561
26562 \end_inset
26563
26564  if the substituted string is some kind of \SpecialChar LaTeX
26565  input.
26566 \end_layout
26567
26568 \begin_layout Itemize
26569 Else use 
26570 \begin_inset Flex Code
26571 status collapsed
26572
26573 \begin_layout Plain Layout
26574 $$AbsOrRelPathParent
26575 \end_layout
26576
26577 \end_inset
26578
26579  in order to preserve the user's choice.
26580 \end_layout
26581
26582 \begin_layout Standard
26583 There are special cases where this rule does not work and e.
26584 \begin_inset space \thinspace{}
26585 \end_inset
26586
26587 g.
26588 \begin_inset space \space{}
26589 \end_inset
26590
26591 relative names are needed, but normally it will work just fine.
26592  One example for such a case is the command 
26593 \begin_inset Flex Code
26594 status collapsed
26595
26596 \begin_layout Plain Layout
26597 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26598 \end_layout
26599
26600 \end_inset
26601
26602  in the XFig template above: We can't use the absolute name because the
26603  copier for 
26604 \begin_inset Flex Code
26605 status collapsed
26606
26607 \begin_layout Plain Layout
26608 .pstex_t
26609 \end_layout
26610
26611 \end_inset
26612
26613  files needs the relative name in order to rewrite the file content.
26614 \end_layout
26615
26616 \begin_layout Section
26617 Security discussion
26618 \begin_inset CommandInset label
26619 LatexCommand label
26620 name "sec:Security-discussion"
26621
26622 \end_inset
26623
26624
26625 \end_layout
26626
26627 \begin_layout Standard
26628 The external material feature interfaces with a lot of external programs
26629  and does so automatically, so we have to consider the security implications
26630  of this.
26631  In particular, since you have the option of including your own filenames
26632  and/or parameter strings and those are expanded into a command, it seems
26633  that it would be possible to create a malicious document which executes
26634  arbitrary commands when a user views or prints the document.
26635  This is something we definitely want to avoid.
26636 \end_layout
26637
26638 \begin_layout Standard
26639 However, since the external program commands are specified in the template
26640  configuration file only, there are no security issues if \SpecialChar LyX
26641  is properly configure
26642 d with safe templates only.
26643  This is so because the external programs are invoked with the 
26644 \begin_inset Flex Code
26645 status collapsed
26646
26647 \begin_layout Plain Layout
26648 execvp
26649 \end_layout
26650
26651 \end_inset
26652
26653 -system call rather than the 
26654 \begin_inset Flex Code
26655 status collapsed
26656
26657 \begin_layout Plain Layout
26658 system
26659 \end_layout
26660
26661 \end_inset
26662
26663  system-call, so it's not possible to execute arbitrary commands from the
26664  filename or parameter section via the shell.
26665 \end_layout
26666
26667 \begin_layout Standard
26668 This also implies that you are restricted in what command strings you can
26669  use in the external material templates.
26670  In particular, pipes and redirection are not readily available.
26671  This has to be so if \SpecialChar LyX
26672  should remain safe.
26673  If you want to use some of the shell features, you should write a safe
26674  script to do this in a controlled manner, and then invoke the script from
26675  the command string.
26676  
26677 \end_layout
26678
26679 \begin_layout Standard
26680 It is possible to design a template that interacts directly with the shell,
26681  but since this would allow a malicious user to execute arbitrary commands
26682  by writing clever filenames and/or parameters, we generally recommend that
26683  you only use safe scripts that work with the 
26684 \begin_inset Flex Code
26685 status collapsed
26686
26687 \begin_layout Plain Layout
26688 execvp
26689 \end_layout
26690
26691 \end_inset
26692
26693  system call in a controlled manner.
26694  Of course, for use in a controlled environment, it can be tempting to just
26695  fall back to use ordinary shell scripts.
26696  If you do so, be aware that you 
26697 \emph on
26698 will
26699 \emph default
26700  provide an easily exploitable security hole in your system.
26701  Of course it stands to reason that such unsafe templates will never be
26702  included in the standard \SpecialChar LyX
26703  distribution, although we do encourage people
26704  to submit new templates in the open source tradition.
26705  But \SpecialChar LyX
26706  as shipped from the official distribution channels will never have
26707  unsafe templates.
26708 \end_layout
26709
26710 \begin_layout Standard
26711 Including external material provides a lot of power, and you have to be
26712  careful not to introduce security hazards with this power.
26713  A subtle error in a single line in an innocent looking script can open
26714  the door to huge security problems.
26715  So if you do not fully understand the issues, we recommend that you consult
26716  a knowledgeable security professional or the \SpecialChar LyX
26717  development team if you have
26718  any questions about whether a given template is safe or not.
26719  And do this before you use it in an uncontrolled environment.
26720 \end_layout
26721
26722 \begin_layout Chapter
26723 \start_of_appendix
26724 List of supported \SpecialChar LyX
26725  functions to be used in layouts
26726 \begin_inset CommandInset label
26727 LatexCommand label
26728 name "chap:List-of-functions"
26729
26730 \end_inset
26731
26732
26733 \end_layout
26734
26735 \begin_layout Standard
26736 \align center
26737 \begin_inset Tabular
26738 <lyxtabular version="3" rows="11" columns="8">
26739 <features tabularvalignment="middle">
26740 <column alignment="left" valignment="top">
26741 <column alignment="left" valignment="top">
26742 <column alignment="left" valignment="top">
26743 <column alignment="left" valignment="top">
26744 <column alignment="left" valignment="top">
26745 <column alignment="left" valignment="top">
26746 <column alignment="left" valignment="top">
26747 <column alignment="left" valignment="top">
26748 <row>
26749 <cell alignment="left" valignment="top" usebox="none">
26750 \begin_inset Text
26751
26752 \begin_layout Plain Layout
26753 accents
26754 \end_layout
26755
26756 \end_inset
26757 </cell>
26758 <cell alignment="left" valignment="top" usebox="none">
26759 \begin_inset Text
26760
26761 \begin_layout Plain Layout
26762 booktabs
26763 \end_layout
26764
26765 \end_inset
26766 </cell>
26767 <cell alignment="left" valignment="top" usebox="none">
26768 \begin_inset Text
26769
26770 \begin_layout Plain Layout
26771 feyn
26772 \end_layout
26773
26774 \end_inset
26775 </cell>
26776 <cell alignment="left" valignment="top" usebox="none">
26777 \begin_inset Text
26778
26779 \begin_layout Plain Layout
26780 listings
26781 \end_layout
26782
26783 \end_inset
26784 </cell>
26785 <cell alignment="center" valignment="top" usebox="none">
26786 \begin_inset Text
26787
26788 \begin_layout Plain Layout
26789 natbib
26790 \end_layout
26791
26792 \end_inset
26793 </cell>
26794 <cell alignment="center" valignment="top" usebox="none">
26795 \begin_inset Text
26796
26797 \begin_layout Plain Layout
26798 rotfloat
26799 \end_layout
26800
26801 \end_inset
26802 </cell>
26803 <cell alignment="center" valignment="top" usebox="none">
26804 \begin_inset Text
26805
26806 \begin_layout Plain Layout
26807 tfrupee
26808 \end_layout
26809
26810 \end_inset
26811 </cell>
26812 <cell alignment="center" valignment="top" usebox="none">
26813 \begin_inset Text
26814
26815 \begin_layout Plain Layout
26816 wasysym
26817 \end_layout
26818
26819 \end_inset
26820 </cell>
26821 </row>
26822 <row>
26823 <cell alignment="left" valignment="top" usebox="none">
26824 \begin_inset Text
26825
26826 \begin_layout Plain Layout
26827 amsbsy
26828 \end_layout
26829
26830 \end_inset
26831 </cell>
26832 <cell alignment="left" valignment="top" usebox="none">
26833 \begin_inset Text
26834
26835 \begin_layout Plain Layout
26836 calc
26837 \end_layout
26838
26839 \end_inset
26840 </cell>
26841 <cell alignment="left" valignment="top" usebox="none">
26842 \begin_inset Text
26843
26844 \begin_layout Plain Layout
26845 fixltx2e
26846 \end_layout
26847
26848 \end_inset
26849 </cell>
26850 <cell alignment="left" valignment="top" usebox="none">
26851 \begin_inset Text
26852
26853 \begin_layout Plain Layout
26854 longtable
26855 \end_layout
26856
26857 \end_inset
26858 </cell>
26859 <cell alignment="center" valignment="top" usebox="none">
26860 \begin_inset Text
26861
26862 \begin_layout Plain Layout
26863 nomencl
26864 \end_layout
26865
26866 \end_inset
26867 </cell>
26868 <cell alignment="center" valignment="top" usebox="none">
26869 \begin_inset Text
26870
26871 \begin_layout Plain Layout
26872 rsphrase
26873 \end_layout
26874
26875 \end_inset
26876 </cell>
26877 <cell alignment="center" valignment="top" usebox="none">
26878 \begin_inset Text
26879
26880 \begin_layout Plain Layout
26881 tipa
26882 \end_layout
26883
26884 \end_inset
26885 </cell>
26886 <cell alignment="center" valignment="top" usebox="none">
26887 \begin_inset Text
26888
26889 \begin_layout Plain Layout
26890 wrapfig
26891 \end_layout
26892
26893 \end_inset
26894 </cell>
26895 </row>
26896 <row>
26897 <cell alignment="left" valignment="top" usebox="none">
26898 \begin_inset Text
26899
26900 \begin_layout Plain Layout
26901 amscd
26902 \end_layout
26903
26904 \end_inset
26905 </cell>
26906 <cell alignment="left" valignment="top" usebox="none">
26907 \begin_inset Text
26908
26909 \begin_layout Plain Layout
26910 CJK
26911 \end_layout
26912
26913 \end_inset
26914 </cell>
26915 <cell alignment="left" valignment="top" usebox="none">
26916 \begin_inset Text
26917
26918 \begin_layout Plain Layout
26919 float
26920 \end_layout
26921
26922 \end_inset
26923 </cell>
26924 <cell alignment="left" valignment="top" usebox="none">
26925 \begin_inset Text
26926
26927 \begin_layout Plain Layout
26928 lyxskak
26929 \end_layout
26930
26931 \end_inset
26932 </cell>
26933 <cell alignment="center" valignment="top" usebox="none">
26934 \begin_inset Text
26935
26936 \begin_layout Plain Layout
26937 pdfcolmk
26938 \end_layout
26939
26940 \end_inset
26941 </cell>
26942 <cell alignment="center" valignment="top" usebox="none">
26943 \begin_inset Text
26944
26945 \begin_layout Plain Layout
26946 setspace
26947 \end_layout
26948
26949 \end_inset
26950 </cell>
26951 <cell alignment="center" valignment="top" usebox="none">
26952 \begin_inset Text
26953
26954 \begin_layout Plain Layout
26955 tipx
26956 \end_layout
26957
26958 \end_inset
26959 </cell>
26960 <cell alignment="center" valignment="top" usebox="none">
26961 \begin_inset Text
26962
26963 \begin_layout Plain Layout
26964 xargs
26965 \end_layout
26966
26967 \end_inset
26968 </cell>
26969 </row>
26970 <row>
26971 <cell alignment="left" valignment="top" usebox="none">
26972 \begin_inset Text
26973
26974 \begin_layout Plain Layout
26975 amsmath
26976 \end_layout
26977
26978 \end_inset
26979 </cell>
26980 <cell alignment="left" valignment="top" usebox="none">
26981 \begin_inset Text
26982
26983 \begin_layout Plain Layout
26984 color
26985 \end_layout
26986
26987 \end_inset
26988 </cell>
26989 <cell alignment="left" valignment="top" usebox="none">
26990 \begin_inset Text
26991
26992 \begin_layout Plain Layout
26993 framed
26994 \end_layout
26995
26996 \end_inset
26997 </cell>
26998 <cell alignment="left" valignment="top" usebox="none">
26999 \begin_inset Text
27000
27001 \begin_layout Plain Layout
27002 makeidx
27003 \end_layout
27004
27005 \end_inset
27006 </cell>
27007 <cell alignment="center" valignment="top" usebox="none">
27008 \begin_inset Text
27009
27010 \begin_layout Plain Layout
27011 pdfpages
27012 \end_layout
27013
27014 \end_inset
27015 </cell>
27016 <cell alignment="center" valignment="top" usebox="none">
27017 \begin_inset Text
27018
27019 \begin_layout Plain Layout
27020 shapepar
27021 \end_layout
27022
27023 \end_inset
27024 </cell>
27025 <cell alignment="center" valignment="top" usebox="none">
27026 \begin_inset Text
27027
27028 \begin_layout Plain Layout
27029 tone
27030 \end_layout
27031
27032 \end_inset
27033 </cell>
27034 <cell alignment="center" valignment="top" usebox="none">
27035 \begin_inset Text
27036
27037 \begin_layout Plain Layout
27038 xcolor
27039 \end_layout
27040
27041 \end_inset
27042 </cell>
27043 </row>
27044 <row>
27045 <cell alignment="left" valignment="top" usebox="none">
27046 \begin_inset Text
27047
27048 \begin_layout Plain Layout
27049 amssymb
27050 \end_layout
27051
27052 \end_inset
27053 </cell>
27054 <cell alignment="left" valignment="top" usebox="none">
27055 \begin_inset Text
27056
27057 \begin_layout Plain Layout
27058 covington
27059 \end_layout
27060
27061 \end_inset
27062 </cell>
27063 <cell alignment="left" valignment="top" usebox="none">
27064 \begin_inset Text
27065
27066 \begin_layout Plain Layout
27067 graphicx
27068 \end_layout
27069
27070 \end_inset
27071 </cell>
27072 <cell alignment="left" valignment="top" usebox="none">
27073 \begin_inset Text
27074
27075 \begin_layout Plain Layout
27076 marvosym
27077 \end_layout
27078
27079 \end_inset
27080 </cell>
27081 <cell alignment="center" valignment="top" usebox="none">
27082 \begin_inset Text
27083
27084 \begin_layout Plain Layout
27085 pifont
27086 \end_layout
27087
27088 \end_inset
27089 </cell>
27090 <cell alignment="center" valignment="top" usebox="none">
27091 \begin_inset Text
27092
27093 \begin_layout Plain Layout
27094 slashed
27095 \end_layout
27096
27097 \end_inset
27098 </cell>
27099 <cell alignment="center" valignment="top" usebox="none">
27100 \begin_inset Text
27101
27102 \begin_layout Plain Layout
27103 txfonts
27104 \end_layout
27105
27106 \end_inset
27107 </cell>
27108 <cell alignment="center" valignment="top" usebox="none">
27109 \begin_inset Text
27110
27111 \begin_layout Plain Layout
27112 xy
27113 \end_layout
27114
27115 \end_inset
27116 </cell>
27117 </row>
27118 <row>
27119 <cell alignment="left" valignment="top" usebox="none">
27120 \begin_inset Text
27121
27122 \begin_layout Plain Layout
27123 amstext
27124 \end_layout
27125
27126 \end_inset
27127 </cell>
27128 <cell alignment="left" valignment="top" usebox="none">
27129 \begin_inset Text
27130
27131 \begin_layout Plain Layout
27132 csquotes
27133 \end_layout
27134
27135 \end_inset
27136 </cell>
27137 <cell alignment="left" valignment="top" usebox="none">
27138 \begin_inset Text
27139
27140 \begin_layout Plain Layout
27141 hhline
27142 \end_layout
27143
27144 \end_inset
27145 </cell>
27146 <cell alignment="left" valignment="top" usebox="none">
27147 \begin_inset Text
27148
27149 \begin_layout Plain Layout
27150 mathdesign
27151 \end_layout
27152
27153 \end_inset
27154 </cell>
27155 <cell alignment="center" valignment="top" usebox="none">
27156 \begin_inset Text
27157
27158 \begin_layout Plain Layout
27159 pmboxdraw
27160 \end_layout
27161
27162 \end_inset
27163 </cell>
27164 <cell alignment="center" valignment="top" usebox="none">
27165 \begin_inset Text
27166
27167 \begin_layout Plain Layout
27168 soul
27169 \end_layout
27170
27171 \end_inset
27172 </cell>
27173 <cell alignment="center" valignment="top" usebox="none">
27174 \begin_inset Text
27175
27176 \begin_layout Plain Layout
27177 ulem
27178 \end_layout
27179
27180 \end_inset
27181 </cell>
27182 <cell alignment="center" valignment="top" usebox="none">
27183 \begin_inset Text
27184
27185 \begin_layout Plain Layout
27186 yhmath
27187 \end_layout
27188
27189 \end_inset
27190 </cell>
27191 </row>
27192 <row>
27193 <cell alignment="left" valignment="top" usebox="none">
27194 \begin_inset Text
27195
27196 \begin_layout Plain Layout
27197 amsthm
27198 \end_layout
27199
27200 \end_inset
27201 </cell>
27202 <cell alignment="left" valignment="top" usebox="none">
27203 \begin_inset Text
27204
27205 \begin_layout Plain Layout
27206 dvipost
27207 \end_layout
27208
27209 \end_inset
27210 </cell>
27211 <cell alignment="left" valignment="top" usebox="none">
27212 \begin_inset Text
27213
27214 \begin_layout Plain Layout
27215 hyperref
27216 \end_layout
27217
27218 \end_inset
27219 </cell>
27220 <cell alignment="left" valignment="top" usebox="none">
27221 \begin_inset Text
27222
27223 \begin_layout Plain Layout
27224 mathdots
27225 \end_layout
27226
27227 \end_inset
27228 </cell>
27229 <cell alignment="center" valignment="top" usebox="none">
27230 \begin_inset Text
27231
27232 \begin_layout Plain Layout
27233 polyglossia
27234 \end_layout
27235
27236 \end_inset
27237 </cell>
27238 <cell alignment="center" valignment="top" usebox="none">
27239 \begin_inset Text
27240
27241 \begin_layout Plain Layout
27242 splitidx
27243 \end_layout
27244
27245 \end_inset
27246 </cell>
27247 <cell alignment="center" valignment="top" usebox="none">
27248 \begin_inset Text
27249
27250 \begin_layout Plain Layout
27251 undertilde
27252 \end_layout
27253
27254 \end_inset
27255 </cell>
27256 <cell alignment="center" valignment="top" usebox="none">
27257 \begin_inset Text
27258
27259 \begin_layout Plain Layout
27260
27261 \end_layout
27262
27263 \end_inset
27264 </cell>
27265 </row>
27266 <row>
27267 <cell alignment="left" valignment="top" usebox="none">
27268 \begin_inset Text
27269
27270 \begin_layout Plain Layout
27271 array
27272 \end_layout
27273
27274 \end_inset
27275 </cell>
27276 <cell alignment="left" valignment="top" usebox="none">
27277 \begin_inset Text
27278
27279 \begin_layout Plain Layout
27280 endnotes
27281 \end_layout
27282
27283 \end_inset
27284 </cell>
27285 <cell alignment="left" valignment="top" usebox="none">
27286 \begin_inset Text
27287
27288 \begin_layout Plain Layout
27289 ifsym
27290 \end_layout
27291
27292 \end_inset
27293 </cell>
27294 <cell alignment="left" valignment="top" usebox="none">
27295 \begin_inset Text
27296
27297 \begin_layout Plain Layout
27298 mathrsfs
27299 \end_layout
27300
27301 \end_inset
27302 </cell>
27303 <cell alignment="center" valignment="top" usebox="none">
27304 \begin_inset Text
27305
27306 \begin_layout Plain Layout
27307 prettyref
27308 \end_layout
27309
27310 \end_inset
27311 </cell>
27312 <cell alignment="center" valignment="top" usebox="none">
27313 \begin_inset Text
27314
27315 \begin_layout Plain Layout
27316 subfig
27317 \end_layout
27318
27319 \end_inset
27320 </cell>
27321 <cell alignment="center" valignment="top" usebox="none">
27322 \begin_inset Text
27323
27324 \begin_layout Plain Layout
27325 units
27326 \end_layout
27327
27328 \end_inset
27329 </cell>
27330 <cell alignment="center" valignment="top" usebox="none">
27331 \begin_inset Text
27332
27333 \begin_layout Plain Layout
27334
27335 \end_layout
27336
27337 \end_inset
27338 </cell>
27339 </row>
27340 <row>
27341 <cell alignment="left" valignment="top" usebox="none">
27342 \begin_inset Text
27343
27344 \begin_layout Plain Layout
27345 ascii
27346 \end_layout
27347
27348 \end_inset
27349 </cell>
27350 <cell alignment="left" valignment="top" usebox="none">
27351 \begin_inset Text
27352
27353 \begin_layout Plain Layout
27354 enumitem
27355 \end_layout
27356
27357 \end_inset
27358 </cell>
27359 <cell alignment="left" valignment="top" usebox="none">
27360 \begin_inset Text
27361
27362 \begin_layout Plain Layout
27363 ifthen
27364 \end_layout
27365
27366 \end_inset
27367 </cell>
27368 <cell alignment="left" valignment="top" usebox="none">
27369 \begin_inset Text
27370
27371 \begin_layout Plain Layout
27372 mhchem
27373 \end_layout
27374
27375 \end_inset
27376 </cell>
27377 <cell alignment="center" valignment="top" usebox="none">
27378 \begin_inset Text
27379
27380 \begin_layout Plain Layout
27381 pxfonts
27382 \end_layout
27383
27384 \end_inset
27385 </cell>
27386 <cell alignment="center" valignment="top" usebox="none">
27387 \begin_inset Text
27388
27389 \begin_layout Plain Layout
27390 subscript
27391 \end_layout
27392
27393 \end_inset
27394 </cell>
27395 <cell alignment="center" valignment="top" usebox="none">
27396 \begin_inset Text
27397
27398 \begin_layout Plain Layout
27399 url
27400 \end_layout
27401
27402 \end_inset
27403 </cell>
27404 <cell alignment="center" valignment="top" usebox="none">
27405 \begin_inset Text
27406
27407 \begin_layout Plain Layout
27408
27409 \end_layout
27410
27411 \end_inset
27412 </cell>
27413 </row>
27414 <row>
27415 <cell alignment="left" valignment="top" usebox="none">
27416 \begin_inset Text
27417
27418 \begin_layout Plain Layout
27419 bbding
27420 \end_layout
27421
27422 \end_inset
27423 </cell>
27424 <cell alignment="left" valignment="top" usebox="none">
27425 \begin_inset Text
27426
27427 \begin_layout Plain Layout
27428 esint
27429 \end_layout
27430
27431 \end_inset
27432 </cell>
27433 <cell alignment="left" valignment="top" usebox="none">
27434 \begin_inset Text
27435
27436 \begin_layout Plain Layout
27437 jurabib
27438 \end_layout
27439
27440 \end_inset
27441 </cell>
27442 <cell alignment="left" valignment="top" usebox="none">
27443 \begin_inset Text
27444
27445 \begin_layout Plain Layout
27446 multicol
27447 \end_layout
27448
27449 \end_inset
27450 </cell>
27451 <cell alignment="center" valignment="top" usebox="none">
27452 \begin_inset Text
27453
27454 \begin_layout Plain Layout
27455 refstyle
27456 \end_layout
27457
27458 \end_inset
27459 </cell>
27460 <cell alignment="center" valignment="top" usebox="none">
27461 \begin_inset Text
27462
27463 \begin_layout Plain Layout
27464 textcomp
27465 \end_layout
27466
27467 \end_inset
27468 </cell>
27469 <cell alignment="center" valignment="top" usebox="none">
27470 \begin_inset Text
27471
27472 \begin_layout Plain Layout
27473 varioref
27474 \end_layout
27475
27476 \end_inset
27477 </cell>
27478 <cell alignment="center" valignment="top" usebox="none">
27479 \begin_inset Text
27480
27481 \begin_layout Plain Layout
27482
27483 \end_layout
27484
27485 \end_inset
27486 </cell>
27487 </row>
27488 <row>
27489 <cell alignment="center" valignment="top" usebox="none">
27490 \begin_inset Text
27491
27492 \begin_layout Plain Layout
27493 bm
27494 \end_layout
27495
27496 \end_inset
27497 </cell>
27498 <cell alignment="center" valignment="top" usebox="none">
27499 \begin_inset Text
27500
27501 \begin_layout Plain Layout
27502 fancybox
27503 \end_layout
27504
27505 \end_inset
27506 </cell>
27507 <cell alignment="center" valignment="top" usebox="none">
27508 \begin_inset Text
27509
27510 \begin_layout Plain Layout
27511 latexsym
27512 \end_layout
27513
27514 \end_inset
27515 </cell>
27516 <cell alignment="center" valignment="top" usebox="none">
27517 \begin_inset Text
27518
27519 \begin_layout Plain Layout
27520 multirow
27521 \end_layout
27522
27523 \end_inset
27524 </cell>
27525 <cell alignment="center" valignment="top" usebox="none">
27526 \begin_inset Text
27527
27528 \begin_layout Plain Layout
27529 rotating
27530 \end_layout
27531
27532 \end_inset
27533 </cell>
27534 <cell alignment="center" valignment="top" usebox="none">
27535 \begin_inset Text
27536
27537 \begin_layout Plain Layout
27538 textgreek
27539 \end_layout
27540
27541 \end_inset
27542 </cell>
27543 <cell alignment="center" valignment="top" usebox="none">
27544 \begin_inset Text
27545
27546 \begin_layout Plain Layout
27547 verbatim
27548 \end_layout
27549
27550 \end_inset
27551 </cell>
27552 <cell alignment="center" valignment="top" usebox="none">
27553 \begin_inset Text
27554
27555 \begin_layout Plain Layout
27556
27557 \end_layout
27558
27559 \end_inset
27560 </cell>
27561 </row>
27562 </lyxtabular>
27563
27564 \end_inset
27565
27566
27567 \end_layout
27568
27569 \begin_layout Chapter
27570 Names of available colors to be used in layouts
27571 \begin_inset CommandInset label
27572 LatexCommand label
27573 name "chap:Names-of-colors"
27574
27575 \end_inset
27576
27577
27578 \end_layout
27579
27580 \begin_layout Standard
27581 The colors listed here are the standard colors and the those that you can
27582  adjust in the \SpecialChar LyX
27583  preferences.
27584 \end_layout
27585
27586 \begin_layout Description
27587 none
27588 \family roman
27589 \series medium
27590 \shape up
27591 \size normal
27592 \emph off
27593 \bar no
27594 \strikeout off
27595 \uuline off
27596 \uwave off
27597 \noun off
27598 \color none
27599  No particular color – clear or default
27600 \end_layout
27601
27602 \begin_layout Description
27603 black
27604 \end_layout
27605
27606 \begin_layout Description
27607 white
27608 \end_layout
27609
27610 \begin_layout Description
27611 red
27612 \end_layout
27613
27614 \begin_layout Description
27615 green
27616 \end_layout
27617
27618 \begin_layout Description
27619 blue
27620 \end_layout
27621
27622 \begin_layout Description
27623 cyan
27624 \end_layout
27625
27626 \begin_layout Description
27627 magenta
27628 \end_layout
27629
27630 \begin_layout Description
27631 yellow
27632 \end_layout
27633
27634 \begin_layout Description
27635 added_space Added space marker color
27636 \end_layout
27637
27638 \begin_layout Description
27639 addedtext Added text color
27640 \end_layout
27641
27642 \begin_layout Description
27643 appendix Appendix marker color
27644 \end_layout
27645
27646 \begin_layout Description
27647 background Background color
27648 \end_layout
27649
27650 \begin_layout Description
27651 bottomarea Bottom area color
27652 \end_layout
27653
27654 \begin_layout Description
27655 branchlabel Label color for branches
27656 \end_layout
27657
27658 \begin_layout Description
27659 buttonbg Color used for button background
27660 \end_layout
27661
27662 \begin_layout Description
27663 buttonhoverbg Color used for button background under focus
27664 \end_layout
27665
27666 \begin_layout Description
27667 buttonframe Color for inset button frames
27668 \end_layout
27669
27670 \begin_layout Description
27671 changebar Changebar color
27672 \end_layout
27673
27674 \begin_layout Description
27675 changedtextauthor1 Changed text color author 1
27676 \end_layout
27677
27678 \begin_layout Description
27679 changedtextauthor2 Changed text color author 2
27680 \end_layout
27681
27682 \begin_layout Description
27683 changedtextauthor3 Changed text color author 3
27684 \end_layout
27685
27686 \begin_layout Description
27687 changedtextauthor4 Changed text color author 4
27688 \end_layout
27689
27690 \begin_layout Description
27691 changedtextauthor5 Changed text color author 5
27692 \end_layout
27693
27694 \begin_layout Description
27695 collapsable_inset_frame Collapsable insets framecolor
27696 \end_layout
27697
27698 \begin_layout Description
27699 collapsable_inset_text Collapsable insets text color
27700 \end_layout
27701
27702 \begin_layout Description
27703 command Text color for command insets
27704 \end_layout
27705
27706 \begin_layout Description
27707 commandbg Background color for command insets
27708 \end_layout
27709
27710 \begin_layout Description
27711 commandframe Frame color for command insets
27712 \end_layout
27713
27714 \begin_layout Description
27715 comment color for comments
27716 \end_layout
27717
27718 \begin_layout Description
27719 commentbg Background color of comments
27720 \end_layout
27721
27722 \begin_layout Description
27723 cursor Cursor color
27724 \end_layout
27725
27726 \begin_layout Description
27727 deletedtext Deleted text color
27728 \end_layout
27729
27730 \begin_layout Description
27731 deletedtextmodifier Deleted text modifying color
27732 \end_layout
27733
27734 \begin_layout Description
27735 depthbar Color for the depth bars in the margin
27736 \end_layout
27737
27738 \begin_layout Description
27739 eolmarker End of line marker color
27740 \end_layout
27741
27742 \begin_layout Description
27743 error Color of the \SpecialChar LaTeX
27744  error box
27745 \end_layout
27746
27747 \begin_layout Description
27748 footlabel Label color for footnotes
27749 \end_layout
27750
27751 \begin_layout Description
27752 graphicsbg Graphics inset background color
27753 \end_layout
27754
27755 \begin_layout Description
27756 greyedout Label color for greyedout insets
27757 \end_layout
27758
27759 \begin_layout Description
27760 greyedoutbg Background color of greyedout inset
27761 \end_layout
27762
27763 \begin_layout Description
27764 greyedouttext Color for greyedout inset text
27765 \end_layout
27766
27767 \begin_layout Description
27768 indexlabel Label color for index insets
27769 \end_layout
27770
27771 \begin_layout Description
27772 ignore The color is ignored
27773 \end_layout
27774
27775 \begin_layout Description
27776 inherit The color is inherited
27777 \end_layout
27778
27779 \begin_layout Description
27780 inlinecompletion Inline completion color
27781 \end_layout
27782
27783 \begin_layout Description
27784 insetbg Inset marker background color
27785 \end_layout
27786
27787 \begin_layout Description
27788 insetframe Inset marker frame color
27789 \end_layout
27790
27791 \begin_layout Description
27792 language Color for marking foreign language words
27793 \end_layout
27794
27795 \begin_layout Description
27796 latex Text color in \SpecialChar LaTeX
27797  mode
27798 \end_layout
27799
27800 \begin_layout Description
27801 listingsbg Background color of listings inset
27802 \end_layout
27803
27804 \begin_layout Description
27805 marginlabel Label color for margin notes
27806 \end_layout
27807
27808 \begin_layout Description
27809 math Math inset text color
27810 \end_layout
27811
27812 \begin_layout Description
27813 mathbg Math inset background color
27814 \end_layout
27815
27816 \begin_layout Description
27817 mathcorners Math inset frame color not under focus
27818 \end_layout
27819
27820 \begin_layout Description
27821 mathframe Math inset frame color under focus
27822 \end_layout
27823
27824 \begin_layout Description
27825 mathline Math line color
27826 \end_layout
27827
27828 \begin_layout Description
27829 mathmacrobg Macro math inset background color
27830 \end_layout
27831
27832 \begin_layout Description
27833 mathmacroblend Macro math blended color
27834 \end_layout
27835
27836 \begin_layout Description
27837 mathmacroframe Macro math frame color
27838 \end_layout
27839
27840 \begin_layout Description
27841 mathmacrohoverbg Macro math inset background color hovered
27842 \end_layout
27843
27844 \begin_layout Description
27845 mathmacrolabel Macro math label color
27846 \end_layout
27847
27848 \begin_layout Description
27849 mathmacronewarg Macro template color for new parameters
27850 \end_layout
27851
27852 \begin_layout Description
27853 mathmacrooldarg Macro template color for old parameters
27854 \end_layout
27855
27856 \begin_layout Description
27857 newpage New page color
27858 \end_layout
27859
27860 \begin_layout Description
27861 nonunique_inlinecompletion Inline completion color for the non-unique part
27862 \end_layout
27863
27864 \begin_layout Description
27865 notebg Background color of notes
27866 \end_layout
27867
27868 \begin_layout Description
27869 notelabel Label color for notes
27870 \end_layout
27871
27872 \begin_layout Description
27873 pagebreak Page break/line break color
27874 \end_layout
27875
27876 \begin_layout Description
27877 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
27878 \end_layout
27879
27880 \begin_layout Description
27881 phantomtext Text color for phantom insets
27882 \end_layout
27883
27884 \begin_layout Description
27885 preview The color used for previews
27886 \end_layout
27887
27888 \begin_layout Description
27889 previewframe Preview frame color
27890 \end_layout
27891
27892 \begin_layout Description
27893 regexpframe Color for regexp frame
27894 \end_layout
27895
27896 \begin_layout Description
27897 selection Background color of selected text
27898 \end_layout
27899
27900 \begin_layout Description
27901 selectiontext Foreground color of selected text
27902 \end_layout
27903
27904 \begin_layout Description
27905 shadedbg Background color of shaded box
27906 \end_layout
27907
27908 \begin_layout Description
27909 special Special chars text color
27910 \end_layout
27911
27912 \begin_layout Description
27913 tabularline Table line color
27914 \end_layout
27915
27916 \begin_layout Description
27917 tabularonoffline Table line color
27918 \end_layout
27919
27920 \begin_layout Description
27921 urllabel Label color for URL insets
27922 \end_layout
27923
27924 \begin_layout Description
27925 urltext Color for URL inset text
27926 \end_layout
27927
27928 \end_body
27929 \end_document