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