]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Fix lineno options param
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 575
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 utf8
48 \fontencoding auto
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 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
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 \use_lineno 0
106 \notefontcolor #0000ff
107 \branch OutDated
108 \selected 0
109 \filename_suffix 0
110 \color #f5fae7
111 \end_branch
112 \index Index
113 \shortcut idx
114 \color #008000
115 \end_index
116 \secnumdepth 3
117 \tocdepth 3
118 \paragraph_separation indent
119 \paragraph_indentation default
120 \is_math_indent 1
121 \math_indentation default
122 \math_numbering_side default
123 \quotes_style english
124 \dynamic_quotes 0
125 \papercolumns 1
126 \papersides 2
127 \paperpagestyle headings
128 \tablestyle default
129 \tracking_changes true
130 \output_changes false
131 \html_math_output 0
132 \html_css_as_file 0
133 \html_be_strict true
134 \author -712698321 "Jürgen Spitzmüller"
135 \author -495245474 "Jean-Marc Lasgouttes"
136 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
137 \end_header
138
139 \begin_body
140
141 \begin_layout Title
142 Customizing \SpecialChar LyX
143 : Features for the Advanced User
144 \end_layout
145
146 \begin_layout Author
147 by the \SpecialChar LyX
148  Team
149 \begin_inset Foot
150 status collapsed
151
152 \begin_layout Plain Layout
153 \noindent
154 If you have comments or error corrections, please send them to the \SpecialChar LyX
155  Documentatio
156 n mailing list, 
157 \begin_inset CommandInset href
158 LatexCommand href
159 target "lyx-docs@lists.lyx.org"
160 type "mailto:"
161 literal "false"
162
163 \end_inset
164
165 .
166  Include 
167 \begin_inset Quotes eld
168 \end_inset
169
170 [Customization]
171 \begin_inset Quotes erd
172 \end_inset
173
174  in the subject header, and please cc the current maintainer of this file,
175  Richard Heck <rgheck@comcast.net>.
176 \end_layout
177
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184
185 \begin_inset Newline newline
186 \end_inset
187
188 Version 2.3.x 
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Standard
201 \begin_inset Note Note
202 status open
203
204 \begin_layout Plain Layout
205 Please use change tracking when modifying this document.
206  This makes it easier for our translators to recognize things that have
207  been changed, and it helps the maintainer keep up-to-date with what's been
208  done.
209 \end_layout
210
211 \end_inset
212
213
214 \end_layout
215
216 \begin_layout Chapter
217 Introduction
218 \end_layout
219
220 \begin_layout Standard
221 This manual covers the customization features present in \SpecialChar LyX
222 .
223  In it, we discuss issues like keyboard shortcuts, screen previewing options,
224  printer options, sending commands to \SpecialChar LyX
225  via the \SpecialChar LyX
226  Server, internationalization,
227  installing new \SpecialChar LaTeX
228  classes and \SpecialChar LyX
229  layouts, etc.
230  We can't possibly hope to touch on everything you can change—our developers
231  add new features faster than we can document them—but we will explain the
232  most common customizations and hopefully point you in the right direction
233  for some of the more obscure ones.
234 \end_layout
235
236 \begin_layout Standard
237 \begin_inset Branch OutDated
238 inverted 0
239 status collapsed
240
241 \begin_layout Standard
242 Information from previous versions of this document that now seems to be
243  outdated is contained in the OutDated branch of this document.
244  By default, this information will not appear in the \SpecialChar LaTeX
245  output.
246 \end_layout
247
248 \end_inset
249
250
251 \end_layout
252
253 \begin_layout Chapter
254 \SpecialChar LyX
255  configuration files
256 \end_layout
257
258 \begin_layout Standard
259 This chapter aims to help you to find your way through the \SpecialChar LyX
260  configuration
261  files.
262  Before continuing to read this chapter, you should find out where your
263  \SpecialChar LyX
264  library and user directories are by using 
265 \begin_inset Flex Noun
266 status collapsed
267
268 \begin_layout Plain Layout
269 Help\SpecialChar menuseparator
270 About
271 \begin_inset space ~
272 \end_inset
273
274 LyX
275 \end_layout
276
277 \end_inset
278
279 .
280  The library directory is the place where \SpecialChar LyX
281  places its system-wide configuration
282  files; the user directory is where you can place your modified versions.
283  We will call the former 
284 \begin_inset Flex Code
285 status collapsed
286
287 \begin_layout Plain Layout
288 LyXDir
289 \end_layout
290
291 \end_inset
292
293  and the latter 
294 \begin_inset Flex Noun
295 status collapsed
296
297 \begin_layout Plain Layout
298 UserDir
299 \end_layout
300
301 \end_inset
302
303  in the remainder of this document.
304  
305 \end_layout
306
307 \begin_layout Section
308 What's in 
309 \begin_inset Flex Code
310 status collapsed
311
312 \begin_layout Plain Layout
313 LyXDir
314 \end_layout
315
316 \end_inset
317
318 ?
319 \end_layout
320
321 \begin_layout Standard
322 \begin_inset Flex Code
323 status collapsed
324
325 \begin_layout Plain Layout
326 LyXDir
327 \end_layout
328
329 \end_inset
330
331  and its sub-directories contain a number of files and that can be used
332  to customize \SpecialChar LyX
333 's behavior.
334  You can change many of these files from within \SpecialChar LyX
335  itself through the 
336 \begin_inset Flex Noun
337 status collapsed
338
339 \begin_layout Plain Layout
340 Tools\SpecialChar menuseparator
341 Preferences
342 \end_layout
343
344 \end_inset
345
346  dialog.
347  Most customization that you will want to do in \SpecialChar LyX
348  is possible through this
349  dialog.
350  However, many other inner aspects of \SpecialChar LyX
351  can be customized by modifying the
352  files in 
353 \begin_inset Flex Code
354 status collapsed
355
356 \begin_layout Plain Layout
357 LyXDir
358 \end_layout
359
360 \end_inset
361
362 .
363  These files fall in different categories, described in the following subsection
364 s.
365 \end_layout
366
367 \begin_layout Subsection
368 Automatically generated files
369 \end_layout
370
371 \begin_layout Standard
372 The files, which are to be found in 
373 \begin_inset Flex Noun
374 status collapsed
375
376 \begin_layout Plain Layout
377 UserDir
378 \end_layout
379
380 \end_inset
381
382 , are generated when you configure \SpecialChar LyX
383 .
384  They contain various default values that are guessed by inspection.
385  In general, it is not a good idea to modify them, since they might be overwritt
386 en at any time.
387 \end_layout
388
389 \begin_layout Labeling
390 \labelwidthstring 00.00.0000
391 \begin_inset Flex Code
392 status collapsed
393
394 \begin_layout Plain Layout
395 lyxrc.defaults
396 \end_layout
397
398 \end_inset
399
400  contains defaults for various commands.
401 \end_layout
402
403 \begin_layout Labeling
404 \labelwidthstring 00.00.0000
405 \begin_inset Flex Code
406 status collapsed
407
408 \begin_layout Plain Layout
409 packages.lst
410 \end_layout
411
412 \end_inset
413
414  contains the list of packages that have been recognized by \SpecialChar LyX
415 .
416  It is currently unused by the \SpecialChar LyX
417  program itself, but the information extracted,
418  and more, is made available with 
419 \begin_inset Flex Noun
420 status collapsed
421
422 \begin_layout Plain Layout
423 Help\SpecialChar menuseparator
424 \SpecialChar LaTeX
425
426 \begin_inset space ~
427 \end_inset
428
429 Configuration
430 \end_layout
431
432 \end_inset
433
434 .
435 \end_layout
436
437 \begin_layout Labeling
438 \labelwidthstring 00.00.0000
439 \begin_inset Flex Code
440 status collapsed
441
442 \begin_layout Plain Layout
443 textclass.lst
444 \end_layout
445
446 \end_inset
447
448  the list of text classes that have been found in your 
449 \begin_inset Flex Code
450 status collapsed
451
452 \begin_layout Plain Layout
453 layout/
454 \end_layout
455
456 \end_inset
457
458  directories, along with the associated \SpecialChar LaTeX
459  document class and their description.
460 \end_layout
461
462 \begin_layout Labeling
463 \labelwidthstring 00.00.0000
464 \begin_inset Flex Code
465 status collapsed
466
467 \begin_layout Plain Layout
468 lyxmodules.lst
469 \end_layout
470
471 \end_inset
472
473  the list of layout modules found in your 
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 layout/
479 \end_layout
480
481 \end_inset
482
483  directories
484 \end_layout
485
486 \begin_layout Labeling
487 \labelwidthstring 00.00.0000
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492 *files.lst
493 \end_layout
494
495 \end_inset
496
497  lists of various sorts of \SpecialChar LaTeX
498 -related files found on your system
499 \end_layout
500
501 \begin_layout Labeling
502 \labelwidthstring 00.00.0000
503 \begin_inset Flex Code
504 status collapsed
505
506 \begin_layout Plain Layout
507 doc/\SpecialChar LaTeX
508 Config.lyx
509 \end_layout
510
511 \end_inset
512
513  is automatically generated during configuration from the file 
514 \begin_inset Flex Code
515 status collapsed
516
517 \begin_layout Plain Layout
518 \SpecialChar LaTeX
519 Config.lyx.in
520 \end_layout
521
522 \end_inset
523
524 .
525  It contains information on your \SpecialChar LaTeX
526  configuration.
527 \end_layout
528
529 \begin_layout Subsection
530 Directories
531 \end_layout
532
533 \begin_layout Standard
534 These directories are duplicated between 
535 \begin_inset Flex Code
536 status collapsed
537
538 \begin_layout Plain Layout
539 LyXDir
540 \end_layout
541
542 \end_inset
543
544  and 
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 UserDir
550 \end_layout
551
552 \end_inset
553
554 .
555  If a particular files exists in both places, the one in 
556 \begin_inset Flex Code
557 status collapsed
558
559 \begin_layout Plain Layout
560 UserDir
561 \end_layout
562
563 \end_inset
564
565  will be used.
566 \end_layout
567
568 \begin_layout Labeling
569 \labelwidthstring 00.00.0000
570 \begin_inset Flex Code
571 status collapsed
572
573 \begin_layout Plain Layout
574 bind/
575 \end_layout
576
577 \end_inset
578
579  this directory contains files with the extension 
580 \begin_inset Flex Code
581 status collapsed
582
583 \begin_layout Plain Layout
584 .bind
585 \end_layout
586
587 \end_inset
588
589  that define the keybindings used in \SpecialChar LyX
590 .
591  If there exists an internationalized version of the bind file named 
592 \begin_inset Flex Code
593 status collapsed
594
595 \begin_layout Plain Layout
596 $LANG_xxx.bind
597 \end_layout
598
599 \end_inset
600
601 , that will be used first.
602 \end_layout
603
604 \begin_layout Labeling
605 \labelwidthstring 00.00.0000
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610 citeengines/
611 \end_layout
612
613 \end_inset
614
615  contains files with the extension 
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620 .citeengine
621 \end_layout
622
623 \end_inset
624
625  which define the diverse citation possibilities (natbib, biblatex etc.).
626  See 
627 \begin_inset CommandInset ref
628 LatexCommand ref
629 reference "subsec:Cite-Engine-Files"
630 plural "false"
631 caps "false"
632 noprefix "false"
633
634 \end_inset
635
636  for details.
637 \end_layout
638
639 \begin_layout Labeling
640 \labelwidthstring 00.00.0000
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 clipart/
646 \end_layout
647
648 \end_inset
649
650  contains graphics files that can be included in documents.
651  
652 \end_layout
653
654 \begin_layout Labeling
655 \labelwidthstring 00.00.0000
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 doc/
661 \end_layout
662
663 \end_inset
664
665  contains \SpecialChar LyX
666  documentation files (including the one you are currently reading).
667  The file 
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672 \SpecialChar LaTeX
673 Config.lyx
674 \end_layout
675
676 \end_inset
677
678  deserves special attention, as noted above.
679  The internationalized help docs are in subdirectories 
680 \begin_inset Flex Code
681 status collapsed
682
683 \begin_layout Plain Layout
684 doc/xx
685 \end_layout
686
687 \end_inset
688
689  where 
690 \begin_inset Quotes eld
691 \end_inset
692
693 xx
694 \begin_inset Quotes erd
695 \end_inset
696
697  is the ISO language code.
698  See 
699 \begin_inset CommandInset ref
700 LatexCommand ref
701 reference "cha:Internationalizing-LyX"
702
703 \end_inset
704
705  for details.
706 \end_layout
707
708 \begin_layout Labeling
709 \labelwidthstring 00.00.0000
710 \begin_inset Flex Code
711 status collapsed
712
713 \begin_layout Plain Layout
714 examples/
715 \end_layout
716
717 \end_inset
718
719  contains example files that explain how to use some features.
720  In the file browser, press the 
721 \begin_inset Flex Noun
722 status collapsed
723
724 \begin_layout Plain Layout
725 Examples
726 \end_layout
727
728 \end_inset
729
730  button to get there.
731 \end_layout
732
733 \begin_layout Labeling
734 \labelwidthstring 00.00.0000
735 \begin_inset Flex Code
736 status collapsed
737
738 \begin_layout Plain Layout
739 images/
740 \end_layout
741
742 \end_inset
743
744  contains image files that are used by the 
745 \begin_inset Flex Noun
746 status collapsed
747
748 \begin_layout Plain Layout
749 Document
750 \end_layout
751
752 \end_inset
753
754  dialog.
755  In addition, it also contains the individual icons used in the toolbar
756  and the banners that can be shown when \SpecialChar LyX
757  is launched.
758 \end_layout
759
760 \begin_layout Labeling
761 \labelwidthstring 00.00.0000
762 \begin_inset Flex Code
763 status collapsed
764
765 \begin_layout Plain Layout
766 kbd/
767 \end_layout
768
769 \end_inset
770
771  contains keyboard keymapping files.
772  See 
773 \begin_inset CommandInset ref
774 LatexCommand ref
775 reference "sec:International-Keymap-Stuff"
776
777 \end_inset
778
779  for details.
780 \end_layout
781
782 \begin_layout Labeling
783 \labelwidthstring 00.00.0000
784 \begin_inset Flex Code
785 status collapsed
786
787 \begin_layout Plain Layout
788 layouts/
789 \end_layout
790
791 \end_inset
792
793  contains the text class and module files described in 
794 \begin_inset CommandInset ref
795 LatexCommand ref
796 reference "cha:Installing-New-Document"
797
798 \end_inset
799
800 .
801 \end_layout
802
803 \begin_layout Labeling
804 \labelwidthstring 00.00.0000
805 \begin_inset Flex Code
806 status collapsed
807
808 \begin_layout Plain Layout
809 lyx2lyx
810 \end_layout
811
812 \end_inset
813
814  contains the 
815 \begin_inset Flex Code
816 status collapsed
817
818 \begin_layout Plain Layout
819 lyx2lyx
820 \end_layout
821
822 \end_inset
823
824  Python scripts used to convert between \SpecialChar LyX
825  versions.
826  These can be run from the command line if, say, you want to batch-convert
827  files.
828 \end_layout
829
830 \begin_layout Labeling
831 \labelwidthstring 00.00.0000
832 \begin_inset Flex Code
833 status collapsed
834
835 \begin_layout Plain Layout
836 scripts/
837 \end_layout
838
839 \end_inset
840
841  contains some files that demonstrate the capabilities of the 
842 \begin_inset Flex Noun
843 status collapsed
844
845 \begin_layout Plain Layout
846 External
847 \begin_inset space ~
848 \end_inset
849
850 Template
851 \end_layout
852
853 \end_inset
854
855  feature.
856  Also contains some scripts used by \SpecialChar LyX
857  itself.
858 \end_layout
859
860 \begin_layout Labeling
861 \labelwidthstring 00.00.0000
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 templates/
867 \end_layout
868
869 \end_inset
870
871  contains the standard \SpecialChar LyX
872  template files described in 
873 \begin_inset CommandInset ref
874 LatexCommand ref
875 reference "subsec:Creating-Templates"
876
877 \end_inset
878
879 .
880 \end_layout
881
882 \begin_layout Labeling
883 \labelwidthstring 00.00.0000
884 \begin_inset Flex Code
885 status collapsed
886
887 \begin_layout Plain Layout
888 ui/
889 \end_layout
890
891 \end_inset
892
893  contains files with the extension 
894 \begin_inset Flex Code
895 status collapsed
896
897 \begin_layout Plain Layout
898 .ui
899 \end_layout
900
901 \end_inset
902
903  that define the user interface to \SpecialChar LyX
904 .
905  That is, the files define which items appear in which menus and the items
906  appearing on the toolbar.
907 \end_layout
908
909 \begin_layout Labeling
910 \labelwidthstring 00.00.0000
911 \begin_inset Flex Code
912 status collapsed
913
914 \begin_layout Plain Layout
915 xtemplates/
916 \end_layout
917
918 \end_inset
919
920  contains files with the extension 
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 .xtemplate
926 \end_layout
927
928 \end_inset
929
930  which define the templates for the insertion of external material to a
931  \SpecialChar LyX
932  document; see 
933 \begin_inset CommandInset ref
934 LatexCommand ref
935 reference "chap:Including-External-Material"
936
937 \end_inset
938
939 .
940 \end_layout
941
942 \begin_layout Subsection
943 Files you don't want to modify
944 \end_layout
945
946 \begin_layout Standard
947 These files are used internally by \SpecialChar LyX
948  and you generally do not need to modify
949  them unless you are a developer.
950 \end_layout
951
952 \begin_layout Labeling
953 \labelwidthstring 00.00.0000
954 \begin_inset Flex Code
955 status collapsed
956
957 \begin_layout Plain Layout
958 CREDITS
959 \end_layout
960
961 \end_inset
962
963  this file contains the list of \SpecialChar LyX
964  developers.
965  The contents are displayed with the menu entry 
966 \begin_inset Flex Noun
967 status collapsed
968
969 \begin_layout Plain Layout
970 Help\SpecialChar menuseparator
971 About
972 \begin_inset space ~
973 \end_inset
974
975 LyX
976 \end_layout
977
978 \end_inset
979
980 .
981 \end_layout
982
983 \begin_layout Labeling
984 \labelwidthstring 00.00.0000
985 \begin_inset Flex Code
986 status collapsed
987
988 \begin_layout Plain Layout
989 chkconfig.ltx
990 \end_layout
991
992 \end_inset
993
994  this is a \SpecialChar LaTeX
995  script used during the configuration process.
996  Do not run directly.
997 \end_layout
998
999 \begin_layout Labeling
1000 \labelwidthstring 00.00.0000
1001 \begin_inset Flex Code
1002 status collapsed
1003
1004 \begin_layout Plain Layout
1005 configure.py
1006 \end_layout
1007
1008 \end_inset
1009
1010  this is a Python script that is used to re-configure \SpecialChar LyX
1011 .
1012  It creates configuration files in the directory it was run from.
1013 \end_layout
1014
1015 \begin_layout Subsection
1016 Other files needing a line or two
1017 \end_layout
1018
1019 \begin_layout Labeling
1020 \labelwidthstring 00.00.0000
1021 \begin_inset Flex Code
1022 status collapsed
1023
1024 \begin_layout Plain Layout
1025 encodings
1026 \end_layout
1027
1028 \end_inset
1029
1030  this contains tables describing how different character encodings can be
1031  mapped to Unicode
1032 \end_layout
1033
1034 \begin_layout Labeling
1035 \labelwidthstring 00.00.0000
1036 \begin_inset Flex Code
1037 status collapsed
1038
1039 \begin_layout Plain Layout
1040 languages
1041 \end_layout
1042
1043 \end_inset
1044
1045  this file contains a list of all the languages currently supported by \SpecialChar LyX
1046 .
1047 \end_layout
1048
1049 \begin_layout Labeling
1050 \labelwidthstring 00.00.0000
1051 \begin_inset Flex Code
1052 status collapsed
1053
1054 \begin_layout Plain Layout
1055 latexfonts
1056 \end_layout
1057
1058 \end_inset
1059
1060  contains information about the supported fonts.
1061 \end_layout
1062
1063 \begin_layout Labeling
1064 \labelwidthstring 00.00.0000
1065 \begin_inset Flex Code
1066 status collapsed
1067
1068 \begin_layout Plain Layout
1069 layouttranslations
1070 \end_layout
1071
1072 \end_inset
1073
1074  this file contains translations for internationalized paragraph styles
1075  (see 
1076 \begin_inset CommandInset ref
1077 LatexCommand ref
1078 reference "subsec:I18n"
1079
1080 \end_inset
1081
1082 ).
1083 \end_layout
1084
1085 \begin_layout Labeling
1086 \labelwidthstring 00.00.0000
1087 \begin_inset Flex Code
1088 status collapsed
1089
1090 \begin_layout Plain Layout
1091 unicodesymbols
1092 \end_layout
1093
1094 \end_inset
1095
1096  this file contains information about Unicode-encoded glyphs and the way
1097  they are supported by \SpecialChar LyX
1098  via \SpecialChar LaTeX
1099 .
1100 \end_layout
1101
1102 \begin_layout Section
1103 Your local configuration directory
1104 \end_layout
1105
1106 \begin_layout Standard
1107 Even if you are using \SpecialChar LyX
1108  as an unprivileged user, you might want to change
1109  \SpecialChar LyX
1110  configuration for your own use.
1111  The 
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116 UserDir
1117 \end_layout
1118
1119 \end_inset
1120
1121  directory contains all your personal configuration files.
1122  This is the directory described as 
1123 \begin_inset Quotes eld
1124 \end_inset
1125
1126 user directory
1127 \begin_inset Quotes erd
1128 \end_inset
1129
1130  in 
1131 \begin_inset Flex Noun
1132 status collapsed
1133
1134 \begin_layout Plain Layout
1135 Help\SpecialChar menuseparator
1136 About
1137 \begin_inset space ~
1138 \end_inset
1139
1140 LyX
1141 \end_layout
1142
1143 \end_inset
1144
1145 .
1146  This directory is used as a mirror of 
1147 \begin_inset Flex Code
1148 status collapsed
1149
1150 \begin_layout Plain Layout
1151 LyXDir
1152 \end_layout
1153
1154 \end_inset
1155
1156 , which means that every file in 
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 UserDir
1162 \end_layout
1163
1164 \end_inset
1165
1166  is a replacement for the corresponding file in 
1167 \begin_inset Flex Code
1168 status collapsed
1169
1170 \begin_layout Plain Layout
1171 LyXDir
1172 \end_layout
1173
1174 \end_inset
1175
1176 .
1177  Any configuration file described in the above sections can be placed either
1178  in the system-wide directory, in which case it will affect all users, or
1179  in your local directory for your own use.
1180 \end_layout
1181
1182 \begin_layout Standard
1183 To make things clearer, let's provide a few examples:
1184 \end_layout
1185
1186 \begin_layout Itemize
1187 The preferences set in the 
1188 \begin_inset Flex Noun
1189 status collapsed
1190
1191 \begin_layout Plain Layout
1192 Tools\SpecialChar menuseparator
1193 Preferences
1194 \end_layout
1195
1196 \end_inset
1197
1198  dialog are saved to a file 
1199 \begin_inset Flex Code
1200 status collapsed
1201
1202 \begin_layout Plain Layout
1203 preferences
1204 \end_layout
1205
1206 \end_inset
1207
1208  in 
1209 \begin_inset Flex Code
1210 status collapsed
1211
1212 \begin_layout Plain Layout
1213 UserDir
1214 \end_layout
1215
1216 \end_inset
1217
1218 .
1219 \end_layout
1220
1221 \begin_layout Itemize
1222 When you reconfigure using 
1223 \begin_inset Flex Noun
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 Tools\SpecialChar menuseparator
1228 Reconfigure
1229 \end_layout
1230
1231 \end_inset
1232
1233 , \SpecialChar LyX
1234  runs the 
1235 \begin_inset Flex Code
1236 status collapsed
1237
1238 \begin_layout Plain Layout
1239 configure.py
1240 \end_layout
1241
1242 \end_inset
1243
1244  script, and the resulting files are written in your local configuration
1245  directory.
1246  This means that any additional text class file that you might have added
1247  in 
1248 \begin_inset Flex Code
1249 status collapsed
1250
1251 \begin_layout Plain Layout
1252 UserDir/layouts
1253 \end_layout
1254
1255 \end_inset
1256
1257  will be added to the list of classes in the 
1258 \begin_inset Flex Noun
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 Document\SpecialChar menuseparator
1263 Settings
1264 \end_layout
1265
1266 \end_inset
1267
1268  dialog.
1269 \end_layout
1270
1271 \begin_layout Itemize
1272 If you get some updated documentation from \SpecialChar LyX
1273  ftp site and cannot install
1274  it because you do not have sysadmin rights on your system, you can just
1275  copy the files in 
1276 \begin_inset Flex Code
1277 status collapsed
1278
1279 \begin_layout Plain Layout
1280 UserDir/doc/
1281 \end_layout
1282
1283 \end_inset
1284
1285  and the items in the 
1286 \begin_inset Flex Noun
1287 status collapsed
1288
1289 \begin_layout Plain Layout
1290 Help
1291 \end_layout
1292
1293 \end_inset
1294
1295  menu will open them!
1296 \end_layout
1297
1298 \begin_layout Section
1299 Running \SpecialChar LyX
1300  with multiple configurations
1301 \end_layout
1302
1303 \begin_layout Standard
1304 The configuration freedom of the local configuration directory may not suffice
1305  if you want to have more than one configuration at your disposal.
1306  For example, you may want to be use different key bindings or printer settings
1307  at different times.
1308  You can achieve this by having several such directories.
1309  You then specify which directory to use at run-time.
1310 \end_layout
1311
1312 \begin_layout Standard
1313 Invoking \SpecialChar LyX
1314  with the command line switch 
1315 \begin_inset Flex Code
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319 -userdir
1320 \end_layout
1321
1322 \end_inset
1323
1324  
1325 \emph on
1326 <some directory>
1327 \emph default
1328  instructs the program to read the configuration from that directory, and
1329  not from the default directory.
1330  (You can determine the default directory by running \SpecialChar LyX
1331  without the 
1332 \begin_inset Flex Code
1333 status collapsed
1334
1335 \begin_layout Plain Layout
1336 -userdir
1337 \end_layout
1338
1339 \end_inset
1340
1341  switch.) If the specified directory does not exist, \SpecialChar LyX
1342  offers to create it
1343  for you, just like it does for the default directory on the first time
1344  you run the program.
1345  You can modify the configuration options in this additional user directory
1346  exactly as you would for the default directory.
1347  These directories are completely independent (but read on).
1348  Note that setting the environment variable 
1349 \begin_inset Flex Code
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353 LYX_USERDIR_VER
1354 \end_layout
1355
1356 \end_inset
1357
1358  to some value has exactly the same effect.
1359 \end_layout
1360
1361 \begin_layout Standard
1362 Having several configurations also requires more maintenance: if you want
1363  to add a new layout to 
1364 \begin_inset Flex Code
1365 status collapsed
1366
1367 \begin_layout Plain Layout
1368 NewUserDir/layouts
1369 \end_layout
1370
1371 \end_inset
1372
1373  which you want available from all your configurations, you must add it
1374  to each directory separately.
1375  You can avoid this with the following trick: after \SpecialChar LyX
1376  creates the additional
1377  directory, most of the subdirectories (see above) are empty.
1378  If you want the new configuration to mirror an existing one, replace the
1379  empty subdirectory with a symbolic link to the matching subdirectory in
1380  the existing configuration.
1381  Take care with the 
1382 \begin_inset Flex Code
1383 status collapsed
1384
1385 \begin_layout Plain Layout
1386 doc/
1387 \end_layout
1388
1389 \end_inset
1390
1391  subdirectory, however, since it contains a file written by the configuration
1392  script (also accessible through 
1393 \begin_inset Flex Noun
1394 status collapsed
1395
1396 \begin_layout Plain Layout
1397 Tools\SpecialChar menuseparator
1398 Reconfigure
1399 \end_layout
1400
1401 \end_inset
1402
1403 ) which is configuration-specific.
1404 \end_layout
1405
1406 \begin_layout Chapter
1407 The Preferences dialog
1408 \end_layout
1409
1410 \begin_layout Standard
1411 All options of the preferences dialog are described in the Appendix 
1412 \emph on
1413 The Preferences Dialog
1414 \emph default
1415  in the 
1416 \emph on
1417 User's Guide
1418 \emph default
1419 .
1420  For some options you might find here more details.
1421 \end_layout
1422
1423 \begin_layout Section
1424 Formats
1425 \begin_inset CommandInset label
1426 LatexCommand label
1427 name "sec:Formats"
1428
1429 \end_inset
1430
1431
1432 \end_layout
1433
1434 \begin_layout Standard
1435 The first step is to define your file formats if they are not already defined.
1436  To do so, open the 
1437 \begin_inset Flex Noun
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 Tools\SpecialChar menuseparator
1442 Preferences
1443 \end_layout
1444
1445 \end_inset
1446
1447  dialog.
1448  Under 
1449 \begin_inset Flex Noun
1450 status collapsed
1451
1452 \begin_layout Plain Layout
1453 File Handling\SpecialChar menuseparator
1454 File formats
1455 \end_layout
1456
1457 \end_inset
1458
1459  press the 
1460 \begin_inset Flex Noun
1461 status collapsed
1462
1463 \begin_layout Plain Layout
1464 New
1465 \end_layout
1466
1467 \end_inset
1468
1469  button to define your new format.
1470  The 
1471 \begin_inset Flex Noun
1472 status collapsed
1473
1474 \begin_layout Plain Layout
1475 Format
1476 \end_layout
1477
1478 \end_inset
1479
1480  field contains the name used to identify the format in the GUI.
1481  The 
1482 \begin_inset Flex Noun
1483 status collapsed
1484
1485 \begin_layout Plain Layout
1486 Short Name
1487 \end_layout
1488
1489 \end_inset
1490
1491  is used to identify the format internally.
1492  You will also need to enter a file extension.
1493  These are all required.
1494  The optional 
1495 \begin_inset Flex Noun
1496 status collapsed
1497
1498 \begin_layout Plain Layout
1499 Shortcut
1500 \end_layout
1501
1502 \end_inset
1503
1504  field is used to provide a keyboard shortcut on the menus.
1505  (For example, pressing 
1506 \begin_inset Flex Noun
1507 status collapsed
1508
1509 \begin_layout Plain Layout
1510 Ctrl+D
1511 \end_layout
1512
1513 \end_inset
1514
1515  will 
1516 \begin_inset Flex Noun
1517 status collapsed
1518
1519 \begin_layout Plain Layout
1520 Document\SpecialChar menuseparator
1521 View (Other Formats)\SpecialChar menuseparator
1522 DVI
1523 \end_layout
1524
1525 \end_inset
1526
1527 .) 
1528 \end_layout
1529
1530 \begin_layout Standard
1531 A Format can have a 
1532 \begin_inset Flex Noun
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 Viewer
1537 \end_layout
1538
1539 \end_inset
1540
1541  and an 
1542 \begin_inset Flex Noun
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546 Editor
1547 \end_layout
1548
1549 \end_inset
1550
1551  associated with it.
1552  For example, you might want to use 
1553 \begin_inset Flex Noun
1554 status collapsed
1555
1556 \begin_layout Plain Layout
1557 Ghostview
1558 \end_layout
1559
1560 \end_inset
1561
1562  to view PostScript files.
1563  You can enter the command needed to start the program in the corresponding
1564  fields.
1565  In defining this command, you can use the four variables listed in the
1566  next section.
1567  The viewer is launched when you view an image in \SpecialChar LyX
1568  or use the 
1569 \begin_inset Flex Noun
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573 Document\SpecialChar menuseparator
1574 View
1575 \end_layout
1576
1577 \end_inset
1578
1579  menu.
1580  The editor is for example launched when you right-click on an image and
1581  choose 
1582 \begin_inset Flex Noun
1583 status collapsed
1584
1585 \begin_layout Plain Layout
1586 Edit externally
1587 \end_layout
1588
1589 \end_inset
1590
1591  in the appearing context menu.
1592 \end_layout
1593
1594 \begin_layout Standard
1595 The 
1596 \begin_inset Flex Noun
1597 status collapsed
1598
1599 \begin_layout Plain Layout
1600 MIME
1601 \end_layout
1602
1603 \end_inset
1604
1605  type of a format is optional, but if it is specified, it must be unique
1606  across all formats.
1607  It is used to detect files of this format from the file contents.
1608  For some important file formats there is no MIME type officially registered
1609  with the 
1610 \begin_inset CommandInset href
1611 LatexCommand href
1612 name "IANA"
1613 target "http://www.iana.org/assignments/media-types/"
1614 literal "false"
1615
1616 \end_inset
1617
1618 .
1619  Therefore \SpecialChar LyX
1620  uses the extended list of MIME types as specified by 
1621 \begin_inset CommandInset href
1622 LatexCommand href
1623 name "freedesktop.org"
1624 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1625 literal "false"
1626
1627 \end_inset
1628
1629 .
1630 \end_layout
1631
1632 \begin_layout Standard
1633 The 
1634 \begin_inset Flex Noun
1635 status collapsed
1636
1637 \begin_layout Plain Layout
1638 Document format
1639 \end_layout
1640
1641 \end_inset
1642
1643  option tells \SpecialChar LyX
1644  that a format is suitable for document export.
1645  If this is set and if a suitable conversion route exists (see 
1646 \begin_inset CommandInset ref
1647 LatexCommand ref
1648 reference "sec:Converters"
1649
1650 \end_inset
1651
1652 ), the format will appear in the 
1653 \begin_inset Flex Noun
1654 status collapsed
1655
1656 \begin_layout Plain Layout
1657 File\SpecialChar menuseparator
1658 Export
1659 \end_layout
1660
1661 \end_inset
1662
1663  menu.
1664  The format will also appear in the 
1665 \begin_inset Flex Noun
1666 status collapsed
1667
1668 \begin_layout Plain Layout
1669 Document\SpecialChar menuseparator
1670 View
1671 \end_layout
1672
1673 \end_inset
1674
1675  menu if a viewer is specified for the format.
1676  Pure image formats, such as 
1677 \begin_inset Flex Code
1678 status collapsed
1679
1680 \begin_layout Plain Layout
1681 png
1682 \end_layout
1683
1684 \end_inset
1685
1686 , should not use this option.
1687  Formats that can both represent vector graphics and documents like 
1688 \begin_inset Flex Code
1689 status collapsed
1690
1691 \begin_layout Plain Layout
1692 pdf
1693 \end_layout
1694
1695 \end_inset
1696
1697  should use it.
1698 \end_layout
1699
1700 \begin_layout Standard
1701 The option 
1702 \begin_inset Flex Noun
1703 status collapsed
1704
1705 \begin_layout Plain Layout
1706 Vector graphics format
1707 \end_layout
1708
1709 \end_inset
1710
1711  tells \SpecialChar LyX
1712  that a format can contain vector graphics.
1713  This information is used to determine the target format of included graphics
1714  for 
1715 \begin_inset Flex Noun
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 pdflatex
1720 \end_layout
1721
1722 \end_inset
1723
1724  export.
1725  Included graphics may need to be converted to either 
1726 \begin_inset Flex Noun
1727 status collapsed
1728
1729 \begin_layout Plain Layout
1730 pdf
1731 \end_layout
1732
1733 \end_inset
1734
1735
1736 \begin_inset Flex Noun
1737 status collapsed
1738
1739 \begin_layout Plain Layout
1740 png
1741 \end_layout
1742
1743 \end_inset
1744
1745 , or 
1746 \begin_inset Flex Noun
1747 status collapsed
1748
1749 \begin_layout Plain Layout
1750 jpg
1751 \end_layout
1752
1753 \end_inset
1754
1755 , since 
1756 \begin_inset Flex Noun
1757 status collapsed
1758
1759 \begin_layout Plain Layout
1760 pdflatex
1761 \end_layout
1762
1763 \end_inset
1764
1765  cannot handle other image formats.
1766  If an included graphic is not already in 
1767 \begin_inset Flex Noun
1768 status collapsed
1769
1770 \begin_layout Plain Layout
1771 pdf
1772 \end_layout
1773
1774 \end_inset
1775
1776
1777 \begin_inset Flex Noun
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 png
1782 \end_layout
1783
1784 \end_inset
1785
1786 , or 
1787 \begin_inset Flex Noun
1788 status collapsed
1789
1790 \begin_layout Plain Layout
1791 jpg
1792 \end_layout
1793
1794 \end_inset
1795
1796  format, it is converted to 
1797 \begin_inset Flex Noun
1798 status collapsed
1799
1800 \begin_layout Plain Layout
1801 pdf
1802 \end_layout
1803
1804 \end_inset
1805
1806  if the vector format option is set, and otherwise to 
1807 \begin_inset Flex Noun
1808 status collapsed
1809
1810 \begin_layout Plain Layout
1811 png
1812 \end_layout
1813
1814 \end_inset
1815
1816 .
1817 \end_layout
1818
1819 \begin_layout Section
1820 Copiers
1821 \end_layout
1822
1823 \begin_layout Standard
1824 Since all conversions from one format to another take place in \SpecialChar LyX
1825 's temporary
1826  directory, it is sometimes necessary to modify a file before copying it
1827  to the temporary directory in order that the conversion may be performed.
1828 \begin_inset Foot
1829 status collapsed
1830
1831 \begin_layout Plain Layout
1832 For example, the file may refer to other files—images, for example—using
1833  relative file names, and these may become invalid when the file is copied
1834  to the temporary directory.
1835 \end_layout
1836
1837 \end_inset
1838
1839  This is done by a Copier: It copies a file to (or from) the temporary directory
1840  and may modify it in the process.
1841 \end_layout
1842
1843 \begin_layout Standard
1844 The definitions of the copiers may use eight variables:
1845 \end_layout
1846
1847 \begin_layout Labeling
1848 \labelwidthstring 00.00.0000
1849 \begin_inset Flex Code
1850 status collapsed
1851
1852 \begin_layout Plain Layout
1853 $$s
1854 \end_layout
1855
1856 \end_inset
1857
1858  The \SpecialChar LyX
1859  system directory (e.
1860 \begin_inset space \thinspace{}
1861 \end_inset
1862
1863 g.
1864 \begin_inset space \space{}
1865 \end_inset
1866
1867
1868 \begin_inset Flex Noun
1869 status collapsed
1870
1871 \begin_layout Plain Layout
1872 /usr/share/lyx
1873 \end_layout
1874
1875 \end_inset
1876
1877 ).
1878 \end_layout
1879
1880 \begin_layout Labeling
1881 \labelwidthstring 00.00.0000
1882 \begin_inset Flex Code
1883 status collapsed
1884
1885 \begin_layout Plain Layout
1886 $$i
1887 \end_layout
1888
1889 \end_inset
1890
1891  The input file
1892 \end_layout
1893
1894 \begin_layout Labeling
1895 \labelwidthstring 00.00.0000
1896 \begin_inset Flex Code
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 $$o
1901 \end_layout
1902
1903 \end_inset
1904
1905  The output file
1906 \end_layout
1907
1908 \begin_layout Labeling
1909 \labelwidthstring 00.00.0000
1910 \begin_inset Flex Code
1911 status collapsed
1912
1913 \begin_layout Plain Layout
1914 $$b
1915 \end_layout
1916
1917 \end_inset
1918
1919  The base name (without filename extension) in the \SpecialChar LyX
1920  temporary directory
1921 \end_layout
1922
1923 \begin_layout Labeling
1924 \labelwidthstring 00.00.0000
1925 \begin_inset Flex Code
1926 status collapsed
1927
1928 \begin_layout Plain Layout
1929 $$p
1930 \end_layout
1931
1932 \end_inset
1933
1934  The full directory path of the \SpecialChar LyX
1935  temporary directory
1936 \end_layout
1937
1938 \begin_layout Labeling
1939 \labelwidthstring 00.00.0000
1940 \begin_inset Flex Code
1941 status collapsed
1942
1943 \begin_layout Plain Layout
1944 $$r
1945 \end_layout
1946
1947 \end_inset
1948
1949  The full pathname to the original \SpecialChar LyX
1950  file being processed
1951 \end_layout
1952
1953 \begin_layout Labeling
1954 \labelwidthstring 00.00.0000
1955 \begin_inset Flex Code
1956 status collapsed
1957
1958 \begin_layout Plain Layout
1959 $$f
1960 \end_layout
1961
1962 \end_inset
1963
1964  The filename (without any directory path) of the \SpecialChar LyX
1965  file.
1966 \end_layout
1967
1968 \begin_layout Labeling
1969 \labelwidthstring 00.00.0000
1970 \begin_inset Flex Code
1971 status collapsed
1972
1973 \begin_layout Plain Layout
1974 $$l
1975 \end_layout
1976
1977 \end_inset
1978
1979  The `\SpecialChar LaTeX
1980  name'
1981 \end_layout
1982
1983 \begin_layout Standard
1984 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1985 's 
1986 \series bold
1987
1988 \backslash
1989 include
1990 \series default
1991  command.
1992  It is relevant only when exporting files suitable for such inclusion.
1993 \end_layout
1994
1995 \begin_layout Standard
1996 Copiers can be used to do almost anything with output files.
1997  For example, suppose you want generated pdf files to be copied to a special
1998  directory, 
1999 \begin_inset Flex Code
2000 status collapsed
2001
2002 \begin_layout Plain Layout
2003 /home/you/pdf/
2004 \end_layout
2005
2006 \end_inset
2007
2008 .
2009  Then you could write a shell script such as this one:
2010 \end_layout
2011
2012 \begin_layout Standard
2013 \begin_inset listings
2014 inline false
2015 status open
2016
2017 \begin_layout Plain Layout
2018
2019 #!/bin/bash
2020 \end_layout
2021
2022 \begin_layout Plain Layout
2023
2024 FROMFILE=$1
2025 \end_layout
2026
2027 \begin_layout Plain Layout
2028
2029 TOFILE=`basename $2`
2030 \end_layout
2031
2032 \begin_layout Plain Layout
2033
2034 cp $FROMFILE /home/you/pdf/$TOFILE
2035 \end_layout
2036
2037 \end_inset
2038
2039 Save it in your local \SpecialChar LyX
2040  directory—say, 
2041 \begin_inset Flex Code
2042 status collapsed
2043
2044 \begin_layout Plain Layout
2045 /home/you/.lyx/scripts/pdfcopier.sh
2046 \end_layout
2047
2048 \end_inset
2049
2050 —and make it executable, if you need to do so on your platform.
2051  Then, in the 
2052 \begin_inset Flex Noun
2053 status collapsed
2054
2055 \begin_layout Plain Layout
2056 Tools\SpecialChar menuseparator
2057 Preferences
2058 \end_layout
2059
2060 \end_inset
2061
2062  dialog, select under 
2063 \begin_inset Flex Noun
2064 status collapsed
2065
2066 \begin_layout Plain Layout
2067 File Handling\SpecialChar menuseparator
2068 File formats
2069 \end_layout
2070
2071 \end_inset
2072
2073  the 
2074 \begin_inset Flex Noun
2075 status collapsed
2076
2077 \begin_layout Plain Layout
2078 PDF(pdflatex)
2079 \end_layout
2080
2081 \end_inset
2082
2083  format—or one of the other pdf formats—and enter 
2084 \begin_inset Flex Code
2085 status collapsed
2086
2087 \begin_layout Plain Layout
2088 pdfcopier.sh $$i $$o
2089 \end_layout
2090
2091 \end_inset
2092
2093  into the 
2094 \begin_inset Flex Noun
2095 status collapsed
2096
2097 \begin_layout Plain Layout
2098 Copier
2099 \end_layout
2100
2101 \end_inset
2102
2103  field.
2104  
2105 \end_layout
2106
2107 \begin_layout Standard
2108 Copiers are used by \SpecialChar LyX
2109  in various of its own conversions.
2110  For example, if appropriate programs are found, \SpecialChar LyX
2111  will automatically install
2112  copiers for the 
2113 \begin_inset Flex Noun
2114 status collapsed
2115
2116 \begin_layout Plain Layout
2117 HTML
2118 \end_layout
2119
2120 \end_inset
2121
2122  and 
2123 \begin_inset Flex Noun
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 HTML
2128 \begin_inset space ~
2129 \end_inset
2130
2131 (MS Word)
2132 \end_layout
2133
2134 \end_inset
2135
2136  formats.
2137  When these formats are exported, the copier sees that not just the main
2138  HTML file but various associated files (style files, images, etc.) are also
2139  copied.
2140  All these files are written to a subdirectory of the directory in which
2141  the original \SpecialChar LyX
2142  file was found.
2143 \begin_inset Foot
2144 status collapsed
2145
2146 \begin_layout Plain Layout
2147 This copier can be customized.
2148  The optional 
2149 \begin_inset Quotes eld
2150 \end_inset
2151
2152 -e
2153 \begin_inset Quotes erd
2154 \end_inset
2155
2156  argument takes a comma-separated list of extensions to be copied; if it
2157  is omitted, all files will be copied.
2158  The 
2159 \begin_inset Quotes eld
2160 \end_inset
2161
2162 -t
2163 \begin_inset Quotes erd
2164 \end_inset
2165
2166  argument determines the extension added to the generated directory.
2167  By default, it is 
2168 \begin_inset Quotes eld
2169 \end_inset
2170
2171
2172 \begin_inset Flex Noun
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 LyXconv
2177 \end_layout
2178
2179 \end_inset
2180
2181
2182 \begin_inset Quotes erd
2183 \end_inset
2184
2185 , so HTML generated from 
2186 \begin_inset Flex Noun
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 /path/to/filename.lyx
2191 \end_layout
2192
2193 \end_inset
2194
2195  will end up in 
2196 \begin_inset Flex Noun
2197 status collapsed
2198
2199 \begin_layout Plain Layout
2200 /path/to/filename.html.LyXconv
2201 \end_layout
2202
2203 \end_inset
2204
2205 .
2206  
2207 \end_layout
2208
2209 \end_inset
2210
2211
2212 \end_layout
2213
2214 \begin_layout Section
2215 Converters
2216 \begin_inset CommandInset label
2217 LatexCommand label
2218 name "sec:Converters"
2219
2220 \end_inset
2221
2222
2223 \end_layout
2224
2225 \begin_layout Standard
2226 You can define your own Converters to convert files between different formats.
2227  This is done in the 
2228 \begin_inset Flex Noun
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 Tools\SpecialChar menuseparator
2233 Preferences\SpecialChar menuseparator
2234 File Handling\SpecialChar menuseparator
2235 Converters
2236 \end_layout
2237
2238 \end_inset
2239
2240  dialog.
2241 \end_layout
2242
2243 \begin_layout Standard
2244 To define a new converter, select the 
2245 \begin_inset Flex Noun
2246 status collapsed
2247
2248 \begin_layout Plain Layout
2249 From
2250 \begin_inset space ~
2251 \end_inset
2252
2253 format
2254 \end_layout
2255
2256 \end_inset
2257
2258  and 
2259 \begin_inset Flex Noun
2260 status collapsed
2261
2262 \begin_layout Plain Layout
2263 To
2264 \begin_inset space ~
2265 \end_inset
2266
2267 format
2268 \end_layout
2269
2270 \end_inset
2271
2272  from the drop-down lists, enter the command needed for the conversion,
2273  and then press the 
2274 \begin_inset Flex Noun
2275 status collapsed
2276
2277 \begin_layout Plain Layout
2278 Add
2279 \end_layout
2280
2281 \end_inset
2282
2283  button.
2284  Several variables can be used in the definition of converters:
2285 \end_layout
2286
2287 \begin_layout Labeling
2288 \labelwidthstring 00.00.0000
2289 \begin_inset Flex Code
2290 status collapsed
2291
2292 \begin_layout Plain Layout
2293 $$s
2294 \end_layout
2295
2296 \end_inset
2297
2298  The \SpecialChar LyX
2299  system directory
2300 \end_layout
2301
2302 \begin_layout Labeling
2303 \labelwidthstring 00.00.0000
2304 \begin_inset Flex Code
2305 status collapsed
2306
2307 \begin_layout Plain Layout
2308 $$i
2309 \end_layout
2310
2311 \end_inset
2312
2313  The input file
2314 \end_layout
2315
2316 \begin_layout Labeling
2317 \labelwidthstring 00.00.0000
2318 \begin_inset Flex Code
2319 status collapsed
2320
2321 \begin_layout Plain Layout
2322 $$o
2323 \end_layout
2324
2325 \end_inset
2326
2327  The output file
2328 \end_layout
2329
2330 \begin_layout Labeling
2331 \labelwidthstring 00.00.0000
2332 \begin_inset Flex Code
2333 status collapsed
2334
2335 \begin_layout Plain Layout
2336 $$b
2337 \end_layout
2338
2339 \end_inset
2340
2341  The base filename of the input file (i.
2342 \begin_inset space \thinspace{}
2343 \end_inset
2344
2345 g., without the extension)
2346 \end_layout
2347
2348 \begin_layout Labeling
2349 \labelwidthstring 00.00.0000
2350 \begin_inset Flex Code
2351 status collapsed
2352
2353 \begin_layout Plain Layout
2354 $$p
2355 \end_layout
2356
2357 \end_inset
2358
2359  The path to the input file
2360 \end_layout
2361
2362 \begin_layout Labeling
2363 \labelwidthstring 00.00.0000
2364 \begin_inset Flex Code
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 $$r
2369 \end_layout
2370
2371 \end_inset
2372
2373  The path to the original input file (this is different from $$p when a
2374  chain of converters is called)
2375 \end_layout
2376
2377 \begin_layout Labeling
2378 \labelwidthstring 00.00.0000
2379 \begin_inset Flex Code
2380 status collapsed
2381
2382 \begin_layout Plain Layout
2383 $$e
2384 \end_layout
2385
2386 \end_inset
2387
2388  The iconv name for the encoding of the document.
2389 \end_layout
2390
2391 \begin_layout Standard
2392 In the 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 Extra
2398 \begin_inset space ~
2399 \end_inset
2400
2401 Flag
2402 \end_layout
2403
2404 \end_inset
2405
2406  field you can enter the following flags, separated by commas:
2407 \end_layout
2408
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Flex Code
2412 status collapsed
2413
2414 \begin_layout Plain Layout
2415 latex
2416 \change_inserted -712698321 1524656940
2417 =flavor
2418 \change_unchanged
2419
2420 \end_layout
2421
2422 \end_inset
2423
2424  This converter runs some form of \SpecialChar LaTeX
2425 .
2426  This will make \SpecialChar LyX
2427 's \SpecialChar LaTeX
2428  error logs available.
2429
2430 \change_inserted -712698321 1524657018
2431  The optional 
2432 \begin_inset Flex Code
2433 status open
2434
2435 \begin_layout Plain Layout
2436
2437 \change_inserted -712698321 1524657012
2438 flavor
2439 \change_unchanged
2440
2441 \end_layout
2442
2443 \end_inset
2444
2445  value specifies the form of \SpecialChar LaTeX
2446  that is run (
2447 \begin_inset Flex Code
2448 status open
2449
2450 \begin_layout Plain Layout
2451
2452 \change_inserted -712698321 1524657005
2453 latex, pdflatex, platex, xetex, luatex
2454 \change_unchanged
2455
2456 \end_layout
2457
2458 \end_inset
2459
2460 ).
2461  If no value is specified, 
2462 \begin_inset Flex Code
2463 status open
2464
2465 \begin_layout Plain Layout
2466
2467 \change_inserted -712698321 1524657018
2468 latex
2469 \change_unchanged
2470
2471 \end_layout
2472
2473 \end_inset
2474
2475  is used.
2476 \change_unchanged
2477
2478 \end_layout
2479
2480 \begin_layout Labeling
2481 \labelwidthstring 00.00.0000
2482 \begin_inset Flex Code
2483 status collapsed
2484
2485 \begin_layout Plain Layout
2486 needaux
2487 \change_inserted -712698321 1524656935
2488 =flavor
2489 \change_unchanged
2490
2491 \end_layout
2492
2493 \end_inset
2494
2495  Needs the \SpecialChar LaTeX
2496  
2497 \begin_inset Flex Noun
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501 .aux
2502 \end_layout
2503
2504 \end_inset
2505
2506  file for the conversion.
2507
2508 \change_inserted -712698321 1524657047
2509  The optional 
2510 \begin_inset Flex Code
2511 status open
2512
2513 \begin_layout Plain Layout
2514
2515 \change_inserted -712698321 1524657030
2516 flavor
2517 \end_layout
2518
2519 \end_inset
2520
2521  value specifies the form of \SpecialChar LaTeX
2522  that is run in order to generate the 
2523 \begin_inset Flex Noun
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527
2528 \change_inserted -712698321 1524657047
2529 .aux
2530 \end_layout
2531
2532 \end_inset
2533
2534  file (
2535 \begin_inset Flex Code
2536 status open
2537
2538 \begin_layout Plain Layout
2539
2540 \change_inserted -712698321 1524657030
2541 latex, pdflatex, platex, xetex, luatex
2542 \end_layout
2543
2544 \end_inset
2545
2546 ).
2547  If no value is specified, 
2548 \begin_inset Flex Code
2549 status open
2550
2551 \begin_layout Plain Layout
2552
2553 \change_inserted -712698321 1524657030
2554 latex
2555 \end_layout
2556
2557 \end_inset
2558
2559  is used.
2560 \change_unchanged
2561
2562 \end_layout
2563
2564 \begin_layout Labeling
2565 \labelwidthstring 00.00.0000
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 nice
2571 \end_layout
2572
2573 \end_inset
2574
2575  Needs a 
2576 \begin_inset Quotes eld
2577 \end_inset
2578
2579 nice
2580 \begin_inset Quotes erd
2581 \end_inset
2582
2583  file from the backend, which in practice means a \SpecialChar LaTeX
2584  file like the one we
2585  would export, without 
2586 \begin_inset Flex Code
2587 status collapsed
2588
2589 \begin_layout Plain Layout
2590 input@path
2591 \end_layout
2592
2593 \end_inset
2594
2595 .
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 xml
2605 \end_layout
2606
2607 \end_inset
2608
2609  Output is XML.
2610 \end_layout
2611
2612 \begin_layout Standard
2613 The following three flags are not really flags at all because they take
2614  an argument in the 
2615 \begin_inset Flex Noun
2616 status collapsed
2617
2618 \begin_layout Plain Layout
2619 key
2620 \begin_inset space ~
2621 \end_inset
2622
2623 =
2624 \begin_inset space ~
2625 \end_inset
2626
2627 value
2628 \end_layout
2629
2630 \end_inset
2631
2632  format:
2633 \end_layout
2634
2635 \begin_layout Labeling
2636 \labelwidthstring 00.00.0000
2637
2638 \change_inserted -712698321 1523206314
2639 \begin_inset Flex Code
2640 status collapsed
2641
2642 \begin_layout Plain Layout
2643
2644 \change_inserted -712698321 1523206193
2645 hyperref-driver
2646 \end_layout
2647
2648 \end_inset
2649
2650  The name of the driver that needs to be loaded with the 
2651 \family sans
2652 hyperref
2653 \family default
2654  package for this converter.
2655  The loading of the correct driver is necessary to get some PDF-specific
2656  features.
2657  See the 
2658 \family sans
2659 hyperref
2660 \family default
2661  manual for details.
2662 \end_layout
2663
2664 \begin_layout Labeling
2665 \labelwidthstring 00.00.0000
2666 \begin_inset Flex Code
2667 status collapsed
2668
2669 \begin_layout Plain Layout
2670 parselog
2671 \end_layout
2672
2673 \end_inset
2674
2675  If set, the converter's standard error will be redirected to a file 
2676 \begin_inset Flex Code
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680 infile.out
2681 \end_layout
2682
2683 \end_inset
2684
2685 , and the script given as argument will be run as: 
2686 \begin_inset Flex Code
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 script < infile.out > infile.log
2691 \end_layout
2692
2693 \end_inset
2694
2695 .
2696  The argument may contain 
2697 \begin_inset Flex Code
2698 status collapsed
2699
2700 \begin_layout Plain Layout
2701 $$s
2702 \end_layout
2703
2704 \end_inset
2705
2706 .
2707 \end_layout
2708
2709 \begin_layout Labeling
2710 \labelwidthstring 00.00.0000
2711 \begin_inset Flex Code
2712 status collapsed
2713
2714 \begin_layout Plain Layout
2715 resultdir
2716 \end_layout
2717
2718 \end_inset
2719
2720  The name of the directory in which the converter will dump the generated
2721  files.
2722  \SpecialChar LyX
2723  will not create this directory, and it does not copy anything into it,
2724  though it will copy this directory to the destination.
2725  The argument may contain 
2726 \begin_inset Flex Code
2727 status collapsed
2728
2729 \begin_layout Plain Layout
2730 $$b
2731 \end_layout
2732
2733 \end_inset
2734
2735 , which will be replaced by the base name of the input and output files,
2736  respectively, when the directory is copied.
2737 \begin_inset Newline newline
2738 \end_inset
2739
2740 Note that resultdir and usetempdir make no sense together.
2741  The latter will be ignored if the former is given.
2742 \end_layout
2743
2744 \begin_layout Labeling
2745 \labelwidthstring 00.00.0000
2746 \begin_inset Flex Code
2747 status collapsed
2748
2749 \begin_layout Plain Layout
2750 resultfile
2751 \end_layout
2752
2753 \end_inset
2754
2755  Determines the output file name and may, contain 
2756 \begin_inset Flex Code
2757 status collapsed
2758
2759 \begin_layout Plain Layout
2760 $$b
2761 \end_layout
2762
2763 \end_inset
2764
2765 .
2766  Sensible only with resultdir and optional even then; if not given, it defaults
2767  to `index'.
2768 \end_layout
2769
2770 \begin_layout Standard
2771
2772 \change_inserted -712698321 1523206384
2773 A suitable hyperref-driver is set for some converters that are installed
2774  with \SpecialChar LyX
2775 .
2776  
2777 \change_deleted -712698321 1523206388
2778 None of these
2779 \change_inserted -712698321 1523206389
2780 The
2781 \change_unchanged
2782  last three
2783 \change_inserted -712698321 1523206400
2784  flags, however,
2785 \change_unchanged
2786  are presently 
2787 \change_inserted -712698321 1523206407
2788 not 
2789 \change_unchanged
2790 used in any of the 
2791 \change_inserted -712698321 1523206437
2792 pre-installed 
2793 \change_unchanged
2794 converters
2795 \change_deleted -712698321 1523206442
2796  that are installed with \SpecialChar LyX
2797
2798 \change_unchanged
2799 .
2800  
2801 \end_layout
2802
2803 \begin_layout Standard
2804 You do not have to define converters for all formats between which you want
2805  to convert.
2806  For example, you will note that there is no `\SpecialChar LyX
2807  to PostScript' converter,
2808  but \SpecialChar LyX
2809  will export PostScript.
2810  It does so by first creating a \SpecialChar LaTeX
2811  file (no converter needs to be defined
2812  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2813  to DVI' converter,
2814  and finally converting the resulting DVI file to PostScript.
2815  \SpecialChar LyX
2816  finds such `chains' of converters automatically, and it will always choose
2817  the shortest possible chain.
2818  You can, though, still define multiple conversion methods between file
2819  formats.
2820  For example, the standard \SpecialChar LyX
2821  configuration provides five ways to convert
2822  \SpecialChar LaTeX
2823  to PDF:
2824 \end_layout
2825
2826 \begin_layout Enumerate
2827 Directly, using 
2828 \begin_inset Flex Noun
2829 status collapsed
2830
2831 \begin_layout Plain Layout
2832 pdflatex
2833 \end_layout
2834
2835 \end_inset
2836
2837
2838 \end_layout
2839
2840 \begin_layout Enumerate
2841 via (DVI and) PostScript, using 
2842 \begin_inset Flex Noun
2843 status collapsed
2844
2845 \begin_layout Plain Layout
2846 ps2pdf
2847 \end_layout
2848
2849 \end_inset
2850
2851
2852 \end_layout
2853
2854 \begin_layout Enumerate
2855 via DVI, using 
2856 \begin_inset Flex Noun
2857 status collapsed
2858
2859 \begin_layout Plain Layout
2860 dvipdfm
2861 \end_layout
2862
2863 \end_inset
2864
2865
2866 \end_layout
2867
2868 \begin_layout Enumerate
2869 directly using 
2870 \begin_inset Flex Noun
2871 status collapsed
2872
2873 \begin_layout Plain Layout
2874 Xe\SpecialChar TeX
2875
2876 \end_layout
2877
2878 \end_inset
2879
2880
2881 \end_layout
2882
2883 \begin_layout Enumerate
2884 directly using 
2885 \begin_inset Flex Noun
2886 status collapsed
2887
2888 \begin_layout Plain Layout
2889 Lua\SpecialChar TeX
2890
2891 \end_layout
2892
2893 \end_inset
2894
2895
2896 \end_layout
2897
2898 \begin_layout Standard
2899 To define such alternate chains, you must define multiple target `file formats',
2900  as described in 
2901 \begin_inset CommandInset ref
2902 LatexCommand ref
2903 reference "sec:Formats"
2904
2905 \end_inset
2906
2907 .
2908  For example, in the standard configuration, the formats named 
2909 \begin_inset Flex Noun
2910 status collapsed
2911
2912 \begin_layout Plain Layout
2913 pdf
2914 \end_layout
2915
2916 \end_inset
2917
2918  (for 
2919 \begin_inset Flex Noun
2920 status collapsed
2921
2922 \begin_layout Plain Layout
2923 ps2pdf
2924 \end_layout
2925
2926 \end_inset
2927
2928 ), 
2929 \begin_inset Flex Noun
2930 status collapsed
2931
2932 \begin_layout Plain Layout
2933 pdf2
2934 \end_layout
2935
2936 \end_inset
2937
2938  (for 
2939 \begin_inset Flex Noun
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 pdflatex
2944 \end_layout
2945
2946 \end_inset
2947
2948 ), 
2949 \begin_inset Flex Noun
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953 pdf3
2954 \end_layout
2955
2956 \end_inset
2957
2958  (for 
2959 \begin_inset Flex Noun
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 dvipdfm
2964 \end_layout
2965
2966 \end_inset
2967
2968 ), 
2969 \begin_inset Flex Noun
2970 status collapsed
2971
2972 \begin_layout Plain Layout
2973 pdf4
2974 \end_layout
2975
2976 \end_inset
2977
2978  (for 
2979 \begin_inset Flex Noun
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 Xe\SpecialChar TeX
2984
2985 \end_layout
2986
2987 \end_inset
2988
2989 ), and 
2990 \begin_inset Flex Noun
2991 status collapsed
2992
2993 \begin_layout Plain Layout
2994 pdf5
2995 \end_layout
2996
2997 \end_inset
2998
2999  (for 
3000 \begin_inset Flex Noun
3001 status collapsed
3002
3003 \begin_layout Plain Layout
3004 Lua\SpecialChar TeX
3005
3006 \end_layout
3007
3008 \end_inset
3009
3010 ) are defined, all of which share the extension 
3011 \begin_inset Flex Noun
3012 status collapsed
3013
3014 \begin_layout Plain Layout
3015 .pdf
3016 \end_layout
3017
3018 \end_inset
3019
3020 , and which correspond to the conversion methods just mentioned.
3021 \end_layout
3022
3023 \begin_layout Chapter
3024 Internationalizing \SpecialChar LyX
3025
3026 \begin_inset CommandInset label
3027 LatexCommand label
3028 name "cha:Internationalizing-LyX"
3029
3030 \end_inset
3031
3032
3033 \end_layout
3034
3035 \begin_layout Standard
3036 \SpecialChar LyX
3037  supports using a translated interface.
3038  Last time we checked, \SpecialChar LyX
3039  provided text in thirty languages.
3040  The language of choice is called your 
3041 \emph on
3042 locale
3043 \emph default
3044 .
3045  (For further reading on locale settings, see also the documentation for
3046  locale that comes with your operating system.
3047  For Linux, the manual page for 
3048 \begin_inset Flex Code
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 locale(5)
3053 \end_layout
3054
3055 \end_inset
3056
3057  could be a good place to start).
3058 \end_layout
3059
3060 \begin_layout Standard
3061 Notice that these translations will work, but do contain a few flaws.
3062  In particular, all dialogs have been designed with the English text in
3063  mind, which means that some of the translated text will be too large to
3064  fit within the space allocated.
3065  This is only a display problem and will not cause any harm.
3066  Also, you will find that some of the translations do not define shortcut
3067  keys for everything.
3068  Sometimes, there are simply not enough free letters to do it.
3069  Other times, the translator just hasn't got around to doing it yet.
3070  Our localization team, which you may wish to join,
3071 \begin_inset Foot
3072 status collapsed
3073
3074 \begin_layout Plain Layout
3075 If you are a fluent speaker of a language other than English, joining these
3076  teams is a great way to give back to the \SpecialChar LyX
3077  community!
3078 \end_layout
3079
3080 \end_inset
3081
3082  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3083 .
3084 \end_layout
3085
3086 \begin_layout Section
3087 Translating \SpecialChar LyX
3088
3089 \end_layout
3090
3091 \begin_layout Subsection
3092 Translating the graphical user interface (text messages).
3093 \end_layout
3094
3095 \begin_layout Standard
3096 \SpecialChar LyX
3097  uses the GNU 
3098 \begin_inset Flex Code
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 gettext
3103 \end_layout
3104
3105 \end_inset
3106
3107  library to handle the internationalization of the interface.
3108  To have \SpecialChar LyX
3109  speak your favorite language in all menus and dialogs, you need
3110  a 
3111 \begin_inset Flex Code
3112 status collapsed
3113
3114 \begin_layout Plain Layout
3115 po
3116 \end_layout
3117
3118 \end_inset
3119
3120 -file for that language.
3121  When this is available, you'll have to generate a 
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 mo
3127 \end_layout
3128
3129 \end_inset
3130
3131 -file from it and install the 
3132 \begin_inset Flex Code
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 mo
3137 \end_layout
3138
3139 \end_inset
3140
3141 -file.
3142  The process of doing all of this is explained in the documentation for
3143  GNU 
3144 \begin_inset Flex Code
3145 status collapsed
3146
3147 \begin_layout Plain Layout
3148 gettext
3149 \end_layout
3150
3151 \end_inset
3152
3153 .
3154  It is possible to do this just for yourself, but if you're going to do
3155  it, you might as well share the results of your labors with the rest of
3156  the \SpecialChar LyX
3157  community.
3158  Send a message to the \SpecialChar LyX
3159  developers' list for more information about how
3160  to proceed.
3161 \end_layout
3162
3163 \begin_layout Standard
3164 In short, this is what you should do (xx denotes the language code):
3165 \end_layout
3166
3167 \begin_layout Itemize
3168 Check out the \SpecialChar LyX
3169  source code.
3170  (See the 
3171 \begin_inset CommandInset href
3172 LatexCommand href
3173 name "information on the web"
3174 target "https://www.lyx.org/HowToUseGIT"
3175 literal "false"
3176
3177 \end_inset
3178
3179 .)
3180 \end_layout
3181
3182 \begin_layout Itemize
3183 Copy the file 
3184 \begin_inset Flex Code
3185 status collapsed
3186
3187 \begin_layout Plain Layout
3188 lyx.pot
3189 \end_layout
3190
3191 \end_inset
3192
3193  to the folder of the 
3194 \begin_inset Flex Code
3195 status collapsed
3196
3197 \begin_layout Plain Layout
3198 **.po
3199 \end_layout
3200
3201 \end_inset
3202
3203  files.
3204  Then rename it to 
3205 \begin_inset Flex Code
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209 xx.po
3210 \end_layout
3211
3212 \end_inset
3213
3214 .
3215  (If 
3216 \begin_inset Flex Code
3217 status collapsed
3218
3219 \begin_layout Plain Layout
3220 lyx.pot
3221 \end_layout
3222
3223 \end_inset
3224
3225  doesn't exist anywhere, it can be remade with the console command 
3226 \begin_inset Flex Code
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230 make lyx.pot
3231 \end_layout
3232
3233 \end_inset
3234
3235  in that directory, or you can use an existing po-file for some other language
3236  as a template).
3237 \end_layout
3238
3239 \begin_layout Itemize
3240 Edit 
3241 \begin_inset Flex Code
3242 status collapsed
3243
3244 \begin_layout Plain Layout
3245 xx.po
3246 \end_layout
3247
3248 \end_inset
3249
3250 .
3251 \begin_inset Foot
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 This is just a text file, so it can be edited in any text editor.
3256  But there are also specialized programs that support such editing, such
3257  as 
3258 \family typewriter
3259 Poedit
3260 \family default
3261  (for all platforms) or 
3262 \family typewriter
3263 KBabel
3264 \family default
3265  (for KDE).
3266  
3267 \family typewriter
3268 Emacs
3269 \family default
3270  contains a `mode' for editing 
3271 \begin_inset Flex Code
3272 status collapsed
3273
3274 \begin_layout Plain Layout
3275 po
3276 \end_layout
3277
3278 \end_inset
3279
3280  files, as well, see 
3281 \begin_inset Flex URL
3282 status open
3283
3284 \begin_layout Plain Layout
3285
3286 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3287 \end_layout
3288
3289 \end_inset
3290
3291 .
3292 \end_layout
3293
3294 \end_inset
3295
3296  For some menu- and widget-labels, there are also shortcut keys that should
3297  be translated.
3298  Those keys are marked after a `|', and should be translated according to
3299  the words and phrases of the language.
3300  You should also fill also out the information at the beginning of the new
3301  
3302 \begin_inset Flex Code
3303 status collapsed
3304
3305 \begin_layout Plain Layout
3306 po
3307 \end_layout
3308
3309 \end_inset
3310
3311 -file with your email-address, etc., so people know where to reach you with
3312  suggestions and entertaining flames.
3313 \end_layout
3314
3315 \begin_layout Standard
3316 If you are just doing this on your own, then:
3317 \end_layout
3318
3319 \begin_layout Itemize
3320 Generate 
3321 \begin_inset Flex Code
3322 status collapsed
3323
3324 \begin_layout Plain Layout
3325 xx.mo
3326 \end_layout
3327
3328 \end_inset
3329
3330 .
3331  This can be done with 
3332 \begin_inset Flex Code
3333 status collapsed
3334
3335 \begin_layout Plain Layout
3336 msgfmt -o xx.mo < xx.po
3337 \end_layout
3338
3339 \end_inset
3340
3341 .
3342 \end_layout
3343
3344 \begin_layout Itemize
3345 Copy the 
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350 mo
3351 \end_layout
3352
3353 \end_inset
3354
3355 -file to your locale-tree, at the correct directory for application messages
3356  for the language
3357 \series bold
3358  
3359 \series default
3360 xx, and under the name 
3361 \begin_inset Flex Code
3362 status collapsed
3363
3364 \begin_layout Plain Layout
3365 lyx.mo
3366 \end_layout
3367
3368 \end_inset
3369
3370  (e.
3371 \begin_inset space \thinspace{}
3372 \end_inset
3373
3374 g.
3375 \begin_inset space \space{}
3376 \end_inset
3377
3378
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3384 \end_layout
3385
3386 \end_inset
3387
3388
3389 \series bold
3390 .
3391 \end_layout
3392
3393 \begin_layout Standard
3394 As said, however, it would be best if the new 
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399 po
3400 \end_layout
3401
3402 \end_inset
3403
3404  file could be added to the \SpecialChar LyX
3405  distribution, so others can use it.
3406  Adding it involves making additional changes to \SpecialChar LyX
3407 .
3408  So send an email to the developers' mailing list if you're interested in
3409  doing that.
3410 \end_layout
3411
3412 \begin_layout Subsubsection
3413 Ambiguous messages
3414 \end_layout
3415
3416 \begin_layout Standard
3417 Sometimes it turns out that one English message needs to be translated into
3418  different messages in the target language.
3419  One example is the message 
3420 \begin_inset Flex Code
3421 status collapsed
3422
3423 \begin_layout Plain Layout
3424 To
3425 \end_layout
3426
3427 \end_inset
3428
3429  which has the German translation 
3430 \lang german
3431 Nach
3432 \lang english
3433  or 
3434 \lang german
3435 Bis
3436 \lang english
3437 , depending upon exactly what the English 
3438 \begin_inset Quotes eld
3439 \end_inset
3440
3441 to
3442 \begin_inset Quotes erd
3443 \end_inset
3444
3445  means.
3446  GNU 
3447 \begin_inset Flex Code
3448 status collapsed
3449
3450 \begin_layout Plain Layout
3451 gettext
3452 \end_layout
3453
3454 \end_inset
3455
3456  does not handle such ambiguous translations.
3457  Therefore you have to add some context information to the message: Instead
3458  of 
3459 \begin_inset Flex Code
3460 status collapsed
3461
3462 \begin_layout Plain Layout
3463 To
3464 \end_layout
3465
3466 \end_inset
3467
3468  it becomes 
3469 \begin_inset Flex Code
3470 status collapsed
3471
3472 \begin_layout Plain Layout
3473 To[[as in 'From format x to format y']]
3474 \end_layout
3475
3476 \end_inset
3477
3478  and 
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483 To[[as in 'From page x to page y']].
3484 \end_layout
3485
3486 \end_inset
3487
3488  Now the two occurrences of 
3489 \begin_inset Flex Code
3490 status collapsed
3491
3492 \begin_layout Plain Layout
3493 To
3494 \end_layout
3495
3496 \end_inset
3497
3498  are different for 
3499 \begin_inset Flex Code
3500 status collapsed
3501
3502 \begin_layout Plain Layout
3503 gettext
3504 \end_layout
3505
3506 \end_inset
3507
3508  and can be translated correctly to 
3509 \lang german
3510 Nach
3511 \lang english
3512  and 
3513 \lang german
3514 Bis
3515 \lang english
3516 , respectively.
3517 \end_layout
3518
3519 \begin_layout Standard
3520 Of course the context information needs to be stripped off the original
3521  message when no translation is used.
3522  Therefore you have to put it in double square brackets at the end of the
3523  message (see the example above).
3524  The translation mechanism of \SpecialChar LyX
3525  ensures that everything in double square
3526  brackets at the end of messages is removed before displaying the message.
3527 \end_layout
3528
3529 \begin_layout Subsection
3530 Translating the documentation.
3531 \end_layout
3532
3533 \begin_layout Standard
3534 The online documentation (in the 
3535 \begin_inset Flex Noun
3536 status collapsed
3537
3538 \begin_layout Plain Layout
3539 Help
3540 \end_layout
3541
3542 \end_inset
3543
3544 -menu) can (and should!) be translated.
3545  If there are translated versions of the documentation available
3546 \begin_inset Foot
3547 status collapsed
3548
3549 \begin_layout Plain Layout
3550 As of March 2008, at least some of the documents have been translated into
3551  fourteen languages, with the Tutorial available in a few more.
3552 \end_layout
3553
3554 \end_inset
3555
3556  and the locale is set accordingly, these will be used automagically by
3557  \SpecialChar LyX
3558 .
3559  \SpecialChar LyX
3560  looks for translated versions as 
3561 \begin_inset Flex Code
3562 status collapsed
3563
3564 \begin_layout Plain Layout
3565 LyXDir/doc/xx/DocName.lyx
3566 \end_layout
3567
3568 \end_inset
3569
3570 , where 
3571 \begin_inset Flex Code
3572 status collapsed
3573
3574 \begin_layout Plain Layout
3575 xx
3576 \end_layout
3577
3578 \end_inset
3579
3580  is the code for the language currently in use.
3581  If there are no translated documents, the default English versions will
3582  be displayed.
3583  Note that the translated versions must have the same filenames (
3584 \begin_inset Flex Code
3585 status collapsed
3586
3587 \begin_layout Plain Layout
3588 DocName
3589 \end_layout
3590
3591 \end_inset
3592
3593  above) as the original.
3594  If you feel up to translating the documentation (an excellent way to proof-read
3595  the original documentation by the way!), there are a few things you should
3596  do right away:
3597 \end_layout
3598
3599 \begin_layout Itemize
3600 Check out the documentation translation web page at 
3601 \begin_inset CommandInset href
3602 LatexCommand href
3603 name "https://www.lyx.org/Translation"
3604 target "https://www.lyx.org/Translation"
3605 literal "false"
3606
3607 \end_inset
3608
3609 .
3610  That way, you can find out which (if any) documents have already been translate
3611 d into your language.
3612  You can also find out who (if anyone) is organizing the effort to translate
3613  the documentation into your language.
3614  If no one is organizing the effort, please let us know that you're interested.
3615 \end_layout
3616
3617 \begin_layout Standard
3618 Once you get to actually translating, here's a few hints for you that may
3619  save you trouble:
3620 \end_layout
3621
3622 \begin_layout Itemize
3623 Join the documentation team! There is information on how to do that in 
3624 \begin_inset Flex Code
3625 status collapsed
3626
3627 \begin_layout Plain Layout
3628 Intro.lyx
3629 \end_layout
3630
3631 \end_inset
3632
3633  (
3634 \begin_inset Flex Noun
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 Help\SpecialChar menuseparator
3639 Introduction
3640 \end_layout
3641
3642 \end_inset
3643
3644 ), which by the way is the first document you should translate.
3645 \end_layout
3646
3647 \begin_layout Itemize
3648 Learn the typographic conventions for the language you are translating to.
3649  Typography is an ancient art and over the centuries, a great variety of
3650  conventions have developed throughout different parts of the world.
3651  Also study the professional terminology amongst typographers in your country.
3652  Inventing your own terminology will only confuse the users.
3653  
3654 \emph on
3655 (Warning! Typography is addictive!)
3656 \end_layout
3657
3658 \begin_layout Itemize
3659 Make a copy of the document.
3660  This will be your working copy.
3661  You can use this as your personal translated help-file by placing it in
3662  your 
3663 \begin_inset Flex Code
3664 status collapsed
3665
3666 \begin_layout Plain Layout
3667 UserDir/doc/xx/
3668 \end_layout
3669
3670 \end_inset
3671
3672  directory.
3673 \begin_inset Note Greyedout
3674 status open
3675
3676 \begin_layout Plain Layout
3677
3678 \series bold
3679 Note:
3680 \series default
3681  For a complex document with external material (images, etc.), if you make
3682  a copy e.
3683 \begin_inset space \thinspace{}
3684 \end_inset
3685
3686 g.
3687 \begin_inset space \space{}
3688 \end_inset
3689
3690 in a temp dir, beware that the links to external material may be broken
3691  when the document is moved to a different place.
3692  The best way is to retrieve the \SpecialChar LyX
3693  tree from git (see 
3694 \begin_inset Flex URL
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698
3699 https://www.lyx.org/HowToUseGIT
3700 \end_layout
3701
3702 \end_inset
3703
3704 ) and to edit the doc file in place.
3705 \end_layout
3706
3707 \end_inset
3708
3709
3710 \end_layout
3711
3712 \begin_layout Itemize
3713 Sometimes the original document (from the \SpecialChar LyX
3714  team) will be updated.
3715  Use the source viewer at 
3716 \begin_inset CommandInset href
3717 LatexCommand href
3718 name "https://www.lyx.org/trac/timeline"
3719 target "https://www.lyx.org/trac/timeline"
3720 literal "false"
3721
3722 \end_inset
3723
3724  to see what has been changed.
3725  That way you can easily see which parts of the translated document need
3726  to be updated.
3727 \end_layout
3728
3729 \begin_layout Standard
3730 If you ever find an error in the original document, fix it and notify the
3731  rest of the documentation team of the changes! (You didn't forget to join
3732  the documentation team, did you?)
3733 \end_layout
3734
3735 \begin_layout Standard
3736 \begin_inset Branch OutDated
3737 inverted 0
3738 status collapsed
3739
3740 \begin_layout Section
3741 International Keyboard Support
3742 \end_layout
3743
3744 \begin_layout Standard
3745
3746 \emph on
3747 [Editor's Note: The following section is by
3748 \emph default
3749  
3750 \shape smallcaps
3751 \emph on
3752 Ivan Schreter
3753 \shape default
3754 .
3755  It needs to be fixed to conform to the new Documentation Style sheet and
3756  to make use of the new v1.0 features.
3757  The whole thing also needs to be merged with the section following it.-jw
3758  It may also be badly out of date.-rh (2008)]
3759 \end_layout
3760
3761 \begin_layout Subsection
3762 Defining Own Keymaps: Keymap File Format
3763 \end_layout
3764
3765 \begin_layout Standard
3766 Let's look at a keyboard definition file a little closer.
3767  It is a plain text file defining
3768 \end_layout
3769
3770 \begin_layout Itemize
3771 key-to-key or key-to-string translations
3772 \end_layout
3773
3774 \begin_layout Itemize
3775 dead keys
3776 \end_layout
3777
3778 \begin_layout Itemize
3779 dead keys exceptions
3780 \end_layout
3781
3782 \begin_layout Standard
3783 To define key-to-key or key-to-string translation, use this command:
3784 \end_layout
3785
3786 \begin_layout Quotation
3787 \begin_inset Flex Code
3788 status collapsed
3789
3790 \begin_layout Plain Layout
3791
3792 \backslash
3793 kmap
3794 \end_layout
3795
3796 \end_inset
3797
3798  
3799 \begin_inset Flex Code
3800 status collapsed
3801
3802 \begin_layout Plain Layout
3803 key
3804 \end_layout
3805
3806 \end_inset
3807
3808  outstring 
3809 \end_layout
3810
3811 \begin_layout Standard
3812 where 
3813 \begin_inset Flex Code
3814 status collapsed
3815
3816 \begin_layout Plain Layout
3817 key
3818 \end_layout
3819
3820 \end_inset
3821
3822  is the key to be translated and 
3823 \begin_inset Flex Code
3824 status collapsed
3825
3826 \begin_layout Plain Layout
3827 outstring
3828 \end_layout
3829
3830 \end_inset
3831
3832  is the string to be inserted into the document.
3833  To define dead keys, use:
3834 \end_layout
3835
3836 \begin_layout Quotation
3837 \begin_inset Flex Code
3838 status collapsed
3839
3840 \begin_layout Plain Layout
3841
3842 \backslash
3843 kmod
3844 \end_layout
3845
3846 \end_inset
3847
3848  
3849 \begin_inset Flex Code
3850 status collapsed
3851
3852 \begin_layout Plain Layout
3853 key
3854 \end_layout
3855
3856 \end_inset
3857
3858  deadkey
3859 \end_layout
3860
3861 \begin_layout Standard
3862 where 
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 key
3868 \end_layout
3869
3870 \end_inset
3871
3872  is a keyboard key and 
3873 \begin_inset Flex Code
3874 status collapsed
3875
3876 \begin_layout Plain Layout
3877 deadkey
3878 \end_layout
3879
3880 \end_inset
3881
3882  is dead key name.
3883  The following dead keys are supported (shortcut name is in parentheses):
3884 \end_layout
3885
3886 \begin_layout Quotation
3887
3888 \emph on
3889 Name
3890 \begin_inset space \hfill{}
3891 \end_inset
3892
3893 Example
3894 \end_layout
3895
3896 \begin_layout Quotation
3897 acute (acu)
3898 \begin_inset space \hfill{}
3899 \end_inset
3900
3901 áéíóú
3902 \end_layout
3903
3904 \begin_layout Quotation
3905 grave (gra)
3906 \begin_inset space \hfill{}
3907 \end_inset
3908
3909 àèìòù
3910 \end_layout
3911
3912 \begin_layout Quotation
3913 macron (mac)
3914 \begin_inset space \hfill{}
3915 \end_inset
3916
3917  ō
3918 \end_layout
3919
3920 \begin_layout Quotation
3921 tilde (til)
3922 \begin_inset space \hfill{}
3923 \end_inset
3924
3925 ñÑ
3926 \end_layout
3927
3928 \begin_layout Quotation
3929 underbar (underb)
3930 \begin_inset space \hfill{}
3931 \end_inset
3932
3933
3934 \begin_inset ERT
3935 status open
3936
3937 \begin_layout Plain Layout
3938
3939
3940 \backslash
3941 b o
3942 \end_layout
3943
3944 \end_inset
3945
3946
3947 \end_layout
3948
3949 \begin_layout Quotation
3950 cedilla (ced)
3951 \begin_inset space \hfill{}
3952 \end_inset
3953
3954 çÇ
3955 \end_layout
3956
3957 \begin_layout Quotation
3958 underdot (underd)
3959 \begin_inset space \hfill{}
3960 \end_inset
3961
3962
3963 \begin_inset ERT
3964 status open
3965
3966 \begin_layout Plain Layout
3967
3968
3969 \backslash
3970 d o
3971 \end_layout
3972
3973 \end_inset
3974
3975
3976 \end_layout
3977
3978 \begin_layout Quotation
3979 circumflex (circu)
3980 \begin_inset space \hfill{}
3981 \end_inset
3982
3983 âêîôû
3984 \end_layout
3985
3986 \begin_layout Quotation
3987 circle (circl)
3988 \begin_inset space \hfill{}
3989 \end_inset
3990
3991 ÅůŮ
3992 \end_layout
3993
3994 \begin_layout Quotation
3995 tie (tie)
3996 \begin_inset space \hfill{}
3997 \end_inset
3998
3999
4000 \begin_inset ERT
4001 status open
4002
4003 \begin_layout Plain Layout
4004
4005
4006 \backslash
4007 t o
4008 \end_layout
4009
4010 \end_inset
4011
4012
4013 \end_layout
4014
4015 \begin_layout Quotation
4016 breve (bre)
4017 \begin_inset space \hfill{}
4018 \end_inset
4019
4020 ă
4021 \begin_inset ERT
4022 status open
4023
4024 \begin_layout Plain Layout
4025
4026
4027 \backslash
4028 u o
4029 \end_layout
4030
4031 \end_inset
4032
4033
4034 \end_layout
4035
4036 \begin_layout Quotation
4037 caron (car)
4038 \begin_inset space \hfill{}
4039 \end_inset
4040
4041 čšž
4042 \end_layout
4043
4044 \begin_layout Quotation
4045 hungarian umlaut (hug)
4046 \begin_inset space \hfill{}
4047 \end_inset
4048
4049 őű
4050 \end_layout
4051
4052 \begin_layout Quotation
4053 umlaut (uml)
4054 \begin_inset space \hfill{}
4055 \end_inset
4056
4057 äöü
4058 \end_layout
4059
4060 \begin_layout Quotation
4061 dot (dot)
4062 \begin_inset space \hfill{}
4063 \end_inset
4064
4065 ż
4066 \begin_inset ERT
4067 status open
4068
4069 \begin_layout Plain Layout
4070
4071
4072 \backslash
4073 .s
4074 \end_layout
4075
4076 \end_inset
4077
4078
4079 \end_layout
4080
4081 \begin_layout Standard
4082 Since in many international keyboards there are exceptions to what some
4083  dead keys should do, you can define them using
4084 \end_layout
4085
4086 \begin_layout Quotation
4087 \begin_inset Flex Code
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091
4092 \backslash
4093 kxmod
4094 \end_layout
4095
4096 \end_inset
4097
4098  deadkey key outstring
4099 \end_layout
4100
4101 \begin_layout Standard
4102 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4103 , so you put in
4104 \end_layout
4105
4106 \begin_layout Quotation
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111
4112 \backslash
4113 kxmod
4114 \end_layout
4115
4116 \end_inset
4117
4118  caron o "
4119 \backslash
4120 ^o"
4121 \end_layout
4122
4123 \begin_layout Standard
4124 to make it work correctly.
4125  Also, you have to define as exceptions dead keys over i and j, to remove
4126  the dot from them before inserting an accent mark.
4127  I will change this when the time comes, but so far I haven't had time.
4128 \end_layout
4129
4130 \begin_layout Standard
4131 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4132  double backslash.
4133  Also, quotes and 
4134 \begin_inset Flex Code
4135 status collapsed
4136
4137 \begin_layout Plain Layout
4138 #
4139 \end_layout
4140
4141 \end_inset
4142
4143  have different meaning.
4144  
4145 \begin_inset Flex Code
4146 status collapsed
4147
4148 \begin_layout Plain Layout
4149 #
4150 \end_layout
4151
4152 \end_inset
4153
4154  marks comments, quotes start and end \SpecialChar LaTeX
4155 -style commands.
4156  To enter quote, you'll need to use 
4157 \begin_inset Flex Code
4158 status collapsed
4159
4160 \begin_layout Plain Layout
4161
4162 \backslash
4163 "
4164 \end_layout
4165
4166 \end_inset
4167
4168 , to enter 
4169 \begin_inset Flex Code
4170 status collapsed
4171
4172 \begin_layout Plain Layout
4173 #
4174 \end_layout
4175
4176 \end_inset
4177
4178 , use 
4179 \begin_inset Flex Code
4180 status collapsed
4181
4182 \begin_layout Plain Layout
4183
4184 \backslash
4185 #
4186 \end_layout
4187
4188 \end_inset
4189
4190 .
4191 \end_layout
4192
4193 \begin_layout Standard
4194 If you make a keyboard description file that works for your language, please
4195  mail it to me, so I can include it in the next keymap distribution.
4196 \end_layout
4197
4198 \begin_layout Standard
4199 More keywords will be supported in keymap configuration file in future,
4200  like
4201 \end_layout
4202
4203 \begin_layout Itemize
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208
4209 \backslash
4210 kinclude filename
4211 \end_layout
4212
4213 \end_inset
4214
4215
4216 \emph on
4217
4218 \begin_inset space \hfill{}
4219 \end_inset
4220
4221
4222 \begin_inset Flex Code
4223 status collapsed
4224
4225 \begin_layout Plain Layout
4226 include
4227 \end_layout
4228
4229 \end_inset
4230
4231  another file
4232 \end_layout
4233
4234 \begin_layout Itemize
4235 \begin_inset Flex Code
4236 status collapsed
4237
4238 \begin_layout Plain Layout
4239
4240 \backslash
4241 kprog program
4242 \end_layout
4243
4244 \end_inset
4245
4246
4247 \emph on
4248
4249 \begin_inset space \hfill{}
4250 \end_inset
4251
4252
4253 \begin_inset Flex Code
4254 status collapsed
4255
4256 \begin_layout Plain Layout
4257 define
4258 \end_layout
4259
4260 \end_inset
4261
4262  an external keymap translation program 
4263 \end_layout
4264
4265 \begin_layout Standard
4266 Also, it should look into 
4267 \begin_inset Flex Code
4268 status collapsed
4269
4270 \begin_layout Plain Layout
4271 lyxrc
4272 \end_layout
4273
4274 \end_inset
4275
4276  file for defaults, too (for example, a 
4277 \begin_inset Flex Code
4278 status collapsed
4279
4280 \begin_layout Plain Layout
4281
4282 \backslash
4283 kinclude
4284 \end_layout
4285
4286 \end_inset
4287
4288  option to include default keyboard).
4289 \end_layout
4290
4291 \end_inset
4292
4293
4294 \end_layout
4295
4296 \begin_layout Section
4297 International Keymap Stuff
4298 \begin_inset CommandInset label
4299 LatexCommand label
4300 name "sec:International-Keymap-Stuff"
4301
4302 \end_inset
4303
4304
4305 \end_layout
4306
4307 \begin_layout Standard
4308 \begin_inset Note Note
4309 status open
4310
4311 \begin_layout Plain Layout
4312 In doing the revisions on this document in March 2008, I did not look over
4313  this stuff, as I do not understand it.
4314  It would be good if someone else could do so.
4315  (RH)
4316 \end_layout
4317
4318 \end_inset
4319
4320
4321 \end_layout
4322
4323 \begin_layout Standard
4324 The next two sections describe the 
4325 \begin_inset Flex Code
4326 status collapsed
4327
4328 \begin_layout Plain Layout
4329
4330 \shape up
4331 .kmap
4332 \end_layout
4333
4334 \end_inset
4335
4336  and 
4337 \begin_inset Flex Code
4338 status collapsed
4339
4340 \begin_layout Plain Layout
4341
4342 \shape up
4343 .cdef
4344 \end_layout
4345
4346 \end_inset
4347
4348  file syntax in detail.
4349  These sections should help you design your own key map if the ones provided
4350  do not meet your needs.
4351 \end_layout
4352
4353 \begin_layout Subsection
4354 The .kmap File
4355 \end_layout
4356
4357 \begin_layout Standard
4358
4359 \shape up
4360 .
4361 \begin_inset Flex Code
4362 status collapsed
4363
4364 \begin_layout Plain Layout
4365 kmap
4366 \end_layout
4367
4368 \end_inset
4369
4370  file maps keystrokes to characters or strings.
4371  As the name suggests, it sets a keyboard mapping.
4372  The 
4373 \begin_inset Flex Code
4374 status collapsed
4375
4376 \begin_layout Plain Layout
4377 .kmap
4378 \end_layout
4379
4380 \end_inset
4381
4382
4383 \shape default
4384  file keywords 
4385 \shape up
4386
4387 \begin_inset Flex Code
4388 status collapsed
4389
4390 \begin_layout Plain Layout
4391
4392 \shape up
4393 kmap
4394 \end_layout
4395
4396 \end_inset
4397
4398
4399 \shape default
4400 ,
4401 \shape up
4402  
4403 \shape default
4404
4405 \begin_inset Flex Code
4406 status collapsed
4407
4408 \begin_layout Plain Layout
4409
4410 \shape up
4411 kmod
4412 \end_layout
4413
4414 \end_inset
4415
4416 ,
4417 \shape up
4418  
4419 \shape default
4420
4421 \begin_inset Flex Code
4422 status collapsed
4423
4424 \begin_layout Plain Layout
4425
4426 \shape up
4427 kxmod
4428 \end_layout
4429
4430 \end_inset
4431
4432 , and 
4433 \begin_inset Flex Code
4434 status collapsed
4435
4436 \begin_layout Plain Layout
4437
4438 \shape up
4439 kcomb
4440 \end_layout
4441
4442 \end_inset
4443
4444  are described in this section.
4445 \end_layout
4446
4447 \begin_layout Labeling
4448 \labelwidthstring 00.00.0000
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453
4454 \shape up
4455 kmap
4456 \end_layout
4457
4458 \end_inset
4459
4460  Map a character to a string
4461 \end_layout
4462
4463 \begin_layout LyX-Code
4464
4465 \backslash
4466 kmap 
4467 \family roman
4468 \emph on
4469 char
4470 \family default
4471 \emph default
4472  
4473 \family roman
4474 \emph on
4475 string
4476 \end_layout
4477
4478 \begin_layout Standard
4479 This will ma
4480 \family roman
4481 p
4482 \family default
4483  
4484 \family roman
4485 \emph on
4486 char
4487 \family default
4488 \emph default
4489  
4490 \family roman
4491 to
4492 \family default
4493  
4494 \family roman
4495 \emph on
4496 string
4497 \emph default
4498 .
4499  Note that in
4500 \family default
4501  
4502 \family roman
4503 \emph on
4504 string
4505 \emph default
4506 ,
4507 \family default
4508  
4509 \family roman
4510 \shape up
4511 the double-quote (")
4512 \family default
4513 \shape default
4514  
4515 \family roman
4516 and
4517 \family default
4518  
4519 \family roman
4520 \shape up
4521 the backslash (
4522 \backslash
4523 )
4524 \family default
4525 \shape default
4526  
4527 \family roman
4528 must be escaped with a preceding backslash (
4529 \shape up
4530
4531 \backslash
4532
4533 \shape default
4534 )
4535 \family default
4536 .
4537 \end_layout
4538
4539 \begin_layout Standard
4540 An example of a 
4541 \begin_inset Flex Noun
4542 status collapsed
4543
4544 \begin_layout Plain Layout
4545
4546 \shape up
4547 kmap
4548 \end_layout
4549
4550 \end_inset
4551
4552  statement to cause the symbol 
4553 \begin_inset Flex Noun
4554 status collapsed
4555
4556 \begin_layout Plain Layout
4557
4558 \shape up
4559 /
4560 \end_layout
4561
4562 \end_inset
4563
4564  to be output for the keystroke 
4565 \begin_inset Flex Noun
4566 status collapsed
4567
4568 \begin_layout Plain Layout
4569
4570 \shape up
4571 &
4572 \end_layout
4573
4574 \end_inset
4575
4576  is:
4577 \end_layout
4578
4579 \begin_layout LyX-Code
4580
4581 \backslash
4582 kmap & /
4583 \end_layout
4584
4585 \begin_layout Labeling
4586 \labelwidthstring 00.00.0000
4587 \begin_inset Flex Code
4588 status collapsed
4589
4590 \begin_layout Plain Layout
4591
4592 \shape up
4593 kmod
4594 \end_layout
4595
4596 \end_inset
4597
4598  Specify an accent character
4599 \end_layout
4600
4601 \begin_layout LyX-Code
4602
4603 \backslash
4604 kmod 
4605 \family roman
4606 \emph on
4607 char accent allowed
4608 \end_layout
4609
4610 \begin_layout Standard
4611 This will make the cha
4612 \family roman
4613 racter
4614 \family default
4615  
4616 \family roman
4617 \emph on
4618 char
4619 \family default
4620 \emph default
4621  
4622 \family roman
4623 \shape up
4624 \emph on
4625 be an accent
4626 \family default
4627 \shape default
4628 \emph default
4629  
4630 \family roman
4631 \shape up
4632 on the
4633 \family default
4634 \shape default
4635  
4636 \family roman
4637 \shape up
4638 \emph on
4639 allowed
4640 \family default
4641 \shape default
4642 \emph default
4643  
4644 \family roman
4645 \shape up
4646 cha
4647 \family default
4648 racter(s).
4649  This is the dead key
4650 \begin_inset Foot
4651 status collapsed
4652
4653 \begin_layout Plain Layout
4654 The term 
4655 \family roman
4656 \emph on
4657 dead key
4658 \family default
4659 \emph default
4660  refers to a key that does not produce a character by itself, but when followed
4661  with another key, produces the desired accent character.
4662  For example, a German characte
4663 \family roman
4664 r with an umlaut like
4665 \family default
4666  
4667 \family roman
4668 \emph on
4669 ä
4670 \family default
4671 \emph default
4672  
4673 \family roman
4674 can be produced in this manner.
4675 \end_layout
4676
4677 \end_inset
4678
4679  mechanism.
4680  
4681 \end_layout
4682
4683 \begin_layout Standard
4684 If you 
4685 \family roman
4686 hit
4687 \family default
4688  
4689 \family roman
4690 \emph on
4691 char
4692 \family default
4693 \emph default
4694  
4695 \family roman
4696 and then another key not in
4697 \family default
4698  
4699 \family roman
4700 \emph on
4701 allowed
4702 \emph default
4703 , you will get a
4704 \family default
4705  
4706 \family roman
4707 \emph on
4708 char
4709 \family default
4710 \emph default
4711  
4712 \family roman
4713 followed by the other, not allowed key, as output.
4714
4715 \family default
4716  Note that a 
4717 \begin_inset Flex Noun
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721
4722 \shape up
4723 Backspace
4724 \end_layout
4725
4726 \end_inset
4727
4728  cancels a dead key, so if 
4729 \family roman
4730 you hit
4731 \family default
4732  
4733 \family roman
4734 \emph on
4735 char
4736 \family default
4737 \emph default
4738  
4739 \begin_inset Flex Noun
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743
4744 \shape up
4745 \emph on
4746 Backspace
4747 \end_layout
4748
4749 \end_inset
4750
4751 , the cursor will not go one position backwards but will instead cancel
4752  the effect t
4753 \family roman
4754 hat
4755 \family default
4756  
4757 \family roman
4758 \shape up
4759 \emph on
4760 char
4761 \family default
4762 \shape default
4763 \emph default
4764  
4765 \family roman
4766 \shape up
4767 might have had on the next keystroke.
4768  
4769 \end_layout
4770
4771 \begin_layout Standard
4772 The following example specifies that the character ' is to be an acute accent,
4773  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4774 \end_layout
4775
4776 \begin_layout LyX-Code
4777
4778 \backslash
4779 kmod ' acute aeiouAEIOU
4780 \end_layout
4781
4782 \begin_layout Labeling
4783 \labelwidthstring 00.00.0000
4784 \begin_inset Flex Code
4785 status collapsed
4786
4787 \begin_layout Plain Layout
4788 kxmod
4789 \end_layout
4790
4791 \end_inset
4792
4793  Specify an exception to the accent character
4794 \end_layout
4795
4796 \begin_layout LyX-Code
4797
4798 \backslash
4799 kxmod  
4800 \family roman
4801 \emph on
4802 accent char result
4803 \end_layout
4804
4805 \begin_layout Standard
4806 This defines an exce
4807 \family roman
4808 ption for
4809 \family default
4810  
4811 \family roman
4812 \emph on
4813 accent
4814 \family default
4815 \emph default
4816  
4817 \family roman
4818 on
4819 \family default
4820  
4821 \family roman
4822 \emph on
4823 char
4824 \emph default
4825 .
4826  T
4827 \shape up
4828 he
4829 \family default
4830 \shape default
4831  
4832 \family roman
4833 \shape up
4834 \emph on
4835 accent
4836 \family default
4837 \shape default
4838 \emph default
4839  
4840 \family roman
4841 \shape up
4842 must
4843 \family default
4844 \shape default
4845  
4846 \shape up
4847 have been assigned a keystroke with a previous
4848 \shape default
4849  
4850 \begin_inset Flex Code
4851 status collapsed
4852
4853 \begin_layout Plain Layout
4854
4855 \shape up
4856
4857 \backslash
4858 kmo
4859 \shape default
4860 d
4861 \end_layout
4862
4863 \end_inset
4864
4865  declar
4866 \family roman
4867 ation and
4868 \family default
4869  
4870 \family roman
4871 \emph on
4872 char
4873 \family default
4874 \emph default
4875  
4876 \family roman
4877 must not belong in the
4878 \family default
4879  
4880 \family roman
4881 \emph on
4882 allowed
4883 \family default
4884 \emph default
4885  
4886 \family roman
4887 set of
4888 \family default
4889  
4890 \family roman
4891 \emph on
4892 accent
4893 \emph default
4894 .
4895  When
4896 \family default
4897  
4898 \family roman
4899 \shape up
4900 you enter the
4901 \family default
4902 \shape default
4903  
4904 \family roman
4905 \shape up
4906 \emph on
4907 accent char
4908 \family default
4909 \shape default
4910 \emph default
4911  
4912 \family roman
4913 \shape up
4914 sequence,
4915 \family default
4916 \shape default
4917  
4918 \family roman
4919 \shape up
4920 \emph on
4921 result
4922 \emph default
4923  is produced.
4924  If such a declaration does not exist in
4925 \family default
4926 \shape default
4927  
4928 \shape up
4929 the
4930 \shape default
4931  
4932 \begin_inset Flex Code
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936
4937 \shape up
4938 .kmap
4939 \end_layout
4940
4941 \end_inset
4942
4943  file and yo
4944 \family roman
4945 u enter
4946 \family default
4947  
4948 \family roman
4949 \emph on
4950 accent char
4951 \emph default
4952 , you get
4953 \family default
4954  
4955 \family roman
4956 \emph on
4957 accent_key char
4958 \emph default
4959  where
4960 \family default
4961  
4962 \family roman
4963 \emph on
4964 accent_key
4965 \emph default
4966  is the first arg
4967 \family default
4968 ument of the 
4969 \begin_inset Flex Code
4970 status collapsed
4971
4972 \begin_layout Plain Layout
4973
4974 \shape up
4975
4976 \backslash
4977 kmod
4978 \end_layout
4979
4980 \end_inset
4981
4982  declaration.
4983  
4984 \end_layout
4985
4986 \begin_layout Standard
4987 The following command produces causes äi to be produced when you enter acute-i
4988  ('i):
4989 \end_layout
4990
4991 \begin_layout LyX-Code
4992
4993 \backslash
4994 kxmod acute i "
4995 \backslash
4996
4997 \backslash
4998 '{
4999 \backslash
5000
5001 \backslash
5002 i}"
5003 \end_layout
5004
5005 \begin_layout Labeling
5006 \labelwidthstring 00.00.0000
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011 kcomb
5012 \end_layout
5013
5014 \end_inset
5015
5016  Combine two accent characters
5017 \end_layout
5018
5019 \begin_layout LyX-Code
5020
5021 \backslash
5022 kcomb 
5023 \family roman
5024 \emph on
5025 accent1 accent2 allowed
5026 \end_layout
5027
5028 \begin_layout Standard
5029 This one is getting pretty esoteric.
5030  It allows you to combine the effect 
5031 \family roman
5032 of
5033 \family default
5034  
5035 \family roman
5036 \emph on
5037 accent1
5038 \family default
5039 \emph default
5040  
5041 \family roman
5042 and
5043 \family default
5044  
5045 \family roman
5046 \emph on
5047 accent2
5048 \family default
5049 \emph default
5050  
5051 \family roman
5052 (in that order!) on
5053 \family default
5054  
5055 \family roman
5056 \emph on
5057 allowed
5058 \family default
5059 \emph default
5060  
5061 \family roman
5062 chars.
5063  The keystrokes for
5064 \family default
5065  
5066 \family roman
5067 \emph on
5068 accent1
5069 \family default
5070 \emph default
5071  
5072 \family roman
5073 and
5074 \family default
5075  
5076 \family roman
5077 \emph on
5078 accent2
5079 \family default
5080 \emph default
5081  
5082 \family roman
5083 must have be
5084 \family default
5085 en set with a 
5086 \begin_inset Flex Code
5087 status collapsed
5088
5089 \begin_layout Plain Layout
5090
5091 \shape up
5092
5093 \backslash
5094 kmod
5095 \end_layout
5096
5097 \end_inset
5098
5099  command at 
5100 \family roman
5101 a
5102 \family default
5103  
5104 \family roman
5105 \emph on
5106 previous
5107 \family default
5108 \emph default
5109  
5110 \family roman
5111 point in the
5112 \family default
5113  file.
5114  
5115 \end_layout
5116
5117 \begin_layout Standard
5118 Consider this example from the 
5119 \begin_inset Flex Code
5120 status collapsed
5121
5122 \begin_layout Plain Layout
5123
5124 \shape up
5125 greek.kmap
5126 \end_layout
5127
5128 \end_inset
5129
5130  file:
5131 \end_layout
5132
5133 \begin_layout LyX-Code
5134
5135 \backslash
5136 kmod ; acute aeioyvhAEIOYVH 
5137 \backslash
5138 kmod : umlaut iyIY 
5139 \backslash
5140 kcomb acute umlaut iyIY
5141 \end_layout
5142
5143 \begin_layout Standard
5144 This allows you to press 
5145 \begin_inset Flex Noun
5146 status collapsed
5147
5148 \begin_layout Plain Layout
5149
5150 \shape up
5151 ;:i
5152 \end_layout
5153
5154 \end_inset
5155
5156  and get the effect of 
5157 \begin_inset Flex Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161
5162 \shape up
5163
5164 \backslash
5165 '{
5166 \backslash
5167 "{i}}
5168 \end_layout
5169
5170 \end_inset
5171
5172 .
5173  
5174 \family roman
5175 \shape up
5176 A backspace
5177 \family default
5178 \shape default
5179  in this case cancels the last dead key, so if you press 
5180 \begin_inset Flex Noun
5181 status collapsed
5182
5183 \begin_layout Plain Layout
5184
5185 \shape up
5186 ;: Backspace i
5187 \end_layout
5188
5189 \end_inset
5190
5191  you get 
5192 \begin_inset Flex Code
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196
5197 \shape up
5198
5199 \backslash
5200 '{i}
5201 \end_layout
5202
5203 \end_inset
5204
5205 .
5206 \end_layout
5207
5208 \begin_layout Subsection
5209 The .cdef File
5210 \end_layout
5211
5212 \begin_layout Standard
5213 After the 
5214 \begin_inset Flex Code
5215 status collapsed
5216
5217 \begin_layout Plain Layout
5218
5219 \shape up
5220 .kmap
5221 \end_layout
5222
5223 \end_inset
5224
5225  mapping is performed, a 
5226 \begin_inset Flex Code
5227 status collapsed
5228
5229 \begin_layout Plain Layout
5230
5231 \shape up
5232 .cde
5233 \shape default
5234 f
5235 \end_layout
5236
5237 \end_inset
5238
5239  file maps the strings that the symbols generate to characters in the current
5240  font.
5241  The \SpecialChar LyX
5242  distribution currently includes at least the 
5243 \begin_inset Flex Code
5244 status collapsed
5245
5246 \begin_layout Plain Layout
5247
5248 \shape up
5249 iso8859-1.cdef
5250 \end_layout
5251
5252 \end_inset
5253
5254  and 
5255 \begin_inset Flex Code
5256 status collapsed
5257
5258 \begin_layout Plain Layout
5259
5260 \shape up
5261 iso8859-2.cdef
5262 \end_layout
5263
5264 \end_inset
5265
5266  files.
5267 \end_layout
5268
5269 \begin_layout Standard
5270 In general the 
5271 \begin_inset Flex Code
5272 status collapsed
5273
5274 \begin_layout Plain Layout
5275
5276 \shape up
5277 .cdef
5278 \end_layout
5279
5280 \end_inset
5281
5282  file is a sequence of declarations of the form
5283 \end_layout
5284
5285 \begin_layout LyX-Code
5286
5287 \family roman
5288 \emph on
5289 char_index_in_set
5290 \family default
5291 \emph default
5292  
5293 \family roman
5294 \emph on
5295  string
5296 \end_layout
5297
5298 \begin_layout Standard
5299 For example, in order to map 
5300 \begin_inset Flex Noun
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304
5305 \shape up
5306
5307 \backslash
5308 '{e}
5309 \end_layout
5310
5311 \end_inset
5312
5313  to the corresponding character in the iso-8859-1 set (233), the following
5314  declaration is used
5315 \end_layout
5316
5317 \begin_layout LyX-Code
5318 233 "
5319 \backslash
5320
5321 \backslash
5322 '{e}"
5323 \end_layout
5324
5325 \begin_layout Standard
5326 with 
5327 \begin_inset Flex Code
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331
5332 \backslash
5333
5334 \end_layout
5335
5336 \end_inset
5337
5338  and 
5339 \begin_inset Flex Code
5340 status collapsed
5341
5342 \begin_layout Plain Layout
5343 "
5344 \end_layout
5345
5346 \end_inset
5347
5348  being escap
5349 \family roman
5350 ed in
5351 \family default
5352  
5353 \family roman
5354 \emph on
5355 string
5356 \emph default
5357 .
5358  Note that
5359 \family default
5360  the same character can apply to more than one string.
5361  In the 
5362 \begin_inset Flex Code
5363 status collapsed
5364
5365 \begin_layout Plain Layout
5366 i
5367 \shape up
5368 so-8859-7.cdef
5369 \end_layout
5370
5371 \end_inset
5372
5373  file you have
5374 \end_layout
5375
5376 \begin_layout LyX-Code
5377 192 "
5378 \backslash
5379
5380 \backslash
5381 '{
5382 \backslash
5383
5384 \backslash
5385
5386 \backslash
5387 "{i}}"
5388 \begin_inset Newline newline
5389 \end_inset
5390
5391 192 "
5392 \backslash
5393
5394 \backslash
5395
5396 \backslash
5397 "{
5398 \backslash
5399
5400 \backslash
5401 '{i}}"
5402 \end_layout
5403
5404 \begin_layout Standard
5405 If \SpecialChar LyX
5406  cannot find a mapping for the string produced by the keystroke or a
5407  deadkey sequence, it will check if it looks like an accented char and try
5408  to draw an accent over the character on screen.
5409 \end_layout
5410
5411 \begin_layout Subsection
5412 Dead Keys
5413 \end_layout
5414
5415 \begin_layout Standard
5416 There is a second way to add support for international characters through
5417  so-called dead-keys.
5418  A dead-key works in combination with a letter to produce an accented character.
5419  Here, we'll explain how to create a really simple dead-key to illustrate
5420  how they work.
5421 \end_layout
5422
5423 \begin_layout Standard
5424 Suppose you happen to need the circumflex character, 
5425 \begin_inset Quotes eld
5426 \end_inset
5427
5428  ̂
5429 \begin_inset Quotes erd
5430 \end_inset
5431
5432 .
5433  You could bind the 
5434 \begin_inset Flex Noun
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438 ^
5439 \end_layout
5440
5441 \end_inset
5442
5443 -key [a.k.a.
5444 \begin_inset space ~
5445 \end_inset
5446
5447
5448 \begin_inset Flex Noun
5449 status collapsed
5450
5451 \begin_layout Plain Layout
5452 Shift-6
5453 \end_layout
5454
5455 \end_inset
5456
5457 ] to the \SpecialChar LyX
5458  command 
5459 \begin_inset Flex Code
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463 accent-circumflex
5464 \end_layout
5465
5466 \end_inset
5467
5468  in your 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 lyxrc
5474 \end_layout
5475
5476 \end_inset
5477
5478  file.
5479  Now, whenever you type the 
5480 \begin_inset Flex Noun
5481 status collapsed
5482
5483 \begin_layout Plain Layout
5484 ^
5485 \end_layout
5486
5487 \end_inset
5488
5489 -key followed by a letter, that letter will have a circumflex accent on
5490  it.
5491  For example, the sequence 
5492 \begin_inset Quotes eld
5493 \end_inset
5494
5495
5496 \begin_inset Flex Noun
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500 ^e
5501 \end_layout
5502
5503 \end_inset
5504
5505
5506 \begin_inset Quotes erd
5507 \end_inset
5508
5509  produces the letter: 
5510 \begin_inset Quotes eld
5511 \end_inset
5512
5513 ê
5514 \begin_inset Quotes erd
5515 \end_inset
5516
5517 .
5518  If you tried to type 
5519 \begin_inset Quotes eld
5520 \end_inset
5521
5522
5523 \begin_inset Flex Noun
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527 ^t
5528 \end_layout
5529
5530 \end_inset
5531
5532
5533 \begin_inset Quotes erd
5534 \end_inset
5535
5536 , however, \SpecialChar LyX
5537  will complain with a beep, since a 
5538 \begin_inset Quotes eld
5539 \end_inset
5540
5541
5542 \begin_inset Flex Noun
5543 status collapsed
5544
5545 \begin_layout Plain Layout
5546 t
5547 \end_layout
5548
5549 \end_inset
5550
5551
5552 \begin_inset Quotes erd
5553 \end_inset
5554
5555  never takes a circumflex accent.
5556  Hitting 
5557 \begin_inset Flex Noun
5558 status collapsed
5559
5560 \begin_layout Plain Layout
5561 Space
5562 \end_layout
5563
5564 \end_inset
5565
5566  after a dead-key produces the bare-accent.
5567  Please note this last point! If you bind a key to a dead-key, you'll need
5568  to rebind the character on that key to yet another key.
5569  Binding the 
5570 \begin_inset Flex Noun
5571 status collapsed
5572
5573 \begin_layout Plain Layout
5574 ,-key
5575 \end_layout
5576
5577 \end_inset
5578
5579  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5580 \end_layout
5581
5582 \begin_layout Standard
5583 One common way to bind dead-keys is to use 
5584 \begin_inset Flex Noun
5585 status collapsed
5586
5587 \begin_layout Plain Layout
5588 Meta-
5589 \end_layout
5590
5591 \end_inset
5592
5593
5594 \begin_inset Flex Noun
5595 status collapsed
5596
5597 \begin_layout Plain Layout
5598 Ctrl-
5599 \end_layout
5600
5601 \end_inset
5602
5603 , and 
5604 \begin_inset Flex Noun
5605 status collapsed
5606
5607 \begin_layout Plain Layout
5608 Shift-
5609 \end_layout
5610
5611 \end_inset
5612
5613  in combination with an accent, like 
5614 \begin_inset Quotes eld
5615 \end_inset
5616
5617
5618 \begin_inset Flex Noun
5619 status collapsed
5620
5621 \begin_layout Plain Layout
5622 ~
5623 \end_layout
5624
5625 \end_inset
5626
5627
5628 \begin_inset Quotes erd
5629 \end_inset
5630
5631  or 
5632 \begin_inset Quotes eld
5633 \end_inset
5634
5635
5636 \begin_inset Flex Noun
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 ,
5641 \end_layout
5642
5643 \end_inset
5644
5645
5646 \begin_inset Quotes erd
5647 \end_inset
5648
5649  or 
5650 \begin_inset Quotes eld
5651 \end_inset
5652
5653
5654 \begin_inset Flex Noun
5655 status collapsed
5656
5657 \begin_layout Plain Layout
5658 ^
5659 \end_layout
5660
5661 \end_inset
5662
5663
5664 \begin_inset Quotes erd
5665 \end_inset
5666
5667 .
5668  Another way involves using 
5669 \begin_inset Flex Code
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673 xmodmap
5674 \end_layout
5675
5676 \end_inset
5677
5678  and 
5679 \begin_inset Flex Code
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 xkeycaps
5684 \end_layout
5685
5686 \end_inset
5687
5688  to set up the special 
5689 \begin_inset Flex Code
5690 status collapsed
5691
5692 \begin_layout Plain Layout
5693 Mode_Switch
5694 \end_layout
5695
5696 \end_inset
5697
5698  key.
5699  The 
5700 \begin_inset Flex Code
5701 status collapsed
5702
5703 \begin_layout Plain Layout
5704 Mode_Switch
5705 \end_layout
5706
5707 \end_inset
5708
5709  acts in some ways just like 
5710 \begin_inset Flex Noun
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714 Shift
5715 \end_layout
5716
5717 \end_inset
5718
5719  and permits you to bind keys to accented characters.
5720  You can also turn keys into dead-keys by binding them to something like
5721  
5722 \begin_inset Flex Code
5723 status collapsed
5724
5725 \begin_layout Plain Layout
5726 usldead_cedilla
5727 \end_layout
5728
5729 \end_inset
5730
5731  and then binding this symbolic key to the corresponding \SpecialChar LyX
5732  command.
5733 \begin_inset Foot
5734 status collapsed
5735
5736 \begin_layout Plain Layout
5737 Note from 
5738 \noun on
5739 John Weiss
5740 \noun default
5741 : This is exactly what I do in my 
5742 \begin_inset Flex Code
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746 ~/.lyx/lyxrc
5747 \end_layout
5748
5749 \end_inset
5750
5751  and my 
5752 \begin_inset Flex Code
5753 status collapsed
5754
5755 \begin_layout Plain Layout
5756 ~/.xmodmap
5757 \end_layout
5758
5759 \end_inset
5760
5761  files.
5762  I have my 
5763 \begin_inset Flex Noun
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 Scroll
5768 \begin_inset space ~
5769 \end_inset
5770
5771 Lock
5772 \end_layout
5773
5774 \end_inset
5775
5776  key set up as 
5777 \begin_inset Flex Code
5778 status collapsed
5779
5780 \begin_layout Plain Layout
5781 Mode_Shift
5782 \end_layout
5783
5784 \end_inset
5785
5786  and a bunch of these 
5787 \begin_inset Quotes eld
5788 \end_inset
5789
5790
5791 \begin_inset Flex Code
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795 usldead_*
5796 \end_layout
5797
5798 \end_inset
5799
5800
5801 \begin_inset Quotes erd
5802 \end_inset
5803
5804  symbolic keys bound such things as 
5805 \begin_inset Flex Noun
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 Scroll
5810 \begin_inset space ~
5811 \end_inset
5812
5813 Lock-^
5814 \end_layout
5815
5816 \end_inset
5817
5818  and 
5819 \begin_inset Flex Noun
5820 status collapsed
5821
5822 \begin_layout Plain Layout
5823 Scroll
5824 \begin_inset space ~
5825 \end_inset
5826
5827 Lock-~
5828 \end_layout
5829
5830 \end_inset
5831
5832 .
5833  This is how I produce my accented characters.
5834 \end_layout
5835
5836 \end_inset
5837
5838  You can make just about anything into the 
5839 \begin_inset Flex Code
5840 status collapsed
5841
5842 \begin_layout Plain Layout
5843 Mode_Switch
5844 \end_layout
5845
5846 \end_inset
5847
5848  key: One of the 
5849 \begin_inset Flex Noun
5850 status collapsed
5851
5852 \begin_layout Plain Layout
5853 Ctrl-
5854 \end_layout
5855
5856 \end_inset
5857
5858  keys, a spare function key, etc.
5859  As for the \SpecialChar LyX
5860  commands that produce accents, check the entry for 
5861 \begin_inset Flex Code
5862 status collapsed
5863
5864 \begin_layout Plain Layout
5865 accent-acute
5866 \end_layout
5867
5868 \end_inset
5869
5870  in the 
5871 \emph on
5872 Reference Manual
5873 \emph default
5874 .
5875  You'll find the complete list there.
5876 \end_layout
5877
5878 \begin_layout Subsection
5879 Saving your Language Configuration
5880 \end_layout
5881
5882 \begin_layout Standard
5883 You can edit your preferences so that your desired language environment
5884  is automatically configured when \SpecialChar LyX
5885  starts up, via the 
5886 \begin_inset Flex Noun
5887 status collapsed
5888
5889 \begin_layout Plain Layout
5890 Edit\SpecialChar menuseparator
5891 Preferences
5892 \end_layout
5893
5894 \end_inset
5895
5896  dialog.
5897 \end_layout
5898
5899 \begin_layout Chapter
5900 Installing New Document Classes, Layouts, and Templates
5901 \begin_inset CommandInset label
5902 LatexCommand label
5903 name "cha:Installing-New-Document"
5904
5905 \end_inset
5906
5907
5908 \begin_inset Argument 1
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 Installing New Document Classes
5913 \end_layout
5914
5915 \end_inset
5916
5917
5918 \end_layout
5919
5920 \begin_layout Standard
5921 In this chapter, we describe the procedures for creating and installing
5922  new \SpecialChar LyX
5923  layout and template files, as well as offer a refresher on correctly
5924  installing new \SpecialChar LaTeX
5925  document classes.
5926  
5927 \end_layout
5928
5929 \begin_layout Standard
5930 First, let us a say a few words about how one ought to think about the relation
5931  between \SpecialChar LyX
5932  and \SpecialChar LaTeX
5933 .
5934  The thing to understand is that, in a certain sense, \SpecialChar LyX
5935  doesn't know anything
5936  about \SpecialChar LaTeX
5937 .
5938  Indeed, from \SpecialChar LyX
5939 's point of view, \SpecialChar LaTeX
5940  is just one of several 
5941 \begin_inset Quotes eld
5942 \end_inset
5943
5944 backend formats
5945 \begin_inset Quotes erd
5946 \end_inset
5947
5948  in which it is capable of producing output.
5949  Other such formats are DocBook, plaintext, and XHTML.
5950  \SpecialChar LaTeX
5951  is, of course, a particularly important format, but very little of the
5952  information \SpecialChar LyX
5953  has about \SpecialChar LaTeX
5954  is actually contained in the program itself.
5955 \begin_inset Foot
5956 status collapsed
5957
5958 \begin_layout Plain Layout
5959 Some commands are sufficiently complex that they are 
5960 \begin_inset Quotes eld
5961 \end_inset
5962
5963 hardcoded
5964 \begin_inset Quotes erd
5965 \end_inset
5966
5967  into \SpecialChar LyX
5968 .
5969  But the developers generally regard this as a Bad Thing.
5970 \end_layout
5971
5972 \end_inset
5973
5974  Rather, that information, even for the standard classes like 
5975 \begin_inset Flex Code
5976 status collapsed
5977
5978 \begin_layout Plain Layout
5979 article.cls
5980 \end_layout
5981
5982 \end_inset
5983
5984 , is contained in `layout files'.
5985  Similarly, \SpecialChar LyX
5986  itself does not know much about DocBook or XHTML.
5987  What it knows is contained in layout files.
5988 \end_layout
5989
5990 \begin_layout Standard
5991 You can think of the layout file for a given document class as a translation
5992  manual between \SpecialChar LyX
5993  constructs—paragraphs with their corresponding styles,
5994  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5995 , DocBook, or XHTML
5996  constructs.
5997  Almost everything \SpecialChar LyX
5998  knows about 
5999 \begin_inset Flex Code
6000 status collapsed
6001
6002 \begin_layout Plain Layout
6003 article.cls
6004 \end_layout
6005
6006 \end_inset
6007
6008 , for example, is contained in the file 
6009 \begin_inset Flex Code
6010 status collapsed
6011
6012 \begin_layout Plain Layout
6013 article.layout
6014 \end_layout
6015
6016 \end_inset
6017
6018  and in various other files it includes.
6019  For this reason, anyone intending to write layout files should plan to
6020  study the existing files.
6021  A good place to start is with 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 stdsections.inc
6027 \end_layout
6028
6029 \end_inset
6030
6031 , which is included in 
6032 \begin_inset Flex Code
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 article.layout
6037 \end_layout
6038
6039 \end_inset
6040
6041
6042 \begin_inset Flex Code
6043 status collapsed
6044
6045 \begin_layout Plain Layout
6046 book.layout
6047 \end_layout
6048
6049 \end_inset
6050
6051 , and many of the other layout files for document classes.
6052  This file is where sections and the like are defined: 
6053 \begin_inset Flex Code
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 stdsections.inc
6058 \end_layout
6059
6060 \end_inset
6061
6062  tells \SpecialChar LyX
6063  how paragraphs that are marked with the Section, Subsection, etc,
6064  styles can be translated into corresponding \SpecialChar LaTeX
6065 , DocBook, and XHTML commands
6066  and tags.
6067  The 
6068 \begin_inset Flex Code
6069 status collapsed
6070
6071 \begin_layout Plain Layout
6072 article.layout
6073 \end_layout
6074
6075 \end_inset
6076
6077  file basically just includes several of these 
6078 \begin_inset Flex Code
6079 status collapsed
6080
6081 \begin_layout Plain Layout
6082 std*.inc
6083 \end_layout
6084
6085 \end_inset
6086
6087  files.
6088 \end_layout
6089
6090 \begin_layout Standard
6091 Defining the \SpecialChar LyX
6092 –\SpecialChar LaTeX
6093  correspondence is not the only thing layout files do, though.
6094  Their other job is to define how the \SpecialChar LyX
6095  constructs themselves will appear
6096  on-screen.
6097  The fact that layout files have these two jobs is often a source of confusion,
6098  because they are completely separate.
6099  Telling \SpecialChar LyX
6100  how to translate a certain paragraph style into \SpecialChar LaTeX
6101  does not tell
6102  \SpecialChar LyX
6103  how to display it; conversely, telling \SpecialChar LyX
6104  how to display a certain paragraph
6105  style does not tell \SpecialChar LyX
6106  how to translate it into \SpecialChar LaTeX
6107  (let alone tell \SpecialChar LaTeX
6108  how to
6109  display it).
6110  So, in general, when you define a new \SpecialChar LyX
6111  construct, you must always do two
6112  quite separate things: (i)
6113 \begin_inset space ~
6114 \end_inset
6115
6116 tell \SpecialChar LyX
6117  how to translate it into \SpecialChar LaTeX
6118  and (ii)
6119 \begin_inset space ~
6120 \end_inset
6121
6122 tell \SpecialChar LyX
6123  how to display it.
6124 \end_layout
6125
6126 \begin_layout Standard
6127 Much the same is true, of course, as regards \SpecialChar LyX
6128 's other backend formats, though
6129  XHTML is in some ways different, because in that case \SpecialChar LyX
6130  
6131 \emph on
6132 is
6133 \emph default
6134  able, to some extent, to use information about how it should display a
6135  paragraph on the screen to output information (in the form of CSS) about
6136  how the paragraph should be displayed in a browser.
6137  Even in this case, however, the distinction between what \SpecialChar LyX
6138  does internally
6139  and how things are rendered externally remains in force, and the two can
6140  be controlled separately.
6141  See 
6142 \begin_inset CommandInset ref
6143 LatexCommand ref
6144 reference "sec:Tags-for-XHTML"
6145
6146 \end_inset
6147
6148  for the details.
6149 \end_layout
6150
6151 \begin_layout Section
6152 Installing new \SpecialChar LaTeX
6153  files
6154 \end_layout
6155
6156 \begin_layout Standard
6157 Some installations may not include a \SpecialChar LaTeX
6158  package or class file that you would
6159  like to use within \SpecialChar LyX
6160 .
6161  For example, you might need Foil\SpecialChar TeX
6162 , a package for preparing slides for overhead
6163  projectors.
6164  Modern \SpecialChar LaTeX
6165  distributions like \SpecialChar TeX
6166 Live (2008 or newer) or MiK\SpecialChar TeX
6167  provide a user interface
6168  for installing such packages.
6169  For example, with MiK\SpecialChar TeX
6170 , you start the program 
6171 \begin_inset Quotes eld
6172 \end_inset
6173
6174 Package
6175 \begin_inset space ~
6176 \end_inset
6177
6178 Manager
6179 \begin_inset Quotes erd
6180 \end_inset
6181
6182  to get a list of available packages.
6183  To install one of them, right click on it or use the corresponding toolbar
6184  button.
6185 \end_layout
6186
6187 \begin_layout Standard
6188 If your \SpecialChar LaTeX
6189  distribution does not provide such a `package manager', or if the
6190  package is not available from your distribution, then follow these steps
6191  to install it manually:
6192 \end_layout
6193
6194 \begin_layout Enumerate
6195 Get the package from 
6196 \begin_inset CommandInset href
6197 LatexCommand href
6198 name "CTAN"
6199 target "http://www.ctan.org/"
6200 literal "false"
6201
6202 \end_inset
6203
6204  or wherever.
6205 \end_layout
6206
6207 \begin_layout Enumerate
6208 If the package contains a file with the ending 
6209 \begin_inset Quotes eld
6210 \end_inset
6211
6212
6213 \begin_inset Flex Code
6214 status collapsed
6215
6216 \begin_layout Plain Layout
6217 .ins
6218 \end_layout
6219
6220 \end_inset
6221
6222
6223 \begin_inset Quotes erd
6224 \end_inset
6225
6226  (is the case for Foil\SpecialChar TeX
6227 ) then open a console, change to the folder of this
6228  file and execute the command 
6229 \begin_inset Flex Code
6230 status collapsed
6231
6232 \begin_layout Plain Layout
6233 latex foiltex.ins
6234 \end_layout
6235
6236 \end_inset
6237
6238 .
6239  You have now unpacked the package and have all files to install it.
6240  Most \SpecialChar LaTeX
6241 -packages are not packed and you can skip this step.
6242 \end_layout
6243
6244 \begin_layout Enumerate
6245 Now you need to decide if the package should be available for all users
6246  or only for you.
6247 \end_layout
6248
6249 \begin_deeper
6250 \begin_layout Enumerate
6251 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6252  for all users on your system, then install it in your `local' \SpecialChar TeX
6253  tree, otherwise
6254  install it in your own `user' \SpecialChar TeX
6255  tree.
6256  Where these trees should be created, if they do not already exist, depends
6257  on your system.
6258  To find this out, look in the file 
6259 \begin_inset Flex Code
6260 status collapsed
6261
6262 \begin_layout Plain Layout
6263 texmf.cnf
6264 \end_layout
6265
6266 \end_inset
6267
6268 .
6269 \begin_inset Foot
6270 status collapsed
6271
6272 \begin_layout Plain Layout
6273 This is usually in the directory 
6274 \begin_inset Flex Code
6275 status collapsed
6276
6277 \begin_layout Plain Layout
6278 $TEXMF/web2c
6279 \end_layout
6280
6281 \end_inset
6282
6283 , though you can execute the command 
6284 \begin_inset Flex Code
6285 status collapsed
6286
6287 \begin_layout Plain Layout
6288 kpsewhich texmf.cnf
6289 \end_layout
6290
6291 \end_inset
6292
6293  to locate it.
6294 \end_layout
6295
6296 \end_inset
6297
6298  The location of the `local' \SpecialChar TeX
6299  tree is defined by the 
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 TEXMFLOCAL
6305 \end_layout
6306
6307 \end_inset
6308
6309  variable; this is usually somewhere like 
6310 \begin_inset Flex Code
6311 status collapsed
6312
6313 \begin_layout Plain Layout
6314 /usr/local/share/texmf
6315 \end_layout
6316
6317 \end_inset
6318
6319  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6320 Live
6321  distribution.
6322  The location of the `user' \SpecialChar TeX
6323  tree is defined by 
6324 \begin_inset Flex Code
6325 status collapsed
6326
6327 \begin_layout Plain Layout
6328 TEXMFHOME
6329 \end_layout
6330
6331 \end_inset
6332
6333  and is commonly 
6334 \begin_inset Flex Code
6335 status collapsed
6336
6337 \begin_layout Plain Layout
6338 $HOME/texmf
6339 \end_layout
6340
6341 \end_inset
6342
6343  or 
6344 \begin_inset Flex Code
6345 status collapsed
6346
6347 \begin_layout Plain Layout
6348
6349 \family sans
6350 $HOME/.texliveXXXX
6351 \end_layout
6352
6353 \end_inset
6354
6355 .
6356  (If these variables are not predefined, you have to define them.) You'll
6357  probably need root permissions to create or modify the `local' tree, but
6358  not for your `user' tree.
6359 \begin_inset Newline newline
6360 \end_inset
6361
6362 In general, it is recommended to install in the user tree because your user
6363  will not be modified or even overwritten when you upgrade your system.
6364  It will typically also be backed up together with everything else when
6365  you backup your home directory (which, of course, you do on a regular basis).
6366 \end_layout
6367
6368 \begin_layout Enumerate
6369 On Windows, if you want the new package to be available for all users on
6370  your system, change to the folder where \SpecialChar LaTeX
6371  is installed and then change to
6372  the subfolder 
6373 \begin_inset Flex Code
6374 status collapsed
6375
6376 \begin_layout Plain Layout
6377 ~
6378 \backslash
6379 tex
6380 \backslash
6381 latex
6382 \end_layout
6383
6384 \end_inset
6385
6386 .
6387  (For MiK\SpecialChar TeX
6388 , this would be by default the folder 
6389 \begin_inset Flex Code
6390 status collapsed
6391
6392 \begin_layout Plain Layout
6393 ~:
6394 \backslash
6395 Programs
6396 \backslash
6397 MiKTeX
6398 \backslash
6399 tex
6400 \backslash
6401 latex
6402 \end_layout
6403
6404 \end_inset
6405
6406 .)
6407 \begin_inset Foot
6408 status collapsed
6409
6410 \begin_layout Plain Layout
6411 Note that this will be the correct path only on English installations.
6412  On a German one, it would be 
6413 \begin_inset Flex Code
6414 status collapsed
6415
6416 \begin_layout Plain Layout
6417 ~:
6418 \backslash
6419 Programme
6420 \backslash
6421 MiKTeX
6422 \backslash
6423 tex
6424 \backslash
6425 latex
6426 \end_layout
6427
6428 \end_inset
6429
6430 , and similarly for other languages.
6431 \end_layout
6432
6433 \end_inset
6434
6435  Create there a new folder 
6436 \begin_inset Flex Code
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440 foiltex
6441 \end_layout
6442
6443 \end_inset
6444
6445  and copy all files of the package into it.
6446  
6447 \begin_inset Newline newline
6448 \end_inset
6449
6450 If the package should only available for you or you don't have admin permissions
6451 , do the same, but in the local \SpecialChar LaTeX
6452  folder.
6453  E.
6454 \begin_inset space \thinspace{}
6455 \end_inset
6456
6457 g., for MiK\SpecialChar TeX
6458
6459 \begin_inset space ~
6460 \end_inset
6461
6462 2.8 under Windows XP, this would be the folder:
6463 \begin_inset Newline newline
6464 \end_inset
6465
6466
6467 \family sans
6468
6469 \begin_inset Flex Code
6470 status collapsed
6471
6472 \begin_layout Plain Layout
6473 ~:
6474 \backslash
6475 Documents and Settings
6476 \backslash
6477 <username>
6478 \backslash
6479 Application Data
6480 \backslash
6481
6482 \end_layout
6483
6484 \end_inset
6485
6486
6487 \begin_inset Newline newline
6488 \end_inset
6489
6490
6491 \family default
6492
6493 \begin_inset Phantom HPhantom
6494 status open
6495
6496 \begin_layout Plain Layout
6497
6498 \family sans
6499 ~:
6500 \backslash
6501
6502 \end_layout
6503
6504 \end_inset
6505
6506
6507 \begin_inset Flex Code
6508 status collapsed
6509
6510 \begin_layout Plain Layout
6511 MiKTeX
6512 \backslash
6513 2.8
6514 \backslash
6515 tex
6516 \backslash
6517 latex
6518 \end_layout
6519
6520 \end_inset
6521
6522
6523 \begin_inset Newline newline
6524 \end_inset
6525
6526 On Vista, it would be:
6527 \begin_inset Newline newline
6528 \end_inset
6529
6530
6531 \begin_inset Flex Code
6532 status collapsed
6533
6534 \begin_layout Plain Layout
6535 ~:
6536 \backslash
6537 Users
6538 \backslash
6539 <username>
6540 \backslash
6541 AppData
6542 \backslash
6543 Roaming
6544 \backslash
6545 2.8
6546 \backslash
6547 MiKTeX
6548 \backslash
6549 tex
6550 \backslash
6551 latex
6552 \end_layout
6553
6554 \end_inset
6555
6556
6557 \end_layout
6558
6559 \end_deeper
6560 \begin_layout Enumerate
6561 Now one only need to tell \SpecialChar LaTeX
6562  that there are new files.
6563  This depends on the used \SpecialChar LaTeX
6564 -Distribution:
6565 \end_layout
6566
6567 \begin_deeper
6568 \begin_layout Enumerate
6569 For \SpecialChar TeX
6570 Live execute the command 
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 texhash
6576 \end_layout
6577
6578 \end_inset
6579
6580  from a console.
6581  If you installed the package for all users, then you will probably need
6582  to have root permissions for that.
6583 \end_layout
6584
6585 \begin_layout Enumerate
6586 For MiK\SpecialChar TeX
6587 , if you have installed the package for all users, start the program
6588  
6589 \begin_inset Quotes eld
6590 \end_inset
6591
6592 Settings
6593 \begin_inset space ~
6594 \end_inset
6595
6596 (Admin)
6597 \begin_inset Quotes erd
6598 \end_inset
6599
6600  and press the button marked 
6601 \begin_inset Quotes eld
6602 \end_inset
6603
6604 Refresh FNDB
6605 \begin_inset Quotes erd
6606 \end_inset
6607
6608 .
6609  Otherwise start the program 
6610 \begin_inset Quotes eld
6611 \end_inset
6612
6613 Settings
6614 \begin_inset Quotes erd
6615 \end_inset
6616
6617  and do the same.
6618 \end_layout
6619
6620 \end_deeper
6621 \begin_layout Enumerate
6622 Finally, you need to tell \SpecialChar LyX
6623  that there are new packages available.
6624  So, in \SpecialChar LyX
6625 , use the menu 
6626 \begin_inset Flex Noun
6627 status collapsed
6628
6629 \begin_layout Plain Layout
6630 Tools
6631 \family sans
6632 \SpecialChar menuseparator
6633 Reconfigure
6634 \end_layout
6635
6636 \end_inset
6637
6638  and then restart \SpecialChar LyX
6639 .
6640 \end_layout
6641
6642 \begin_layout Standard
6643 Now the package is installed.
6644  In our example, the document class 
6645 \begin_inset Flex Code
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649 FoilTex
6650 \end_layout
6651
6652 \end_inset
6653
6654  will now be available under 
6655 \begin_inset Flex Noun
6656 status collapsed
6657
6658 \begin_layout Plain Layout
6659 Document\SpecialChar menuseparator
6660 Settings\SpecialChar menuseparator
6661 Document Class
6662 \end_layout
6663
6664 \end_inset
6665
6666  (in the 
6667 \begin_inset Quotes eld
6668 \end_inset
6669
6670 Presentations
6671 \begin_inset Quotes erd
6672 \end_inset
6673
6674  category).
6675  
6676 \end_layout
6677
6678 \begin_layout Standard
6679 If you would like to use a \SpecialChar LaTeX
6680  document class that is not even listed in the
6681  menu 
6682 \begin_inset Flex Noun
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 Document\SpecialChar menuseparator
6687 Settings\SpecialChar menuseparator
6688 Document Class
6689 \end_layout
6690
6691 \end_inset
6692
6693 , then you need to create a `layout' file for it.
6694  That is the topic of the next section.
6695 \end_layout
6696
6697 \begin_layout Section
6698 Types of layout files
6699 \end_layout
6700
6701 \begin_layout Standard
6702 This section describes the various sorts of \SpecialChar LyX
6703  files that contain layout informati
6704 on.
6705  These files describe various paragraph and character styles, determining
6706  how \SpecialChar LyX
6707  should display them and how they should be translated into \SpecialChar LaTeX
6708 , DocBook,
6709  XHTML, or whatever output format is being used.
6710  
6711 \end_layout
6712
6713 \begin_layout Standard
6714 We shall try to provide a thorough description of the process of writing
6715  layout files here.
6716  However, there are so many different types of documents supported even
6717  by just \SpecialChar LaTeX
6718  that we can't hope to cover every different possibility or problem
6719  you might encounter.
6720  The \SpecialChar LyX
6721  users' list is frequented by people with lots of experience with layout
6722  design who are willing to share what they've learned, so please feel free
6723  to ask questions there.
6724 \end_layout
6725
6726 \begin_layout Standard
6727 As you prepare to write a new layout, it is extremely helpful to look at
6728  the layouts distributed with \SpecialChar LyX
6729 .
6730  If you write a \SpecialChar LyX
6731  layout for a \SpecialChar LaTeX
6732  document class that might also be used by
6733  others, or write a module that might be useful to others, then you should
6734  consider posting your layout to the 
6735 \begin_inset CommandInset href
6736 LatexCommand href
6737 name "layout section on the LyX wiki"
6738 target "https://wiki.lyx.org/Layouts/Layouts"
6739 literal "false"
6740
6741 \end_inset
6742
6743  or even to the \SpecialChar LyX
6744  developers' list, so that it might be included in \SpecialChar LyX
6745  itself.
6746 \begin_inset Foot
6747 status collapsed
6748
6749 \begin_layout Plain Layout
6750 Note that \SpecialChar LyX
6751  is licensed under the General Public License, so any material
6752  that is contributed to \SpecialChar LyX
6753  must be similarly licensed.
6754 \end_layout
6755
6756 \end_inset
6757
6758
6759 \end_layout
6760
6761 \begin_layout Subsection
6762 Layout modules
6763 \begin_inset CommandInset label
6764 LatexCommand label
6765 name "subsec:Layout-modules"
6766
6767 \end_inset
6768
6769
6770 \end_layout
6771
6772 \begin_layout Standard
6773 We have spoken to this point about `layout files'.
6774  But there are different sorts of files that contain layout information.
6775  Layout files, strictly so called, have the 
6776 \begin_inset Flex Code
6777 status collapsed
6778
6779 \begin_layout Plain Layout
6780 .layout
6781 \end_layout
6782
6783 \end_inset
6784
6785  extension and provide \SpecialChar LyX
6786  with information about document classes.
6787  Since \SpecialChar LyX
6788  1.6 layout information can also be contained in layout 
6789 \emph on
6790 modules
6791 \emph default
6792 , which have the 
6793 \begin_inset Flex Code
6794 status collapsed
6795
6796 \begin_layout Plain Layout
6797 .module
6798 \end_layout
6799
6800 \end_inset
6801
6802  extension.
6803  Modules are to \SpecialChar LaTeX
6804  packages much as layouts are to \SpecialChar LaTeX
6805  classes, and some modules—such
6806  as the 
6807 \begin_inset Flex Code
6808 status collapsed
6809
6810 \begin_layout Plain Layout
6811 endnotes
6812 \end_layout
6813
6814 \end_inset
6815
6816  module—specifically provide support for one package.
6817  In a sense, layout modules are similar to included
6818 \begin_inset Foot
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822 These can have any extension, but by convention have the 
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 .inc
6828 \end_layout
6829
6830 \end_inset
6831
6832  extension.
6833 \end_layout
6834
6835 \end_inset
6836
6837  files—files like 
6838 \begin_inset Flex Code
6839 status collapsed
6840
6841 \begin_layout Plain Layout
6842 stdsections.inc
6843 \end_layout
6844
6845 \end_inset
6846
6847 —in that modules are not specific to a given document class but may be used
6848  with many different classes.
6849  The difference is that using an included file with 
6850 \begin_inset Flex Code
6851 status collapsed
6852
6853 \begin_layout Plain Layout
6854 article.cls
6855 \end_layout
6856
6857 \end_inset
6858
6859  requires editing that file.
6860  Modules, by contrast, are selected in the 
6861 \begin_inset Flex Noun
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 Document\SpecialChar menuseparator
6866 Settings
6867 \end_layout
6868
6869 \end_inset
6870
6871  dialog.
6872 \end_layout
6873
6874 \begin_layout Standard
6875 Building modules is the easiest way to get started with layout editing,
6876  since it can be as simple as adding a single new paragraph style or flex
6877  inset.
6878  But modules may, in principle, contain anything a layout file can contain.
6879 \end_layout
6880
6881 \begin_layout Standard
6882 After creating a new module and copying it to the 
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 layouts/
6888 \end_layout
6889
6890 \end_inset
6891
6892  folder, you will need to reconfigure and then restart \SpecialChar LyX
6893  for the module to
6894  appear in the menu.
6895  However, changes you make to the module will be seen immediately, if you
6896  open 
6897 \begin_inset Flex Noun
6898 status collapsed
6899
6900 \begin_layout Plain Layout
6901 Document\SpecialChar menuseparator
6902 Settings
6903 \end_layout
6904
6905 \end_inset
6906
6907 , highlight something, and then hit 
6908 \begin_inset Quotes eld
6909 \end_inset
6910
6911 OK
6912 \begin_inset Quotes erd
6913 \end_inset
6914
6915 .
6916  
6917 \emph on
6918 It is strongly recommended that you save your work before doing this
6919 \emph default
6920 .
6921  In fact, 
6922 \emph on
6923 it is strongly recommended that you not attempt to edit modules while simultaneo
6924 usly working on actual documents
6925 \emph default
6926 .
6927  Though of course the developers strive to keep \SpecialChar LyX
6928  stable in such situations,
6929  syntax errors and the like in your module file could cause strange behavior.
6930 \end_layout
6931
6932 \begin_layout Subsubsection
6933 Local Layout
6934 \end_layout
6935
6936 \begin_layout Standard
6937 Modules are to \SpecialChar LyX
6938  as packages are to \SpecialChar LaTeX
6939 .
6940  Sometimes, however, you find yourself wanting a specific inset or character
6941  style just for one document and writing a module that will also be available
6942  to other documents makes little sense.
6943  What you need is \SpecialChar LyX
6944 's 
6945 \begin_inset Quotes eld
6946 \end_inset
6947
6948 Local Layout
6949 \begin_inset Quotes erd
6950 \end_inset
6951
6952 .
6953 \end_layout
6954
6955 \begin_layout Standard
6956 You will find it under 
6957 \family sans
6958 Document\SpecialChar menuseparator
6959 Settings\SpecialChar menuseparator
6960 Local Layout
6961 \family default
6962 .
6963  The large text box allows you to enter anything that you might enter in
6964  a layout file or module.
6965  You can think of a document's local layout, in fact, as a module that belongs
6966  just to it.
6967  So, in particular, you must enter a 
6968 \begin_inset Flex Code
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972 Format
6973 \end_layout
6974
6975 \end_inset
6976
6977  tag.
6978  Any format is acceptable, but one would normally use the format current
6979  at the time.
6980  (In \SpecialChar LyX
6981  
6982 \begin_inset Info
6983 type  "lyxinfo"
6984 arg   "version"
6985 \end_inset
6986
6987 , the current layout format is 
6988 \begin_inset Info
6989 type  "lyxinfo"
6990 arg   "layoutformat"
6991 \end_inset
6992
6993 .)
6994 \end_layout
6995
6996 \begin_layout Standard
6997 When you have entered something in the 
6998 \begin_inset Flex Code
6999 status collapsed
7000
7001 \begin_layout Plain Layout
7002 Local Layout
7003 \end_layout
7004
7005 \end_inset
7006
7007  pane, \SpecialChar LyX
7008  will enable the 
7009 \begin_inset Quotes eld
7010 \end_inset
7011
7012 Validate
7013 \begin_inset Quotes erd
7014 \end_inset
7015
7016  button at the bottom.
7017  Clicking this button will cause \SpecialChar LyX
7018  to determine whether what you have entered
7019  is valid layout information for the chosen format.
7020  \SpecialChar LyX
7021  will report the result but, unfortunately, will not tell you what errors
7022  there might have been.
7023  These will be written to the terminal, however, if \SpecialChar LyX
7024  is started from a terminal.
7025  You will not be permitted to save your local layout until you have entered
7026  something valid.
7027 \end_layout
7028
7029 \begin_layout Standard
7030 The warnings at the end of the previous section apply here, too.
7031  Do not play with local layout while you are actually working, especially
7032  if you have not saved your document.
7033  That said, using local layout with a test document can be a very convenient
7034  way to try out layout ideas, or even to start developing a module.
7035 \end_layout
7036
7037 \begin_layout Subsection
7038 Layout for 
7039 \begin_inset Flex Noun
7040 status collapsed
7041
7042 \begin_layout Plain Layout
7043 .sty
7044 \end_layout
7045
7046 \end_inset
7047
7048  files
7049 \end_layout
7050
7051 \begin_layout Standard
7052 There are two situations you are likely to encounter when wanting to support
7053  a new \SpecialChar LaTeX
7054  document class, involving style (
7055 \begin_inset Flex Code
7056 status collapsed
7057
7058 \begin_layout Plain Layout
7059 .sty
7060 \end_layout
7061
7062 \end_inset
7063
7064 ) files and \SpecialChar LaTeX2e
7065  class (
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 .cls
7071 \end_layout
7072
7073 \end_inset
7074
7075 ) .
7076  Supporting a style file is usually fairly easy.
7077  Supporting a new class file is a bit harder.
7078  We'll discuss the former in this section and the latter in the next.
7079  Similar remarks apply, of course, if you want to support a new DocBook
7080  DTD.
7081 \end_layout
7082
7083 \begin_layout Standard
7084 The easier case is the one in which your new document class is provided
7085  as a style file that is to be used in conjunction with an already supported
7086  document class.
7087  For the sake of the example, we'll assume that the style file is called
7088  
7089 \begin_inset Flex Noun
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 myclass.sty
7094 \end_layout
7095
7096 \end_inset
7097
7098  and that it is meant to be used with 
7099 \begin_inset Flex Noun
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 report.cls
7104 \end_layout
7105
7106 \end_inset
7107
7108 , which is a standard class.
7109  
7110 \end_layout
7111
7112 \begin_layout Standard
7113 Start by copying the existing class's layout file into your local directory:
7114 \begin_inset Foot
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118 Of course, which directory is your local directory will vary by platform,
7119  and \SpecialChar LyX
7120  allows you to specify your local directory on startup, too, using
7121  the 
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 -userdir
7127 \end_layout
7128
7129 \end_inset
7130
7131  option.
7132 \end_layout
7133
7134 \end_inset
7135
7136
7137 \end_layout
7138
7139 \begin_layout LyX-Code
7140 cp report.layout ~/.lyx/layouts/myclass.layout
7141 \end_layout
7142
7143 \begin_layout Standard
7144 Then edit 
7145 \begin_inset Flex Code
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149 myclass.layout
7150 \end_layout
7151
7152 \end_inset
7153
7154  and change the line: 
7155 \end_layout
7156
7157 \begin_layout LyX-Code
7158
7159 \backslash
7160 DeclareLaTeXClass{Report (Standard Class)}
7161 \end_layout
7162
7163 \begin_layout Standard
7164 to read
7165 \end_layout
7166
7167 \begin_layout LyX-Code
7168
7169 \backslash
7170 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7171 \end_layout
7172
7173 \begin_layout Standard
7174 Then add:
7175 \end_layout
7176
7177 \begin_layout LyX-Code
7178 Preamble 
7179 \begin_inset Newline newline
7180 \end_inset
7181
7182     
7183 \backslash
7184 usepackage{myclass}
7185 \begin_inset Newline newline
7186 \end_inset
7187
7188 EndPreamble
7189 \end_layout
7190
7191 \begin_layout Standard
7192 near the top of the file.
7193 \end_layout
7194
7195 \begin_layout Standard
7196 Start \SpecialChar LyX
7197  and select 
7198 \begin_inset Flex Noun
7199 status collapsed
7200
7201 \begin_layout Plain Layout
7202 Tools\SpecialChar menuseparator
7203 Reconfigure
7204 \end_layout
7205
7206 \end_inset
7207
7208 .
7209  Then restart \SpecialChar LyX
7210  and try creating a new document.
7211  You should see "
7212 \begin_inset Flex Noun
7213 status collapsed
7214
7215 \begin_layout Plain Layout
7216 Report (My Class)
7217 \end_layout
7218
7219 \end_inset
7220
7221 " as a document class option in the 
7222 \begin_inset Flex Noun
7223 status collapsed
7224
7225 \begin_layout Plain Layout
7226 Document\SpecialChar menuseparator
7227 Settings
7228 \end_layout
7229
7230 \end_inset
7231
7232  dialog.
7233  It is likely that some of the sectioning commands and such in your new
7234  class will work differently from how they worked in the base class—
7235 \begin_inset Flex Code
7236 status collapsed
7237
7238 \begin_layout Plain Layout
7239 report
7240 \end_layout
7241
7242 \end_inset
7243
7244  in this example—so you can fiddle around with the settings for the different
7245  sections if you wish.
7246  The layout information for sections is contained in 
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 stdsections.inc
7252 \end_layout
7253
7254 \end_inset
7255
7256 , but you do not need to copy and change this file.
7257  Instead, you can simply add your changes to your layout file, after the
7258  line 
7259 \begin_inset Flex Code
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 Input stdclass.inc
7264 \end_layout
7265
7266 \end_inset
7267
7268 , which itself includes 
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 stdsections.inc
7274 \end_layout
7275
7276 \end_inset
7277
7278 .
7279  For example, you might add these lines:
7280 \end_layout
7281
7282 \begin_layout LyX-Code
7283 Style Chapter
7284 \end_layout
7285
7286 \begin_layout LyX-Code
7287     Font
7288 \end_layout
7289
7290 \begin_layout LyX-Code
7291         Family Sans
7292 \end_layout
7293
7294 \begin_layout LyX-Code
7295     EndFont
7296 \end_layout
7297
7298 \begin_layout LyX-Code
7299 End
7300 \end_layout
7301
7302 \begin_layout Standard
7303 to change the font for chapter headings to sans-serif.
7304  This will override (or, in this case, add to) the existing declaration
7305  for the Chapter style.
7306  
7307 \end_layout
7308
7309 \begin_layout Standard
7310 Your new package may also provide commands or environments not present in
7311  the base class.
7312  In this case, you will want to add these to the layout file.
7313  See 
7314 \begin_inset CommandInset ref
7315 LatexCommand ref
7316 reference "sec:TextClass"
7317
7318 \end_inset
7319
7320  for information on how to do so.
7321 \end_layout
7322
7323 \begin_layout Standard
7324 If 
7325 \begin_inset Flex Noun
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 myclass.sty
7330 \end_layout
7331
7332 \end_inset
7333
7334  can be used with several different document classes, and even if it cannot,
7335  you might find it easiest just to write a module that you can load with
7336  the base class.
7337  The simplest possible such module would be:
7338 \end_layout
7339
7340 \begin_layout LyX-Code
7341 #
7342 \backslash
7343 DeclareLyXModule{My Class} 
7344 \end_layout
7345
7346 \begin_layout LyX-Code
7347 #DescriptionBegin 
7348 \end_layout
7349
7350 \begin_layout LyX-Code
7351 #Support for myclass.sty.
7352 \end_layout
7353
7354 \begin_layout LyX-Code
7355 #DescriptionEnd
7356 \begin_inset Newline newline
7357 \end_inset
7358
7359
7360 \end_layout
7361
7362 \begin_layout LyX-Code
7363 Format 
7364 \begin_inset Info
7365 type  "lyxinfo"
7366 arg   "layoutformat"
7367 \end_inset
7368
7369
7370 \begin_inset Newline newline
7371 \end_inset
7372
7373
7374 \end_layout
7375
7376 \begin_layout LyX-Code
7377 Preamble
7378 \begin_inset Newline newline
7379 \end_inset
7380
7381     
7382 \backslash
7383 usepackage{myclass}
7384 \begin_inset Newline newline
7385 \end_inset
7386
7387 EndPreamble
7388 \end_layout
7389
7390 \begin_layout Standard
7391 A more complex module might modify the behavior of some existing constructs
7392  or define some new ones.
7393  Again, see 
7394 \begin_inset CommandInset ref
7395 LatexCommand ref
7396 reference "sec:TextClass"
7397
7398 \end_inset
7399
7400  for discussion.
7401 \end_layout
7402
7403 \begin_layout Subsection
7404 Layout for 
7405 \begin_inset Flex Noun
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 .cls
7410 \end_layout
7411
7412 \end_inset
7413
7414  files
7415 \end_layout
7416
7417 \begin_layout Standard
7418 There are two possibilities here.
7419  One is that the class file is itself based upon an existing document class.
7420  For example, many thesis classes are based upon 
7421 \begin_inset Flex Noun
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 book.cls
7426 \end_layout
7427
7428 \end_inset
7429
7430 .
7431  To see whether yours is, look for a line like
7432 \end_layout
7433
7434 \begin_layout LyX-Code
7435
7436 \backslash
7437 LoadClass{book}
7438 \end_layout
7439
7440 \begin_layout Standard
7441 in the file.
7442  If so, then you may proceed largely as in the previous section, though
7443  the 
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 Declare\SpecialChar LaTeX
7449 Class
7450 \end_layout
7451
7452 \end_inset
7453
7454  line will be different.
7455  If your new class is 
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 thesis
7461 \end_layout
7462
7463 \end_inset
7464
7465  and it is based upon 
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 book
7471 \end_layout
7472
7473 \end_inset
7474
7475 , then the line should read:
7476 \begin_inset Foot
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 And it will be easiest if you save the file to 
7481 \begin_inset Flex Code
7482 status collapsed
7483
7484 \begin_layout Plain Layout
7485 thesis.layout
7486 \end_layout
7487
7488 \end_inset
7489
7490 : \SpecialChar LyX
7491  assumes that the document class has the same name as the layout file.
7492  
7493 \end_layout
7494
7495 \end_inset
7496
7497
7498 \end_layout
7499
7500 \begin_layout LyX-Code
7501
7502 \backslash
7503 DeclareLaTeXClass[thesis,book]{thesis}
7504 \end_layout
7505
7506 \begin_layout Standard
7507 If, on the other hand, the new class is not based upon an existing class,
7508  you will probably have to 
7509 \begin_inset Quotes eld
7510 \end_inset
7511
7512 roll your own
7513 \begin_inset Quotes erd
7514 \end_inset
7515
7516  layout.
7517  We strongly suggest copying an existing layout file which uses a similar
7518  \SpecialChar LaTeX
7519  class and then modifying it, if you can do so.
7520  At least use an existing file as a starting point so you can find out what
7521  items you need to worry about.
7522  Again, the specifics are covered below.
7523 \end_layout
7524
7525 \begin_layout Subsection
7526 Creating templates
7527 \begin_inset CommandInset label
7528 LatexCommand label
7529 name "subsec:Creating-Templates"
7530
7531 \end_inset
7532
7533
7534 \end_layout
7535
7536 \begin_layout Standard
7537 Once you have written a layout file for a new document class, you might
7538  want to consider writing a 
7539 \emph on
7540 template
7541 \emph default
7542  for it, too.
7543  A template acts as a kind of tutorial for your layout, showing how it might
7544  be used, though containing dummy content.
7545  You can of course look at the various templates included with \SpecialChar LyX
7546  for ideas.
7547 \end_layout
7548
7549 \begin_layout Standard
7550 Templates are created just like usual documents: using \SpecialChar LyX
7551 .
7552  The only difference is that usual documents contain all possible settings,
7553  including the font scheme and the paper size.
7554  Usually a user doesn't want a template to overwrite his preferred settings
7555  for such parameters.
7556  For that reason, the designer of a template should remove the corresponding
7557  commands like 
7558 \begin_inset Flex Code
7559 status collapsed
7560
7561 \begin_layout Plain Layout
7562
7563 \backslash
7564 font_roman
7565 \end_layout
7566
7567 \end_inset
7568
7569  or 
7570 \begin_inset Flex Code
7571 status collapsed
7572
7573 \begin_layout Plain Layout
7574
7575 \backslash
7576 papersize
7577 \end_layout
7578
7579 \end_inset
7580
7581  from the template \SpecialChar LyX
7582  file.
7583  This can be done with any simple text-editor, for example 
7584 \begin_inset Flex Code
7585 status collapsed
7586
7587 \begin_layout Plain Layout
7588 vi
7589 \end_layout
7590
7591 \end_inset
7592
7593  or 
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 notepad
7599 \end_layout
7600
7601 \end_inset
7602
7603 .
7604 \end_layout
7605
7606 \begin_layout Standard
7607 Put the edited template files you create in 
7608 \begin_inset Flex Code
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 UserDir/templates/
7613 \end_layout
7614
7615 \end_inset
7616
7617 , copy the ones you use from the global template directory in 
7618 \begin_inset Flex Code
7619 status collapsed
7620
7621 \begin_layout Plain Layout
7622 LyXDir/templates/
7623 \end_layout
7624
7625 \end_inset
7626
7627  to the same place, and redefine the template path in the 
7628 \begin_inset Flex Noun
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632 Tools\SpecialChar menuseparator
7633 Preferences\SpecialChar menuseparator
7634 Paths
7635 \end_layout
7636
7637 \end_inset
7638
7639  dialog.
7640 \end_layout
7641
7642 \begin_layout Standard
7643 Note, by the way, that there is a template which has a particular meaning:
7644 \begin_inset Newline linebreak
7645 \end_inset
7646
7647
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 defaults.lyx
7653 \end_layout
7654
7655 \end_inset
7656
7657 .
7658  This template is loaded every time you create a new document with 
7659 \begin_inset Flex Noun
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 File\SpecialChar menuseparator
7664 New
7665 \end_layout
7666
7667 \end_inset
7668
7669  in order to provide useful defaults.
7670  To create this template from inside \SpecialChar LyX
7671 , all you have to do is to open a document
7672  with the correct settings, and use the 
7673 \begin_inset Flex Noun
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 Save as Document Defaults
7678 \end_layout
7679
7680 \end_inset
7681
7682  button.
7683 \end_layout
7684
7685 \begin_layout Subsection
7686 Upgrading old layout files
7687 \end_layout
7688
7689 \begin_layout Standard
7690 The format of layout files changes with each \SpecialChar LyX
7691  release, so old layout files
7692  need to be converted to the new format.
7693  If \SpecialChar LyX
7694  reads a layout file in an older format, it automatically calls the
7695  script 
7696 \begin_inset Flex Code
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 layout2layout.py
7701 \end_layout
7702
7703 \end_inset
7704
7705  to convert it to a temporary file in current format.
7706  The original file is left untouched.
7707  If you use the layout file often, then, you may want to convert it permanently,
7708  so that \SpecialChar LyX
7709  does not have to do so itself every time.
7710  To do this, you can call the converter manually:
7711 \end_layout
7712
7713 \begin_layout Enumerate
7714 rename the file 
7715 \begin_inset Flex Code
7716 status collapsed
7717
7718 \begin_layout Plain Layout
7719 myclass.layout
7720 \end_layout
7721
7722 \end_inset
7723
7724  to 
7725 \begin_inset Flex Code
7726 status collapsed
7727
7728 \begin_layout Plain Layout
7729 myclass.old
7730 \end_layout
7731
7732 \end_inset
7733
7734
7735 \end_layout
7736
7737 \begin_layout Enumerate
7738 Call the command
7739 \begin_inset Newline newline
7740 \end_inset
7741
7742
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7748 \end_layout
7749
7750 \end_inset
7751
7752
7753 \begin_inset Newline newline
7754 \end_inset
7755
7756 where 
7757 \begin_inset Flex Code
7758 status collapsed
7759
7760 \begin_layout Plain Layout
7761 LyXDir
7762 \end_layout
7763
7764 \end_inset
7765
7766  is the name of your \SpecialChar LyX
7767  system directory.
7768 \end_layout
7769
7770 \begin_layout Standard
7771 Note that manual conversion does not affect included files, so these will
7772  have to be converted separately.
7773 \end_layout
7774
7775 \begin_layout Subsection
7776 \begin_inset CommandInset label
7777 LatexCommand label
7778 name "subsec:Cite-Engine-Files"
7779
7780 \end_inset
7781
7782 Cite engine files
7783 \end_layout
7784
7785 \begin_layout Standard
7786 A specific form of layout files are the so-called 
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 *.citeengine
7792 \end_layout
7793
7794 \end_inset
7795
7796  files that are located in the 
7797 \begin_inset Flex Code
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801 citeengines/
7802 \end_layout
7803
7804 \end_inset
7805
7806  sub-directory.
7807  Their purpose is to define the specifics of \SpecialChar LaTeX
7808  packages aimed at bibliography
7809  generation, such as 
7810 \family sans
7811 natbib
7812 \family default
7813 ,
7814 \family sans
7815  jurabib
7816 \family default
7817  or 
7818 \family sans
7819 biblatex
7820 \family default
7821 , but also the way how normal Bib\SpecialChar TeX
7822  citations (without additional packages)
7823  are handled in \SpecialChar LyX
7824  is defined in such a file.
7825  
7826 \end_layout
7827
7828 \begin_layout Standard
7829 More specifically, it is defined which packages \SpecialChar LyX
7830  needs to load, which citation
7831  commands are available, how these are to be displayed in \SpecialChar LyX
7832  (in the workarea,
7833  the dialogs, the context menus) as well as in the XHTML and plain text
7834  output.
7835  Furthermore, the files specify available style variants (author-year, numerical
7836 , etc.) and their specifics.
7837  The cite engine files are also used to generate the options that are available
7838  in 
7839 \family sans
7840 Document\SpecialChar menuseparator
7841 Settings\SpecialChar menuseparator
7842 Bibliography\SpecialChar menuseparator
7843 Style engine
7844 \family default
7845 .
7846 \end_layout
7847
7848 \begin_layout Standard
7849 Even though a cite engine file is essentially a normal layout file that
7850  could theoretically include any layout information, it usually primarily
7851  includes some specific parameters such as 
7852 \begin_inset Flex Code
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856 MaxCiteNames
7857 \end_layout
7858
7859 \end_inset
7860
7861
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 CiteFramework
7867 \end_layout
7868
7869 \end_inset
7870
7871
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 CiteEngine
7877 \end_layout
7878
7879 \end_inset
7880
7881  and 
7882 \begin_inset Flex Code
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886 CiteFormat
7887 \end_layout
7888
7889 \end_inset
7890
7891  blocks.
7892  The syntax of the latter two is described in 
7893 \begin_inset CommandInset ref
7894 LatexCommand ref
7895 reference "subsec:Citation-engine-description"
7896 plural "false"
7897 caps "false"
7898 noprefix "false"
7899
7900 \end_inset
7901
7902  and 
7903 \begin_inset CommandInset ref
7904 LatexCommand ref
7905 reference "subsec:Citation-format-description"
7906
7907 \end_inset
7908
7909 , as well as in the files themselves.
7910 \end_layout
7911
7912 \begin_layout Section
7913 \begin_inset CommandInset label
7914 LatexCommand label
7915 name "sec:TextClass"
7916
7917 \end_inset
7918
7919 The layout file format
7920 \end_layout
7921
7922 \begin_layout Standard
7923 The following sections describe how layout files are structured and written.
7924  Our advice is to go slowly, save and test often.
7925  It is really not that hard, except that the multitude of options can become
7926  overwhelming, especially if you try to check out too many at once.
7927  It becomes easier if you use existing layouts of \SpecialChar LyX
7928  as examples/reference
7929  or if you modify an existing layout to your needs.
7930 \end_layout
7931
7932 \begin_layout Standard
7933 Note that all the tags used in layout files are case-insensitive.
7934  This means that 
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 Style
7940 \end_layout
7941
7942 \end_inset
7943
7944
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 style
7950 \end_layout
7951
7952 \end_inset
7953
7954  and 
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 StYlE
7960 \end_layout
7961
7962 \end_inset
7963
7964  are really the same tag.
7965  The possible arguments are printed in brackets after the tag's name.
7966  The default argument is typeset 
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971
7972 \emph on
7973 emphasized
7974 \end_layout
7975
7976 \end_inset
7977
7978 .
7979  If the argument has a data type like 
7980 \begin_inset Quotes eld
7981 \end_inset
7982
7983 string
7984 \begin_inset Quotes erd
7985 \end_inset
7986
7987  or 
7988 \begin_inset Quotes eld
7989 \end_inset
7990
7991 float
7992 \begin_inset Quotes erd
7993 \end_inset
7994
7995 , the default is shown like this: 
7996 \begin_inset Flex Code
7997 status collapsed
7998
7999 \begin_layout Plain Layout
8000 float=
8001 \emph on
8002 default
8003 \end_layout
8004
8005 \end_inset
8006
8007 .
8008 \end_layout
8009
8010 \begin_layout Subsection
8011 The document class declaration and classification
8012 \end_layout
8013
8014 \begin_layout Standard
8015 Lines in a layout file which begin with 
8016 \begin_inset Flex Code
8017 status collapsed
8018
8019 \begin_layout Plain Layout
8020 #
8021 \end_layout
8022
8023 \end_inset
8024
8025  are comments.
8026  There is one exception to this rule.
8027  All 
8028 \begin_inset Flex Code
8029 status collapsed
8030
8031 \begin_layout Plain Layout
8032 *.layout
8033 \end_layout
8034
8035 \end_inset
8036
8037  files should begin with lines like:
8038 \end_layout
8039
8040 \begin_layout LyX-Code
8041
8042 \size small
8043 #% Do not delete the line below; configure depends on this 
8044 \end_layout
8045
8046 \begin_layout LyX-Code
8047
8048 \size small
8049 #  
8050 \backslash
8051 DeclareLaTeXClass{Article (Standard Class)}
8052 \end_layout
8053
8054 \begin_layout LyX-Code
8055
8056 \size small
8057 #  
8058 \backslash
8059 DeclareCategory{Articles}
8060 \end_layout
8061
8062 \begin_layout Standard
8063 The second and third lines are used when you (re)configure \SpecialChar LyX
8064 .
8065  The layout file is read by the \SpecialChar LaTeX
8066  script 
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 chkconfig.ltx
8072 \end_layout
8073
8074 \end_inset
8075
8076 , in a special mode where 
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 #
8082 \end_layout
8083
8084 \end_inset
8085
8086  is ignored.
8087  The first line is just a \SpecialChar LaTeX
8088  comment, the second one contains the mandatory
8089  declaration of the text class and the third line contains the optional
8090  classification of the class.
8091  If these lines appear in a file named 
8092 \begin_inset Flex Code
8093 status collapsed
8094
8095 \begin_layout Plain Layout
8096 article.layout
8097 \end_layout
8098
8099 \end_inset
8100
8101 , then they define a text class of name 
8102 \begin_inset Flex Code
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 article
8107 \end_layout
8108
8109 \end_inset
8110
8111  (the name of the layout file) which uses the \SpecialChar LaTeX
8112  document class 
8113 \begin_inset Flex Code
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 article.cls
8118 \end_layout
8119
8120 \end_inset
8121
8122  (the default is to use the same name as the layout).
8123  The string 
8124 \begin_inset Quotes eld
8125 \end_inset
8126
8127 Article (Standard Class)
8128 \begin_inset Quotes erd
8129 \end_inset
8130
8131  that appears above is used as a description of the text class in the 
8132 \begin_inset Flex Noun
8133 status collapsed
8134
8135 \begin_layout Plain Layout
8136 Document\SpecialChar menuseparator
8137 Settings
8138 \end_layout
8139
8140 \end_inset
8141
8142  dialog.
8143  The category (
8144 \begin_inset Quotes eld
8145 \end_inset
8146
8147 Articles
8148 \begin_inset Quotes erd
8149 \end_inset
8150
8151  in the example) is also used in the 
8152 \begin_inset Flex Noun
8153 status collapsed
8154
8155 \begin_layout Plain Layout
8156 Document\SpecialChar menuseparator
8157 Settings
8158 \end_layout
8159
8160 \end_inset
8161
8162  dialog: the text classes are grouped by these categories (which are usually
8163  genres, so typical categories are 
8164 \begin_inset Quotes eld
8165 \end_inset
8166
8167 Articles
8168 \begin_inset Quotes erd
8169 \end_inset
8170
8171
8172 \begin_inset Quotes eld
8173 \end_inset
8174
8175 Books
8176 \begin_inset Quotes erd
8177 \end_inset
8178
8179
8180 \begin_inset Quotes eld
8181 \end_inset
8182
8183 Reports
8184 \begin_inset Quotes erd
8185 \end_inset
8186
8187
8188 \begin_inset Quotes eld
8189 \end_inset
8190
8191 Letters
8192 \begin_inset Quotes erd
8193 \end_inset
8194
8195
8196 \begin_inset Quotes eld
8197 \end_inset
8198
8199 Presentations
8200 \begin_inset Quotes erd
8201 \end_inset
8202
8203
8204 \begin_inset Quotes eld
8205 \end_inset
8206
8207 Curricula Vitae
8208 \begin_inset Quotes erd
8209 \end_inset
8210
8211  etc.).
8212  If no category has been declared, the class will be put in the 
8213 \begin_inset Quotes eld
8214 \end_inset
8215
8216 Uncategorized
8217 \begin_inset Quotes erd
8218 \end_inset
8219
8220  group.
8221 \end_layout
8222
8223 \begin_layout Standard
8224 Let's assume that you wrote your own text class that uses the 
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 article.cls
8230 \end_layout
8231
8232 \end_inset
8233
8234  document class, but where you changed the appearance of the section headings.
8235  If you put it in a file 
8236 \begin_inset Flex Code
8237 status collapsed
8238
8239 \begin_layout Plain Layout
8240 myarticle.layout
8241 \end_layout
8242
8243 \end_inset
8244
8245 , the header of this file should be:
8246 \end_layout
8247
8248 \begin_layout LyX-Code
8249
8250 \size small
8251 #% Do not delete the line below; configure depends on this 
8252 \end_layout
8253
8254 \begin_layout LyX-Code
8255
8256 \size small
8257 #  
8258 \backslash
8259 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8260 \end_layout
8261
8262 \begin_layout LyX-Code
8263
8264 \size small
8265 #  
8266 \backslash
8267 DeclareCategory{Articles}
8268 \end_layout
8269
8270 \begin_layout Standard
8271 This declares a text class 
8272 \begin_inset Flex Code
8273 status collapsed
8274
8275 \begin_layout Plain Layout
8276 myarticle
8277 \end_layout
8278
8279 \end_inset
8280
8281 , associated with the \SpecialChar LaTeX
8282  document class 
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 article.cls
8288 \end_layout
8289
8290 \end_inset
8291
8292  and described as 
8293 \begin_inset Quotes eld
8294 \end_inset
8295
8296 Article (with My Own Headings)
8297 \begin_inset Quotes erd
8298 \end_inset
8299
8300 .
8301  If your text class depends on several packages, you can declare it as:
8302 \end_layout
8303
8304 \begin_layout LyX-Code
8305
8306 \size small
8307 #% Do not delete the line below; configure depends on this 
8308 \end_layout
8309
8310 \begin_layout LyX-Code
8311
8312 \size small
8313 #  
8314 \backslash
8315 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8316 \end_layout
8317
8318 \begin_layout LyX-Code
8319
8320 \size small
8321 #  
8322 \backslash
8323 DeclareCategory{Articles}
8324 \end_layout
8325
8326 \begin_layout Standard
8327 This indicates that your text class uses the 
8328 \begin_inset Flex Code
8329 status collapsed
8330
8331 \begin_layout Plain Layout
8332 foo.sty
8333 \end_layout
8334
8335 \end_inset
8336
8337  package.
8338  Finally, it is also possible to declare classes for DocBook code.
8339  Typical declarations will look like:
8340 \end_layout
8341
8342 \begin_layout LyX-Code
8343
8344 \size small
8345 #% Do not delete the line below; configure depends on this 
8346 \end_layout
8347
8348 \begin_layout LyX-Code
8349
8350 \size small
8351
8352 \backslash
8353 DeclareDocBookClass[article]{SGML (DocBook Article)}
8354 \end_layout
8355
8356 \begin_layout LyX-Code
8357
8358 \size small
8359
8360 \backslash
8361 DeclareCategory{Articles (DocBook)}
8362 \end_layout
8363
8364 \begin_layout Standard
8365 Note that these declarations can also be given an optional parameter declaring
8366  the name of the document class (but not a list).
8367 \end_layout
8368
8369 \begin_layout Standard
8370 So, to be as explicit as possible, the form of the layout declaration is:
8371 \end_layout
8372
8373 \begin_layout LyX-Code
8374
8375 \size small
8376 #  
8377 \backslash
8378 DeclareLaTeXClass[class,package.sty]{layout description}
8379 \end_layout
8380
8381 \begin_layout LyX-Code
8382
8383 \size small
8384 #  
8385 \backslash
8386 DeclareCategory{category}
8387 \end_layout
8388
8389 \begin_layout Standard
8390 The class need only be specified if the name of the \SpecialChar LaTeX
8391  class file and the
8392  name of the layout file are different or if there are packages to load.
8393  If the name of the class file is not specified, then \SpecialChar LyX
8394  will simply assume
8395  that it is the same as the name of the layout file.
8396 \end_layout
8397
8398 \begin_layout Standard
8399 When the text class has been modified to your taste, all you have to do
8400  is to copy it either to 
8401 \begin_inset Flex Code
8402 status collapsed
8403
8404 \begin_layout Plain Layout
8405 LyXDir/layouts/
8406 \end_layout
8407
8408 \end_inset
8409
8410  or to 
8411 \begin_inset Flex Code
8412 status collapsed
8413
8414 \begin_layout Plain Layout
8415 UserDir/layouts
8416 \end_layout
8417
8418 \end_inset
8419
8420 , run 
8421 \begin_inset Flex Noun
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 Tools\SpecialChar menuseparator
8426 Reconfigure
8427 \end_layout
8428
8429 \end_inset
8430
8431 , exit \SpecialChar LyX
8432  and restart.
8433  Then your new text class should be available along with the others.
8434 \end_layout
8435
8436 \begin_layout Standard
8437 Once the layout file is installed, you can edit it and see your changes
8438  without having to reconfigure or to restart \SpecialChar LyX
8439 .
8440 \begin_inset Foot
8441 status collapsed
8442
8443 \begin_layout Plain Layout
8444 In versions of \SpecialChar LyX
8445  prior to 1.6, this was not true.
8446  As a result, editing layout files was very time consuming, since you had
8447  constantly to restart \SpecialChar LyX
8448  to see changes.
8449 \end_layout
8450
8451 \end_inset
8452
8453  You can force a reload of the current layout by using the \SpecialChar LyX
8454  function 
8455 \begin_inset Flex Noun
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459 layout-reload
8460 \end_layout
8461
8462 \end_inset
8463
8464 .
8465  There is no default binding for this function—though, of course, you can
8466  bind it to a key yourself.
8467  But you will normally use this function simply by entering it in the mini-buffe
8468 r.
8469  
8470 \end_layout
8471
8472 \begin_layout Standard
8473
8474 \emph on
8475 Warning
8476 \emph default
8477
8478 \begin_inset Flex Noun
8479 status collapsed
8480
8481 \begin_layout Plain Layout
8482 layout-reload
8483 \end_layout
8484
8485 \end_inset
8486
8487  is very much an `advanced feature'.
8488  It is 
8489 \emph on
8490 strongly
8491 \emph default
8492  recommended that you save your work before using this function.
8493  In fact, it is 
8494 \emph on
8495 strongly
8496 \emph default
8497  recommended that you not attempt to edit layout information while simultaneousl
8498 y working on a document that you care about.
8499  Use a test document.
8500  Syntax errors and the like in your layout file could cause peculiar behavior.
8501  In particular, such errors could cause \SpecialChar LyX
8502  to regard the current layout as
8503  invalid and to attempt to switch to some other layout.
8504 \begin_inset Foot
8505 status collapsed
8506
8507 \begin_layout Plain Layout
8508 Really bad syntax errors may even caused \SpecialChar LyX
8509  to exit.
8510  This is because certain sorts of errors may make \SpecialChar LyX
8511  unable to read 
8512 \emph on
8513 any
8514 \emph default
8515  layout information.
8516  Please be careful.
8517 \end_layout
8518
8519 \end_inset
8520
8521  The \SpecialChar LyX
8522  team strives to keep \SpecialChar LyX
8523  stable in such situations, but safe is better
8524  than sorry.
8525 \begin_inset Foot
8526 status collapsed
8527
8528 \begin_layout Plain Layout
8529 While we're giving advice: make regular backups.
8530  And be nice to your mother.
8531 \end_layout
8532
8533 \end_inset
8534
8535
8536 \end_layout
8537
8538 \begin_layout Subsection
8539 The Module declaration
8540 \end_layout
8541
8542 \begin_layout Standard
8543 A module must begin with a line like the following:
8544 \end_layout
8545
8546 \begin_layout LyX-Code
8547 #
8548 \backslash
8549 DeclareLyXModule[endnotes.sty]{Endnotes}
8550 \change_inserted -712698321 1554395911
8551
8552 \end_layout
8553
8554 \begin_layout LyX-Code
8555
8556 \change_inserted -712698321 1554395924
8557
8558 \size small
8559 #
8560 \backslash
8561 DeclareCategory{Foot- and Endnotes}
8562 \change_deleted -712698321 1554395911
8563
8564 \size default
8565  
8566 \change_unchanged
8567
8568 \end_layout
8569
8570 \begin_layout Standard
8571 The mandatory argument
8572 \change_inserted -712698321 1554395956
8573  of 
8574 \family typewriter
8575
8576 \backslash
8577 DeclareLyXModule
8578 \change_unchanged
8579
8580 \family default
8581 , in curly brackets, is the name of the module, as it should appear in 
8582 \begin_inset Flex Noun
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 Document\SpecialChar menuseparator
8587 Settings\SpecialChar menuseparator
8588 Modules
8589 \end_layout
8590
8591 \end_inset
8592
8593 .
8594  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8595  packages
8596  on which the module depends.
8597  It is also possible to use the form 
8598 \begin_inset Flex Noun
8599 status collapsed
8600
8601 \begin_layout Plain Layout
8602 from->to
8603 \end_layout
8604
8605 \end_inset
8606
8607  as an optional argument, which declares that the module can only be used
8608  when there exists a conversion chain between the formats `
8609 \begin_inset Flex Code
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 from
8614 \end_layout
8615
8616 \end_inset
8617
8618 ' and `
8619 \begin_inset Flex Code
8620 status collapsed
8621
8622 \begin_layout Plain Layout
8623 to
8624 \end_layout
8625
8626 \end_inset
8627
8628 '.
8629
8630 \change_inserted -712698321 1554396133
8631  The 
8632 \family typewriter
8633
8634 \backslash
8635 DeclareCategory
8636 \family default
8637  declaration is not strictly mandatory, but you should add it, since it
8638  is helpful to find the module.
8639  Please have a look at the existing module categories and if appropriate,
8640  use one of those.
8641 \change_unchanged
8642
8643 \end_layout
8644
8645 \begin_layout Standard
8646 The module 
8647 \change_inserted -712698321 1554395988
8648 and category 
8649 \change_unchanged
8650 declaration should then be followed by lines like the following:
8651 \begin_inset Foot
8652 status collapsed
8653
8654 \begin_layout Plain Layout
8655 Preferably in English if the module should be published with \SpecialChar LyX
8656 .
8657  This description will appear in the list of messages to be translated and
8658  will be thus translated with the next interface update.
8659 \end_layout
8660
8661 \end_inset
8662
8663
8664 \end_layout
8665
8666 \begin_layout LyX-Code
8667 #DescriptionBegin 
8668 \end_layout
8669
8670 \begin_layout LyX-Code
8671 #Adds an endnote command, in addition to footnotes.
8672  
8673 \end_layout
8674
8675 \begin_layout LyX-Code
8676 #You will need to add  
8677 \backslash
8678 theendnotes in TeX code where you 
8679 \end_layout
8680
8681 \begin_layout LyX-Code
8682 #want the endnotes to appear.
8683  
8684 \end_layout
8685
8686 \begin_layout LyX-Code
8687 #DescriptionEnd 
8688 \end_layout
8689
8690 \begin_layout LyX-Code
8691 #Requires: somemodule | othermodule
8692 \end_layout
8693
8694 \begin_layout LyX-Code
8695 #Excludes: badmodule
8696 \end_layout
8697
8698 \begin_layout Standard
8699 The description is used in 
8700 \begin_inset Flex Noun
8701 status collapsed
8702
8703 \begin_layout Plain Layout
8704 Document\SpecialChar menuseparator
8705 Settings\SpecialChar menuseparator
8706 Modules
8707 \end_layout
8708
8709 \end_inset
8710
8711  to provide the user with information about what the module does.
8712  The 
8713 \begin_inset Flex Code
8714 status collapsed
8715
8716 \begin_layout Plain Layout
8717 Requires
8718 \end_layout
8719
8720 \end_inset
8721
8722  line is used to identify other modules with which this one must be used;
8723  the 
8724 \begin_inset Flex Code
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 Excludes
8729 \end_layout
8730
8731 \end_inset
8732
8733  line is used to identify modules with which this one may not be used.
8734  Both are optional, and, as shown, multiple modules should be separated
8735  with the pipe symbol: |.
8736  Note that the required modules are treated disjunctively: 
8737 \emph on
8738 at least one
8739 \emph default
8740  of the required modules must be used.
8741  Similarly, 
8742 \emph on
8743 no
8744 \emph default
8745  excluded module may be used.
8746  Note that modules are identified here by their filenames without the 
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 .module
8752 \end_layout
8753
8754 \end_inset
8755
8756  extension.
8757  So 
8758 \begin_inset Flex Code
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 somemodule
8763 \end_layout
8764
8765 \end_inset
8766
8767  is really 
8768 \begin_inset Flex Code
8769 status collapsed
8770
8771 \begin_layout Plain Layout
8772 somemodule.module
8773 \end_layout
8774
8775 \end_inset
8776
8777 .
8778 \end_layout
8779
8780 \begin_layout Subsection
8781 The CiteEngine file declaration
8782 \end_layout
8783
8784 \begin_layout Standard
8785 A cite engine file must begin with a line like the following:
8786 \end_layout
8787
8788 \begin_layout LyX-Code
8789 #
8790 \backslash
8791 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8792 \end_layout
8793
8794 \begin_layout Standard
8795 The mandatory argument, in curly brackets, is the name of the cite style,
8796  as it should appear in 
8797 \begin_inset Flex Noun
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 Document\SpecialChar menuseparator
8802 Settings\SpecialChar menuseparator
8803 Bibliography
8804 \end_layout
8805
8806 \end_inset
8807
8808 .
8809  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8810  packages
8811  on which the cite engine depends.
8812 \end_layout
8813
8814 \begin_layout Standard
8815 The cite engine declaration should then be followed by lines like the following:
8816 \begin_inset Foot
8817 status collapsed
8818
8819 \begin_layout Plain Layout
8820 Preferably in English if the module should be published with \SpecialChar LyX
8821 .
8822  This description will appear in the list of messages to be translated and
8823  will be thus translated with the next interface update.
8824 \end_layout
8825
8826 \end_inset
8827
8828
8829 \end_layout
8830
8831 \begin_layout LyX-Code
8832 # DescriptionBegin
8833 \end_layout
8834
8835 \begin_layout LyX-Code
8836 #   Biblatex supports many author-year and numerical styles.
8837 \end_layout
8838
8839 \begin_layout LyX-Code
8840 #   It is mainly aimed at the Humanities.
8841  It is highly
8842 \end_layout
8843
8844 \begin_layout LyX-Code
8845 #   customizable, fully localized and provides many features
8846 \end_layout
8847
8848 \begin_layout LyX-Code
8849 #   that are not possible with BibTeX.
8850  The use of 'biber' as
8851 \end_layout
8852
8853 \begin_layout LyX-Code
8854 #   bibliography processor is advised.
8855 \end_layout
8856
8857 \begin_layout LyX-Code
8858 # DescriptionEnd
8859 \end_layout
8860
8861 \begin_layout Standard
8862 The description is used in 
8863 \begin_inset Flex Noun
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867 Document\SpecialChar menuseparator
8868 Settings\SpecialChar menuseparator
8869 Bibliography
8870 \end_layout
8871
8872 \end_inset
8873
8874  to provide the user with information about the cite engine.
8875 \end_layout
8876
8877 \begin_layout Subsection
8878 Format number
8879 \end_layout
8880
8881 \begin_layout Standard
8882 The first non-comment line of any layout file, included file, or module
8883  
8884 \emph on
8885 must
8886 \emph default
8887  contain the file format number:
8888 \end_layout
8889
8890 \begin_layout Description
8891 \begin_inset Flex Code
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 Format
8896 \end_layout
8897
8898 \end_inset
8899
8900  [
8901 \begin_inset Flex Code
8902 status collapsed
8903
8904 \begin_layout Plain Layout
8905 int
8906 \end_layout
8907
8908 \end_inset
8909
8910 ] The format number of the layout file.
8911 \end_layout
8912
8913 \begin_layout Standard
8914 This tag was introduced with \SpecialChar LyX
8915
8916 \begin_inset space ~
8917 \end_inset
8918
8919 1.4.0.
8920  Layout files from older \SpecialChar LyX
8921  versions do not have an explicit file format and
8922  are considered to have 
8923 \begin_inset Flex Code
8924 status collapsed
8925
8926 \begin_layout Plain Layout
8927 Format
8928 \begin_inset space ~
8929 \end_inset
8930
8931 1
8932 \end_layout
8933
8934 \end_inset
8935
8936 .
8937  The format for the present version of \SpecialChar LyX
8938  is format 60.
8939  But each version of \SpecialChar LyX
8940  is capable of reading earlier versions' layout files,
8941  just as they are capable of reading files produced by earlier versions
8942  of \SpecialChar LyX
8943 .
8944  There is, however, no provision for converting to earlier formats.
8945 \end_layout
8946
8947 \begin_layout Subsection
8948 \begin_inset CommandInset label
8949 LatexCommand label
8950 name "subsec:General-text-class"
8951
8952 \end_inset
8953
8954 General text class parameters
8955 \end_layout
8956
8957 \begin_layout Standard
8958 These are general parameters that govern the behavior of an entire document
8959  class.
8960  (This does 
8961 \emph on
8962 not
8963 \emph default
8964  mean that they must appear in 
8965 \begin_inset Flex Code
8966 status collapsed
8967
8968 \begin_layout Plain Layout
8969 .layout
8970 \end_layout
8971
8972 \end_inset
8973
8974  files rather than in modules.
8975  A module can contain any layout tag.)
8976 \end_layout
8977
8978 \begin_layout Description
8979
8980 \change_inserted -712698321 1526899478
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985
8986 \change_inserted -712698321 1526898610
8987 AddToCiteEngine <engine>
8988 \end_layout
8989
8990 \end_inset
8991
8992  Extends the possibilities for displaying citation references.
8993  See 
8994 \begin_inset CommandInset ref
8995 LatexCommand ref
8996 reference "subsec:Citation-engine-description"
8997 plural "false"
8998 caps "false"
8999 noprefix "false"
9000
9001 \end_inset
9002
9003  for details.
9004  Must end with 
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009
9010 \change_inserted -712698321 1526898823
9011 End
9012 \change_unchanged
9013
9014 \end_layout
9015
9016 \end_inset
9017
9018 .
9019 \end_layout
9020
9021 \begin_layout Description
9022 \begin_inset Flex Code
9023 status collapsed
9024
9025 \begin_layout Plain Layout
9026 AddToHTMLPreamble
9027 \end_layout
9028
9029 \end_inset
9030
9031  Adds information that will be output in the 
9032 \begin_inset Flex Code
9033 status collapsed
9034
9035 \begin_layout Plain Layout
9036 <head>
9037 \end_layout
9038
9039 \end_inset
9040
9041  block when the document is output to XHTML.
9042  Typically, this would be used to output CSS style information, but it can
9043  be used for anything that can appear in 
9044 \begin_inset Flex Code
9045 status collapsed
9046
9047 \begin_layout Plain Layout
9048 <head>
9049 \end_layout
9050
9051 \end_inset
9052
9053 .
9054  Must end with 
9055 \begin_inset Quotes eld
9056 \end_inset
9057
9058
9059 \begin_inset Flex Code
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 EndPreamble
9064 \end_layout
9065
9066 \end_inset
9067
9068
9069 \begin_inset Quotes erd
9070 \end_inset
9071
9072 .
9073 \end_layout
9074
9075 \begin_layout Description
9076 \begin_inset Flex Code
9077 status collapsed
9078
9079 \begin_layout Plain Layout
9080 AddToPreamble
9081 \end_layout
9082
9083 \end_inset
9084
9085  Adds information to the document preamble.
9086  Must end with
9087 \begin_inset Newline newline
9088 \end_inset
9089
9090
9091 \begin_inset Quotes eld
9092 \end_inset
9093
9094
9095 \begin_inset Flex Code
9096 status collapsed
9097
9098 \begin_layout Plain Layout
9099 EndPreamble
9100 \end_layout
9101
9102 \end_inset
9103
9104
9105 \begin_inset Quotes erd
9106 \end_inset
9107
9108 .
9109 \end_layout
9110
9111 \begin_layout Description
9112 \begin_inset Flex Code
9113 status collapsed
9114
9115 \begin_layout Plain Layout
9116 CiteEngine <engine>
9117 \end_layout
9118
9119 \end_inset
9120
9121  Defines the possibilities for displaying citation references.
9122  See 
9123 \begin_inset CommandInset ref
9124 LatexCommand ref
9125 reference "subsec:Citation-engine-description"
9126 plural "false"
9127 caps "false"
9128 noprefix "false"
9129
9130 \end_inset
9131
9132  for details.
9133  Must end with 
9134 \begin_inset Quotes eld
9135 \end_inset
9136
9137
9138 \begin_inset Flex Code
9139 status collapsed
9140
9141 \begin_layout Plain Layout
9142 End
9143 \end_layout
9144
9145 \end_inset
9146
9147
9148 \begin_inset Quotes erd
9149 \end_inset
9150
9151 .
9152  Primarily used in cite engine files (see 
9153 \begin_inset CommandInset ref
9154 LatexCommand ref
9155 reference "subsec:Cite-Engine-Files"
9156 plural "false"
9157 caps "false"
9158 noprefix "false"
9159
9160 \end_inset
9161
9162 ).
9163
9164 \change_inserted -712698321 1526898530
9165  Note that if you specify this in a layout file or module, any cite engine
9166  definition will be overridden.
9167  Also see 
9168 \begin_inset Flex Code
9169 status collapsed
9170
9171 \begin_layout Plain Layout
9172
9173 \change_inserted -712698321 1526898530
9174 AddToCiteEngine
9175 \change_unchanged
9176
9177 \end_layout
9178
9179 \end_inset
9180
9181 .
9182 \change_unchanged
9183
9184 \end_layout
9185
9186 \begin_layout Description
9187 \begin_inset Flex Code
9188 status collapsed
9189
9190 \begin_layout Plain Layout
9191 CiteFormat
9192 \end_layout
9193
9194 \end_inset
9195
9196  Defines formats for use in the display of bibliographic information.
9197  See 
9198 \begin_inset CommandInset ref
9199 LatexCommand ref
9200 reference "subsec:Citation-format-description"
9201
9202 \end_inset
9203
9204  for details.
9205  Must end with 
9206 \begin_inset Quotes eld
9207 \end_inset
9208
9209
9210 \begin_inset Flex Code
9211 status collapsed
9212
9213 \begin_layout Plain Layout
9214 End
9215 \end_layout
9216
9217 \end_inset
9218
9219
9220 \begin_inset Quotes erd
9221 \end_inset
9222
9223 .
9224  Primarily used in cite engine files (see 
9225 \begin_inset CommandInset ref
9226 LatexCommand ref
9227 reference "subsec:Cite-Engine-Files"
9228 plural "false"
9229 caps "false"
9230 noprefix "false"
9231
9232 \end_inset
9233
9234 ).
9235
9236 \change_inserted -712698321 1526898585
9237  A cite format defined in a layout or module will override the cite engine
9238  definition.
9239 \change_unchanged
9240
9241 \end_layout
9242
9243 \begin_layout Description
9244 \begin_inset Flex Code
9245 status collapsed
9246
9247 \begin_layout Plain Layout
9248 CiteFramework
9249 \end_layout
9250
9251 \end_inset
9252
9253  [
9254 \begin_inset Flex Code
9255 status collapsed
9256
9257 \begin_layout Plain Layout
9258
9259 \emph on
9260 bibtex
9261 \end_layout
9262
9263 \end_inset
9264
9265 ,
9266 \begin_inset Flex Code
9267 status collapsed
9268
9269 \begin_layout Plain Layout
9270 biblatex
9271 \end_layout
9272
9273 \end_inset
9274
9275 ] Determines whether 
9276 \family sans
9277 Biblatex
9278 \family default
9279  or Bib\SpecialChar TeX
9280  is used to generate a Bibliography.
9281  Primarily used in cite engine files (see 
9282 \begin_inset CommandInset ref
9283 LatexCommand ref
9284 reference "subsec:Cite-Engine-Files"
9285 plural "false"
9286 caps "false"
9287 noprefix "false"
9288
9289 \end_inset
9290
9291 ).
9292 \end_layout
9293
9294 \begin_layout Description
9295 \begin_inset Flex Code
9296 status collapsed
9297
9298 \begin_layout Plain Layout
9299 ClassOptions
9300 \end_layout
9301
9302 \end_inset
9303
9304  Describes various global options supported by the document class.
9305  See 
9306 \begin_inset CommandInset ref
9307 LatexCommand ref
9308 reference "subsec:ClassOptions"
9309
9310 \end_inset
9311
9312  for a description.
9313  Must end with 
9314 \begin_inset Quotes eld
9315 \end_inset
9316
9317
9318 \begin_inset Flex Code
9319 status collapsed
9320
9321 \begin_layout Plain Layout
9322 End
9323 \end_layout
9324
9325 \end_inset
9326
9327
9328 \begin_inset Quotes erd
9329 \end_inset
9330
9331 .
9332 \end_layout
9333
9334 \begin_layout Description
9335 \begin_inset Flex Code
9336 status collapsed
9337
9338 \begin_layout Plain Layout
9339 Columns
9340 \end_layout
9341
9342 \end_inset
9343
9344  [
9345 \begin_inset Flex Code
9346 status collapsed
9347
9348 \begin_layout Plain Layout
9349
9350 \emph on
9351 1
9352 \end_layout
9353
9354 \end_inset
9355
9356 ,
9357 \begin_inset space \thinspace{}
9358 \end_inset
9359
9360
9361 \begin_inset Flex Code
9362 status collapsed
9363
9364 \begin_layout Plain Layout
9365 2
9366 \end_layout
9367
9368 \end_inset
9369
9370 ] Whether the class should 
9371 \emph on
9372 default
9373 \emph default
9374  to having one or two columns.
9375  Can be changed in the 
9376 \begin_inset Flex Noun
9377 status collapsed
9378
9379 \begin_layout Plain Layout
9380 Document\SpecialChar menuseparator
9381 Settings
9382 \end_layout
9383
9384 \end_inset
9385
9386  dialog.
9387 \end_layout
9388
9389 \begin_layout Description
9390 \begin_inset Flex Code
9391 status collapsed
9392
9393 \begin_layout Plain Layout
9394 Counter
9395 \end_layout
9396
9397 \end_inset
9398
9399  [
9400 \begin_inset Flex Code
9401 status collapsed
9402
9403 \begin_layout Plain Layout
9404 string
9405 \end_layout
9406
9407 \end_inset
9408
9409 ] This sequence defines the properties for a counter.
9410  If the counter does not yet exist, it is created; if it does exist, it
9411  is modified.
9412  Must end with 
9413 \begin_inset Quotes eld
9414 \end_inset
9415
9416
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 End
9422 \end_layout
9423
9424 \end_inset
9425
9426
9427 \begin_inset Quotes erd
9428 \end_inset
9429
9430 .
9431 \begin_inset Newline newline
9432 \end_inset
9433
9434 See 
9435 \begin_inset CommandInset ref
9436 LatexCommand ref
9437 reference "subsec:Counters"
9438
9439 \end_inset
9440
9441  for details on counters.
9442 \end_layout
9443
9444 \begin_layout Description
9445 \begin_inset Flex Code
9446 status collapsed
9447
9448 \begin_layout Plain Layout
9449 DefaultFont
9450 \end_layout
9451
9452 \end_inset
9453
9454  Sets the default font used to display the document.
9455  See 
9456 \begin_inset CommandInset ref
9457 LatexCommand ref
9458 reference "subsec:Font-description"
9459
9460 \end_inset
9461
9462  for how to declare fonts.
9463  Must end with 
9464 \begin_inset Quotes eld
9465 \end_inset
9466
9467
9468 \begin_inset Flex Code
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472 EndFont
9473 \end_layout
9474
9475 \end_inset
9476
9477
9478 \begin_inset Quotes erd
9479 \end_inset
9480
9481 .
9482 \end_layout
9483
9484 \begin_layout Description
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 DefaultModule
9490 \end_layout
9491
9492 \end_inset
9493
9494  [
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 <module>
9500 \end_layout
9501
9502 \end_inset
9503
9504 ] Specifies a module to be included by default with this document class.
9505  The module is specified as filename without the 
9506 \begin_inset Flex Code
9507 status collapsed
9508
9509 \begin_layout Plain Layout
9510 .module
9511 \end_layout
9512
9513 \end_inset
9514
9515  extension.
9516  The user can still remove the module, but it will be active at the outset.
9517  (This applies only when new files are created, or when this class is chosen
9518  for an existing document.)
9519 \end_layout
9520
9521 \begin_layout Description
9522 \begin_inset Flex Code
9523 status collapsed
9524
9525 \begin_layout Plain Layout
9526 DefaultStyle
9527 \end_layout
9528
9529 \end_inset
9530
9531  [
9532 \begin_inset Flex Code
9533 status collapsed
9534
9535 \begin_layout Plain Layout
9536 <style>
9537 \end_layout
9538
9539 \end_inset
9540
9541 ] This is the style that will be assigned to new paragraphs, usually 
9542 \begin_inset Flex Noun
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 Standard
9547 \end_layout
9548
9549 \end_inset
9550
9551 .
9552  This will default to the first defined style if not given, but you are
9553  encouraged to use this directive.
9554 \end_layout
9555
9556 \begin_layout Description
9557 \begin_inset Flex Code
9558 status collapsed
9559
9560 \begin_layout Plain Layout
9561 ExcludesModule
9562 \end_layout
9563
9564 \end_inset
9565
9566  [
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 <module>
9572 \end_layout
9573
9574 \end_inset
9575
9576 ] This tag indicates that the module (which is specified by filename without
9577  the 
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 .module
9583 \end_layout
9584
9585 \end_inset
9586
9587  extension) cannot be used with this document class.
9588  This might be used in a journal-specific layout file to prevent, say, the
9589  use of the 
9590 \begin_inset Flex Code
9591 status collapsed
9592
9593 \begin_layout Plain Layout
9594 theorems-sec
9595 \end_layout
9596
9597 \end_inset
9598
9599  module that numbers theorems by section.
9600  This tag may 
9601 \emph on
9602 not
9603 \emph default
9604  be used in a module.
9605  Modules have their own way of excluding other modules (see 
9606 \begin_inset CommandInset ref
9607 LatexCommand ref
9608 reference "subsec:Layout-modules"
9609
9610 \end_inset
9611
9612 ).
9613 \end_layout
9614
9615 \begin_layout Description
9616 \begin_inset Flex Code
9617 status collapsed
9618
9619 \begin_layout Plain Layout
9620 Float
9621 \end_layout
9622
9623 \end_inset
9624
9625  Defines a new float.
9626  See 
9627 \begin_inset CommandInset ref
9628 LatexCommand ref
9629 reference "subsec:Floats"
9630
9631 \end_inset
9632
9633  for details.
9634  Must end with 
9635 \begin_inset Quotes eld
9636 \end_inset
9637
9638
9639 \begin_inset Flex Code
9640 status collapsed
9641
9642 \begin_layout Plain Layout
9643 End
9644 \end_layout
9645
9646 \end_inset
9647
9648
9649 \begin_inset Quotes erd
9650 \end_inset
9651
9652 .
9653 \end_layout
9654
9655 \begin_layout Description
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 HTMLPreamble
9661 \end_layout
9662
9663 \end_inset
9664
9665  Sets the information that will be output in the 
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670 <head>
9671 \end_layout
9672
9673 \end_inset
9674
9675  block when this document class is output to XHTML.
9676  Note that this will completely override any prior 
9677 \begin_inset Flex Code
9678 status collapsed
9679
9680 \begin_layout Plain Layout
9681 HTMLPreamble
9682 \end_layout
9683
9684 \end_inset
9685
9686  or 
9687 \begin_inset Flex Code
9688 status collapsed
9689
9690 \begin_layout Plain Layout
9691 AddToHTMLPreamble
9692 \end_layout
9693
9694 \end_inset
9695
9696  declarations.
9697  (Use
9698 \begin_inset Newline newline
9699 \end_inset
9700
9701
9702 \begin_inset Flex Code
9703 status collapsed
9704
9705 \begin_layout Plain Layout
9706 AddToHTMLPreamble
9707 \end_layout
9708
9709 \end_inset
9710
9711  if you just want to add material to the preamble.) Must end with 
9712 \begin_inset Quotes eld
9713 \end_inset
9714
9715
9716 \begin_inset Flex Code
9717 status collapsed
9718
9719 \begin_layout Plain Layout
9720 EndPreamble
9721 \end_layout
9722
9723 \end_inset
9724
9725
9726 \begin_inset Quotes erd
9727 \end_inset
9728
9729 .
9730 \end_layout
9731
9732 \begin_layout Description
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737 HTMLTOCSection
9738 \end_layout
9739
9740 \end_inset
9741
9742  [
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 <style>
9748 \end_layout
9749
9750 \end_inset
9751
9752 ] The style to use for the table of contents, bibliography, and so forth,
9753  when the document is output to HTML.
9754  For articles, this should normally be 
9755 \begin_inset Flex Code
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759 Section
9760 \end_layout
9761
9762 \end_inset
9763
9764 ; for books 
9765 \begin_inset Flex Code
9766 status collapsed
9767
9768 \begin_layout Plain Layout
9769 Chapter
9770 \end_layout
9771
9772 \end_inset
9773
9774 .
9775  If it is not given, then \SpecialChar LyX
9776  will attempt to figure out which layout to use.
9777 \end_layout
9778
9779 \begin_layout Description
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 IfCounter
9785 \end_layout
9786
9787 \end_inset
9788
9789  [
9790 \begin_inset Flex Code
9791 status collapsed
9792
9793 \begin_layout Plain Layout
9794 <counter>
9795 \end_layout
9796
9797 \end_inset
9798
9799 ] Modifies the properties of the given counter.
9800  If the counter does not exist, the statement is ignored.
9801  Must end with 
9802 \begin_inset Quotes eld
9803 \end_inset
9804
9805
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810 End
9811 \end_layout
9812
9813 \end_inset
9814
9815
9816 \begin_inset Quotes erd
9817 \end_inset
9818
9819 .
9820 \begin_inset Newline newline
9821 \end_inset
9822
9823 See 
9824 \begin_inset CommandInset ref
9825 LatexCommand ref
9826 reference "subsec:Counters"
9827
9828 \end_inset
9829
9830  for details on counters.
9831 \end_layout
9832
9833 \begin_layout Description
9834 \begin_inset Flex Code
9835 status collapsed
9836
9837 \begin_layout Plain Layout
9838 Input
9839 \end_layout
9840
9841 \end_inset
9842
9843  [
9844 \begin_inset Flex Code
9845 status collapsed
9846
9847 \begin_layout Plain Layout
9848 <filename>
9849 \end_layout
9850
9851 \end_inset
9852
9853 ] This allows you to include another layout definition file within yours
9854  to avoid duplicating commands.
9855  Common examples are the standard layout files, for example, 
9856 \begin_inset Flex Code
9857 status collapsed
9858
9859 \begin_layout Plain Layout
9860 stdclass.inc
9861 \end_layout
9862
9863 \end_inset
9864
9865 , which contains most of the basic layouts.
9866 \end_layout
9867
9868 \begin_layout Description
9869 \begin_inset Flex Code
9870 status collapsed
9871
9872 \begin_layout Plain Layout
9873 InsetLayout
9874 \end_layout
9875
9876 \end_inset
9877
9878  [
9879 \begin_inset Flex Code
9880 status collapsed
9881
9882 \begin_layout Plain Layout
9883 <type>
9884 \end_layout
9885
9886 \end_inset
9887
9888 ] This section (re-)defines the layout of an inset.
9889  It can be applied to an existing inset or to a new, user-defined inset,
9890  e.g., a new character style.
9891  Must end with 
9892 \begin_inset Quotes eld
9893 \end_inset
9894
9895
9896 \begin_inset Flex Code
9897 status collapsed
9898
9899 \begin_layout Plain Layout
9900 End
9901 \end_layout
9902
9903 \end_inset
9904
9905
9906 \begin_inset Quotes erd
9907 \end_inset
9908
9909 .
9910 \begin_inset Newline newline
9911 \end_inset
9912
9913 See 
9914 \begin_inset CommandInset ref
9915 LatexCommand ref
9916 reference "subsec:Flex-insets-and"
9917
9918 \end_inset
9919
9920  for more information.
9921  
9922 \end_layout
9923
9924 \begin_layout Description
9925 \begin_inset Flex Code
9926 status collapsed
9927
9928 \begin_layout Plain Layout
9929 LeftMargin
9930 \end_layout
9931
9932 \end_inset
9933
9934  [
9935 \begin_inset Flex Code
9936 status collapsed
9937
9938 \begin_layout Plain Layout
9939 string
9940 \end_layout
9941
9942 \end_inset
9943
9944 ] A string that indicates the width of the left margin on the screen, for
9945  example, 
9946 \begin_inset Quotes eld
9947 \end_inset
9948
9949
9950 \begin_inset Flex Code
9951 status collapsed
9952
9953 \begin_layout Plain Layout
9954 MMMMM
9955 \end_layout
9956
9957 \end_inset
9958
9959
9960 \begin_inset Quotes erd
9961 \end_inset
9962
9963 .
9964  (Note that this is not a `length', like 
9965 \begin_inset Quotes eld
9966 \end_inset
9967
9968 2ex
9969 \begin_inset Quotes erd
9970 \end_inset
9971
9972 .)
9973 \end_layout
9974
9975 \begin_layout Description
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980 MaxCiteNames
9981 \end_layout
9982
9983 \end_inset
9984
9985  [
9986 \begin_inset Flex Code
9987 status collapsed
9988
9989 \begin_layout Plain Layout
9990 integer
9991 \end_layout
9992
9993 \end_inset
9994
9995 ] An integer that determines the maximal number of names displayed in an
9996  author-year citation before the citation switches to 
9997 \begin_inset Quotes eld
9998 \end_inset
9999
10000 FirstAuthor et al.
10001 \begin_inset Quotes erd
10002 \end_inset
10003
10004 .
10005  Primarily used in cite engine files (see 
10006 \begin_inset CommandInset ref
10007 LatexCommand ref
10008 reference "subsec:Cite-Engine-Files"
10009 plural "false"
10010 caps "false"
10011 noprefix "false"
10012
10013 \end_inset
10014
10015 ).
10016 \end_layout
10017
10018 \begin_layout Description
10019 \begin_inset Flex Code
10020 status collapsed
10021
10022 \begin_layout Plain Layout
10023 ModifyStyle
10024 \end_layout
10025
10026 \end_inset
10027
10028  [
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 <style>
10034 \end_layout
10035
10036 \end_inset
10037
10038 ] Modifies the properties of the given paragraph style.
10039  If the style does not exist, this section is ignored.
10040  Must end with 
10041 \begin_inset Quotes eld
10042 \end_inset
10043
10044
10045 \begin_inset Flex Code
10046 status collapsed
10047
10048 \begin_layout Plain Layout
10049 End
10050 \end_layout
10051
10052 \end_inset
10053
10054
10055 \begin_inset Quotes erd
10056 \end_inset
10057
10058 .
10059 \end_layout
10060
10061 \begin_layout Description
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 NoCounter
10067 \end_layout
10068
10069 \end_inset
10070
10071  [
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 <counter>
10077 \end_layout
10078
10079 \end_inset
10080
10081 ] Deletes an existing counter, usually one defined in an included file.
10082 \end_layout
10083
10084 \begin_layout Description
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 NoFloat
10090 \end_layout
10091
10092 \end_inset
10093
10094  [
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099 <float>
10100 \end_layout
10101
10102 \end_inset
10103
10104 ] Deletes an existing float.
10105  This is particularly useful when you want to suppress a float that has
10106  been defined in an input file.
10107 \end_layout
10108
10109 \begin_layout Description
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 NoStyle
10115 \end_layout
10116
10117 \end_inset
10118
10119  [
10120 \begin_inset Flex Code
10121 status collapsed
10122
10123 \begin_layout Plain Layout
10124 <style>
10125 \end_layout
10126
10127 \end_inset
10128
10129 ] Deletes an existing style.
10130 \end_layout
10131
10132 \begin_layout Description
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 OutlinerName
10138 \end_layout
10139
10140 \end_inset
10141
10142  [
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 <type>
10148 \end_layout
10149
10150 \end_inset
10151
10152 ] [
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 <string>
10158 \end_layout
10159
10160 \end_inset
10161
10162 ] Define a new table of contents with type 
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 <type>
10168 \end_layout
10169
10170 \end_inset
10171
10172  and name 
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 <string>
10178 \end_layout
10179
10180 \end_inset
10181
10182 .
10183  See also the AddToToc commands.
10184 \end_layout
10185
10186 \begin_layout Description
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 OutputFormat
10192 \end_layout
10193
10194 \end_inset
10195
10196  [
10197 \begin_inset Flex Code
10198 status collapsed
10199
10200 \begin_layout Plain Layout
10201 <format>
10202 \end_layout
10203
10204 \end_inset
10205
10206 ] The file format (as defined in the \SpecialChar LyX
10207  preferences) produced by this document
10208  class.
10209  It is mainly useful when 
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 OutputType
10215 \end_layout
10216
10217 \end_inset
10218
10219  is 
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 literate
10225 \end_layout
10226
10227 \end_inset
10228
10229  and one wants to define a new type of literate document.
10230  The format is reset to 
10231 \begin_inset Quotes eld
10232 \end_inset
10233
10234
10235 \begin_inset Flex Code
10236 status collapsed
10237
10238 \begin_layout Plain Layout
10239 docbook
10240 \end_layout
10241
10242 \end_inset
10243
10244
10245 \begin_inset Quotes erd
10246 \end_inset
10247
10248  or 
10249 \begin_inset Quotes eld
10250 \end_inset
10251
10252
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 latex
10258 \end_layout
10259
10260 \end_inset
10261
10262
10263 \begin_inset Quotes erd
10264 \end_inset
10265
10266  when the corresponding 
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 OutputType
10272 \end_layout
10273
10274 \end_inset
10275
10276  parameter is encountered.
10277 \end_layout
10278
10279 \begin_layout Description
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 OutputType
10285 \end_layout
10286
10287 \end_inset
10288
10289  [
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294
10295 \emph on
10296 lat
10297 \emph default
10298 ex
10299 \end_layout
10300
10301 \end_inset
10302
10303
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 docbook
10309 \end_layout
10310
10311 \end_inset
10312
10313
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 literate
10319 \end_layout
10320
10321 \end_inset
10322
10323 ] Specifies what sort of output documents using this class will produce.
10324 \end_layout
10325
10326 \begin_layout Description
10327 \begin_inset Flex Code
10328 status collapsed
10329
10330 \begin_layout Plain Layout
10331 PackageOptions
10332 \end_layout
10333
10334 \end_inset
10335
10336  [
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 string
10342 \end_layout
10343
10344 \end_inset
10345
10346  
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 string
10352 \end_layout
10353
10354 \end_inset
10355
10356 ] Specifies options, given in the second string, for the package named by
10357  the first string.
10358  For example, 
10359 \begin_inset Quotes eld
10360 \end_inset
10361
10362
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 PackageOptions natbib square
10368 \end_layout
10369
10370 \end_inset
10371
10372
10373 \begin_inset Quotes erd
10374 \end_inset
10375
10376  will cause 
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 natbib
10382 \end_layout
10383
10384 \end_inset
10385
10386  to be loaded with the 
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 square
10392 \end_layout
10393
10394 \end_inset
10395
10396  option.
10397  (For \SpecialChar TeX
10398 perts, this causes \SpecialChar LyX
10399  to output: 
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404
10405 \backslash
10406 PassOptionsToPackage{natbib}{square}
10407 \end_layout
10408
10409 \end_inset
10410
10411  prior to loading 
10412 \begin_inset Flex Code
10413 status collapsed
10414
10415 \begin_layout Plain Layout
10416 natbib
10417 \end_layout
10418
10419 \end_inset
10420
10421 .)
10422 \end_layout
10423
10424 \begin_layout Description
10425 \begin_inset Flex Code
10426 status collapsed
10427
10428 \begin_layout Plain Layout
10429 PageStyle
10430 \end_layout
10431
10432 \end_inset
10433
10434  [
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439
10440 \emph on
10441 plain
10442 \end_layout
10443
10444 \end_inset
10445
10446
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 empty
10452 \end_layout
10453
10454 \end_inset
10455
10456
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 headings
10462 \end_layout
10463
10464 \end_inset
10465
10466 ] The default pagestyle.
10467  Can be changed in the 
10468 \begin_inset Flex Noun
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 Document\SpecialChar menuseparator
10473 Settings
10474 \end_layout
10475
10476 \end_inset
10477
10478  dialog.
10479 \end_layout
10480
10481 \begin_layout Description
10482 \begin_inset Flex Code
10483 status collapsed
10484
10485 \begin_layout Plain Layout
10486 Preamble
10487 \end_layout
10488
10489 \end_inset
10490
10491  Sets the preamble for the \SpecialChar LaTeX
10492  document.
10493  Note that this will completely override any prior 
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 Preamble
10499 \end_layout
10500
10501 \end_inset
10502
10503  or 
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 AddToPreamble
10509 \end_layout
10510
10511 \end_inset
10512
10513  declarations.
10514  (Use 
10515 \begin_inset Flex Code
10516 status collapsed
10517
10518 \begin_layout Plain Layout
10519 AddToPreamble
10520 \end_layout
10521
10522 \end_inset
10523
10524  if you just want to add material to the preamble.) Must end with 
10525 \begin_inset Quotes eld
10526 \end_inset
10527
10528
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 EndPreamble
10534 \end_layout
10535
10536 \end_inset
10537
10538
10539 \begin_inset Quotes erd
10540 \end_inset
10541
10542 .
10543 \end_layout
10544
10545 \begin_layout Description
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 Provides
10551 \end_layout
10552
10553 \end_inset
10554
10555  [
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 string
10561 \end_layout
10562
10563 \end_inset
10564
10565 ] [
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570
10571 \emph on
10572 0
10573 \end_layout
10574
10575 \end_inset
10576
10577 ,
10578 \begin_inset space \thinspace{}
10579 \end_inset
10580
10581
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 1
10587 \end_layout
10588
10589 \end_inset
10590
10591 ] Whether the class already provides the feature 
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 string
10597 \end_layout
10598
10599 \end_inset
10600
10601 .
10602  A feature is in general the name of a package (e.
10603 \begin_inset space \thinspace{}
10604 \end_inset
10605
10606 g.
10607 \begin_inset space \space{}
10608 \end_inset
10609
10610
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 amsmath
10616 \end_layout
10617
10618 \end_inset
10619
10620  or 
10621 \begin_inset Flex Code
10622 status collapsed
10623
10624 \begin_layout Plain Layout
10625 makeidx
10626 \end_layout
10627
10628 \end_inset
10629
10630 ) or a macro (e.
10631 \begin_inset space \thinspace{}
10632 \end_inset
10633
10634 g.
10635 \begin_inset space \space{}
10636 \end_inset
10637
10638
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 url
10644 \end_layout
10645
10646 \end_inset
10647
10648  or 
10649 \begin_inset Flex Code
10650 status collapsed
10651
10652 \begin_layout Plain Layout
10653 boldsymbol
10654 \end_layout
10655
10656 \end_inset
10657
10658 ).
10659  See 
10660 \begin_inset CommandInset ref
10661 LatexCommand ref
10662 reference "chap:List-of-functions"
10663
10664 \end_inset
10665
10666  for the list of features.
10667 \end_layout
10668
10669 \begin_layout Description
10670 \begin_inset Flex Code
10671 status collapsed
10672
10673 \begin_layout Plain Layout
10674 ProvidesModule
10675 \end_layout
10676
10677 \end_inset
10678
10679  [
10680 \begin_inset Flex Code
10681 status collapsed
10682
10683 \begin_layout Plain Layout
10684 string
10685 \end_layout
10686
10687 \end_inset
10688
10689 ] Indicates that this layout provides the functionality of the module mentioned,
10690  which should be specified by the filename without the 
10691 \begin_inset Flex Code
10692 status collapsed
10693
10694 \begin_layout Plain Layout
10695 .module
10696 \end_layout
10697
10698 \end_inset
10699
10700  extension.
10701  This will typically be used if the layout includes the module directly,
10702  rather than using the 
10703 \begin_inset Flex Code
10704 status collapsed
10705
10706 \begin_layout Plain Layout
10707 DefaultModule
10708 \end_layout
10709
10710 \end_inset
10711
10712  tag to indicate that it ought to be used.
10713  It could also be used in a module that provided an alternate implementation
10714  of the same functionality.
10715 \end_layout
10716
10717 \begin_layout Description
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 ProvideStyle
10723 \end_layout
10724
10725 \end_inset
10726
10727  [
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 <style>
10733 \end_layout
10734
10735 \end_inset
10736
10737 ] Creates a new paragraph style if it does not already exist.
10738  If the style does exist, this section is ignored.
10739  Must end with 
10740 \begin_inset Quotes eld
10741 \end_inset
10742
10743
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 End
10749 \end_layout
10750
10751 \end_inset
10752
10753
10754 \begin_inset Quotes erd
10755 \end_inset
10756
10757 .
10758 \end_layout
10759
10760 \begin_layout Description
10761 \begin_inset Flex Code
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765 Requires
10766 \end_layout
10767
10768 \end_inset
10769
10770  [
10771 \begin_inset Flex Code
10772 status collapsed
10773
10774 \begin_layout Plain Layout
10775 string
10776 \end_layout
10777
10778 \end_inset
10779
10780 ] Whether the class requires the feature 
10781 \begin_inset Flex Code
10782 status collapsed
10783
10784 \begin_layout Plain Layout
10785 string
10786 \end_layout
10787
10788 \end_inset
10789
10790 .
10791  Multiple features must be separated by commas.
10792  Note that you can only request supported features.
10793  (See 
10794 \begin_inset CommandInset ref
10795 LatexCommand ref
10796 reference "chap:List-of-functions"
10797
10798 \end_inset
10799
10800  for the list of features.).
10801  If you require a package with specific options, you can additionally use
10802  
10803 \begin_inset Flex Code
10804 status collapsed
10805
10806 \begin_layout Plain Layout
10807 PackageOptions
10808 \end_layout
10809
10810 \end_inset
10811
10812 .
10813 \end_layout
10814
10815 \begin_layout Description
10816 \begin_inset Flex Code
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 RightMargin
10821 \end_layout
10822
10823 \end_inset
10824
10825  [
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 string
10831 \end_layout
10832
10833 \end_inset
10834
10835 ] A string that indicates the width of the right margin on the screen, for
10836  example, 
10837 \begin_inset Quotes eld
10838 \end_inset
10839
10840
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 MMMMM
10846 \end_layout
10847
10848 \end_inset
10849
10850
10851 \begin_inset Quotes erd
10852 \end_inset
10853
10854 .
10855 \end_layout
10856
10857 \begin_layout Description
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 SecNumDepth
10863 \end_layout
10864
10865 \end_inset
10866
10867  [
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872 int=3
10873 \end_layout
10874
10875 \end_inset
10876
10877 ] Sets which divisions get numbered.
10878  Corresponds to the
10879 \begin_inset Newline newline
10880 \end_inset
10881
10882
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 secnumdepth
10888 \end_layout
10889
10890 \end_inset
10891
10892  counter in \SpecialChar LaTeX
10893 .
10894 \end_layout
10895
10896 \begin_layout Description
10897 \begin_inset Flex Code
10898 status collapsed
10899
10900 \begin_layout Plain Layout
10901 Sides
10902 \end_layout
10903
10904 \end_inset
10905
10906  [
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911
10912 \emph on
10913 1
10914 \end_layout
10915
10916 \end_inset
10917
10918 ,
10919 \begin_inset space \thinspace{}
10920 \end_inset
10921
10922
10923 \begin_inset Flex Code
10924 status collapsed
10925
10926 \begin_layout Plain Layout
10927 2
10928 \end_layout
10929
10930 \end_inset
10931
10932 ] Whether the class-default should be printing on one or both sides of the
10933  paper.
10934  Can be changed in the 
10935 \begin_inset Flex Noun
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 Document\SpecialChar menuseparator
10940 Settings
10941 \end_layout
10942
10943 \end_inset
10944
10945  dialog.
10946 \end_layout
10947
10948 \begin_layout Description
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 Style
10954 \end_layout
10955
10956 \end_inset
10957
10958  [
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963 <name>
10964 \end_layout
10965
10966 \end_inset
10967
10968 ] This sequence defines a paragraph style.
10969  If the style does not yet exist, it is created; if it does exist, its parameter
10970 s are modified.
10971  Must end with 
10972 \begin_inset Quotes eld
10973 \end_inset
10974
10975
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 End
10981 \end_layout
10982
10983 \end_inset
10984
10985
10986 \begin_inset Quotes erd
10987 \end_inset
10988
10989 .
10990 \begin_inset Newline newline
10991 \end_inset
10992
10993 See 
10994 \begin_inset CommandInset ref
10995 LatexCommand ref
10996 reference "subsec:Paragraph-Styles"
10997
10998 \end_inset
10999
11000  for details on paragraph styles.
11001 \change_inserted -712698321 1553617804
11002
11003 \end_layout
11004
11005 \begin_layout Description
11006
11007 \change_inserted -712698321 1553617862
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012
11013 \change_inserted -712698321 1553617809
11014 TableStyle
11015 \end_layout
11016
11017 \end_inset
11018
11019  [
11020 \begin_inset Flex Code
11021 status collapsed
11022
11023 \begin_layout Plain Layout
11024
11025 \change_inserted -712698321 1553617805
11026 <name>
11027 \end_layout
11028
11029 \end_inset
11030
11031 ] defines the default table style that is used when inserting a table.
11032  The following styles are available:
11033 \end_layout
11034
11035 \begin_deeper
11036 \begin_layout Itemize
11037
11038 \change_inserted -712698321 1554308039
11039 \begin_inset Flex Code
11040 status collapsed
11041
11042 \begin_layout Plain Layout
11043
11044 \change_inserted -712698321 1554307928
11045 Formal_with_Footline
11046 \change_unchanged
11047
11048 \end_layout
11049
11050 \end_inset
11051
11052 : formal (
11053 \begin_inset Quotes eld
11054 \end_inset
11055
11056 booktabs
11057 \begin_inset Quotes erd
11058 \end_inset
11059
11060 ) style with horizontal lines only, using a bold top and bottom line, the
11061  first and last row are additionally separated from the table body with
11062  a thin middle line.
11063 \end_layout
11064
11065 \begin_layout Itemize
11066
11067 \change_inserted -712698321 1554308087
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072
11073 \change_inserted -712698321 1554308042
11074 Formal_without_Footline
11075 \end_layout
11076
11077 \end_inset
11078
11079 : same as the above, but the last row is not separated with a middle line
11080  from the body.
11081 \end_layout
11082
11083 \begin_layout Itemize
11084
11085 \change_inserted -712698321 1553618031
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090
11091 \change_inserted -712698321 1553618006
11092 Simple_Grid
11093 \end_layout
11094
11095 \end_inset
11096
11097 : Simple table lines.
11098 \end_layout
11099
11100 \begin_layout Itemize
11101
11102 \change_inserted -712698321 1553618309
11103 \begin_inset Flex Code
11104 status collapsed
11105
11106 \begin_layout Plain Layout
11107
11108 \change_inserted -712698321 1553618031
11109 Grid_with_Head
11110 \end_layout
11111
11112 \end_inset
11113
11114 : Like 
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119
11120 \change_inserted -712698321 1553618043
11121 Simple_Grid
11122 \end_layout
11123
11124 \end_inset
11125
11126 , but with the header column offset with a second horizontal line.
11127  This is also the default style of \SpecialChar LyX
11128 .
11129 \end_layout
11130
11131 \begin_layout Itemize
11132
11133 \change_inserted -712698321 1553618280
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138
11139 \change_inserted -712698321 1553618261
11140 No_Borders
11141 \end_layout
11142
11143 \end_inset
11144
11145 : Table without lines.
11146 \change_unchanged
11147
11148 \end_layout
11149
11150 \end_deeper
11151 \begin_layout Description
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 TitleLatexName
11157 \end_layout
11158
11159 \end_inset
11160
11161  [
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 string="maketitle"
11167 \end_layout
11168
11169 \end_inset
11170
11171 ] The name of the command or environment to be used with 
11172 \begin_inset Flex Code
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176 TitleLatexType
11177 \end_layout
11178
11179 \end_inset
11180
11181 .
11182 \end_layout
11183
11184 \begin_layout Description
11185 \begin_inset Flex Code
11186 status collapsed
11187
11188 \begin_layout Plain Layout
11189 TitleLatexType
11190 \end_layout
11191
11192 \end_inset
11193
11194  [
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199
11200 \emph on
11201 CommandAfter
11202 \end_layout
11203
11204 \end_inset
11205
11206
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211 Environment
11212 \end_layout
11213
11214 \end_inset
11215
11216 ] Indicates what kind of markup is used to define the title of a document.
11217  
11218 \begin_inset Flex Code
11219 status collapsed
11220
11221 \begin_layout Plain Layout
11222 CommandAfter
11223 \end_layout
11224
11225 \end_inset
11226
11227  means that the macro with name 
11228 \begin_inset Flex Code
11229 status collapsed
11230
11231 \begin_layout Plain Layout
11232 TitleLatexName
11233 \end_layout
11234
11235 \end_inset
11236
11237  will be inserted after the last layout which has 
11238 \begin_inset Quotes eld
11239 \end_inset
11240
11241
11242 \begin_inset Flex Code
11243 status collapsed
11244
11245 \begin_layout Plain Layout
11246 InTitle
11247 \begin_inset space ~
11248 \end_inset
11249
11250 1
11251 \end_layout
11252
11253 \end_inset
11254
11255
11256 \begin_inset Quotes erd
11257 \end_inset
11258
11259 .
11260  
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 Environment
11266 \end_layout
11267
11268 \end_inset
11269
11270  corresponds to the case where all layouts which have 
11271 \begin_inset Quotes eld
11272 \end_inset
11273
11274
11275 \begin_inset Flex Code
11276 status collapsed
11277
11278 \begin_layout Plain Layout
11279 InTitle
11280 \begin_inset space ~
11281 \end_inset
11282
11283 1
11284 \end_layout
11285
11286 \end_inset
11287
11288
11289 \begin_inset Quotes erd
11290 \end_inset
11291
11292  should be enclosed into the 
11293 \begin_inset Flex Code
11294 status collapsed
11295
11296 \begin_layout Plain Layout
11297 TitleLatexName
11298 \end_layout
11299
11300 \end_inset
11301
11302  environment.
11303 \end_layout
11304
11305 \begin_layout Description
11306 \begin_inset Flex Code
11307 status collapsed
11308
11309 \begin_layout Plain Layout
11310 TocDepth
11311 \end_layout
11312
11313 \end_inset
11314
11315  [
11316 \begin_inset Flex Code
11317 status collapsed
11318
11319 \begin_layout Plain Layout
11320 int=3
11321 \end_layout
11322
11323 \end_inset
11324
11325 ] Sets which divisions are included in the table of contents.
11326  Corresponds to the 
11327 \begin_inset Flex Code
11328 status collapsed
11329
11330 \begin_layout Plain Layout
11331 tocdepth
11332 \end_layout
11333
11334 \end_inset
11335
11336  counter in \SpecialChar LaTeX
11337 .
11338 \end_layout
11339
11340 \begin_layout Subsection
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 ClassOptions
11346 \end_layout
11347
11348 \end_inset
11349
11350  section
11351 \begin_inset CommandInset label
11352 LatexCommand label
11353 name "subsec:ClassOptions"
11354
11355 \end_inset
11356
11357
11358 \end_layout
11359
11360 \begin_layout Standard
11361 The 
11362 \begin_inset Flex Code
11363 status collapsed
11364
11365 \begin_layout Plain Layout
11366 ClassOptions
11367 \end_layout
11368
11369 \end_inset
11370
11371  section can contain the following entries:
11372 \end_layout
11373
11374 \begin_layout Description
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379 FontSize
11380 \end_layout
11381
11382 \end_inset
11383
11384  [
11385 \begin_inset Flex Code
11386 status collapsed
11387
11388 \begin_layout Plain Layout
11389 string="10|11|12"
11390 \end_layout
11391
11392 \end_inset
11393
11394 ] The list of available font sizes for the document's main font, separated
11395  by 
11396 \begin_inset Quotes eld
11397 \end_inset
11398
11399
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 |
11405 \end_layout
11406
11407 \end_inset
11408
11409
11410 \begin_inset Quotes erd
11411 \end_inset
11412
11413 .
11414 \end_layout
11415
11416 \begin_layout Description
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 Header
11422 \end_layout
11423
11424 \end_inset
11425
11426  Used to set the DTD line with XML-based output classes.
11427  E.
11428 \begin_inset space \thinspace{}
11429 \end_inset
11430
11431 g.: PUBLIC 
11432 \begin_inset Quotes eld
11433 \end_inset
11434
11435 -//OASIS//DTD DocBook V4.2//EN
11436 \begin_inset Quotes erd
11437 \end_inset
11438
11439 .
11440 \end_layout
11441
11442 \begin_layout Description
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447 PageStyle
11448 \end_layout
11449
11450 \end_inset
11451
11452  [
11453 \begin_inset Flex Code
11454 status collapsed
11455
11456 \begin_layout Plain Layout
11457 string="empty|plain|headings|fancy"
11458 \end_layout
11459
11460 \end_inset
11461
11462 ] The list of available page sty\SpecialChar softhyphen
11463 les, separated by 
11464 \begin_inset Quotes eld
11465 \end_inset
11466
11467
11468 \begin_inset Flex Code
11469 status collapsed
11470
11471 \begin_layout Plain Layout
11472 |
11473 \end_layout
11474
11475 \end_inset
11476
11477
11478 \begin_inset Quotes erd
11479 \end_inset
11480
11481 .
11482 \end_layout
11483
11484 \begin_layout Description
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 Other
11490 \end_layout
11491
11492 \end_inset
11493
11494  [
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 string=""
11500 \end_layout
11501
11502 \end_inset
11503
11504 ] Some document class options, separated by a comma, that will be added
11505  to the optional part of the 
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510
11511 \backslash
11512 documentclass
11513 \end_layout
11514
11515 \end_inset
11516
11517  command.
11518 \end_layout
11519
11520 \begin_layout Standard
11521 The 
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 ClassOptions
11527 \end_layout
11528
11529 \end_inset
11530
11531  section must end with 
11532 \begin_inset Quotes eld
11533 \end_inset
11534
11535
11536 \begin_inset Flex Code
11537 status collapsed
11538
11539 \begin_layout Plain Layout
11540 End
11541 \end_layout
11542
11543 \end_inset
11544
11545
11546 \begin_inset Quotes erd
11547 \end_inset
11548
11549 .
11550 \end_layout
11551
11552 \begin_layout Subsection
11553 Paragraph styles
11554 \begin_inset CommandInset label
11555 LatexCommand label
11556 name "subsec:Paragraph-Styles"
11557
11558 \end_inset
11559
11560
11561 \end_layout
11562
11563 \begin_layout Standard
11564 A paragraph style description looks like this:
11565 \begin_inset Foot
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569 Note that this will either define a new style or modify an existing one.
11570 \end_layout
11571
11572 \end_inset
11573
11574
11575 \end_layout
11576
11577 \begin_layout LyX-Code
11578 Style 
11579 \family roman
11580 \emph on
11581 name
11582 \end_layout
11583
11584 \begin_layout LyX-Code
11585  ...
11586 \end_layout
11587
11588 \begin_layout LyX-Code
11589 End
11590 \end_layout
11591
11592 \begin_layout Standard
11593 where the following commands are allowed:
11594 \end_layout
11595
11596 \begin_layout Description
11597 \begin_inset Flex Code
11598 status collapsed
11599
11600 \begin_layout Plain Layout
11601 AddToToc
11602 \end_layout
11603
11604 \end_inset
11605
11606  [
11607 \begin_inset Flex Code
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 string
11612 \end_layout
11613
11614 \end_inset
11615
11616 =""] This paragraph will appear in the table of contents of the given type.
11617  An empty string disables.
11618  See also the OutlinerName and the IsTocCaption commands.
11619  Default: disabled.
11620 \end_layout
11621
11622 \begin_layout Description
11623 \begin_inset Flex Code
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627 Align
11628 \end_layout
11629
11630 \end_inset
11631
11632  [
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637
11638 \emph on
11639 block
11640 \emph default
11641 , left, right, center
11642 \end_layout
11643
11644 \end_inset
11645
11646 ] Paragraph alignment.
11647 \end_layout
11648
11649 \begin_layout Description
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654 AlignPossible
11655 \end_layout
11656
11657 \end_inset
11658
11659  [
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664
11665 \emph on
11666 block
11667 \emph default
11668 , left, right, center
11669 \end_layout
11670
11671 \end_inset
11672
11673 ] A comma separated list of permitted alignments.
11674  (Some \SpecialChar LaTeX
11675  styles prohibit certain alignments, since those wouldn't make sense.
11676  For example a right-aligned or centered enumeration isn't possible.)
11677 \end_layout
11678
11679 \begin_layout Description
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684 Argument
11685 \end_layout
11686
11687 \end_inset
11688
11689  [
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 int
11695 \end_layout
11696
11697 \end_inset
11698
11699 ] Defines argument number <int> of a command\SpecialChar breakableslash
11700 environment associated with
11701  the current style.
11702  This is useful for things like section headings, and only makes sense with
11703  \SpecialChar LaTeX
11704 .
11705  Every (optional or required) argument of a command or environment – except
11706  for the required argument that is associated with the content of the paragraph
11707  itself – has a separate definition, where the number specifies the order
11708  of the arguments.
11709  The definition must end with 
11710 \begin_inset Flex Code
11711 status collapsed
11712
11713 \begin_layout Plain Layout
11714 EndArgument
11715 \end_layout
11716
11717 \end_inset
11718
11719 .
11720  So a command with two optional arguments has:
11721 \end_layout
11722
11723 \begin_deeper
11724 \begin_layout Quote
11725
11726 \family typewriter
11727 Argument 1
11728 \end_layout
11729
11730 \begin_layout Quote
11731
11732 \family typewriter
11733 ...
11734 \end_layout
11735
11736 \begin_layout Quote
11737
11738 \family typewriter
11739 EndArgument
11740 \end_layout
11741
11742 \begin_layout Quote
11743
11744 \family typewriter
11745 Argument 2
11746 \end_layout
11747
11748 \begin_layout Quote
11749
11750 \family typewriter
11751 ...
11752 \end_layout
11753
11754 \begin_layout Quote
11755
11756 \family typewriter
11757 EndArgument
11758 \end_layout
11759
11760 \begin_layout Standard
11761 Inside the 
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 Argument
11767 \end_layout
11768
11769 \end_inset
11770
11771  definition, the following specifications are possible:
11772 \end_layout
11773
11774 \begin_layout Itemize
11775 \begin_inset Flex Code
11776 status collapsed
11777
11778 \begin_layout Plain Layout
11779 LabelString
11780 \end_layout
11781
11782 \end_inset
11783
11784  
11785 \begin_inset Flex Code
11786 status collapsed
11787
11788 \begin_layout Plain Layout
11789 [string]
11790 \end_layout
11791
11792 \end_inset
11793
11794  The string that will appear both in the menu (to insert this argument)
11795  and on the argument inset button (unless you also specify a separate 
11796 \begin_inset Flex Code
11797 status collapsed
11798
11799 \begin_layout Plain Layout
11800 MenuString
11801 \end_layout
11802
11803 \end_inset
11804
11805 ).
11806  For the menu, you can define an accelerator by appending the respective
11807  character to the string, divided by 
11808 \begin_inset Quotes eld
11809 \end_inset
11810
11811 |
11812 \begin_inset Quotes erd
11813 \end_inset
11814
11815  (e.
11816 \begin_inset space \thinspace{}
11817 \end_inset
11818
11819 g.
11820 \begin_inset space \space{}
11821 \end_inset
11822
11823
11824 \begin_inset Quotes eld
11825 \end_inset
11826
11827
11828 \begin_inset Flex Code
11829 status collapsed
11830
11831 \begin_layout Plain Layout
11832 Short Title|S
11833 \end_layout
11834
11835 \end_inset
11836
11837
11838 \begin_inset Quotes erd
11839 \end_inset
11840
11841 ).
11842 \end_layout
11843
11844 \begin_layout Itemize
11845 \begin_inset Flex Code
11846 status collapsed
11847
11848 \begin_layout Plain Layout
11849 MenuString
11850 \end_layout
11851
11852 \end_inset
11853
11854  
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 [string]
11860 \end_layout
11861
11862 \end_inset
11863
11864  A separate string for the menu.
11865  You can define an accelerator by appending the respective character to
11866  the string, divided by 
11867 \begin_inset Quotes eld
11868 \end_inset
11869
11870 |
11871 \begin_inset Quotes erd
11872 \end_inset
11873
11874  (e.
11875 \begin_inset space \thinspace{}
11876 \end_inset
11877
11878 g.
11879 \begin_inset space \space{}
11880 \end_inset
11881
11882
11883 \begin_inset Quotes eld
11884 \end_inset
11885
11886
11887 \begin_inset Flex Code
11888 status collapsed
11889
11890 \begin_layout Plain Layout
11891 Short Title|S
11892 \end_layout
11893
11894 \end_inset
11895
11896
11897 \begin_inset Quotes erd
11898 \end_inset
11899
11900 ).
11901  This specification is optional.
11902  If it is not given the 
11903 \begin_inset Flex Code
11904 status collapsed
11905
11906 \begin_layout Plain Layout
11907 LabelString
11908 \end_layout
11909
11910 \end_inset
11911
11912  will be used instead for the menu.
11913 \end_layout
11914
11915 \begin_layout Itemize
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 Tooltip
11921 \end_layout
11922
11923 \end_inset
11924
11925  
11926 \begin_inset Flex Code
11927 status collapsed
11928
11929 \begin_layout Plain Layout
11930 [string]
11931 \end_layout
11932
11933 \end_inset
11934
11935  A longer explanatory text that appears in the tooltip when hovering over
11936  the argument inset.
11937 \end_layout
11938
11939 \begin_layout Itemize
11940 \begin_inset Flex Code
11941 status collapsed
11942
11943 \begin_layout Plain Layout
11944 Mandatory
11945 \end_layout
11946
11947 \end_inset
11948
11949  [
11950 \begin_inset Flex Code
11951 status collapsed
11952
11953 \begin_layout Plain Layout
11954
11955 \emph on
11956 0
11957 \end_layout
11958
11959 \end_inset
11960
11961 ,
11962 \begin_inset space \thinspace{}
11963 \end_inset
11964
11965
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 1
11971 \end_layout
11972
11973 \end_inset
11974
11975 ] Declare if this is a mandatory (1) or an optional (0) argument.
11976  Mandatory arguments will be output empty if not given, while optional arguments
11977  will not be output at all.
11978  By default, mandatory arguments are delimited by 
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 {...}
11984 \end_layout
11985
11986 \end_inset
11987
11988 , while optional arguments are delimited by 
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993 [...]
11994 \end_layout
11995
11996 \end_inset
11997
11998
11999 \change_inserted -712698321 1555579782
12000
12001 \end_layout
12002
12003 \begin_layout Itemize
12004
12005 \change_inserted -712698321 1555579780
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010
12011 \change_inserted -712698321 1555579780
12012 NewlineCmd
12013 \end_layout
12014
12015 \end_inset
12016
12017  
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022
12023 \change_inserted -712698321 1555579780
12024 [string]
12025 \end_layout
12026
12027 \end_inset
12028
12029  Option to define a different command (from the default 
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034
12035 \change_inserted -712698321 1555579780
12036
12037 \backslash
12038
12039 \backslash
12040
12041 \end_layout
12042
12043 \end_inset
12044
12045 ) to be used for line breaks.
12046  The initial backslash must not be specified.
12047 \change_unchanged
12048
12049 \end_layout
12050
12051 \begin_layout Itemize
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 Requires
12057 \end_layout
12058
12059 \end_inset
12060
12061  
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 [int=0]
12067 \end_layout
12068
12069 \end_inset
12070
12071  defines another argument (by its number) which this argument requires to
12072  be output if it is itself output.
12073  E.
12074 \begin_inset space \thinspace{}
12075 \end_inset
12076
12077 g., in \SpecialChar LaTeX
12078  commands, optional arguments often require previous optional arguments
12079  to be output (at least empty), as in 
12080 \begin_inset Flex Code
12081 status collapsed
12082
12083 \begin_layout Plain Layout
12084
12085 \backslash
12086 command[][argument]{text}
12087 \end_layout
12088
12089 \end_inset
12090
12091 .
12092  This can be achieved by the statement 
12093 \begin_inset Flex Code
12094 status collapsed
12095
12096 \begin_layout Plain Layout
12097 Requires 1
12098 \end_layout
12099
12100 \end_inset
12101
12102  within 
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107 Argument 2
12108 \end_layout
12109
12110 \end_inset
12111
12112 .
12113 \end_layout
12114
12115 \begin_layout Itemize
12116 \begin_inset Flex Code
12117 status collapsed
12118
12119 \begin_layout Plain Layout
12120 LeftDelim
12121 \end_layout
12122
12123 \end_inset
12124
12125  
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 [string]
12131 \end_layout
12132
12133 \end_inset
12134
12135  defines a custom left delimiter (instead of 
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140 {
12141 \end_layout
12142
12143 \end_inset
12144
12145  or 
12146 \begin_inset Flex Code
12147 status collapsed
12148
12149 \begin_layout Plain Layout
12150 [
12151 \end_layout
12152
12153 \end_inset
12154
12155 ).
12156  A line break in the output can be indicated by 
12157 \begin_inset Flex Code
12158 status collapsed
12159
12160 \begin_layout Plain Layout
12161 <br/>
12162 \end_layout
12163
12164 \end_inset
12165
12166 .
12167 \end_layout
12168
12169 \begin_layout Itemize
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 RightDelim
12175 \end_layout
12176
12177 \end_inset
12178
12179  
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 [string]
12185 \end_layout
12186
12187 \end_inset
12188
12189  defines a custom right delimiter (instead of 
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 }
12195 \end_layout
12196
12197 \end_inset
12198
12199  or 
12200 \begin_inset Flex Code
12201 status collapsed
12202
12203 \begin_layout Plain Layout
12204 ]
12205 \end_layout
12206
12207 \end_inset
12208
12209 ).
12210  A line break in the output can be indicated by 
12211 \begin_inset Flex Code
12212 status collapsed
12213
12214 \begin_layout Plain Layout
12215 <br/>
12216 \end_layout
12217
12218 \end_inset
12219
12220 .
12221 \end_layout
12222
12223 \begin_layout Itemize
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 DefaultArg
12229 \end_layout
12230
12231 \end_inset
12232
12233  
12234 \begin_inset Flex Code
12235 status collapsed
12236
12237 \begin_layout Plain Layout
12238 [string]
12239 \end_layout
12240
12241 \end_inset
12242
12243  defines an argument that is inserted if and only if no user-specified arguments
12244  were given, i.
12245 \begin_inset space \thinspace{}
12246 \end_inset
12247
12248 e.
12249 \begin_inset space \space{}
12250 \end_inset
12251
12252 if no argument inset has been inserted (note that also an empty argument
12253  inset omits the DefaultArg).
12254  Multiple arguments need to be separated by comma.
12255 \end_layout
12256
12257 \begin_layout Itemize
12258 \begin_inset Flex Code
12259 status collapsed
12260
12261 \begin_layout Plain Layout
12262 PresetArg
12263 \end_layout
12264
12265 \end_inset
12266
12267  
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272 [string]
12273 \end_layout
12274
12275 \end_inset
12276
12277  defines an argument that is inserted in any case (alone or in addition
12278  to user-specified arguments).
12279  Multiple arguments need to be separated by comma.
12280 \end_layout
12281
12282 \begin_layout Itemize
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 Font
12288 \end_layout
12289
12290 \end_inset
12291
12292  The font used for the argument content, see 
12293 \begin_inset CommandInset ref
12294 LatexCommand ref
12295 reference "subsec:Font-description"
12296
12297 \end_inset
12298
12299 .
12300 \change_inserted -712698321 1559484228
12301
12302 \end_layout
12303
12304 \begin_layout Itemize
12305
12306 \change_inserted -712698321 1559484228
12307 \begin_inset Flex Code
12308 status collapsed
12309
12310 \begin_layout Plain Layout
12311
12312 \change_inserted -712698321 1559484228
12313 FreeSpacing
12314 \end_layout
12315
12316 \end_inset
12317
12318  [
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323
12324 \change_inserted -712698321 1559484228
12325
12326 \emph on
12327 0
12328 \end_layout
12329
12330 \end_inset
12331
12332 ,
12333 \begin_inset space \thinspace{}
12334 \end_inset
12335
12336
12337 \begin_inset Flex Code
12338 status collapsed
12339
12340 \begin_layout Plain Layout
12341
12342 \change_inserted -712698321 1559484228
12343 1
12344 \end_layout
12345
12346 \end_inset
12347
12348 ] As with paragraph styles, see 
12349 \begin_inset CommandInset ref
12350 LatexCommand ref
12351 reference "subsec:Paragraph-Styles"
12352
12353 \end_inset
12354
12355 .
12356 \change_unchanged
12357
12358 \end_layout
12359
12360 \begin_layout Itemize
12361 \begin_inset Flex Code
12362 status collapsed
12363
12364 \begin_layout Plain Layout
12365 LabelFont
12366 \end_layout
12367
12368 \end_inset
12369
12370  The font used for the label; see 
12371 \begin_inset CommandInset ref
12372 LatexCommand ref
12373 reference "subsec:Font-description"
12374
12375 \end_inset
12376
12377 .
12378 \end_layout
12379
12380 \begin_layout Itemize
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 Decoration
12386 \end_layout
12387
12388 \end_inset
12389
12390  [
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395
12396 \emph on
12397 Classic
12398 \emph default
12399 , Minimalistic, Conglomerate
12400 \end_layout
12401
12402 \end_inset
12403
12404 ] describes the rendering style used for the inset's frame and buttons.
12405 \end_layout
12406
12407 \begin_layout Itemize
12408 \begin_inset Flex Code
12409 status collapsed
12410
12411 \begin_layout Plain Layout
12412 AutoInsert
12413 \end_layout
12414
12415 \end_inset
12416
12417  
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 [int=0]
12423 \end_layout
12424
12425 \end_inset
12426
12427  If this is set to 
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 1
12433 \end_layout
12434
12435 \end_inset
12436
12437 , this argument is automatically inserted when the respective style is selected.
12438
12439 \change_deleted -712698321 1559484200
12440  Currently, only one argument per style\SpecialChar breakableslash
12441 layout can be automatically inserted.
12442 \change_unchanged
12443
12444 \end_layout
12445
12446 \begin_layout Itemize
12447
12448 \change_inserted -712698321 1559491402
12449 \begin_inset Flex Code
12450 status collapsed
12451
12452 \begin_layout Plain Layout
12453
12454 \change_inserted -712698321 1559490711
12455 InsertOnNewline
12456 \end_layout
12457
12458 \end_inset
12459
12460  
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465
12466 \change_inserted -712698321 1559490703
12467 [int=0]
12468 \end_layout
12469
12470 \end_inset
12471
12472  If this is set to 
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477
12478 \change_inserted -712698321 1559490703
12479 1
12480 \end_layout
12481
12482 \end_inset
12483
12484 , this argument will be inserted on a new line with 
12485 \begin_inset Flex Code
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489
12490 \change_inserted -712698321 1559491402
12491 AutoInsert
12492 \end_layout
12493
12494 \end_inset
12495
12496  (only available within Flex insets).
12497 \end_layout
12498
12499 \begin_layout Itemize
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 InsertCotext
12505 \end_layout
12506
12507 \end_inset
12508
12509  
12510 \begin_inset Flex Code
12511 status collapsed
12512
12513 \begin_layout Plain Layout
12514 [int=0]
12515 \end_layout
12516
12517 \end_inset
12518
12519  If this is set to 
12520 \begin_inset Flex Code
12521 status collapsed
12522
12523 \begin_layout Plain Layout
12524 1
12525 \end_layout
12526
12527 \end_inset
12528
12529 , this argument will be inserted with a copy of the co-text (either selected
12530  text or the whole paragraph) as content.
12531 \end_layout
12532
12533 \begin_layout Itemize
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 PassThru
12539 \end_layout
12540
12541 \end_inset
12542
12543  [
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548
12549 \emph on
12550 inherited
12551 \emph default
12552 , true, false
12553 \end_layout
12554
12555 \end_inset
12556
12557 ] Whether the contents of this argument should be output in raw form, meaning
12558  without special translations that \SpecialChar LaTeX
12559  would require.
12560  By default, the 
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 PassThru
12566 \end_layout
12567
12568 \end_inset
12569
12570  status is inherited by the inset or paragraph layout the argument belongs
12571  to, true and false change the status for the given argument only.
12572 \end_layout
12573
12574 \begin_layout Itemize
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 PassThruChars
12580 \end_layout
12581
12582 \end_inset
12583
12584  [
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 string of characters
12590 \end_layout
12591
12592 \end_inset
12593
12594 ]
12595 \family typewriter
12596  
12597 \family default
12598 Defines individual characters
12599 \begin_inset Newline linebreak
12600 \end_inset
12601
12602 that should be output in raw form, meaning without special translations
12603  that \SpecialChar LaTeX
12604  would require.
12605  Note that, contrary to PassThru, this needs to be explicitly defined for
12606  arguments.
12607  That is, arguments do not inherit PassThruChars from their parent inset
12608  or layout.
12609 \end_layout
12610
12611 \begin_layout Itemize
12612 \begin_inset Flex Code
12613 status collapsed
12614
12615 \begin_layout Plain Layout
12616 IsTocCaption
12617 \end_layout
12618
12619 \end_inset
12620
12621  [
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626
12627 \emph on
12628 0
12629 \end_layout
12630
12631 \end_inset
12632
12633 ,
12634 \begin_inset space \thinspace{}
12635 \end_inset
12636
12637
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 1
12643 \end_layout
12644
12645 \end_inset
12646
12647 ] If this is set to 1, the argument will output its content in the corresponding
12648  item in the table of contents.
12649  See AddToToc.
12650 \end_layout
12651
12652 \begin_layout Standard
12653 By default, the text entered in the \SpecialChar LyX
12654  workarea in the respective layout is
12655  the last (mandatory) argument of a command if the 
12656 \begin_inset Flex Code
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660 LatexType
12661 \end_layout
12662
12663 \end_inset
12664
12665  is 
12666 \begin_inset Flex Code
12667 status collapsed
12668
12669 \begin_layout Plain Layout
12670 Command
12671 \end_layout
12672
12673 \end_inset
12674
12675 .
12676  However, arguments with the prefix 
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 post:
12682 \end_layout
12683
12684 \end_inset
12685
12686  are output after this workarea argument.
12687  Note that post-argument numbering restarts at 1, so the first argument
12688  following the workarea argument is 
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 post:1
12694 \end_layout
12695
12696 \end_inset
12697
12698 .
12699  Post-arguments are ignored in any other 
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704 LatexType
12705 \end_layout
12706
12707 \end_inset
12708
12709  than 
12710 \begin_inset Flex Code
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 Command
12715 \end_layout
12716
12717 \end_inset
12718
12719 .
12720 \end_layout
12721
12722 \begin_layout Standard
12723 Arguments for list 
12724 \begin_inset Flex Code
12725 status collapsed
12726
12727 \begin_layout Plain Layout
12728
12729 \backslash
12730 item
12731 \end_layout
12732
12733 \end_inset
12734
12735 s (as in 
12736 \begin_inset Flex Code
12737 status collapsed
12738
12739 \begin_layout Plain Layout
12740
12741 \backslash
12742 item[foo]
12743 \end_layout
12744
12745 \end_inset
12746
12747 ) have the prefix 
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752 item:
12753 \end_layout
12754
12755 \end_inset
12756
12757  followed by the number (e.
12758 \begin_inset space \thinspace{}
12759 \end_inset
12760
12761 g.
12762 \begin_inset space \space{}
12763 \end_inset
12764
12765
12766 \begin_inset Flex Code
12767 status collapsed
12768
12769 \begin_layout Plain Layout
12770 Argument item:1
12771 \end_layout
12772
12773 \end_inset
12774
12775 ).
12776 \change_inserted -712698321 1534487781
12777
12778 \end_layout
12779
12780 \begin_layout Standard
12781
12782 \change_inserted -712698321 1534488561
12783 Finally, there is a special argument type with the prefix 
12784 \begin_inset Flex Code
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788
12789 \change_inserted -712698321 1534487844
12790 listpreamble:
12791 \change_unchanged
12792
12793 \end_layout
12794
12795 \end_inset
12796
12797 .
12798  It is not really an argument, but uses the argument interface (thus, the
12799  prefix is also followed by a number, e.
12800 \begin_inset space \thinspace{}
12801 \end_inset
12802
12803 g.
12804  
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809
12810 \change_inserted -712698321 1534488412
12811 Argument listpreamble:1
12812 \end_layout
12813
12814 \end_inset
12815
12816 ).
12817  As the name implies, it is targeted at lists such as 
12818 \family sans
12819 Itemize
12820 \family default
12821
12822 \family sans
12823 Enumerate
12824 \family default
12825
12826 \family sans
12827 Description
12828 \family default
12829 , or 
12830 \family sans
12831 Bibliography
12832 \family default
12833 .
12834  Its content will be output at the list start, before the first 
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839
12840 \change_inserted -712698321 1534488058
12841
12842 \backslash
12843 item
12844 \change_unchanged
12845
12846 \end_layout
12847
12848 \end_inset
12849
12850 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12851 ).
12852  This way, users can insert redefinitions (of lengths etc.) to individual
12853  lists.
12854  By default, these arguments do not have a delimiter.
12855 \change_unchanged
12856
12857 \end_layout
12858
12859 \end_deeper
12860 \begin_layout Description
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 AutoNests
12866 \end_layout
12867
12868 \end_inset
12869
12870  Includes a comma-separated list of layouts that should be nested in and
12871  after the current layout.
12872  Only makes sense for nestable layouts (such as environments).
12873  Must be ended by 
12874 \begin_inset Quotes eld
12875 \end_inset
12876
12877
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882 EndAutoNests
12883 \end_layout
12884
12885 \end_inset
12886
12887
12888 \begin_inset Quotes erd
12889 \end_inset
12890
12891 .
12892  See also 
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 IsAutoNestedBy
12898 \end_layout
12899
12900 \end_inset
12901
12902 .
12903 \end_layout
12904
12905 \begin_layout Description
12906 \begin_inset Flex Code
12907 status collapsed
12908
12909 \begin_layout Plain Layout
12910 BabelPreamble
12911 \end_layout
12912
12913 \end_inset
12914
12915  Note that this will completely override any prior 
12916 \begin_inset Flex Code
12917 status collapsed
12918
12919 \begin_layout Plain Layout
12920 BabelPreamble
12921 \end_layout
12922
12923 \end_inset
12924
12925  declaration for this style.
12926  Must end with 
12927 \begin_inset Quotes eld
12928 \end_inset
12929
12930
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935 EndBabelPreamble
12936 \end_layout
12937
12938 \end_inset
12939
12940
12941 \begin_inset Quotes erd
12942 \end_inset
12943
12944 .
12945  See 
12946 \begin_inset CommandInset ref
12947 LatexCommand ref
12948 reference "subsec:I18n"
12949
12950 \end_inset
12951
12952  for details on its use.
12953 \end_layout
12954
12955 \begin_layout Description
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 BottomSep
12961 \end_layout
12962
12963 \end_inset
12964
12965  [
12966 \begin_inset Flex Code
12967 status collapsed
12968
12969 \begin_layout Plain Layout
12970 float=0
12971 \end_layout
12972
12973 \end_inset
12974
12975 ]
12976 \begin_inset Foot
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 Note that a `float' here is a real number, such as: 1.5.
12981 \end_layout
12982
12983 \end_inset
12984
12985  The vertical space with which the last of a chain of paragraphs with this
12986  style is separated from the following paragraph.
12987  If the next paragraph has another style, the separations are not simply
12988  added, but the maximum is taken.
12989 \end_layout
12990
12991 \begin_layout Description
12992 \begin_inset Flex Code
12993 status collapsed
12994
12995 \begin_layout Plain Layout
12996 Category
12997 \end_layout
12998
12999 \end_inset
13000
13001  [
13002 \begin_inset Flex Code
13003 status collapsed
13004
13005 \begin_layout Plain Layout
13006 string
13007 \end_layout
13008
13009 \end_inset
13010
13011 ] The category for this style.
13012  This is used to group related styles in the style combobox on the toolbar.
13013  Any string can be used, but you may want to use existing categories with
13014  your own styles.
13015  
13016 \end_layout
13017
13018 \begin_layout Description
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023 CommandDepth
13024 \end_layout
13025
13026 \end_inset
13027
13028  Depth of XML command.
13029  Used only with XML-type formats.
13030 \end_layout
13031
13032 \begin_layout Description
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 CopyStyle
13038 \end_layout
13039
13040 \end_inset
13041
13042  [
13043 \begin_inset Flex Code
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047 string
13048 \end_layout
13049
13050 \end_inset
13051
13052 ] Copies all the features of an existing style into the current one.
13053  
13054 \end_layout
13055
13056 \begin_layout Description
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 DependsOn
13062 \end_layout
13063
13064 \end_inset
13065
13066  [
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071 <name>
13072 \end_layout
13073
13074 \end_inset
13075
13076 ] The name of a style whose preamble should be output 
13077 \emph on
13078 before
13079 \emph default
13080  this one.
13081  This allows to ensure some ordering of the preamble snippets when macros
13082  definitions depend on one another.
13083 \begin_inset Foot
13084 status collapsed
13085
13086 \begin_layout Plain Layout
13087 Note that, besides that functionality, there is no way to ensure any ordering
13088  of preambles.
13089  The ordering that you see in a given version of \SpecialChar LyX
13090  may change without warning
13091  in later versions.
13092 \end_layout
13093
13094 \end_inset
13095
13096
13097 \end_layout
13098
13099 \begin_layout Description
13100 \begin_inset Flex Code
13101 status collapsed
13102
13103 \begin_layout Plain Layout
13104 EndLabeltype
13105 \end_layout
13106
13107 \end_inset
13108
13109  [
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114
13115 \emph on
13116 No_Label
13117 \emph default
13118 , Box, Filled_Box, Static
13119 \end_layout
13120
13121 \end_inset
13122
13123 ] The type of label that stands at the end of the paragraph (or sequence
13124  of paragraphs if 
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 LatexType
13130 \end_layout
13131
13132 \end_inset
13133
13134  is
13135 \begin_inset Newline newline
13136 \end_inset
13137
13138
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 Environment
13144 \end_layout
13145
13146 \end_inset
13147
13148
13149 \begin_inset Flex Code
13150 status collapsed
13151
13152 \begin_layout Plain Layout
13153 Item_Environment
13154 \end_layout
13155
13156 \end_inset
13157
13158  or 
13159 \begin_inset Flex Code
13160 status collapsed
13161
13162 \begin_layout Plain Layout
13163 List_Environment
13164 \end_layout
13165
13166 \end_inset
13167
13168 ).
13169  
13170 \begin_inset Flex Code
13171 status collapsed
13172
13173 \begin_layout Plain Layout
13174 No_Label
13175 \end_layout
13176
13177 \end_inset
13178
13179  means 
13180 \begin_inset Quotes eld
13181 \end_inset
13182
13183 nothing
13184 \begin_inset Quotes erd
13185 \end_inset
13186
13187
13188 \begin_inset Flex Code
13189 status collapsed
13190
13191 \begin_layout Plain Layout
13192 Box
13193 \end_layout
13194
13195 \end_inset
13196
13197  (resp.
13198 \begin_inset space \space{}
13199 \end_inset
13200
13201
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206 Filled_Box
13207 \end_layout
13208
13209 \end_inset
13210
13211 ) is a white (resp.
13212 \begin_inset space ~
13213 \end_inset
13214
13215 black) square suitable for end of proof markers, 
13216 \begin_inset Flex Code
13217 status collapsed
13218
13219 \begin_layout Plain Layout
13220 Static
13221 \end_layout
13222
13223 \end_inset
13224
13225  is an explicit text string.
13226 \end_layout
13227
13228 \begin_layout Description
13229 \begin_inset Flex Code
13230 status collapsed
13231
13232 \begin_layout Plain Layout
13233 EndLabelString
13234 \end_layout
13235
13236 \end_inset
13237
13238  [
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243 string=""
13244 \end_layout
13245
13246 \end_inset
13247
13248 ] The string used for a label with a 
13249 \begin_inset Flex Code
13250 status collapsed
13251
13252 \begin_layout Plain Layout
13253 Static
13254 \end_layout
13255
13256 \end_inset
13257
13258
13259 \begin_inset Newline newline
13260 \end_inset
13261
13262
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 EndLabelType
13268 \end_layout
13269
13270 \end_inset
13271
13272 .
13273  
13274 \end_layout
13275
13276 \begin_layout Description
13277 \begin_inset Flex Code
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281 Font
13282 \end_layout
13283
13284 \end_inset
13285
13286  The font used for both the text body 
13287 \emph on
13288 and
13289 \emph default
13290  the label.
13291  See 
13292 \begin_inset CommandInset ref
13293 LatexCommand ref
13294 reference "subsec:Font-description"
13295
13296 \end_inset
13297
13298 .
13299  Note that defining this font automatically defines the 
13300 \begin_inset Flex Code
13301 status collapsed
13302
13303 \begin_layout Plain Layout
13304 LabelFont
13305 \end_layout
13306
13307 \end_inset
13308
13309  to the same value.
13310  So you should define this one first if you also want to define 
13311 \begin_inset Flex Code
13312 status collapsed
13313
13314 \begin_layout Plain Layout
13315 LabelFont
13316 \end_layout
13317
13318 \end_inset
13319
13320 .
13321 \end_layout
13322
13323 \begin_layout Description
13324 \begin_inset Flex Code
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 ForceLocal
13329 \end_layout
13330
13331 \end_inset
13332
13333  [
13334 \begin_inset Flex Code
13335 status collapsed
13336
13337 \begin_layout Plain Layout
13338 int=0
13339 \end_layout
13340
13341 \end_inset
13342
13343 ] Used for backporting new styles to stable \SpecialChar LyX
13344  versions.
13345  The first stable version that supports this tag is \SpecialChar LyX
13346  2.1.0.
13347  The argument is a number which may either be 0, -1 or any value greater
13348  than zero.
13349  If the 
13350 \begin_inset Flex Code
13351 status collapsed
13352
13353 \begin_layout Plain Layout
13354 ForceLocal
13355 \end_layout
13356
13357 \end_inset
13358
13359  flag of a style is greater than zero, it will always be written to the
13360  document header.
13361  If a .lyx file is read, the style definitions from the document header are
13362  added to the document class.
13363  Therefore even older \SpecialChar LyX
13364  versions can handle the style.
13365  The argument of 
13366 \begin_inset Flex Code
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370 ForceLocal
13371 \end_layout
13372
13373 \end_inset
13374
13375  is a version number: if the style is read, and the version number is less
13376  than the version number of the already existing style in the document class,
13377  the new style is ignored.
13378  If the version number is greater, the new style replaces the existing style.
13379  A value of -1 means an infinite version number, i.
13380 \begin_inset space \thinspace{}
13381 \end_inset
13382
13383 e.
13384 \begin_inset space \space{}
13385 \end_inset
13386
13387 the style is always used.
13388 \end_layout
13389
13390 \begin_layout Description
13391 \begin_inset Flex Code
13392 status collapsed
13393
13394 \begin_layout Plain Layout
13395 FreeSpacing
13396 \end_layout
13397
13398 \end_inset
13399
13400  [
13401 \begin_inset Flex Code
13402 status collapsed
13403
13404 \begin_layout Plain Layout
13405
13406 \emph on
13407 0
13408 \end_layout
13409
13410 \end_inset
13411
13412 ,
13413 \begin_inset space \thinspace{}
13414 \end_inset
13415
13416
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 1
13422 \end_layout
13423
13424 \end_inset
13425
13426 ] Usually \SpecialChar LyX
13427  does not allow you to insert more than one space between words,
13428  since a space is considered as the separation between two words, not a
13429  character or symbol of its own.
13430  This is a very fine thing but sometimes annoying, for example, when typing
13431  program code or plain \SpecialChar LaTeX
13432  code.
13433  For this reason, 
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438 FreeSpacing
13439 \end_layout
13440
13441 \end_inset
13442
13443  can be enabled.
13444  
13445 \change_deleted -495245474 1550490105
13446 Note that 
13447 \change_unchanged
13448 \SpecialChar LyX
13449  will create protected blanks for the additional blanks when in 
13450 \change_inserted -495245474 1550490096
13451
13452 \begin_inset Flex Code
13453 status collapsed
13454
13455 \begin_layout Plain Layout
13456
13457 \change_inserted -495245474 1550490089
13458 Passthru 1
13459 \end_layout
13460
13461 \end_inset
13462
13463  is not specified.
13464 \change_deleted -495245474 1550490116
13465 another mode than \SpecialChar LaTeX
13466 -mode.
13467
13468 \change_inserted -495245474 1550247760
13469  Note that 
13470 \begin_inset Flex Code
13471 status collapsed
13472
13473 \begin_layout Plain Layout
13474
13475 \change_inserted -495245474 1550247736
13476 FreeSpacing
13477 \end_layout
13478
13479 \end_inset
13480
13481  implies 
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486
13487 \change_inserted -495245474 1550247755
13488 KeepEmpty
13489 \end_layout
13490
13491 \end_inset
13492
13493 .
13494 \change_unchanged
13495
13496 \end_layout
13497
13498 \begin_layout Description
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 HTML*
13504 \end_layout
13505
13506 \end_inset
13507
13508  These tags are used with XHTML output.
13509  See 
13510 \begin_inset CommandInset ref
13511 LatexCommand ref
13512 reference "subsec:Paragraph-Style-XHTML"
13513
13514 \end_inset
13515
13516 .
13517 \end_layout
13518
13519 \begin_layout Description
13520 \begin_inset Flex Code
13521 status collapsed
13522
13523 \begin_layout Plain Layout
13524 InnerTag
13525 \end_layout
13526
13527 \end_inset
13528
13529  [FIXME] (Used only with XML-type formats.)
13530 \end_layout
13531
13532 \begin_layout Description
13533 \begin_inset Flex Code
13534 status collapsed
13535
13536 \begin_layout Plain Layout
13537 InPreamble
13538 \end_layout
13539
13540 \end_inset
13541
13542  [
13543 \begin_inset Flex Code
13544 status collapsed
13545
13546 \begin_layout Plain Layout
13547
13548 \emph on
13549 0
13550 \end_layout
13551
13552 \end_inset
13553
13554 ,
13555 \begin_inset space \thinspace{}
13556 \end_inset
13557
13558
13559 \begin_inset Flex Code
13560 status collapsed
13561
13562 \begin_layout Plain Layout
13563 1
13564 \end_layout
13565
13566 \end_inset
13567
13568 ] If 
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 1
13574 \end_layout
13575
13576 \end_inset
13577
13578 , marks the style as to be included in the document preamble and not in
13579  the document body.
13580  This is useful for document classes that want such information as the title
13581  and author to appear in the preamble.
13582  Note that this works only for styles for which the 
13583 \begin_inset Flex Code
13584 status collapsed
13585
13586 \begin_layout Plain Layout
13587 LatexType
13588 \end_layout
13589
13590 \end_inset
13591
13592  is 
13593 \begin_inset Flex Code
13594 status collapsed
13595
13596 \begin_layout Plain Layout
13597 Command
13598 \end_layout
13599
13600 \end_inset
13601
13602  or 
13603 \begin_inset Flex Code
13604 status collapsed
13605
13606 \begin_layout Plain Layout
13607 Paragraph
13608 \end_layout
13609
13610 \end_inset
13611
13612 .
13613 \end_layout
13614
13615 \begin_layout Description
13616 \begin_inset Flex Code
13617 status collapsed
13618
13619 \begin_layout Plain Layout
13620 InTitle
13621 \end_layout
13622
13623 \end_inset
13624
13625  [
13626 \begin_inset Flex Code
13627 status collapsed
13628
13629 \begin_layout Plain Layout
13630
13631 \emph on
13632 0
13633 \end_layout
13634
13635 \end_inset
13636
13637 ,
13638 \begin_inset space \thinspace{}
13639 \end_inset
13640
13641
13642 \begin_inset Flex Code
13643 status collapsed
13644
13645 \begin_layout Plain Layout
13646 1
13647 \end_layout
13648
13649 \end_inset
13650
13651 ] If 
13652 \begin_inset Flex Code
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656 1
13657 \end_layout
13658
13659 \end_inset
13660
13661 , marks the style as being part of a title block (see also the 
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 TitleLatexType
13667 \end_layout
13668
13669 \end_inset
13670
13671  and 
13672 \begin_inset Flex Code
13673 status collapsed
13674
13675 \begin_layout Plain Layout
13676 TitleLatexName
13677 \end_layout
13678
13679 \end_inset
13680
13681  global entries).
13682 \end_layout
13683
13684 \begin_layout Description
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 IsAutoNestedBy
13690 \end_layout
13691
13692 \end_inset
13693
13694  Includes a comma-separated list of layouts after which this one should
13695  be nested.
13696  Only makes sense with regard to nestable layouts (such as environments).
13697  Must be ended by 
13698 \begin_inset Quotes eld
13699 \end_inset
13700
13701
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 EndIsAutoNestedBy
13707 \end_layout
13708
13709 \end_inset
13710
13711
13712 \begin_inset Quotes erd
13713 \end_inset
13714
13715 .
13716  See also 
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 AutoNests
13722 \end_layout
13723
13724 \end_inset
13725
13726 .
13727 \end_layout
13728
13729 \begin_layout Description
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 IsTocCaption
13735 \end_layout
13736
13737 \end_inset
13738
13739  [
13740 \begin_inset Flex Code
13741 status collapsed
13742
13743 \begin_layout Plain Layout
13744
13745 \emph on
13746 0
13747 \end_layout
13748
13749 \end_inset
13750
13751 ,
13752 \begin_inset space \thinspace{}
13753 \end_inset
13754
13755
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 1
13761 \end_layout
13762
13763 \end_inset
13764
13765 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13766  of its contents in its item in the table of contents.
13767  Otherwise, only the label, if it exists, appears.
13768 \end_layout
13769
13770 \begin_layout Description
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775 ItemCommand
13776 \end_layout
13777
13778 \end_inset
13779
13780  [
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 string="item"
13786 \end_layout
13787
13788 \end_inset
13789
13790 ] The \SpecialChar LaTeX
13791  command sequence declaring an item in a list.
13792  The command is to be defined without the preceding backslash (the default
13793  is 
13794 \begin_inset Quotes eld
13795 \end_inset
13796
13797 item
13798 \begin_inset Quotes erd
13799 \end_inset
13800
13801 , resulting in 
13802 \begin_inset Flex Code
13803 status collapsed
13804
13805 \begin_layout Plain Layout
13806
13807 \backslash
13808 item
13809 \end_layout
13810
13811 \end_inset
13812
13813  in the \SpecialChar LaTeX
13814  output).
13815 \end_layout
13816
13817 \begin_layout Description
13818 \begin_inset Flex Code
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822 ItemSep
13823 \end_layout
13824
13825 \end_inset
13826
13827  [
13828 \begin_inset Flex Code
13829 status collapsed
13830
13831 \begin_layout Plain Layout
13832 float=0
13833 \end_layout
13834
13835 \end_inset
13836
13837 ] This provides extra space between paragraphs that have the same style.
13838  If you put other styles into an environment, each is separated with the
13839  environment's 
13840 \begin_inset Flex Code
13841 status collapsed
13842
13843 \begin_layout Plain Layout
13844 ParSep
13845 \end_layout
13846
13847 \end_inset
13848
13849 .
13850  But the whole items of the environment are additionally separated with
13851  this 
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 ItemSep
13857 \end_layout
13858
13859 \end_inset
13860
13861 .
13862  Note that this is a
13863 \emph on
13864  multiplier.
13865 \end_layout
13866
13867 \begin_layout Description
13868 \begin_inset Flex Code
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872 ItemTag
13873 \end_layout
13874
13875 \end_inset
13876
13877  [FIXME] (Used only with XML-type formats.)
13878 \end_layout
13879
13880 \begin_layout Description
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885 KeepEmpty
13886 \end_layout
13887
13888 \end_inset
13889
13890  [
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895
13896 \emph on
13897 0
13898 \end_layout
13899
13900 \end_inset
13901
13902 ,
13903 \begin_inset space \thinspace{}
13904 \end_inset
13905
13906
13907 \begin_inset Flex Code
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911 1
13912 \end_layout
13913
13914 \end_inset
13915
13916 ] Usually \SpecialChar LyX
13917  does not allow you to leave a paragraph empty, since it would
13918  lead to empty \SpecialChar LaTeX
13919  output.
13920  There are some cases where this could be desirable however: in a letter
13921  template, the required fields can be provided as empty fields, so that
13922  people do not forget them; in some special classes, a style can be used
13923  as some kind of break, which does not contain actual text.
13924 \end_layout
13925
13926 \begin_layout Description
13927 \begin_inset Flex Code
13928 status collapsed
13929
13930 \begin_layout Plain Layout
13931 LabelBottomsep
13932 \end_layout
13933
13934 \end_inset
13935
13936  [
13937 \begin_inset Flex Code
13938 status collapsed
13939
13940 \begin_layout Plain Layout
13941 float=0
13942 \end_layout
13943
13944 \end_inset
13945
13946 ] The vertical space between the label and the text body.
13947  Only used for labels that are above the text body (
13948 \begin_inset Flex Code
13949 status collapsed
13950
13951 \begin_layout Plain Layout
13952 Top_Environment
13953 \end_layout
13954
13955 \end_inset
13956
13957  and
13958 \begin_inset Newline newline
13959 \end_inset
13960
13961
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 Centered_Top_Environment
13967 \end_layout
13968
13969 \end_inset
13970
13971 ).
13972 \end_layout
13973
13974 \begin_layout Description
13975 \begin_inset Flex Code
13976 status collapsed
13977
13978 \begin_layout Plain Layout
13979 LabelCounter
13980 \end_layout
13981
13982 \end_inset
13983
13984  [
13985 \begin_inset Flex Code
13986 status collapsed
13987
13988 \begin_layout Plain Layout
13989 string=""
13990 \end_layout
13991
13992 \end_inset
13993
13994 ] The name of the counter for automatic numbering.
13995  In order to have the counter appear with your label, you will need to reference
13996  it in the 
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001
14002 \family typewriter
14003 LabelString
14004 \end_layout
14005
14006 \end_inset
14007
14008 .
14009  This will work with 
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014 LabelType
14015 \end_layout
14016
14017 \end_inset
14018
14019 s, 
14020 \begin_inset Flex Code
14021 status collapsed
14022
14023 \begin_layout Plain Layout
14024 Static
14025 \end_layout
14026
14027 \end_inset
14028
14029
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034 Above
14035 \end_layout
14036
14037 \end_inset
14038
14039  and 
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 Centered
14045 \end_layout
14046
14047 \end_inset
14048
14049 , at least.
14050 \begin_inset Newline newline
14051 \end_inset
14052
14053 This 
14054 \emph on
14055 may
14056 \emph default
14057  also be given if 
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 LabelType
14063 \end_layout
14064
14065 \end_inset
14066
14067  is 
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 Enumerate
14073 \end_layout
14074
14075 \end_inset
14076
14077 , though this case is a bit complicated.
14078  Suppose you declare 
14079 \begin_inset Quotes eld
14080 \end_inset
14081
14082
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 LabelCounter myenum
14088 \end_layout
14089
14090 \end_inset
14091
14092
14093 \begin_inset Quotes erd
14094 \end_inset
14095
14096 .
14097  Then the actual counters used are 
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102 myenumi
14103 \end_layout
14104
14105 \end_inset
14106
14107
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112 myenumii
14113 \end_layout
14114
14115 \end_inset
14116
14117
14118 \begin_inset Flex Code
14119 status collapsed
14120
14121 \begin_layout Plain Layout
14122 myenumiii
14123 \end_layout
14124
14125 \end_inset
14126
14127  and 
14128 \begin_inset Flex Code
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 myenumiv
14133 \end_layout
14134
14135 \end_inset
14136
14137 , much as in \SpecialChar LaTeX
14138 .
14139  These counters must all be declared separately.
14140 \begin_inset Newline newline
14141 \end_inset
14142
14143 See 
14144 \begin_inset CommandInset ref
14145 LatexCommand ref
14146 reference "subsec:Counters"
14147
14148 \end_inset
14149
14150  for details on counters.
14151 \end_layout
14152
14153 \begin_layout Description
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 LabelFont
14159 \end_layout
14160
14161 \end_inset
14162
14163  The font used for the label.
14164  See 
14165 \begin_inset CommandInset ref
14166 LatexCommand ref
14167 reference "subsec:Font-description"
14168
14169 \end_inset
14170
14171 .
14172 \end_layout
14173
14174 \begin_layout Description
14175 \begin_inset Flex Code
14176 status collapsed
14177
14178 \begin_layout Plain Layout
14179 LabelIndent
14180 \end_layout
14181
14182 \end_inset
14183
14184  [
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 string=""
14190 \end_layout
14191
14192 \end_inset
14193
14194 ] Text that indicates how far a label should be indented.
14195 \end_layout
14196
14197 \begin_layout Description
14198 \begin_inset Flex Code
14199 status collapsed
14200
14201 \begin_layout Plain Layout
14202 LabelSep
14203 \end_layout
14204
14205 \end_inset
14206
14207  [
14208 \begin_inset Flex Code
14209 status collapsed
14210
14211 \begin_layout Plain Layout
14212 string=""
14213 \end_layout
14214
14215 \end_inset
14216
14217 ] Text that indicates the amount of horizontal space between the label and
14218  the text body.
14219  Only used for labels that are not above the text body.
14220 \end_layout
14221
14222 \begin_layout Description
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 LabelString
14228 \end_layout
14229
14230 \end_inset
14231
14232  [
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237 string=""
14238 \end_layout
14239
14240 \end_inset
14241
14242 ] The string used for the label.
14243  When 
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 LabelCounter
14249 \end_layout
14250
14251 \end_inset
14252
14253  is set, this string can be contain the special formatting commands described
14254  in 
14255 \begin_inset CommandInset ref
14256 LatexCommand ref
14257 reference "subsec:Counters"
14258
14259 \end_inset
14260
14261 .
14262 \end_layout
14263
14264 \begin_layout Description
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 LabelStringAppendix
14270 \end_layout
14271
14272 \end_inset
14273
14274  [
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 string=""
14280 \end_layout
14281
14282 \end_inset
14283
14284 ] This is used inside the appendix instead of
14285 \begin_inset Newline newline
14286 \end_inset
14287
14288
14289 \begin_inset Flex Code
14290 status collapsed
14291
14292 \begin_layout Plain Layout
14293 LabelString
14294 \end_layout
14295
14296 \end_inset
14297
14298 .
14299  Note that every 
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 LabelString
14305 \end_layout
14306
14307 \end_inset
14308
14309  statement resets
14310 \begin_inset Newline newline
14311 \end_inset
14312
14313
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 LabelStringAppendix
14319 \end_layout
14320
14321 \end_inset
14322
14323  too.
14324 \end_layout
14325
14326 \begin_layout Description
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 LabelTag
14332 \end_layout
14333
14334 \end_inset
14335
14336  [FIXME] (Used only with XML-type formats.)
14337 \end_layout
14338
14339 \begin_layout Description
14340 \begin_inset Flex Code
14341 status collapsed
14342
14343 \begin_layout Plain Layout
14344 LabelType
14345 \end_layout
14346
14347 \end_inset
14348
14349  [
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354
14355 \emph on
14356 No_Label
14357 \emph default
14358 , Manual, Static, Above, 
14359 \begin_inset Newline newline
14360 \end_inset
14361
14362 Centered, Sensitive, Enumerate,
14363 \begin_inset Newline newline
14364 \end_inset
14365
14366 Itemize, Bibliography
14367 \end_layout
14368
14369 \end_inset
14370
14371 ]
14372 \end_layout
14373
14374 \begin_deeper
14375 \begin_layout Description
14376 \begin_inset Flex Code
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 Manual
14381 \end_layout
14382
14383 \end_inset
14384
14385  means the label is the very first word (up to the first real blank).
14386  Use protected spaces if you want more than one word as the label.
14387  
14388 \end_layout
14389
14390 \begin_layout Description
14391 \begin_inset Flex Code
14392 status collapsed
14393
14394 \begin_layout Plain Layout
14395 Static
14396 \end_layout
14397
14398 \end_inset
14399
14400  means the label is simply what is declared as 
14401 \begin_inset Flex Code
14402 status collapsed
14403
14404 \begin_layout Plain Layout
14405 LabelString
14406 \end_layout
14407
14408 \end_inset
14409
14410 .
14411  This will be displayed 
14412 \begin_inset Quotes eld
14413 \end_inset
14414
14415 inline
14416 \begin_inset Quotes erd
14417 \end_inset
14418
14419 , at the beginning of the paragraph.
14420  If the 
14421 \begin_inset Flex Code
14422 status collapsed
14423
14424 \begin_layout Plain Layout
14425 LatexType
14426 \end_layout
14427
14428 \end_inset
14429
14430  is 
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435 Environment
14436 \end_layout
14437
14438 \end_inset
14439
14440 , then it will be displayed only in the first paragraph of any sequence
14441  of paragraphs with the same 
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 Style
14447 \end_layout
14448
14449 \end_inset
14450
14451 .
14452 \end_layout
14453
14454 \begin_layout Description
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459 Above
14460 \end_layout
14461
14462 \end_inset
14463
14464
14465 \begin_inset space ~
14466 \end_inset
14467
14468 and
14469 \begin_inset space ~
14470 \end_inset
14471
14472
14473 \begin_inset Flex Code
14474 status collapsed
14475
14476 \begin_layout Plain Layout
14477 Centered
14478 \end_layout
14479
14480 \end_inset
14481
14482  are special cases of 
14483 \begin_inset Flex Code
14484 status collapsed
14485
14486 \begin_layout Plain Layout
14487 Static
14488 \end_layout
14489
14490 \end_inset
14491
14492 .
14493  The label will be printed above the paragraph either at the beginning of
14494  the line or centered.
14495 \end_layout
14496
14497 \begin_layout Description
14498 \begin_inset Flex Code
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 Sensitive
14503 \end_layout
14504
14505 \end_inset
14506
14507  is a special case for the caption-labels 
14508 \begin_inset Quotes eld
14509 \end_inset
14510
14511 Figure
14512 \begin_inset Quotes erd
14513 \end_inset
14514
14515  and 
14516 \begin_inset Quotes eld
14517 \end_inset
14518
14519 Table
14520 \begin_inset Quotes erd
14521 \end_inset
14522
14523 .
14524 \begin_inset Newline newline
14525 \end_inset
14526
14527
14528 \begin_inset Flex Code
14529 status collapsed
14530
14531 \begin_layout Plain Layout
14532 Sensitive
14533 \end_layout
14534
14535 \end_inset
14536
14537  means the (hardcoded) label string depends on the kind of float: It is
14538  hardcoded to be `FloatType N', where N is the value of the counter associated
14539  with the float.
14540  For the case that a caption is inserted outside of a float the 
14541 \begin_inset Flex Code
14542 status collapsed
14543
14544 \begin_layout Plain Layout
14545 LabelString
14546 \end_layout
14547
14548 \end_inset
14549
14550  will appear as 
14551 \begin_inset Quotes eld
14552 \end_inset
14553
14554 Senseless!
14555 \begin_inset Quotes erd
14556 \end_inset
14557
14558 .
14559 \end_layout
14560
14561 \begin_layout Description
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566 Enumerate
14567 \end_layout
14568
14569 \end_inset
14570
14571  produces the usual sort of enumeration labels.
14572  The number type needs to be set in the 
14573 \family sans
14574 Counter
14575 \family default
14576 , see 
14577 \begin_inset CommandInset ref
14578 LatexCommand ref
14579 reference "subsec:Counters"
14580
14581 \end_inset
14582
14583 .
14584 \end_layout
14585
14586 \begin_layout Description
14587 \begin_inset Flex Code
14588 status collapsed
14589
14590 \begin_layout Plain Layout
14591 Itemize
14592 \end_layout
14593
14594 \end_inset
14595
14596  produces various bullets at the different levels.
14597  The bullet types displayed can be set via 
14598 \begin_inset Flex Noun
14599 status collapsed
14600
14601 \begin_layout Plain Layout
14602 Document\SpecialChar menuseparator
14603 Settings\SpecialChar menuseparator
14604 Bullets
14605 \end_layout
14606
14607 \end_inset
14608
14609 .
14610 \end_layout
14611
14612 \begin_layout Description
14613 \begin_inset Flex Code
14614 status collapsed
14615
14616 \begin_layout Plain Layout
14617 Bibliography
14618 \end_layout
14619
14620 \end_inset
14621
14622  should be used only with 
14623 \begin_inset Flex Code
14624 status collapsed
14625
14626 \begin_layout Plain Layout
14627 LatexType BibEnvironment
14628 \end_layout
14629
14630 \end_inset
14631
14632 .
14633 \end_layout
14634
14635 \end_deeper
14636 \begin_layout Description
14637 \begin_inset Flex Code
14638 status collapsed
14639
14640 \begin_layout Plain Layout
14641 LangPreamble
14642 \end_layout
14643
14644 \end_inset
14645
14646  Note that this will completely override any prior 
14647 \begin_inset Flex Code
14648 status collapsed
14649
14650 \begin_layout Plain Layout
14651 LangPreamble
14652 \end_layout
14653
14654 \end_inset
14655
14656  declaration for this style.
14657  Must end with 
14658 \begin_inset Quotes eld
14659 \end_inset
14660
14661
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 EndLangPreamble
14667 \end_layout
14668
14669 \end_inset
14670
14671
14672 \begin_inset Quotes erd
14673 \end_inset
14674
14675 .
14676  See 
14677 \begin_inset CommandInset ref
14678 LatexCommand ref
14679 reference "subsec:I18n"
14680
14681 \end_inset
14682
14683  for details on its use.
14684 \end_layout
14685
14686 \begin_layout Description
14687 \begin_inset Flex Code
14688 status collapsed
14689
14690 \begin_layout Plain Layout
14691 LatexName
14692 \end_layout
14693
14694 \end_inset
14695
14696  [
14697 \begin_inset Flex Code
14698 status collapsed
14699
14700 \begin_layout Plain Layout
14701 <name>
14702 \end_layout
14703
14704 \end_inset
14705
14706 ] The name of the corresponding \SpecialChar LaTeX
14707  stuff.
14708  Either the environment or command name.
14709 \end_layout
14710
14711 \begin_layout Description
14712 \begin_inset Flex Code
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716 LatexParam
14717 \end_layout
14718
14719 \end_inset
14720
14721  [
14722 \begin_inset Flex Code
14723 status collapsed
14724
14725 \begin_layout Plain Layout
14726 <parameter>
14727 \end_layout
14728
14729 \end_inset
14730
14731 ] An optional parameter for the corresponding 
14732 \begin_inset Flex Code
14733 status collapsed
14734
14735 \begin_layout Plain Layout
14736 LatexName
14737 \end_layout
14738
14739 \end_inset
14740
14741  stuff.
14742  This parameter cannot be changed from within \SpecialChar LyX
14743  (use 
14744 \begin_inset Flex Code
14745 status collapsed
14746
14747 \begin_layout Plain Layout
14748 Argument
14749 \end_layout
14750
14751 \end_inset
14752
14753  for customizable parameters).
14754  This will be output as is after all \SpecialChar LaTeX
14755  
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Argument
14761 \end_layout
14762
14763 \end_inset
14764
14765 s.
14766 \end_layout
14767
14768 \begin_layout Description
14769 \begin_inset Flex Code
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773 LatexType
14774 \end_layout
14775
14776 \end_inset
14777
14778  [
14779 \begin_inset Flex Code
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783
14784 \emph on
14785 Paragraph
14786 \emph default
14787 , Command, Environment, Item_Environment,
14788 \begin_inset Newline newline
14789 \end_inset
14790
14791 List_Environment, Bib_Environment
14792 \end_layout
14793
14794 \end_inset
14795
14796 ] How the style should be translated into \SpecialChar LaTeX
14797 .
14798 \begin_inset Foot
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802 \begin_inset Flex Code
14803 status collapsed
14804
14805 \begin_layout Plain Layout
14806 LatexType
14807 \end_layout
14808
14809 \end_inset
14810
14811  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14812  Visit the SGML class files for specific examples.
14813 \end_layout
14814
14815 \end_inset
14816
14817
14818 \end_layout
14819
14820 \begin_deeper
14821 \begin_layout Description
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 Paragraph
14827 \end_layout
14828
14829 \end_inset
14830
14831  means nothing special.
14832 \end_layout
14833
14834 \begin_layout Description
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 Command
14840 \end_layout
14841
14842 \end_inset
14843
14844  means 
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849
14850 \backslash
14851
14852 \emph on
14853 LatexName
14854 \emph default
14855 {\SpecialChar ldots
14856 }
14857 \end_layout
14858
14859 \end_inset
14860
14861 .
14862 \end_layout
14863
14864 \begin_layout Description
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 Environment
14870 \end_layout
14871
14872 \end_inset
14873
14874  means 
14875 \begin_inset Flex Code
14876 status collapsed
14877
14878 \begin_layout Plain Layout
14879
14880 \backslash
14881 begin{
14882 \emph on
14883 LatexName
14884 \emph default
14885 }\SpecialChar ldots
14886
14887 \backslash
14888 end{
14889 \emph on
14890 LatexName
14891 \emph default
14892 }
14893 \end_layout
14894
14895 \end_inset
14896
14897 .
14898  
14899 \end_layout
14900
14901 \begin_layout Description
14902 \begin_inset Flex Code
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906 Item_Environment
14907 \end_layout
14908
14909 \end_inset
14910
14911  is the same as 
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Environment
14917 \end_layout
14918
14919 \end_inset
14920
14921 , except that an 
14922 \begin_inset Flex Code
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926
14927 \backslash
14928 item
14929 \end_layout
14930
14931 \end_inset
14932
14933  is generated for each paragraph of this environment.
14934  
14935 \end_layout
14936
14937 \begin_layout Description
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 List_Environment
14943 \end_layout
14944
14945 \end_inset
14946
14947  is the same as 
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 Item_Environment
14953 \end_layout
14954
14955 \end_inset
14956
14957 , except that
14958 \begin_inset Newline newline
14959 \end_inset
14960
14961
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 LabelWidthString
14967 \end_layout
14968
14969 \end_inset
14970
14971  is passed as an argument to the environment.
14972 \begin_inset Newline newline
14973 \end_inset
14974
14975
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 LabelWidthString
14981 \end_layout
14982
14983 \end_inset
14984
14985  can be defined in the 
14986 \begin_inset Flex Noun
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 Edit\SpecialChar menuseparator
14991 Paragraph
14992 \begin_inset space ~
14993 \end_inset
14994
14995 settings
14996 \end_layout
14997
14998 \end_inset
14999
15000  dialog.
15001 \end_layout
15002
15003 \begin_layout Description
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 Bib_Environment
15009 \end_layout
15010
15011 \end_inset
15012
15013  is like 
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 Environment
15019 \end_layout
15020
15021 \end_inset
15022
15023  but adds the necessary mandatory argument (the longest label) to the begin
15024  statement of the bibliography environment:
15025 \begin_inset Newline newline
15026 \end_inset
15027
15028
15029 \begin_inset Flex Code
15030 status collapsed
15031
15032 \begin_layout Plain Layout
15033
15034 \backslash
15035 begin{thebibliography}{99}
15036 \end_layout
15037
15038 \end_inset
15039
15040 .
15041  It is therefore only useful for bibliography environments.
15042  The default longest label 
15043 \begin_inset Quotes eld
15044 \end_inset
15045
15046 99
15047 \begin_inset Quotes erd
15048 \end_inset
15049
15050  can be changed by the user in the paragraph settings of a bibliography
15051  item.
15052 \end_layout
15053
15054 \begin_layout Standard
15055 Putting the last few things together, the \SpecialChar LaTeX
15056  output will be either: 
15057 \end_layout
15058
15059 \begin_layout LyX-Code
15060
15061 \backslash
15062 LatexName[LatexParam]{\SpecialChar ldots
15063 }
15064 \end_layout
15065
15066 \begin_layout Standard
15067 or: 
15068 \end_layout
15069
15070 \begin_layout LyX-Code
15071
15072 \backslash
15073 begin{LatexName}[LatexParam] \SpecialChar ldots
15074  
15075 \backslash
15076 end{LatexName}.
15077 \end_layout
15078
15079 \begin_layout Standard
15080 depending upon the \SpecialChar LaTeX
15081  type.
15082 \end_layout
15083
15084 \end_deeper
15085 \begin_layout Description
15086 \begin_inset Flex Code
15087 status collapsed
15088
15089 \begin_layout Plain Layout
15090 LeftDelim
15091 \end_layout
15092
15093 \end_inset
15094
15095  [
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 string
15101 \end_layout
15102
15103 \end_inset
15104
15105 ] A string that is put at the beginning of the style content.
15106  A line break in the output can be indicated by 
15107 \begin_inset Flex Code
15108 status collapsed
15109
15110 \begin_layout Plain Layout
15111 <br/>
15112 \end_layout
15113
15114 \end_inset
15115
15116 .
15117 \end_layout
15118
15119 \begin_layout Description
15120 \begin_inset Flex Code
15121 status collapsed
15122
15123 \begin_layout Plain Layout
15124 LeftMargin
15125 \end_layout
15126
15127 \end_inset
15128
15129  [
15130 \begin_inset Flex Code
15131 status collapsed
15132
15133 \begin_layout Plain Layout
15134 string=""
15135 \end_layout
15136
15137 \end_inset
15138
15139 ] If you put styles into environments, the different 
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 LeftMargin
15145 \end_layout
15146
15147 \end_inset
15148
15149  are not simply added, but added with a factor 
15150 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15151 \end_inset
15152
15153 .
15154  Note that this parameter is also used when 
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 Margin
15160 \end_layout
15161
15162 \end_inset
15163
15164  is defined as 
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 Manual
15170 \end_layout
15171
15172 \end_inset
15173
15174  or 
15175 \begin_inset Flex Code
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179 Dynamic
15180 \end_layout
15181
15182 \end_inset
15183
15184 .
15185  Then it is added to the manual or dynamic margin.
15186 \begin_inset Newline newline
15187 \end_inset
15188
15189 For example 
15190 \begin_inset Quotes eld
15191 \end_inset
15192
15193
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 MM
15199 \end_layout
15200
15201 \end_inset
15202
15203
15204 \begin_inset Quotes erd
15205 \end_inset
15206
15207  means that the paragraph is indented with the width of 
15208 \begin_inset Quotes eld
15209 \end_inset
15210
15211
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 MM
15217 \end_layout
15218
15219 \end_inset
15220
15221
15222 \begin_inset Quotes erd
15223 \end_inset
15224
15225  in the normal font.
15226  You can get a negative width by prefixing the string with 
15227 \begin_inset Quotes eld
15228 \end_inset
15229
15230
15231 \begin_inset Flex Code
15232 status collapsed
15233
15234 \begin_layout Plain Layout
15235 -
15236 \end_layout
15237
15238 \end_inset
15239
15240
15241 \begin_inset Quotes erd
15242 \end_inset
15243
15244 .
15245  This way was chosen so that the look is the same with each used screen
15246  font.
15247 \end_layout
15248
15249 \begin_layout Description
15250 \begin_inset Flex Code
15251 status collapsed
15252
15253 \begin_layout Plain Layout
15254 Margin
15255 \end_layout
15256
15257 \end_inset
15258
15259  [
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264
15265 \emph on
15266 Static
15267 \emph default
15268 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15269 \end_layout
15270
15271 \end_inset
15272
15273
15274 \begin_inset Newline newline
15275 \end_inset
15276
15277 The kind of margin that the style has on the left side.
15278 \end_layout
15279
15280 \begin_deeper
15281 \begin_layout Description
15282 \begin_inset Flex Code
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286 Static
15287 \end_layout
15288
15289 \end_inset
15290
15291  just means a fixed margin.
15292 \end_layout
15293
15294 \begin_layout Description
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 Manual
15300 \end_layout
15301
15302 \end_inset
15303
15304  means that the left margin depends on the string entered in the 
15305 \begin_inset Flex Noun
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309 Edit\SpecialChar menuseparator
15310 Paragraph
15311 \begin_inset space ~
15312 \end_inset
15313
15314 Settings
15315 \end_layout
15316
15317 \end_inset
15318
15319  dialog.
15320  This is used to typeset nice lists without tabulators.
15321 \end_layout
15322
15323 \begin_layout Description
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 Dynamic
15329 \end_layout
15330
15331 \end_inset
15332
15333  means that the margin depends on the size of the label.
15334  This is used for automatic enumerated headlines.
15335  It is obvious that the headline 
15336 \begin_inset Quotes eld
15337 \end_inset
15338
15339 5.4.3.2.1 Very long headline
15340 \begin_inset Quotes erd
15341 \end_inset
15342
15343  must have a wider left margin (as wide as 
15344 \begin_inset Quotes eld
15345 \end_inset
15346
15347 5.4.3.2.1
15348 \begin_inset Quotes erd
15349 \end_inset
15350
15351  plus the space) than 
15352 \begin_inset Quotes eld
15353 \end_inset
15354
15355 3.2 Very long headline
15356 \begin_inset Quotes erd
15357 \end_inset
15358
15359 , even if standard 
15360 \begin_inset Quotes eld
15361 \end_inset
15362
15363 word processors
15364 \begin_inset Quotes erd
15365 \end_inset
15366
15367  are not able to do this.
15368 \end_layout
15369
15370 \begin_layout Description
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 First_Dynamic
15376 \end_layout
15377
15378 \end_inset
15379
15380  is similar, but only the very first row of the paragraph is dynamic, while
15381  the others are static; this is used, for example, for descriptions.
15382 \end_layout
15383
15384 \begin_layout Description
15385 \begin_inset Flex Code
15386 status collapsed
15387
15388 \begin_layout Plain Layout
15389 Right_Address_Box
15390 \end_layout
15391
15392 \end_inset
15393
15394  means the margin is chosen in a way that the longest row of this paragraph
15395  fits to the right margin.
15396  This is used to typeset an address on the right edge of the page.
15397 \end_layout
15398
15399 \end_deeper
15400 \begin_layout Description
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 NeedProtect
15406 \end_layout
15407
15408 \end_inset
15409
15410  [
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415
15416 \emph on
15417 0
15418 \end_layout
15419
15420 \end_inset
15421
15422 ,
15423 \begin_inset space \thinspace{}
15424 \end_inset
15425
15426
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 1
15432 \end_layout
15433
15434 \end_inset
15435
15436 ] Whether fragile commands in this style should be 
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441
15442 \backslash
15443 protect
15444 \end_layout
15445
15446 \end_inset
15447
15448 'ed.
15449  (Note: This is 
15450 \emph on
15451 not
15452 \emph default
15453  whether this command should itself be protected.)
15454 \change_inserted -712698321 1523696949
15455
15456 \end_layout
15457
15458 \begin_layout Description
15459
15460 \change_inserted -712698321 1552395557
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465
15466 \change_inserted -712698321 1523696950
15467 NeedCProtect
15468 \end_layout
15469
15470 \end_inset
15471
15472  [
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477
15478 \change_inserted -712698321 1523696950
15479
15480 \emph on
15481 0
15482 \end_layout
15483
15484 \end_inset
15485
15486 ,
15487 \begin_inset space \thinspace{}
15488 \end_inset
15489
15490
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495
15496 \change_inserted -712698321 1523696950
15497 1
15498 \end_layout
15499
15500 \end_inset
15501
15502 ] This causes macros that contain this layout to be protected with 
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507
15508 \change_inserted -712698321 1523696950
15509
15510 \backslash
15511 cprotect
15512 \end_layout
15513
15514 \end_inset
15515
15516  (cf.
15517  package 
15518 \family sans
15519 cprotect
15520 \family default
15521 ) if necessary and thus allows (some) verbatim stuff in macros.
15522 \end_layout
15523
15524 \begin_layout Description
15525
15526 \change_inserted -712698321 1552395844
15527 \begin_inset Flex Code
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531
15532 \change_inserted -712698321 1552395561
15533 NeedMBoxProtect
15534 \end_layout
15535
15536 \end_inset
15537
15538  [
15539 \begin_inset Flex Code
15540 status collapsed
15541
15542 \begin_layout Plain Layout
15543
15544 \change_inserted -712698321 1552395557
15545
15546 \emph on
15547 0
15548 \end_layout
15549
15550 \end_inset
15551
15552 ,
15553 \begin_inset space \thinspace{}
15554 \end_inset
15555
15556
15557 \begin_inset Flex Code
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561
15562 \change_inserted -712698321 1552395557
15563 1
15564 \end_layout
15565
15566 \end_inset
15567
15568 ] Whether specific commands in this style (such as 
15569 \begin_inset Flex Code
15570 status collapsed
15571
15572 \begin_layout Plain Layout
15573
15574 \change_inserted -712698321 1552395655
15575
15576 \backslash
15577 cite
15578 \change_unchanged
15579
15580 \end_layout
15581
15582 \end_inset
15583
15584  and 
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589
15590 \change_inserted -712698321 1552395661
15591
15592 \backslash
15593 ref
15594 \change_unchanged
15595
15596 \end_layout
15597
15598 \end_inset
15599
15600 ) should be protected in an 
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605
15606 \change_inserted -712698321 1552395631
15607
15608 \backslash
15609 mbox
15610 \change_unchanged
15611
15612 \end_layout
15613
15614 \end_inset
15615
15616 .
15617  This is particularly needed for styles that draw on 
15618 \family sans
15619 ulem
15620 \family default
15621  or 
15622 \family sans
15623 soul
15624 \family default
15625  commands which parse their content in complex ways.
15626 \change_unchanged
15627
15628 \end_layout
15629
15630 \begin_layout Description
15631 \begin_inset Flex Code
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635 Newline
15636 \end_layout
15637
15638 \end_inset
15639
15640  [
15641 \begin_inset Flex Code
15642 status collapsed
15643
15644 \begin_layout Plain Layout
15645 0
15646 \end_layout
15647
15648 \end_inset
15649
15650 ,
15651 \begin_inset space \thinspace{}
15652 \end_inset
15653
15654
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659
15660 \emph on
15661 1
15662 \end_layout
15663
15664 \end_inset
15665
15666 ] Whether newlines are translated into \SpecialChar LaTeX
15667  newlines (
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672
15673 \backslash
15674
15675 \backslash
15676
15677 \end_layout
15678
15679 \end_inset
15680
15681 ) or not.
15682  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15683  editing
15684  inside \SpecialChar LyX
15685 .
15686 \end_layout
15687
15688 \begin_layout Description
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 NextNoIndent
15694 \end_layout
15695
15696 \end_inset
15697
15698  [
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703
15704 \emph on
15705 0
15706 \end_layout
15707
15708 \end_inset
15709
15710 ,
15711 \begin_inset space \thinspace{}
15712 \end_inset
15713
15714
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 1
15720 \end_layout
15721
15722 \end_inset
15723
15724 ] If set to true, and if 
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 DefaultStyle
15730 \end_layout
15731
15732 \end_inset
15733
15734  (usually 
15735 \begin_inset Flex Code
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739 Standard
15740 \end_layout
15741
15742 \end_inset
15743
15744 ) paragraphs are being indented, then the indentation of such a paragraph
15745  following one of this type will be suppressed.
15746  (So this will not affect the display of non-default paragraphs.)
15747 \end_layout
15748
15749 \begin_layout Description
15750 \begin_inset Flex Code
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754 ObsoletedBy
15755 \end_layout
15756
15757 \end_inset
15758
15759  [
15760 \begin_inset Flex Code
15761 status collapsed
15762
15763 \begin_layout Plain Layout
15764 <name>
15765 \end_layout
15766
15767 \end_inset
15768
15769 ] Name of a style that has replaced this style.
15770  This is used to rename a style, while keeping backward compatibility.
15771 \end_layout
15772
15773 \begin_layout Description
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 ParagraphGroup
15779 \end_layout
15780
15781 \end_inset
15782
15783  [
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 0
15789 \end_layout
15790
15791 \end_inset
15792
15793 ,
15794 \begin_inset space \thinspace{}
15795 \end_inset
15796
15797
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802 1
15803 \end_layout
15804
15805 \end_inset
15806
15807 ] Determines whether consecutive paragraphs of the same type are treated
15808  as belonging together.
15809  This has the effect that the 
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814 GuiLabel
15815 \end_layout
15816
15817 \end_inset
15818
15819  is only printed once before such a group.
15820  By default, this is true for 
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 LaTeXType
15826 \end_layout
15827
15828 \end_inset
15829
15830  
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 Environment
15836 \end_layout
15837
15838 \end_inset
15839
15840  and 
15841 \begin_inset Flex Code
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845 Bib_Environment
15846 \end_layout
15847
15848 \end_inset
15849
15850  and false for all other types.
15851 \end_layout
15852
15853 \begin_layout Description
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 ParbreakIsNewline
15859 \end_layout
15860
15861 \end_inset
15862
15863  [
15864 \begin_inset Flex Code
15865 status collapsed
15866
15867 \begin_layout Plain Layout
15868
15869 \emph on
15870 0
15871 \end_layout
15872
15873 \end_inset
15874
15875 ,
15876 \begin_inset space \thinspace{}
15877 \end_inset
15878
15879
15880 \begin_inset Flex Code
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884 1
15885 \end_layout
15886
15887 \end_inset
15888
15889 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15890  output,
15891  but only by a line break; together with 
15892 \begin_inset Flex Code
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 PassThru 1
15897 \end_layout
15898
15899 \end_inset
15900
15901 , this allows to emulate a plain text editor (like the ERT inset).
15902 \end_layout
15903
15904 \begin_layout Description
15905 \begin_inset Flex Code
15906 status collapsed
15907
15908 \begin_layout Plain Layout
15909 ParIndent
15910 \end_layout
15911
15912 \end_inset
15913
15914  [
15915 \begin_inset Flex Code
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919 string=""
15920 \end_layout
15921
15922 \end_inset
15923
15924 ] The indent of the very first line of a paragraph.
15925  The
15926 \begin_inset Newline newline
15927 \end_inset
15928
15929
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 Parindent
15935 \end_layout
15936
15937 \end_inset
15938
15939  will be fixed for a certain style.
15940  The exception is the default style, since the indentation for these paragraphs
15941  can be prohibited with 
15942 \begin_inset Flex Code
15943 status collapsed
15944
15945 \begin_layout Plain Layout
15946 NextNoIndent
15947 \end_layout
15948
15949 \end_inset
15950
15951 .
15952  Also, 
15953 \begin_inset Flex Code
15954 status collapsed
15955
15956 \begin_layout Plain Layout
15957 Standard
15958 \end_layout
15959
15960 \end_inset
15961
15962  style paragraphs inside environments use the 
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 Parindent
15968 \end_layout
15969
15970 \end_inset
15971
15972  of the environment, not their native one.
15973  For example, 
15974 \begin_inset Flex Code
15975 status collapsed
15976
15977 \begin_layout Plain Layout
15978 Standard
15979 \end_layout
15980
15981 \end_inset
15982
15983  paragraphs inside an enumeration are not indented.
15984 \end_layout
15985
15986 \begin_layout Description
15987 \begin_inset Flex Code
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991 ParSep
15992 \end_layout
15993
15994 \end_inset
15995
15996  [
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 float=0
16002 \end_layout
16003
16004 \end_inset
16005
16006 ] The vertical space between two paragraphs of this style.
16007 \end_layout
16008
16009 \begin_layout Description
16010 \begin_inset Flex Code
16011 status collapsed
16012
16013 \begin_layout Plain Layout
16014 Parskip
16015 \end_layout
16016
16017 \end_inset
16018
16019  [
16020 \begin_inset Flex Code
16021 status collapsed
16022
16023 \begin_layout Plain Layout
16024 float=0
16025 \end_layout
16026
16027 \end_inset
16028
16029 ] \SpecialChar LyX
16030  allows the user to choose either 
16031 \begin_inset Quotes eld
16032 \end_inset
16033
16034 indent
16035 \begin_inset Quotes erd
16036 \end_inset
16037
16038  or 
16039 \begin_inset Quotes eld
16040 \end_inset
16041
16042 skip
16043 \begin_inset Quotes erd
16044 \end_inset
16045
16046  to separate paragraphs.
16047  When 
16048 \begin_inset Quotes eld
16049 \end_inset
16050
16051 indent
16052 \begin_inset Quotes erd
16053 \end_inset
16054
16055  is chosen, 
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 Parskip
16061 \end_layout
16062
16063 \end_inset
16064
16065  is ignored.
16066  When 
16067 \begin_inset Quotes eld
16068 \end_inset
16069
16070 skip
16071 \begin_inset Quotes erd
16072 \end_inset
16073
16074  is chosen, 
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 ParIndent
16080 \end_layout
16081
16082 \end_inset
16083
16084  is ignored and all paragraphs are separated by the 
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 Parskip
16090 \end_layout
16091
16092 \end_inset
16093
16094  argument.
16095  The vertical space is calculated with 
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 Parskip
16101 \begin_inset space ~
16102 \end_inset
16103
16104 * DefaultHeight
16105 \end_layout
16106
16107 \end_inset
16108
16109  where 
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 DefaultHeight
16115 \end_layout
16116
16117 \end_inset
16118
16119  is the height of a row with the normal font.
16120  This way, the look stays the same with different screen fonts.
16121 \end_layout
16122
16123 \begin_layout Description
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 PassThru
16129 \end_layout
16130
16131 \end_inset
16132
16133  [
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138
16139 \emph on
16140 0
16141 \end_layout
16142
16143 \end_inset
16144
16145 ,
16146 \begin_inset space \thinspace{}
16147 \end_inset
16148
16149
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 1
16155 \end_layout
16156
16157 \end_inset
16158
16159 ] Whether the contents of this paragraph should be output in raw form, meaning
16160  without special translations that \SpecialChar LaTeX
16161  would require.
16162 \end_layout
16163
16164 \begin_layout Description
16165 \begin_inset Flex Code
16166 status collapsed
16167
16168 \begin_layout Plain Layout
16169 PassThruChars
16170 \end_layout
16171
16172 \end_inset
16173
16174  [
16175 \begin_inset Flex Code
16176 status collapsed
16177
16178 \begin_layout Plain Layout
16179 string
16180 \end_layout
16181
16182 \end_inset
16183
16184 ]
16185 \family typewriter
16186  
16187 \family default
16188 Defines individual characters that should be output in raw form, meaning
16189  without special translations that \SpecialChar LaTeX
16190  would require.
16191 \end_layout
16192
16193 \begin_layout Description
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 Preamble
16199 \end_layout
16200
16201 \end_inset
16202
16203  Information to be included in the \SpecialChar LaTeX
16204  preamble when this style is used.
16205  Used to define macros, load packages, etc., required by this particular
16206  style.
16207  Must end with 
16208 \begin_inset Quotes eld
16209 \end_inset
16210
16211
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 EndPreamble
16217 \end_layout
16218
16219 \end_inset
16220
16221
16222 \begin_inset Quotes erd
16223 \end_inset
16224
16225 .
16226 \end_layout
16227
16228 \begin_layout Description
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 RefPrefix
16234 \end_layout
16235
16236 \end_inset
16237
16238  [
16239 \begin_inset Flex Code
16240 status collapsed
16241
16242 \begin_layout Plain Layout
16243 string
16244 \end_layout
16245
16246 \end_inset
16247
16248 ] The prefix to use when creating labels referring to paragraphs of this
16249  type.
16250  This allows the use of formatted references.
16251 \end_layout
16252
16253 \begin_layout Description
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 Requires 
16259 \end_layout
16260
16261 \end_inset
16262
16263  [
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 string
16269 \end_layout
16270
16271 \end_inset
16272
16273 ] Whether the style requires the feature 
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 string
16279 \end_layout
16280
16281 \end_inset
16282
16283  (see 
16284 \begin_inset CommandInset ref
16285 LatexCommand ref
16286 reference "chap:List-of-functions"
16287
16288 \end_inset
16289
16290  for the list of features).
16291  If you require a package with specific options, you can additionally use
16292  
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 PackageOptions
16298 \end_layout
16299
16300 \end_inset
16301
16302  as a general text class parameter (see 
16303 \begin_inset CommandInset ref
16304 LatexCommand ref
16305 reference "subsec:General-text-class"
16306
16307 \end_inset
16308
16309 ).
16310 \end_layout
16311
16312 \begin_layout Description
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 ResetArgs
16318 \end_layout
16319
16320 \end_inset
16321
16322  [
16323 \begin_inset Flex Code
16324 status collapsed
16325
16326 \begin_layout Plain Layout
16327
16328 \emph on
16329 0
16330 \end_layout
16331
16332 \end_inset
16333
16334 ,
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 1
16340 \end_layout
16341
16342 \end_inset
16343
16344 ] Resets the \SpecialChar LaTeX
16345  arguments of this style (as defined via the 
16346 \begin_inset Flex Code
16347 status collapsed
16348
16349 \begin_layout Plain Layout
16350 Argument
16351 \end_layout
16352
16353 \end_inset
16354
16355  tag).
16356  This is useful if you have copied a style via 
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 CopyStyle
16362 \end_layout
16363
16364 \end_inset
16365
16366 , but you do not want to inherit its (required and optional) arguments.
16367 \end_layout
16368
16369 \begin_layout Description
16370 \begin_inset Flex Code
16371 status collapsed
16372
16373 \begin_layout Plain Layout
16374 ResumeCounter
16375 \end_layout
16376
16377 \end_inset
16378
16379  [
16380 \begin_inset Flex Code
16381 status collapsed
16382
16383 \begin_layout Plain Layout
16384
16385 \emph on
16386 0
16387 \end_layout
16388
16389 \end_inset
16390
16391 ,
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 1
16397 \end_layout
16398
16399 \end_inset
16400
16401 ] Resumes a counter that is usually reset at each new sequence of layouts.
16402  This is currently only useful when 
16403 \begin_inset Flex Code
16404 status collapsed
16405
16406 \begin_layout Plain Layout
16407 LabelType
16408 \end_layout
16409
16410 \end_inset
16411
16412  is 
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417 Enumerate
16418 \end_layout
16419
16420 \end_inset
16421
16422 .
16423 \end_layout
16424
16425 \begin_layout Description
16426 \begin_inset Flex Code
16427 status collapsed
16428
16429 \begin_layout Plain Layout
16430 RightDelim
16431 \end_layout
16432
16433 \end_inset
16434
16435  [
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 string
16441 \end_layout
16442
16443 \end_inset
16444
16445 ] A string that is put at the end of the layout content.
16446  A line break in the output can be indicated by 
16447 \begin_inset Flex Code
16448 status collapsed
16449
16450 \begin_layout Plain Layout
16451 <br/>
16452 \end_layout
16453
16454 \end_inset
16455
16456 .
16457 \end_layout
16458
16459 \begin_layout Description
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 RightMargin
16465 \end_layout
16466
16467 \end_inset
16468
16469  [
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 string=""
16475 \end_layout
16476
16477 \end_inset
16478
16479 ] Similar to 
16480 \begin_inset Flex Code
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 LeftMargin
16485 \end_layout
16486
16487 \end_inset
16488
16489 .
16490 \end_layout
16491
16492 \begin_layout Description
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 Spacing
16498 \end_layout
16499
16500 \end_inset
16501
16502  [
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507
16508 \emph on
16509 single
16510 \end_layout
16511
16512 \end_inset
16513
16514
16515 \begin_inset Flex Code
16516 status collapsed
16517
16518 \begin_layout Plain Layout
16519 onehalf
16520 \end_layout
16521
16522 \end_inset
16523
16524
16525 \begin_inset Flex Code
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529 double
16530 \end_layout
16531
16532 \end_inset
16533
16534
16535 \begin_inset Flex Code
16536 status collapsed
16537
16538 \begin_layout Plain Layout
16539 other
16540 \begin_inset space ~
16541 \end_inset
16542
16543 <value>
16544 \end_layout
16545
16546 \end_inset
16547
16548 ] This defines what the default spacing should be in the style.
16549  The arguments 
16550 \begin_inset Flex Code
16551 status collapsed
16552
16553 \begin_layout Plain Layout
16554 single
16555 \end_layout
16556
16557 \end_inset
16558
16559
16560 \begin_inset Flex Code
16561 status collapsed
16562
16563 \begin_layout Plain Layout
16564 onehalf
16565 \end_layout
16566
16567 \end_inset
16568
16569  and 
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574 double
16575 \end_layout
16576
16577 \end_inset
16578
16579  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16580  If you specify the argument 
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585 other
16586 \end_layout
16587
16588 \end_inset
16589
16590 , then you must also provide a value argument which will be the actual multiplie
16591 r value.
16592  Note that, contrary to other parameters, 
16593 \begin_inset Flex Code
16594 status collapsed
16595
16596 \begin_layout Plain Layout
16597 Spacing
16598 \end_layout
16599
16600 \end_inset
16601
16602  implies the generation of specific \SpecialChar LaTeX
16603  code, using the \SpecialChar LaTeX
16604  package 
16605 \family roman
16606
16607 \begin_inset Flex Code
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611 setspace
16612 \end_layout
16613
16614 \end_inset
16615
16616 .
16617 \end_layout
16618
16619 \begin_layout Description
16620 \begin_inset Flex Code
16621 status collapsed
16622
16623 \begin_layout Plain Layout
16624 Spellcheck
16625 \end_layout
16626
16627 \end_inset
16628
16629  [
16630 \begin_inset Flex Code
16631 status collapsed
16632
16633 \begin_layout Plain Layout
16634 0
16635 \end_layout
16636
16637 \end_inset
16638
16639 ,
16640 \begin_inset space \thinspace{}
16641 \end_inset
16642
16643
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648
16649 \emph on
16650 1
16651 \end_layout
16652
16653 \end_inset
16654
16655 ] Allow spell-checking paragraphs of this style.
16656  Default is true.
16657 \end_layout
16658
16659 \begin_layout Description
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 StepMasterCounter
16665 \end_layout
16666
16667 \end_inset
16668
16669  [
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674
16675 \emph on
16676 0
16677 \end_layout
16678
16679 \end_inset
16680
16681 ,
16682 \begin_inset Flex Code
16683 status collapsed
16684
16685 \begin_layout Plain Layout
16686 1
16687 \end_layout
16688
16689 \end_inset
16690
16691 ] Steps the master counter of a given counter at the beginning of a new
16692  sequence of layouts.
16693  This is currently only useful when 
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 LabelType
16699 \end_layout
16700
16701 \end_inset
16702
16703  is 
16704 \begin_inset Flex Code
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708 Enumerate
16709 \end_layout
16710
16711 \end_inset
16712
16713 .
16714 \end_layout
16715
16716 \begin_layout Description
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721 TextFont
16722 \end_layout
16723
16724 \end_inset
16725
16726  The font used for the text body .
16727  See 
16728 \begin_inset CommandInset ref
16729 LatexCommand ref
16730 reference "subsec:Font-description"
16731
16732 \end_inset
16733
16734 .
16735 \end_layout
16736
16737 \begin_layout Description
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 TocLevel
16743 \end_layout
16744
16745 \end_inset
16746
16747
16748 \series medium
16749  [
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754
16755 \series medium
16756 int=3
16757 \end_layout
16758
16759 \end_inset
16760
16761 ]
16762 \series default
16763  The level of the style in the table of contents.
16764  This is used for automatic numbering of section headings.
16765 \end_layout
16766
16767 \begin_layout Description
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 ToggleIndent
16773 \end_layout
16774
16775 \end_inset
16776
16777  [
16778 \emph on
16779
16780 \begin_inset Flex Code
16781 status collapsed
16782
16783 \begin_layout Plain Layout
16784
16785 \emph on
16786 default
16787 \end_layout
16788
16789 \end_inset
16790
16791
16792 \emph default
16793
16794 \begin_inset Flex Code
16795 status collapsed
16796
16797 \begin_layout Plain Layout
16798 always
16799 \end_layout
16800
16801 \end_inset
16802
16803
16804 \begin_inset Flex Code
16805 status collapsed
16806
16807 \begin_layout Plain Layout
16808 never
16809 \end_layout
16810
16811 \end_inset
16812
16813 ] This tag determines whether the first line indentation of this paragraph
16814  can be toggled via the Paragraph settings dialog.
16815  If 
16816 \emph on
16817
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822
16823 \emph off
16824 default
16825 \end_layout
16826
16827 \end_inset
16828
16829
16830 \emph default
16831  is set, indentation can be toggled if the document settings use 
16832 \begin_inset Quotes eld
16833 \end_inset
16834
16835 indent
16836 \begin_inset Quotes erd
16837 \end_inset
16838
16839  paragraph style, with 
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 always
16845 \end_layout
16846
16847 \end_inset
16848
16849 , indentation can always be toggled, notwithstanding the document settings,
16850  with 
16851 \begin_inset Flex Code
16852 status collapsed
16853
16854 \begin_layout Plain Layout
16855 never
16856 \end_layout
16857
16858 \end_inset
16859
16860 , indentation can never be toggled.
16861 \end_layout
16862
16863 \begin_layout Description
16864 \begin_inset Flex Code
16865 status collapsed
16866
16867 \begin_layout Plain Layout
16868 TopSep
16869 \end_layout
16870
16871 \end_inset
16872
16873  [
16874 \begin_inset Flex Code
16875 status collapsed
16876
16877 \begin_layout Plain Layout
16878 float=0
16879 \end_layout
16880
16881 \end_inset
16882
16883 ] The vertical space with which the very first of a chain of paragraphs
16884  with this style is separated from the previous paragraph.
16885  If the previous paragraph has another style, the separations are not simply
16886  added, but the maximum is taken.
16887 \end_layout
16888
16889 \begin_layout Subsection
16890 \begin_inset CommandInset label
16891 LatexCommand label
16892 name "subsec:I18n"
16893
16894 \end_inset
16895
16896 Internationalization of Paragraph Styles
16897 \end_layout
16898
16899 \begin_layout Standard
16900 \SpecialChar LyX
16901  has long supported internationalization of layout information, but, until
16902  version 2.0, this applied only to the user interface and not to, say, PDF
16903  output.
16904  Thus, French authors were forced to resort to ugly hacks if they wanted
16905  `
16906 \lang french
16907 Théorème
16908 \lang english
16909  1' instead of `Theorem 1'.
16910  Thanks to Georg Baum, that is no longer the case.
16911 \end_layout
16912
16913 \begin_layout Standard
16914 If a 
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 Style
16920 \end_layout
16921
16922 \end_inset
16923
16924  defines text that is to appear in the typeset document, it may use 
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 LangPreamble
16930 \end_layout
16931
16932 \end_inset
16933
16934  and 
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 BabelPreamble
16940 \end_layout
16941
16942 \end_inset
16943
16944  to support non-English and even multi-language documents correctly.
16945  The following excerpt (from the 
16946 \begin_inset Flex Code
16947 status collapsed
16948
16949 \begin_layout Plain Layout
16950 theorems-ams.inc
16951 \end_layout
16952
16953 \end_inset
16954
16955  file) shows how this works:
16956 \end_layout
16957
16958 \begin_layout LyX-Code
16959 Preamble
16960 \end_layout
16961
16962 \begin_deeper
16963 \begin_layout LyX-Code
16964   
16965 \backslash
16966 theoremstyle{remark}
16967 \end_layout
16968
16969 \begin_layout LyX-Code
16970   
16971 \backslash
16972 newtheorem{claim}[thm]{
16973 \backslash
16974 protect
16975 \backslash
16976 claimname}
16977 \end_layout
16978
16979 \begin_layout LyX-Code
16980 EndPreamble
16981 \end_layout
16982
16983 \begin_layout LyX-Code
16984 LangPreamble
16985 \end_layout
16986
16987 \begin_layout LyX-Code
16988   
16989 \backslash
16990 providecommand{
16991 \backslash
16992 claimname}{_(Claim)}
16993 \end_layout
16994
16995 \begin_layout LyX-Code
16996 EndLangPreamble
16997 \end_layout
16998
16999 \begin_layout LyX-Code
17000 BabelPreamble
17001 \end_layout
17002
17003 \begin_layout LyX-Code
17004     
17005 \backslash
17006 addto
17007 \backslash
17008 captions$$lang{
17009 \backslash
17010 renewcommand{
17011 \backslash
17012 claimname}{_(Claim)}}
17013 \end_layout
17014
17015 \begin_layout LyX-Code
17016 EndBabelPreamble
17017 \end_layout
17018
17019 \end_deeper
17020 \begin_layout Standard
17021 In principle, any legal \SpecialChar LaTeX
17022  may appear in the 
17023 \begin_inset Flex Code
17024 status collapsed
17025
17026 \begin_layout Plain Layout
17027 LangPreamble
17028 \end_layout
17029
17030 \end_inset
17031
17032  and 
17033 \begin_inset Flex Code
17034 status collapsed
17035
17036 \begin_layout Plain Layout
17037 BabelPreamble
17038 \end_layout
17039
17040 \end_inset
17041
17042  tags, but in practice they will typically look as they do here.
17043  The key to correct translation of the typeset text is the definition of
17044  the \SpecialChar LaTeX
17045  command 
17046 \begin_inset Flex Code
17047 status collapsed
17048
17049 \begin_layout Plain Layout
17050
17051 \backslash
17052 claimname
17053 \end_layout
17054
17055 \end_inset
17056
17057  and its use in 
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062
17063 \backslash
17064 newtheorem
17065 \end_layout
17066
17067 \end_inset
17068
17069 .
17070  
17071 \end_layout
17072
17073 \begin_layout Standard
17074 The 
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079 LangPreamble
17080 \end_layout
17081
17082 \end_inset
17083
17084  tag provides for internationalization based upon the overall language of
17085  the document.
17086  The contents of the tag will be included in the preamble, just as with
17087  the 
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092 Preamble
17093 \end_layout
17094
17095 \end_inset
17096
17097  tag.
17098  What makes it special is the use of the 
17099 \begin_inset Quotes eld
17100 \end_inset
17101
17102 function
17103 \begin_inset Quotes erd
17104 \end_inset
17105
17106  
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111 _()
17112 \end_layout
17113
17114 \end_inset
17115
17116 , which will be replaced, when \SpecialChar LyX
17117  produces \SpecialChar LaTeX
17118  output, with the translation of
17119  its argument into the document language.
17120 \end_layout
17121
17122 \begin_layout Standard
17123 The 
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128 BabelPreamble
17129 \end_layout
17130
17131 \end_inset
17132
17133  tag is more complex, since it is meant to provide support for multi-language
17134  documents and so offers an interface to the 
17135 \begin_inset Flex Code
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139 babel
17140 \end_layout
17141
17142 \end_inset
17143
17144  package.
17145  Its contents will be added to the preamble once for each language that
17146  appears in the document.
17147  In this case, the argument to 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 _()
17153 \end_layout
17154
17155 \end_inset
17156
17157  will be replaced with its translation into the language in question; the
17158  expression 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 $$lang
17164 \end_layout
17165
17166 \end_inset
17167
17168  is replaced by the language name (as used by the babel package).
17169 \end_layout
17170
17171 \begin_layout Standard
17172 A German document that also included a French section would thus have the
17173  following in the preamble:
17174 \end_layout
17175
17176 \begin_layout LyX-Code
17177
17178 \backslash
17179 addto
17180 \backslash
17181 captionsfrench{
17182 \backslash
17183 renewcommand{
17184 \backslash
17185 claimname}{Affirmation}}
17186 \begin_inset Newline newline
17187 \end_inset
17188
17189
17190 \backslash
17191 addto
17192 \backslash
17193 captionsngerman{
17194 \backslash
17195 renewcommand{
17196 \backslash
17197 claimname}{Behauptung}}
17198 \begin_inset Newline newline
17199 \end_inset
17200
17201
17202 \backslash
17203 providecommand{
17204 \backslash
17205 claimname}{Behauptung}
17206 \end_layout
17207
17208 \begin_layout Standard
17209 \SpecialChar LaTeX
17210  and 
17211 \begin_inset Flex Code
17212 status collapsed
17213
17214 \begin_layout Plain Layout
17215 babel
17216 \end_layout
17217
17218 \end_inset
17219
17220  will then conspire to produce the correct text in the output.
17221 \end_layout
17222
17223 \begin_layout Standard
17224 One important point to note here is that the translations are provided by
17225  \SpecialChar LyX
17226  itself, through the file 
17227 \begin_inset Flex Code
17228 status collapsed
17229
17230 \begin_layout Plain Layout
17231 layouttranslations
17232 \end_layout
17233
17234 \end_inset
17235
17236 .
17237  This means, in effect, that 
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242 LangPreamble
17243 \end_layout
17244
17245 \end_inset
17246
17247  and 
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252 BabelPreamble
17253 \end_layout
17254
17255 \end_inset
17256
17257  are really only of use in layout files that are provided with \SpecialChar LyX
17258 , since text
17259  entered in user-created layout files will not be seen by \SpecialChar LyX
17260 's internationalizatio
17261 n routines unless the 
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 layouttranslations
17267 \end_layout
17268
17269 \end_inset
17270
17271  file is modified accordingly.
17272  That said, however, any layout created with the intention that it will
17273  be included with \SpecialChar LyX
17274  should use these tags where appropriate.
17275  Please note that the paragraph style translations provided by \SpecialChar LyX
17276  will never
17277  change with a minor update (e.
17278 \begin_inset space \thinspace{}
17279 \end_inset
17280
17281 g.
17282 \begin_inset space \space{}
17283 \end_inset
17284
17285 from version 2.1.x to 2.1.y).
17286  It is however quite likely that a major update (e.
17287 \begin_inset space \thinspace{}
17288 \end_inset
17289
17290 g.
17291 \begin_inset space \space{}
17292 \end_inset
17293
17294 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17295 \end_layout
17296
17297 \begin_layout Subsection
17298 Floats
17299 \begin_inset CommandInset label
17300 LatexCommand label
17301 name "subsec:Floats"
17302
17303 \end_inset
17304
17305
17306 \end_layout
17307
17308 \begin_layout Standard
17309 It is necessary to define the floats (
17310 \begin_inset Flex Noun
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 figure
17315 \end_layout
17316
17317 \end_inset
17318
17319
17320 \begin_inset Flex Noun
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324 table
17325 \end_layout
17326
17327 \end_inset
17328
17329 , \SpecialChar ldots
17330 ) in the text class itself.
17331  Standard floats are included in the file 
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 stdfloats.inc
17337 \end_layout
17338
17339 \end_inset
17340
17341 , so you may have to do no more than add
17342 \end_layout
17343
17344 \begin_layout LyX-Code
17345 Input stdfloats.inc
17346 \end_layout
17347
17348 \begin_layout Standard
17349 to your layout file.
17350  If you want to implement a text class that proposes some other float types
17351  (like the AGU class bundled with \SpecialChar LyX
17352 ), the information below will hopefully
17353  help you:
17354 \end_layout
17355
17356 \begin_layout Description
17357 \begin_inset Flex Code
17358 status collapsed
17359
17360 \begin_layout Plain Layout
17361 AllowedPlacement
17362 \end_layout
17363
17364 \end_inset
17365
17366  [
17367 \begin_inset Flex Code
17368 status collapsed
17369
17370 \begin_layout Plain Layout
17371 string
17372 \end_layout
17373
17374 \end_inset
17375
17376 =!htbpH] Allowed placement options for this float type.
17377  The value is a string of placement characters.
17378  Possible characters include: 
17379 \emph on
17380 h
17381 \emph default
17382  (
17383 \begin_inset Quotes eld
17384 \end_inset
17385
17386 here if possible
17387 \begin_inset Quotes erd
17388 \end_inset
17389
17390 ), 
17391 \emph on
17392 t
17393 \emph default
17394  (
17395 \begin_inset Quotes eld
17396 \end_inset
17397
17398 top of page
17399 \begin_inset Quotes erd
17400 \end_inset
17401
17402 ), 
17403 \emph on
17404 b
17405 \emph default
17406  (
17407 \begin_inset Quotes eld
17408 \end_inset
17409
17410 bottom of page
17411 \begin_inset Quotes erd
17412 \end_inset
17413
17414 ), 
17415 \emph on
17416 p
17417 \emph default
17418  (
17419 \begin_inset Quotes eld
17420 \end_inset
17421
17422 page of floats
17423 \begin_inset Quotes erd
17424 \end_inset
17425
17426 ), 
17427 \emph on
17428 H
17429 \emph default
17430  (
17431 \begin_inset Quotes eld
17432 \end_inset
17433
17434 here definitely
17435 \begin_inset Quotes erd
17436 \end_inset
17437
17438 ) and 
17439 \emph on
17440 !
17441 \emph default
17442  (
17443 \begin_inset Quotes eld
17444 \end_inset
17445
17446 ignore LaTeX rules
17447 \begin_inset Quotes erd
17448 \end_inset
17449
17450 ).
17451  The order of the characters in the string does not matter.
17452  If no placement options are allowed, use the string 
17453 \emph on
17454 none
17455 \emph default
17456 .
17457 \end_layout
17458
17459 \begin_layout Description
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 AllowsSideways
17465 \end_layout
17466
17467 \end_inset
17468
17469  [
17470 \begin_inset Flex Code
17471 status collapsed
17472
17473 \begin_layout Plain Layout
17474
17475 \emph off
17476 0
17477 \end_layout
17478
17479 \end_inset
17480
17481 ,
17482 \begin_inset space \thinspace{}
17483 \end_inset
17484
17485
17486 \emph on
17487
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492
17493 \emph on
17494 1
17495 \end_layout
17496
17497 \end_inset
17498
17499
17500 \emph default
17501 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17502 -package 
17503 \family typewriter
17504 rotfloat
17505 \family default
17506  (sidewaysfloat).
17507  Set to 
17508 \begin_inset Flex Code
17509 status collapsed
17510
17511 \begin_layout Plain Layout
17512 0
17513 \end_layout
17514
17515 \end_inset
17516
17517  if the float does not support this feature.
17518 \end_layout
17519
17520 \begin_layout Description
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525 AllowsWide
17526 \end_layout
17527
17528 \end_inset
17529
17530  [
17531 \begin_inset Flex Code
17532 status collapsed
17533
17534 \begin_layout Plain Layout
17535
17536 \emph off
17537 0
17538 \end_layout
17539
17540 \end_inset
17541
17542 ,
17543 \begin_inset space \thinspace{}
17544 \end_inset
17545
17546
17547 \emph on
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553
17554 \emph on
17555 1
17556 \end_layout
17557
17558 \end_inset
17559
17560
17561 \emph default
17562 ] Defines whether the float has a starred variant that spans columns in
17563  a two column paragraph.
17564  Set to 
17565 \begin_inset Flex Code
17566 status collapsed
17567
17568 \begin_layout Plain Layout
17569 0
17570 \end_layout
17571
17572 \end_inset
17573
17574  if the float does not support this feature.
17575 \end_layout
17576
17577 \begin_layout Description
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 Extension
17583 \end_layout
17584
17585 \end_inset
17586
17587  [
17588 \begin_inset Flex Code
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592 string
17593 \end_layout
17594
17595 \end_inset
17596
17597 =
17598 \begin_inset Quotes erd
17599 \end_inset
17600
17601
17602 \begin_inset Quotes erd
17603 \end_inset
17604
17605 ] The file name extension of an auxiliary file for the list of figures (or
17606  whatever).
17607  \SpecialChar LaTeX
17608  writes the captions to this file.
17609 \end_layout
17610
17611 \begin_layout Description
17612 \begin_inset Flex Code
17613 status collapsed
17614
17615 \begin_layout Plain Layout
17616 GuiName
17617 \end_layout
17618
17619 \end_inset
17620
17621  [
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626 string
17627 \end_layout
17628
17629 \end_inset
17630
17631 =
17632 \begin_inset Quotes erd
17633 \end_inset
17634
17635
17636 \begin_inset Quotes erd
17637 \end_inset
17638
17639 ] The string that will be used in the menus and also for the caption.
17640  This is translated to the current language if babel is used.
17641 \end_layout
17642
17643 \begin_layout Description
17644 \begin_inset Flex Code
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648 HTML*
17649 \end_layout
17650
17651 \end_inset
17652
17653  These tags control the XHTML output.
17654  See 
17655 \begin_inset CommandInset ref
17656 LatexCommand ref
17657 reference "sec:Tags-for-XHTML"
17658
17659 \end_inset
17660
17661 .
17662 \end_layout
17663
17664 \begin_layout Description
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 IsPredefined
17670 \end_layout
17671
17672 \end_inset
17673
17674  [
17675 \emph on
17676
17677 \begin_inset Flex Code
17678 status collapsed
17679
17680 \begin_layout Plain Layout
17681 0
17682 \end_layout
17683
17684 \end_inset
17685
17686
17687 \emph default
17688 ,
17689 \begin_inset space \thinspace{}
17690 \end_inset
17691
17692
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 1
17698 \end_layout
17699
17700 \end_inset
17701
17702 ] Indicates whether the float is already defined in the document class or
17703  if instead the \SpecialChar LaTeX
17704  package 
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 float
17710 \end_layout
17711
17712 \end_inset
17713
17714  needs to be loaded to define it on-the-fly.
17715  The default is 
17716 \begin_inset Flex Code
17717 status collapsed
17718
17719 \begin_layout Plain Layout
17720 0
17721 \end_layout
17722
17723 \end_inset
17724
17725 , which means: 
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 float
17731 \end_layout
17732
17733 \end_inset
17734
17735  is used.
17736  It should be set to 
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 1
17742 \end_layout
17743
17744 \end_inset
17745
17746  if the float is already defined by the \SpecialChar LaTeX
17747  document class.
17748 \end_layout
17749
17750 \begin_layout Description
17751 \begin_inset Flex Code
17752 status collapsed
17753
17754 \begin_layout Plain Layout
17755 ListCommand
17756 \end_layout
17757
17758 \end_inset
17759
17760  [
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 string
17766 \end_layout
17767
17768 \end_inset
17769
17770 =
17771 \begin_inset Quotes erd
17772 \end_inset
17773
17774
17775 \begin_inset Quotes erd
17776 \end_inset
17777
17778 ] The command used to generate a list of floats of this type; the leading
17779  `
17780 \backslash
17781 ' must be omitted.
17782  This 
17783 \emph on
17784 must
17785 \emph default
17786  be given if 
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 UsesFloatPkg
17792 \end_layout
17793
17794 \end_inset
17795
17796  is false, since there is no standard way to generate this command.
17797  It is ignored if 
17798 \begin_inset Flex Code
17799 status collapsed
17800
17801 \begin_layout Plain Layout
17802 UsesFloatPkg
17803 \end_layout
17804
17805 \end_inset
17806
17807  is true, since in that case there is a standard way to define the command.
17808 \end_layout
17809
17810 \begin_layout Description
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 ListName
17816 \end_layout
17817
17818 \end_inset
17819
17820  [
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 string
17826 \end_layout
17827
17828 \end_inset
17829
17830 =
17831 \begin_inset Quotes erd
17832 \end_inset
17833
17834
17835 \begin_inset Quotes erd
17836 \end_inset
17837
17838 ] A title for a list of floats of this kind (list of figures, tables, or
17839  whatever).
17840  It is used for the screen label within \SpecialChar LyX
17841 , it is used by \SpecialChar LaTeX
17842  for the title and
17843  it is used as the title in the XHTML output.
17844  It will be translated to the document language.
17845 \end_layout
17846
17847 \begin_layout Description
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852 NumberWithin
17853 \end_layout
17854
17855 \end_inset
17856
17857  [
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 string
17863 \end_layout
17864
17865 \end_inset
17866
17867 =
17868 \begin_inset Quotes erd
17869 \end_inset
17870
17871
17872 \begin_inset Quotes erd
17873 \end_inset
17874
17875 ] This (optional) argument determines whether floats of this class will
17876  be numbered within some sectional unit of the document.
17877  For example, if 
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 NumberWithin
17883 \end_layout
17884
17885 \end_inset
17886
17887  is set to 
17888 \begin_inset Quotes eld
17889 \end_inset
17890
17891
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 chapter
17897 \end_layout
17898
17899 \end_inset
17900
17901
17902 \begin_inset Quotes erd
17903 \end_inset
17904
17905 , the floats will be numbered within chapters.
17906  
17907 \end_layout
17908
17909 \begin_layout Description
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 Placement
17915 \end_layout
17916
17917 \end_inset
17918
17919  [
17920 \begin_inset Flex Code
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924 string
17925 \end_layout
17926
17927 \end_inset
17928
17929 =
17930 \begin_inset Quotes erd
17931 \end_inset
17932
17933
17934 \begin_inset Quotes erd
17935 \end_inset
17936
17937 ] The default placement for the given class of floats.
17938  The string should be as in standard \SpecialChar LaTeX
17939
17940 \begin_inset Flex Code
17941 status collapsed
17942
17943 \begin_layout Plain Layout
17944 t
17945 \end_layout
17946
17947 \end_inset
17948
17949
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 b
17955 \end_layout
17956
17957 \end_inset
17958
17959
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 p
17965 \end_layout
17966
17967 \end_inset
17968
17969  and 
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 h
17975 \end_layout
17976
17977 \end_inset
17978
17979  for top, bottom, page, and here, respectively.
17980 \begin_inset Foot
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 Note that the order of these letters in the string is irrelevant, like in
17985  \SpecialChar LaTeX
17986 .
17987 \end_layout
17988
17989 \end_inset
17990
17991  On top of that there is a new type, 
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 H
17997 \end_layout
17998
17999 \end_inset
18000
18001 , which does not really correspond to a float, since it means: put it 
18002 \begin_inset Quotes eld
18003 \end_inset
18004
18005 here
18006 \begin_inset Quotes erd
18007 \end_inset
18008
18009  and nowhere else.
18010  Note however that the 
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 H
18016 \end_layout
18017
18018 \end_inset
18019
18020  specifier is special and, because of implementation details, cannot be
18021  used in non-built in float types.
18022  If you do not understand what this means, just use 
18023 \begin_inset Quotes eld
18024 \end_inset
18025
18026
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031 tbp
18032 \end_layout
18033
18034 \end_inset
18035
18036
18037 \begin_inset Quotes erd
18038 \end_inset
18039
18040 .
18041 \end_layout
18042
18043 \begin_layout Description
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048 RefPrefix
18049 \end_layout
18050
18051 \end_inset
18052
18053  [
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 string
18059 \end_layout
18060
18061 \end_inset
18062
18063 ] The prefix to use when creating labels referring to floats of this type.
18064  This allows the use of formatted references.
18065  Note that you can remove any 
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070 RefPrefix
18071 \end_layout
18072
18073 \end_inset
18074
18075  set by a copied style by using the special value 
18076 \begin_inset Quotes eld
18077 \end_inset
18078
18079 OFF
18080 \begin_inset Quotes erd
18081 \end_inset
18082
18083 , which must be all caps.
18084 \end_layout
18085
18086 \begin_layout Description
18087 \begin_inset Flex Code
18088 status collapsed
18089
18090 \begin_layout Plain Layout
18091 Style
18092 \end_layout
18093
18094 \end_inset
18095
18096  [
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 string
18102 \end_layout
18103
18104 \end_inset
18105
18106 =
18107 \begin_inset Quotes erd
18108 \end_inset
18109
18110
18111 \begin_inset Quotes erd
18112 \end_inset
18113
18114 ] The style used when defining the float using 
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119
18120 \backslash
18121 newfloat
18122 \end_layout
18123
18124 \end_inset
18125
18126 .
18127 \end_layout
18128
18129 \begin_layout Description
18130 \begin_inset Flex Code
18131 status collapsed
18132
18133 \begin_layout Plain Layout
18134 Type
18135 \end_layout
18136
18137 \end_inset
18138
18139  [
18140 \begin_inset Flex Code
18141 status collapsed
18142
18143 \begin_layout Plain Layout
18144 string
18145 \end_layout
18146
18147 \end_inset
18148
18149 =
18150 \begin_inset Quotes erd
18151 \end_inset
18152
18153
18154 \begin_inset Quotes erd
18155 \end_inset
18156
18157 ] The 
18158 \begin_inset Quotes eld
18159 \end_inset
18160
18161 type
18162 \begin_inset Quotes erd
18163 \end_inset
18164
18165  of the new class of floats, like program or algorithm.
18166  After the appropriate 
18167 \begin_inset Flex Code
18168 status collapsed
18169
18170 \begin_layout Plain Layout
18171
18172 \backslash
18173 newfloat
18174 \end_layout
18175
18176 \end_inset
18177
18178 , commands such as 
18179 \begin_inset Flex Code
18180 status collapsed
18181
18182 \begin_layout Plain Layout
18183
18184 \backslash
18185 begin{program}
18186 \end_layout
18187
18188 \end_inset
18189
18190  or 
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195
18196 \backslash
18197 end{algorithm*}
18198 \end_layout
18199
18200 \end_inset
18201
18202  will be available.
18203 \end_layout
18204
18205 \begin_layout Description
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 UsesFloatPkg
18211 \end_layout
18212
18213 \end_inset
18214
18215  [
18216 \begin_inset Flex Code
18217 status collapsed
18218
18219 \begin_layout Plain Layout
18220 0
18221 \end_layout
18222
18223 \end_inset
18224
18225 ,
18226 \begin_inset space \thinspace{}
18227 \end_inset
18228
18229
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234
18235 \emph on
18236 1
18237 \end_layout
18238
18239 \end_inset
18240
18241 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18242  package 
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 float
18248 \end_layout
18249
18250 \end_inset
18251
18252 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18253  itself.
18254 \end_layout
18255
18256 \begin_layout Standard
18257 Note that defining a float with type 
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262
18263 \emph on
18264 type
18265 \end_layout
18266
18267 \end_inset
18268
18269  automatically defines the corresponding counter with name 
18270 \begin_inset Flex Code
18271 status collapsed
18272
18273 \begin_layout Plain Layout
18274
18275 \emph on
18276 type
18277 \end_layout
18278
18279 \end_inset
18280
18281 .
18282 \end_layout
18283
18284 \begin_layout Subsection
18285 Flex insets and InsetLayout
18286 \begin_inset CommandInset label
18287 LatexCommand label
18288 name "subsec:Flex-insets-and"
18289
18290 \end_inset
18291
18292
18293 \end_layout
18294
18295 \begin_layout Standard
18296 Flex insets come in three different kinds: 
18297 \end_layout
18298
18299 \begin_layout Itemize
18300 character style (
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 CharStyle
18306 \end_layout
18307
18308 \end_inset
18309
18310 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18311  commands as 
18312 \begin_inset Flex Code
18313 status collapsed
18314
18315 \begin_layout Plain Layout
18316
18317 \backslash
18318 noun
18319 \end_layout
18320
18321 \end_inset
18322
18323  and 
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328
18329 \backslash
18330 code
18331 \end_layout
18332
18333 \end_inset
18334
18335 .
18336 \end_layout
18337
18338 \begin_layout Itemize
18339 user custom (
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 Custom
18345 \end_layout
18346
18347 \end_inset
18348
18349 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18350  code,
18351  footnote, and the like.
18352  An obvious example is an endnote inset, which is defined in the 
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 endnote
18358 \end_layout
18359
18360 \end_inset
18361
18362  module.
18363 \end_layout
18364
18365 \begin_layout Itemize
18366 XML elements (
18367 \begin_inset Flex Code
18368 status collapsed
18369
18370 \begin_layout Plain Layout
18371 Element
18372 \end_layout
18373
18374 \end_inset
18375
18376 ): For use with DocBook classes.
18377 \end_layout
18378
18379 \begin_layout Standard
18380 Flex insets are defined using the 
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385 InsetLayout
18386 \end_layout
18387
18388 \end_inset
18389
18390  tag, which shall be explained in a moment.
18391 \end_layout
18392
18393 \begin_layout Standard
18394 The 
18395 \begin_inset Flex Code
18396 status collapsed
18397
18398 \begin_layout Plain Layout
18399 InsetLayout
18400 \end_layout
18401
18402 \end_inset
18403
18404  tag also serves another function: It can be used to customize the general
18405  layout of many different types of insets.
18406  Currently, 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 InsetLayout
18412 \end_layout
18413
18414 \end_inset
18415
18416  can be used to customize the layout parameters for footnotes, marginal
18417  notes, note insets, \SpecialChar TeX
18418  code (ERT) insets, branches, listings, indexes, boxes,
18419  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18420 \end_layout
18421
18422 \begin_layout Standard
18423 The 
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 InsetLayout
18429 \end_layout
18430
18431 \end_inset
18432
18433  definition must begin with a line of the form:
18434 \end_layout
18435
18436 \begin_layout LyX-Code
18437 InsetLayout <type>
18438 \end_layout
18439
18440 \begin_layout Standard
18441 Here 
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 <Type>
18447 \end_layout
18448
18449 \end_inset
18450
18451  indicates the inset whose layout is being defined, and here there are four
18452  cases.
18453 \end_layout
18454
18455 \begin_layout Enumerate
18456 The layout for a pre-existing inset is being modified.
18457  In this case, can be 
18458 \begin_inset Flex Code
18459 status collapsed
18460
18461 \begin_layout Plain Layout
18462 <Type>
18463 \end_layout
18464
18465 \end_inset
18466
18467  any one of the following: 
18468 \begin_inset Flex Code
18469 status collapsed
18470
18471 \begin_layout Plain Layout
18472 Algorithm
18473 \end_layout
18474
18475 \end_inset
18476
18477
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 Branch
18483 \end_layout
18484
18485 \end_inset
18486
18487
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 Box
18493 \end_layout
18494
18495 \end_inset
18496
18497
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 Box:shaded
18503 \end_layout
18504
18505 \end_inset
18506
18507
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 Caption:Standard
18513 \end_layout
18514
18515 \end_inset
18516
18517
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 ERT
18523 \end_layout
18524
18525 \end_inset
18526
18527
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 Figure
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542 Foot
18543 \end_layout
18544
18545 \end_inset
18546
18547
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 Index
18553 \end_layout
18554
18555 \end_inset
18556
18557
18558 \begin_inset Flex Code
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 Info
18563 \end_layout
18564
18565 \end_inset
18566
18567
18568 \begin_inset Flex Code
18569 status collapsed
18570
18571 \begin_layout Plain Layout
18572 Info:menu
18573 \end_layout
18574
18575 \end_inset
18576
18577
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 Info:shortcut
18583 \end_layout
18584
18585 \end_inset
18586
18587
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 Info:shortcuts
18593 \end_layout
18594
18595 \end_inset
18596
18597
18598 \begin_inset Flex Code
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602 Listings
18603 \end_layout
18604
18605 \end_inset
18606
18607
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612 Marginal
18613 \end_layout
18614
18615 \end_inset
18616
18617
18618 \begin_inset Flex Code
18619 status collapsed
18620
18621 \begin_layout Plain Layout
18622 Note:Comment
18623 \end_layout
18624
18625 \end_inset
18626
18627
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 Note:Note
18633 \end_layout
18634
18635 \end_inset
18636
18637
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 Note:Greyedout
18643 \end_layout
18644
18645 \end_inset
18646
18647
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652 Table
18653 \end_layout
18654
18655 \end_inset
18656
18657 , or 
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 URL
18663 \end_layout
18664
18665 \end_inset
18666
18667 .
18668 \end_layout
18669
18670 \begin_layout Enumerate
18671 The layout for a Flex inset is being defined.
18672  In this case, 
18673 \begin_inset Flex Code
18674 status collapsed
18675
18676 \begin_layout Plain Layout
18677 <Type>
18678 \end_layout
18679
18680 \end_inset
18681
18682  must be of the form 
18683 \begin_inset Quotes eld
18684 \end_inset
18685
18686
18687 \begin_inset Flex Code
18688 status collapsed
18689
18690 \begin_layout Plain Layout
18691 Flex:<name>
18692 \end_layout
18693
18694 \end_inset
18695
18696
18697 \begin_inset Quotes erd
18698 \end_inset
18699
18700 , where 
18701 \begin_inset Flex Code
18702 status collapsed
18703
18704 \begin_layout Plain Layout
18705 name
18706 \end_layout
18707
18708 \end_inset
18709
18710  may be be any valid identifier not used by a pre-existing Flex inset.
18711  The identifier may include spaces, but in that case the whole thing must
18712  be wrapped in quotes.
18713  Note that the definition of a flex inset 
18714 \emph on
18715 must 
18716 \emph default
18717 also include a 
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 LyXType
18723 \end_layout
18724
18725 \end_inset
18726
18727  entry, declaring which type of inset it defines.
18728 \end_layout
18729
18730 \begin_layout Enumerate
18731 The layout for user specific branch is being defined.
18732  In this case, 
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 <Type>
18738 \end_layout
18739
18740 \end_inset
18741
18742  must be of the form 
18743 \begin_inset Quotes eld
18744 \end_inset
18745
18746
18747 \begin_inset Flex Code
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751 Branch:<name>
18752 \end_layout
18753
18754 \end_inset
18755
18756
18757 \begin_inset Quotes erd
18758 \end_inset
18759
18760 , where 
18761 \begin_inset Flex Code
18762 status collapsed
18763
18764 \begin_layout Plain Layout
18765 name
18766 \end_layout
18767
18768 \end_inset
18769
18770  may be be any valid identifier of branch defined in user's document.
18771  The identifier may include spaces, but in that case the whole thing must
18772  be wrapped in quotes.
18773  The main purpose of this feature is to allow \SpecialChar LaTeX
18774  wrapping around specific
18775  branches as user needs.
18776 \end_layout
18777
18778 \begin_layout Enumerate
18779 The layout of a user (or class) specific caption is being defined.
18780  In this case, 
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 <Type>
18786 \end_layout
18787
18788 \end_inset
18789
18790  must be of the form 
18791 \begin_inset Quotes eld
18792 \end_inset
18793
18794
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 Caption:<name>
18800 \end_layout
18801
18802 \end_inset
18803
18804
18805 \begin_inset Quotes erd
18806 \end_inset
18807
18808 , where 
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 name
18814 \end_layout
18815
18816 \end_inset
18817
18818  specifies the name of the caption as it appears in the menu.
18819  Have a look at the standard caption (
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 Caption:Standard
18825 \end_layout
18826
18827 \end_inset
18828
18829 ), the specific captions of the KOMA-Script classes (
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 Caption:Above
18835 \end_layout
18836
18837 \end_inset
18838
18839
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844 Caption:Below
18845 \end_layout
18846
18847 \end_inset
18848
18849 ) or the module 
18850 \family sans
18851 Multilingual
18852 \begin_inset space ~
18853 \end_inset
18854
18855 Captions
18856 \begin_inset Newline linebreak
18857 \end_inset
18858
18859
18860 \family default
18861 (
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 Caption:Bicaption
18867 \end_layout
18868
18869 \end_inset
18870
18871 ) for applications.
18872 \end_layout
18873
18874 \begin_layout Standard
18875 The 
18876 \begin_inset Flex Code
18877 status collapsed
18878
18879 \begin_layout Plain Layout
18880 InsetLayout
18881 \end_layout
18882
18883 \end_inset
18884
18885  definition can contain the following entries:
18886 \end_layout
18887
18888 \begin_layout Description
18889 \begin_inset Flex Code
18890 status collapsed
18891
18892 \begin_layout Plain Layout
18893 AddToToc
18894 \end_layout
18895
18896 \end_inset
18897
18898  [
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 string
18904 \end_layout
18905
18906 \end_inset
18907
18908 =""] This inset will appear in the table of contents of the given type.
18909  An empty string disables.
18910  See also the OutlinerName and the IsTocCaption commands.
18911  This is only implemented for Flex insets.
18912  Default: disabled.
18913 \end_layout
18914
18915 \begin_layout Description
18916 \begin_inset Flex Code
18917 status collapsed
18918
18919 \begin_layout Plain Layout
18920 Argument
18921 \end_layout
18922
18923 \end_inset
18924
18925  [
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 int
18931 \end_layout
18932
18933 \end_inset
18934
18935 ] Defines argument number of a command\SpecialChar breakableslash
18936 environment associated with the current
18937  layout.
18938  The definition must end with 
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 EndArgument
18944 \end_layout
18945
18946 \end_inset
18947
18948 .
18949  See 
18950 \begin_inset CommandInset ref
18951 LatexCommand ref
18952 reference "subsec:Paragraph-Styles"
18953
18954 \end_inset
18955
18956  for details.
18957 \end_layout
18958
18959 \begin_layout Description
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 BabelPreamble
18965 \end_layout
18966
18967 \end_inset
18968
18969  Preamble for changing language commands; see 
18970 \begin_inset CommandInset ref
18971 LatexCommand ref
18972 reference "subsec:I18n"
18973
18974 \end_inset
18975
18976 .
18977 \end_layout
18978
18979 \begin_layout Description
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 BgColor
18985 \end_layout
18986
18987 \end_inset
18988
18989  [
18990 \begin_inset Flex Code
18991 status collapsed
18992
18993 \begin_layout Plain Layout
18994 <name>
18995 \end_layout
18996
18997 \end_inset
18998
18999 ] The color for the inset's background.
19000  See 
19001 \begin_inset CommandInset ref
19002 LatexCommand ref
19003 reference "chap:Names-of-colors"
19004
19005 \end_inset
19006
19007  for a list of the available color names.
19008 \end_layout
19009
19010 \begin_layout Description
19011 \begin_inset Flex Code
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 ContentAsLabel
19016 \end_layout
19017
19018 \end_inset
19019
19020  [
19021 \begin_inset Flex Code
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025
19026 \emph on
19027 0
19028 \end_layout
19029
19030 \end_inset
19031
19032 ,
19033 \begin_inset space \thinspace{}
19034 \end_inset
19035
19036
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 1
19042 \end_layout
19043
19044 \end_inset
19045
19046 ] Whether to use the content of the inset as the label, when the inset is
19047  closed.
19048  Default is false.
19049 \end_layout
19050
19051 \begin_layout Description
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 CopyStyle
19057 \end_layout
19058
19059 \end_inset
19060
19061  [
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066 <type>
19067 \end_layout
19068
19069 \end_inset
19070
19071 ] As with paragraph styles, see 
19072 \begin_inset CommandInset ref
19073 LatexCommand ref
19074 reference "subsec:Paragraph-Styles"
19075
19076 \end_inset
19077
19078 .
19079  Note that you need to specify the complete type, e.
19080 \begin_inset space \thinspace{}
19081 \end_inset
19082
19083 g.
19084 \begin_inset space ~
19085 \end_inset
19086
19087
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 CopyStyle Flex:<name>
19093 \end_layout
19094
19095 \end_inset
19096
19097 .
19098 \end_layout
19099
19100 \begin_layout Description
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 CustomPars
19106 \end_layout
19107
19108 \end_inset
19109
19110  [
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115
19116 \emph on
19117 0
19118 \end_layout
19119
19120 \end_inset
19121
19122 ,
19123 \begin_inset space \thinspace{}
19124 \end_inset
19125
19126
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 1
19132 \end_layout
19133
19134 \end_inset
19135
19136 ] Indicates whether the user may employ the Paragraph Settings dialog to
19137  customize the paragraph.
19138 \end_layout
19139
19140 \begin_layout Description
19141 \begin_inset Flex Code
19142 status collapsed
19143
19144 \begin_layout Plain Layout
19145 Decoration
19146 \end_layout
19147
19148 \end_inset
19149
19150  can be 
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 Classic
19156 \end_layout
19157
19158 \end_inset
19159
19160
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 Minimalistic
19166 \end_layout
19167
19168 \end_inset
19169
19170 , or 
19171 \begin_inset Flex Code
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 Conglomerate
19176 \end_layout
19177
19178 \end_inset
19179
19180 , describing the rendering style used for the inset's frame and buttons.
19181  Footnotes generally use 
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 Classic
19187 \end_layout
19188
19189 \end_inset
19190
19191 , ERT insets generally 
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 Minimalistic
19197 \end_layout
19198
19199 \end_inset
19200
19201 , and character styles 
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 Conglomerate
19207 \end_layout
19208
19209 \end_inset
19210
19211 .
19212 \end_layout
19213
19214 \begin_layout Description
19215 \begin_inset Flex Code
19216 status collapsed
19217
19218 \begin_layout Plain Layout
19219 Display
19220 \end_layout
19221
19222 \end_inset
19223
19224  [
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229 0
19230 \end_layout
19231
19232 \end_inset
19233
19234 ,
19235 \emph on
19236
19237 \begin_inset space \thinspace{}
19238 \end_inset
19239
19240
19241 \emph default
19242
19243 \begin_inset Flex Code
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247
19248 \emph on
19249 1
19250 \end_layout
19251
19252 \end_inset
19253
19254 ] Only useful if 
19255 \begin_inset Flex Code
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 LatexType
19260 \end_layout
19261
19262 \end_inset
19263
19264  is 
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 Environment
19270 \end_layout
19271
19272 \end_inset
19273
19274 .
19275  Indicates whether the environment will stand on its own in the output or
19276  will appear inline with the surrounding text.
19277  If set to false, it is supposed that the \SpecialChar LaTeX
19278  environment ignores white space
19279  (including one newline character) after the 
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284
19285 \backslash
19286 begin{
19287 \emph on
19288 LatexName
19289 \emph default
19290 }
19291 \end_layout
19292
19293 \end_inset
19294
19295  and 
19296 \begin_inset Flex Code
19297 status collapsed
19298
19299 \begin_layout Plain Layout
19300
19301 \backslash
19302 end{
19303 \emph on
19304 LatexName
19305 \emph default
19306 }
19307 \end_layout
19308
19309 \end_inset
19310
19311  tags.
19312  Default is true.
19313 \change_inserted 731793113 1538674858
19314
19315 \end_layout
19316
19317 \begin_layout Description
19318
19319 \change_inserted 731793113 1538674891
19320 \begin_inset Flex Code
19321 status open
19322
19323 \begin_layout Plain Layout
19324
19325 \change_inserted 731793113 1538674863
19326 EditExternal
19327 \change_unchanged
19328
19329 \end_layout
19330
19331 \end_inset
19332
19333  [
19334 \emph on
19335 0
19336 \emph default
19337 ,1] Allow the contents of the inset to be edited externally (using whatever
19338  editor is defined for the document's output format).
19339 \change_unchanged
19340
19341 \end_layout
19342
19343 \begin_layout Description
19344 \begin_inset Flex Code
19345 status collapsed
19346
19347 \begin_layout Plain Layout
19348 End
19349 \end_layout
19350
19351 \end_inset
19352
19353  Required at the end of the 
19354 \begin_inset Flex Code
19355 status collapsed
19356
19357 \begin_layout Plain Layout
19358 InsetLayout
19359 \end_layout
19360
19361 \end_inset
19362
19363  declarations.
19364 \end_layout
19365
19366 \begin_layout Description
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371 Font
19372 \end_layout
19373
19374 \end_inset
19375
19376  The font used for both the text body 
19377 \emph on
19378 and
19379 \emph default
19380  the label.
19381  See 
19382 \begin_inset CommandInset ref
19383 LatexCommand ref
19384 reference "subsec:Font-description"
19385
19386 \end_inset
19387
19388 .
19389  Note that defining this font automatically defines the 
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394 LabelFont
19395 \end_layout
19396
19397 \end_inset
19398
19399  to the same value, so define this first and define 
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 LabelFont
19405 \end_layout
19406
19407 \end_inset
19408
19409  later if you want them to be different.
19410 \end_layout
19411
19412 \begin_layout Description
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 FixedWidthPreambleEncoding
19418 \end_layout
19419
19420 \end_inset
19421
19422  [
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427
19428 \emph on
19429 0
19430 \end_layout
19431
19432 \end_inset
19433
19434 ,
19435 \begin_inset space \thinspace{}
19436 \end_inset
19437
19438
19439 \begin_inset Flex Code
19440 status collapsed
19441
19442 \begin_layout Plain Layout
19443 1
19444 \end_layout
19445
19446 \end_inset
19447
19448 ] Force a fixed width encoding for the translated contents of 
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453 BabelPreamble
19454 \end_layout
19455
19456 \end_inset
19457
19458  and 
19459 \begin_inset Flex Code
19460 status collapsed
19461
19462 \begin_layout Plain Layout
19463 LangPreamble
19464 \end_layout
19465
19466 \end_inset
19467
19468  code generated by this layout.
19469  This is needed for special \SpecialChar LaTeX
19470 -packages like 
19471 \family typewriter
19472 listings
19473 \family default
19474  that do not work with variable width encodings such as 
19475 \family sans
19476 utf8
19477 \family default
19478 .
19479  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19480  backends such as Xe\SpecialChar TeX
19481  or
19482  Lua\SpecialChar TeX
19483  are used.
19484 \end_layout
19485
19486 \begin_layout Description
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491 ForceLocalFontSwitch
19492 \end_layout
19493
19494 \end_inset
19495
19496  [
19497 \begin_inset Flex Code
19498 status collapsed
19499
19500 \begin_layout Plain Layout
19501
19502 \emph on
19503 0
19504 \end_layout
19505
19506 \end_inset
19507
19508 ,
19509 \begin_inset space \thinspace{}
19510 \end_inset
19511
19512
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 1
19518 \end_layout
19519
19520 \end_inset
19521
19522 ] When using babel, always use a local font switch (
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527
19528 \backslash
19529 foreignlanguage
19530 \end_layout
19531
19532 \end_inset
19533
19534 ), never a global one (such as 
19535 \begin_inset Flex Code
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539
19540 \backslash
19541 selectlanguage
19542 \end_layout
19543
19544 \end_inset
19545
19546 ).
19547 \end_layout
19548
19549 \begin_layout Description
19550 \begin_inset Flex Code
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 ForceLTR
19555 \end_layout
19556
19557 \end_inset
19558
19559  [
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564
19565 \emph on
19566 0
19567 \end_layout
19568
19569 \end_inset
19570
19571 ,
19572 \begin_inset space \thinspace{}
19573 \end_inset
19574
19575
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 1
19581 \end_layout
19582
19583 \end_inset
19584
19585 ] Force the 
19586 \begin_inset Quotes eld
19587 \end_inset
19588
19589 latex
19590 \begin_inset Quotes erd
19591 \end_inset
19592
19593  language, leading to Left-to-Right (Latin) output, e.
19594 \begin_inset space \thinspace{}
19595 \end_inset
19596
19597 g.
19598 \begin_inset space \space{}
19599 \end_inset
19600
19601 in \SpecialChar TeX
19602  code or URL.
19603  A kludge.
19604 \end_layout
19605
19606 \begin_layout Description
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611 ForceOwnlines
19612 \end_layout
19613
19614 \end_inset
19615
19616  [
19617 \begin_inset Flex Code
19618 status collapsed
19619
19620 \begin_layout Plain Layout
19621
19622 \emph on
19623 0
19624 \end_layout
19625
19626 \end_inset
19627
19628 ,
19629 \begin_inset space \thinspace{}
19630 \end_inset
19631
19632
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 1
19638 \end_layout
19639
19640 \end_inset
19641
19642 ] Force a a line break in the \SpecialChar LaTeX
19643  output before the inset starts and after
19644  the inset ends.
19645  This assures the inset itself is output on its own lines, for parsing purposes.
19646 \end_layout
19647
19648 \begin_layout Description
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 ForcePlain
19654 \end_layout
19655
19656 \end_inset
19657
19658  [
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663
19664 \emph on
19665 0
19666 \end_layout
19667
19668 \end_inset
19669
19670 ,
19671 \begin_inset space \thinspace{}
19672 \end_inset
19673
19674
19675 \begin_inset Flex Code
19676 status collapsed
19677
19678 \begin_layout Plain Layout
19679 1
19680 \end_layout
19681
19682 \end_inset
19683
19684 ] Indicates whether the 
19685 \begin_inset Flex Code
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 PlainLayout
19690 \end_layout
19691
19692 \end_inset
19693
19694  should be used or, instead, the user can change the paragraph style used
19695  in the inset.
19696  Default is false.
19697 \end_layout
19698
19699 \begin_layout Description
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 FreeSpacing
19705 \end_layout
19706
19707 \end_inset
19708
19709  [
19710 \begin_inset Flex Code
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714
19715 \emph on
19716 0
19717 \end_layout
19718
19719 \end_inset
19720
19721 ,
19722 \begin_inset space \thinspace{}
19723 \end_inset
19724
19725
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 1
19731 \end_layout
19732
19733 \end_inset
19734
19735 ] As with paragraph styles, see 
19736 \begin_inset CommandInset ref
19737 LatexCommand ref
19738 reference "subsec:Paragraph-Styles"
19739
19740 \end_inset
19741
19742 .
19743 \end_layout
19744
19745 \begin_layout Description
19746 \begin_inset Flex Code
19747 status collapsed
19748
19749 \begin_layout Plain Layout
19750 HTML*
19751 \end_layout
19752
19753 \end_inset
19754
19755  These tags control the XHTML output.
19756  See 
19757 \begin_inset CommandInset ref
19758 LatexCommand ref
19759 reference "sec:Tags-for-XHTML"
19760
19761 \end_inset
19762
19763 .
19764 \end_layout
19765
19766 \begin_layout Description
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 InToc
19772 \end_layout
19773
19774 \end_inset
19775
19776  [
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781
19782 \emph on
19783 0
19784 \end_layout
19785
19786 \end_inset
19787
19788 ,
19789 \begin_inset space \thinspace{}
19790 \end_inset
19791
19792
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 1
19798 \end_layout
19799
19800 \end_inset
19801
19802 ] Whether to include the contents of this inset in the strings generated
19803  for the `Outline' pane for all table of contents, regardless of the AddToToc
19804  setting.
19805  One would not, for example, want the content of a footnote in a section
19806  header to be included in the TOC displayed in the outline, but one would
19807  normally want the content of a character style displayed.
19808  Default is false: not to include.
19809 \end_layout
19810
19811 \begin_layout Description
19812 \begin_inset Flex Code
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 IsTocCaption
19817 \end_layout
19818
19819 \end_inset
19820
19821  [
19822 \begin_inset Flex Code
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826
19827 \emph on
19828 0
19829 \end_layout
19830
19831 \end_inset
19832
19833 ,
19834 \begin_inset space \thinspace{}
19835 \end_inset
19836
19837
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 1
19843 \end_layout
19844
19845 \end_inset
19846
19847 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19848  of its contents in its item in the table of contents.
19849  Otherwise, only the label appears.
19850 \end_layout
19851
19852 \begin_layout Description
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857 KeepEmpty
19858 \end_layout
19859
19860 \end_inset
19861
19862  [
19863 \emph on
19864
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 0
19870 \end_layout
19871
19872 \end_inset
19873
19874
19875 \emph default
19876 ,
19877 \begin_inset space \thinspace{}
19878 \end_inset
19879
19880
19881 \begin_inset Flex Code
19882 status collapsed
19883
19884 \begin_layout Plain Layout
19885 1
19886 \end_layout
19887
19888 \end_inset
19889
19890 ] As with paragraph styles, see 
19891 \begin_inset CommandInset ref
19892 LatexCommand ref
19893 reference "subsec:Paragraph-Styles"
19894
19895 \end_inset
19896
19897 .
19898 \end_layout
19899
19900 \begin_layout Description
19901 \begin_inset Flex Code
19902 status collapsed
19903
19904 \begin_layout Plain Layout
19905 LabelFont
19906 \end_layout
19907
19908 \end_inset
19909
19910  The font used for the label.
19911  See 
19912 \begin_inset CommandInset ref
19913 LatexCommand ref
19914 reference "subsec:Font-description"
19915
19916 \end_inset
19917
19918 .
19919  Note that this definition can never appear before 
19920 \begin_inset Flex Code
19921 status collapsed
19922
19923 \begin_layout Plain Layout
19924 Font
19925 \end_layout
19926
19927 \end_inset
19928
19929 , lest it be ineffective.
19930 \end_layout
19931
19932 \begin_layout Description
19933 \begin_inset Flex Code
19934 status collapsed
19935
19936 \begin_layout Plain Layout
19937 LabelString
19938 \end_layout
19939
19940 \end_inset
19941
19942  [
19943 \begin_inset Flex Code
19944 status collapsed
19945
19946 \begin_layout Plain Layout
19947 string
19948 \end_layout
19949
19950 \end_inset
19951
19952 =
19953 \begin_inset Quotes erd
19954 \end_inset
19955
19956
19957 \begin_inset Quotes erd
19958 \end_inset
19959
19960 ] What will be displayed on the button or elsewhere as the inset label.
19961  Some inset types (
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 \SpecialChar TeX
19967  code
19968 \end_layout
19969
19970 \end_inset
19971
19972  and 
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 Branch
19978 \end_layout
19979
19980 \end_inset
19981
19982 ) modify this label on the fly.
19983 \end_layout
19984
19985 \begin_layout Description
19986 \begin_inset Flex Code
19987 status collapsed
19988
19989 \begin_layout Plain Layout
19990 LangPreamble
19991 \end_layout
19992
19993 \end_inset
19994
19995  Language dependent preamble; see 
19996 \begin_inset CommandInset ref
19997 LatexCommand ref
19998 reference "subsec:I18n"
19999
20000 \end_inset
20001
20002 .
20003 \end_layout
20004
20005 \begin_layout Description
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 LatexName
20011 \end_layout
20012
20013 \end_inset
20014
20015  [
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 <name>
20021 \end_layout
20022
20023 \end_inset
20024
20025 ] The name of the corresponding \SpecialChar LaTeX
20026  stuff.
20027  Either the environment or command name.
20028 \end_layout
20029
20030 \begin_layout Description
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 LatexParam
20036 \end_layout
20037
20038 \end_inset
20039
20040  [
20041 \begin_inset Flex Code
20042 status collapsed
20043
20044 \begin_layout Plain Layout
20045 <parameter>
20046 \end_layout
20047
20048 \end_inset
20049
20050 ] The optional parameter for the corresponding 
20051 \begin_inset Flex Code
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055 LatexName
20056 \end_layout
20057
20058 \end_inset
20059
20060  stuff, including possible bracket pairs like 
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065 []
20066 \end_layout
20067
20068 \end_inset
20069
20070 .
20071  This parameter cannot be changed from within \SpecialChar LyX
20072  (use 
20073 \begin_inset Flex Code
20074 status collapsed
20075
20076 \begin_layout Plain Layout
20077 Argument
20078 \end_layout
20079
20080 \end_inset
20081
20082  for customizable parameters).
20083  It will be output as is after all \SpecialChar LaTeX
20084  
20085 \begin_inset Flex Code
20086 status collapsed
20087
20088 \begin_layout Plain Layout
20089 Argument
20090 \end_layout
20091
20092 \end_inset
20093
20094 s.
20095 \end_layout
20096
20097 \begin_layout Description
20098 \begin_inset Flex Code
20099 status collapsed
20100
20101 \begin_layout Plain Layout
20102 LatexType
20103 \end_layout
20104
20105 \end_inset
20106
20107  [
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 Command, Environment, None
20113 \end_layout
20114
20115 \end_inset
20116
20117 ] How the style should be translated into \SpecialChar LaTeX
20118 .
20119 \begin_inset Foot
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 \begin_inset Flex Code
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127 LatexType
20128 \end_layout
20129
20130 \end_inset
20131
20132  is perhaps a bit misleading, since these rules apply to SGML classes too.
20133  Visit the SGML class files for specific examples.
20134 \end_layout
20135
20136 \end_inset
20137
20138
20139 \end_layout
20140
20141 \begin_deeper
20142 \begin_layout Description
20143 \begin_inset Flex Code
20144 status collapsed
20145
20146 \begin_layout Plain Layout
20147 None
20148 \end_layout
20149
20150 \end_inset
20151
20152  means nothing special
20153 \end_layout
20154
20155 \begin_layout Description
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 Command
20161 \end_layout
20162
20163 \end_inset
20164
20165  means 
20166 \begin_inset Flex Code
20167 status collapsed
20168
20169 \begin_layout Plain Layout
20170
20171 \backslash
20172
20173 \emph on
20174 LatexName
20175 \emph default
20176 {\SpecialChar ldots
20177 }
20178 \end_layout
20179
20180 \end_inset
20181
20182
20183 \end_layout
20184
20185 \begin_layout Description
20186 \begin_inset Flex Code
20187 status collapsed
20188
20189 \begin_layout Plain Layout
20190 Environment
20191 \end_layout
20192
20193 \end_inset
20194
20195  means 
20196 \begin_inset Flex Code
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200
20201 \backslash
20202 begin{
20203 \emph on
20204 LatexName
20205 \emph default
20206 }\SpecialChar ldots
20207
20208 \backslash
20209 end{
20210 \emph on
20211 LatexName
20212 \emph default
20213 }
20214 \end_layout
20215
20216 \end_inset
20217
20218
20219 \end_layout
20220
20221 \begin_layout Standard
20222 Putting the last few things together, the \SpecialChar LaTeX
20223  output will be either: 
20224 \end_layout
20225
20226 \begin_layout LyX-Code
20227
20228 \backslash
20229 LatexName[LatexParam]{\SpecialChar ldots
20230 }
20231 \end_layout
20232
20233 \begin_layout Standard
20234 or: 
20235 \end_layout
20236
20237 \begin_layout LyX-Code
20238
20239 \backslash
20240 begin{LatexName}[LatexParam] \SpecialChar ldots
20241  
20242 \backslash
20243 end{LatexName}
20244 \end_layout
20245
20246 \begin_layout Standard
20247 depending upon the \SpecialChar LaTeX
20248  type.
20249 \end_layout
20250
20251 \end_deeper
20252 \begin_layout Description
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 LeftDelim
20258 \end_layout
20259
20260 \end_inset
20261
20262  [
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 string
20268 \end_layout
20269
20270 \end_inset
20271
20272 ] A string that is put at the beginning of the layout content.
20273  A line break in the output can be indicated by 
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278 <br/>
20279 \end_layout
20280
20281 \end_inset
20282
20283 .
20284 \end_layout
20285
20286 \begin_layout Description
20287 \begin_inset Flex Code
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291 LyxType
20292 \end_layout
20293
20294 \end_inset
20295
20296  Can be 
20297 \begin_inset Flex Code
20298 status collapsed
20299
20300 \begin_layout Plain Layout
20301 charstyle
20302 \end_layout
20303
20304 \end_inset
20305
20306
20307 \begin_inset Flex Code
20308 status collapsed
20309
20310 \begin_layout Plain Layout
20311 custom
20312 \end_layout
20313
20314 \end_inset
20315
20316
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 element
20322 \end_layout
20323
20324 \end_inset
20325
20326  or 
20327 \begin_inset Flex Code
20328 status collapsed
20329
20330 \begin_layout Plain Layout
20331 end
20332 \end_layout
20333
20334 \end_inset
20335
20336  (indicating a dummy definition ending definitions of charstyles, etc).
20337  This entry is required in and is only meaningful for Flex insets.
20338  Among other things, it determines on which menu this inset will appear.
20339  Setting 
20340 \begin_inset Flex Code
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 LyxType
20345 \end_layout
20346
20347 \end_inset
20348
20349  to 
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 charstyle
20355 \end_layout
20356
20357 \end_inset
20358
20359  will automatically set 
20360 \begin_inset Flex Code
20361 status collapsed
20362
20363 \begin_layout Plain Layout
20364 MultiPar
20365 \end_layout
20366
20367 \end_inset
20368
20369  to false and 
20370 \begin_inset Flex Code
20371 status collapsed
20372
20373 \begin_layout Plain Layout
20374 ForcePlain
20375 \end_layout
20376
20377 \end_inset
20378
20379  to true.
20380  
20381 \begin_inset Flex Code
20382 status collapsed
20383
20384 \begin_layout Plain Layout
20385 MultiPar
20386 \end_layout
20387
20388 \end_inset
20389
20390  can be set to true, or 
20391 \begin_inset Flex Code
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 ForcePlain
20396 \end_layout
20397
20398 \end_inset
20399
20400  to false, for 
20401 \begin_inset Flex Code
20402 status collapsed
20403
20404 \begin_layout Plain Layout
20405 charstyle
20406 \end_layout
20407
20408 \end_inset
20409
20410  insets by setting it 
20411 \emph on
20412 after
20413 \emph default
20414  you set the 
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 LyxType
20420 \end_layout
20421
20422 \end_inset
20423
20424 .
20425 \change_inserted -712698321 1555575738
20426
20427 \end_layout
20428
20429 \begin_layout Description
20430
20431 \change_inserted -712698321 1555575844
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436
20437 \change_inserted -712698321 1555575740
20438 MenuString
20439 \end_layout
20440
20441 \end_inset
20442
20443  
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448
20449 \change_inserted -712698321 1555575740
20450 [string]
20451 \end_layout
20452
20453 \end_inset
20454
20455  A dedicated string for the menu.
20456  You can define an accelerator by appending the respective character to
20457  the string, divided by 
20458 \begin_inset Quotes eld
20459 \end_inset
20460
20461 |
20462 \begin_inset Quotes erd
20463 \end_inset
20464
20465  (e.
20466 \begin_inset space \thinspace{}
20467 \end_inset
20468
20469 g.
20470 \begin_inset space \space{}
20471 \end_inset
20472
20473
20474 \begin_inset Quotes eld
20475 \end_inset
20476
20477
20478 \begin_inset Flex Code
20479 status collapsed
20480
20481 \begin_layout Plain Layout
20482
20483 \change_inserted -712698321 1555575781
20484 My Inset|M
20485 \end_layout
20486
20487 \end_inset
20488
20489
20490 \begin_inset Quotes erd
20491 \end_inset
20492
20493 ).
20494  This specification is optional.
20495  If it is not given the inset name as specified in the type declaration
20496  will be used instead for the menu.
20497 \change_unchanged
20498
20499 \end_layout
20500
20501 \begin_layout Description
20502 \begin_inset Flex Code
20503 status collapsed
20504
20505 \begin_layout Plain Layout
20506 MultiPar
20507 \end_layout
20508
20509 \end_inset
20510
20511  [
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516
20517 \emph on
20518 0
20519 \end_layout
20520
20521 \end_inset
20522
20523 ,
20524 \begin_inset space \thinspace{}
20525 \end_inset
20526
20527
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 1
20533 \end_layout
20534
20535 \end_inset
20536
20537 ] Whether multiple paragraphs are permitted in this inset.
20538  This will also set 
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 CustomPars
20544 \end_layout
20545
20546 \end_inset
20547
20548  to the same value and 
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 ForcePlain
20554 \end_layout
20555
20556 \end_inset
20557
20558  to the opposite value.
20559  These can be reset to other values, if they are used 
20560 \emph on
20561 after
20562 \emph default
20563  
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 MultiPar
20569 \end_layout
20570
20571 \end_inset
20572
20573 .
20574  Default is true.
20575 \end_layout
20576
20577 \begin_layout Description
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 NeedProtect
20583 \end_layout
20584
20585 \end_inset
20586
20587  [
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592
20593 \emph on
20594 0
20595 \end_layout
20596
20597 \end_inset
20598
20599 ,
20600 \begin_inset space \thinspace{}
20601 \end_inset
20602
20603
20604 \begin_inset Flex Code
20605 status collapsed
20606
20607 \begin_layout Plain Layout
20608 1
20609 \end_layout
20610
20611 \end_inset
20612
20613 ] Whether fragile commands in this inset should be 
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618
20619 \backslash
20620 protect
20621 \end_layout
20622
20623 \end_inset
20624
20625 'ed.
20626  (Note: This is 
20627 \emph on
20628 not
20629 \emph default
20630  whether the command should itself be protected.) Default is false.
20631 \change_inserted -712698321 1523633958
20632
20633 \end_layout
20634
20635 \begin_layout Description
20636
20637 \change_inserted -712698321 1552395786
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642
20643 \change_inserted -712698321 1523633961
20644 NeedCProtect
20645 \end_layout
20646
20647 \end_inset
20648
20649  [
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654
20655 \change_inserted -712698321 1523633958
20656
20657 \emph on
20658 0
20659 \end_layout
20660
20661 \end_inset
20662
20663 ,
20664 \begin_inset space \thinspace{}
20665 \end_inset
20666
20667
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672
20673 \change_inserted -712698321 1523633958
20674 1
20675 \end_layout
20676
20677 \end_inset
20678
20679 ] This causes macros that contain this inset to be protected with 
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684
20685 \change_inserted -712698321 1523634038
20686
20687 \backslash
20688 cprotect
20689 \change_unchanged
20690
20691 \end_layout
20692
20693 \end_inset
20694
20695  (cf.
20696  package 
20697 \family sans
20698 cprotect
20699 \family default
20700 ) if necessary and thus allows (some) verbatim stuff in macros.
20701  Default is false.
20702 \end_layout
20703
20704 \begin_layout Description
20705
20706 \change_inserted -712698321 1555579651
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711
20712 \change_inserted -712698321 1552395787
20713 NeedMBoxProtect
20714 \end_layout
20715
20716 \end_inset
20717
20718  [
20719 \begin_inset Flex Code
20720 status collapsed
20721
20722 \begin_layout Plain Layout
20723
20724 \change_inserted -712698321 1552395787
20725
20726 \emph on
20727 0
20728 \end_layout
20729
20730 \end_inset
20731
20732 ,
20733 \begin_inset space \thinspace{}
20734 \end_inset
20735
20736
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741
20742 \change_inserted -712698321 1552395787
20743 1
20744 \end_layout
20745
20746 \end_inset
20747
20748 ] Whether specific commands in this inset (such as 
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753
20754 \change_inserted -712698321 1552395787
20755
20756 \backslash
20757 cite
20758 \end_layout
20759
20760 \end_inset
20761
20762  and 
20763 \begin_inset Flex Code
20764 status collapsed
20765
20766 \begin_layout Plain Layout
20767
20768 \change_inserted -712698321 1552395787
20769
20770 \backslash
20771 ref
20772 \end_layout
20773
20774 \end_inset
20775
20776 ) should be protected in an 
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781
20782 \change_inserted -712698321 1552395787
20783
20784 \backslash
20785 mbox
20786 \end_layout
20787
20788 \end_inset
20789
20790 .
20791  This is particularly needed for insets that draw on 
20792 \family sans
20793 ulem
20794 \family default
20795  or 
20796 \family sans
20797 soul
20798 \family default
20799  commands which parse their content in complex ways.
20800  Default is false.
20801 \end_layout
20802
20803 \begin_layout Description
20804
20805 \change_inserted -712698321 1555579742
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810
20811 \change_inserted -712698321 1555579658
20812 NewlineCmd
20813 \end_layout
20814
20815 \end_inset
20816
20817  
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822
20823 \change_inserted -712698321 1555579651
20824 [string]
20825 \end_layout
20826
20827 \end_inset
20828
20829  Option to define a different command (from the default 
20830 \begin_inset Flex Code
20831 status collapsed
20832
20833 \begin_layout Plain Layout
20834
20835 \change_inserted -712698321 1555579742
20836
20837 \backslash
20838
20839 \backslash
20840
20841 \change_unchanged
20842
20843 \end_layout
20844
20845 \end_inset
20846
20847 ) to be used for line breaks.
20848  The initial backslash must not be specified.
20849 \change_unchanged
20850
20851 \end_layout
20852
20853 \begin_layout Description
20854 \begin_inset Flex Code
20855 status collapsed
20856
20857 \begin_layout Plain Layout
20858 NoInsetLayout
20859 \end_layout
20860
20861 \end_inset
20862
20863  [
20864 \begin_inset Flex Code
20865 status collapsed
20866
20867 \begin_layout Plain Layout
20868 <layout>
20869 \end_layout
20870
20871 \end_inset
20872
20873 ] Deletes an existing 
20874 \begin_inset Flex Code
20875 status collapsed
20876
20877 \begin_layout Plain Layout
20878 InsetLayout
20879 \end_layout
20880
20881 \end_inset
20882
20883 .
20884 \end_layout
20885
20886 \begin_layout Description
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 ObsoletedBy
20892 \end_layout
20893
20894 \end_inset
20895
20896  [
20897 \begin_inset Flex Code
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 <layout>
20902 \end_layout
20903
20904 \end_inset
20905
20906 ] Name of an 
20907 \begin_inset Flex Code
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 InsetLayout
20912 \end_layout
20913
20914 \end_inset
20915
20916  that has replaced this 
20917 \begin_inset Flex Code
20918 status collapsed
20919
20920 \begin_layout Plain Layout
20921 InsetLayout
20922 \end_layout
20923
20924 \end_inset
20925
20926 .
20927  This is used to rename an 
20928 \begin_inset Flex Code
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932 InsetLayout
20933 \end_layout
20934
20935 \end_inset
20936
20937 , while keeping backward compatibility.
20938 \change_inserted -712698321 1559491850
20939
20940 \end_layout
20941
20942 \begin_layout Description
20943
20944 \change_inserted -712698321 1559492002
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949
20950 \change_inserted -712698321 1559491854
20951 ParbreakIgnored
20952 \end_layout
20953
20954 \end_inset
20955
20956  [
20957 \begin_inset Flex Code
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961
20962 \change_inserted -712698321 1559491850
20963
20964 \emph on
20965 0
20966 \end_layout
20967
20968 \end_inset
20969
20970 ,
20971 \begin_inset space \thinspace{}
20972 \end_inset
20973
20974
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979
20980 \change_inserted -712698321 1559491850
20981 1
20982 \end_layout
20983
20984 \end_inset
20985
20986 ] If this is set to 
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991
20992 \change_inserted -712698321 1559491881
20993 1
20994 \change_unchanged
20995
20996 \end_layout
20997
20998 \end_inset
20999
21000 , paragraph breaks will be ignored in the output.
21001  This might be useful for insets where the content should be alignable on
21002  different lines only in the \SpecialChar LyX
21003  workarea, without any effect in the output.
21004 \change_unchanged
21005
21006 \end_layout
21007
21008 \begin_layout Description
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 ParbreakIsNewline
21014 \end_layout
21015
21016 \end_inset
21017
21018  [
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023
21024 \emph on
21025 0
21026 \end_layout
21027
21028 \end_inset
21029
21030 ,
21031 \begin_inset space \thinspace{}
21032 \end_inset
21033
21034
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 1
21040 \end_layout
21041
21042 \end_inset
21043
21044 ] As with paragraph styles, see 
21045 \begin_inset CommandInset ref
21046 LatexCommand ref
21047 reference "subsec:Paragraph-Styles"
21048
21049 \end_inset
21050
21051 .
21052  Default is false.
21053 \end_layout
21054
21055 \begin_layout Description
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 PassThru
21061 \end_layout
21062
21063 \end_inset
21064
21065  [
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070
21071 \emph on
21072 0
21073 \end_layout
21074
21075 \end_inset
21076
21077 ,
21078 \begin_inset space \thinspace{}
21079 \end_inset
21080
21081
21082 \begin_inset Flex Code
21083 status collapsed
21084
21085 \begin_layout Plain Layout
21086 1
21087 \end_layout
21088
21089 \end_inset
21090
21091 ] As with paragraph styles, see 
21092 \begin_inset CommandInset ref
21093 LatexCommand ref
21094 reference "subsec:Paragraph-Styles"
21095
21096 \end_inset
21097
21098 .
21099  Default is false.
21100 \end_layout
21101
21102 \begin_layout Description
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 Preamble
21108 \end_layout
21109
21110 \end_inset
21111
21112  As with paragraph styles, see 
21113 \begin_inset CommandInset ref
21114 LatexCommand ref
21115 reference "subsec:Paragraph-Styles"
21116
21117 \end_inset
21118
21119 .
21120 \end_layout
21121
21122 \begin_layout Description
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 RefPrefix
21128 \end_layout
21129
21130 \end_inset
21131
21132  [
21133 \begin_inset Flex Code
21134 status collapsed
21135
21136 \begin_layout Plain Layout
21137 string
21138 \end_layout
21139
21140 \end_inset
21141
21142 ] The prefix to use when creating labels referring to insets of this type.
21143  This allows the use of formatted references.
21144 \end_layout
21145
21146 \begin_layout Description
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 Requires
21152 \end_layout
21153
21154 \end_inset
21155
21156  [
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 string
21162 \end_layout
21163
21164 \end_inset
21165
21166 ] As with paragraph styles, see 
21167 \begin_inset CommandInset ref
21168 LatexCommand ref
21169 reference "subsec:Paragraph-Styles"
21170
21171 \end_inset
21172
21173 .
21174 \end_layout
21175
21176 \begin_layout Description
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 ResetArgs
21182 \end_layout
21183
21184 \end_inset
21185
21186  [
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191
21192 \emph on
21193 0
21194 \end_layout
21195
21196 \end_inset
21197
21198 ,
21199 \begin_inset space \thinspace{}
21200 \end_inset
21201
21202
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 1
21208 \end_layout
21209
21210 \end_inset
21211
21212 ] Resets the \SpecialChar LaTeX
21213  arguments of this layout (as defined via the 
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 Argument
21219 \end_layout
21220
21221 \end_inset
21222
21223  tag).
21224  This is useful if you have copied a style via 
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 CopyStyle
21230 \end_layout
21231
21232 \end_inset
21233
21234 , but you do not want to inherit its (required and optional) arguments.
21235 \end_layout
21236
21237 \begin_layout Description
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 ResetsFont
21243 \end_layout
21244
21245 \end_inset
21246
21247  [
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 0
21253 \end_layout
21254
21255 \end_inset
21256
21257 ,
21258 \begin_inset space \thinspace{}
21259 \end_inset
21260
21261
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266
21267 \emph on
21268 1
21269 \end_layout
21270
21271 \end_inset
21272
21273 ] Whether this inset should use the font of its surrounding environment
21274  or uses its own.
21275  Default is false: use the font of the surrounding environment.
21276 \end_layout
21277
21278 \begin_layout Description
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 RightDelim
21284 \end_layout
21285
21286 \end_inset
21287
21288  [
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293 string
21294 \end_layout
21295
21296 \end_inset
21297
21298 ] A string that is put at the end of the layout content.
21299  A line break in the output can be indicated by 
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 <br/>
21305 \end_layout
21306
21307 \end_inset
21308
21309 .
21310 \end_layout
21311
21312 \begin_layout Description
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 Spellcheck
21318 \end_layout
21319
21320 \end_inset
21321
21322  [
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 0
21328 \end_layout
21329
21330 \end_inset
21331
21332 ,
21333 \begin_inset space \thinspace{}
21334 \end_inset
21335
21336
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 \emph on
21343 1
21344 \end_layout
21345
21346 \end_inset
21347
21348 ] Allow spell-checking the contents of this inset.
21349  Default is true.
21350 \end_layout
21351
21352 \begin_layout Subsection
21353 Counters
21354 \begin_inset CommandInset label
21355 LatexCommand label
21356 name "subsec:Counters"
21357
21358 \end_inset
21359
21360
21361 \end_layout
21362
21363 \begin_layout Standard
21364 It is necessary to define the counters (
21365 \begin_inset Flex Noun
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 chapter
21370 \end_layout
21371
21372 \end_inset
21373
21374
21375 \begin_inset Flex Noun
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379 figure
21380 \end_layout
21381
21382 \end_inset
21383
21384 , \SpecialChar ldots
21385 ) in the text class itself.
21386  The standard counters are defined in the file 
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 stdcounters.inc
21392 \end_layout
21393
21394 \end_inset
21395
21396 , so you may have to do no more than add
21397 \end_layout
21398
21399 \begin_layout LyX-Code
21400 Input stdcounters.inc
21401 \end_layout
21402
21403 \begin_layout Standard
21404 to your layout file to get them to work.
21405  But if you want to define custom counters, then you can do so.
21406  The counter declaration must begin with:
21407 \end_layout
21408
21409 \begin_layout LyX-Code
21410 Counter CounterName
21411 \end_layout
21412
21413 \begin_layout Standard
21414 where of course `
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419 CounterName
21420 \end_layout
21421
21422 \end_inset
21423
21424 ' is replaced by the name of the counter.
21425  And it must end with 
21426 \begin_inset Quotes eld
21427 \end_inset
21428
21429
21430 \begin_inset Flex Code
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 End
21435 \end_layout
21436
21437 \end_inset
21438
21439
21440 \begin_inset Quotes erd
21441 \end_inset
21442
21443 .
21444  The following parameters can also be used:
21445 \end_layout
21446
21447 \begin_layout Description
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 InitialValue
21453 \end_layout
21454
21455 \end_inset
21456
21457  [
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 int=1
21463 \end_layout
21464
21465 \end_inset
21466
21467 ] Sets the initial value for the counter, to which it will be reset whenever
21468  that happens.
21469  Normally, one will want the default, 1.
21470 \end_layout
21471
21472 \begin_layout Description
21473 \begin_inset Flex Code
21474 status collapsed
21475
21476 \begin_layout Plain Layout
21477 LabelString
21478 \end_layout
21479
21480 \end_inset
21481
21482  [
21483 \begin_inset Flex Code
21484 status collapsed
21485
21486 \begin_layout Plain Layout
21487 string
21488 \end_layout
21489
21490 \end_inset
21491
21492 =
21493 \begin_inset Quotes erd
21494 \end_inset
21495
21496
21497 \begin_inset Quotes erd
21498 \end_inset
21499
21500 ] When defined, this string defines how the counter is displayed.
21501  Setting this value sets 
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 LabelStringAppendix
21507 \end_layout
21508
21509 \end_inset
21510
21511  to the same value.
21512  The following special constructs can be used in the string:
21513 \end_layout
21514
21515 \begin_deeper
21516 \begin_layout Itemize
21517 \begin_inset Flex Code
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521
21522 \backslash
21523 thecounter
21524 \end_layout
21525
21526 \end_inset
21527
21528  will be replaced by the expansion of the 
21529 \begin_inset Flex Code
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533 LabelString
21534 \end_layout
21535
21536 \end_inset
21537
21538  (or 
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543 LabelStringAppendix
21544 \end_layout
21545
21546 \end_inset
21547
21548 ) of the counter 
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 counter
21554 \end_layout
21555
21556 \end_inset
21557
21558 .
21559  
21560 \end_layout
21561
21562 \begin_layout Itemize
21563 counter values can be expressed using \SpecialChar LaTeX
21564 -like macros
21565 \begin_inset Newline newline
21566 \end_inset
21567
21568
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573
21574 \backslash
21575
21576 \emph on
21577 numbertype
21578 \emph default
21579 {
21580 \emph on
21581 counter
21582 \emph default
21583 }
21584 \end_layout
21585
21586 \end_inset
21587
21588 , where 
21589 \begin_inset Flex Code
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593
21594 \emph on
21595 numbertype
21596 \end_layout
21597
21598 \end_inset
21599
21600  can be:
21601 \begin_inset Foot
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605
21606 \family roman
21607 \series medium
21608 \shape up
21609 \size normal
21610 \emph off
21611 \bar no
21612 \noun off
21613 \color none
21614 Actually, the situation is a bit more complicated: any
21615 \family default
21616 \series default
21617 \shape default
21618 \emph default
21619 \bar default
21620  
21621 \size default
21622 \emph on
21623 \noun default
21624 \color inherit
21625 numbertype
21626 \family roman
21627 \series medium
21628 \shape up
21629 \size normal
21630 \emph off
21631 \bar no
21632 \noun off
21633  other than those described below will produce arabic numerals.
21634  It would not be surprising to see this change in the future.
21635 \end_layout
21636
21637 \end_inset
21638
21639  
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 arabic
21645 \end_layout
21646
21647 \end_inset
21648
21649 : 1, 2, 3,\SpecialChar ldots
21650
21651 \begin_inset Flex Code
21652 status collapsed
21653
21654 \begin_layout Plain Layout
21655 alph
21656 \end_layout
21657
21658 \end_inset
21659
21660  for lower-case letters: a, b, c, \SpecialChar ldots
21661
21662 \begin_inset Flex Code
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666 Alph
21667 \end_layout
21668
21669 \end_inset
21670
21671  for upper-case letters: A, B, C, \SpecialChar ldots
21672
21673 \begin_inset Flex Code
21674 status collapsed
21675
21676 \begin_layout Plain Layout
21677 roman
21678 \end_layout
21679
21680 \end_inset
21681
21682  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21683
21684 \begin_inset Flex Code
21685 status collapsed
21686
21687 \begin_layout Plain Layout
21688 Roman
21689 \end_layout
21690
21691 \end_inset
21692
21693  for upper-case roman numerals: I, II, III\SpecialChar ldots
21694
21695 \begin_inset Flex Code
21696 status collapsed
21697
21698 \begin_layout Plain Layout
21699 hebrew
21700 \end_layout
21701
21702 \end_inset
21703
21704  for hebrew numerals.
21705 \end_layout
21706
21707 \end_deeper
21708 \begin_layout Standard
21709 If LabelString is not defined, a default value is constructed as follows:
21710  if the counter has a master counter 
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 master
21716 \end_layout
21717
21718 \end_inset
21719
21720  (defined via 
21721 \begin_inset Flex Code
21722 status collapsed
21723
21724 \begin_layout Plain Layout
21725 Within
21726 \end_layout
21727
21728 \end_inset
21729
21730 ), the string
21731 \begin_inset Newline newline
21732 \end_inset
21733
21734
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739
21740 \backslash
21741 themaster.
21742 \backslash
21743 arabic{counter}
21744 \end_layout
21745
21746 \end_inset
21747
21748  is used; otherwise the string 
21749 \begin_inset Flex Code
21750 status collapsed
21751
21752 \begin_layout Plain Layout
21753
21754 \backslash
21755 arabic{counter}
21756 \end_layout
21757
21758 \end_inset
21759
21760  is used.
21761 \end_layout
21762
21763 \begin_layout Description
21764 \begin_inset Flex Code
21765 status collapsed
21766
21767 \begin_layout Plain Layout
21768 LabelStringAppendix
21769 \end_layout
21770
21771 \end_inset
21772
21773  [
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 string
21779 \end_layout
21780
21781 \end_inset
21782
21783 =
21784 \begin_inset Quotes erd
21785 \end_inset
21786
21787
21788 \begin_inset Quotes erd
21789 \end_inset
21790
21791 ] Same as 
21792 \begin_inset Flex Code
21793 status collapsed
21794
21795 \begin_layout Plain Layout
21796 LabelString
21797 \end_layout
21798
21799 \end_inset
21800
21801 , but for use in the Appendix.
21802 \end_layout
21803
21804 \begin_layout Description
21805 \begin_inset Flex Code
21806 status collapsed
21807
21808 \begin_layout Plain Layout
21809 PrettyFormat
21810 \end_layout
21811
21812 \end_inset
21813
21814  [
21815 \begin_inset Flex Code
21816 status collapsed
21817
21818 \begin_layout Plain Layout
21819 string
21820 \end_layout
21821
21822 \end_inset
21823
21824 =
21825 \begin_inset Quotes erd
21826 \end_inset
21827
21828
21829 \begin_inset Quotes erd
21830 \end_inset
21831
21832 ] A format for use with formatted references to this counter.
21833  For example, one might want to have references to section numbers appear
21834  as 
21835 \begin_inset Quotes eld
21836 \end_inset
21837
21838 Section 2.4
21839 \begin_inset Quotes erd
21840 \end_inset
21841
21842 .
21843  The string should contain 
21844 \begin_inset Quotes eld
21845 \end_inset
21846
21847 ##
21848 \begin_inset Quotes erd
21849 \end_inset
21850
21851 .
21852  This will be replaced by the counter number itself.
21853  So, for sections, it would be: Section ##.
21854 \end_layout
21855
21856 \begin_layout Description
21857 \begin_inset Flex Code
21858 status collapsed
21859
21860 \begin_layout Plain Layout
21861 Within
21862 \end_layout
21863
21864 \end_inset
21865
21866  [
21867 \begin_inset Flex Code
21868 status collapsed
21869
21870 \begin_layout Plain Layout
21871 string
21872 \end_layout
21873
21874 \end_inset
21875
21876 =
21877 \begin_inset Quotes erd
21878 \end_inset
21879
21880
21881 \begin_inset Quotes erd
21882 \end_inset
21883
21884 ] If this is set to the name of another counter, the present counter will
21885  be reset every time the other one is increased.
21886  For example, 
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891 subsection
21892 \end_layout
21893
21894 \end_inset
21895
21896  is numbered inside 
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 section
21902 \end_layout
21903
21904 \end_inset
21905
21906 .
21907 \end_layout
21908
21909 \begin_layout Subsection
21910 Font description
21911 \begin_inset CommandInset label
21912 LatexCommand label
21913 name "subsec:Font-description"
21914
21915 \end_inset
21916
21917
21918 \end_layout
21919
21920 \begin_layout Standard
21921 A font description looks like this:
21922 \end_layout
21923
21924 \begin_layout LyX-Code
21925 Font 
21926 \family roman
21927 \emph on
21928 or
21929 \family default
21930 \emph default
21931  LabelFont
21932 \emph on
21933  
21934 \family roman
21935 or
21936 \family default
21937 \emph default
21938  DefaultFont
21939 \end_layout
21940
21941 \begin_layout LyX-Code
21942  ...
21943 \end_layout
21944
21945 \begin_layout LyX-Code
21946 EndFont
21947 \end_layout
21948
21949 \begin_layout Standard
21950 The following commands are available:
21951 \end_layout
21952
21953 \begin_layout Description
21954 \begin_inset Flex Code
21955 status collapsed
21956
21957 \begin_layout Plain Layout
21958 Color
21959 \end_layout
21960
21961 \end_inset
21962
21963  [
21964 \begin_inset Flex Code
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968
21969 \emph on
21970 none
21971 \end_layout
21972
21973 \end_inset
21974
21975
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 black
21981 \end_layout
21982
21983 \end_inset
21984
21985
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 white
21991 \end_layout
21992
21993 \end_inset
21994
21995
21996 \begin_inset Flex Code
21997 status collapsed
21998
21999 \begin_layout Plain Layout
22000 red
22001 \end_layout
22002
22003 \end_inset
22004
22005
22006 \begin_inset Flex Code
22007 status collapsed
22008
22009 \begin_layout Plain Layout
22010 green
22011 \end_layout
22012
22013 \end_inset
22014
22015
22016 \begin_inset Flex Code
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 blue
22021 \end_layout
22022
22023 \end_inset
22024
22025
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 cyan
22031 \end_layout
22032
22033 \end_inset
22034
22035
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 magenta
22041 \end_layout
22042
22043 \end_inset
22044
22045
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 yellow
22051 \end_layout
22052
22053 \end_inset
22054
22055
22056 \begin_inset Flex Code
22057 status collapsed
22058
22059 \begin_layout Plain Layout
22060 brown
22061 \end_layout
22062
22063 \end_inset
22064
22065
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 darkgray
22071 \end_layout
22072
22073 \end_inset
22074
22075
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 gray
22081 \end_layout
22082
22083 \end_inset
22084
22085
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 lightgray
22091 \end_layout
22092
22093 \end_inset
22094
22095
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 lime
22101 \end_layout
22102
22103 \end_inset
22104
22105
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 orange
22111 \end_layout
22112
22113 \end_inset
22114
22115
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 olive
22121 \end_layout
22122
22123 \end_inset
22124
22125
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130 pink
22131 \end_layout
22132
22133 \end_inset
22134
22135
22136 \begin_inset Flex Code
22137 status collapsed
22138
22139 \begin_layout Plain Layout
22140 purple
22141 \end_layout
22142
22143 \end_inset
22144
22145
22146 \begin_inset Flex Code
22147 status collapsed
22148
22149 \begin_layout Plain Layout
22150 teal
22151 \end_layout
22152
22153 \end_inset
22154
22155
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 violet
22161 \end_layout
22162
22163 \end_inset
22164
22165 ]
22166 \end_layout
22167
22168 \begin_layout Description
22169 \begin_inset Flex Code
22170 status collapsed
22171
22172 \begin_layout Plain Layout
22173 Family
22174 \end_layout
22175
22176 \end_inset
22177
22178  [
22179 \begin_inset Flex Code
22180 status collapsed
22181
22182 \begin_layout Plain Layout
22183
22184 \emph on
22185 Roman
22186 \end_layout
22187
22188 \end_inset
22189
22190
22191 \begin_inset Flex Code
22192 status collapsed
22193
22194 \begin_layout Plain Layout
22195 Sans
22196 \end_layout
22197
22198 \end_inset
22199
22200
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 Typewriter
22206 \end_layout
22207
22208 \end_inset
22209
22210 ]
22211 \end_layout
22212
22213 \begin_layout Description
22214 \begin_inset Flex Code
22215 status collapsed
22216
22217 \begin_layout Plain Layout
22218 Misc
22219 \end_layout
22220
22221 \end_inset
22222
22223  [
22224 \begin_inset Flex Code
22225 status collapsed
22226
22227 \begin_layout Plain Layout
22228 string
22229 \end_layout
22230
22231 \end_inset
22232
22233 ] Valid arguments are: 
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 emph
22239 \end_layout
22240
22241 \end_inset
22242
22243
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248 noun
22249 \end_layout
22250
22251 \end_inset
22252
22253
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258 strikeout
22259 \end_layout
22260
22261 \end_inset
22262
22263
22264 \begin_inset Flex Code
22265 status collapsed
22266
22267 \begin_layout Plain Layout
22268 underbar
22269 \end_layout
22270
22271 \end_inset
22272
22273
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 uuline
22279 \end_layout
22280
22281 \end_inset
22282
22283
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 uwave
22289 \end_layout
22290
22291 \end_inset
22292
22293
22294 \begin_inset Flex Code
22295 status collapsed
22296
22297 \begin_layout Plain Layout
22298 no_emph
22299 \end_layout
22300
22301 \end_inset
22302
22303
22304 \begin_inset Flex Code
22305 status collapsed
22306
22307 \begin_layout Plain Layout
22308 no_noun
22309 \end_layout
22310
22311 \end_inset
22312
22313
22314 \begin_inset Flex Code
22315 status collapsed
22316
22317 \begin_layout Plain Layout
22318 no_strikeout
22319 \end_layout
22320
22321 \end_inset
22322
22323
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 no_bar
22329 \end_layout
22330
22331 \end_inset
22332
22333
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 no_uuline
22339 \end_layout
22340
22341 \end_inset
22342
22343  and 
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 no_uwave
22349 \end_layout
22350
22351 \end_inset
22352
22353 .
22354  Each of these turns on or off the corresponding attribute.
22355  For example, 
22356 \begin_inset Flex Code
22357 status collapsed
22358
22359 \begin_layout Plain Layout
22360 emph
22361 \end_layout
22362
22363 \end_inset
22364
22365  turns on emphasis, and 
22366 \begin_inset Flex Code
22367 status collapsed
22368
22369 \begin_layout Plain Layout
22370 no_emph
22371 \end_layout
22372
22373 \end_inset
22374
22375  turns it off.
22376  
22377 \begin_inset Newline newline
22378 \end_inset
22379
22380 If the latter seems puzzling, remember that the font settings for the present
22381  context are generally inherited from the surrounding context.
22382  So 
22383 \begin_inset Flex Code
22384 status collapsed
22385
22386 \begin_layout Plain Layout
22387 no_emph
22388 \end_layout
22389
22390 \end_inset
22391
22392  would turn off the emphasis that was anyway in effect, say, in a theorem
22393  environment.
22394 \end_layout
22395
22396 \begin_layout Description
22397 \begin_inset Flex Code
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401 Series
22402 \end_layout
22403
22404 \end_inset
22405
22406  [
22407 \begin_inset Flex Code
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411
22412 \emph on
22413 Medium
22414 \end_layout
22415
22416 \end_inset
22417
22418
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 Bold
22424 \end_layout
22425
22426 \end_inset
22427
22428
22429 \end_layout
22430
22431 \begin_layout Description
22432 \begin_inset Flex Code
22433 status collapsed
22434
22435 \begin_layout Plain Layout
22436 Shape
22437 \end_layout
22438
22439 \end_inset
22440
22441  [
22442 \begin_inset Flex Code
22443 status collapsed
22444
22445 \begin_layout Plain Layout
22446
22447 \emph on
22448 Up
22449 \end_layout
22450
22451 \end_inset
22452
22453
22454 \begin_inset Flex Code
22455 status collapsed
22456
22457 \begin_layout Plain Layout
22458 Italic
22459 \end_layout
22460
22461 \end_inset
22462
22463
22464 \begin_inset Flex Code
22465 status collapsed
22466
22467 \begin_layout Plain Layout
22468 SmallCaps
22469 \end_layout
22470
22471 \end_inset
22472
22473
22474 \begin_inset Flex Code
22475 status collapsed
22476
22477 \begin_layout Plain Layout
22478 Slanted
22479 \end_layout
22480
22481 \end_inset
22482
22483
22484 \end_layout
22485
22486 \begin_layout Description
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 Size
22492 \end_layout
22493
22494 \end_inset
22495
22496  [
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 tiny
22502 \end_layout
22503
22504 \end_inset
22505
22506
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 small
22512 \end_layout
22513
22514 \end_inset
22515
22516
22517 \begin_inset Flex Code
22518 status collapsed
22519
22520 \begin_layout Plain Layout
22521
22522 \emph on
22523 normal
22524 \end_layout
22525
22526 \end_inset
22527
22528
22529 \begin_inset Flex Code
22530 status collapsed
22531
22532 \begin_layout Plain Layout
22533 large
22534 \end_layout
22535
22536 \end_inset
22537
22538
22539 \begin_inset Flex Code
22540 status collapsed
22541
22542 \begin_layout Plain Layout
22543 larger
22544 \end_layout
22545
22546 \end_inset
22547
22548
22549 \begin_inset Flex Code
22550 status collapsed
22551
22552 \begin_layout Plain Layout
22553 largest
22554 \end_layout
22555
22556 \end_inset
22557
22558
22559 \begin_inset Flex Code
22560 status collapsed
22561
22562 \begin_layout Plain Layout
22563 huge
22564 \end_layout
22565
22566 \end_inset
22567
22568
22569 \begin_inset Flex Code
22570 status collapsed
22571
22572 \begin_layout Plain Layout
22573 giant
22574 \end_layout
22575
22576 \end_inset
22577
22578 ]
22579 \end_layout
22580
22581 \begin_layout Subsection
22582 \begin_inset CommandInset label
22583 LatexCommand label
22584 name "subsec:Citation-engine-description"
22585
22586 \end_inset
22587
22588 Cite engine description
22589 \end_layout
22590
22591 \begin_layout Standard
22592 The 
22593 \begin_inset Flex Code
22594 status collapsed
22595
22596 \begin_layout Plain Layout
22597 CiteEngine
22598 \end_layout
22599
22600 \end_inset
22601
22602  blocks, as used mainly in cite engine files (see 
22603 \begin_inset CommandInset ref
22604 LatexCommand ref
22605 reference "subsec:Cite-Engine-Files"
22606 plural "false"
22607 caps "false"
22608 noprefix "false"
22609
22610 \end_inset
22611
22612 ), define the citation commands provided by a specific 
22613 \begin_inset Quotes eld
22614 \end_inset
22615
22616 cite engine
22617 \begin_inset Quotes erd
22618 \end_inset
22619
22620 .
22621  A cite engine, in \SpecialChar LyX
22622  terms, is way specific way to format citations, using
22623  numbers, author names and/or years.
22624  Currently, \SpecialChar LyX
22625  supports three such engine types, namely:
22626 \end_layout
22627
22628 \begin_layout Enumerate
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633 default
22634 \end_layout
22635
22636 \end_inset
22637
22638 : the default Bib\SpecialChar TeX
22639  way to format citations, a simple numeric style (e.
22640 \begin_inset space \thinspace{}
22641 \end_inset
22642
22643 g., 
22644 \begin_inset Quotes eld
22645 \end_inset
22646
22647 [1]
22648 \begin_inset Quotes erd
22649 \end_inset
22650
22651 )
22652 \end_layout
22653
22654 \begin_layout Enumerate
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 authoryear
22660 \end_layout
22661
22662 \end_inset
22663
22664 : Harvard-styled citations using author names and publication year (e.
22665 \begin_inset space \thinspace{}
22666 \end_inset
22667
22668 g., 
22669 \begin_inset Quotes eld
22670 \end_inset
22671
22672 Smith and Miller (2017b)
22673 \begin_inset Quotes erd
22674 \end_inset
22675
22676 )
22677 \end_layout
22678
22679 \begin_layout Enumerate
22680 \begin_inset Flex Code
22681 status collapsed
22682
22683 \begin_layout Plain Layout
22684 numerical
22685 \end_layout
22686
22687 \end_inset
22688
22689 : extended numerical citations that also allow for author or title next
22690  to the number (e.
22691 \begin_inset space \thinspace{}
22692 \end_inset
22693
22694 g., 
22695 \begin_inset Quotes eld
22696 \end_inset
22697
22698 Smith and Miller [1]
22699 \begin_inset Quotes erd
22700 \end_inset
22701
22702 )
22703 \end_layout
22704
22705 \begin_layout Standard
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 CiteEngine
22711 \end_layout
22712
22713 \end_inset
22714
22715  blocks look like this:
22716 \end_layout
22717
22718 \begin_layout LyX-Code
22719 CiteEngine default
22720 \end_layout
22721
22722 \begin_layout LyX-Code
22723  cite
22724 \end_layout
22725
22726 \begin_layout LyX-Code
22727  Citep*[][]
22728 \end_layout
22729
22730 \begin_layout LyX-Code
22731  citeyearpar[][]=parencite*
22732 \end_layout
22733
22734 \begin_layout LyX-Code
22735  ...
22736 \end_layout
22737
22738 \begin_layout LyX-Code
22739 End
22740 \end_layout
22741
22742 \begin_layout Standard
22743 The tag following 
22744 \begin_inset Flex Code
22745 status collapsed
22746
22747 \begin_layout Plain Layout
22748 CiteEngine
22749 \end_layout
22750
22751 \end_inset
22752
22753  denotes the engine.
22754  The individual lines respectively define a cite command or cite command
22755  paradigm supported by this engine.
22756  The line can be as simple as a cite command that is used both to name the
22757  respective \SpecialChar LyX
22758  command and the \SpecialChar LaTeX
22759  output or more complex in order to differentiate
22760  things.
22761  The full syntax is:
22762 \end_layout
22763
22764 \begin_layout LyX-Code
22765 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22766 \end_layout
22767
22768 \begin_layout Itemize
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773 LyXName
22774 \end_layout
22775
22776 \end_inset
22777
22778 : The name as used in the 
22779 \begin_inset Flex Code
22780 status collapsed
22781
22782 \begin_layout Plain Layout
22783 *.lyx
22784 \end_layout
22785
22786 \end_inset
22787
22788  file.
22789 \end_layout
22790
22791 \begin_deeper
22792 \begin_layout Standard
22793 For portability reasons, we try to use the same name for same-formatted
22794  commands in different cite packages (thus many names stem from natbib,
22795  and thus we need to differentiate a 
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800 latexcmd
22801 \end_layout
22802
22803 \end_inset
22804
22805  sometimes, if the \SpecialChar LaTeX
22806  command names differ).
22807 \end_layout
22808
22809 \end_deeper
22810 \begin_layout Itemize
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 alias
22816 \end_layout
22817
22818 \end_inset
22819
22820 : a (comma-separated) list of commands that fall back to the given 
22821 \begin_inset Flex Code
22822 status collapsed
22823
22824 \begin_layout Plain Layout
22825 LyXName
22826 \end_layout
22827
22828 \end_inset
22829
22830  in the current engine.
22831  This eases the switch of citation packages and engines.
22832  The 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 alias
22838 \end_layout
22839
22840 \end_inset
22841
22842  can be compared to 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 ObsoletedBy
22848 \end_layout
22849
22850 \end_inset
22851
22852  in layout definitions.
22853 \end_layout
22854
22855 \begin_layout Itemize
22856 \begin_inset Flex Code
22857 status collapsed
22858
22859 \begin_layout Plain Layout
22860 latexcmd
22861 \end_layout
22862
22863 \end_inset
22864
22865 : The actual \SpecialChar LaTeX
22866  command that is output.
22867  
22868 \end_layout
22869
22870 \begin_layout Standard
22871 \begin_inset Flex Code
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 Alias
22876 \end_layout
22877
22878 \end_inset
22879
22880  and 
22881 \begin_inset Flex Code
22882 status collapsed
22883
22884 \begin_layout Plain Layout
22885 latexcmd
22886 \end_layout
22887
22888 \end_inset
22889
22890  are optional.
22891  If no 
22892 \begin_inset Flex Code
22893 status collapsed
22894
22895 \begin_layout Plain Layout
22896 latexcmd
22897 \end_layout
22898
22899 \end_inset
22900
22901  is given, the 
22902 \begin_inset Flex Code
22903 status collapsed
22904
22905 \begin_layout Plain Layout
22906 LyXName
22907 \end_layout
22908
22909 \end_inset
22910
22911  will be output to \SpecialChar LaTeX
22912 .
22913 \end_layout
22914
22915 \begin_layout Standard
22916 Note further:
22917 \end_layout
22918
22919 \begin_layout Itemize
22920 Capitalization indicates that the command also has a capitalized form (
22921 \begin_inset Flex Code
22922 status collapsed
22923
22924 \begin_layout Plain Layout
22925
22926 \backslash
22927 Latexcmd
22928 \end_layout
22929
22930 \end_inset
22931
22932  vs.
22933  
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938
22939 \backslash
22940 latexcmd
22941 \end_layout
22942
22943 \end_inset
22944
22945 ).
22946  These usually enforce up-casing of name prefixes (
22947 \emph on
22948 von Goethe
22949 \emph default
22950  
22951 \begin_inset Formula $\Rightarrow$
22952 \end_inset
22953
22954  
22955 \emph on
22956 Von Goethe
22957 \emph default
22958 ).
22959 \end_layout
22960
22961 \begin_layout Itemize
22962 Brackets 
22963 \begin_inset Flex Code
22964 status collapsed
22965
22966 \begin_layout Plain Layout
22967 []
22968 \end_layout
22969
22970 \end_inset
22971
22972  indicate the number of optional arguments (there can be 0–2).
22973 \end_layout
22974
22975 \begin_layout Itemize
22976 A star 
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981 *
22982 \end_layout
22983
22984 \end_inset
22985
22986  indicates there is a starred version of the command (
22987 \begin_inset Flex Code
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991
22992 \backslash
22993 latexcmd*
22994 \end_layout
22995
22996 \end_inset
22997
22998  vs.
22999  
23000 \begin_inset Flex Code
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004
23005 \backslash
23006 latexcmd
23007 \end_layout
23008
23009 \end_inset
23010
23011 ).
23012  
23013 \end_layout
23014
23015 \begin_deeper
23016 \begin_layout Standard
23017 By default, the starred version means: Output all authors even if it should
23018  be shortened with 
23019 \begin_inset Quotes eld
23020 \end_inset
23021
23022 et al.
23023 \begin_inset Quotes erd
23024 \end_inset
23025
23026  due to the 
23027 \begin_inset Flex Code
23028 status collapsed
23029
23030 \begin_layout Plain Layout
23031 MaxCiteNames
23032 \end_layout
23033
23034 \end_inset
23035
23036  threshold.
23037 \end_layout
23038
23039 \begin_layout Standard
23040 If the star has a different meaning for a given command, it can be specified
23041  in angle brackets: 
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 <!_stardesc!_stardesctooltip>
23047 \end_layout
23048
23049 \end_inset
23050
23051 .
23052  Maximal two translatable macro keywords, marked by the prefix 
23053 \begin_inset Flex Code
23054 status collapsed
23055
23056 \begin_layout Plain Layout
23057 !_
23058 \end_layout
23059
23060 \end_inset
23061
23062 , can be given.
23063  The first points to the string that replaces the 
23064 \begin_inset Quotes eld
23065 \end_inset
23066
23067 Full aut&hor list
23068 \begin_inset Quotes erd
23069 \end_inset
23070
23071  checkbox label in the citation dialog, the second one to an optional tool
23072  tip for this checkbox.
23073  
23074 \end_layout
23075
23076 \begin_layout Standard
23077 Note that these two macros have to be defined in a 
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 CiteFormat
23083 \end_layout
23084
23085 \end_inset
23086
23087  (see next section), dropping the 
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092 !
23093 \end_layout
23094
23095 \end_inset
23096
23097  from the prefix, like this: 
23098 \end_layout
23099
23100 \begin_layout LyX-Code
23101 _stardesc Sta&rred command label
23102 \end_layout
23103
23104 \begin_layout LyX-Code
23105 _stardesctooltip Tooltip for the starred command checkbox.
23106 \end_layout
23107
23108 \end_deeper
23109 \begin_layout Itemize
23110 A dollar sign 
23111 \begin_inset Flex Code
23112 status collapsed
23113
23114 \begin_layout Plain Layout
23115 $
23116 \end_layout
23117
23118 \end_inset
23119
23120  indicates that this command features 
23121 \begin_inset Quotes eld
23122 \end_inset
23123
23124 qualified citation lists
23125 \begin_inset Quotes erd
23126 \end_inset
23127
23128 .
23129  This is a 
23130 \family sans
23131 Biblatex
23132 \family default
23133 -specific feature for multi-reference citations where an individual pre-
23134  and postnote can be given to each reference in the list.
23135  Please refer to the 
23136 \family sans
23137 Biblatex
23138 \family default
23139  manual for details.
23140 \change_inserted -712698321 1526898670
23141
23142 \end_layout
23143
23144 \begin_layout Standard
23145
23146 \change_inserted -712698321 1526899524
23147 If you want to add a cite command to a cite engine (e.
23148 \begin_inset space \thinspace{}
23149 \end_inset
23150
23151 g., add a specific command provided by a class), you can use 
23152 \begin_inset Flex Code
23153 status collapsed
23154
23155 \begin_layout Plain Layout
23156
23157 \change_inserted -712698321 1526898768
23158 AddToCiteEngine <engine type> \SpecialChar ldots
23159  End
23160 \change_unchanged
23161
23162 \end_layout
23163
23164 \end_inset
23165
23166 .
23167  Note that only cite commands that do not exist yet are added.
23168 \change_unchanged
23169
23170 \end_layout
23171
23172 \begin_layout Subsection
23173 \begin_inset CommandInset label
23174 LatexCommand label
23175 name "subsec:Citation-format-description"
23176
23177 \end_inset
23178
23179 Cite format description
23180 \end_layout
23181
23182 \begin_layout Standard
23183 The 
23184 \begin_inset Flex Code
23185 status collapsed
23186
23187 \begin_layout Plain Layout
23188 CiteFormat
23189 \end_layout
23190
23191 \end_inset
23192
23193  blocks are used to describe how bibliographic information should be displayed,
23194  both within \SpecialChar LyX
23195  itself (in the citation dialog and in tooltips, for example)
23196  and in XHTML output.
23197  Such a block might look like this:
23198 \end_layout
23199
23200 \begin_layout LyX-Code
23201 CiteFormat
23202 \end_layout
23203
23204 \begin_layout LyX-Code
23205  article ...
23206 \end_layout
23207
23208 \begin_layout LyX-Code
23209  book ...
23210 \end_layout
23211
23212 \begin_layout LyX-Code
23213 End
23214 \end_layout
23215
23216 \begin_layout Standard
23217 or
23218 \end_layout
23219
23220 \begin_layout LyX-Code
23221 CiteFormat
23222 \end_layout
23223
23224 \begin_layout LyX-Code
23225  cite ...
23226 \end_layout
23227
23228 \begin_layout LyX-Code
23229  citet*[][] ...
23230 \end_layout
23231
23232 \begin_layout LyX-Code
23233 End
23234 \end_layout
23235
23236 \begin_layout Standard
23237 In the first case, the individual lines define how the bibliographic information
23238  associated with an article or book, respectively, is to be displayed, and
23239  such a definition can be given for any 
23240 \begin_inset Quotes els
23241 \end_inset
23242
23243 entry type
23244 \begin_inset Quotes ers
23245 \end_inset
23246
23247  that might be present in a Bib\SpecialChar TeX
23248  file.
23249  \SpecialChar LyX
23250  defines a default format in the source code that will be used if no specific
23251  definition has been given.
23252  \SpecialChar LyX
23253  predefines several formats in the file 
23254 \begin_inset Flex Code
23255 status collapsed
23256
23257 \begin_layout Plain Layout
23258 stdciteformats.inc
23259 \end_layout
23260
23261 \end_inset
23262
23263 , which is included in most of \SpecialChar LyX
23264 's document classes.
23265 \end_layout
23266
23267 \begin_layout Standard
23268 In the second case, the lines define how a specific citation command (in
23269  the example 
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274
23275 \backslash
23276 cite
23277 \end_layout
23278
23279 \end_inset
23280
23281
23282 \begin_inset Flex Code
23283 status collapsed
23284
23285 \begin_layout Plain Layout
23286
23287 \backslash
23288 citet
23289 \end_layout
23290
23291 \end_inset
23292
23293 ) is to be displayed on the citation inset label, in the citation dialog,
23294  menu or XHTML output.
23295  \SpecialChar LyX
23296  defines such formats for the citation style variants it supports via 
23297 \family sans
23298 Document\SpecialChar menuseparator
23299 Setting\SpecialChar menuseparator
23300 Bibliography\SpecialChar ldots
23301
23302 \family default
23303  in specific 
23304 \begin_inset Flex Code
23305 status collapsed
23306
23307 \begin_layout Plain Layout
23308 *.citeengine
23309 \end_layout
23310
23311 \end_inset
23312
23313  files that are shipped with \SpecialChar LyX
23314  (see 
23315 \begin_inset CommandInset ref
23316 LatexCommand ref
23317 reference "subsec:Cite-Engine-Files"
23318 plural "false"
23319 caps "false"
23320 noprefix "false"
23321
23322 \end_inset
23323
23324 ).
23325 \end_layout
23326
23327 \begin_layout Standard
23328 The definitions use a simple language that allows Bib\SpecialChar TeX
23329  keys to be replaced
23330  with their values.
23331  Keys should be enclosed in 
23332 \begin_inset Flex Code
23333 status collapsed
23334
23335 \begin_layout Plain Layout
23336 %
23337 \end_layout
23338
23339 \end_inset
23340
23341  signs, e.g.: 
23342 \begin_inset Flex Code
23343 status collapsed
23344
23345 \begin_layout Plain Layout
23346 %author%
23347 \end_layout
23348
23349 \end_inset
23350
23351 .
23352  So a simple definition might look like this:
23353 \end_layout
23354
23355 \begin_layout LyX-Code
23356 misc %author%, 
23357 \begin_inset Quotes eld
23358 \end_inset
23359
23360 %title%
23361 \begin_inset Quotes erd
23362 \end_inset
23363
23364 .
23365 \end_layout
23366
23367 \begin_layout Standard
23368 This would print the author, followed by a comma, followed by the title,
23369  in quotes, followed by a period.
23370 \end_layout
23371
23372 \begin_layout Standard
23373 Of course, sometimes you may want to print a key only if it exists.
23374  This can be done by using a conditional construction, such as: 
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 {%volume%[[vol.
23380 \begin_inset space ~
23381 \end_inset
23382
23383 %volume%]]}
23384 \end_layout
23385
23386 \end_inset
23387
23388 .
23389  This says: If the 
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 volume
23395 \end_layout
23396
23397 \end_inset
23398
23399  key exists, then print 
23400 \begin_inset Quotes eld
23401 \end_inset
23402
23403 vol.
23404 \begin_inset space ~
23405 \end_inset
23406
23407
23408 \begin_inset Quotes erd
23409 \end_inset
23410
23411  followed by the volume key.
23412  It is also possible to have an else clause in the conditional, such as:
23413 \begin_inset Newline newline
23414 \end_inset
23415
23416
23417 \begin_inset Flex Code
23418 status collapsed
23419
23420 \begin_layout Plain Layout
23421 {%author%[[%author%]][[%editor%, ed.]]}
23422 \end_layout
23423
23424 \end_inset
23425
23426 .
23427 \begin_inset Newline newline
23428 \end_inset
23429
23430 Here, the 
23431 \begin_inset Flex Code
23432 status collapsed
23433
23434 \begin_layout Plain Layout
23435 author
23436 \end_layout
23437
23438 \end_inset
23439
23440  key is printed if it exists; otherwise, the editor key is printed, followed
23441  by 
23442 \begin_inset Quotes eld
23443 \end_inset
23444
23445 ,
23446 \begin_inset space ~
23447 \end_inset
23448
23449 ed.
23450 \begin_inset Quotes erd
23451 \end_inset
23452
23453  Note that the key is again enclosed in 
23454 \begin_inset Flex Code
23455 status collapsed
23456
23457 \begin_layout Plain Layout
23458 %
23459 \end_layout
23460
23461 \end_inset
23462
23463  signs; the entire conditional is enclosed in braces; and the if and else
23464  clauses are enclosed in double brackets, 
23465 \begin_inset Quotes eld
23466 \end_inset
23467
23468
23469 \begin_inset Flex Code
23470 status collapsed
23471
23472 \begin_layout Plain Layout
23473 [[
23474 \end_layout
23475
23476 \end_inset
23477
23478
23479 \begin_inset Quotes eld
23480 \end_inset
23481
23482  and 
23483 \begin_inset Quotes eld
23484 \end_inset
23485
23486
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 ]]
23492 \end_layout
23493
23494 \end_inset
23495
23496
23497 \begin_inset Quotes erd
23498 \end_inset
23499
23500 .
23501  There must be no space between any of these.
23502 \end_layout
23503
23504 \begin_layout Standard
23505 Next to the entry keys, there are some special keys that can be used for
23506  these conditionals:
23507 \end_layout
23508
23509 \begin_layout Itemize
23510 \begin_inset Flex Code
23511 status collapsed
23512
23513 \begin_layout Plain Layout
23514 {%dialog%[[true]][[false]]}
23515 \end_layout
23516
23517 \end_inset
23518
23519 : process the 
23520 \begin_inset Quotes eld
23521 \end_inset
23522
23523 true
23524 \begin_inset Quotes erd
23525 \end_inset
23526
23527  part for dialogs and menus, the 
23528 \begin_inset Quotes eld
23529 \end_inset
23530
23531 false
23532 \begin_inset Quotes erd
23533 \end_inset
23534
23535  part for other contexts (workarea, export)
23536 \end_layout
23537
23538 \begin_layout Itemize
23539 \begin_inset Flex Code
23540 status collapsed
23541
23542 \begin_layout Plain Layout
23543 {%export%[[true]][[false]]}
23544 \end_layout
23545
23546 \end_inset
23547
23548 : process the 
23549 \begin_inset Quotes eld
23550 \end_inset
23551
23552 true
23553 \begin_inset Quotes erd
23554 \end_inset
23555
23556  part for export and menus, the 
23557 \begin_inset Quotes eld
23558 \end_inset
23559
23560 false
23561 \begin_inset Quotes erd
23562 \end_inset
23563
23564  part for other contexts (workarea, dialog)
23565 \end_layout
23566
23567 \begin_layout Itemize
23568 \begin_inset Flex Code
23569 status collapsed
23570
23571 \begin_layout Plain Layout
23572 {%next%[[true]]}
23573 \end_layout
23574
23575 \end_inset
23576
23577 : process the 
23578 \begin_inset Quotes eld
23579 \end_inset
23580
23581 true
23582 \begin_inset Quotes erd
23583 \end_inset
23584
23585  part if another item follows (e.
23586 \begin_inset space \thinspace{}
23587 \end_inset
23588
23589 g., in a citation with multiple keys)
23590 \end_layout
23591
23592 \begin_layout Itemize
23593 \begin_inset Flex Code
23594 status collapsed
23595
23596 \begin_layout Plain Layout
23597 {%second%[[true]][[false]]}
23598 \end_layout
23599
23600 \end_inset
23601
23602 : process the 
23603 \begin_inset Quotes eld
23604 \end_inset
23605
23606 true
23607 \begin_inset Quotes erd
23608 \end_inset
23609
23610  if this is the second of multiple items, else the 
23611 \begin_inset Quotes eld
23612 \end_inset
23613
23614 false
23615 \begin_inset Quotes erd
23616 \end_inset
23617
23618  part
23619 \end_layout
23620
23621 \begin_layout Itemize
23622 \begin_inset Flex Code
23623 status collapsed
23624
23625 \begin_layout Plain Layout
23626 {%ifstar%[[true]][[false]]}
23627 \end_layout
23628
23629 \end_inset
23630
23631 : process the 
23632 \begin_inset Quotes eld
23633 \end_inset
23634
23635 true
23636 \begin_inset Quotes erd
23637 \end_inset
23638
23639  part for starred citation commands (such as 
23640 \begin_inset Flex Code
23641 status collapsed
23642
23643 \begin_layout Plain Layout
23644
23645 \backslash
23646 cite*
23647 \end_layout
23648
23649 \end_inset
23650
23651 ), the false part for unstarred
23652 \end_layout
23653
23654 \begin_layout Itemize
23655 \begin_inset Flex Code
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659 {%ifentrytype:<type>%[[true]][[false]]}
23660 \end_layout
23661
23662 \end_inset
23663
23664 : process the 
23665 \begin_inset Quotes eld
23666 \end_inset
23667
23668 true
23669 \begin_inset Quotes erd
23670 \end_inset
23671
23672  if the current entry type matches 
23673 \begin_inset Flex Code
23674 status collapsed
23675
23676 \begin_layout Plain Layout
23677 <type>
23678 \end_layout
23679
23680 \end_inset
23681
23682 , else the false part (e.g., in a citation definition: 
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23688 \end_layout
23689
23690 \end_inset
23691
23692 )
23693 \end_layout
23694
23695 \begin_layout Itemize
23696 \begin_inset Flex Code
23697 status collapsed
23698
23699 \begin_layout Plain Layout
23700 {%ifmultiple:<authortype>%[[true]][[false]]}
23701 \end_layout
23702
23703 \end_inset
23704
23705 : process the 
23706 \begin_inset Quotes eld
23707 \end_inset
23708
23709 true
23710 \begin_inset Quotes erd
23711 \end_inset
23712
23713  if the current author type (author, editor etc.) has multiple authors, else
23714  the false part (e.g., in a bibliography definition: 
23715 \begin_inset Flex Code
23716 status collapsed
23717
23718 \begin_layout Plain Layout
23719 {%ifmultiple:editor%[[eds.]][[ed.]]}
23720 \end_layout
23721
23722 \end_inset
23723
23724 )
23725 \end_layout
23726
23727 \begin_layout Itemize
23728 \begin_inset Flex Code
23729 status collapsed
23730
23731 \begin_layout Plain Layout
23732 {%ifqualified%[[true]][[false]]}
23733 \end_layout
23734
23735 \end_inset
23736
23737 : process the 
23738 \begin_inset Quotes eld
23739 \end_inset
23740
23741 true
23742 \begin_inset Quotes erd
23743 \end_inset
23744
23745  part if the current citation is a qualified citation list (a specific 
23746 \family sans
23747 Biblatex
23748 \family default
23749  format for multi-reference citations), the false part if this is not the
23750  case.
23751 \end_layout
23752
23753 \begin_layout Standard
23754 We said that 
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 %author%
23760 \end_layout
23761
23762 \end_inset
23763
23764  prints the author key as it is recorded in the bibliography file.
23765  This might not be what you want, since it will result in a string such
23766  as 
23767 \begin_inset Quotes eld
23768 \end_inset
23769
23770 Miller, Peter and Smith, Mary and White, Jane
23771 \begin_inset Quotes erd
23772 \end_inset
23773
23774  (since 
23775 \begin_inset Quotes eld
23776 \end_inset
23777
23778 and
23779 \begin_inset Quotes erd
23780 \end_inset
23781
23782  is used by Bib\SpecialChar TeX
23783  to delimit authors).
23784  \SpecialChar LyX
23785  therefore provides some methods to get properly formatted name lists (which
23786  will also get translated).
23787  The following keys are provided:
23788 \end_layout
23789
23790 \begin_layout Enumerate
23791 For name lists with pre- and surname, suitable for the main authors/editors
23792  of a bibliography item.
23793  The 
23794 \begin_inset Flex Code
23795 status collapsed
23796
23797 \begin_layout Plain Layout
23798 <nametype>
23799 \end_layout
23800
23801 \end_inset
23802
23803  part denotes the kind of list that is requested (e.g.
23804  
23805 \begin_inset Flex Code
23806 status collapsed
23807
23808 \begin_layout Plain Layout
23809 <nametype:author>
23810 \end_layout
23811
23812 \end_inset
23813
23814 ):
23815 \end_layout
23816
23817 \begin_deeper
23818 \begin_layout Itemize
23819 \begin_inset Flex Code
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823 %abbrvnames:<nametype>%
23824 \end_layout
23825
23826 \end_inset
23827
23828 : Provides a name list which is abbreviated (with 
23829 \begin_inset Quotes eld
23830 \end_inset
23831
23832 et al.
23833 \begin_inset Quotes erd
23834 \end_inset
23835
23836 ) when 
23837 \begin_inset Flex Code
23838 status collapsed
23839
23840 \begin_layout Plain Layout
23841 MaxCiteNames
23842 \end_layout
23843
23844 \end_inset
23845
23846  is reached.
23847 \end_layout
23848
23849 \begin_layout Itemize
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854 %fullnames:<nametype>%
23855 \end_layout
23856
23857 \end_inset
23858
23859 : Provides a full name list (never abbreviated with 
23860 \begin_inset Quotes eld
23861 \end_inset
23862
23863 et al.
23864 \begin_inset Quotes erd
23865 \end_inset
23866
23867 ).
23868 \end_layout
23869
23870 \begin_layout Itemize
23871 \begin_inset Flex Code
23872 status collapsed
23873
23874 \begin_layout Plain Layout
23875 %forceabbrvnames:<nametype>%
23876 \end_layout
23877
23878 \end_inset
23879
23880 : Provides a name list which is always abbreviated (with 
23881 \begin_inset Quotes eld
23882 \end_inset
23883
23884 et al.
23885 \begin_inset Quotes erd
23886 \end_inset
23887
23888 ) irrespective of 
23889 \begin_inset Flex Code
23890 status collapsed
23891
23892 \begin_layout Plain Layout
23893 MaxCiteNames
23894 \end_layout
23895
23896 \end_inset
23897
23898 .
23899 \end_layout
23900
23901 \end_deeper
23902 \begin_layout Enumerate
23903 Alternative name lists with pre- and surname, if the order of pre- and surname
23904  inside the bibliography item differs (as in: 
23905 \begin_inset Quotes eld
23906 \end_inset
23907
23908 Miller, John: Some text, in: Mary Smith, ed.: A volume
23909 \begin_inset Quotes erd
23910 \end_inset
23911
23912 ):
23913 \end_layout
23914
23915 \begin_deeper
23916 \begin_layout Itemize
23917 \begin_inset Flex Code
23918 status collapsed
23919
23920 \begin_layout Plain Layout
23921 %abbrvbynames:<nametype>%
23922 \end_layout
23923
23924 \end_inset
23925
23926 : Provides a name list which is abbreviated (with 
23927 \begin_inset Quotes eld
23928 \end_inset
23929
23930 et al.
23931 \begin_inset Quotes erd
23932 \end_inset
23933
23934 ) when 
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 MaxCiteNames
23940 \end_layout
23941
23942 \end_inset
23943
23944  is reached.
23945 \end_layout
23946
23947 \begin_layout Itemize
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952 %fullbynames:<nametype>%
23953 \end_layout
23954
23955 \end_inset
23956
23957 : Provides a full name list (never abbreviated with 
23958 \begin_inset Quotes eld
23959 \end_inset
23960
23961 et al.
23962 \begin_inset Quotes erd
23963 \end_inset
23964
23965 ).
23966 \end_layout
23967
23968 \begin_layout Itemize
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973 %forceabbrvbynames:<nametype>%
23974 \end_layout
23975
23976 \end_inset
23977
23978 : Provides a name list which is always abbreviated (with 
23979 \begin_inset Quotes eld
23980 \end_inset
23981
23982 et al.
23983 \begin_inset Quotes erd
23984 \end_inset
23985
23986 ) irrespective of 
23987 \begin_inset Flex Code
23988 status collapsed
23989
23990 \begin_layout Plain Layout
23991 MaxCiteNames
23992 \end_layout
23993
23994 \end_inset
23995
23996 .
23997 \end_layout
23998
23999 \end_deeper
24000 \begin_layout Enumerate
24001 And finally name lists which consist of family names only, as used in author-yea
24002 r citation labels.
24003  These do not take a 
24004 \begin_inset Flex Code
24005 status collapsed
24006
24007 \begin_layout Plain Layout
24008 <nametype>
24009 \end_layout
24010
24011 \end_inset
24012
24013  part, but always return either an author list or, if this does not exist,
24014  an editor list (as common in author-year labels):
24015 \end_layout
24016
24017 \begin_deeper
24018 \begin_layout Itemize
24019 \begin_inset Flex Code
24020 status collapsed
24021
24022 \begin_layout Plain Layout
24023 %abbrvciteauthor%
24024 \end_layout
24025
24026 \end_inset
24027
24028 : Provides a name list which is abbreviated (with 
24029 \begin_inset Quotes eld
24030 \end_inset
24031
24032 et al.
24033 \begin_inset Quotes erd
24034 \end_inset
24035
24036 ) when 
24037 \begin_inset Flex Code
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041 MaxCiteNames
24042 \end_layout
24043
24044 \end_inset
24045
24046  is reached.
24047 \end_layout
24048
24049 \begin_layout Itemize
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 %fullciteauthor%
24055 \end_layout
24056
24057 \end_inset
24058
24059 : Provides a full name list (never abbreviated with 
24060 \begin_inset Quotes eld
24061 \end_inset
24062
24063 et al.
24064 \begin_inset Quotes erd
24065 \end_inset
24066
24067 ).
24068 \end_layout
24069
24070 \begin_layout Itemize
24071 \begin_inset Flex Code
24072 status collapsed
24073
24074 \begin_layout Plain Layout
24075 %forceabbrvciteauthor%
24076 \end_layout
24077
24078 \end_inset
24079
24080 : Provides a name list which is always abbreviated (with 
24081 \begin_inset Quotes eld
24082 \end_inset
24083
24084 et al.
24085 \begin_inset Quotes erd
24086 \end_inset
24087
24088 ) irrespective of 
24089 \begin_inset Flex Code
24090 status collapsed
24091
24092 \begin_layout Plain Layout
24093 MaxCiteNames
24094 \end_layout
24095
24096 \end_inset
24097
24098 .
24099 \end_layout
24100
24101 \end_deeper
24102 \begin_layout Standard
24103 The order of pre- and surname in the former two lists can be adjusted by
24104  these macros:
24105 \end_layout
24106
24107 \begin_layout Itemize
24108 \begin_inset Flex Code
24109 status collapsed
24110
24111 \begin_layout Plain Layout
24112 !firstnameform %surname%, %prename%
24113 \end_layout
24114
24115 \end_inset
24116
24117  (first author in lists of type 1)
24118 \end_layout
24119
24120 \begin_layout Itemize
24121 \begin_inset Flex Code
24122 status collapsed
24123
24124 \begin_layout Plain Layout
24125 !othernameform %surname%, %prename%
24126 \end_layout
24127
24128 \end_inset
24129
24130  (other authors in lists of type 1)
24131 \end_layout
24132
24133 \begin_layout Itemize
24134 \begin_inset Flex Code
24135 status collapsed
24136
24137 \begin_layout Plain Layout
24138 !firstbynameform %prename% %surname%
24139 \end_layout
24140
24141 \end_inset
24142
24143  (first author in lists of type 2)
24144 \end_layout
24145
24146 \begin_layout Itemize
24147 \begin_inset Flex Code
24148 status collapsed
24149
24150 \begin_layout Plain Layout
24151 !otherbynameform %prename% %surname%
24152 \end_layout
24153
24154 \end_inset
24155
24156  (other authors in lists of type 2)
24157 \end_layout
24158
24159 \begin_layout Standard
24160 This allows you to configure namings like 
24161 \begin_inset Quotes eld
24162 \end_inset
24163
24164 Miller, Peter and Mary Smith: \SpecialChar ldots
24165 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24166
24167 \begin_inset Quotes erd
24168 \end_inset
24169
24170 .
24171 \end_layout
24172
24173 \begin_layout Standard
24174 There is one other piece of syntax available in definitions, which looks
24175  like this: 
24176 \begin_inset Flex Code
24177 status collapsed
24178
24179 \begin_layout Plain Layout
24180 {!<i>!}
24181 \end_layout
24182
24183 \end_inset
24184
24185 .
24186  This defines a piece of formatting information that is to be used when
24187  creating 
24188 \begin_inset Quotes eld
24189 \end_inset
24190
24191 rich text
24192 \begin_inset Quotes erd
24193 \end_inset
24194
24195 .
24196  Obviously, we do not want to output HTML tags when writing plain text,
24197  so they should be wrapped in 
24198 \begin_inset Quotes eld
24199 \end_inset
24200
24201 {!
24202 \begin_inset Quotes erd
24203 \end_inset
24204
24205  and 
24206 \begin_inset Quotes eld
24207 \end_inset
24208
24209 !}
24210 \begin_inset Quotes erd
24211 \end_inset
24212
24213 .
24214 \end_layout
24215
24216 \begin_layout Standard
24217 Two special sorts of definitions are also possible in a 
24218 \begin_inset Flex Code
24219 status collapsed
24220
24221 \begin_layout Plain Layout
24222 CiteFormat
24223 \end_layout
24224
24225 \end_inset
24226
24227  block.
24228  An example of the first would be:
24229 \end_layout
24230
24231 \begin_layout LyX-Code
24232 !quotetitle 
24233 \begin_inset Quotes eld
24234 \end_inset
24235
24236 %title%
24237 \begin_inset Quotes erd
24238 \end_inset
24239
24240
24241 \end_layout
24242
24243 \begin_layout Standard
24244 This is an abbreviation, or macro, and it can be used by treating it as
24245  if it were a key: 
24246 \begin_inset Flex Code
24247 status collapsed
24248
24249 \begin_layout Plain Layout
24250 %!quotetitle%
24251 \end_layout
24252
24253 \end_inset
24254
24255 .
24256  \SpecialChar LyX
24257  will treat 
24258 \begin_inset Flex Code
24259 status collapsed
24260
24261 \begin_layout Plain Layout
24262 %!quotetitle%
24263 \end_layout
24264
24265 \end_inset
24266
24267  exactly as it would treat its definition.
24268  So, let us issue the obvious 
24269 \emph on
24270 warning
24271 \emph default
24272 .
24273  Do not do this:
24274 \end_layout
24275
24276 \begin_layout LyX-Code
24277 !funfun %funfun%
24278 \end_layout
24279
24280 \begin_layout Standard
24281 or anything like it.
24282  \SpecialChar LyX
24283  shouldn't go into an infinite loop, but it may go into a long one before
24284  it gives up.
24285 \end_layout
24286
24287 \begin_layout Standard
24288 The second sort of special definition might look like this:
24289 \end_layout
24290
24291 \begin_layout LyX-Code
24292 B_pptext pp.
24293 \end_layout
24294
24295 \begin_layout Standard
24296 This defines a translatable piece of text, which allows relevant parts of
24297  the bibliography or citation to be translated.
24298  It can be included in a definition by treating it as a key: 
24299 \begin_inset Flex Code
24300 status collapsed
24301
24302 \begin_layout Plain Layout
24303 %B_pptext%
24304 \end_layout
24305
24306 \end_inset
24307
24308 .
24309  Note that there are two different translation paths: All definitions starting
24310  with 
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 B_
24316 \end_layout
24317
24318 \end_inset
24319
24320 , such as in the example above, will be translated to the currently active
24321  buffer language (so the translation will match the generated document).
24322  All definitions starting with underscore only will be translated to the
24323  GUI language.
24324  This is the proper translation for strings that only occur in the dialogs
24325  or on buttons, such as this one:
24326 \end_layout
24327
24328 \begin_layout LyX-Code
24329 _addtobib Add to bibliography only.
24330 \end_layout
24331
24332 \begin_layout Standard
24333 Several of these translatable strings are predefined in 
24334 \begin_inset Flex Code
24335 status collapsed
24336
24337 \begin_layout Plain Layout
24338 stdciteformats.inc
24339 \end_layout
24340
24341 \end_inset
24342
24343  and the diverse 
24344 \begin_inset Flex Code
24345 status collapsed
24346
24347 \begin_layout Plain Layout
24348 *.citeengine
24349 \end_layout
24350
24351 \end_inset
24352
24353  files.
24354  Note that these are not macros, in the sense just defined.
24355  They will not be expanded.
24356 \end_layout
24357
24358 \begin_layout Standard
24359 So here then is an example that uses several of these features:
24360 \begin_inset VSpace defskip
24361 \end_inset
24362
24363
24364 \end_layout
24365
24366 \begin_layout Standard
24367 \noindent
24368
24369 \family sans
24370 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24371 \end_layout
24372
24373 \begin_layout Standard
24374 \begin_inset VSpace defskip
24375 \end_inset
24376
24377 This defines a macro that prints the author, followed by a comma, if the
24378  
24379 \begin_inset Flex Code
24380 status collapsed
24381
24382 \begin_layout Plain Layout
24383 author
24384 \end_layout
24385
24386 \end_inset
24387
24388  key is defined, or else prints the name of the editor, followed by the
24389  
24390 \begin_inset Flex Code
24391 status collapsed
24392
24393 \begin_layout Plain Layout
24394 B_edtext
24395 \end_layout
24396
24397 \end_inset
24398
24399  or its translation (it is by default 
24400 \begin_inset Quotes eld
24401 \end_inset
24402
24403 ed.
24404 \begin_inset Quotes erd
24405 \end_inset
24406
24407 ), if the 
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 editor
24413 \end_layout
24414
24415 \end_inset
24416
24417  key is defined.
24418  Note that this is in fact defined in 
24419 \begin_inset Flex Code
24420 status collapsed
24421
24422 \begin_layout Plain Layout
24423 stdciteformats.inc
24424 \end_layout
24425
24426 \end_inset
24427
24428 , so you can use it in your own definitions, or re-definitions, if you load
24429  that file first.
24430 \end_layout
24431
24432 \begin_layout Section
24433 \begin_inset CommandInset label
24434 LatexCommand label
24435 name "sec:Tags-for-XHTML"
24436
24437 \end_inset
24438
24439 Tags for XHTML output
24440 \end_layout
24441
24442 \begin_layout Standard
24443 As with \SpecialChar LaTeX
24444  or DocBook, the format of \SpecialChar LyX
24445 's XHTML output is also controlled by
24446  layout information.
24447  In general, \SpecialChar LyX
24448  provides sensible defaults and, as mentioned earlier, it will
24449  even construct default CSS style rules from the other layout tags.
24450  For example, \SpecialChar LyX
24451  will attempt to use the information provided in the 
24452 \begin_inset Flex Code
24453 status collapsed
24454
24455 \begin_layout Plain Layout
24456 Font
24457 \end_layout
24458
24459 \end_inset
24460
24461  declaration for the Chapter style to write CSS that will appropriately
24462  format chapter headings.
24463 \end_layout
24464
24465 \begin_layout Standard
24466 In many cases, then, you may not have to do anything at all to get acceptable
24467  XHTML output for your own environments, custom insets, and so forth.
24468  But in some cases you will, and so \SpecialChar LyX
24469  provides a number of layout tags that
24470  can be used to customize the XHTML and CSS that are generated.
24471 \end_layout
24472
24473 \begin_layout Standard
24474 Note that there are two tags, 
24475 \begin_inset Flex Code
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 HTMLPreamble
24480 \end_layout
24481
24482 \end_inset
24483
24484  and 
24485 \begin_inset Flex Code
24486 status collapsed
24487
24488 \begin_layout Plain Layout
24489 AddToHTMLPreamble
24490 \end_layout
24491
24492 \end_inset
24493
24494  that may appear outside style and inset declarations.
24495  See 
24496 \begin_inset CommandInset ref
24497 LatexCommand ref
24498 reference "subsec:General-text-class"
24499
24500 \end_inset
24501
24502  for details on these.
24503 \end_layout
24504
24505 \begin_layout Subsection
24506 \begin_inset CommandInset label
24507 LatexCommand label
24508 name "subsec:Paragraph-Style-XHTML"
24509
24510 \end_inset
24511
24512 Paragraph styles
24513 \end_layout
24514
24515 \begin_layout Standard
24516 The sort of XHTML \SpecialChar LyX
24517  outputs for a paragraph depends upon whether we are dealing
24518  with a normal paragraph, a command, or an environment, where this is itself
24519  determined by the contents of the corresponding 
24520 \begin_inset Flex Code
24521 status collapsed
24522
24523 \begin_layout Plain Layout
24524 \SpecialChar LaTeX
24525 Type
24526 \end_layout
24527
24528 \end_inset
24529
24530  tag.
24531  
24532 \end_layout
24533
24534 \begin_layout Standard
24535 For a command or normal paragraph, the output XHTML has the following form:
24536 \end_layout
24537
24538 \begin_layout LyX-Code
24539
24540 \family sans
24541 <tag attr=
24542 \begin_inset Quotes erd
24543 \end_inset
24544
24545 value
24546 \begin_inset Quotes erd
24547 \end_inset
24548
24549 >
24550 \end_layout
24551
24552 \begin_layout LyX-Code
24553
24554 \family sans
24555 <labeltag attr=
24556 \begin_inset Quotes erd
24557 \end_inset
24558
24559 value
24560 \begin_inset Quotes erd
24561 \end_inset
24562
24563 >Label</labeltag>
24564 \end_layout
24565
24566 \begin_layout LyX-Code
24567
24568 \family sans
24569 Contents of the paragraph.
24570 \end_layout
24571
24572 \begin_layout LyX-Code
24573
24574 \family sans
24575 </tag>
24576 \end_layout
24577
24578 \begin_layout Standard
24579 The label tags are of course omitted if the paragraph does not have a label.
24580 \end_layout
24581
24582 \begin_layout Standard
24583 For an environment that is not some sort of list, the XHTML takes this form:
24584 \end_layout
24585
24586 \begin_layout LyX-Code
24587
24588 \family sans
24589 <tag attr=
24590 \begin_inset Quotes erd
24591 \end_inset
24592
24593 value
24594 \begin_inset Quotes erd
24595 \end_inset
24596
24597 >
24598 \end_layout
24599
24600 \begin_layout LyX-Code
24601
24602 \family sans
24603 <itemtag attr=
24604 \begin_inset Quotes erd
24605 \end_inset
24606
24607 value
24608 \begin_inset Quotes erd
24609 \end_inset
24610
24611 ><labeltag attr=
24612 \begin_inset Quotes erd
24613 \end_inset
24614
24615 value
24616 \begin_inset Quotes erd
24617 \end_inset
24618
24619 >Environment Label</labeltag>First paragraph.</itemtag>
24620 \end_layout
24621
24622 \begin_layout LyX-Code
24623
24624 \family sans
24625 <itemtag>Second paragraph.</itemtag>
24626 \end_layout
24627
24628 \begin_layout LyX-Code
24629
24630 \family sans
24631 </tag>
24632 \end_layout
24633
24634 \begin_layout Standard
24635 Note that the label is output only for the first paragraph, as it should
24636  be for a theorem, for example.
24637  
24638 \end_layout
24639
24640 \begin_layout Standard
24641 For a list, we have one of these forms:
24642 \end_layout
24643
24644 \begin_layout LyX-Code
24645
24646 \family sans
24647 <tag attr=
24648 \begin_inset Quotes erd
24649 \end_inset
24650
24651 value
24652 \begin_inset Quotes erd
24653 \end_inset
24654
24655 >
24656 \end_layout
24657
24658 \begin_layout LyX-Code
24659
24660 \family sans
24661 <itemtag attr=
24662 \begin_inset Quotes erd
24663 \end_inset
24664
24665 value
24666 \begin_inset Quotes erd
24667 \end_inset
24668
24669 ><labeltag attr=
24670 \begin_inset Quotes erd
24671 \end_inset
24672
24673 value
24674 \begin_inset Quotes erd
24675 \end_inset
24676
24677 >List Label</labeltag>First item.</itemtag>
24678 \end_layout
24679
24680 \begin_layout LyX-Code
24681
24682 \family sans
24683 <itemtag attr=
24684 \begin_inset Quotes erd
24685 \end_inset
24686
24687 value
24688 \begin_inset Quotes erd
24689 \end_inset
24690
24691 ><labeltag attr=
24692 \begin_inset Quotes erd
24693 \end_inset
24694
24695 value
24696 \begin_inset Quotes erd
24697 \end_inset
24698
24699 >List Label</labeltag>Second item.</itemtag>
24700 \end_layout
24701
24702 \begin_layout LyX-Code
24703
24704 \family sans
24705 </tag>
24706 \end_layout
24707
24708 \begin_layout LyX-Code
24709
24710 \end_layout
24711
24712 \begin_layout LyX-Code
24713
24714 \family sans
24715 <tag attr=
24716 \begin_inset Quotes erd
24717 \end_inset
24718
24719 value
24720 \begin_inset Quotes erd
24721 \end_inset
24722
24723 >
24724 \end_layout
24725
24726 \begin_layout LyX-Code
24727
24728 \family sans
24729 <labeltag attr=
24730 \begin_inset Quotes erd
24731 \end_inset
24732
24733 value
24734 \begin_inset Quotes erd
24735 \end_inset
24736
24737 >List Label</labeltag><itemtag attr=
24738 \begin_inset Quotes erd
24739 \end_inset
24740
24741 value
24742 \begin_inset Quotes erd
24743 \end_inset
24744
24745 >First item.</itemtag>
24746 \end_layout
24747
24748 \begin_layout LyX-Code
24749
24750 \family sans
24751 <labeltag attr=
24752 \begin_inset Quotes erd
24753 \end_inset
24754
24755 value
24756 \begin_inset Quotes erd
24757 \end_inset
24758
24759 >List Label</labeltag><itemtag attr=
24760 \begin_inset Quotes erd
24761 \end_inset
24762
24763 value
24764 \begin_inset Quotes erd
24765 \end_inset
24766
24767 >Second item.</itemtag>
24768 \end_layout
24769
24770 \begin_layout LyX-Code
24771
24772 \family sans
24773 </tag>
24774 \end_layout
24775
24776 \begin_layout Standard
24777 Note the different orders of 
24778 \begin_inset Flex Code
24779 status collapsed
24780
24781 \begin_layout Plain Layout
24782 labeltag
24783 \end_layout
24784
24785 \end_inset
24786
24787  and 
24788 \begin_inset Flex Code
24789 status collapsed
24790
24791 \begin_layout Plain Layout
24792 itemtag
24793 \end_layout
24794
24795 \end_inset
24796
24797 .
24798  Which order we get depends upon the setting of 
24799 \begin_inset Flex Code
24800 status collapsed
24801
24802 \begin_layout Plain Layout
24803 HTMLLabelFirst
24804 \end_layout
24805
24806 \end_inset
24807
24808 : If 
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813 HTMLLabelFirst
24814 \end_layout
24815
24816 \end_inset
24817
24818  is false (the default), you get the first of these, with the label within
24819  the item; if true, you get the second, with the label outside the item.
24820 \end_layout
24821
24822 \begin_layout Standard
24823 The specific tags and attributes output for each paragraph type can be controlle
24824 d by means of the layout tags we are about to describe.
24825  As mentioned earlier, however, \SpecialChar LyX
24826  uses sensible defaults for many of these,
24827  so you often may not need to do very much to get good XHTML output.
24828  Think of the available tags as there so you can tweak things to your liking.
24829 \end_layout
24830
24831 \begin_layout Description
24832 \begin_inset Flex Code
24833 status collapsed
24834
24835 \begin_layout Plain Layout
24836 HTMLAttr
24837 \end_layout
24838
24839 \end_inset
24840
24841  [
24842 \begin_inset Flex Code
24843 status collapsed
24844
24845 \begin_layout Plain Layout
24846 string
24847 \end_layout
24848
24849 \end_inset
24850
24851 ] Specifies attribute information to be output with the main tag.
24852  For example, 
24853 \begin_inset Quotes eld
24854 \end_inset
24855
24856
24857 \begin_inset Flex Code
24858 status collapsed
24859
24860 \begin_layout Plain Layout
24861 class=`mydiv'
24862 \end_layout
24863
24864 \end_inset
24865
24866
24867 \begin_inset Quotes erd
24868 \end_inset
24869
24870 .
24871  By default, \SpecialChar LyX
24872  will output 
24873 \begin_inset Quotes eld
24874 \end_inset
24875
24876
24877 \begin_inset Flex Code
24878 status collapsed
24879
24880 \begin_layout Plain Layout
24881 class=`layoutname'
24882 \end_layout
24883
24884 \end_inset
24885
24886
24887 \begin_inset Quotes erd
24888 \end_inset
24889
24890 , where 
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 layoutname
24896 \end_layout
24897
24898 \end_inset
24899
24900  is the \SpecialChar LyX
24901  name of the layout, made lowercase, for example: chapter.
24902  This should 
24903 \emph on
24904 not
24905 \emph default
24906  contain any style information.
24907  Use 
24908 \begin_inset Flex Code
24909 status collapsed
24910
24911 \begin_layout Plain Layout
24912 HTMLStyle
24913 \end_layout
24914
24915 \end_inset
24916
24917  for that purpose.
24918 \end_layout
24919
24920 \begin_layout Description
24921 \begin_inset Flex Code
24922 status collapsed
24923
24924 \begin_layout Plain Layout
24925 HTMLForceCSS
24926 \end_layout
24927
24928 \end_inset
24929
24930  [
24931 \begin_inset Flex Code
24932 status collapsed
24933
24934 \begin_layout Plain Layout
24935
24936 \emph on
24937 0
24938 \emph default
24939 ,1
24940 \end_layout
24941
24942 \end_inset
24943
24944 ] Whether to output the default CSS information \SpecialChar LyX
24945  generates for this layout,
24946  even if additional information is explicitly provided via 
24947 \begin_inset Flex Code
24948 status collapsed
24949
24950 \begin_layout Plain Layout
24951 HTMLStyle
24952 \end_layout
24953
24954 \end_inset
24955
24956 .
24957  Setting this to 
24958 \begin_inset Flex Code
24959 status collapsed
24960
24961 \begin_layout Plain Layout
24962 1
24963 \end_layout
24964
24965 \end_inset
24966
24967  allows you to alter or augment the generated CSS, rather than to override
24968  it completely.
24969  Default is 
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974 0
24975 \end_layout
24976
24977 \end_inset
24978
24979 .
24980 \end_layout
24981
24982 \begin_layout Description
24983 \begin_inset Flex Code
24984 status collapsed
24985
24986 \begin_layout Plain Layout
24987 HTMLItem
24988 \end_layout
24989
24990 \end_inset
24991
24992  [
24993 \begin_inset Flex Code
24994 status collapsed
24995
24996 \begin_layout Plain Layout
24997 string
24998 \end_layout
24999
25000 \end_inset
25001
25002 ] The tag to be used for individual paragraphs of environments, replacing
25003  
25004 \begin_inset Flex Code
25005 status collapsed
25006
25007 \begin_layout Plain Layout
25008 itemtag
25009 \end_layout
25010
25011 \end_inset
25012
25013  in the examples above.
25014  Defaults to 
25015 \begin_inset Flex Code
25016 status collapsed
25017
25018 \begin_layout Plain Layout
25019 div
25020 \end_layout
25021
25022 \end_inset
25023
25024 .
25025 \end_layout
25026
25027 \begin_layout Description
25028 \begin_inset Flex Code
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 HTMLItemAttr
25033 \end_layout
25034
25035 \end_inset
25036
25037  [
25038 \begin_inset Flex Code
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042 string
25043 \end_layout
25044
25045 \end_inset
25046
25047 ] Attributes for the item tag.
25048  Defaults to
25049 \begin_inset Newline newline
25050 \end_inset
25051
25052
25053 \begin_inset Quotes eld
25054 \end_inset
25055
25056
25057 \begin_inset Flex Code
25058 status collapsed
25059
25060 \begin_layout Plain Layout
25061 class=`layoutname_item'
25062 \end_layout
25063
25064 \end_inset
25065
25066
25067 \begin_inset Quotes erd
25068 \end_inset
25069
25070 .
25071  This should 
25072 \emph on
25073 not
25074 \emph default
25075  contain any style information.
25076  Use 
25077 \begin_inset Flex Code
25078 status collapsed
25079
25080 \begin_layout Plain Layout
25081 HTMLStyle
25082 \end_layout
25083
25084 \end_inset
25085
25086  for that purpose.
25087 \end_layout
25088
25089 \begin_layout Description
25090 \begin_inset Flex Code
25091 status collapsed
25092
25093 \begin_layout Plain Layout
25094 HTMLLabel
25095 \end_layout
25096
25097 \end_inset
25098
25099  [
25100 \begin_inset Flex Code
25101 status collapsed
25102
25103 \begin_layout Plain Layout
25104 string
25105 \end_layout
25106
25107 \end_inset
25108
25109 ] The tag to be used for paragraph and item labels, replacing 
25110 \begin_inset Flex Code
25111 status collapsed
25112
25113 \begin_layout Plain Layout
25114 labeltag
25115 \end_layout
25116
25117 \end_inset
25118
25119  in the examples above.
25120  Defaults to 
25121 \begin_inset Flex Code
25122 status collapsed
25123
25124 \begin_layout Plain Layout
25125 span
25126 \end_layout
25127
25128 \end_inset
25129
25130 , unless 
25131 \begin_inset Flex Code
25132 status collapsed
25133
25134 \begin_layout Plain Layout
25135 LabelType
25136 \end_layout
25137
25138 \end_inset
25139
25140  is either 
25141 \begin_inset Flex Code
25142 status collapsed
25143
25144 \begin_layout Plain Layout
25145 Top_Environment
25146 \end_layout
25147
25148 \end_inset
25149
25150  or 
25151 \begin_inset Flex Code
25152 status collapsed
25153
25154 \begin_layout Plain Layout
25155 Centered_Top_Environment
25156 \end_layout
25157
25158 \end_inset
25159
25160 , in which case it defaults to 
25161 \begin_inset Flex Code
25162 status collapsed
25163
25164 \begin_layout Plain Layout
25165 div
25166 \end_layout
25167
25168 \end_inset
25169
25170 .
25171 \end_layout
25172
25173 \begin_layout Description
25174 \begin_inset Flex Code
25175 status collapsed
25176
25177 \begin_layout Plain Layout
25178 HTMLLabelAttr
25179 \end_layout
25180
25181 \end_inset
25182
25183  [
25184 \begin_inset Flex Code
25185 status collapsed
25186
25187 \begin_layout Plain Layout
25188 string
25189 \end_layout
25190
25191 \end_inset
25192
25193 ] Attributes for the label tag.
25194  Defaults to
25195 \begin_inset Newline newline
25196 \end_inset
25197
25198
25199 \begin_inset Quotes eld
25200 \end_inset
25201
25202
25203 \begin_inset Flex Code
25204 status collapsed
25205
25206 \begin_layout Plain Layout
25207 class=`layoutname_label'
25208 \end_layout
25209
25210 \end_inset
25211
25212
25213 \begin_inset Quotes erd
25214 \end_inset
25215
25216 .
25217  This should 
25218 \emph on
25219 not
25220 \emph default
25221  contain any style information.
25222  Use 
25223 \begin_inset Flex Code
25224 status collapsed
25225
25226 \begin_layout Plain Layout
25227 HTMLStyle
25228 \end_layout
25229
25230 \end_inset
25231
25232  for that purpose.
25233 \end_layout
25234
25235 \begin_layout Description
25236 \begin_inset Flex Code
25237 status collapsed
25238
25239 \begin_layout Plain Layout
25240 HTMLLabelFirst
25241 \end_layout
25242
25243 \end_inset
25244
25245  [
25246 \begin_inset Flex Code
25247 status collapsed
25248
25249 \begin_layout Plain Layout
25250
25251 \emph on
25252 0
25253 \emph default
25254 ,1
25255 \end_layout
25256
25257 \end_inset
25258
25259 ] Meaningful only for list-like environments, this tag controls whether
25260  the label tag is output before or inside the item tag.
25261  This is used, for example, in the description environment, where we want
25262  `
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 <dt>\SpecialChar ldots
25268 </dt><dd>\SpecialChar ldots
25269 </dd>
25270 \end_layout
25271
25272 \end_inset
25273
25274 .
25275  Default is 
25276 \begin_inset Flex Code
25277 status collapsed
25278
25279 \begin_layout Plain Layout
25280 0
25281 \end_layout
25282
25283 \end_inset
25284
25285 : The label tag is output inside the item tag.
25286 \end_layout
25287
25288 \begin_layout Description
25289 \begin_inset Flex Code
25290 status collapsed
25291
25292 \begin_layout Plain Layout
25293 HTMLPreamble
25294 \end_layout
25295
25296 \end_inset
25297
25298  Information to be output in the 
25299 \begin_inset Flex Code
25300 status collapsed
25301
25302 \begin_layout Plain Layout
25303 <head>
25304 \end_layout
25305
25306 \end_inset
25307
25308  section when this style is used.
25309  This might, for example, be used to include a 
25310 \begin_inset Flex Code
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314 <script>
25315 \end_layout
25316
25317 \end_inset
25318
25319  block defining an 
25320 \begin_inset Flex Code
25321 status collapsed
25322
25323 \begin_layout Plain Layout
25324 onclick
25325 \end_layout
25326
25327 \end_inset
25328
25329  handler.
25330 \end_layout
25331
25332 \begin_layout Description
25333 \begin_inset Flex Code
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337 HTMLStyle
25338 \end_layout
25339
25340 \end_inset
25341
25342  CSS style information to be included when this style is used.
25343  Note that this will automatically be wrapped in a layout-generated 
25344 \begin_inset Flex Code
25345 status collapsed
25346
25347 \begin_layout Plain Layout
25348 <style>
25349 \end_layout
25350
25351 \end_inset
25352
25353  block, so only the CSS itself need be included.
25354  Must end with 
25355 \begin_inset Flex Code
25356 status collapsed
25357
25358 \begin_layout Plain Layout
25359 EndHTMLStyle
25360 \end_layout
25361
25362 \end_inset
25363
25364 .
25365 \end_layout
25366
25367 \begin_layout Description
25368 \begin_inset Flex Code
25369 status collapsed
25370
25371 \begin_layout Plain Layout
25372 HTMLTag
25373 \end_layout
25374
25375 \end_inset
25376
25377  [
25378 \begin_inset Flex Code
25379 status collapsed
25380
25381 \begin_layout Plain Layout
25382 string
25383 \end_layout
25384
25385 \end_inset
25386
25387 ] The tag to be used for the main label, replacing 
25388 \begin_inset Flex Code
25389 status collapsed
25390
25391 \begin_layout Plain Layout
25392 tag
25393 \end_layout
25394
25395 \end_inset
25396
25397  in the examples above.
25398  Defaults to 
25399 \begin_inset Flex Code
25400 status collapsed
25401
25402 \begin_layout Plain Layout
25403 div
25404 \end_layout
25405
25406 \end_inset
25407
25408 .
25409 \end_layout
25410
25411 \begin_layout Description
25412 \begin_inset Flex Code
25413 status collapsed
25414
25415 \begin_layout Plain Layout
25416 HTMLTitle
25417 \end_layout
25418
25419 \end_inset
25420
25421  [
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426
25427 \emph on
25428 0
25429 \emph default
25430 ,1
25431 \end_layout
25432
25433 \end_inset
25434
25435 ] Marks this style as the one to be used to generate the 
25436 \begin_inset Flex Code
25437 status collapsed
25438
25439 \begin_layout Plain Layout
25440 <title>
25441 \end_layout
25442
25443 \end_inset
25444
25445  tag for the XHTML file.
25446  By default, it is false.
25447  The 
25448 \begin_inset Flex Code
25449 status collapsed
25450
25451 \begin_layout Plain Layout
25452 stdtitle.inc
25453 \end_layout
25454
25455 \end_inset
25456
25457  file sets it to true for the 
25458 \begin_inset Flex Code
25459 status collapsed
25460
25461 \begin_layout Plain Layout
25462 title
25463 \end_layout
25464
25465 \end_inset
25466
25467  environment.
25468  
25469 \end_layout
25470
25471 \begin_layout Subsection
25472 InsetLayout XHTML
25473 \end_layout
25474
25475 \begin_layout Standard
25476 The XHTML output of insets can also be controlled by information in layout
25477  files.
25478 \begin_inset Foot
25479 status collapsed
25480
25481 \begin_layout Plain Layout
25482 At present, this is true only for 
25483 \begin_inset Quotes eld
25484 \end_inset
25485
25486 text
25487 \begin_inset Quotes erd
25488 \end_inset
25489
25490  insets (insets you can type into) and is not true for 
25491 \begin_inset Quotes eld
25492 \end_inset
25493
25494 command
25495 \begin_inset Quotes erd
25496 \end_inset
25497
25498  insets (insets that are associated with dialog boxes).
25499 \end_layout
25500
25501 \end_inset
25502
25503  Here, too, \SpecialChar LyX
25504  tries to provide sensible defaults, and it constructs default
25505  CSS style rules.
25506  But everything can be customized.
25507 \end_layout
25508
25509 \begin_layout Standard
25510 The XHTML \SpecialChar LyX
25511  outputs for an inset has the following form:
25512 \end_layout
25513
25514 \begin_layout LyX-Code
25515 <tag attr=
25516 \begin_inset Quotes erd
25517 \end_inset
25518
25519 value
25520 \begin_inset Quotes erd
25521 \end_inset
25522
25523 >
25524 \end_layout
25525
25526 \begin_layout LyX-Code
25527 <labeltag>Label</labeltag>
25528 \end_layout
25529
25530 \begin_layout LyX-Code
25531 <innertag attr=
25532 \begin_inset Quotes erd
25533 \end_inset
25534
25535 value
25536 \begin_inset Quotes erd
25537 \end_inset
25538
25539 >Contents of the inset.</innertag>
25540 \end_layout
25541
25542 \begin_layout LyX-Code
25543 </tag>
25544 \end_layout
25545
25546 \begin_layout Standard
25547 If the inset permits multiple paragraphs—that is, if 
25548 \begin_inset Flex Code
25549 status collapsed
25550
25551 \begin_layout Plain Layout
25552 MultiPar
25553 \end_layout
25554
25555 \end_inset
25556
25557  is true—then the contents of the inset will itself be output as paragraphs
25558  formatted according to the styles used for those paragraphs (standard,
25559  quote, and the like).
25560  The label tag is of course omitted if the paragraph does not have a label
25561  and, at present, is always 
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 span
25567 \end_layout
25568
25569 \end_inset
25570
25571 .
25572  The inner tag is optional and, by default, does not appear.
25573 \end_layout
25574
25575 \begin_layout Standard
25576 The specific tags and attributes output for each inset can be controlled
25577  by means of the following layout tags.
25578 \end_layout
25579
25580 \begin_layout Description
25581 \begin_inset Flex Code
25582 status collapsed
25583
25584 \begin_layout Plain Layout
25585 HTMLAttr
25586 \end_layout
25587
25588 \end_inset
25589
25590  [
25591 \begin_inset Flex Code
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595 string
25596 \end_layout
25597
25598 \end_inset
25599
25600 ] Specifies attribute information to be output with the main tag.
25601  For example, 
25602 \begin_inset Quotes eld
25603 \end_inset
25604
25605
25606 \begin_inset Flex Code
25607 status collapsed
25608
25609 \begin_layout Plain Layout
25610 class=`myinset' onclick=`\SpecialChar ldots
25611 '
25612 \end_layout
25613
25614 \end_inset
25615
25616
25617 \begin_inset Quotes erd
25618 \end_inset
25619
25620 .
25621  By default, \SpecialChar LyX
25622  will output 
25623 \begin_inset Quotes eld
25624 \end_inset
25625
25626
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 class=`insetname'
25632 \end_layout
25633
25634 \end_inset
25635
25636
25637 \begin_inset Quotes erd
25638 \end_inset
25639
25640 , where 
25641 \begin_inset Flex Code
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645 insetname
25646 \end_layout
25647
25648 \end_inset
25649
25650  is the \SpecialChar LyX
25651  name of the inset, made lowercase and with non-alphanumeric characters
25652  converted to underscores, for example: footnote.
25653 \end_layout
25654
25655 \begin_layout Description
25656 \begin_inset Flex Code
25657 status collapsed
25658
25659 \begin_layout Plain Layout
25660 HTMLForceCSS
25661 \end_layout
25662
25663 \end_inset
25664
25665  [
25666 \begin_inset Flex Code
25667 status collapsed
25668
25669 \begin_layout Plain Layout
25670
25671 \emph on
25672 0
25673 \emph default
25674 ,1
25675 \end_layout
25676
25677 \end_inset
25678
25679 ] Whether to output the default CSS information \SpecialChar LyX
25680  generates for this layout,
25681  even if additional information is explicitly provided via 
25682 \begin_inset Flex Code
25683 status collapsed
25684
25685 \begin_layout Plain Layout
25686 HTMLStyle
25687 \end_layout
25688
25689 \end_inset
25690
25691 .
25692  Setting this to 
25693 \begin_inset Flex Code
25694 status collapsed
25695
25696 \begin_layout Plain Layout
25697 1
25698 \end_layout
25699
25700 \end_inset
25701
25702  allows you to alter or augment the generated CSS, rather than to override
25703  it completely.
25704  Default is 0.
25705 \end_layout
25706
25707 \begin_layout Description
25708 \begin_inset Flex Code
25709 status collapsed
25710
25711 \begin_layout Plain Layout
25712 HTMLInnerAttr
25713 \end_layout
25714
25715 \end_inset
25716
25717  [
25718 \begin_inset Flex Code
25719 status collapsed
25720
25721 \begin_layout Plain Layout
25722 string
25723 \end_layout
25724
25725 \end_inset
25726
25727 ] Attributes for the inner tag.
25728  Defaults to
25729 \begin_inset Newline newline
25730 \end_inset
25731
25732
25733 \begin_inset Quotes eld
25734 \end_inset
25735
25736
25737 \begin_inset Flex Code
25738 status collapsed
25739
25740 \begin_layout Plain Layout
25741 class=`insetname_inner'
25742 \end_layout
25743
25744 \end_inset
25745
25746
25747 \begin_inset Quotes erd
25748 \end_inset
25749
25750 .
25751 \end_layout
25752
25753 \begin_layout Description
25754 \begin_inset Flex Code
25755 status collapsed
25756
25757 \begin_layout Plain Layout
25758 HTMLInnerTag
25759 \end_layout
25760
25761 \end_inset
25762
25763  [
25764 \begin_inset Flex Code
25765 status collapsed
25766
25767 \begin_layout Plain Layout
25768 string
25769 \end_layout
25770
25771 \end_inset
25772
25773 ] The inner tag, replacing 
25774 \begin_inset Flex Code
25775 status collapsed
25776
25777 \begin_layout Plain Layout
25778 innertag
25779 \end_layout
25780
25781 \end_inset
25782
25783  in the examples above.
25784  By default, there is none.
25785 \end_layout
25786
25787 \begin_layout Description
25788 \begin_inset Flex Code
25789 status collapsed
25790
25791 \begin_layout Plain Layout
25792 HTMLIsBlock
25793 \end_layout
25794
25795 \end_inset
25796
25797  [
25798 \begin_inset Flex Code
25799 status collapsed
25800
25801 \begin_layout Plain Layout
25802 0,
25803 \emph on
25804 1
25805 \end_layout
25806
25807 \end_inset
25808
25809 ] Whether this inset represents a standalone block of text (such as a footnote)
25810  or instead represents material that is included in the surrounding text
25811  (such as a branch).
25812  Defaults to 1.
25813 \end_layout
25814
25815 \begin_layout Description
25816 \begin_inset Flex Code
25817 status collapsed
25818
25819 \begin_layout Plain Layout
25820 HTMLLabel
25821 \end_layout
25822
25823 \end_inset
25824
25825  [
25826 \begin_inset Flex Code
25827 status collapsed
25828
25829 \begin_layout Plain Layout
25830 string
25831 \end_layout
25832
25833 \end_inset
25834
25835 ] A label for this inset, possibly including a reference to a counter.
25836  For example, for footnote, it might be: 
25837 \begin_inset Flex Code
25838 status collapsed
25839
25840 \begin_layout Plain Layout
25841
25842 \backslash
25843 arabic{footnote}
25844 \end_layout
25845
25846 \end_inset
25847
25848 .
25849  This is optional, and there is no default.
25850 \end_layout
25851
25852 \begin_layout Description
25853 \begin_inset Flex Code
25854 status collapsed
25855
25856 \begin_layout Plain Layout
25857 HTMLPreamble
25858 \end_layout
25859
25860 \end_inset
25861
25862  Information to be output in the 
25863 \begin_inset Flex Code
25864 status collapsed
25865
25866 \begin_layout Plain Layout
25867 <head>
25868 \end_layout
25869
25870 \end_inset
25871
25872  section when this style is used.
25873  This might, for example, be used to include a 
25874 \begin_inset Flex Code
25875 status collapsed
25876
25877 \begin_layout Plain Layout
25878 <script>
25879 \end_layout
25880
25881 \end_inset
25882
25883  block defining an 
25884 \begin_inset Flex Code
25885 status collapsed
25886
25887 \begin_layout Plain Layout
25888 onclick
25889 \end_layout
25890
25891 \end_inset
25892
25893  handler.
25894 \end_layout
25895
25896 \begin_layout Description
25897 \begin_inset Flex Code
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 HTMLStyle
25902 \end_layout
25903
25904 \end_inset
25905
25906  CSS style information to be included when this style is used.
25907  Note that this will automatically be wrapped in a layout-generated 
25908 \begin_inset Flex Code
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 <style>
25913 \end_layout
25914
25915 \end_inset
25916
25917  block, so only the CSS itself need be included.
25918 \end_layout
25919
25920 \begin_layout Description
25921 \begin_inset Flex Code
25922 status collapsed
25923
25924 \begin_layout Plain Layout
25925 HTMLTag
25926 \end_layout
25927
25928 \end_inset
25929
25930  [
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 string
25936 \end_layout
25937
25938 \end_inset
25939
25940 ] The tag to be used for the main label, replacing 
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945 tag
25946 \end_layout
25947
25948 \end_inset
25949
25950  in the examples above.
25951  The default depends upon the setting of 
25952 \begin_inset Flex Code
25953 status collapsed
25954
25955 \begin_layout Plain Layout
25956 MultiPar
25957 \end_layout
25958
25959 \end_inset
25960
25961 : If 
25962 \begin_inset Flex Code
25963 status collapsed
25964
25965 \begin_layout Plain Layout
25966 MultiPar
25967 \end_layout
25968
25969 \end_inset
25970
25971  is true, the default is 
25972 \begin_inset Flex Code
25973 status collapsed
25974
25975 \begin_layout Plain Layout
25976 div
25977 \end_layout
25978
25979 \end_inset
25980
25981 ; if it is false, the default is 
25982 \begin_inset Flex Code
25983 status collapsed
25984
25985 \begin_layout Plain Layout
25986 span
25987 \end_layout
25988
25989 \end_inset
25990
25991 .
25992 \end_layout
25993
25994 \begin_layout Subsection
25995 Float XHTML
25996 \end_layout
25997
25998 \begin_layout Standard
25999 The XHTML output for floats too can be controlled by layout information.
26000  The output has the following form:
26001 \end_layout
26002
26003 \begin_layout LyX-Code
26004 <tag attr=
26005 \begin_inset Quotes erd
26006 \end_inset
26007
26008 value
26009 \begin_inset Quotes erd
26010 \end_inset
26011
26012 >
26013 \end_layout
26014
26015 \begin_layout LyX-Code
26016 Contents of the float.
26017 \end_layout
26018
26019 \begin_layout LyX-Code
26020 </tag>
26021 \end_layout
26022
26023 \begin_layout Standard
26024 The caption, if there is one, is a separate inset and will be output as
26025  such.
26026  Its appearance can be controlled via the InsetLayout for caption insets.
26027  
26028 \end_layout
26029
26030 \begin_layout Description
26031 \begin_inset Flex Code
26032 status collapsed
26033
26034 \begin_layout Plain Layout
26035 HTMLAttr
26036 \end_layout
26037
26038 \end_inset
26039
26040  [
26041 \begin_inset Flex Code
26042 status collapsed
26043
26044 \begin_layout Plain Layout
26045 string
26046 \end_layout
26047
26048 \end_inset
26049
26050 ] Specifies attribute information to be output with the main tag.
26051  For example, 
26052 \begin_inset Quotes eld
26053 \end_inset
26054
26055
26056 \begin_inset Flex Code
26057 status collapsed
26058
26059 \begin_layout Plain Layout
26060 class=`myfloat' onclick=`\SpecialChar ldots
26061 '
26062 \end_layout
26063
26064 \end_inset
26065
26066
26067 \begin_inset Quotes erd
26068 \end_inset
26069
26070 .
26071  By default, \SpecialChar LyX
26072  will output 
26073 \begin_inset Quotes eld
26074 \end_inset
26075
26076
26077 \begin_inset Flex Code
26078 status collapsed
26079
26080 \begin_layout Plain Layout
26081 class=`float float-floattype'
26082 \end_layout
26083
26084 \end_inset
26085
26086
26087 \begin_inset Quotes erd
26088 \end_inset
26089
26090 , where 
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 floattype
26096 \end_layout
26097
26098 \end_inset
26099
26100  is \SpecialChar LyX
26101 's name for this type of float, as determined by the float declaration
26102  (see 
26103 \begin_inset CommandInset ref
26104 LatexCommand ref
26105 reference "subsec:Floats"
26106
26107 \end_inset
26108
26109 ), though made lowercase and with non-alphanumeric characters converted
26110  to underscores, for example: float-table.
26111 \end_layout
26112
26113 \begin_layout Description
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 HTMLStyle
26119 \end_layout
26120
26121 \end_inset
26122
26123  CSS style information to be included when this float is used.
26124  Note that this will automatically be wrapped in a layout-generated 
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 <style>
26130 \end_layout
26131
26132 \end_inset
26133
26134  block, so only the CSS itself need be included.
26135 \end_layout
26136
26137 \begin_layout Description
26138 \begin_inset Flex Code
26139 status collapsed
26140
26141 \begin_layout Plain Layout
26142 HTMLTag
26143 \end_layout
26144
26145 \end_inset
26146
26147  [
26148 \begin_inset Flex Code
26149 status collapsed
26150
26151 \begin_layout Plain Layout
26152 string
26153 \end_layout
26154
26155 \end_inset
26156
26157 ] The tag to be used for this float, replacing 
26158 \begin_inset Quotes eld
26159 \end_inset
26160
26161
26162 \begin_inset Flex Code
26163 status collapsed
26164
26165 \begin_layout Plain Layout
26166 tag
26167 \end_layout
26168
26169 \end_inset
26170
26171
26172 \begin_inset Quotes erd
26173 \end_inset
26174
26175  in the example above.
26176  The default is 
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 div
26182 \end_layout
26183
26184 \end_inset
26185
26186  and will rarely need changing.
26187 \end_layout
26188
26189 \begin_layout Subsection
26190 Bibliography formatting
26191 \end_layout
26192
26193 \begin_layout Standard
26194 The bibliography can be formatted using 
26195 \begin_inset Flex Code
26196 status collapsed
26197
26198 \begin_layout Plain Layout
26199 CiteFormat
26200 \end_layout
26201
26202 \end_inset
26203
26204  blocks.
26205  See 
26206 \begin_inset CommandInset ref
26207 LatexCommand ref
26208 reference "subsec:Citation-format-description"
26209
26210 \end_inset
26211
26212  for the details.
26213 \end_layout
26214
26215 \begin_layout Subsection
26216 \SpecialChar LyX
26217 -generated CSS
26218 \end_layout
26219
26220 \begin_layout Standard
26221 We have several times mentioned that \SpecialChar LyX
26222  will generate default CSS style rules
26223  for both insets and paragraph styles, based upon the other layout information
26224  that is provided.
26225  In this section, we shall say a word about which layout information \SpecialChar LyX
26226  uses
26227  and how.
26228 \end_layout
26229
26230 \begin_layout Standard
26231 At present, \SpecialChar LyX
26232  auto-generates CSS only for font information, making use of
26233  the 
26234 \begin_inset Flex Code
26235 status collapsed
26236
26237 \begin_layout Plain Layout
26238 Family
26239 \end_layout
26240
26241 \end_inset
26242
26243
26244 \begin_inset Flex Code
26245 status collapsed
26246
26247 \begin_layout Plain Layout
26248 Series
26249 \end_layout
26250
26251 \end_inset
26252
26253
26254 \begin_inset Flex Code
26255 status collapsed
26256
26257 \begin_layout Plain Layout
26258 Shape
26259 \end_layout
26260
26261 \end_inset
26262
26263 , and 
26264 \begin_inset Flex Code
26265 status collapsed
26266
26267 \begin_layout Plain Layout
26268 Size
26269 \end_layout
26270
26271 \end_inset
26272
26273  specified in the 
26274 \begin_inset Flex Code
26275 status collapsed
26276
26277 \begin_layout Plain Layout
26278 Font
26279 \end_layout
26280
26281 \end_inset
26282
26283  declaration (see 
26284 \begin_inset CommandInset ref
26285 LatexCommand ref
26286 reference "subsec:Font-description"
26287
26288 \end_inset
26289
26290 ).
26291  The translation is mostly straightforward and obvious.
26292  For example, 
26293 \begin_inset Quotes eld
26294 \end_inset
26295
26296
26297 \begin_inset Flex Code
26298 status collapsed
26299
26300 \begin_layout Plain Layout
26301 Family Sans
26302 \end_layout
26303
26304 \end_inset
26305
26306
26307 \begin_inset Quotes erd
26308 \end_inset
26309
26310  becomes 
26311 \begin_inset Quotes eld
26312 \end_inset
26313
26314
26315 \begin_inset Flex Code
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319 font-family: sans-serif;
26320 \end_layout
26321
26322 \end_inset
26323
26324
26325 \begin_inset Quotes erd
26326 \end_inset
26327
26328 .
26329  The correspondence of \SpecialChar LyX
26330  sizes and CSS sizes is a little less obvious but
26331  nonetheless intuitive.
26332  See the 
26333 \begin_inset Flex Code
26334 status collapsed
26335
26336 \begin_layout Plain Layout
26337 getSizeCSS()
26338 \end_layout
26339
26340 \end_inset
26341
26342  function in 
26343 \begin_inset Flex URL
26344 status collapsed
26345
26346 \begin_layout Plain Layout
26347
26348 src/FontInfo.cpp
26349 \end_layout
26350
26351 \end_inset
26352
26353  for the details.
26354 \end_layout
26355
26356 \begin_layout Chapter
26357 Including External Material
26358 \begin_inset CommandInset label
26359 LatexCommand label
26360 name "chap:Including-External-Material"
26361
26362 \end_inset
26363
26364
26365 \end_layout
26366
26367 \begin_layout Standard
26368 \begin_inset Box Shadowbox
26369 position "t"
26370 hor_pos "c"
26371 has_inner_box 1
26372 inner_pos "t"
26373 use_parbox 0
26374 use_makebox 0
26375 width "100col%"
26376 special "none"
26377 height "1in"
26378 height_special "totalheight"
26379 thickness "0.4pt"
26380 separation "3pt"
26381 shadowsize "4pt"
26382 framecolor "black"
26383 backgroundcolor "none"
26384 status open
26385
26386 \begin_layout Plain Layout
26387 WARNING: This portion of the documentation has not been updated for some
26388  time.
26389  We certainly hope that it is still accurate, but there are no guarantees.
26390 \end_layout
26391
26392 \end_inset
26393
26394
26395 \end_layout
26396
26397 \begin_layout Standard
26398 The use of material from sources external to \SpecialChar LyX
26399  is covered in detail in the
26400  
26401 \emph on
26402 Embedded Objects
26403 \emph default
26404  manual.
26405  This part of the manual covers what needs to happen behind the scenes for
26406  new sorts of material to be included.
26407 \end_layout
26408
26409 \begin_layout Section
26410 How does it work?
26411 \end_layout
26412
26413 \begin_layout Standard
26414 The external material feature is based on the concept of a 
26415 \emph on
26416 template
26417 \emph default
26418 .
26419  A template is a specification of how \SpecialChar LyX
26420  should interface with a certain kind
26421  of material.
26422  As bundled, \SpecialChar LyX
26423  comes with predefined templates for Xfig figures, various
26424  raster format images, chess diagrams, and LilyPond music notation.
26425  You can check the actual list by using the menu 
26426 \begin_inset Flex Noun
26427 status collapsed
26428
26429 \begin_layout Plain Layout
26430 Insert\SpecialChar menuseparator
26431 File\SpecialChar menuseparator
26432 External Material
26433 \end_layout
26434
26435 \end_inset
26436
26437 .
26438  Furthermore, it is possible to roll your own template to support a specific
26439  kind of material.
26440  Later we'll describe in more detail what is involved, and hopefully you
26441  will submit all the templates you create so we can include them in a later
26442  \SpecialChar LyX
26443  version.
26444 \end_layout
26445
26446 \begin_layout Standard
26447 Another basic idea of the external material feature is to distinguish between
26448  the original file that serves as a base for final material and the produced
26449  file that is included in your exported or printed document.
26450  For example, consider the case of a figure produced with 
26451 \begin_inset Flex Code
26452 status collapsed
26453
26454 \begin_layout Plain Layout
26455 Xfig
26456 \end_layout
26457
26458 \end_inset
26459
26460 .
26461  The Xfig application itself works on an original file with the 
26462 \begin_inset Flex Code
26463 status collapsed
26464
26465 \begin_layout Plain Layout
26466 .fig
26467 \end_layout
26468
26469 \end_inset
26470
26471  extension.
26472  Within Xfig, you create and change your figure, and when you are done,
26473  you save the 
26474 \begin_inset Flex Code
26475 status collapsed
26476
26477 \begin_layout Plain Layout
26478 fig
26479 \end_layout
26480
26481 \end_inset
26482
26483 -file.
26484  When you want to include the figure in your document, you invoke 
26485 \begin_inset Flex Code
26486 status collapsed
26487
26488 \begin_layout Plain Layout
26489 transfig
26490 \end_layout
26491
26492 \end_inset
26493
26494  in order to create a PostScript file that can readily be included in your
26495  \SpecialChar LaTeX
26496  file.
26497  In this case, the 
26498 \begin_inset Flex Code
26499 status collapsed
26500
26501 \begin_layout Plain Layout
26502 .fig
26503 \end_layout
26504
26505 \end_inset
26506
26507  file is the original file, and the PostScript file is the produced file.
26508 \end_layout
26509
26510 \begin_layout Standard
26511 This distinction is important in order to allow updating of the material
26512  while you are in the process of writing the document.
26513  Furthermore, it provides us with the flexibility that is needed to support
26514  multiple export formats.
26515  For instance, in the case of a plain text file, it is not exactly an award-winn
26516 ing idea to include the figure as raw PostScript.
26517  Instead, you would either prefer to just include a reference to the figure
26518  or try to invoke some graphics to ASCII converter to make the final result
26519  look similar to the real graphics.
26520  The external material management allows you to do this, because it is parametri
26521 zed on the different export formats that \SpecialChar LyX
26522  supports.
26523 \end_layout
26524
26525 \begin_layout Standard
26526 Besides supporting the production of different products according to the
26527  exported format, it supports tight integration with editing and viewing
26528  applications.
26529  In the case of an Xfig figure, you are able to invoke Xfig on the original
26530  file with a single click from within the external material dialog in \SpecialChar LyX
26531 ,
26532  and also preview the produced PostScript file with Ghostview with another
26533  click.
26534  No more fiddling around with the command line and/or file browsers to locate
26535  and manipulate the original or produced files.
26536  In this way, you are finally able to take full advantage of the many different
26537  applications that are relevant to use when you write your documents, and
26538  ultimately be more productive.
26539 \end_layout
26540
26541 \begin_layout Section
26542 The external template configuration files
26543 \end_layout
26544
26545 \begin_layout Standard
26546 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26547 .
26548  However, be aware that doing this in an careless manner most probably 
26549 \emph on
26550 will
26551 \emph default
26552  introduce an easily exploitable security hole.
26553  So before you do this, please read the discussion about security in 
26554 \begin_inset CommandInset ref
26555 LatexCommand ref
26556 reference "sec:Security-discussion"
26557
26558 \end_inset
26559
26560 .
26561 \end_layout
26562
26563 \begin_layout Standard
26564 Having said that, we encourage you to submit any interesting templates that
26565  you create.
26566  
26567 \end_layout
26568
26569 \begin_layout Standard
26570 The external templates are defined in the 
26571 \begin_inset Flex Code
26572 status collapsed
26573
26574 \begin_layout Plain Layout
26575 *.xtemplate
26576 \end_layout
26577
26578 \end_inset
26579
26580  files that are stored in the 
26581 \begin_inset Flex Code
26582 status collapsed
26583
26584 \begin_layout Plain Layout
26585 LyXDir/lib/xtemplates/
26586 \end_layout
26587
26588 \end_inset
26589
26590  directory.
26591  Each template is defined in a file of its own.
26592  You can place your own templates in 
26593 \begin_inset Flex Code
26594 status collapsed
26595
26596 \begin_layout Plain Layout
26597 UserDir/xtemplates/
26598 \end_layout
26599
26600 \end_inset
26601
26602  or copy existing templates to that directory in order to modify them.
26603 \end_layout
26604
26605 \begin_layout Standard
26606 A typical template looks like this:
26607 \end_layout
26608
26609 \begin_layout LyX-Code
26610 Template XFig
26611 \end_layout
26612
26613 \begin_layout LyX-Code
26614 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26615 \end_layout
26616
26617 \begin_layout LyX-Code
26618 HelpText
26619 \end_layout
26620
26621 \begin_layout LyX-Code
26622 An XFig figure.
26623 \end_layout
26624
26625 \begin_layout LyX-Code
26626 HelpTextEnd
26627 \end_layout
26628
26629 \begin_layout LyX-Code
26630 InputFormat fig
26631 \end_layout
26632
26633 \begin_layout LyX-Code
26634 FileFilter "*.fig"
26635 \end_layout
26636
26637 \begin_layout LyX-Code
26638 AutomaticProduction true
26639 \end_layout
26640
26641 \begin_layout LyX-Code
26642 Transform Rotate
26643 \end_layout
26644
26645 \begin_layout LyX-Code
26646 Transform Resize
26647 \end_layout
26648
26649 \begin_layout LyX-Code
26650 Format LaTeX
26651 \end_layout
26652
26653 \begin_layout LyX-Code
26654 TransformCommand Rotate RotationLatexCommand
26655 \end_layout
26656
26657 \begin_layout LyX-Code
26658 TransformCommand Resize ResizeLatexCommand
26659 \end_layout
26660
26661 \begin_layout LyX-Code
26662 Product "$$RotateFront$$ResizeFront
26663 \end_layout
26664
26665 \begin_layout LyX-Code
26666          
26667 \backslash
26668
26669 \backslash
26670 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26671 \end_layout
26672
26673 \begin_layout LyX-Code
26674          $$ResizeBack$$RotateBack"
26675 \end_layout
26676
26677 \begin_layout LyX-Code
26678 UpdateFormat pstex
26679 \end_layout
26680
26681 \begin_layout LyX-Code
26682 UpdateResult "$$AbsPath$$Basename.pstex_t"
26683 \end_layout
26684
26685 \begin_layout LyX-Code
26686 Requirement "graphicx"
26687 \end_layout
26688
26689 \begin_layout LyX-Code
26690 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26691 \end_layout
26692
26693 \begin_layout LyX-Code
26694 ReferencedFile latex "$$AbsPath$$Basename.eps"
26695 \end_layout
26696
26697 \begin_layout LyX-Code
26698 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26699 \end_layout
26700
26701 \begin_layout LyX-Code
26702 FormatEnd
26703 \end_layout
26704
26705 \begin_layout LyX-Code
26706 Format PDFLaTeX
26707 \end_layout
26708
26709 \begin_layout LyX-Code
26710 TransformCommand Rotate RotationLatexCommand
26711 \end_layout
26712
26713 \begin_layout LyX-Code
26714 TransformCommand Resize ResizeLatexCommand
26715 \end_layout
26716
26717 \begin_layout LyX-Code
26718 Product "$$RotateFront$$ResizeFront
26719 \end_layout
26720
26721 \begin_layout LyX-Code
26722          
26723 \backslash
26724
26725 \backslash
26726 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26727 \end_layout
26728
26729 \begin_layout LyX-Code
26730          $$ResizeBack$$RotateBack"
26731 \end_layout
26732
26733 \begin_layout LyX-Code
26734 UpdateFormat pdftex
26735 \end_layout
26736
26737 \begin_layout LyX-Code
26738 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26739 \end_layout
26740
26741 \begin_layout LyX-Code
26742 Requirement "graphicx"
26743 \end_layout
26744
26745 \begin_layout LyX-Code
26746 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26747 \end_layout
26748
26749 \begin_layout LyX-Code
26750 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26751 \end_layout
26752
26753 \begin_layout LyX-Code
26754 FormatEnd
26755 \end_layout
26756
26757 \begin_layout LyX-Code
26758 Format Ascii
26759 \end_layout
26760
26761 \begin_layout LyX-Code
26762 Product "[XFig: $$FName]"
26763 \end_layout
26764
26765 \begin_layout LyX-Code
26766 FormatEnd
26767 \end_layout
26768
26769 \begin_layout LyX-Code
26770 Format DocBook
26771 \end_layout
26772
26773 \begin_layout LyX-Code
26774 Product "<graphic fileref=
26775 \backslash
26776 "$$AbsOrRelPathMaster$$Basename.eps
26777 \backslash
26778 ">
26779 \end_layout
26780
26781 \begin_layout LyX-Code
26782          </graphic>"
26783 \end_layout
26784
26785 \begin_layout LyX-Code
26786 UpdateFormat eps
26787 \end_layout
26788
26789 \begin_layout LyX-Code
26790 UpdateResult "$$AbsPath$$Basename.eps"
26791 \end_layout
26792
26793 \begin_layout LyX-Code
26794 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26795 \end_layout
26796
26797 \begin_layout LyX-Code
26798 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26799 \end_layout
26800
26801 \begin_layout LyX-Code
26802 FormatEnd
26803 \end_layout
26804
26805 \begin_layout LyX-Code
26806 TemplateEnd
26807 \end_layout
26808
26809 \begin_layout Standard
26810 As you can see, the template is enclosed in 
26811 \begin_inset Flex Code
26812 status collapsed
26813
26814 \begin_layout Plain Layout
26815 Template
26816 \end_layout
26817
26818 \end_inset
26819
26820  \SpecialChar ldots
26821  
26822 \begin_inset Flex Code
26823 status collapsed
26824
26825 \begin_layout Plain Layout
26826 TemplateEnd
26827 \end_layout
26828
26829 \end_inset
26830
26831 .
26832  It contains a header specifying some general settings and, for each supported
26833  primary document file format, a section 
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 Format
26839 \end_layout
26840
26841 \end_inset
26842
26843  \SpecialChar ldots
26844  
26845 \begin_inset Flex Code
26846 status collapsed
26847
26848 \begin_layout Plain Layout
26849 FormatEnd
26850 \end_layout
26851
26852 \end_inset
26853
26854 .
26855 \end_layout
26856
26857 \begin_layout Subsection
26858 The template header
26859 \end_layout
26860
26861 \begin_layout Description
26862 \begin_inset Flex Code
26863 status collapsed
26864
26865 \begin_layout Plain Layout
26866 AutomaticProduction
26867 \begin_inset space ~
26868 \end_inset
26869
26870 true|false
26871 \end_layout
26872
26873 \end_inset
26874
26875  Whether the file represented by the template must be generated by \SpecialChar LyX
26876 .
26877  This command must occur exactly once.
26878 \end_layout
26879
26880 \begin_layout Description
26881 \begin_inset Flex Code
26882 status collapsed
26883
26884 \begin_layout Plain Layout
26885 FileFilter
26886 \begin_inset space ~
26887 \end_inset
26888
26889 <pattern>
26890 \end_layout
26891
26892 \end_inset
26893
26894  A glob pattern that is used in the file dialog to filter out the desired
26895  files.
26896  If there is more than one possible file extension (e.
26897 \begin_inset space \thinspace{}
26898 \end_inset
26899
26900 g.
26901 \begin_inset space \space{}
26902 \end_inset
26903
26904 tgif has 
26905 \begin_inset Flex Code
26906 status collapsed
26907
26908 \begin_layout Plain Layout
26909 .obj
26910 \end_layout
26911
26912 \end_inset
26913
26914  and 
26915 \begin_inset Flex Code
26916 status collapsed
26917
26918 \begin_layout Plain Layout
26919 .tgo
26920 \end_layout
26921
26922 \end_inset
26923
26924 ), use something like 
26925 \begin_inset Flex Code
26926 status collapsed
26927
26928 \begin_layout Plain Layout
26929 "*.{obj,tgo}"
26930 \end_layout
26931
26932 \end_inset
26933
26934 .
26935  This command must occur exactly once.
26936 \end_layout
26937
26938 \begin_layout Description
26939 \begin_inset Flex Code
26940 status collapsed
26941
26942 \begin_layout Plain Layout
26943 GuiName
26944 \begin_inset space ~
26945 \end_inset
26946
26947 <guiname>
26948 \end_layout
26949
26950 \end_inset
26951
26952  The text that is displayed on the button.
26953  This command must occur exactly once.
26954 \end_layout
26955
26956 \begin_layout Description
26957 \begin_inset Flex Code
26958 status collapsed
26959
26960 \begin_layout Plain Layout
26961 HelpText
26962 \begin_inset space ~
26963 \end_inset
26964
26965 <text>
26966 \begin_inset space ~
26967 \end_inset
26968
26969 HelpTextEnd
26970 \end_layout
26971
26972 \end_inset
26973
26974  The help text that is used in the External dialog.
26975  Provide enough information to explain to the user just what the template
26976  can provide him with.
26977  This command must occur exactly once.
26978 \end_layout
26979
26980 \begin_layout Description
26981 \begin_inset Flex Code
26982 status collapsed
26983
26984 \begin_layout Plain Layout
26985 InputFormat
26986 \begin_inset space ~
26987 \end_inset
26988
26989 <format>
26990 \end_layout
26991
26992 \end_inset
26993
26994  The file format of the original file.
26995  This must be the name of a format that is known to \SpecialChar LyX
26996  (see 
26997 \begin_inset CommandInset ref
26998 LatexCommand ref
26999 reference "sec:Formats"
27000
27001 \end_inset
27002
27003 ).
27004  Use 
27005 \begin_inset Quotes eld
27006 \end_inset
27007
27008
27009 \begin_inset Flex Code
27010 status collapsed
27011
27012 \begin_layout Plain Layout
27013 *
27014 \end_layout
27015
27016 \end_inset
27017
27018
27019 \begin_inset Quotes erd
27020 \end_inset
27021
27022  if the template can handle original files of more than one format.
27023  \SpecialChar LyX
27024  will attempt to interrogate the file itself in order to deduce its format
27025  in this case.
27026  This command must occur exactly once.
27027 \end_layout
27028
27029 \begin_layout Description
27030 \begin_inset Flex Code
27031 status collapsed
27032
27033 \begin_layout Plain Layout
27034 Template
27035 \begin_inset space ~
27036 \end_inset
27037
27038 <id>
27039 \end_layout
27040
27041 \end_inset
27042
27043  A unique name for the template.
27044  It must not contain substitution macros (see below).
27045 \end_layout
27046
27047 \begin_layout Description
27048 \begin_inset Flex Code
27049 status collapsed
27050
27051 \begin_layout Plain Layout
27052 Transform
27053 \begin_inset space ~
27054 \end_inset
27055
27056 Rotate|Resize|Clip|Extra
27057 \end_layout
27058
27059 \end_inset
27060
27061  This command specifies which transformations are supported by this template.
27062  It may occur zero or more times.
27063  This command enables the corresponding tabs in the external dialog.
27064  Each 
27065 \begin_inset Flex Code
27066 status collapsed
27067
27068 \begin_layout Plain Layout
27069 Transform
27070 \end_layout
27071
27072 \end_inset
27073
27074  command must have either a corresponding 
27075 \begin_inset Flex Code
27076 status collapsed
27077
27078 \begin_layout Plain Layout
27079 TransformCommand
27080 \end_layout
27081
27082 \end_inset
27083
27084  or a 
27085 \begin_inset Flex Code
27086 status collapsed
27087
27088 \begin_layout Plain Layout
27089 TransformOption
27090 \end_layout
27091
27092 \end_inset
27093
27094  command in the 
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 Format
27100 \end_layout
27101
27102 \end_inset
27103
27104  section.
27105  Otherwise the transformation will not be supported by that format.
27106 \end_layout
27107
27108 \begin_layout Subsection
27109 The Format section
27110 \end_layout
27111
27112 \begin_layout Description
27113 \begin_inset Flex Code
27114 status collapsed
27115
27116 \begin_layout Plain Layout
27117 Format
27118 \begin_inset space ~
27119 \end_inset
27120
27121 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27122 \end_layout
27123
27124 \end_inset
27125
27126  The primary document file format that this format definition is for.
27127  Not every template has a sensible representation in all document file formats.
27128  Please define nevertheless a 
27129 \begin_inset Flex Code
27130 status collapsed
27131
27132 \begin_layout Plain Layout
27133 Format
27134 \end_layout
27135
27136 \end_inset
27137
27138  section for all templates.
27139  Use a dummy text when no representation is available.
27140  Then you can at least see a reference to the external material in the exported
27141  document.
27142 \end_layout
27143
27144 \begin_layout Description
27145 \begin_inset Flex Code
27146 status collapsed
27147
27148 \begin_layout Plain Layout
27149 Option
27150 \begin_inset space ~
27151 \end_inset
27152
27153 <name>
27154 \begin_inset space ~
27155 \end_inset
27156
27157 <value>
27158 \end_layout
27159
27160 \end_inset
27161
27162  This command defines an additional macro 
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 $$<name>
27168 \end_layout
27169
27170 \end_inset
27171
27172  for substitution in 
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 Product
27178 \end_layout
27179
27180 \end_inset
27181
27182 .
27183  
27184 \begin_inset Flex Code
27185 status collapsed
27186
27187 \begin_layout Plain Layout
27188 <value>
27189 \end_layout
27190
27191 \end_inset
27192
27193  itself may contain substitution macros.
27194  The advantage over using 
27195 \begin_inset Flex Code
27196 status collapsed
27197
27198 \begin_layout Plain Layout
27199 <value>
27200 \end_layout
27201
27202 \end_inset
27203
27204  directly in 
27205 \begin_inset Flex Code
27206 status collapsed
27207
27208 \begin_layout Plain Layout
27209 Product
27210 \end_layout
27211
27212 \end_inset
27213
27214  is that the substituted value of 
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 $$<name>
27220 \end_layout
27221
27222 \end_inset
27223
27224  is sanitized so that it is a valid optional argument in the document format.
27225  This command may occur zero or more times.
27226 \end_layout
27227
27228 \begin_layout Description
27229 \begin_inset Flex Code
27230 status collapsed
27231
27232 \begin_layout Plain Layout
27233 Product
27234 \begin_inset space ~
27235 \end_inset
27236
27237 <text>
27238 \end_layout
27239
27240 \end_inset
27241
27242  The text that is inserted in the exported document.
27243  This is actually the most important command and can be quite complex.
27244  This command must occur exactly once.
27245 \end_layout
27246
27247 \begin_layout Description
27248 \begin_inset Flex Code
27249 status collapsed
27250
27251 \begin_layout Plain Layout
27252 Preamble
27253 \begin_inset space ~
27254 \end_inset
27255
27256 <name>
27257 \end_layout
27258
27259 \end_inset
27260
27261  This command specifies a preamble snippet that will be included in the
27262  \SpecialChar LaTeX
27263  preamble.
27264  It has to be defined using 
27265 \begin_inset Flex Code
27266 status collapsed
27267
27268 \begin_layout Plain Layout
27269 PreambleDef
27270 \end_layout
27271
27272 \end_inset
27273
27274  \SpecialChar ldots
27275  
27276 \begin_inset Flex Code
27277 status collapsed
27278
27279 \begin_layout Plain Layout
27280 PreambleDefEnd
27281 \end_layout
27282
27283 \end_inset
27284
27285 .
27286  This command may occur zero or more times.
27287 \end_layout
27288
27289 \begin_layout Description
27290 \begin_inset Flex Code
27291 status collapsed
27292
27293 \begin_layout Plain Layout
27294 ReferencedFile
27295 \begin_inset space ~
27296 \end_inset
27297
27298 <format>
27299 \begin_inset space ~
27300 \end_inset
27301
27302 <filename>
27303 \end_layout
27304
27305 \end_inset
27306
27307  This command denotes files that are created by the conversion process and
27308  are needed for a particular export format.
27309  If the filename is relative, it is interpreted relative to the master document.
27310  This command may be given zero or more times.
27311 \end_layout
27312
27313 \begin_layout Description
27314 \begin_inset Flex Code
27315 status collapsed
27316
27317 \begin_layout Plain Layout
27318 Requirement
27319 \begin_inset space ~
27320 \end_inset
27321
27322 <package>
27323 \end_layout
27324
27325 \end_inset
27326
27327  The name of a required \SpecialChar LaTeX
27328  package.
27329  The package is included via 
27330 \begin_inset Flex Code
27331 status collapsed
27332
27333 \begin_layout Plain Layout
27334
27335 \backslash
27336 usepackage{}
27337 \end_layout
27338
27339 \end_inset
27340
27341  in the \SpecialChar LaTeX
27342  preamble.
27343  This command may occur zero or more times.
27344 \end_layout
27345
27346 \begin_layout Description
27347 \begin_inset Flex Code
27348 status collapsed
27349
27350 \begin_layout Plain Layout
27351 TransformCommand
27352 \begin_inset space ~
27353 \end_inset
27354
27355 Rotate
27356 \begin_inset space ~
27357 \end_inset
27358
27359 RotationLatexCommand
27360 \end_layout
27361
27362 \end_inset
27363
27364  This command specifies that the built in \SpecialChar LaTeX
27365  command should be used for rotation.
27366  This command may occur once or not at all.
27367 \end_layout
27368
27369 \begin_layout Description
27370 \begin_inset Flex Code
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 TransformCommand
27375 \begin_inset space ~
27376 \end_inset
27377
27378 Resize
27379 \begin_inset space ~
27380 \end_inset
27381
27382 ResizeLatexCommand
27383 \end_layout
27384
27385 \end_inset
27386
27387  This command specifies that the built in \SpecialChar LaTeX
27388  command should be used for resizing.
27389  This command may occur once or not at all.
27390 \end_layout
27391
27392 \begin_layout Description
27393 \begin_inset Flex Code
27394 status collapsed
27395
27396 \begin_layout Plain Layout
27397 TransformOption
27398 \begin_inset space ~
27399 \end_inset
27400
27401 Rotate
27402 \begin_inset space ~
27403 \end_inset
27404
27405 RotationLatexOption
27406 \end_layout
27407
27408 \end_inset
27409
27410  This command specifies that rotation is done via an optional argument.
27411  This command may occur once or not at all.
27412 \end_layout
27413
27414 \begin_layout Description
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419 TransformOption
27420 \begin_inset space ~
27421 \end_inset
27422
27423 Resize
27424 \begin_inset space ~
27425 \end_inset
27426
27427 ResizeLatexOption
27428 \end_layout
27429
27430 \end_inset
27431
27432  This command specifies that resizing is done via an optional argument.
27433  This command may occur once or not at all.
27434 \end_layout
27435
27436 \begin_layout Description
27437 \begin_inset Flex Code
27438 status collapsed
27439
27440 \begin_layout Plain Layout
27441 TransformOption
27442 \begin_inset space ~
27443 \end_inset
27444
27445 Clip
27446 \begin_inset space ~
27447 \end_inset
27448
27449 ClipLatexOption
27450 \end_layout
27451
27452 \end_inset
27453
27454  This command specifies that clipping is done via an optional argument.
27455  This command may occur once or not at all.
27456 \end_layout
27457
27458 \begin_layout Description
27459 \begin_inset Flex Code
27460 status collapsed
27461
27462 \begin_layout Plain Layout
27463 TransformOption
27464 \begin_inset space ~
27465 \end_inset
27466
27467 Extra
27468 \begin_inset space ~
27469 \end_inset
27470
27471 ExtraLatexOption
27472 \end_layout
27473
27474 \end_inset
27475
27476  This command specifies that an extra optional argument is used.
27477  This command may occur once or not at all.
27478 \end_layout
27479
27480 \begin_layout Description
27481 \begin_inset Flex Code
27482 status collapsed
27483
27484 \begin_layout Plain Layout
27485 UpdateFormat
27486 \begin_inset space ~
27487 \end_inset
27488
27489 <format>
27490 \end_layout
27491
27492 \end_inset
27493
27494  The file format of the converted file.
27495  This must be the name of a format that is known to \SpecialChar LyX
27496  (see the 
27497 \begin_inset Flex Noun
27498 status collapsed
27499
27500 \begin_layout Plain Layout
27501 Tools\SpecialChar menuseparator
27502 Preferences\SpecialChar menuseparator
27503 File Handling\SpecialChar menuseparator
27504 File Format
27505 \end_layout
27506
27507 \end_inset
27508
27509  dialog).
27510  This command must occur exactly once.
27511  If the resulting file format is PDF, you need to specify the format 
27512 \begin_inset Flex Code
27513 status collapsed
27514
27515 \begin_layout Plain Layout
27516 pdf6
27517 \end_layout
27518
27519 \end_inset
27520
27521 .
27522  This is the PDF format used for including graphics.
27523  The other defined PDF formats are for document export.
27524 \end_layout
27525
27526 \begin_layout Description
27527 \begin_inset Flex Code
27528 status collapsed
27529
27530 \begin_layout Plain Layout
27531 UpdateResult
27532 \begin_inset space ~
27533 \end_inset
27534
27535 <filename>
27536 \end_layout
27537
27538 \end_inset
27539
27540  The file name of the converted file.
27541  The file name must be absolute.
27542  This command must occur exactly once.
27543 \end_layout
27544
27545 \begin_layout Subsection
27546 Preamble definitions
27547 \end_layout
27548
27549 \begin_layout Standard
27550 The external template configuration file may contain additional preamble
27551  definitions enclosed by 
27552 \begin_inset Flex Code
27553 status collapsed
27554
27555 \begin_layout Plain Layout
27556 PreambleDef
27557 \end_layout
27558
27559 \end_inset
27560
27561  \SpecialChar ldots
27562  
27563 \begin_inset Flex Code
27564 status collapsed
27565
27566 \begin_layout Plain Layout
27567 PreambleDefEnd
27568 \end_layout
27569
27570 \end_inset
27571
27572 .
27573  They can be used by the templates in the 
27574 \begin_inset Flex Code
27575 status collapsed
27576
27577 \begin_layout Plain Layout
27578 Format
27579 \end_layout
27580
27581 \end_inset
27582
27583  section.
27584 \end_layout
27585
27586 \begin_layout Section
27587 The substitution mechanism
27588 \end_layout
27589
27590 \begin_layout Standard
27591 When the external material facility invokes an external program, it is done
27592  on the basis of a command defined in the template configuration file.
27593  These commands can contain various macros that are expanded before execution.
27594  Execution always take place in the directory of the containing document.
27595 \end_layout
27596
27597 \begin_layout Standard
27598 Also, whenever external material is to be displayed, the name will be produced
27599  by the substitution mechanism, and most other commands in the template
27600  definition support substitution as well.
27601 \end_layout
27602
27603 \begin_layout Standard
27604 The available macros are the following:
27605 \end_layout
27606
27607 \begin_layout Description
27608 \begin_inset Flex Code
27609 status collapsed
27610
27611 \begin_layout Plain Layout
27612 $$AbsOrRelPathMaster
27613 \end_layout
27614
27615 \end_inset
27616
27617  The file path, absolute or relative to the master \SpecialChar LyX
27618  document.
27619 \end_layout
27620
27621 \begin_layout Description
27622 \begin_inset Flex Code
27623 status collapsed
27624
27625 \begin_layout Plain Layout
27626 $$AbsOrRelPathParent
27627 \end_layout
27628
27629 \end_inset
27630
27631  The file path, absolute or relative to the \SpecialChar LyX
27632  document.
27633 \end_layout
27634
27635 \begin_layout Description
27636 \begin_inset Flex Code
27637 status collapsed
27638
27639 \begin_layout Plain Layout
27640 $$AbsPath
27641 \end_layout
27642
27643 \end_inset
27644
27645  The absolute file path.
27646 \end_layout
27647
27648 \begin_layout Description
27649 \begin_inset Flex Code
27650 status collapsed
27651
27652 \begin_layout Plain Layout
27653 $$Basename
27654 \end_layout
27655
27656 \end_inset
27657
27658  The filename without path and without the extension.
27659 \end_layout
27660
27661 \begin_layout Description
27662 \begin_inset Flex Code
27663 status collapsed
27664
27665 \begin_layout Plain Layout
27666 $$Contents(
27667 \begin_inset Quotes eld
27668 \end_inset
27669
27670 filename.ext
27671 \begin_inset Quotes erd
27672 \end_inset
27673
27674 )
27675 \end_layout
27676
27677 \end_inset
27678
27679  This macro will expand to the contents of the file with the name 
27680 \begin_inset Flex Code
27681 status collapsed
27682
27683 \begin_layout Plain Layout
27684 filename.ext
27685 \end_layout
27686
27687 \end_inset
27688
27689 .
27690 \end_layout
27691
27692 \begin_layout Description
27693 \begin_inset Flex Code
27694 status collapsed
27695
27696 \begin_layout Plain Layout
27697 $$Extension
27698 \end_layout
27699
27700 \end_inset
27701
27702  The file extension (including the dot).
27703 \end_layout
27704
27705 \begin_layout Description
27706 \begin_inset Flex Code
27707 status collapsed
27708
27709 \begin_layout Plain Layout
27710 $$pngOrjpg
27711 \end_layout
27712
27713 \end_inset
27714
27715  This will be the string 
27716 \begin_inset Quotes eld
27717 \end_inset
27718
27719 jpg
27720 \begin_inset Quotes erd
27721 \end_inset
27722
27723  if the file is in JPEG format, otherwise it will be the string 
27724 \begin_inset Quotes eld
27725 \end_inset
27726
27727 png
27728 \begin_inset Quotes erd
27729 \end_inset
27730
27731 .
27732  This is useful to avoid uneeded conversions for output formats that support
27733  both PNG and JPEG fomats.
27734  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27735  output
27736  format.
27737 \end_layout
27738
27739 \begin_layout Description
27740 \begin_inset Flex Code
27741 status collapsed
27742
27743 \begin_layout Plain Layout
27744 $$FName
27745 \end_layout
27746
27747 \end_inset
27748
27749  The filename of the file specified in the external material dialog.
27750  This is either an absolute name, or it is relative to the \SpecialChar LyX
27751  document.
27752 \end_layout
27753
27754 \begin_layout Description
27755 \begin_inset Flex Code
27756 status collapsed
27757
27758 \begin_layout Plain Layout
27759 $$FPath
27760 \end_layout
27761
27762 \end_inset
27763
27764  The path part of 
27765 \begin_inset Flex Code
27766 status collapsed
27767
27768 \begin_layout Plain Layout
27769 $$FName
27770 \end_layout
27771
27772 \end_inset
27773
27774  (absolute name or relative to the \SpecialChar LyX
27775  document).
27776 \end_layout
27777
27778 \begin_layout Description
27779 \begin_inset Flex Code
27780 status collapsed
27781
27782 \begin_layout Plain Layout
27783 $$RelPathMaster
27784 \end_layout
27785
27786 \end_inset
27787
27788  The file path, relative to the master \SpecialChar LyX
27789  document.
27790 \end_layout
27791
27792 \begin_layout Description
27793 \begin_inset Flex Code
27794 status collapsed
27795
27796 \begin_layout Plain Layout
27797 $$RelPathParent
27798 \end_layout
27799
27800 \end_inset
27801
27802  The file path, relative to the \SpecialChar LyX
27803  document.
27804 \end_layout
27805
27806 \begin_layout Description
27807 \begin_inset Flex Code
27808 status collapsed
27809
27810 \begin_layout Plain Layout
27811 $$Sysdir
27812 \end_layout
27813
27814 \end_inset
27815
27816  This macro will expand to the absolute path of the system directory.
27817  This is typically used to point to the various helper scripts that are
27818  bundled with \SpecialChar LyX
27819 .
27820 \end_layout
27821
27822 \begin_layout Description
27823 \begin_inset Flex Code
27824 status collapsed
27825
27826 \begin_layout Plain Layout
27827 $$Tempname
27828 \end_layout
27829
27830 \end_inset
27831
27832  A name and full path to a temporary file which will be automatically deleted
27833  whenever the containing document is closed, or the external material insertion
27834  deleted.
27835 \end_layout
27836
27837 \begin_layout Standard
27838 All path macros contain a trailing directory separator, so you can construct
27839  e.
27840 \begin_inset space \thinspace{}
27841 \end_inset
27842
27843 g.
27844 \begin_inset space \space{}
27845 \end_inset
27846
27847 the absolute filename with 
27848 \begin_inset Flex Code
27849 status collapsed
27850
27851 \begin_layout Plain Layout
27852 $$AbsPath$$Basename$$Extension
27853 \end_layout
27854
27855 \end_inset
27856
27857 .
27858 \end_layout
27859
27860 \begin_layout Standard
27861 The macros above are substituted in all commands unless otherwise noted.
27862  The command 
27863 \begin_inset Flex Code
27864 status collapsed
27865
27866 \begin_layout Plain Layout
27867 Product
27868 \end_layout
27869
27870 \end_inset
27871
27872  supports additionally the following substitutions if they are enabled by
27873  the 
27874 \begin_inset Flex Code
27875 status collapsed
27876
27877 \begin_layout Plain Layout
27878 Transform
27879 \end_layout
27880
27881 \end_inset
27882
27883  and 
27884 \begin_inset Flex Code
27885 status collapsed
27886
27887 \begin_layout Plain Layout
27888 TransformCommand
27889 \end_layout
27890
27891 \end_inset
27892
27893  commands:
27894 \end_layout
27895
27896 \begin_layout Description
27897 \begin_inset Flex Code
27898 status collapsed
27899
27900 \begin_layout Plain Layout
27901 $$ResizeFront
27902 \end_layout
27903
27904 \end_inset
27905
27906  The front part of the resize command.
27907 \end_layout
27908
27909 \begin_layout Description
27910 \begin_inset Flex Code
27911 status collapsed
27912
27913 \begin_layout Plain Layout
27914 $$ResizeBack
27915 \end_layout
27916
27917 \end_inset
27918
27919  The back part of the resize command.
27920 \end_layout
27921
27922 \begin_layout Description
27923 \begin_inset Flex Code
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927 $$RotateFront
27928 \end_layout
27929
27930 \end_inset
27931
27932  The front part of the rotation command.
27933 \end_layout
27934
27935 \begin_layout Description
27936 \begin_inset Flex Code
27937 status collapsed
27938
27939 \begin_layout Plain Layout
27940 $$RotateBack
27941 \end_layout
27942
27943 \end_inset
27944
27945  The back part of the rotation command.
27946 \end_layout
27947
27948 \begin_layout Standard
27949 The value string of the 
27950 \begin_inset Flex Code
27951 status collapsed
27952
27953 \begin_layout Plain Layout
27954 Option
27955 \end_layout
27956
27957 \end_inset
27958
27959  command supports additionally the following substitutions if they are enabled
27960  by the 
27961 \begin_inset Flex Code
27962 status collapsed
27963
27964 \begin_layout Plain Layout
27965 Transform
27966 \end_layout
27967
27968 \end_inset
27969
27970  and 
27971 \begin_inset Flex Code
27972 status collapsed
27973
27974 \begin_layout Plain Layout
27975 TransformOption
27976 \end_layout
27977
27978 \end_inset
27979
27980  commands:
27981 \end_layout
27982
27983 \begin_layout Description
27984 \begin_inset Flex Code
27985 status collapsed
27986
27987 \begin_layout Plain Layout
27988 $$Clip
27989 \end_layout
27990
27991 \end_inset
27992
27993  The clip option.
27994 \end_layout
27995
27996 \begin_layout Description
27997 \begin_inset Flex Code
27998 status collapsed
27999
28000 \begin_layout Plain Layout
28001 $$Extra
28002 \end_layout
28003
28004 \end_inset
28005
28006  The extra option.
28007 \end_layout
28008
28009 \begin_layout Description
28010 \begin_inset Flex Code
28011 status collapsed
28012
28013 \begin_layout Plain Layout
28014 $$Resize
28015 \end_layout
28016
28017 \end_inset
28018
28019  The resize option.
28020 \end_layout
28021
28022 \begin_layout Description
28023 \begin_inset Flex Code
28024 status collapsed
28025
28026 \begin_layout Plain Layout
28027 $$Rotate
28028 \end_layout
28029
28030 \end_inset
28031
28032  The rotation option.
28033 \end_layout
28034
28035 \begin_layout Standard
28036 You may ask why there are so many path macros.
28037  There are mainly two reasons:
28038 \end_layout
28039
28040 \begin_layout Enumerate
28041 Relative and absolute file names should remain relative or absolute, respectivel
28042 y.
28043  Users may have reasons to prefer either form.
28044  Relative names are useful for portable documents that should work on different
28045  machines, for example.
28046  Absolute names may be required by some programs.
28047 \end_layout
28048
28049 \begin_layout Enumerate
28050 \SpecialChar LaTeX
28051  treats relative file names differently than \SpecialChar LyX
28052  and other programs in nested
28053  included files.
28054  For \SpecialChar LyX
28055 , a relative file name is always relative to the document that contains
28056  the file name.
28057  For \SpecialChar LaTeX
28058 , it is always relative to the master document.
28059  These two definitions are identical if you have only one document, but
28060  differ if you have a master document that includes part documents.
28061  That means that relative filenames must be transformed when presented to
28062  \SpecialChar LaTeX
28063 .
28064  Fortunately \SpecialChar LyX
28065  does this automatically for you if you choose the right macros.
28066 \end_layout
28067
28068 \begin_layout Standard
28069 So which path macro should be used in new template definitions? The rule
28070  is not difficult:
28071 \end_layout
28072
28073 \begin_layout Itemize
28074 Use 
28075 \begin_inset Flex Code
28076 status collapsed
28077
28078 \begin_layout Plain Layout
28079 $$AbsPath
28080 \end_layout
28081
28082 \end_inset
28083
28084  if an absolute path is required.
28085 \end_layout
28086
28087 \begin_layout Itemize
28088 Use 
28089 \begin_inset Flex Code
28090 status collapsed
28091
28092 \begin_layout Plain Layout
28093 $$AbsOrRelPathMaster
28094 \end_layout
28095
28096 \end_inset
28097
28098  if the substituted string is some kind of \SpecialChar LaTeX
28099  input.
28100 \end_layout
28101
28102 \begin_layout Itemize
28103 Else use 
28104 \begin_inset Flex Code
28105 status collapsed
28106
28107 \begin_layout Plain Layout
28108 $$AbsOrRelPathParent
28109 \end_layout
28110
28111 \end_inset
28112
28113  in order to preserve the user's choice.
28114 \end_layout
28115
28116 \begin_layout Standard
28117 There are special cases where this rule does not work and e.
28118 \begin_inset space \thinspace{}
28119 \end_inset
28120
28121 g.
28122 \begin_inset space \space{}
28123 \end_inset
28124
28125 relative names are needed, but normally it will work just fine.
28126  One example for such a case is the command 
28127 \begin_inset Flex Code
28128 status collapsed
28129
28130 \begin_layout Plain Layout
28131 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28132 \end_layout
28133
28134 \end_inset
28135
28136  in the XFig template above: We can't use the absolute name because the
28137  copier for 
28138 \begin_inset Flex Code
28139 status collapsed
28140
28141 \begin_layout Plain Layout
28142 .pstex_t
28143 \end_layout
28144
28145 \end_inset
28146
28147  files needs the relative name in order to rewrite the file content.
28148 \end_layout
28149
28150 \begin_layout Section
28151 Security discussion
28152 \begin_inset CommandInset label
28153 LatexCommand label
28154 name "sec:Security-discussion"
28155
28156 \end_inset
28157
28158
28159 \end_layout
28160
28161 \begin_layout Standard
28162 The external material feature interfaces with a lot of external programs
28163  and does so automatically, so we have to consider the security implications
28164  of this.
28165  In particular, since you have the option of including your own filenames
28166  and/or parameter strings and those are expanded into a command, it seems
28167  that it would be possible to create a malicious document which executes
28168  arbitrary commands when a user views or prints the document.
28169  This is something we definitely want to avoid.
28170 \end_layout
28171
28172 \begin_layout Standard
28173 However, since the external program commands are specified in the template
28174  configuration file only, there are no security issues if \SpecialChar LyX
28175  is properly configure
28176 d with safe templates only.
28177  This is so because the external programs are invoked with the 
28178 \begin_inset Flex Code
28179 status collapsed
28180
28181 \begin_layout Plain Layout
28182 execvp
28183 \end_layout
28184
28185 \end_inset
28186
28187 -system call rather than the 
28188 \begin_inset Flex Code
28189 status collapsed
28190
28191 \begin_layout Plain Layout
28192 system
28193 \end_layout
28194
28195 \end_inset
28196
28197  system-call, so it's not possible to execute arbitrary commands from the
28198  filename or parameter section via the shell.
28199 \end_layout
28200
28201 \begin_layout Standard
28202 This also implies that you are restricted in what command strings you can
28203  use in the external material templates.
28204  In particular, pipes and redirection are not readily available.
28205  This has to be so if \SpecialChar LyX
28206  should remain safe.
28207  If you want to use some of the shell features, you should write a safe
28208  script to do this in a controlled manner, and then invoke the script from
28209  the command string.
28210  
28211 \end_layout
28212
28213 \begin_layout Standard
28214 It is possible to design a template that interacts directly with the shell,
28215  but since this would allow a malicious user to execute arbitrary commands
28216  by writing clever filenames and/or parameters, we generally recommend that
28217  you only use safe scripts that work with the 
28218 \begin_inset Flex Code
28219 status collapsed
28220
28221 \begin_layout Plain Layout
28222 execvp
28223 \end_layout
28224
28225 \end_inset
28226
28227  system call in a controlled manner.
28228  Of course, for use in a controlled environment, it can be tempting to just
28229  fall back to use ordinary shell scripts.
28230  If you do so, be aware that you 
28231 \emph on
28232 will
28233 \emph default
28234  provide an easily exploitable security hole in your system.
28235  Of course it stands to reason that such unsafe templates will never be
28236  included in the standard \SpecialChar LyX
28237  distribution, although we do encourage people
28238  to submit new templates in the open source tradition.
28239  But \SpecialChar LyX
28240  as shipped from the official distribution channels will never have
28241  unsafe templates.
28242 \end_layout
28243
28244 \begin_layout Standard
28245 Including external material provides a lot of power, and you have to be
28246  careful not to introduce security hazards with this power.
28247  A subtle error in a single line in an innocent looking script can open
28248  the door to huge security problems.
28249  So if you do not fully understand the issues, we recommend that you consult
28250  a knowledgeable security professional or the \SpecialChar LyX
28251  development team if you have
28252  any questions about whether a given template is safe or not.
28253  And do this before you use it in an uncontrolled environment.
28254 \end_layout
28255
28256 \begin_layout Chapter
28257 \start_of_appendix
28258 List of supported \SpecialChar LyX
28259  functions to be used in layouts
28260 \begin_inset CommandInset label
28261 LatexCommand label
28262 name "chap:List-of-functions"
28263
28264 \end_inset
28265
28266
28267 \end_layout
28268
28269 \begin_layout Standard
28270 \align center
28271 \begin_inset Tabular
28272 <lyxtabular version="3" rows="11" columns="8">
28273 <features tabularvalignment="middle">
28274 <column alignment="left" valignment="top">
28275 <column alignment="left" valignment="top">
28276 <column alignment="left" valignment="top">
28277 <column alignment="left" valignment="top">
28278 <column alignment="left" valignment="top">
28279 <column alignment="left" valignment="top">
28280 <column alignment="left" valignment="top">
28281 <column alignment="left" valignment="top">
28282 <row>
28283 <cell alignment="left" valignment="top" usebox="none">
28284 \begin_inset Text
28285
28286 \begin_layout Plain Layout
28287 accents
28288 \end_layout
28289
28290 \end_inset
28291 </cell>
28292 <cell alignment="left" valignment="top" usebox="none">
28293 \begin_inset Text
28294
28295 \begin_layout Plain Layout
28296 booktabs
28297 \end_layout
28298
28299 \end_inset
28300 </cell>
28301 <cell alignment="left" valignment="top" usebox="none">
28302 \begin_inset Text
28303
28304 \begin_layout Plain Layout
28305 feyn
28306 \end_layout
28307
28308 \end_inset
28309 </cell>
28310 <cell alignment="left" valignment="top" usebox="none">
28311 \begin_inset Text
28312
28313 \begin_layout Plain Layout
28314 listings
28315 \end_layout
28316
28317 \end_inset
28318 </cell>
28319 <cell alignment="center" valignment="top" usebox="none">
28320 \begin_inset Text
28321
28322 \begin_layout Plain Layout
28323 natbib
28324 \end_layout
28325
28326 \end_inset
28327 </cell>
28328 <cell alignment="center" valignment="top" usebox="none">
28329 \begin_inset Text
28330
28331 \begin_layout Plain Layout
28332 rotfloat
28333 \end_layout
28334
28335 \end_inset
28336 </cell>
28337 <cell alignment="center" valignment="top" usebox="none">
28338 \begin_inset Text
28339
28340 \begin_layout Plain Layout
28341 tfrupee
28342 \end_layout
28343
28344 \end_inset
28345 </cell>
28346 <cell alignment="center" valignment="top" usebox="none">
28347 \begin_inset Text
28348
28349 \begin_layout Plain Layout
28350 wasysym
28351 \end_layout
28352
28353 \end_inset
28354 </cell>
28355 </row>
28356 <row>
28357 <cell alignment="left" valignment="top" usebox="none">
28358 \begin_inset Text
28359
28360 \begin_layout Plain Layout
28361 amsbsy
28362 \end_layout
28363
28364 \end_inset
28365 </cell>
28366 <cell alignment="left" valignment="top" usebox="none">
28367 \begin_inset Text
28368
28369 \begin_layout Plain Layout
28370 calc
28371 \end_layout
28372
28373 \end_inset
28374 </cell>
28375 <cell alignment="left" valignment="top" usebox="none">
28376 \begin_inset Text
28377
28378 \begin_layout Plain Layout
28379 fixltx2e
28380 \end_layout
28381
28382 \end_inset
28383 </cell>
28384 <cell alignment="left" valignment="top" usebox="none">
28385 \begin_inset Text
28386
28387 \begin_layout Plain Layout
28388 longtable
28389 \end_layout
28390
28391 \end_inset
28392 </cell>
28393 <cell alignment="center" valignment="top" usebox="none">
28394 \begin_inset Text
28395
28396 \begin_layout Plain Layout
28397 nomencl
28398 \end_layout
28399
28400 \end_inset
28401 </cell>
28402 <cell alignment="center" valignment="top" usebox="none">
28403 \begin_inset Text
28404
28405 \begin_layout Plain Layout
28406 rsphrase
28407 \end_layout
28408
28409 \end_inset
28410 </cell>
28411 <cell alignment="center" valignment="top" usebox="none">
28412 \begin_inset Text
28413
28414 \begin_layout Plain Layout
28415 tipa
28416 \end_layout
28417
28418 \end_inset
28419 </cell>
28420 <cell alignment="center" valignment="top" usebox="none">
28421 \begin_inset Text
28422
28423 \begin_layout Plain Layout
28424 wrapfig
28425 \end_layout
28426
28427 \end_inset
28428 </cell>
28429 </row>
28430 <row>
28431 <cell alignment="left" valignment="top" usebox="none">
28432 \begin_inset Text
28433
28434 \begin_layout Plain Layout
28435 amscd
28436 \end_layout
28437
28438 \end_inset
28439 </cell>
28440 <cell alignment="left" valignment="top" usebox="none">
28441 \begin_inset Text
28442
28443 \begin_layout Plain Layout
28444 CJK
28445 \end_layout
28446
28447 \end_inset
28448 </cell>
28449 <cell alignment="left" valignment="top" usebox="none">
28450 \begin_inset Text
28451
28452 \begin_layout Plain Layout
28453 float
28454 \end_layout
28455
28456 \end_inset
28457 </cell>
28458 <cell alignment="left" valignment="top" usebox="none">
28459 \begin_inset Text
28460
28461 \begin_layout Plain Layout
28462 lyxskak
28463 \end_layout
28464
28465 \end_inset
28466 </cell>
28467 <cell alignment="center" valignment="top" usebox="none">
28468 \begin_inset Text
28469
28470 \begin_layout Plain Layout
28471 pdfcolmk
28472 \end_layout
28473
28474 \end_inset
28475 </cell>
28476 <cell alignment="center" valignment="top" usebox="none">
28477 \begin_inset Text
28478
28479 \begin_layout Plain Layout
28480 setspace
28481 \end_layout
28482
28483 \end_inset
28484 </cell>
28485 <cell alignment="center" valignment="top" usebox="none">
28486 \begin_inset Text
28487
28488 \begin_layout Plain Layout
28489 tipx
28490 \end_layout
28491
28492 \end_inset
28493 </cell>
28494 <cell alignment="center" valignment="top" usebox="none">
28495 \begin_inset Text
28496
28497 \begin_layout Plain Layout
28498 xargs
28499 \end_layout
28500
28501 \end_inset
28502 </cell>
28503 </row>
28504 <row>
28505 <cell alignment="left" valignment="top" usebox="none">
28506 \begin_inset Text
28507
28508 \begin_layout Plain Layout
28509 amsmath
28510 \end_layout
28511
28512 \end_inset
28513 </cell>
28514 <cell alignment="left" valignment="top" usebox="none">
28515 \begin_inset Text
28516
28517 \begin_layout Plain Layout
28518 color
28519 \end_layout
28520
28521 \end_inset
28522 </cell>
28523 <cell alignment="left" valignment="top" usebox="none">
28524 \begin_inset Text
28525
28526 \begin_layout Plain Layout
28527 framed
28528 \end_layout
28529
28530 \end_inset
28531 </cell>
28532 <cell alignment="left" valignment="top" usebox="none">
28533 \begin_inset Text
28534
28535 \begin_layout Plain Layout
28536 makeidx
28537 \end_layout
28538
28539 \end_inset
28540 </cell>
28541 <cell alignment="center" valignment="top" usebox="none">
28542 \begin_inset Text
28543
28544 \begin_layout Plain Layout
28545 pdfpages
28546 \end_layout
28547
28548 \end_inset
28549 </cell>
28550 <cell alignment="center" valignment="top" usebox="none">
28551 \begin_inset Text
28552
28553 \begin_layout Plain Layout
28554 shapepar
28555 \end_layout
28556
28557 \end_inset
28558 </cell>
28559 <cell alignment="center" valignment="top" usebox="none">
28560 \begin_inset Text
28561
28562 \begin_layout Plain Layout
28563 tone
28564 \end_layout
28565
28566 \end_inset
28567 </cell>
28568 <cell alignment="center" valignment="top" usebox="none">
28569 \begin_inset Text
28570
28571 \begin_layout Plain Layout
28572 xcolor
28573 \end_layout
28574
28575 \end_inset
28576 </cell>
28577 </row>
28578 <row>
28579 <cell alignment="left" valignment="top" usebox="none">
28580 \begin_inset Text
28581
28582 \begin_layout Plain Layout
28583 amssymb
28584 \end_layout
28585
28586 \end_inset
28587 </cell>
28588 <cell alignment="left" valignment="top" usebox="none">
28589 \begin_inset Text
28590
28591 \begin_layout Plain Layout
28592 covington
28593 \end_layout
28594
28595 \end_inset
28596 </cell>
28597 <cell alignment="left" valignment="top" usebox="none">
28598 \begin_inset Text
28599
28600 \begin_layout Plain Layout
28601 graphicx
28602 \end_layout
28603
28604 \end_inset
28605 </cell>
28606 <cell alignment="left" valignment="top" usebox="none">
28607 \begin_inset Text
28608
28609 \begin_layout Plain Layout
28610 marvosym
28611 \end_layout
28612
28613 \end_inset
28614 </cell>
28615 <cell alignment="center" valignment="top" usebox="none">
28616 \begin_inset Text
28617
28618 \begin_layout Plain Layout
28619 pifont
28620 \end_layout
28621
28622 \end_inset
28623 </cell>
28624 <cell alignment="center" valignment="top" usebox="none">
28625 \begin_inset Text
28626
28627 \begin_layout Plain Layout
28628 slashed
28629 \end_layout
28630
28631 \end_inset
28632 </cell>
28633 <cell alignment="center" valignment="top" usebox="none">
28634 \begin_inset Text
28635
28636 \begin_layout Plain Layout
28637 txfonts
28638 \end_layout
28639
28640 \end_inset
28641 </cell>
28642 <cell alignment="center" valignment="top" usebox="none">
28643 \begin_inset Text
28644
28645 \begin_layout Plain Layout
28646 xy
28647 \end_layout
28648
28649 \end_inset
28650 </cell>
28651 </row>
28652 <row>
28653 <cell alignment="left" valignment="top" usebox="none">
28654 \begin_inset Text
28655
28656 \begin_layout Plain Layout
28657 amstext
28658 \end_layout
28659
28660 \end_inset
28661 </cell>
28662 <cell alignment="left" valignment="top" usebox="none">
28663 \begin_inset Text
28664
28665 \begin_layout Plain Layout
28666 csquotes
28667 \end_layout
28668
28669 \end_inset
28670 </cell>
28671 <cell alignment="left" valignment="top" usebox="none">
28672 \begin_inset Text
28673
28674 \begin_layout Plain Layout
28675 hhline
28676 \end_layout
28677
28678 \end_inset
28679 </cell>
28680 <cell alignment="left" valignment="top" usebox="none">
28681 \begin_inset Text
28682
28683 \begin_layout Plain Layout
28684 mathdesign
28685 \end_layout
28686
28687 \end_inset
28688 </cell>
28689 <cell alignment="center" valignment="top" usebox="none">
28690 \begin_inset Text
28691
28692 \begin_layout Plain Layout
28693 pmboxdraw
28694 \end_layout
28695
28696 \end_inset
28697 </cell>
28698 <cell alignment="center" valignment="top" usebox="none">
28699 \begin_inset Text
28700
28701 \begin_layout Plain Layout
28702 soul
28703 \end_layout
28704
28705 \end_inset
28706 </cell>
28707 <cell alignment="center" valignment="top" usebox="none">
28708 \begin_inset Text
28709
28710 \begin_layout Plain Layout
28711 ulem
28712 \end_layout
28713
28714 \end_inset
28715 </cell>
28716 <cell alignment="center" valignment="top" usebox="none">
28717 \begin_inset Text
28718
28719 \begin_layout Plain Layout
28720 yhmath
28721 \end_layout
28722
28723 \end_inset
28724 </cell>
28725 </row>
28726 <row>
28727 <cell alignment="left" valignment="top" usebox="none">
28728 \begin_inset Text
28729
28730 \begin_layout Plain Layout
28731 amsthm
28732 \end_layout
28733
28734 \end_inset
28735 </cell>
28736 <cell alignment="left" valignment="top" usebox="none">
28737 \begin_inset Text
28738
28739 \begin_layout Plain Layout
28740 dvipost
28741 \end_layout
28742
28743 \end_inset
28744 </cell>
28745 <cell alignment="left" valignment="top" usebox="none">
28746 \begin_inset Text
28747
28748 \begin_layout Plain Layout
28749 hyperref
28750 \end_layout
28751
28752 \end_inset
28753 </cell>
28754 <cell alignment="left" valignment="top" usebox="none">
28755 \begin_inset Text
28756
28757 \begin_layout Plain Layout
28758 mathdots
28759 \end_layout
28760
28761 \end_inset
28762 </cell>
28763 <cell alignment="center" valignment="top" usebox="none">
28764 \begin_inset Text
28765
28766 \begin_layout Plain Layout
28767 polyglossia
28768 \end_layout
28769
28770 \end_inset
28771 </cell>
28772 <cell alignment="center" valignment="top" usebox="none">
28773 \begin_inset Text
28774
28775 \begin_layout Plain Layout
28776 splitidx
28777 \end_layout
28778
28779 \end_inset
28780 </cell>
28781 <cell alignment="center" valignment="top" usebox="none">
28782 \begin_inset Text
28783
28784 \begin_layout Plain Layout
28785 undertilde
28786 \end_layout
28787
28788 \end_inset
28789 </cell>
28790 <cell alignment="center" valignment="top" usebox="none">
28791 \begin_inset Text
28792
28793 \begin_layout Plain Layout
28794
28795 \end_layout
28796
28797 \end_inset
28798 </cell>
28799 </row>
28800 <row>
28801 <cell alignment="left" valignment="top" usebox="none">
28802 \begin_inset Text
28803
28804 \begin_layout Plain Layout
28805 array
28806 \end_layout
28807
28808 \end_inset
28809 </cell>
28810 <cell alignment="left" valignment="top" usebox="none">
28811 \begin_inset Text
28812
28813 \begin_layout Plain Layout
28814 endnotes
28815 \end_layout
28816
28817 \end_inset
28818 </cell>
28819 <cell alignment="left" valignment="top" usebox="none">
28820 \begin_inset Text
28821
28822 \begin_layout Plain Layout
28823 ifsym
28824 \end_layout
28825
28826 \end_inset
28827 </cell>
28828 <cell alignment="left" valignment="top" usebox="none">
28829 \begin_inset Text
28830
28831 \begin_layout Plain Layout
28832 mathrsfs
28833 \end_layout
28834
28835 \end_inset
28836 </cell>
28837 <cell alignment="center" valignment="top" usebox="none">
28838 \begin_inset Text
28839
28840 \begin_layout Plain Layout
28841 prettyref
28842 \end_layout
28843
28844 \end_inset
28845 </cell>
28846 <cell alignment="center" valignment="top" usebox="none">
28847 \begin_inset Text
28848
28849 \begin_layout Plain Layout
28850 subfig
28851 \end_layout
28852
28853 \end_inset
28854 </cell>
28855 <cell alignment="center" valignment="top" usebox="none">
28856 \begin_inset Text
28857
28858 \begin_layout Plain Layout
28859 units
28860 \end_layout
28861
28862 \end_inset
28863 </cell>
28864 <cell alignment="center" valignment="top" usebox="none">
28865 \begin_inset Text
28866
28867 \begin_layout Plain Layout
28868
28869 \end_layout
28870
28871 \end_inset
28872 </cell>
28873 </row>
28874 <row>
28875 <cell alignment="left" valignment="top" usebox="none">
28876 \begin_inset Text
28877
28878 \begin_layout Plain Layout
28879 ascii
28880 \end_layout
28881
28882 \end_inset
28883 </cell>
28884 <cell alignment="left" valignment="top" usebox="none">
28885 \begin_inset Text
28886
28887 \begin_layout Plain Layout
28888 enumitem
28889 \end_layout
28890
28891 \end_inset
28892 </cell>
28893 <cell alignment="left" valignment="top" usebox="none">
28894 \begin_inset Text
28895
28896 \begin_layout Plain Layout
28897 ifthen
28898 \end_layout
28899
28900 \end_inset
28901 </cell>
28902 <cell alignment="left" valignment="top" usebox="none">
28903 \begin_inset Text
28904
28905 \begin_layout Plain Layout
28906 mhchem
28907 \end_layout
28908
28909 \end_inset
28910 </cell>
28911 <cell alignment="center" valignment="top" usebox="none">
28912 \begin_inset Text
28913
28914 \begin_layout Plain Layout
28915 pxfonts
28916 \end_layout
28917
28918 \end_inset
28919 </cell>
28920 <cell alignment="center" valignment="top" usebox="none">
28921 \begin_inset Text
28922
28923 \begin_layout Plain Layout
28924 subscript
28925 \end_layout
28926
28927 \end_inset
28928 </cell>
28929 <cell alignment="center" valignment="top" usebox="none">
28930 \begin_inset Text
28931
28932 \begin_layout Plain Layout
28933 url
28934 \end_layout
28935
28936 \end_inset
28937 </cell>
28938 <cell alignment="center" valignment="top" usebox="none">
28939 \begin_inset Text
28940
28941 \begin_layout Plain Layout
28942
28943 \end_layout
28944
28945 \end_inset
28946 </cell>
28947 </row>
28948 <row>
28949 <cell alignment="left" valignment="top" usebox="none">
28950 \begin_inset Text
28951
28952 \begin_layout Plain Layout
28953 bbding
28954 \end_layout
28955
28956 \end_inset
28957 </cell>
28958 <cell alignment="left" valignment="top" usebox="none">
28959 \begin_inset Text
28960
28961 \begin_layout Plain Layout
28962 esint
28963 \end_layout
28964
28965 \end_inset
28966 </cell>
28967 <cell alignment="left" valignment="top" usebox="none">
28968 \begin_inset Text
28969
28970 \begin_layout Plain Layout
28971 jurabib
28972 \end_layout
28973
28974 \end_inset
28975 </cell>
28976 <cell alignment="left" valignment="top" usebox="none">
28977 \begin_inset Text
28978
28979 \begin_layout Plain Layout
28980 multicol
28981 \end_layout
28982
28983 \end_inset
28984 </cell>
28985 <cell alignment="center" valignment="top" usebox="none">
28986 \begin_inset Text
28987
28988 \begin_layout Plain Layout
28989 refstyle
28990 \end_layout
28991
28992 \end_inset
28993 </cell>
28994 <cell alignment="center" valignment="top" usebox="none">
28995 \begin_inset Text
28996
28997 \begin_layout Plain Layout
28998 textcomp
28999 \end_layout
29000
29001 \end_inset
29002 </cell>
29003 <cell alignment="center" valignment="top" usebox="none">
29004 \begin_inset Text
29005
29006 \begin_layout Plain Layout
29007 varioref
29008 \end_layout
29009
29010 \end_inset
29011 </cell>
29012 <cell alignment="center" valignment="top" usebox="none">
29013 \begin_inset Text
29014
29015 \begin_layout Plain Layout
29016
29017 \end_layout
29018
29019 \end_inset
29020 </cell>
29021 </row>
29022 <row>
29023 <cell alignment="center" valignment="top" usebox="none">
29024 \begin_inset Text
29025
29026 \begin_layout Plain Layout
29027 bm
29028 \end_layout
29029
29030 \end_inset
29031 </cell>
29032 <cell alignment="center" valignment="top" usebox="none">
29033 \begin_inset Text
29034
29035 \begin_layout Plain Layout
29036 fancybox
29037 \end_layout
29038
29039 \end_inset
29040 </cell>
29041 <cell alignment="center" valignment="top" usebox="none">
29042 \begin_inset Text
29043
29044 \begin_layout Plain Layout
29045 latexsym
29046 \end_layout
29047
29048 \end_inset
29049 </cell>
29050 <cell alignment="center" valignment="top" usebox="none">
29051 \begin_inset Text
29052
29053 \begin_layout Plain Layout
29054 multirow
29055 \end_layout
29056
29057 \end_inset
29058 </cell>
29059 <cell alignment="center" valignment="top" usebox="none">
29060 \begin_inset Text
29061
29062 \begin_layout Plain Layout
29063 rotating
29064 \end_layout
29065
29066 \end_inset
29067 </cell>
29068 <cell alignment="center" valignment="top" usebox="none">
29069 \begin_inset Text
29070
29071 \begin_layout Plain Layout
29072 textgreek
29073 \end_layout
29074
29075 \end_inset
29076 </cell>
29077 <cell alignment="center" valignment="top" usebox="none">
29078 \begin_inset Text
29079
29080 \begin_layout Plain Layout
29081 verbatim
29082 \end_layout
29083
29084 \end_inset
29085 </cell>
29086 <cell alignment="center" valignment="top" usebox="none">
29087 \begin_inset Text
29088
29089 \begin_layout Plain Layout
29090
29091 \end_layout
29092
29093 \end_inset
29094 </cell>
29095 </row>
29096 </lyxtabular>
29097
29098 \end_inset
29099
29100
29101 \end_layout
29102
29103 \begin_layout Chapter
29104 Names of available colors to be used in layouts
29105 \begin_inset CommandInset label
29106 LatexCommand label
29107 name "chap:Names-of-colors"
29108
29109 \end_inset
29110
29111
29112 \end_layout
29113
29114 \begin_layout Standard
29115 The colors listed below are the standard colors and those that you can adjust
29116  in the \SpecialChar LyX
29117  preferences.
29118 \end_layout
29119
29120 \begin_layout Section
29121 Color functions
29122 \end_layout
29123
29124 \begin_layout Standard
29125 The following are no real colors, but rather act on color definitions:
29126 \end_layout
29127
29128 \begin_layout Description
29129 ignore The color is ignored
29130 \end_layout
29131
29132 \begin_layout Description
29133 inherit The color is inherited
29134 \end_layout
29135
29136 \begin_layout Description
29137 none
29138 \family roman
29139 \series medium
29140 \shape up
29141 \size normal
29142 \emph off
29143 \bar no
29144 \strikeout off
29145 \uuline off
29146 \uwave off
29147 \noun off
29148 \color none
29149  No particular color – clear or default
29150 \end_layout
29151
29152 \begin_layout Section
29153 Static colors
29154 \end_layout
29155
29156 \begin_layout Standard
29157 These are fixed colors that cannot me customized:
29158 \end_layout
29159
29160 \begin_layout Description
29161 black
29162 \end_layout
29163
29164 \begin_layout Description
29165 white
29166 \end_layout
29167
29168 \begin_layout Description
29169 blue
29170 \end_layout
29171
29172 \begin_layout Description
29173 brown
29174 \end_layout
29175
29176 \begin_layout Description
29177 cyan
29178 \end_layout
29179
29180 \begin_layout Description
29181 darkgray
29182 \end_layout
29183
29184 \begin_layout Description
29185 gray
29186 \end_layout
29187
29188 \begin_layout Description
29189 green
29190 \end_layout
29191
29192 \begin_layout Description
29193 lightgray
29194 \end_layout
29195
29196 \begin_layout Description
29197 lime
29198 \end_layout
29199
29200 \begin_layout Description
29201 magenta
29202 \end_layout
29203
29204 \begin_layout Description
29205 olive
29206 \end_layout
29207
29208 \begin_layout Description
29209 orange
29210 \end_layout
29211
29212 \begin_layout Description
29213 pink
29214 \end_layout
29215
29216 \begin_layout Description
29217 purple
29218 \end_layout
29219
29220 \begin_layout Description
29221 red
29222 \end_layout
29223
29224 \begin_layout Description
29225 teal
29226 \end_layout
29227
29228 \begin_layout Description
29229 violet
29230 \end_layout
29231
29232 \begin_layout Description
29233 yellow
29234 \end_layout
29235
29236 \begin_layout Section
29237 Dynamic colors
29238 \end_layout
29239
29240 \begin_layout Standard
29241 These are the colors allocated to specific elements in 
29242 \begin_inset Info
29243 type  "menu"
29244 arg   "dialog-show prefs"
29245 \end_inset
29246
29247 :
29248 \end_layout
29249
29250 \begin_layout Description
29251 added_space Added space color
29252 \end_layout
29253
29254 \begin_layout Description
29255 addedtext Added text color
29256 \end_layout
29257
29258 \begin_layout Description
29259 appendix Appendix marker color
29260 \end_layout
29261
29262 \begin_layout Description
29263 background Background color
29264 \end_layout
29265
29266 \begin_layout Description
29267 bottomarea Bottom area color
29268 \end_layout
29269
29270 \begin_layout Description
29271 branchlabel Label color for branches
29272 \end_layout
29273
29274 \begin_layout Description
29275 buttonbg Color used for button background
29276 \end_layout
29277
29278 \begin_layout Description
29279 buttonframe Color for inset button frames
29280 \end_layout
29281
29282 \begin_layout Description
29283 buttonhoverbg Color used for button background under focus
29284 \end_layout
29285
29286 \begin_layout Description
29287 changebar Changebar color
29288 \end_layout
29289
29290 \begin_layout Description
29291 changedtextauthor1 Changed text color author 1
29292 \end_layout
29293
29294 \begin_layout Description
29295 changedtextauthor2 Changed text color author 2
29296 \end_layout
29297
29298 \begin_layout Description
29299 changedtextauthor3 Changed text color author 3
29300 \end_layout
29301
29302 \begin_layout Description
29303 changedtextauthor4 Changed text color author 4
29304 \end_layout
29305
29306 \begin_layout Description
29307 changedtextauthor5 Changed text color author 5
29308 \end_layout
29309
29310 \begin_layout Description
29311 collapsible Collapsible insets text color
29312 \end_layout
29313
29314 \begin_layout Description
29315 collapsibleframe Collapsible insets framecolor
29316 \end_layout
29317
29318 \begin_layout Description
29319 command Text color for command insets
29320 \end_layout
29321
29322 \begin_layout Description
29323 commandbg Background color for command insets
29324 \end_layout
29325
29326 \begin_layout Description
29327 commandframe Frame color for command insets
29328 \end_layout
29329
29330 \begin_layout Description
29331 comment Label color for comments
29332 \end_layout
29333
29334 \begin_layout Description
29335 commentbg Background color of comments
29336 \end_layout
29337
29338 \begin_layout Description
29339 cursor Cursor color
29340 \end_layout
29341
29342 \begin_layout Description
29343 deletedtext Deleted text color
29344 \end_layout
29345
29346 \begin_layout Description
29347 deletedtextmodifier Deleted text modifying color
29348 \end_layout
29349
29350 \begin_layout Description
29351 depthbar Color for the depth bars in the margin
29352 \end_layout
29353
29354 \begin_layout Description
29355 eolmarker End of line marker color
29356 \end_layout
29357
29358 \begin_layout Description
29359 error Color of the \SpecialChar LaTeX
29360  error box
29361 \end_layout
29362
29363 \begin_layout Description
29364 footlabel Label color for footnotes
29365 \end_layout
29366
29367 \begin_layout Description
29368 foreground Foreground color
29369 \end_layout
29370
29371 \begin_layout Description
29372 graphicsbg Graphics inset background color
29373 \end_layout
29374
29375 \begin_layout Description
29376 greyedoutbg Background color of greyedout inset
29377 \end_layout
29378
29379 \begin_layout Description
29380 greyedoutlabel Label color for greyedout insets
29381 \end_layout
29382
29383 \begin_layout Description
29384 greyedouttext Color for greyedout inset text
29385 \end_layout
29386
29387 \begin_layout Description
29388 indexlabel Label color for index insets
29389 \end_layout
29390
29391 \begin_layout Description
29392 inlinecompletion Inline completion color
29393 \end_layout
29394
29395 \begin_layout Description
29396 insetbg Inset marker background color
29397 \end_layout
29398
29399 \begin_layout Description
29400 insetframe Inset marker frame color
29401 \end_layout
29402
29403 \begin_layout Description
29404 language Color for marking foreign language words
29405 \end_layout
29406
29407 \begin_layout Description
29408 latex Text color in \SpecialChar LaTeX
29409  mode
29410 \end_layout
29411
29412 \begin_layout Description
29413 listingsbg Background color of listings inset
29414 \end_layout
29415
29416 \begin_layout Description
29417 marginlabel Label color for margin notes
29418 \end_layout
29419
29420 \begin_layout Description
29421 math Math inset text color
29422 \end_layout
29423
29424 \begin_layout Description
29425 mathbg Math inset background color
29426 \end_layout
29427
29428 \begin_layout Description
29429 mathcorners Math inset frame color not under focus
29430 \end_layout
29431
29432 \begin_layout Description
29433 mathframe Math inset frame color under focus
29434 \end_layout
29435
29436 \begin_layout Description
29437 mathline Math line color
29438 \end_layout
29439
29440 \begin_layout Description
29441 mathmacrobg Macro math inset background color
29442 \end_layout
29443
29444 \begin_layout Description
29445 mathmacroblend Macro math blended color
29446 \end_layout
29447
29448 \begin_layout Description
29449 mathmacroframe Macro math frame color
29450 \end_layout
29451
29452 \begin_layout Description
29453 mathmacrohoverbg Macro math inset background color hovered
29454 \end_layout
29455
29456 \begin_layout Description
29457 mathmacrolabel Macro math label color
29458 \end_layout
29459
29460 \begin_layout Description
29461 mathmacronewarg Macro template color for new parameters
29462 \end_layout
29463
29464 \begin_layout Description
29465 mathmacrooldarg Macro template color for old parameters
29466 \end_layout
29467
29468 \begin_layout Description
29469 newpage New page color
29470 \end_layout
29471
29472 \begin_layout Description
29473 nonunique_inlinecompletion Inline completion color for the non-unique part
29474 \end_layout
29475
29476 \begin_layout Description
29477 note Label color for notes
29478 \end_layout
29479
29480 \begin_layout Description
29481 notebg Background color of notes
29482 \end_layout
29483
29484 \begin_layout Description
29485 pagebreak Page break/line break color
29486 \end_layout
29487
29488 \begin_layout Description
29489 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29490 \end_layout
29491
29492 \begin_layout Description
29493 phantomtext Text color for phantom insets
29494 \end_layout
29495
29496 \begin_layout Description
29497 preview The color used for previews
29498 \end_layout
29499
29500 \begin_layout Description
29501 previewframe Preview frame color
29502 \end_layout
29503
29504 \begin_layout Description
29505 regexpframe Color for regexp frame
29506 \end_layout
29507
29508 \begin_layout Description
29509 scroll Color that indicates when a row can be scrolled 
29510 \end_layout
29511
29512 \begin_layout Description
29513 selection Background color of selected text
29514 \end_layout
29515
29516 \begin_layout Description
29517 selectiontext Foreground color of selected text
29518 \end_layout
29519
29520 \begin_layout Description
29521 shadedbg Background color of shaded box
29522 \end_layout
29523
29524 \begin_layout Description
29525 special Special chars text color
29526 \end_layout
29527
29528 \begin_layout Description
29529 tabularline Table line color
29530 \end_layout
29531
29532 \begin_layout Description
29533 tabularonoffline Table line color
29534 \end_layout
29535
29536 \begin_layout Description
29537 urllabel Label color for URL insets
29538 \end_layout
29539
29540 \begin_layout Description
29541 urltext Color for URL inset text
29542 \end_layout
29543
29544 \end_body
29545 \end_document