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