]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Extend and improve name list handling
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 528
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 fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \graphics default
61 \default_output_format pdf2
62 \output_sync 0
63 \bibtex_command default
64 \index_command default
65 \paperfontsize 12
66 \spacing single
67 \use_hyperref true
68 \pdf_title "LyX Configuration Manual"
69 \pdf_author "LyX Team"
70 \pdf_subject "LyX-documentation Customization"
71 \pdf_keywords "LyX, documentation, customization"
72 \pdf_bookmarks true
73 \pdf_bookmarksnumbered true
74 \pdf_bookmarksopen true
75 \pdf_bookmarksopenlevel 1
76 \pdf_breaklinks false
77 \pdf_pdfborder false
78 \pdf_colorlinks true
79 \pdf_backref false
80 \pdf_pdfusetitle false
81 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
82 \papersize default
83 \use_geometry false
84 \use_package amsmath 0
85 \use_package amssymb 0
86 \use_package cancel 0
87 \use_package esint 0
88 \use_package mathdots 1
89 \use_package mathtools 0
90 \use_package mhchem 0
91 \use_package stackrel 0
92 \use_package stmaryrd 0
93 \use_package undertilde 0
94 \cite_engine basic
95 \cite_engine_type default
96 \biblio_style plain
97 \use_bibtopic false
98 \use_indices false
99 \paperorientation portrait
100 \suppress_date false
101 \justification true
102 \use_refstyle 0
103 \notefontcolor #0000ff
104 \branch OutDated
105 \selected 0
106 \filename_suffix 0
107 \color #f5fae7
108 \end_branch
109 \index Index
110 \shortcut idx
111 \color #008000
112 \end_index
113 \secnumdepth 3
114 \tocdepth 3
115 \paragraph_separation indent
116 \paragraph_indentation default
117 \quotes_style english
118 \dynamic_quotes 0
119 \papercolumns 1
120 \papersides 2
121 \paperpagestyle headings
122 \tracking_changes true
123 \output_changes false
124 \html_math_output 0
125 \html_css_as_file 0
126 \html_be_strict true
127 \author -712698321 "Jürgen Spitzmüller"
128 \author 2089657418 "Usti"
129 \end_header
130
131 \begin_body
132
133 \begin_layout Title
134 Customizing \SpecialChar LyX
135 : Features for the Advanced User
136 \end_layout
137
138 \begin_layout Author
139 by the \SpecialChar LyX
140  Team
141 \begin_inset Foot
142 status collapsed
143
144 \begin_layout Plain Layout
145 \noindent
146 If you have comments or error corrections, please send them to the \SpecialChar LyX
147  Documentatio
148 n mailing list, 
149 \begin_inset CommandInset href
150 LatexCommand href
151 target "lyx-docs@lists.lyx.org"
152 type "mailto:"
153
154 \end_inset
155
156 .
157  Include 
158 \begin_inset Quotes eld
159 \end_inset
160
161 [Customization]
162 \begin_inset Quotes erd
163 \end_inset
164
165  in the subject header, and please cc the current maintainer of this file,
166  Richard Heck <rgheck@comcast.net>.
167 \end_layout
168
169 \end_inset
170
171
172 \begin_inset Newline newline
173 \end_inset
174
175
176 \begin_inset Newline newline
177 \end_inset
178
179 Version 2.2.x 
180 \end_layout
181
182 \begin_layout Standard
183 \begin_inset CommandInset toc
184 LatexCommand tableofcontents
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset Note Note
193 status open
194
195 \begin_layout Plain Layout
196 Please use change tracking when modifying this document.
197  This makes it easier for our translators to recognize things that have
198  been changed, and it helps the maintainer keep up-to-date with what's been
199  done.
200 \end_layout
201
202 \end_inset
203
204
205 \end_layout
206
207 \begin_layout Chapter
208 Introduction
209 \end_layout
210
211 \begin_layout Standard
212 This manual covers the customization features present in \SpecialChar LyX
213 .
214  In it, we discuss issues like keyboard shortcuts, screen previewing options,
215  printer options, sending commands to \SpecialChar LyX
216  via the \SpecialChar LyX
217  Server, internationalization,
218  installing new \SpecialChar LaTeX
219  classes and \SpecialChar LyX
220  layouts, etc.
221  We can't possibly hope to touch on everything you can change—our developers
222  add new features faster than we can document them—but we will explain the
223  most common customizations and hopefully point you in the right direction
224  for some of the more obscure ones.
225 \end_layout
226
227 \begin_layout Standard
228 \begin_inset Branch OutDated
229 inverted 0
230 status collapsed
231
232 \begin_layout Standard
233 Information from previous versions of this document that now seems to be
234  outdated is contained in the OutDated branch of this document.
235  By default, this information will not appear in the \SpecialChar LaTeX
236  output.
237 \end_layout
238
239 \end_inset
240
241
242 \end_layout
243
244 \begin_layout Chapter
245 \SpecialChar LyX
246  configuration files
247 \end_layout
248
249 \begin_layout Standard
250 This chapter aims to help you to find your way through the \SpecialChar LyX
251  configuration
252  files.
253  Before continuing to read this chapter, you should find out where your
254  \SpecialChar LyX
255  library and user directories are by using 
256 \begin_inset Flex Noun
257 status collapsed
258
259 \begin_layout Plain Layout
260 Help\SpecialChar menuseparator
261 About
262 \begin_inset space ~
263 \end_inset
264
265 LyX
266 \end_layout
267
268 \end_inset
269
270 .
271  The library directory is the place where \SpecialChar LyX
272  places its system-wide configuration
273  files; the user directory is where you can place your modified versions.
274  We will call the former 
275 \begin_inset Flex Code
276 status collapsed
277
278 \begin_layout Plain Layout
279 LyXDir
280 \end_layout
281
282 \end_inset
283
284  and the latter 
285 \begin_inset Flex Noun
286 status collapsed
287
288 \begin_layout Plain Layout
289 UserDir
290 \end_layout
291
292 \end_inset
293
294  in the remainder of this document.
295  
296 \end_layout
297
298 \begin_layout Section
299 What's in 
300 \begin_inset Flex Code
301 status collapsed
302
303 \begin_layout Plain Layout
304 LyXDir
305 \end_layout
306
307 \end_inset
308
309 ?
310 \end_layout
311
312 \begin_layout Standard
313 \begin_inset Flex Code
314 status collapsed
315
316 \begin_layout Plain Layout
317 LyXDir
318 \end_layout
319
320 \end_inset
321
322  and its sub-directories contain a number of files and that can be used
323  to customize \SpecialChar LyX
324 's behavior.
325  You can change many of these files from within \SpecialChar LyX
326  itself through the 
327 \begin_inset Flex Noun
328 status collapsed
329
330 \begin_layout Plain Layout
331 Tools\SpecialChar menuseparator
332 Preferences
333 \end_layout
334
335 \end_inset
336
337  dialog.
338  Most customization that you will want to do in \SpecialChar LyX
339  is possible through this
340  dialog.
341  However, many other inner aspects of \SpecialChar LyX
342  can be customized by modifying the
343  files in 
344 \begin_inset Flex Code
345 status collapsed
346
347 \begin_layout Plain Layout
348 LyXDir
349 \end_layout
350
351 \end_inset
352
353 .
354  These files fall in different categories, described in the following subsection
355 s.
356 \end_layout
357
358 \begin_layout Subsection
359 Automatically generated files
360 \end_layout
361
362 \begin_layout Standard
363 The files, which are to be found in 
364 \begin_inset Flex Noun
365 status collapsed
366
367 \begin_layout Plain Layout
368 UserDir
369 \end_layout
370
371 \end_inset
372
373 , are generated when you configure \SpecialChar LyX
374 .
375  They contain various default values that are guessed by inspection.
376  In general, it is not a good idea to modify them, since they might be overwritt
377 en at any time.
378 \end_layout
379
380 \begin_layout Labeling
381 \labelwidthstring 00.00.0000
382 \begin_inset Flex Code
383 status collapsed
384
385 \begin_layout Plain Layout
386 lyxrc.defaults
387 \end_layout
388
389 \end_inset
390
391  contains defaults for various commands.
392 \end_layout
393
394 \begin_layout Labeling
395 \labelwidthstring 00.00.0000
396 \begin_inset Flex Code
397 status collapsed
398
399 \begin_layout Plain Layout
400 packages.lst
401 \end_layout
402
403 \end_inset
404
405  contains the list of packages that have been recognized by \SpecialChar LyX
406 .
407  It is currently unused by the \SpecialChar LyX
408  program itself, but the information extracted,
409  and more, is made available with 
410 \begin_inset Flex Noun
411 status collapsed
412
413 \begin_layout Plain Layout
414 Help\SpecialChar menuseparator
415 \SpecialChar LaTeX
416
417 \begin_inset space ~
418 \end_inset
419
420 Configuration
421 \end_layout
422
423 \end_inset
424
425 .
426 \end_layout
427
428 \begin_layout Labeling
429 \labelwidthstring 00.00.0000
430 \begin_inset Flex Code
431 status collapsed
432
433 \begin_layout Plain Layout
434 textclass.lst
435 \end_layout
436
437 \end_inset
438
439  the list of text classes that have been found in your 
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 layout/
445 \end_layout
446
447 \end_inset
448
449  directories, along with the associated \SpecialChar LaTeX
450  document class and their description.
451 \end_layout
452
453 \begin_layout Labeling
454 \labelwidthstring 00.00.0000
455 \begin_inset Flex Code
456 status collapsed
457
458 \begin_layout Plain Layout
459 lyxmodules.lst
460 \end_layout
461
462 \end_inset
463
464  the list of layout modules found in your 
465 \begin_inset Flex Code
466 status collapsed
467
468 \begin_layout Plain Layout
469 layout/
470 \end_layout
471
472 \end_inset
473
474  directories
475 \end_layout
476
477 \begin_layout Labeling
478 \labelwidthstring 00.00.0000
479 \begin_inset Flex Code
480 status collapsed
481
482 \begin_layout Plain Layout
483 *files.lst
484 \end_layout
485
486 \end_inset
487
488  lists of various sorts of \SpecialChar LaTeX
489 -related files found on your system
490 \end_layout
491
492 \begin_layout Labeling
493 \labelwidthstring 00.00.0000
494 \begin_inset Flex Code
495 status collapsed
496
497 \begin_layout Plain Layout
498 doc/\SpecialChar LaTeX
499 Config.lyx
500 \end_layout
501
502 \end_inset
503
504  is automatically generated during configuration from the file 
505 \begin_inset Flex Code
506 status collapsed
507
508 \begin_layout Plain Layout
509 \SpecialChar LaTeX
510 Config.lyx.in
511 \end_layout
512
513 \end_inset
514
515 .
516  It contains information on your \SpecialChar LaTeX
517  configuration.
518 \end_layout
519
520 \begin_layout Subsection
521 Directories
522 \end_layout
523
524 \begin_layout Standard
525 These directories are duplicated between 
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 LyXDir
531 \end_layout
532
533 \end_inset
534
535  and 
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 UserDir
541 \end_layout
542
543 \end_inset
544
545 .
546  If a particular files exists in both places, the one in 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 UserDir
552 \end_layout
553
554 \end_inset
555
556  will be used.
557 \end_layout
558
559 \begin_layout Labeling
560 \labelwidthstring 00.00.0000
561 \begin_inset Flex Code
562 status collapsed
563
564 \begin_layout Plain Layout
565 bind/
566 \end_layout
567
568 \end_inset
569
570  this directory contains files with the extension 
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 .bind
576 \end_layout
577
578 \end_inset
579
580  that define the keybindings used in \SpecialChar LyX
581 .
582  If there exists an internationalized version of the bind file named 
583 \begin_inset Flex Code
584 status collapsed
585
586 \begin_layout Plain Layout
587 $LANG_xxx.bind
588 \end_layout
589
590 \end_inset
591
592 , that will be used first.
593 \change_inserted -712698321 1483535138
594
595 \end_layout
596
597 \begin_layout Labeling
598 \labelwidthstring 00.00.0000
599
600 \change_inserted -712698321 1483874001
601 \begin_inset Flex Code
602 status collapsed
603
604 \begin_layout Plain Layout
605
606 \change_inserted -712698321 1483535144
607 citeengines/
608 \end_layout
609
610 \end_inset
611
612  contains files with the extension 
613 \begin_inset Flex Code
614 status collapsed
615
616 \begin_layout Plain Layout
617
618 \change_inserted -712698321 1483869840
619 .citeengine
620 \change_unchanged
621
622 \end_layout
623
624 \end_inset
625
626  which define the diverse citation possibilities (natbib, biblatex etc.).
627  See 
628 \begin_inset CommandInset ref
629 LatexCommand ref
630 reference "subsec:Cite-Engine-Files"
631 plural "false"
632 caps "false"
633 noprefix "false"
634
635 \end_inset
636
637  for details.
638 \change_unchanged
639
640 \end_layout
641
642 \begin_layout Labeling
643 \labelwidthstring 00.00.0000
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 clipart/
649 \end_layout
650
651 \end_inset
652
653  contains graphics files that can be included in documents.
654  
655 \end_layout
656
657 \begin_layout Labeling
658 \labelwidthstring 00.00.0000
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663 doc/
664 \end_layout
665
666 \end_inset
667
668  contains \SpecialChar LyX
669  documentation files (including the one you are currently reading).
670  The file 
671 \begin_inset Flex Code
672 status collapsed
673
674 \begin_layout Plain Layout
675 \SpecialChar LaTeX
676 Config.lyx
677 \end_layout
678
679 \end_inset
680
681  deserves special attention, as noted above.
682  The internationalized help docs are in subdirectories 
683 \begin_inset Flex Code
684 status collapsed
685
686 \begin_layout Plain Layout
687 doc/xx
688 \end_layout
689
690 \end_inset
691
692  where 
693 \begin_inset Quotes eld
694 \end_inset
695
696 xx
697 \begin_inset Quotes erd
698 \end_inset
699
700  is the ISO language code.
701  See 
702 \begin_inset CommandInset ref
703 LatexCommand ref
704 reference "cha:Internationalizing-LyX"
705
706 \end_inset
707
708  for details.
709 \end_layout
710
711 \begin_layout Labeling
712 \labelwidthstring 00.00.0000
713 \begin_inset Flex Code
714 status collapsed
715
716 \begin_layout Plain Layout
717 examples/
718 \end_layout
719
720 \end_inset
721
722  contains example files that explain how to use some features.
723  In the file browser, press the 
724 \begin_inset Flex Noun
725 status collapsed
726
727 \begin_layout Plain Layout
728 Examples
729 \end_layout
730
731 \end_inset
732
733  button to get there.
734 \end_layout
735
736 \begin_layout Labeling
737 \labelwidthstring 00.00.0000
738 \begin_inset Flex Code
739 status collapsed
740
741 \begin_layout Plain Layout
742 images/
743 \end_layout
744
745 \end_inset
746
747  contains image files that are used by the 
748 \begin_inset Flex Noun
749 status collapsed
750
751 \begin_layout Plain Layout
752 Document
753 \end_layout
754
755 \end_inset
756
757  dialog.
758  In addition, it also contains the individual icons used in the toolbar
759  and the banners that can be shown when \SpecialChar LyX
760  is launched.
761 \end_layout
762
763 \begin_layout Labeling
764 \labelwidthstring 00.00.0000
765 \begin_inset Flex Code
766 status collapsed
767
768 \begin_layout Plain Layout
769 kbd/
770 \end_layout
771
772 \end_inset
773
774  contains keyboard keymapping files.
775  See 
776 \begin_inset CommandInset ref
777 LatexCommand ref
778 reference "sec:International-Keymap-Stuff"
779
780 \end_inset
781
782  for details.
783 \end_layout
784
785 \begin_layout Labeling
786 \labelwidthstring 00.00.0000
787 \begin_inset Flex Code
788 status collapsed
789
790 \begin_layout Plain Layout
791 layouts/
792 \end_layout
793
794 \end_inset
795
796  contains the text class and module files described in 
797 \begin_inset CommandInset ref
798 LatexCommand ref
799 reference "cha:Installing-New-Document"
800
801 \end_inset
802
803 .
804 \end_layout
805
806 \begin_layout Labeling
807 \labelwidthstring 00.00.0000
808 \begin_inset Flex Code
809 status collapsed
810
811 \begin_layout Plain Layout
812 lyx2lyx
813 \end_layout
814
815 \end_inset
816
817  contains the 
818 \begin_inset Flex Code
819 status collapsed
820
821 \begin_layout Plain Layout
822 lyx2lyx
823 \end_layout
824
825 \end_inset
826
827  Python scripts used to convert between \SpecialChar LyX
828  versions.
829  These can be run from the command line if, say, you want to batch-convert
830  files.
831 \end_layout
832
833 \begin_layout Labeling
834 \labelwidthstring 00.00.0000
835 \begin_inset Flex Code
836 status collapsed
837
838 \begin_layout Plain Layout
839 scripts/
840 \end_layout
841
842 \end_inset
843
844  contains some files that demonstrate the capabilities of the 
845 \begin_inset Flex Noun
846 status collapsed
847
848 \begin_layout Plain Layout
849 External
850 \begin_inset space ~
851 \end_inset
852
853 Template
854 \end_layout
855
856 \end_inset
857
858  feature.
859  Also contains some scripts used by \SpecialChar LyX
860  itself.
861 \end_layout
862
863 \begin_layout Labeling
864 \labelwidthstring 00.00.0000
865 \begin_inset Flex Code
866 status collapsed
867
868 \begin_layout Plain Layout
869 templates/
870 \end_layout
871
872 \end_inset
873
874  contains the standard \SpecialChar LyX
875  template files described in 
876 \begin_inset CommandInset ref
877 LatexCommand ref
878 reference "subsec:Creating-Templates"
879
880 \end_inset
881
882 .
883 \end_layout
884
885 \begin_layout Labeling
886 \labelwidthstring 00.00.0000
887 \begin_inset Flex Code
888 status collapsed
889
890 \begin_layout Plain Layout
891 ui/
892 \end_layout
893
894 \end_inset
895
896  contains files with the extension 
897 \begin_inset Flex Code
898 status collapsed
899
900 \begin_layout Plain Layout
901 .ui
902 \end_layout
903
904 \end_inset
905
906  that define the user interface to \SpecialChar LyX
907 .
908  That is, the files define which items appear in which menus and the items
909  appearing on the toolbar.
910 \end_layout
911
912 \begin_layout Subsection
913 Files you don't want to modify
914 \end_layout
915
916 \begin_layout Standard
917 These files are used internally by \SpecialChar LyX
918  and you generally do not need to modify
919  them unless you are a developer.
920 \end_layout
921
922 \begin_layout Labeling
923 \labelwidthstring 00.00.0000
924 \begin_inset Flex Code
925 status collapsed
926
927 \begin_layout Plain Layout
928 CREDITS
929 \end_layout
930
931 \end_inset
932
933  this file contains the list of \SpecialChar LyX
934  developers.
935  The contents are displayed with the menu entry 
936 \begin_inset Flex Noun
937 status collapsed
938
939 \begin_layout Plain Layout
940 Help\SpecialChar menuseparator
941 About
942 \begin_inset space ~
943 \end_inset
944
945 LyX
946 \end_layout
947
948 \end_inset
949
950 .
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 chkconfig.ltx
960 \end_layout
961
962 \end_inset
963
964  this is a \SpecialChar LaTeX
965  script used during the configuration process.
966  Do not run directly.
967 \end_layout
968
969 \begin_layout Labeling
970 \labelwidthstring 00.00.0000
971 \begin_inset Flex Code
972 status collapsed
973
974 \begin_layout Plain Layout
975 configure.py
976 \end_layout
977
978 \end_inset
979
980  this is a Python script that is used to re-configure \SpecialChar LyX
981 .
982  It creates configuration files in the directory it was run from.
983 \end_layout
984
985 \begin_layout Subsection
986 Other files needing a line or two
987 \end_layout
988
989 \begin_layout Labeling
990 \labelwidthstring 00.00.0000
991 \begin_inset Flex Code
992 status collapsed
993
994 \begin_layout Plain Layout
995 encodings
996 \end_layout
997
998 \end_inset
999
1000  this contains tables describing how different character encodings can be
1001  mapped to Unicode
1002 \end_layout
1003
1004 \begin_layout Labeling
1005 \labelwidthstring 00.00.0000
1006 \begin_inset Flex Code
1007 status collapsed
1008
1009 \begin_layout Plain Layout
1010 external_templates
1011 \end_layout
1012
1013 \end_inset
1014
1015  this file contains the templates available to the new 
1016 \begin_inset Flex Noun
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 External
1021 \begin_inset space ~
1022 \end_inset
1023
1024 Template
1025 \end_layout
1026
1027 \end_inset
1028
1029  feature, see 
1030 \begin_inset CommandInset ref
1031 LatexCommand ref
1032 reference "chap:Including-External-Material"
1033
1034 \end_inset
1035
1036 .
1037 \end_layout
1038
1039 \begin_layout Labeling
1040 \labelwidthstring 00.00.0000
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 languages
1046 \end_layout
1047
1048 \end_inset
1049
1050  this file contains a list of all the languages currently supported by \SpecialChar LyX
1051 .
1052 \end_layout
1053
1054 \begin_layout Labeling
1055 \labelwidthstring 00.00.0000
1056 \begin_inset Flex Code
1057 status collapsed
1058
1059 \begin_layout Plain Layout
1060 latexfonts
1061 \end_layout
1062
1063 \end_inset
1064
1065  contains information about the supported fonts.
1066 \end_layout
1067
1068 \begin_layout Labeling
1069 \labelwidthstring 00.00.0000
1070 \begin_inset Flex Code
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074 layouttranslations
1075 \end_layout
1076
1077 \end_inset
1078
1079  this file contains translations for internationalized paragraph styles
1080  (see 
1081 \begin_inset CommandInset ref
1082 LatexCommand ref
1083 reference "subsec:I18n"
1084
1085 \end_inset
1086
1087 ).
1088 \end_layout
1089
1090 \begin_layout Labeling
1091 \labelwidthstring 00.00.0000
1092 \begin_inset Flex Code
1093 status collapsed
1094
1095 \begin_layout Plain Layout
1096 unicodesymbols
1097 \end_layout
1098
1099 \end_inset
1100
1101  this file contains information about unicode-encoded glyphs and the way
1102  they are supported by \SpecialChar LyX
1103  via \SpecialChar LaTeX
1104 .
1105 \end_layout
1106
1107 \begin_layout Section
1108 Your local configuration directory
1109 \end_layout
1110
1111 \begin_layout Standard
1112 Even if you are using \SpecialChar LyX
1113  as an unprivileged user, you might want to change
1114  \SpecialChar LyX
1115  configuration for your own use.
1116  The 
1117 \begin_inset Flex Code
1118 status collapsed
1119
1120 \begin_layout Plain Layout
1121 UserDir
1122 \end_layout
1123
1124 \end_inset
1125
1126  directory contains all your personal configuration files.
1127  This is the directory described as 
1128 \begin_inset Quotes eld
1129 \end_inset
1130
1131 user directory
1132 \begin_inset Quotes erd
1133 \end_inset
1134
1135  in 
1136 \begin_inset Flex Noun
1137 status collapsed
1138
1139 \begin_layout Plain Layout
1140 Help\SpecialChar menuseparator
1141 About
1142 \begin_inset space ~
1143 \end_inset
1144
1145 LyX
1146 \end_layout
1147
1148 \end_inset
1149
1150 .
1151  This directory is used as a mirror of 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 LyXDir
1157 \end_layout
1158
1159 \end_inset
1160
1161 , which means that every file in 
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 UserDir
1167 \end_layout
1168
1169 \end_inset
1170
1171  is a replacement for the corresponding file in 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 LyXDir
1177 \end_layout
1178
1179 \end_inset
1180
1181 .
1182  Any configuration file described in the above sections can be placed either
1183  in the system-wide directory, in which case it will affect all users, or
1184  in your local directory for your own use.
1185 \end_layout
1186
1187 \begin_layout Standard
1188 To make things clearer, let's provide a few examples:
1189 \end_layout
1190
1191 \begin_layout Itemize
1192 The preferences set in the 
1193 \begin_inset Flex Noun
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 Tools\SpecialChar menuseparator
1198 Preferences
1199 \end_layout
1200
1201 \end_inset
1202
1203  dialog are saved to a file 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 preferences
1209 \end_layout
1210
1211 \end_inset
1212
1213  in 
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 UserDir
1219 \end_layout
1220
1221 \end_inset
1222
1223 .
1224 \end_layout
1225
1226 \begin_layout Itemize
1227 When you reconfigure using 
1228 \begin_inset Flex Noun
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 Tools\SpecialChar menuseparator
1233 Reconfigure
1234 \end_layout
1235
1236 \end_inset
1237
1238 , \SpecialChar LyX
1239  runs the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 configure.py
1245 \end_layout
1246
1247 \end_inset
1248
1249  script, and the resulting files are written in your local configuration
1250  directory.
1251  This means that any additional text class file that you might have added
1252  in 
1253 \begin_inset Flex Code
1254 status collapsed
1255
1256 \begin_layout Plain Layout
1257 UserDir/layouts
1258 \end_layout
1259
1260 \end_inset
1261
1262  will be added to the list of classes in the 
1263 \begin_inset Flex Noun
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 Document\SpecialChar menuseparator
1268 Settings
1269 \end_layout
1270
1271 \end_inset
1272
1273  dialog.
1274 \end_layout
1275
1276 \begin_layout Itemize
1277 If you get some updated documentation from \SpecialChar LyX
1278  ftp site and cannot install
1279  it because you do not have sysadmin rights on your system, you can just
1280  copy the files in 
1281 \begin_inset Flex Code
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 UserDir/doc/
1286 \end_layout
1287
1288 \end_inset
1289
1290  and the items in the 
1291 \begin_inset Flex Noun
1292 status collapsed
1293
1294 \begin_layout Plain Layout
1295 Help
1296 \end_layout
1297
1298 \end_inset
1299
1300  menu will open them!
1301 \end_layout
1302
1303 \begin_layout Section
1304 Running \SpecialChar LyX
1305  with multiple configurations
1306 \end_layout
1307
1308 \begin_layout Standard
1309 The configuration freedom of the local configuration directory may not suffice
1310  if you want to have more than one configuration at your disposal.
1311  For example, you may want to be use different key bindings or printer settings
1312  at different times.
1313  You can achieve this by having several such directories.
1314  You then specify which directory to use at run-time.
1315 \end_layout
1316
1317 \begin_layout Standard
1318 Invoking \SpecialChar LyX
1319  with the command line switch 
1320 \begin_inset Flex Code
1321 status collapsed
1322
1323 \begin_layout Plain Layout
1324 -userdir
1325 \end_layout
1326
1327 \end_inset
1328
1329  
1330 \emph on
1331 <some directory>
1332 \emph default
1333  instructs the program to read the configuration from that directory, and
1334  not from the default directory.
1335  (You can determine the default directory by running \SpecialChar LyX
1336  without the 
1337 \begin_inset Flex Code
1338 status collapsed
1339
1340 \begin_layout Plain Layout
1341 -userdir
1342 \end_layout
1343
1344 \end_inset
1345
1346  switch.) If the specified directory does not exist, \SpecialChar LyX
1347  offers to create it
1348  for you, just like it does for the default directory on the first time
1349  you run the program.
1350  You can modify the configuration options in this additional user directory
1351  exactly as you would for the default directory.
1352  These directories are completely independent (but read on).
1353  Note that setting the environment variable 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358 LYX_USERDIR_VER
1359 \end_layout
1360
1361 \end_inset
1362
1363  to some value has exactly the same effect.
1364 \end_layout
1365
1366 \begin_layout Standard
1367 Having several configurations also requires more maintenance: if you want
1368  to add a new layout to 
1369 \begin_inset Flex Code
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 NewUserDir/layouts
1374 \end_layout
1375
1376 \end_inset
1377
1378  which you want available from all your configurations, you must add it
1379  to each directory separately.
1380  You can avoid this with the following trick: after \SpecialChar LyX
1381  creates the additional
1382  directory, most of the subdirectories (see above) are empty.
1383  If you want the new configuration to mirror an existing one, replace the
1384  empty subdirectory with a symbolic link to the matching subdirectory in
1385  the existing configuration.
1386  Take care with the 
1387 \begin_inset Flex Code
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391 doc/
1392 \end_layout
1393
1394 \end_inset
1395
1396  subdirectory, however, since it contains a file written by the configuration
1397  script (also accessible through 
1398 \begin_inset Flex Noun
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402 Tools\SpecialChar menuseparator
1403 Reconfigure
1404 \end_layout
1405
1406 \end_inset
1407
1408 ) which is configuration-specific.
1409 \end_layout
1410
1411 \begin_layout Chapter
1412 The Preferences dialog
1413 \end_layout
1414
1415 \begin_layout Standard
1416 All options of the preferences dialog are described in the Appendix 
1417 \emph on
1418 The Preferences Dialog
1419 \emph default
1420  in the 
1421 \emph on
1422 User's Guide
1423 \emph default
1424 .
1425  For some options you might find here more details.
1426 \end_layout
1427
1428 \begin_layout Section
1429 Formats
1430 \begin_inset CommandInset label
1431 LatexCommand label
1432 name "sec:Formats"
1433
1434 \end_inset
1435
1436
1437 \end_layout
1438
1439 \begin_layout Standard
1440 The first step is to define your file formats if they are not already defined.
1441  To do so, open the 
1442 \begin_inset Flex Noun
1443 status collapsed
1444
1445 \begin_layout Plain Layout
1446 Tools\SpecialChar menuseparator
1447 Preferences
1448 \end_layout
1449
1450 \end_inset
1451
1452  dialog.
1453  Under 
1454 \begin_inset Flex Noun
1455 status collapsed
1456
1457 \begin_layout Plain Layout
1458 File Handling\SpecialChar menuseparator
1459 File formats
1460 \end_layout
1461
1462 \end_inset
1463
1464  press the 
1465 \begin_inset Flex Noun
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 New
1470 \end_layout
1471
1472 \end_inset
1473
1474  button to define your new format.
1475  The 
1476 \begin_inset Flex Noun
1477 status collapsed
1478
1479 \begin_layout Plain Layout
1480 Format
1481 \end_layout
1482
1483 \end_inset
1484
1485  field contains the name used to identify the format in the GUI.
1486  The 
1487 \begin_inset Flex Noun
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 Short Name
1492 \end_layout
1493
1494 \end_inset
1495
1496  is used to identify the format internally.
1497  You will also need to enter a file extension.
1498  These are all required.
1499  The optional 
1500 \begin_inset Flex Noun
1501 status collapsed
1502
1503 \begin_layout Plain Layout
1504 Shortcut
1505 \end_layout
1506
1507 \end_inset
1508
1509  field is used to provide a keyboard shortcut on the menus.
1510  (For example, pressing 
1511 \begin_inset Flex Noun
1512 status collapsed
1513
1514 \begin_layout Plain Layout
1515 Ctrl+D
1516 \end_layout
1517
1518 \end_inset
1519
1520  will 
1521 \begin_inset Flex Noun
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 Document\SpecialChar menuseparator
1526 View (Other Formats)\SpecialChar menuseparator
1527 DVI
1528 \end_layout
1529
1530 \end_inset
1531
1532 .) 
1533 \end_layout
1534
1535 \begin_layout Standard
1536 A Format can have a 
1537 \begin_inset Flex Noun
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 Viewer
1542 \end_layout
1543
1544 \end_inset
1545
1546  and an 
1547 \begin_inset Flex Noun
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 Editor
1552 \end_layout
1553
1554 \end_inset
1555
1556  associated with it.
1557  For example, you might want to use 
1558 \begin_inset Flex Noun
1559 status collapsed
1560
1561 \begin_layout Plain Layout
1562 Ghostview
1563 \end_layout
1564
1565 \end_inset
1566
1567  to view PostScript files.
1568  You can enter the command needed to start the program in the corresponding
1569  fields.
1570  In defining this command, you can use the four variables listed in the
1571  next section.
1572  The viewer is launched when you view an image in \SpecialChar LyX
1573  or use the 
1574 \begin_inset Flex Noun
1575 status collapsed
1576
1577 \begin_layout Plain Layout
1578 Document\SpecialChar menuseparator
1579 View
1580 \end_layout
1581
1582 \end_inset
1583
1584  menu.
1585  The editor is for example launched when you right-click on an image and
1586  choose 
1587 \begin_inset Flex Noun
1588 status collapsed
1589
1590 \begin_layout Plain Layout
1591 Edit externally
1592 \end_layout
1593
1594 \end_inset
1595
1596  in the appearing context menu.
1597 \end_layout
1598
1599 \begin_layout Standard
1600 The 
1601 \begin_inset Flex Noun
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 MIME
1606 \end_layout
1607
1608 \end_inset
1609
1610  type of a format is optional, but if it is specified, it must be unique
1611  across all formats.
1612  It is used to detect files of this format from the file contents.
1613  For some important file formats there is no MIME type officially registered
1614  with the 
1615 \begin_inset CommandInset href
1616 LatexCommand href
1617 name "IANA"
1618 target "http://www.iana.org/assignments/media-types/"
1619
1620 \end_inset
1621
1622 .
1623  Therefore \SpecialChar LyX
1624  uses the extended list of MIME types as specified by 
1625 \begin_inset CommandInset href
1626 LatexCommand href
1627 name "freedesktop.org"
1628 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1629
1630 \end_inset
1631
1632 .
1633 \end_layout
1634
1635 \begin_layout Standard
1636 The 
1637 \begin_inset Flex Noun
1638 status collapsed
1639
1640 \begin_layout Plain Layout
1641 Document format
1642 \end_layout
1643
1644 \end_inset
1645
1646  option tells \SpecialChar LyX
1647  that a format is suitable for document export.
1648  If this is set and if a suitable conversion route exists (see 
1649 \begin_inset CommandInset ref
1650 LatexCommand ref
1651 reference "sec:Converters"
1652
1653 \end_inset
1654
1655 ), the format will appear in the 
1656 \begin_inset Flex Noun
1657 status collapsed
1658
1659 \begin_layout Plain Layout
1660 File\SpecialChar menuseparator
1661 Export
1662 \end_layout
1663
1664 \end_inset
1665
1666  menu.
1667  The format will also appear in the 
1668 \begin_inset Flex Noun
1669 status collapsed
1670
1671 \begin_layout Plain Layout
1672 Document\SpecialChar menuseparator
1673 View
1674 \end_layout
1675
1676 \end_inset
1677
1678  menu if a viewer is specified for the format.
1679  Pure image formats, such as 
1680 \begin_inset Flex Code
1681 status collapsed
1682
1683 \begin_layout Plain Layout
1684 png
1685 \end_layout
1686
1687 \end_inset
1688
1689 , should not use this option.
1690  Formats that can both represent vector graphics and documents like 
1691 \begin_inset Flex Code
1692 status collapsed
1693
1694 \begin_layout Plain Layout
1695 pdf
1696 \end_layout
1697
1698 \end_inset
1699
1700  should use it.
1701 \end_layout
1702
1703 \begin_layout Standard
1704 The option 
1705 \begin_inset Flex Noun
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 Vector graphics format
1710 \end_layout
1711
1712 \end_inset
1713
1714  tells \SpecialChar LyX
1715  that a format can contain vector graphics.
1716  This information is used to determine the target format of included graphics
1717  for 
1718 \begin_inset Flex Noun
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 pdflatex
1723 \end_layout
1724
1725 \end_inset
1726
1727  export.
1728  Included graphics may need to be converted to either 
1729 \begin_inset Flex Noun
1730 status collapsed
1731
1732 \begin_layout Plain Layout
1733 pdf
1734 \end_layout
1735
1736 \end_inset
1737
1738
1739 \begin_inset Flex Noun
1740 status collapsed
1741
1742 \begin_layout Plain Layout
1743 png
1744 \end_layout
1745
1746 \end_inset
1747
1748 , or 
1749 \begin_inset Flex Noun
1750 status collapsed
1751
1752 \begin_layout Plain Layout
1753 jpg
1754 \end_layout
1755
1756 \end_inset
1757
1758 , since 
1759 \begin_inset Flex Noun
1760 status collapsed
1761
1762 \begin_layout Plain Layout
1763 pdflatex
1764 \end_layout
1765
1766 \end_inset
1767
1768  cannot handle other image formats.
1769  If an included graphic is not already in 
1770 \begin_inset Flex Noun
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 pdf
1775 \end_layout
1776
1777 \end_inset
1778
1779
1780 \begin_inset Flex Noun
1781 status collapsed
1782
1783 \begin_layout Plain Layout
1784 png
1785 \end_layout
1786
1787 \end_inset
1788
1789 , or 
1790 \begin_inset Flex Noun
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 jpg
1795 \end_layout
1796
1797 \end_inset
1798
1799  format, it is converted to 
1800 \begin_inset Flex Noun
1801 status collapsed
1802
1803 \begin_layout Plain Layout
1804 pdf
1805 \end_layout
1806
1807 \end_inset
1808
1809  if the vector format option is set, and otherwise to 
1810 \begin_inset Flex Noun
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814 png
1815 \end_layout
1816
1817 \end_inset
1818
1819 .
1820 \end_layout
1821
1822 \begin_layout Section
1823 Copiers
1824 \end_layout
1825
1826 \begin_layout Standard
1827 Since all conversions from one format to another take place in \SpecialChar LyX
1828 's temporary
1829  directory, it is sometimes necessary to modify a file before copying it
1830  to the temporary directory in order that the conversion may be performed.
1831 \begin_inset Foot
1832 status collapsed
1833
1834 \begin_layout Plain Layout
1835 For example, the file may refer to other files—images, for example—using
1836  relative file names, and these may become invalid when the file is copied
1837  to the temporary directory.
1838 \end_layout
1839
1840 \end_inset
1841
1842  This is done by a Copier: It copies a file to (or from) the temporary directory
1843  and may modify it in the process.
1844 \end_layout
1845
1846 \begin_layout Standard
1847 The definitions of the copiers may use eight variables:
1848 \end_layout
1849
1850 \begin_layout Labeling
1851 \labelwidthstring 00.00.0000
1852 \begin_inset Flex Code
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 $$s
1857 \end_layout
1858
1859 \end_inset
1860
1861  The \SpecialChar LyX
1862  system directory (e.
1863 \begin_inset space \thinspace{}
1864 \end_inset
1865
1866 g.
1867 \begin_inset space \space{}
1868 \end_inset
1869
1870
1871 \begin_inset Flex Noun
1872 status collapsed
1873
1874 \begin_layout Plain Layout
1875 /usr/share/lyx
1876 \end_layout
1877
1878 \end_inset
1879
1880 ).
1881 \end_layout
1882
1883 \begin_layout Labeling
1884 \labelwidthstring 00.00.0000
1885 \begin_inset Flex Code
1886 status collapsed
1887
1888 \begin_layout Plain Layout
1889 $$i
1890 \end_layout
1891
1892 \end_inset
1893
1894  The input file
1895 \end_layout
1896
1897 \begin_layout Labeling
1898 \labelwidthstring 00.00.0000
1899 \begin_inset Flex Code
1900 status collapsed
1901
1902 \begin_layout Plain Layout
1903 $$o
1904 \end_layout
1905
1906 \end_inset
1907
1908  The output file
1909 \end_layout
1910
1911 \begin_layout Labeling
1912 \labelwidthstring 00.00.0000
1913 \begin_inset Flex Code
1914 status collapsed
1915
1916 \begin_layout Plain Layout
1917 $$b
1918 \end_layout
1919
1920 \end_inset
1921
1922  The base name (without filename extension) in the \SpecialChar LyX
1923  temporary directory
1924 \end_layout
1925
1926 \begin_layout Labeling
1927 \labelwidthstring 00.00.0000
1928 \begin_inset Flex Code
1929 status collapsed
1930
1931 \begin_layout Plain Layout
1932 $$p
1933 \end_layout
1934
1935 \end_inset
1936
1937  The full directory path of the \SpecialChar LyX
1938  temporary directory
1939 \end_layout
1940
1941 \begin_layout Labeling
1942 \labelwidthstring 00.00.0000
1943 \begin_inset Flex Code
1944 status collapsed
1945
1946 \begin_layout Plain Layout
1947 $$r
1948 \end_layout
1949
1950 \end_inset
1951
1952  The full pathname to the original \SpecialChar LyX
1953  file being processed
1954 \end_layout
1955
1956 \begin_layout Labeling
1957 \labelwidthstring 00.00.0000
1958 \begin_inset Flex Code
1959 status collapsed
1960
1961 \begin_layout Plain Layout
1962 $$f
1963 \end_layout
1964
1965 \end_inset
1966
1967  The filename (without any directory path) of the \SpecialChar LyX
1968  file.
1969 \end_layout
1970
1971 \begin_layout Labeling
1972 \labelwidthstring 00.00.0000
1973 \begin_inset Flex Code
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 $$l
1978 \end_layout
1979
1980 \end_inset
1981
1982  The `\SpecialChar LaTeX
1983  name'
1984 \end_layout
1985
1986 \begin_layout Standard
1987 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1988 's 
1989 \series bold
1990
1991 \backslash
1992 include
1993 \series default
1994  command.
1995  It is relevant only when exporting files suitable for such inclusion.
1996 \end_layout
1997
1998 \begin_layout Standard
1999 Copiers can be used to do almost anything with output files.
2000  For example, suppose you want generated pdf files to be copied to a special
2001  directory, 
2002 \begin_inset Flex Code
2003 status collapsed
2004
2005 \begin_layout Plain Layout
2006 /home/you/pdf/
2007 \end_layout
2008
2009 \end_inset
2010
2011 .
2012  Then you could write a shell script such as this one:
2013 \end_layout
2014
2015 \begin_layout Standard
2016 \begin_inset listings
2017 inline false
2018 status open
2019
2020 \begin_layout Plain Layout
2021
2022 #!/bin/bash
2023 \end_layout
2024
2025 \begin_layout Plain Layout
2026
2027 FROMFILE=$1
2028 \end_layout
2029
2030 \begin_layout Plain Layout
2031
2032 TOFILE=`basename $2`
2033 \end_layout
2034
2035 \begin_layout Plain Layout
2036
2037 cp $FROMFILE /home/you/pdf/$TOFILE
2038 \end_layout
2039
2040 \end_inset
2041
2042 Save it in your local \SpecialChar LyX
2043  directory—say, 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048 /home/you/.lyx/scripts/pdfcopier.sh
2049 \end_layout
2050
2051 \end_inset
2052
2053 —and make it executable, if you need to do so on your platform.
2054  Then, in the 
2055 \begin_inset Flex Noun
2056 status collapsed
2057
2058 \begin_layout Plain Layout
2059 Tools\SpecialChar menuseparator
2060 Preferences
2061 \end_layout
2062
2063 \end_inset
2064
2065  dialog, select under 
2066 \begin_inset Flex Noun
2067 status collapsed
2068
2069 \begin_layout Plain Layout
2070 File Handling\SpecialChar menuseparator
2071 File formats
2072 \end_layout
2073
2074 \end_inset
2075
2076  the 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 PDF(pdflatex)
2082 \end_layout
2083
2084 \end_inset
2085
2086  format—or one of the other pdf formats—and enter 
2087 \begin_inset Flex Code
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091 pdfcopier.sh $$i $$o
2092 \end_layout
2093
2094 \end_inset
2095
2096  into the 
2097 \begin_inset Flex Noun
2098 status collapsed
2099
2100 \begin_layout Plain Layout
2101 Copier
2102 \end_layout
2103
2104 \end_inset
2105
2106  field.
2107  
2108 \end_layout
2109
2110 \begin_layout Standard
2111 Copiers are used by \SpecialChar LyX
2112  in various of its own conversions.
2113  For example, if appropriate programs are found, \SpecialChar LyX
2114  will automatically install
2115  copiers for the 
2116 \begin_inset Flex Noun
2117 status collapsed
2118
2119 \begin_layout Plain Layout
2120 HTML
2121 \end_layout
2122
2123 \end_inset
2124
2125  and 
2126 \begin_inset Flex Noun
2127 status collapsed
2128
2129 \begin_layout Plain Layout
2130 HTML
2131 \begin_inset space ~
2132 \end_inset
2133
2134 (MS Word)
2135 \end_layout
2136
2137 \end_inset
2138
2139  formats.
2140  When these formats are exported, the copier sees that not just the main
2141  HTML file but various associated files (style files, images, etc.) are also
2142  copied.
2143  All these files are written to a subdirectory of the directory in which
2144  the original \SpecialChar LyX
2145  file was found.
2146 \begin_inset Foot
2147 status collapsed
2148
2149 \begin_layout Plain Layout
2150 This copier can be customized.
2151  The optional 
2152 \begin_inset Quotes eld
2153 \end_inset
2154
2155 -e
2156 \begin_inset Quotes erd
2157 \end_inset
2158
2159  argument takes a comma-separated list of extensions to be copied; if it
2160  is omitted, all files will be copied.
2161  The 
2162 \begin_inset Quotes eld
2163 \end_inset
2164
2165 -t
2166 \begin_inset Quotes erd
2167 \end_inset
2168
2169  argument determines the extension added to the generated directory.
2170  By default, it is 
2171 \begin_inset Quotes eld
2172 \end_inset
2173
2174
2175 \begin_inset Flex Noun
2176 status collapsed
2177
2178 \begin_layout Plain Layout
2179 LyXconv
2180 \end_layout
2181
2182 \end_inset
2183
2184
2185 \begin_inset Quotes erd
2186 \end_inset
2187
2188 , so HTML generated from 
2189 \begin_inset Flex Noun
2190 status collapsed
2191
2192 \begin_layout Plain Layout
2193 /path/to/filename.lyx
2194 \end_layout
2195
2196 \end_inset
2197
2198  will end up in 
2199 \begin_inset Flex Noun
2200 status collapsed
2201
2202 \begin_layout Plain Layout
2203 /path/to/filename.html.LyXconv
2204 \end_layout
2205
2206 \end_inset
2207
2208 .
2209  
2210 \end_layout
2211
2212 \end_inset
2213
2214
2215 \end_layout
2216
2217 \begin_layout Section
2218 Converters
2219 \begin_inset CommandInset label
2220 LatexCommand label
2221 name "sec:Converters"
2222
2223 \end_inset
2224
2225
2226 \end_layout
2227
2228 \begin_layout Standard
2229 You can define your own Converters to convert files between different formats.
2230  This is done in the 
2231 \begin_inset Flex Noun
2232 status collapsed
2233
2234 \begin_layout Plain Layout
2235 Tools\SpecialChar menuseparator
2236 Preferences\SpecialChar menuseparator
2237 File Handling\SpecialChar menuseparator
2238 Converters
2239 \end_layout
2240
2241 \end_inset
2242
2243  dialog.
2244 \end_layout
2245
2246 \begin_layout Standard
2247 To define a new converter, select the 
2248 \begin_inset Flex Noun
2249 status collapsed
2250
2251 \begin_layout Plain Layout
2252 From
2253 \begin_inset space ~
2254 \end_inset
2255
2256 format
2257 \end_layout
2258
2259 \end_inset
2260
2261  and 
2262 \begin_inset Flex Noun
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 To
2267 \begin_inset space ~
2268 \end_inset
2269
2270 format
2271 \end_layout
2272
2273 \end_inset
2274
2275  from the drop-down lists, enter the command needed for the conversion,
2276  and then press the 
2277 \begin_inset Flex Noun
2278 status collapsed
2279
2280 \begin_layout Plain Layout
2281 Add
2282 \end_layout
2283
2284 \end_inset
2285
2286  button.
2287  Several variables can be used in the definition of converters:
2288 \end_layout
2289
2290 \begin_layout Labeling
2291 \labelwidthstring 00.00.0000
2292 \begin_inset Flex Code
2293 status collapsed
2294
2295 \begin_layout Plain Layout
2296 $$s
2297 \end_layout
2298
2299 \end_inset
2300
2301  The \SpecialChar LyX
2302  system directory
2303 \end_layout
2304
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Flex Code
2308 status collapsed
2309
2310 \begin_layout Plain Layout
2311 $$i
2312 \end_layout
2313
2314 \end_inset
2315
2316  The input file
2317 \end_layout
2318
2319 \begin_layout Labeling
2320 \labelwidthstring 00.00.0000
2321 \begin_inset Flex Code
2322 status collapsed
2323
2324 \begin_layout Plain Layout
2325 $$o
2326 \end_layout
2327
2328 \end_inset
2329
2330  The output file
2331 \end_layout
2332
2333 \begin_layout Labeling
2334 \labelwidthstring 00.00.0000
2335 \begin_inset Flex Code
2336 status collapsed
2337
2338 \begin_layout Plain Layout
2339 $$b
2340 \end_layout
2341
2342 \end_inset
2343
2344  The base filename of the input file (i.
2345 \begin_inset space \thinspace{}
2346 \end_inset
2347
2348 g., without the extension)
2349 \end_layout
2350
2351 \begin_layout Labeling
2352 \labelwidthstring 00.00.0000
2353 \begin_inset Flex Code
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 $$p
2358 \end_layout
2359
2360 \end_inset
2361
2362  The path to the input file
2363 \end_layout
2364
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Flex Code
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 $$r
2372 \end_layout
2373
2374 \end_inset
2375
2376  The path to the original input file (this is different from $$p when a
2377  chain of converters is called)
2378 \end_layout
2379
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Flex Code
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 $$e
2387 \end_layout
2388
2389 \end_inset
2390
2391  The iconv name for the encoding of the document.
2392 \end_layout
2393
2394 \begin_layout Standard
2395 In the 
2396 \begin_inset Flex Noun
2397 status collapsed
2398
2399 \begin_layout Plain Layout
2400 Extra
2401 \begin_inset space ~
2402 \end_inset
2403
2404 Flag
2405 \end_layout
2406
2407 \end_inset
2408
2409  field you can enter the following flags, separated by commas:
2410 \end_layout
2411
2412 \begin_layout Labeling
2413 \labelwidthstring 00.00.0000
2414 \begin_inset Flex Code
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418 latex
2419 \end_layout
2420
2421 \end_inset
2422
2423  This converter runs some form of \SpecialChar LaTeX
2424 .
2425  This will make \SpecialChar LyX
2426 's \SpecialChar LaTeX
2427  error logs available.
2428 \end_layout
2429
2430 \begin_layout Labeling
2431 \labelwidthstring 00.00.0000
2432 \begin_inset Flex Code
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 needaux
2437 \end_layout
2438
2439 \end_inset
2440
2441  Needs the \SpecialChar LaTeX
2442  
2443 \begin_inset Flex Noun
2444 status collapsed
2445
2446 \begin_layout Plain Layout
2447 .aux
2448 \end_layout
2449
2450 \end_inset
2451
2452  file for the conversion.
2453 \end_layout
2454
2455 \begin_layout Labeling
2456 \labelwidthstring 00.00.0000
2457 \begin_inset Flex Code
2458 status collapsed
2459
2460 \begin_layout Plain Layout
2461 nice
2462 \end_layout
2463
2464 \end_inset
2465
2466  Needs a 
2467 \begin_inset Quotes eld
2468 \end_inset
2469
2470 nice
2471 \begin_inset Quotes erd
2472 \end_inset
2473
2474  file from the backend, which in practice means a \SpecialChar LaTeX
2475  file like the one we
2476  would export, without 
2477 \begin_inset Flex Code
2478 status collapsed
2479
2480 \begin_layout Plain Layout
2481 input@path
2482 \end_layout
2483
2484 \end_inset
2485
2486 .
2487 \end_layout
2488
2489 \begin_layout Labeling
2490 \labelwidthstring 00.00.0000
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 xml
2496 \end_layout
2497
2498 \end_inset
2499
2500  Output is XML.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 The following three flags are not really flags at all because they take
2505  an argument in the 
2506 \begin_inset Flex Noun
2507 status collapsed
2508
2509 \begin_layout Plain Layout
2510 key
2511 \begin_inset space ~
2512 \end_inset
2513
2514 =
2515 \begin_inset space ~
2516 \end_inset
2517
2518 value
2519 \end_layout
2520
2521 \end_inset
2522
2523  format:
2524 \end_layout
2525
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2528 \begin_inset Flex Code
2529 status collapsed
2530
2531 \begin_layout Plain Layout
2532 parselog
2533 \end_layout
2534
2535 \end_inset
2536
2537  If set, the converter's standard error will be redirected to a file 
2538 \begin_inset Flex Code
2539 status collapsed
2540
2541 \begin_layout Plain Layout
2542 infile.out
2543 \end_layout
2544
2545 \end_inset
2546
2547 , and the script given as argument will be run as: 
2548 \begin_inset Flex Code
2549 status collapsed
2550
2551 \begin_layout Plain Layout
2552 script < infile.out > infile.log
2553 \end_layout
2554
2555 \end_inset
2556
2557 .
2558  The argument may contain 
2559 \begin_inset Flex Code
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 $$s
2564 \end_layout
2565
2566 \end_inset
2567
2568 .
2569 \end_layout
2570
2571 \begin_layout Labeling
2572 \labelwidthstring 00.00.0000
2573 \begin_inset Flex Code
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 resultdir
2578 \end_layout
2579
2580 \end_inset
2581
2582  The name of the directory in which the converter will dump the generated
2583  files.
2584  \SpecialChar LyX
2585  will not create this directory, and it does not copy anything into it,
2586  though it will copy this directory to the destination.
2587  The argument may contain 
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 $$b
2593 \end_layout
2594
2595 \end_inset
2596
2597 , which will be replaced by the base name of the input and output files,
2598  respectively, when the directory is copied.
2599 \begin_inset Newline newline
2600 \end_inset
2601
2602 Note that resultdir and usetempdir make no sense together.
2603  The latter will be ignored if the former is given.
2604 \end_layout
2605
2606 \begin_layout Labeling
2607 \labelwidthstring 00.00.0000
2608 \begin_inset Flex Code
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 resultfile
2613 \end_layout
2614
2615 \end_inset
2616
2617  Determines the output file name and may, contain 
2618 \begin_inset Flex Code
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 $$b
2623 \end_layout
2624
2625 \end_inset
2626
2627 .
2628  Sensible only with resultdir and optional even then; if not given, it defaults
2629  to `index'.
2630 \end_layout
2631
2632 \begin_layout Standard
2633 None of these last three are presently used in any of the converters that
2634  are installed with \SpecialChar LyX
2635 .
2636  
2637 \end_layout
2638
2639 \begin_layout Standard
2640 You do not have to define converters for all formats between which you want
2641  to convert.
2642  For example, you will note that there is no `\SpecialChar LyX
2643  to PostScript' converter,
2644  but \SpecialChar LyX
2645  will export PostScript.
2646  It does so by first creating a \SpecialChar LaTeX
2647  file (no converter needs to be defined
2648  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2649  to DVI' converter,
2650  and finally converting the resulting DVI file to PostScript.
2651  \SpecialChar LyX
2652  finds such `chains' of converters automatically, and it will always choose
2653  the shortest possible chain.
2654  You can, though, still define multiple conversion methods between file
2655  formats.
2656  For example, the standard \SpecialChar LyX
2657  configuration provides five ways to convert
2658  \SpecialChar LaTeX
2659  to PDF:
2660 \end_layout
2661
2662 \begin_layout Enumerate
2663 Directly, using 
2664 \begin_inset Flex Noun
2665 status collapsed
2666
2667 \begin_layout Plain Layout
2668 pdflatex
2669 \end_layout
2670
2671 \end_inset
2672
2673
2674 \end_layout
2675
2676 \begin_layout Enumerate
2677 via (DVI and) PostScript, using 
2678 \begin_inset Flex Noun
2679 status collapsed
2680
2681 \begin_layout Plain Layout
2682 ps2pdf
2683 \end_layout
2684
2685 \end_inset
2686
2687
2688 \end_layout
2689
2690 \begin_layout Enumerate
2691 via DVI, using 
2692 \begin_inset Flex Noun
2693 status collapsed
2694
2695 \begin_layout Plain Layout
2696 dvipdfm
2697 \end_layout
2698
2699 \end_inset
2700
2701
2702 \end_layout
2703
2704 \begin_layout Enumerate
2705 directly using 
2706 \begin_inset Flex Noun
2707 status collapsed
2708
2709 \begin_layout Plain Layout
2710 Xe\SpecialChar TeX
2711
2712 \end_layout
2713
2714 \end_inset
2715
2716
2717 \end_layout
2718
2719 \begin_layout Enumerate
2720 directly using 
2721 \begin_inset Flex Noun
2722 status collapsed
2723
2724 \begin_layout Plain Layout
2725 Lua\SpecialChar TeX
2726
2727 \end_layout
2728
2729 \end_inset
2730
2731
2732 \end_layout
2733
2734 \begin_layout Standard
2735 To define such alternate chains, you must define multiple target `file formats',
2736  as described in 
2737 \begin_inset CommandInset ref
2738 LatexCommand ref
2739 reference "sec:Formats"
2740
2741 \end_inset
2742
2743 .
2744  For example, in the standard configuration, the formats named 
2745 \begin_inset Flex Noun
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 pdf
2750 \end_layout
2751
2752 \end_inset
2753
2754  (for 
2755 \begin_inset Flex Noun
2756 status collapsed
2757
2758 \begin_layout Plain Layout
2759 ps2pdf
2760 \end_layout
2761
2762 \end_inset
2763
2764 ), 
2765 \begin_inset Flex Noun
2766 status collapsed
2767
2768 \begin_layout Plain Layout
2769 pdf2
2770 \end_layout
2771
2772 \end_inset
2773
2774  (for 
2775 \begin_inset Flex Noun
2776 status collapsed
2777
2778 \begin_layout Plain Layout
2779 pdflatex
2780 \end_layout
2781
2782 \end_inset
2783
2784 ), 
2785 \begin_inset Flex Noun
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 pdf3
2790 \end_layout
2791
2792 \end_inset
2793
2794  (for 
2795 \begin_inset Flex Noun
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799 dvipdfm
2800 \end_layout
2801
2802 \end_inset
2803
2804 ), 
2805 \begin_inset Flex Noun
2806 status collapsed
2807
2808 \begin_layout Plain Layout
2809 pdf4
2810 \end_layout
2811
2812 \end_inset
2813
2814  (for 
2815 \begin_inset Flex Noun
2816 status collapsed
2817
2818 \begin_layout Plain Layout
2819 Xe\SpecialChar TeX
2820
2821 \end_layout
2822
2823 \end_inset
2824
2825 ), and 
2826 \begin_inset Flex Noun
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 pdf5
2831 \end_layout
2832
2833 \end_inset
2834
2835  (for 
2836 \begin_inset Flex Noun
2837 status collapsed
2838
2839 \begin_layout Plain Layout
2840 Lua\SpecialChar TeX
2841
2842 \end_layout
2843
2844 \end_inset
2845
2846 ) are defined, all of which share the extension 
2847 \begin_inset Flex Noun
2848 status collapsed
2849
2850 \begin_layout Plain Layout
2851 .pdf
2852 \end_layout
2853
2854 \end_inset
2855
2856 , and which correspond to the conversion methods just mentioned.
2857 \end_layout
2858
2859 \begin_layout Chapter
2860 Internationalizing \SpecialChar LyX
2861
2862 \begin_inset CommandInset label
2863 LatexCommand label
2864 name "cha:Internationalizing-LyX"
2865
2866 \end_inset
2867
2868
2869 \end_layout
2870
2871 \begin_layout Standard
2872 \SpecialChar LyX
2873  supports using a translated interface.
2874  Last time we checked, \SpecialChar LyX
2875  provided text in thirty languages.
2876  The language of choice is called your 
2877 \emph on
2878 locale
2879 \emph default
2880 .
2881  (For further reading on locale settings, see also the documentation for
2882  locale that comes with your operating system.
2883  For Linux, the manual page for 
2884 \begin_inset Flex Code
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888 locale(5)
2889 \end_layout
2890
2891 \end_inset
2892
2893  could be a good place to start).
2894 \end_layout
2895
2896 \begin_layout Standard
2897 Notice that these translations will work, but do contain a few flaws.
2898  In particular, all dialogs have been designed with the English text in
2899  mind, which means that some of the translated text will be too large to
2900  fit within the space allocated.
2901  This is only a display problem and will not cause any harm.
2902  Also, you will find that some of the translations do not define shortcut
2903  keys for everything.
2904  Sometimes, there are simply not enough free letters to do it.
2905  Other times, the translator just hasn't got around to doing it yet.
2906  Our localization team, which you may wish to join,
2907 \begin_inset Foot
2908 status collapsed
2909
2910 \begin_layout Plain Layout
2911 If you are a fluent speaker of a language other than English, joining these
2912  teams is a great way to give back to the \SpecialChar LyX
2913  community!
2914 \end_layout
2915
2916 \end_inset
2917
2918  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2919 .
2920 \end_layout
2921
2922 \begin_layout Section
2923 Translating \SpecialChar LyX
2924
2925 \end_layout
2926
2927 \begin_layout Subsection
2928 Translating the graphical user interface (text messages).
2929 \end_layout
2930
2931 \begin_layout Standard
2932 \SpecialChar LyX
2933  uses the GNU 
2934 \begin_inset Flex Code
2935 status collapsed
2936
2937 \begin_layout Plain Layout
2938 gettext
2939 \end_layout
2940
2941 \end_inset
2942
2943  library to handle the internationalization of the interface.
2944  To have \SpecialChar LyX
2945  speak your favorite language in all menus and dialogs, you need
2946  a 
2947 \begin_inset Flex Code
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 po
2952 \end_layout
2953
2954 \end_inset
2955
2956 -file for that language.
2957  When this is available, you'll have to generate a 
2958 \begin_inset Flex Code
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 mo
2963 \end_layout
2964
2965 \end_inset
2966
2967 -file from it and install the 
2968 \begin_inset Flex Code
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972 mo
2973 \end_layout
2974
2975 \end_inset
2976
2977 -file.
2978  The process of doing all of this is explained in the documentation for
2979  GNU 
2980 \begin_inset Flex Code
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 gettext
2985 \end_layout
2986
2987 \end_inset
2988
2989 .
2990  It is possible to do this just for yourself, but if you're going to do
2991  it, you might as well share the results of your labors with the rest of
2992  the \SpecialChar LyX
2993  community.
2994  Send a message to the \SpecialChar LyX
2995  developers' list for more information about how
2996  to proceed.
2997 \end_layout
2998
2999 \begin_layout Standard
3000 In short, this is what you should do (xx denotes the language code):
3001 \end_layout
3002
3003 \begin_layout Itemize
3004 Check out the \SpecialChar LyX
3005  source code.
3006  (See the 
3007 \begin_inset CommandInset href
3008 LatexCommand href
3009 name "information on the web"
3010 target "http://www.lyx.org/HowToUseGIT"
3011
3012 \end_inset
3013
3014 .)
3015 \end_layout
3016
3017 \begin_layout Itemize
3018 Copy the file 
3019 \begin_inset Flex Code
3020 status collapsed
3021
3022 \begin_layout Plain Layout
3023 lyx.pot
3024 \end_layout
3025
3026 \end_inset
3027
3028  to the folder of the 
3029 \begin_inset Flex Code
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 **.po
3034 \end_layout
3035
3036 \end_inset
3037
3038  files.
3039  Then rename it to 
3040 \begin_inset Flex Code
3041 status collapsed
3042
3043 \begin_layout Plain Layout
3044 xx.po
3045 \end_layout
3046
3047 \end_inset
3048
3049 .
3050  (If 
3051 \begin_inset Flex Code
3052 status collapsed
3053
3054 \begin_layout Plain Layout
3055 lyx.pot
3056 \end_layout
3057
3058 \end_inset
3059
3060  doesn't exist anywhere, it can be remade with the console command 
3061 \begin_inset Flex Code
3062 status collapsed
3063
3064 \begin_layout Plain Layout
3065 make lyx.pot
3066 \end_layout
3067
3068 \end_inset
3069
3070  in that directory, or you can use an existing po-file for some other language
3071  as a template).
3072 \end_layout
3073
3074 \begin_layout Itemize
3075 Edit 
3076 \begin_inset Flex Code
3077 status collapsed
3078
3079 \begin_layout Plain Layout
3080 xx.po
3081 \end_layout
3082
3083 \end_inset
3084
3085 .
3086 \begin_inset Foot
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 This is just a text file, so it can be edited in any text editor.
3091  But there are also specialized programs that support such editing, such
3092  as 
3093 \family typewriter
3094 Poedit
3095 \family default
3096  (for all platforms) or 
3097 \family typewriter
3098 KBabel
3099 \family default
3100  (for KDE).
3101  
3102 \family typewriter
3103 Emacs
3104 \family default
3105  contains a `mode' for editing 
3106 \begin_inset Flex Code
3107 status collapsed
3108
3109 \begin_layout Plain Layout
3110 po
3111 \end_layout
3112
3113 \end_inset
3114
3115  files, as well, see 
3116 \begin_inset Flex URL
3117 status open
3118
3119 \begin_layout Plain Layout
3120
3121 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3122 \backslash
3123 #PO-Mode
3124 \end_layout
3125
3126 \end_inset
3127
3128 .
3129 \end_layout
3130
3131 \end_inset
3132
3133  For some menu- and widget-labels, there are also shortcut keys that should
3134  be translated.
3135  Those keys are marked after a `|', and should be translated according to
3136  the words and phrases of the language.
3137  You should also fill also out the information at the beginning of the new
3138  
3139 \begin_inset Flex Code
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143 po
3144 \end_layout
3145
3146 \end_inset
3147
3148 -file with your email-address, etc., so people know where to reach you with
3149  suggestions and entertaining flames.
3150 \end_layout
3151
3152 \begin_layout Standard
3153 If you are just doing this on your own, then:
3154 \end_layout
3155
3156 \begin_layout Itemize
3157 Generate 
3158 \begin_inset Flex Code
3159 status collapsed
3160
3161 \begin_layout Plain Layout
3162 xx.mo
3163 \end_layout
3164
3165 \end_inset
3166
3167 .
3168  This can be done with 
3169 \begin_inset Flex Code
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173 msgfmt -o xx.mo < xx.po
3174 \end_layout
3175
3176 \end_inset
3177
3178 .
3179 \end_layout
3180
3181 \begin_layout Itemize
3182 Copy the 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 mo
3188 \end_layout
3189
3190 \end_inset
3191
3192 -file to your locale-tree, at the correct directory for application messages
3193  for the language
3194 \series bold
3195  
3196 \series default
3197 xx, and under the name 
3198 \begin_inset Flex Code
3199 status collapsed
3200
3201 \begin_layout Plain Layout
3202 lyx.mo
3203 \end_layout
3204
3205 \end_inset
3206
3207  (e.
3208 \begin_inset space \thinspace{}
3209 \end_inset
3210
3211 g.
3212 \begin_inset space \space{}
3213 \end_inset
3214
3215
3216 \begin_inset Flex Code
3217 status collapsed
3218
3219 \begin_layout Plain Layout
3220 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3221 \end_layout
3222
3223 \end_inset
3224
3225
3226 \series bold
3227 .
3228 \end_layout
3229
3230 \begin_layout Standard
3231 As said, however, it would be best if the new 
3232 \begin_inset Flex Code
3233 status collapsed
3234
3235 \begin_layout Plain Layout
3236 po
3237 \end_layout
3238
3239 \end_inset
3240
3241  file could be added to the \SpecialChar LyX
3242  distribution, so others can use it.
3243  Adding it involves making additional changes to \SpecialChar LyX
3244 .
3245  So send an email to the developers' mailing list if you're interested in
3246  doing that.
3247 \end_layout
3248
3249 \begin_layout Subsubsection
3250 Ambiguous messages
3251 \end_layout
3252
3253 \begin_layout Standard
3254 Sometimes it turns out that one English message needs to be translated into
3255  different messages in the target language.
3256  One example is the message 
3257 \begin_inset Flex Code
3258 status collapsed
3259
3260 \begin_layout Plain Layout
3261 To
3262 \end_layout
3263
3264 \end_inset
3265
3266  which has the German translation 
3267 \lang german
3268 Nach
3269 \lang english
3270  or 
3271 \lang german
3272 Bis
3273 \lang english
3274 , depending upon exactly what the English 
3275 \begin_inset Quotes eld
3276 \end_inset
3277
3278 to
3279 \begin_inset Quotes erd
3280 \end_inset
3281
3282  means.
3283  GNU 
3284 \begin_inset Flex Code
3285 status collapsed
3286
3287 \begin_layout Plain Layout
3288 gettext
3289 \end_layout
3290
3291 \end_inset
3292
3293  does not handle such ambiguous translations.
3294  Therefore you have to add some context information to the message: Instead
3295  of 
3296 \begin_inset Flex Code
3297 status collapsed
3298
3299 \begin_layout Plain Layout
3300 To
3301 \end_layout
3302
3303 \end_inset
3304
3305  it becomes 
3306 \begin_inset Flex Code
3307 status collapsed
3308
3309 \begin_layout Plain Layout
3310 To[[as in 'From format x to format y']]
3311 \end_layout
3312
3313 \end_inset
3314
3315  and 
3316 \begin_inset Flex Code
3317 status collapsed
3318
3319 \begin_layout Plain Layout
3320 To[[as in 'From page x to page y']].
3321 \end_layout
3322
3323 \end_inset
3324
3325  Now the two occurrences of 
3326 \begin_inset Flex Code
3327 status collapsed
3328
3329 \begin_layout Plain Layout
3330 To
3331 \end_layout
3332
3333 \end_inset
3334
3335  are different for 
3336 \begin_inset Flex Code
3337 status collapsed
3338
3339 \begin_layout Plain Layout
3340 gettext
3341 \end_layout
3342
3343 \end_inset
3344
3345  and can be translated correctly to 
3346 \lang german
3347 Nach
3348 \lang english
3349  and 
3350 \lang german
3351 Bis
3352 \lang english
3353 , respectively.
3354 \end_layout
3355
3356 \begin_layout Standard
3357 Of course the context information needs to be stripped off the original
3358  message when no translation is used.
3359  Therefore you have to put it in double square brackets at the end of the
3360  message (see the example above).
3361  The translation mechanism of \SpecialChar LyX
3362  ensures that everything in double square
3363  brackets at the end of messages is removed before displaying the message.
3364 \end_layout
3365
3366 \begin_layout Subsection
3367 Translating the documentation.
3368 \end_layout
3369
3370 \begin_layout Standard
3371 The online documentation (in the 
3372 \begin_inset Flex Noun
3373 status collapsed
3374
3375 \begin_layout Plain Layout
3376 Help
3377 \end_layout
3378
3379 \end_inset
3380
3381 -menu) can (and should!) be translated.
3382  If there are translated versions of the documentation available
3383 \begin_inset Foot
3384 status collapsed
3385
3386 \begin_layout Plain Layout
3387 As of March 2008, at least some of the documents have been translated into
3388  fourteen languages, with the Tutorial available in a few more.
3389 \end_layout
3390
3391 \end_inset
3392
3393  and the locale is set accordingly, these will be used automagically by
3394  \SpecialChar LyX
3395 .
3396  \SpecialChar LyX
3397  looks for translated versions as 
3398 \begin_inset Flex Code
3399 status collapsed
3400
3401 \begin_layout Plain Layout
3402 LyXDir/doc/xx/DocName.lyx
3403 \end_layout
3404
3405 \end_inset
3406
3407 , where 
3408 \begin_inset Flex Code
3409 status collapsed
3410
3411 \begin_layout Plain Layout
3412 xx
3413 \end_layout
3414
3415 \end_inset
3416
3417  is the code for the language currently in use.
3418  If there are no translated documents, the default English versions will
3419  be displayed.
3420  Note that the translated versions must have the same filenames (
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 DocName
3426 \end_layout
3427
3428 \end_inset
3429
3430  above) as the original.
3431  If you feel up to translating the documentation (an excellent way to proof-read
3432  the original documentation by the way!), there are a few things you should
3433  do right away:
3434 \end_layout
3435
3436 \begin_layout Itemize
3437 Check out the documentation translation web page at 
3438 \begin_inset CommandInset href
3439 LatexCommand href
3440 name "http://www.lyx.org/Translation"
3441 target "http://www.lyx.org/Translation"
3442
3443 \end_inset
3444
3445 .
3446  That way, you can find out which (if any) documents have already been translate
3447 d into your language.
3448  You can also find out who (if anyone) is organizing the effort to translate
3449  the documentation into your language.
3450  If no one is organizing the effort, please let us know that you're interested.
3451 \end_layout
3452
3453 \begin_layout Standard
3454 Once you get to actually translating, here's a few hints for you that may
3455  save you trouble:
3456 \end_layout
3457
3458 \begin_layout Itemize
3459 Join the documentation team! There is information on how to do that in 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464 Intro.lyx
3465 \end_layout
3466
3467 \end_inset
3468
3469  (
3470 \begin_inset Flex Noun
3471 status collapsed
3472
3473 \begin_layout Plain Layout
3474 Help\SpecialChar menuseparator
3475 Introduction
3476 \end_layout
3477
3478 \end_inset
3479
3480 ), which by the way is the first document you should translate.
3481 \end_layout
3482
3483 \begin_layout Itemize
3484 Learn the typographic conventions for the language you are translating to.
3485  Typography is an ancient art and over the centuries, a great variety of
3486  conventions have developed throughout different parts of the world.
3487  Also study the professional terminology amongst typographers in your country.
3488  Inventing your own terminology will only confuse the users.
3489  
3490 \emph on
3491 (Warning! Typography is addictive!)
3492 \end_layout
3493
3494 \begin_layout Itemize
3495 Make a copy of the document.
3496  This will be your working copy.
3497  You can use this as your personal translated help-file by placing it in
3498  your 
3499 \begin_inset Flex Code
3500 status collapsed
3501
3502 \begin_layout Plain Layout
3503 UserDir/doc/xx/
3504 \end_layout
3505
3506 \end_inset
3507
3508  directory.
3509 \begin_inset Note Greyedout
3510 status open
3511
3512 \begin_layout Plain Layout
3513
3514 \series bold
3515 Note:
3516 \series default
3517  For a complex document with external material (images, etc.), if you make
3518  a copy e.
3519 \begin_inset space \thinspace{}
3520 \end_inset
3521
3522 g.
3523 \begin_inset space \space{}
3524 \end_inset
3525
3526 in a temp dir, beware that the links to external material may be broken
3527  when the document is moved to a different place.
3528  The best way is to retrieve the \SpecialChar LyX
3529  tree from git (see 
3530 \begin_inset Flex URL
3531 status collapsed
3532
3533 \begin_layout Plain Layout
3534
3535 http://www.lyx.org/HowToUseGIT
3536 \end_layout
3537
3538 \end_inset
3539
3540 ) and to edit the doc file in place.
3541 \end_layout
3542
3543 \end_inset
3544
3545
3546 \end_layout
3547
3548 \begin_layout Itemize
3549 Sometimes the original document (from the \SpecialChar LyX
3550  team) will be updated.
3551  Use the source viewer at 
3552 \begin_inset CommandInset href
3553 LatexCommand href
3554 name "http://www.lyx.org/trac/timeline"
3555 target "http://www.lyx.org/trac/timeline"
3556
3557 \end_inset
3558
3559  to see what has been changed.
3560  That way you can easily see which parts of the translated document need
3561  to be updated.
3562 \end_layout
3563
3564 \begin_layout Standard
3565 If you ever find an error in the original document, fix it and notify the
3566  rest of the documentation team of the changes! (You didn't forget to join
3567  the documentation team, did you?)
3568 \end_layout
3569
3570 \begin_layout Standard
3571 \begin_inset Branch OutDated
3572 inverted 0
3573 status collapsed
3574
3575 \begin_layout Section
3576 International Keyboard Support
3577 \end_layout
3578
3579 \begin_layout Standard
3580
3581 \emph on
3582 [Editor's Note: The following section is by
3583 \emph default
3584  
3585 \shape smallcaps
3586 \emph on
3587 Ivan Schreter
3588 \shape default
3589 .
3590  It needs to be fixed to conform to the new Documentation Style sheet and
3591  to make use of the new v1.0 features.
3592  The whole thing also needs to be merged with the section following it.-jw
3593  It may also be badly out of date.-rh (2008)]
3594 \end_layout
3595
3596 \begin_layout Subsection
3597 Defining Own Keymaps: Keymap File Format
3598 \end_layout
3599
3600 \begin_layout Standard
3601 Let's look at a keyboard definition file a little closer.
3602  It is a plain text file defining
3603 \end_layout
3604
3605 \begin_layout Itemize
3606 key-to-key or key-to-string translations
3607 \end_layout
3608
3609 \begin_layout Itemize
3610 dead keys
3611 \end_layout
3612
3613 \begin_layout Itemize
3614 dead keys exceptions
3615 \end_layout
3616
3617 \begin_layout Standard
3618 To define key-to-key or key-to-string translation, use this command:
3619 \end_layout
3620
3621 \begin_layout Quotation
3622 \begin_inset Flex Code
3623 status collapsed
3624
3625 \begin_layout Plain Layout
3626
3627 \backslash
3628 kmap
3629 \end_layout
3630
3631 \end_inset
3632
3633  
3634 \begin_inset Flex Code
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 key
3639 \end_layout
3640
3641 \end_inset
3642
3643  outstring 
3644 \end_layout
3645
3646 \begin_layout Standard
3647 where 
3648 \begin_inset Flex Code
3649 status collapsed
3650
3651 \begin_layout Plain Layout
3652 key
3653 \end_layout
3654
3655 \end_inset
3656
3657  is the key to be translated and 
3658 \begin_inset Flex Code
3659 status collapsed
3660
3661 \begin_layout Plain Layout
3662 outstring
3663 \end_layout
3664
3665 \end_inset
3666
3667  is the string to be inserted into the document.
3668  To define dead keys, use:
3669 \end_layout
3670
3671 \begin_layout Quotation
3672 \begin_inset Flex Code
3673 status collapsed
3674
3675 \begin_layout Plain Layout
3676
3677 \backslash
3678 kmod
3679 \end_layout
3680
3681 \end_inset
3682
3683  
3684 \begin_inset Flex Code
3685 status collapsed
3686
3687 \begin_layout Plain Layout
3688 key
3689 \end_layout
3690
3691 \end_inset
3692
3693  deadkey
3694 \end_layout
3695
3696 \begin_layout Standard
3697 where 
3698 \begin_inset Flex Code
3699 status collapsed
3700
3701 \begin_layout Plain Layout
3702 key
3703 \end_layout
3704
3705 \end_inset
3706
3707  is a keyboard key and 
3708 \begin_inset Flex Code
3709 status collapsed
3710
3711 \begin_layout Plain Layout
3712 deadkey
3713 \end_layout
3714
3715 \end_inset
3716
3717  is dead key name.
3718  The following dead keys are supported (shortcut name is in parentheses):
3719 \end_layout
3720
3721 \begin_layout Quotation
3722
3723 \emph on
3724 Name
3725 \begin_inset space \hfill{}
3726 \end_inset
3727
3728 Example
3729 \end_layout
3730
3731 \begin_layout Quotation
3732 acute (acu)
3733 \begin_inset space \hfill{}
3734 \end_inset
3735
3736 áéíóú
3737 \end_layout
3738
3739 \begin_layout Quotation
3740 grave (gra)
3741 \begin_inset space \hfill{}
3742 \end_inset
3743
3744 àèìòù
3745 \end_layout
3746
3747 \begin_layout Quotation
3748 macron (mac)
3749 \begin_inset space \hfill{}
3750 \end_inset
3751
3752  ō
3753 \end_layout
3754
3755 \begin_layout Quotation
3756 tilde (til)
3757 \begin_inset space \hfill{}
3758 \end_inset
3759
3760 ñÑ
3761 \end_layout
3762
3763 \begin_layout Quotation
3764 underbar (underb)
3765 \begin_inset space \hfill{}
3766 \end_inset
3767
3768
3769 \begin_inset ERT
3770 status open
3771
3772 \begin_layout Plain Layout
3773
3774
3775 \backslash
3776 b o
3777 \end_layout
3778
3779 \end_inset
3780
3781
3782 \end_layout
3783
3784 \begin_layout Quotation
3785 cedilla (ced)
3786 \begin_inset space \hfill{}
3787 \end_inset
3788
3789 çÇ
3790 \end_layout
3791
3792 \begin_layout Quotation
3793 underdot (underd)
3794 \begin_inset space \hfill{}
3795 \end_inset
3796
3797
3798 \begin_inset ERT
3799 status open
3800
3801 \begin_layout Plain Layout
3802
3803
3804 \backslash
3805 d o
3806 \end_layout
3807
3808 \end_inset
3809
3810
3811 \end_layout
3812
3813 \begin_layout Quotation
3814 circumflex (circu)
3815 \begin_inset space \hfill{}
3816 \end_inset
3817
3818 âêîôû
3819 \end_layout
3820
3821 \begin_layout Quotation
3822 circle (circl)
3823 \begin_inset space \hfill{}
3824 \end_inset
3825
3826 ÅůŮ
3827 \end_layout
3828
3829 \begin_layout Quotation
3830 tie (tie)
3831 \begin_inset space \hfill{}
3832 \end_inset
3833
3834
3835 \begin_inset ERT
3836 status open
3837
3838 \begin_layout Plain Layout
3839
3840
3841 \backslash
3842 t o
3843 \end_layout
3844
3845 \end_inset
3846
3847
3848 \end_layout
3849
3850 \begin_layout Quotation
3851 breve (bre)
3852 \begin_inset space \hfill{}
3853 \end_inset
3854
3855 ă
3856 \begin_inset ERT
3857 status open
3858
3859 \begin_layout Plain Layout
3860
3861
3862 \backslash
3863 u o
3864 \end_layout
3865
3866 \end_inset
3867
3868
3869 \end_layout
3870
3871 \begin_layout Quotation
3872 caron (car)
3873 \begin_inset space \hfill{}
3874 \end_inset
3875
3876 čšž
3877 \end_layout
3878
3879 \begin_layout Quotation
3880 hungarian umlaut (hug)
3881 \begin_inset space \hfill{}
3882 \end_inset
3883
3884 őű
3885 \end_layout
3886
3887 \begin_layout Quotation
3888 umlaut (uml)
3889 \begin_inset space \hfill{}
3890 \end_inset
3891
3892 äöü
3893 \end_layout
3894
3895 \begin_layout Quotation
3896 dot (dot)
3897 \begin_inset space \hfill{}
3898 \end_inset
3899
3900 ż
3901 \begin_inset ERT
3902 status open
3903
3904 \begin_layout Plain Layout
3905
3906
3907 \backslash
3908 .s
3909 \end_layout
3910
3911 \end_inset
3912
3913
3914 \end_layout
3915
3916 \begin_layout Standard
3917 Since in many international keyboards there are exceptions to what some
3918  dead keys should do, you can define them using
3919 \end_layout
3920
3921 \begin_layout Quotation
3922 \begin_inset Flex Code
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926
3927 \backslash
3928 kxmod
3929 \end_layout
3930
3931 \end_inset
3932
3933  deadkey key outstring
3934 \end_layout
3935
3936 \begin_layout Standard
3937 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3938 , so you put in
3939 \end_layout
3940
3941 \begin_layout Quotation
3942 \begin_inset Flex Code
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946
3947 \backslash
3948 kxmod
3949 \end_layout
3950
3951 \end_inset
3952
3953  caron o "
3954 \backslash
3955 ^o"
3956 \end_layout
3957
3958 \begin_layout Standard
3959 to make it work correctly.
3960  Also, you have to define as exceptions dead keys over i and j, to remove
3961  the dot from them before inserting an accent mark.
3962  I will change this when the time comes, but so far I haven't had time.
3963 \end_layout
3964
3965 \begin_layout Standard
3966 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3967  double backslash.
3968  Also, quotes and 
3969 \begin_inset Flex Code
3970 status collapsed
3971
3972 \begin_layout Plain Layout
3973 #
3974 \end_layout
3975
3976 \end_inset
3977
3978  have different meaning.
3979  
3980 \begin_inset Flex Code
3981 status collapsed
3982
3983 \begin_layout Plain Layout
3984 #
3985 \end_layout
3986
3987 \end_inset
3988
3989  marks comments, quotes start and end \SpecialChar LaTeX
3990 -style commands.
3991  To enter quote, you'll need to use 
3992 \begin_inset Flex Code
3993 status collapsed
3994
3995 \begin_layout Plain Layout
3996
3997 \backslash
3998 "
3999 \end_layout
4000
4001 \end_inset
4002
4003 , to enter 
4004 \begin_inset Flex Code
4005 status collapsed
4006
4007 \begin_layout Plain Layout
4008 #
4009 \end_layout
4010
4011 \end_inset
4012
4013 , use 
4014 \begin_inset Flex Code
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018
4019 \backslash
4020 #
4021 \end_layout
4022
4023 \end_inset
4024
4025 .
4026 \end_layout
4027
4028 \begin_layout Standard
4029 If you make a keyboard description file that works for your language, please
4030  mail it to me, so I can include it in the next keymap distribution.
4031 \end_layout
4032
4033 \begin_layout Standard
4034 More keywords will be supported in keymap configuration file in future,
4035  like
4036 \end_layout
4037
4038 \begin_layout Itemize
4039 \begin_inset Flex Code
4040 status collapsed
4041
4042 \begin_layout Plain Layout
4043
4044 \backslash
4045 kinclude filename
4046 \end_layout
4047
4048 \end_inset
4049
4050
4051 \emph on
4052
4053 \begin_inset space \hfill{}
4054 \end_inset
4055
4056
4057 \begin_inset Flex Code
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 include
4062 \end_layout
4063
4064 \end_inset
4065
4066  another file
4067 \end_layout
4068
4069 \begin_layout Itemize
4070 \begin_inset Flex Code
4071 status collapsed
4072
4073 \begin_layout Plain Layout
4074
4075 \backslash
4076 kprog program
4077 \end_layout
4078
4079 \end_inset
4080
4081
4082 \emph on
4083
4084 \begin_inset space \hfill{}
4085 \end_inset
4086
4087
4088 \begin_inset Flex Code
4089 status collapsed
4090
4091 \begin_layout Plain Layout
4092 define
4093 \end_layout
4094
4095 \end_inset
4096
4097  an external keymap translation program 
4098 \end_layout
4099
4100 \begin_layout Standard
4101 Also, it should look into 
4102 \begin_inset Flex Code
4103 status collapsed
4104
4105 \begin_layout Plain Layout
4106 lyxrc
4107 \end_layout
4108
4109 \end_inset
4110
4111  file for defaults, too (for example, a 
4112 \begin_inset Flex Code
4113 status collapsed
4114
4115 \begin_layout Plain Layout
4116
4117 \backslash
4118 kinclude
4119 \end_layout
4120
4121 \end_inset
4122
4123  option to include default keyboard).
4124 \end_layout
4125
4126 \end_inset
4127
4128
4129 \end_layout
4130
4131 \begin_layout Section
4132 International Keymap Stuff
4133 \begin_inset CommandInset label
4134 LatexCommand label
4135 name "sec:International-Keymap-Stuff"
4136
4137 \end_inset
4138
4139
4140 \end_layout
4141
4142 \begin_layout Standard
4143 \begin_inset Note Note
4144 status open
4145
4146 \begin_layout Plain Layout
4147 In doing the revisions on this document in March 2008, I did not look over
4148  this stuff, as I do not understand it.
4149  It would be good if someone else could do so.
4150  (RH)
4151 \end_layout
4152
4153 \end_inset
4154
4155
4156 \end_layout
4157
4158 \begin_layout Standard
4159 The next two sections describe the 
4160 \begin_inset Flex Code
4161 status collapsed
4162
4163 \begin_layout Plain Layout
4164
4165 \shape up
4166 .kmap
4167 \end_layout
4168
4169 \end_inset
4170
4171  and 
4172 \begin_inset Flex Code
4173 status collapsed
4174
4175 \begin_layout Plain Layout
4176
4177 \shape up
4178 .cdef
4179 \end_layout
4180
4181 \end_inset
4182
4183  file syntax in detail.
4184  These sections should help you design your own key map if the ones provided
4185  do not meet your needs.
4186 \end_layout
4187
4188 \begin_layout Subsection
4189 The .kmap File
4190 \end_layout
4191
4192 \begin_layout Standard
4193
4194 \shape up
4195 .
4196 \begin_inset Flex Code
4197 status collapsed
4198
4199 \begin_layout Plain Layout
4200 kmap
4201 \end_layout
4202
4203 \end_inset
4204
4205  file maps keystrokes to characters or strings.
4206  As the name suggests, it sets a keyboard mapping.
4207  The 
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212 .kmap
4213 \end_layout
4214
4215 \end_inset
4216
4217
4218 \shape default
4219  file keywords 
4220 \shape up
4221
4222 \begin_inset Flex Code
4223 status collapsed
4224
4225 \begin_layout Plain Layout
4226
4227 \shape up
4228 kmap
4229 \end_layout
4230
4231 \end_inset
4232
4233
4234 \shape default
4235 ,
4236 \shape up
4237  
4238 \shape default
4239
4240 \begin_inset Flex Code
4241 status collapsed
4242
4243 \begin_layout Plain Layout
4244
4245 \shape up
4246 kmod
4247 \end_layout
4248
4249 \end_inset
4250
4251 ,
4252 \shape up
4253  
4254 \shape default
4255
4256 \begin_inset Flex Code
4257 status collapsed
4258
4259 \begin_layout Plain Layout
4260
4261 \shape up
4262 kxmod
4263 \end_layout
4264
4265 \end_inset
4266
4267 , and 
4268 \begin_inset Flex Code
4269 status collapsed
4270
4271 \begin_layout Plain Layout
4272
4273 \shape up
4274 kcomb
4275 \end_layout
4276
4277 \end_inset
4278
4279  are described in this section.
4280 \end_layout
4281
4282 \begin_layout Labeling
4283 \labelwidthstring 00.00.0000
4284 \begin_inset Flex Code
4285 status collapsed
4286
4287 \begin_layout Plain Layout
4288
4289 \shape up
4290 kmap
4291 \end_layout
4292
4293 \end_inset
4294
4295  Map a character to a string
4296 \end_layout
4297
4298 \begin_layout LyX-Code
4299
4300 \backslash
4301 kmap 
4302 \family roman
4303 \emph on
4304 char
4305 \family default
4306 \emph default
4307  
4308 \family roman
4309 \emph on
4310 string
4311 \end_layout
4312
4313 \begin_layout Standard
4314 This will ma
4315 \family roman
4316 p
4317 \family default
4318  
4319 \family roman
4320 \emph on
4321 char
4322 \family default
4323 \emph default
4324  
4325 \family roman
4326 to
4327 \family default
4328  
4329 \family roman
4330 \emph on
4331 string
4332 \emph default
4333 .
4334  Note that in
4335 \family default
4336  
4337 \family roman
4338 \emph on
4339 string
4340 \emph default
4341 ,
4342 \family default
4343  
4344 \family roman
4345 \shape up
4346 the double-quote (")
4347 \family default
4348 \shape default
4349  
4350 \family roman
4351 and
4352 \family default
4353  
4354 \family roman
4355 \shape up
4356 the backslash (
4357 \backslash
4358 )
4359 \family default
4360 \shape default
4361  
4362 \family roman
4363 must be escaped with a preceding backslash (
4364 \shape up
4365
4366 \backslash
4367
4368 \shape default
4369 )
4370 \family default
4371 .
4372 \end_layout
4373
4374 \begin_layout Standard
4375 An example of a 
4376 \begin_inset Flex Noun
4377 status collapsed
4378
4379 \begin_layout Plain Layout
4380
4381 \shape up
4382 kmap
4383 \end_layout
4384
4385 \end_inset
4386
4387  statement to cause the symbol 
4388 \begin_inset Flex Noun
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \shape up
4394 /
4395 \end_layout
4396
4397 \end_inset
4398
4399  to be output for the keystroke 
4400 \begin_inset Flex Noun
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404
4405 \shape up
4406 &
4407 \end_layout
4408
4409 \end_inset
4410
4411  is:
4412 \end_layout
4413
4414 \begin_layout LyX-Code
4415
4416 \backslash
4417 kmap & /
4418 \end_layout
4419
4420 \begin_layout Labeling
4421 \labelwidthstring 00.00.0000
4422 \begin_inset Flex Code
4423 status collapsed
4424
4425 \begin_layout Plain Layout
4426
4427 \shape up
4428 kmod
4429 \end_layout
4430
4431 \end_inset
4432
4433  Specify an accent character
4434 \end_layout
4435
4436 \begin_layout LyX-Code
4437
4438 \backslash
4439 kmod 
4440 \family roman
4441 \emph on
4442 char accent allowed
4443 \end_layout
4444
4445 \begin_layout Standard
4446 This will make the cha
4447 \family roman
4448 racter
4449 \family default
4450  
4451 \family roman
4452 \emph on
4453 char
4454 \family default
4455 \emph default
4456  
4457 \family roman
4458 \shape up
4459 \emph on
4460 be an accent
4461 \family default
4462 \shape default
4463 \emph default
4464  
4465 \family roman
4466 \shape up
4467 on the
4468 \family default
4469 \shape default
4470  
4471 \family roman
4472 \shape up
4473 \emph on
4474 allowed
4475 \family default
4476 \shape default
4477 \emph default
4478  
4479 \family roman
4480 \shape up
4481 cha
4482 \family default
4483 racter(s).
4484  This is the dead key
4485 \begin_inset Foot
4486 status collapsed
4487
4488 \begin_layout Plain Layout
4489 The term 
4490 \family roman
4491 \emph on
4492 dead key
4493 \family default
4494 \emph default
4495  refers to a key that does not produce a character by itself, but when followed
4496  with another key, produces the desired accent character.
4497  For example, a German characte
4498 \family roman
4499 r with an umlaut like
4500 \family default
4501  
4502 \family roman
4503 \emph on
4504 ä
4505 \family default
4506 \emph default
4507  
4508 \family roman
4509 can be produced in this manner.
4510 \end_layout
4511
4512 \end_inset
4513
4514  mechanism.
4515  
4516 \end_layout
4517
4518 \begin_layout Standard
4519 If you 
4520 \family roman
4521 hit
4522 \family default
4523  
4524 \family roman
4525 \emph on
4526 char
4527 \family default
4528 \emph default
4529  
4530 \family roman
4531 and then another key not in
4532 \family default
4533  
4534 \family roman
4535 \emph on
4536 allowed
4537 \emph default
4538 , you will get a
4539 \family default
4540  
4541 \family roman
4542 \emph on
4543 char
4544 \family default
4545 \emph default
4546  
4547 \family roman
4548 followed by the other, not allowed key, as output.
4549
4550 \family default
4551  Note that a 
4552 \begin_inset Flex Noun
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556
4557 \shape up
4558 Backspace
4559 \end_layout
4560
4561 \end_inset
4562
4563  cancels a dead key, so if 
4564 \family roman
4565 you hit
4566 \family default
4567  
4568 \family roman
4569 \emph on
4570 char
4571 \family default
4572 \emph default
4573  
4574 \begin_inset Flex Noun
4575 status collapsed
4576
4577 \begin_layout Plain Layout
4578
4579 \shape up
4580 \emph on
4581 Backspace
4582 \end_layout
4583
4584 \end_inset
4585
4586 , the cursor will not go one position backwards but will instead cancel
4587  the effect t
4588 \family roman
4589 hat
4590 \family default
4591  
4592 \family roman
4593 \shape up
4594 \emph on
4595 char
4596 \family default
4597 \shape default
4598 \emph default
4599  
4600 \family roman
4601 \shape up
4602 might have had on the next keystroke.
4603  
4604 \end_layout
4605
4606 \begin_layout Standard
4607 The following example specifies that the character ' is to be an acute accent,
4608  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4609 \end_layout
4610
4611 \begin_layout LyX-Code
4612
4613 \backslash
4614 kmod ' acute aeiouAEIOU
4615 \end_layout
4616
4617 \begin_layout Labeling
4618 \labelwidthstring 00.00.0000
4619 \begin_inset Flex Code
4620 status collapsed
4621
4622 \begin_layout Plain Layout
4623 kxmod
4624 \end_layout
4625
4626 \end_inset
4627
4628  Specify an exception to the accent character
4629 \end_layout
4630
4631 \begin_layout LyX-Code
4632
4633 \backslash
4634 kxmod  
4635 \family roman
4636 \emph on
4637 accent char result
4638 \end_layout
4639
4640 \begin_layout Standard
4641 This defines an exce
4642 \family roman
4643 ption for
4644 \family default
4645  
4646 \family roman
4647 \emph on
4648 accent
4649 \family default
4650 \emph default
4651  
4652 \family roman
4653 on
4654 \family default
4655  
4656 \family roman
4657 \emph on
4658 char
4659 \emph default
4660 .
4661  T
4662 \shape up
4663 he
4664 \family default
4665 \shape default
4666  
4667 \family roman
4668 \shape up
4669 \emph on
4670 accent
4671 \family default
4672 \shape default
4673 \emph default
4674  
4675 \family roman
4676 \shape up
4677 must
4678 \family default
4679 \shape default
4680  
4681 \shape up
4682 have been assigned a keystroke with a previous
4683 \shape default
4684  
4685 \begin_inset Flex Code
4686 status collapsed
4687
4688 \begin_layout Plain Layout
4689
4690 \shape up
4691
4692 \backslash
4693 kmo
4694 \shape default
4695 d
4696 \end_layout
4697
4698 \end_inset
4699
4700  declar
4701 \family roman
4702 ation and
4703 \family default
4704  
4705 \family roman
4706 \emph on
4707 char
4708 \family default
4709 \emph default
4710  
4711 \family roman
4712 must not belong in the
4713 \family default
4714  
4715 \family roman
4716 \emph on
4717 allowed
4718 \family default
4719 \emph default
4720  
4721 \family roman
4722 set of
4723 \family default
4724  
4725 \family roman
4726 \emph on
4727 accent
4728 \emph default
4729 .
4730  When
4731 \family default
4732  
4733 \family roman
4734 \shape up
4735 you enter the
4736 \family default
4737 \shape default
4738  
4739 \family roman
4740 \shape up
4741 \emph on
4742 accent char
4743 \family default
4744 \shape default
4745 \emph default
4746  
4747 \family roman
4748 \shape up
4749 sequence,
4750 \family default
4751 \shape default
4752  
4753 \family roman
4754 \shape up
4755 \emph on
4756 result
4757 \emph default
4758  is produced.
4759  If such a declaration does not exist in
4760 \family default
4761 \shape default
4762  
4763 \shape up
4764 the
4765 \shape default
4766  
4767 \begin_inset Flex Code
4768 status collapsed
4769
4770 \begin_layout Plain Layout
4771
4772 \shape up
4773 .kmap
4774 \end_layout
4775
4776 \end_inset
4777
4778  file and yo
4779 \family roman
4780 u enter
4781 \family default
4782  
4783 \family roman
4784 \emph on
4785 accent char
4786 \emph default
4787 , you get
4788 \family default
4789  
4790 \family roman
4791 \emph on
4792 accent_key char
4793 \emph default
4794  where
4795 \family default
4796  
4797 \family roman
4798 \emph on
4799 accent_key
4800 \emph default
4801  is the first arg
4802 \family default
4803 ument of the 
4804 \begin_inset Flex Code
4805 status collapsed
4806
4807 \begin_layout Plain Layout
4808
4809 \shape up
4810
4811 \backslash
4812 kmod
4813 \end_layout
4814
4815 \end_inset
4816
4817  declaration.
4818  
4819 \end_layout
4820
4821 \begin_layout Standard
4822 The following command produces causes äi to be produced when you enter acute-i
4823  ('i):
4824 \end_layout
4825
4826 \begin_layout LyX-Code
4827
4828 \backslash
4829 kxmod acute i "
4830 \backslash
4831
4832 \backslash
4833 '{
4834 \backslash
4835
4836 \backslash
4837 i}"
4838 \end_layout
4839
4840 \begin_layout Labeling
4841 \labelwidthstring 00.00.0000
4842 \begin_inset Flex Code
4843 status collapsed
4844
4845 \begin_layout Plain Layout
4846 kcomb
4847 \end_layout
4848
4849 \end_inset
4850
4851  Combine two accent characters
4852 \end_layout
4853
4854 \begin_layout LyX-Code
4855
4856 \backslash
4857 kcomb 
4858 \family roman
4859 \emph on
4860 accent1 accent2 allowed
4861 \end_layout
4862
4863 \begin_layout Standard
4864 This one is getting pretty esoteric.
4865  It allows you to combine the effect 
4866 \family roman
4867 of
4868 \family default
4869  
4870 \family roman
4871 \emph on
4872 accent1
4873 \family default
4874 \emph default
4875  
4876 \family roman
4877 and
4878 \family default
4879  
4880 \family roman
4881 \emph on
4882 accent2
4883 \family default
4884 \emph default
4885  
4886 \family roman
4887 (in that order!) on
4888 \family default
4889  
4890 \family roman
4891 \emph on
4892 allowed
4893 \family default
4894 \emph default
4895  
4896 \family roman
4897 chars.
4898  The keystrokes for
4899 \family default
4900  
4901 \family roman
4902 \emph on
4903 accent1
4904 \family default
4905 \emph default
4906  
4907 \family roman
4908 and
4909 \family default
4910  
4911 \family roman
4912 \emph on
4913 accent2
4914 \family default
4915 \emph default
4916  
4917 \family roman
4918 must have be
4919 \family default
4920 en set with a 
4921 \begin_inset Flex Code
4922 status collapsed
4923
4924 \begin_layout Plain Layout
4925
4926 \shape up
4927
4928 \backslash
4929 kmod
4930 \end_layout
4931
4932 \end_inset
4933
4934  command at 
4935 \family roman
4936 a
4937 \family default
4938  
4939 \family roman
4940 \emph on
4941 previous
4942 \family default
4943 \emph default
4944  
4945 \family roman
4946 point in the
4947 \family default
4948  file.
4949  
4950 \end_layout
4951
4952 \begin_layout Standard
4953 Consider this example from the 
4954 \begin_inset Flex Code
4955 status collapsed
4956
4957 \begin_layout Plain Layout
4958
4959 \shape up
4960 greek.kmap
4961 \end_layout
4962
4963 \end_inset
4964
4965  file:
4966 \end_layout
4967
4968 \begin_layout LyX-Code
4969
4970 \backslash
4971 kmod ; acute aeioyvhAEIOYVH 
4972 \backslash
4973 kmod : umlaut iyIY 
4974 \backslash
4975 kcomb acute umlaut iyIY
4976 \end_layout
4977
4978 \begin_layout Standard
4979 This allows you to press 
4980 \begin_inset Flex Noun
4981 status collapsed
4982
4983 \begin_layout Plain Layout
4984
4985 \shape up
4986 ;:i
4987 \end_layout
4988
4989 \end_inset
4990
4991  and get the effect of 
4992 \begin_inset Flex Code
4993 status collapsed
4994
4995 \begin_layout Plain Layout
4996
4997 \shape up
4998
4999 \backslash
5000 '{
5001 \backslash
5002 "{i}}
5003 \end_layout
5004
5005 \end_inset
5006
5007 .
5008  
5009 \family roman
5010 \shape up
5011 A backspace
5012 \family default
5013 \shape default
5014  in this case cancels the last dead key, so if you press 
5015 \begin_inset Flex Noun
5016 status collapsed
5017
5018 \begin_layout Plain Layout
5019
5020 \shape up
5021 ;: Backspace i
5022 \end_layout
5023
5024 \end_inset
5025
5026  you get 
5027 \begin_inset Flex Code
5028 status collapsed
5029
5030 \begin_layout Plain Layout
5031
5032 \shape up
5033
5034 \backslash
5035 '{i}
5036 \end_layout
5037
5038 \end_inset
5039
5040 .
5041 \end_layout
5042
5043 \begin_layout Subsection
5044 The .cdef File
5045 \end_layout
5046
5047 \begin_layout Standard
5048 After the 
5049 \begin_inset Flex Code
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053
5054 \shape up
5055 .kmap
5056 \end_layout
5057
5058 \end_inset
5059
5060  mapping is performed, a 
5061 \begin_inset Flex Code
5062 status collapsed
5063
5064 \begin_layout Plain Layout
5065
5066 \shape up
5067 .cde
5068 \shape default
5069 f
5070 \end_layout
5071
5072 \end_inset
5073
5074  file maps the strings that the symbols generate to characters in the current
5075  font.
5076  The \SpecialChar LyX
5077  distribution currently includes at least the 
5078 \begin_inset Flex Code
5079 status collapsed
5080
5081 \begin_layout Plain Layout
5082
5083 \shape up
5084 iso8859-1.cdef
5085 \end_layout
5086
5087 \end_inset
5088
5089  and 
5090 \begin_inset Flex Code
5091 status collapsed
5092
5093 \begin_layout Plain Layout
5094
5095 \shape up
5096 iso8859-2.cdef
5097 \end_layout
5098
5099 \end_inset
5100
5101  files.
5102 \end_layout
5103
5104 \begin_layout Standard
5105 In general the 
5106 \begin_inset Flex Code
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110
5111 \shape up
5112 .cdef
5113 \end_layout
5114
5115 \end_inset
5116
5117  file is a sequence of declarations of the form
5118 \end_layout
5119
5120 \begin_layout LyX-Code
5121
5122 \family roman
5123 \emph on
5124 char_index_in_set
5125 \family default
5126 \emph default
5127  
5128 \family roman
5129 \emph on
5130  string
5131 \end_layout
5132
5133 \begin_layout Standard
5134 For example, in order to map 
5135 \begin_inset Flex Noun
5136 status collapsed
5137
5138 \begin_layout Plain Layout
5139
5140 \shape up
5141
5142 \backslash
5143 '{e}
5144 \end_layout
5145
5146 \end_inset
5147
5148  to the corresponding character in the iso-8859-1 set (233), the following
5149  declaration is used
5150 \end_layout
5151
5152 \begin_layout LyX-Code
5153 233 "
5154 \backslash
5155
5156 \backslash
5157 '{e}"
5158 \end_layout
5159
5160 \begin_layout Standard
5161 with 
5162 \begin_inset Flex Code
5163 status collapsed
5164
5165 \begin_layout Plain Layout
5166
5167 \backslash
5168
5169 \end_layout
5170
5171 \end_inset
5172
5173  and 
5174 \begin_inset Flex Code
5175 status collapsed
5176
5177 \begin_layout Plain Layout
5178 "
5179 \end_layout
5180
5181 \end_inset
5182
5183  being escap
5184 \family roman
5185 ed in
5186 \family default
5187  
5188 \family roman
5189 \emph on
5190 string
5191 \emph default
5192 .
5193  Note that
5194 \family default
5195  the same character can apply to more than one string.
5196  In the 
5197 \begin_inset Flex Code
5198 status collapsed
5199
5200 \begin_layout Plain Layout
5201 i
5202 \shape up
5203 so-8859-7.cdef
5204 \end_layout
5205
5206 \end_inset
5207
5208  file you have
5209 \end_layout
5210
5211 \begin_layout LyX-Code
5212 192 "
5213 \backslash
5214
5215 \backslash
5216 '{
5217 \backslash
5218
5219 \backslash
5220
5221 \backslash
5222 "{i}}"
5223 \begin_inset Newline newline
5224 \end_inset
5225
5226 192 "
5227 \backslash
5228
5229 \backslash
5230
5231 \backslash
5232 "{
5233 \backslash
5234
5235 \backslash
5236 '{i}}"
5237 \end_layout
5238
5239 \begin_layout Standard
5240 If \SpecialChar LyX
5241  cannot find a mapping for the string produced by the keystroke or a
5242  deadkey sequence, it will check if it looks like an accented char and try
5243  to draw an accent over the character on screen.
5244 \end_layout
5245
5246 \begin_layout Subsection
5247 Dead Keys
5248 \end_layout
5249
5250 \begin_layout Standard
5251 There is a second way to add support for international characters through
5252  so-called dead-keys.
5253  A dead-key works in combination with a letter to produce an accented character.
5254  Here, we'll explain how to create a really simple dead-key to illustrate
5255  how they work.
5256 \end_layout
5257
5258 \begin_layout Standard
5259 Suppose you happen to need the circumflex character, 
5260 \begin_inset Quotes eld
5261 \end_inset
5262
5263  ̂
5264 \begin_inset Quotes erd
5265 \end_inset
5266
5267 .
5268  You could bind the 
5269 \begin_inset Flex Noun
5270 status collapsed
5271
5272 \begin_layout Plain Layout
5273 ^
5274 \end_layout
5275
5276 \end_inset
5277
5278 -key [a.k.a.
5279 \begin_inset space ~
5280 \end_inset
5281
5282
5283 \begin_inset Flex Noun
5284 status collapsed
5285
5286 \begin_layout Plain Layout
5287 Shift-6
5288 \end_layout
5289
5290 \end_inset
5291
5292 ] to the \SpecialChar LyX
5293  command 
5294 \begin_inset Flex Code
5295 status collapsed
5296
5297 \begin_layout Plain Layout
5298 accent-circumflex
5299 \end_layout
5300
5301 \end_inset
5302
5303  in your 
5304 \begin_inset Flex Code
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308 lyxrc
5309 \end_layout
5310
5311 \end_inset
5312
5313  file.
5314  Now, whenever you type the 
5315 \begin_inset Flex Noun
5316 status collapsed
5317
5318 \begin_layout Plain Layout
5319 ^
5320 \end_layout
5321
5322 \end_inset
5323
5324 -key followed by a letter, that letter will have a circumflex accent on
5325  it.
5326  For example, the sequence 
5327 \begin_inset Quotes eld
5328 \end_inset
5329
5330
5331 \begin_inset Flex Noun
5332 status collapsed
5333
5334 \begin_layout Plain Layout
5335 ^e
5336 \end_layout
5337
5338 \end_inset
5339
5340
5341 \begin_inset Quotes erd
5342 \end_inset
5343
5344  produces the letter: 
5345 \begin_inset Quotes eld
5346 \end_inset
5347
5348 ê
5349 \begin_inset Quotes erd
5350 \end_inset
5351
5352 .
5353  If you tried to type 
5354 \begin_inset Quotes eld
5355 \end_inset
5356
5357
5358 \begin_inset Flex Noun
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 ^t
5363 \end_layout
5364
5365 \end_inset
5366
5367
5368 \begin_inset Quotes erd
5369 \end_inset
5370
5371 , however, \SpecialChar LyX
5372  will complain with a beep, since a 
5373 \begin_inset Quotes eld
5374 \end_inset
5375
5376
5377 \begin_inset Flex Noun
5378 status collapsed
5379
5380 \begin_layout Plain Layout
5381 t
5382 \end_layout
5383
5384 \end_inset
5385
5386
5387 \begin_inset Quotes erd
5388 \end_inset
5389
5390  never takes a circumflex accent.
5391  Hitting 
5392 \begin_inset Flex Noun
5393 status collapsed
5394
5395 \begin_layout Plain Layout
5396 Space
5397 \end_layout
5398
5399 \end_inset
5400
5401  after a dead-key produces the bare-accent.
5402  Please note this last point! If you bind a key to a dead-key, you'll need
5403  to rebind the character on that key to yet another key.
5404  Binding the 
5405 \begin_inset Flex Noun
5406 status collapsed
5407
5408 \begin_layout Plain Layout
5409 ,-key
5410 \end_layout
5411
5412 \end_inset
5413
5414  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5415 \end_layout
5416
5417 \begin_layout Standard
5418 One common way to bind dead-keys is to use 
5419 \begin_inset Flex Noun
5420 status collapsed
5421
5422 \begin_layout Plain Layout
5423 Meta-
5424 \end_layout
5425
5426 \end_inset
5427
5428
5429 \begin_inset Flex Noun
5430 status collapsed
5431
5432 \begin_layout Plain Layout
5433 Ctrl-
5434 \end_layout
5435
5436 \end_inset
5437
5438 , and 
5439 \begin_inset Flex Noun
5440 status collapsed
5441
5442 \begin_layout Plain Layout
5443 Shift-
5444 \end_layout
5445
5446 \end_inset
5447
5448  in combination with an accent, like 
5449 \begin_inset Quotes eld
5450 \end_inset
5451
5452
5453 \begin_inset Flex Noun
5454 status collapsed
5455
5456 \begin_layout Plain Layout
5457 ~
5458 \end_layout
5459
5460 \end_inset
5461
5462
5463 \begin_inset Quotes erd
5464 \end_inset
5465
5466  or 
5467 \begin_inset Quotes eld
5468 \end_inset
5469
5470
5471 \begin_inset Flex Noun
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475 ,
5476 \end_layout
5477
5478 \end_inset
5479
5480
5481 \begin_inset Quotes erd
5482 \end_inset
5483
5484  or 
5485 \begin_inset Quotes eld
5486 \end_inset
5487
5488
5489 \begin_inset Flex Noun
5490 status collapsed
5491
5492 \begin_layout Plain Layout
5493 ^
5494 \end_layout
5495
5496 \end_inset
5497
5498
5499 \begin_inset Quotes erd
5500 \end_inset
5501
5502 .
5503  Another way involves using 
5504 \begin_inset Flex Code
5505 status collapsed
5506
5507 \begin_layout Plain Layout
5508 xmodmap
5509 \end_layout
5510
5511 \end_inset
5512
5513  and 
5514 \begin_inset Flex Code
5515 status collapsed
5516
5517 \begin_layout Plain Layout
5518 xkeycaps
5519 \end_layout
5520
5521 \end_inset
5522
5523  to set up the special 
5524 \begin_inset Flex Code
5525 status collapsed
5526
5527 \begin_layout Plain Layout
5528 Mode_Switch
5529 \end_layout
5530
5531 \end_inset
5532
5533  key.
5534  The 
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539 Mode_Switch
5540 \end_layout
5541
5542 \end_inset
5543
5544  acts in some ways just like 
5545 \begin_inset Flex Noun
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 Shift
5550 \end_layout
5551
5552 \end_inset
5553
5554  and permits you to bind keys to accented characters.
5555  You can also turn keys into dead-keys by binding them to something like
5556  
5557 \begin_inset Flex Code
5558 status collapsed
5559
5560 \begin_layout Plain Layout
5561 usldead_cedilla
5562 \end_layout
5563
5564 \end_inset
5565
5566  and then binding this symbolic key to the corresponding \SpecialChar LyX
5567  command.
5568 \begin_inset Foot
5569 status collapsed
5570
5571 \begin_layout Plain Layout
5572 Note from 
5573 \noun on
5574 John Weiss
5575 \noun default
5576 : This is exactly what I do in my 
5577 \begin_inset Flex Code
5578 status collapsed
5579
5580 \begin_layout Plain Layout
5581 ~/.lyx/lyxrc
5582 \end_layout
5583
5584 \end_inset
5585
5586  and my 
5587 \begin_inset Flex Code
5588 status collapsed
5589
5590 \begin_layout Plain Layout
5591 ~/.xmodmap
5592 \end_layout
5593
5594 \end_inset
5595
5596  files.
5597  I have my 
5598 \begin_inset Flex Noun
5599 status collapsed
5600
5601 \begin_layout Plain Layout
5602 Scroll
5603 \begin_inset space ~
5604 \end_inset
5605
5606 Lock
5607 \end_layout
5608
5609 \end_inset
5610
5611  key set up as 
5612 \begin_inset Flex Code
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 Mode_Shift
5617 \end_layout
5618
5619 \end_inset
5620
5621  and a bunch of these 
5622 \begin_inset Quotes eld
5623 \end_inset
5624
5625
5626 \begin_inset Flex Code
5627 status collapsed
5628
5629 \begin_layout Plain Layout
5630 usldead_*
5631 \end_layout
5632
5633 \end_inset
5634
5635
5636 \begin_inset Quotes erd
5637 \end_inset
5638
5639  symbolic keys bound such things as 
5640 \begin_inset Flex Noun
5641 status collapsed
5642
5643 \begin_layout Plain Layout
5644 Scroll
5645 \begin_inset space ~
5646 \end_inset
5647
5648 Lock-^
5649 \end_layout
5650
5651 \end_inset
5652
5653  and 
5654 \begin_inset Flex Noun
5655 status collapsed
5656
5657 \begin_layout Plain Layout
5658 Scroll
5659 \begin_inset space ~
5660 \end_inset
5661
5662 Lock-~
5663 \end_layout
5664
5665 \end_inset
5666
5667 .
5668  This is how I produce my accented characters.
5669 \end_layout
5670
5671 \end_inset
5672
5673  You can make just about anything into the 
5674 \begin_inset Flex Code
5675 status collapsed
5676
5677 \begin_layout Plain Layout
5678 Mode_Switch
5679 \end_layout
5680
5681 \end_inset
5682
5683  key: One of the 
5684 \begin_inset Flex Noun
5685 status collapsed
5686
5687 \begin_layout Plain Layout
5688 Ctrl-
5689 \end_layout
5690
5691 \end_inset
5692
5693  keys, a spare function key, etc.
5694  As for the \SpecialChar LyX
5695  commands that produce accents, check the entry for 
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700 accent-acute
5701 \end_layout
5702
5703 \end_inset
5704
5705  in the 
5706 \emph on
5707 Reference Manual
5708 \emph default
5709 .
5710  You'll find the complete list there.
5711 \end_layout
5712
5713 \begin_layout Subsection
5714 Saving your Language Configuration
5715 \end_layout
5716
5717 \begin_layout Standard
5718 You can edit your preferences so that your desired language environment
5719  is automatically configured when \SpecialChar LyX
5720  starts up, via the 
5721 \begin_inset Flex Noun
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 Edit\SpecialChar menuseparator
5726 Preferences
5727 \end_layout
5728
5729 \end_inset
5730
5731  dialog.
5732 \end_layout
5733
5734 \begin_layout Chapter
5735 Installing New Document Classes, Layouts, and Templates
5736 \begin_inset CommandInset label
5737 LatexCommand label
5738 name "cha:Installing-New-Document"
5739
5740 \end_inset
5741
5742
5743 \begin_inset Argument 1
5744 status collapsed
5745
5746 \begin_layout Plain Layout
5747 Installing New Document Classes
5748 \end_layout
5749
5750 \end_inset
5751
5752
5753 \end_layout
5754
5755 \begin_layout Standard
5756 In this chapter, we describe the procedures for creating and installing
5757  new \SpecialChar LyX
5758  layout and template files, as well as offer a refresher on correctly
5759  installing new \SpecialChar LaTeX
5760  document classes.
5761  
5762 \end_layout
5763
5764 \begin_layout Standard
5765 First, let us a say a few words about how one ought to think about the relation
5766  between \SpecialChar LyX
5767  and \SpecialChar LaTeX
5768 .
5769  The thing to understand is that, in a certain sense, \SpecialChar LyX
5770  doesn't know anything
5771  about \SpecialChar LaTeX
5772 .
5773  Indeed, from \SpecialChar LyX
5774 's point of view, \SpecialChar LaTeX
5775  is just one of several 
5776 \begin_inset Quotes eld
5777 \end_inset
5778
5779 backend formats
5780 \begin_inset Quotes erd
5781 \end_inset
5782
5783  in which it is capable of producing output.
5784  Other such formats are DocBook, plaintext, and XHTML.
5785  \SpecialChar LaTeX
5786  is, of course, a particularly important format, but very little of the
5787  information \SpecialChar LyX
5788  has about \SpecialChar LaTeX
5789  is actually contained in the program itself.
5790 \begin_inset Foot
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794 Some commands are sufficiently complex that they are 
5795 \begin_inset Quotes eld
5796 \end_inset
5797
5798 hardcoded
5799 \begin_inset Quotes erd
5800 \end_inset
5801
5802  into \SpecialChar LyX
5803 .
5804  But the developers generally regard this as a Bad Thing.
5805 \end_layout
5806
5807 \end_inset
5808
5809  Rather, that information, even for the standard classes like 
5810 \begin_inset Flex Code
5811 status collapsed
5812
5813 \begin_layout Plain Layout
5814 article.cls
5815 \end_layout
5816
5817 \end_inset
5818
5819 , is contained in `layout files'.
5820  Similarly, \SpecialChar LyX
5821  itself does not know much about DocBook or XHTML.
5822  What it knows is contained in layout files.
5823 \end_layout
5824
5825 \begin_layout Standard
5826 You can think of the layout file for a given document class as a translation
5827  manual between \SpecialChar LyX
5828  constructs—paragraphs with their corresponding styles,
5829  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5830 , DocBook, or XHTML
5831  constructs.
5832  Almost everything \SpecialChar LyX
5833  knows about 
5834 \begin_inset Flex Code
5835 status collapsed
5836
5837 \begin_layout Plain Layout
5838 article.cls
5839 \end_layout
5840
5841 \end_inset
5842
5843 , for example, is contained in the file 
5844 \begin_inset Flex Code
5845 status collapsed
5846
5847 \begin_layout Plain Layout
5848 article.layout
5849 \end_layout
5850
5851 \end_inset
5852
5853  and in various other files it includes.
5854  For this reason, anyone intending to write layout files should plan to
5855  study the existing files.
5856  A good place to start is with 
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 stdsections.inc
5862 \end_layout
5863
5864 \end_inset
5865
5866 , which is included in 
5867 \begin_inset Flex Code
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 article.layout
5872 \end_layout
5873
5874 \end_inset
5875
5876
5877 \begin_inset Flex Code
5878 status collapsed
5879
5880 \begin_layout Plain Layout
5881 book.layout
5882 \end_layout
5883
5884 \end_inset
5885
5886 , and many of the other layout files for document classes.
5887  This file is where sections and the like are defined: 
5888 \begin_inset Flex Code
5889 status collapsed
5890
5891 \begin_layout Plain Layout
5892 stdsections.inc
5893 \end_layout
5894
5895 \end_inset
5896
5897  tells \SpecialChar LyX
5898  how paragraphs that are marked with the Section, Subsection, etc,
5899  styles can be translated into corresponding \SpecialChar LaTeX
5900 , DocBook, and XHTML commands
5901  and tags.
5902  The 
5903 \begin_inset Flex Code
5904 status collapsed
5905
5906 \begin_layout Plain Layout
5907 article.layout
5908 \end_layout
5909
5910 \end_inset
5911
5912  file basically just includes several of these 
5913 \begin_inset Flex Code
5914 status collapsed
5915
5916 \begin_layout Plain Layout
5917 std*.inc
5918 \end_layout
5919
5920 \end_inset
5921
5922  files.
5923 \end_layout
5924
5925 \begin_layout Standard
5926 Defining the \SpecialChar LyX
5927 –\SpecialChar LaTeX
5928  correspondence is not the only thing layout files do, though.
5929  Their other job is to define how the \SpecialChar LyX
5930  constructs themselves will appear
5931  on-screen.
5932  The fact that layout files have these two jobs is often a source of confusion,
5933  because they are completely separate.
5934  Telling \SpecialChar LyX
5935  how to translate a certain paragraph style into \SpecialChar LaTeX
5936  does not tell
5937  \SpecialChar LyX
5938  how to display it; conversely, telling \SpecialChar LyX
5939  how to display a certain paragraph
5940  style does not tell \SpecialChar LyX
5941  how to translate it into \SpecialChar LaTeX
5942  (let alone tell \SpecialChar LaTeX
5943  how to
5944  display it).
5945  So, in general, when you define a new \SpecialChar LyX
5946  construct, you must always do two
5947  quite separate things: (i)
5948 \begin_inset space ~
5949 \end_inset
5950
5951 tell \SpecialChar LyX
5952  how to translate it into \SpecialChar LaTeX
5953  and (ii)
5954 \begin_inset space ~
5955 \end_inset
5956
5957 tell \SpecialChar LyX
5958  how to display it.
5959 \end_layout
5960
5961 \begin_layout Standard
5962 Much the same is true, of course, as regards \SpecialChar LyX
5963 's other backend formats, though
5964  XHTML is in some ways different, because in that case \SpecialChar LyX
5965  
5966 \emph on
5967 is
5968 \emph default
5969  able, to some extent, to use information about how it should display a
5970  paragraph on the screen to output information (in the form of CSS) about
5971  how the paragraph should be displayed in a browser.
5972  Even in this case, however, the distinction between what \SpecialChar LyX
5973  does internally
5974  and how things are rendered externally remains in force, and the two can
5975  be controlled separately.
5976  See 
5977 \begin_inset CommandInset ref
5978 LatexCommand ref
5979 reference "sec:Tags-for-XHTML"
5980
5981 \end_inset
5982
5983  for the details.
5984 \end_layout
5985
5986 \begin_layout Section
5987 Installing new \SpecialChar LaTeX
5988  files
5989 \end_layout
5990
5991 \begin_layout Standard
5992 Some installations may not include a \SpecialChar LaTeX
5993  package or class file that you would
5994  like to use within \SpecialChar LyX
5995 .
5996  For example, you might need Foil\SpecialChar TeX
5997 , a package for preparing slides for overhead
5998  projectors.
5999  Modern \SpecialChar LaTeX
6000  distributions like \SpecialChar TeX
6001 Live (2008 or newer) or MiK\SpecialChar TeX
6002  provide a user interface
6003  for installing such packages.
6004  For example, with MiK\SpecialChar TeX
6005 , you start the program 
6006 \begin_inset Quotes eld
6007 \end_inset
6008
6009 Package
6010 \begin_inset space ~
6011 \end_inset
6012
6013 Manager
6014 \begin_inset Quotes erd
6015 \end_inset
6016
6017  to get a list of available packages.
6018  To install one of them, right click on it or use the corresponding toolbar
6019  button.
6020 \end_layout
6021
6022 \begin_layout Standard
6023 If your \SpecialChar LaTeX
6024  distribution does not provide such a `package manager', or if the
6025  package is not available from your distribution, then follow these steps
6026  to install it manually:
6027 \end_layout
6028
6029 \begin_layout Enumerate
6030 Get the package from 
6031 \begin_inset CommandInset href
6032 LatexCommand href
6033 name "CTAN"
6034 target "http://www.ctan.org/"
6035
6036 \end_inset
6037
6038  or wherever.
6039 \end_layout
6040
6041 \begin_layout Enumerate
6042 If the package contains a file with the ending 
6043 \begin_inset Quotes eld
6044 \end_inset
6045
6046
6047 \begin_inset Flex Code
6048 status collapsed
6049
6050 \begin_layout Plain Layout
6051 .ins
6052 \end_layout
6053
6054 \end_inset
6055
6056
6057 \begin_inset Quotes erd
6058 \end_inset
6059
6060  (is the case for Foil\SpecialChar TeX
6061 ) then open a console, change to the folder of this
6062  file and execute the command 
6063 \begin_inset Flex Code
6064 status collapsed
6065
6066 \begin_layout Plain Layout
6067 latex foiltex.ins
6068 \end_layout
6069
6070 \end_inset
6071
6072 .
6073  You have now unpacked the package and have all files to install it.
6074  Most \SpecialChar LaTeX
6075 -packages are not packed and you can skip this step.
6076 \end_layout
6077
6078 \begin_layout Enumerate
6079 Now you need to decide if the package should be available for all users
6080  or only for you.
6081 \end_layout
6082
6083 \begin_deeper
6084 \begin_layout Enumerate
6085 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6086  for all users on your system, then install it in your `local' \SpecialChar TeX
6087  tree, otherwise
6088  install it in your own `user' \SpecialChar TeX
6089  tree.
6090  Where these trees should be created, if they do not already exist, depends
6091  on your system.
6092  To find this out, look in the file 
6093 \begin_inset Flex Code
6094 status collapsed
6095
6096 \begin_layout Plain Layout
6097 texmf.cnf
6098 \end_layout
6099
6100 \end_inset
6101
6102 .
6103 \begin_inset Foot
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 This is usually in the directory 
6108 \begin_inset Flex Code
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 $TEXMF/web2c
6113 \end_layout
6114
6115 \end_inset
6116
6117 , though you can execute the command 
6118 \begin_inset Flex Code
6119 status collapsed
6120
6121 \begin_layout Plain Layout
6122 kpsewhich texmf.cnf
6123 \end_layout
6124
6125 \end_inset
6126
6127  to locate it.
6128 \end_layout
6129
6130 \end_inset
6131
6132  The location of the `local' \SpecialChar TeX
6133  tree is defined by the 
6134 \begin_inset Flex Code
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 TEXMFLOCAL
6139 \end_layout
6140
6141 \end_inset
6142
6143  variable; this is usually somewhere like 
6144 \begin_inset Flex Code
6145 status collapsed
6146
6147 \begin_layout Plain Layout
6148 /usr/local/share/texmf
6149 \end_layout
6150
6151 \end_inset
6152
6153  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6154 Live
6155  distribution.
6156  The location of the `user' \SpecialChar TeX
6157  tree is defined by 
6158 \begin_inset Flex Code
6159 status collapsed
6160
6161 \begin_layout Plain Layout
6162 TEXMFHOME
6163 \end_layout
6164
6165 \end_inset
6166
6167  and is commonly 
6168 \begin_inset Flex Code
6169 status collapsed
6170
6171 \begin_layout Plain Layout
6172 $HOME/texmf
6173 \end_layout
6174
6175 \end_inset
6176
6177  or 
6178 \begin_inset Flex Code
6179 status collapsed
6180
6181 \begin_layout Plain Layout
6182
6183 \family sans
6184 \lang french
6185 $HOME/.texliveXXXX
6186 \end_layout
6187
6188 \end_inset
6189
6190 .
6191  (If these variables are not predefined, you have to define them.) You'll
6192  probably need root permissions to create or modify the `local' tree, but
6193  not for your `user' tree.
6194 \begin_inset Newline newline
6195 \end_inset
6196
6197 In general, it is recommended to install in the user tree because your user
6198  will not be modified or even overwritten when you upgrade your system.
6199  It will typically also be backed up together with everything else when
6200  you backup your home directory (which, of course, you do on a regular basis).
6201 \end_layout
6202
6203 \begin_layout Enumerate
6204 On Windows, if you want the new package to be available for all users on
6205  your system, change to the folder where \SpecialChar LaTeX
6206  is installed and then change to
6207  the subfolder 
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 ~
6213 \backslash
6214 tex
6215 \backslash
6216 latex
6217 \end_layout
6218
6219 \end_inset
6220
6221 .
6222  (For MiK\SpecialChar TeX
6223 , this would be by default the folder 
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 ~:
6229 \backslash
6230 Programs
6231 \backslash
6232 MiKTeX
6233 \backslash
6234 tex
6235 \backslash
6236 latex
6237 \end_layout
6238
6239 \end_inset
6240
6241 .)
6242 \begin_inset Foot
6243 status collapsed
6244
6245 \begin_layout Plain Layout
6246 Note that this will be the correct path only on English installations.
6247  On a German one, it would be 
6248 \begin_inset Flex Code
6249 status collapsed
6250
6251 \begin_layout Plain Layout
6252 ~:
6253 \backslash
6254 Programme
6255 \backslash
6256 MiKTeX
6257 \backslash
6258 tex
6259 \backslash
6260 latex
6261 \end_layout
6262
6263 \end_inset
6264
6265 , and similarly for other languages.
6266 \end_layout
6267
6268 \end_inset
6269
6270  Create there a new folder 
6271 \begin_inset Flex Code
6272 status collapsed
6273
6274 \begin_layout Plain Layout
6275 foiltex
6276 \end_layout
6277
6278 \end_inset
6279
6280  and copy all files of the package into it.
6281  
6282 \begin_inset Newline newline
6283 \end_inset
6284
6285 If the package should only available for you or you don't have admin permissions
6286 , do the same, but in the local \SpecialChar LaTeX
6287  folder.
6288  E.
6289 \begin_inset space \thinspace{}
6290 \end_inset
6291
6292 g., for MiK\SpecialChar TeX
6293
6294 \begin_inset space ~
6295 \end_inset
6296
6297 2.8 under Windows XP, this would be the folder:
6298 \begin_inset Newline newline
6299 \end_inset
6300
6301
6302 \family sans
6303
6304 \begin_inset Flex Code
6305 status collapsed
6306
6307 \begin_layout Plain Layout
6308 ~:
6309 \backslash
6310 Documents and Settings
6311 \backslash
6312 <username>
6313 \backslash
6314 Application Data
6315 \backslash
6316
6317 \end_layout
6318
6319 \end_inset
6320
6321
6322 \begin_inset Newline newline
6323 \end_inset
6324
6325
6326 \family default
6327
6328 \begin_inset Phantom HPhantom
6329 status open
6330
6331 \begin_layout Plain Layout
6332
6333 \family sans
6334 ~:
6335 \backslash
6336
6337 \end_layout
6338
6339 \end_inset
6340
6341
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346 MiKTeX
6347 \backslash
6348 2.8
6349 \backslash
6350 tex
6351 \backslash
6352 latex
6353 \end_layout
6354
6355 \end_inset
6356
6357
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361 On Vista, it would be:
6362 \begin_inset Newline newline
6363 \end_inset
6364
6365
6366 \begin_inset Flex Code
6367 status collapsed
6368
6369 \begin_layout Plain Layout
6370 ~:
6371 \backslash
6372 Users
6373 \backslash
6374 <username>
6375 \backslash
6376 AppData
6377 \backslash
6378 Roaming
6379 \backslash
6380 2.8
6381 \backslash
6382 MiKTeX
6383 \backslash
6384 tex
6385 \backslash
6386 latex
6387 \end_layout
6388
6389 \end_inset
6390
6391
6392 \end_layout
6393
6394 \end_deeper
6395 \begin_layout Enumerate
6396 Now one only need to tell \SpecialChar LaTeX
6397  that there are new files.
6398  This depends on the used \SpecialChar LaTeX
6399 -Distribution:
6400 \end_layout
6401
6402 \begin_deeper
6403 \begin_layout Enumerate
6404 For \SpecialChar TeX
6405 Live execute the command 
6406 \begin_inset Flex Code
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410 texhash
6411 \end_layout
6412
6413 \end_inset
6414
6415  from a console.
6416  If you installed the package for all users, then you will probably need
6417  to have root permissions for that.
6418 \end_layout
6419
6420 \begin_layout Enumerate
6421 For MiK\SpecialChar TeX
6422 , if you have installed the package for all users, start the program
6423  
6424 \begin_inset Quotes eld
6425 \end_inset
6426
6427 Settings
6428 \begin_inset space ~
6429 \end_inset
6430
6431 (Admin)
6432 \begin_inset Quotes erd
6433 \end_inset
6434
6435  and press the button marked 
6436 \begin_inset Quotes eld
6437 \end_inset
6438
6439 Refresh FNDB
6440 \begin_inset Quotes erd
6441 \end_inset
6442
6443 .
6444  Otherwise start the program 
6445 \begin_inset Quotes eld
6446 \end_inset
6447
6448 Settings
6449 \begin_inset Quotes erd
6450 \end_inset
6451
6452  and do the same.
6453 \end_layout
6454
6455 \end_deeper
6456 \begin_layout Enumerate
6457 Finally, you need to tell \SpecialChar LyX
6458  that there are new packages available.
6459  So, in \SpecialChar LyX
6460 , use the menu 
6461 \begin_inset Flex Noun
6462 status collapsed
6463
6464 \begin_layout Plain Layout
6465 Tools
6466 \family sans
6467 \SpecialChar menuseparator
6468 Reconfigure
6469 \end_layout
6470
6471 \end_inset
6472
6473  and then restart \SpecialChar LyX
6474 .
6475 \end_layout
6476
6477 \begin_layout Standard
6478 Now the package is installed.
6479  In our example, the document class 
6480 \begin_inset Flex Code
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 Slides
6485 \begin_inset space ~
6486 \end_inset
6487
6488 (FoilTex)
6489 \end_layout
6490
6491 \end_inset
6492
6493  will now be available under 
6494 \begin_inset Flex Noun
6495 status collapsed
6496
6497 \begin_layout Plain Layout
6498 Document\SpecialChar menuseparator
6499 Settings\SpecialChar menuseparator
6500 Document Class
6501 \end_layout
6502
6503 \end_inset
6504
6505 .
6506  
6507 \end_layout
6508
6509 \begin_layout Standard
6510 If you would like to use a \SpecialChar LaTeX
6511  document class that is not even listed in the
6512  menu 
6513 \begin_inset Flex Noun
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 Document\SpecialChar menuseparator
6518 Settings\SpecialChar menuseparator
6519 Document Class
6520 \end_layout
6521
6522 \end_inset
6523
6524 , then you need to create a `layout' file for it.
6525  That is the topic of the next section.
6526 \end_layout
6527
6528 \begin_layout Section
6529 Types of layout files
6530 \end_layout
6531
6532 \begin_layout Standard
6533 This section describes the various sorts of \SpecialChar LyX
6534  files that contain layout informati
6535 on.
6536  These files describe various paragraph and character styles, determining
6537  how \SpecialChar LyX
6538  should display them and how they should be translated into \SpecialChar LaTeX
6539 , DocBook,
6540  XHTML, or whatever output format is being used.
6541  
6542 \end_layout
6543
6544 \begin_layout Standard
6545 We shall try to provide a thorough description of the process of writing
6546  layout files here.
6547  However, there are so many different types of documents supported even
6548  by just \SpecialChar LaTeX
6549  that we can't hope to cover every different possibility or problem
6550  you might encounter.
6551  The \SpecialChar LyX
6552  users' list is frequented by people with lots of experience with layout
6553  design who are willing to share what they've learned, so please feel free
6554  to ask questions there.
6555 \end_layout
6556
6557 \begin_layout Standard
6558 As you prepare to write a new layout, it is extremely helpful to look at
6559  the layouts distributed with \SpecialChar LyX
6560 .
6561  If you write a \SpecialChar LyX
6562  layout for a \SpecialChar LaTeX
6563  document class that might also be used by
6564  others, or write a module that might be useful to others, then you should
6565  consider posting your layout to the 
6566 \begin_inset CommandInset href
6567 LatexCommand href
6568 name "layout section on the LyX wiki"
6569 target "http://wiki.lyx.org/Layouts/Layouts"
6570
6571 \end_inset
6572
6573  or even to the \SpecialChar LyX
6574  developers' list, so that it might be included in \SpecialChar LyX
6575  itself.
6576 \begin_inset Foot
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 Note that \SpecialChar LyX
6581  is licensed under the General Public License, so any material
6582  that is contributed to \SpecialChar LyX
6583  must be similarly licensed.
6584 \end_layout
6585
6586 \end_inset
6587
6588
6589 \end_layout
6590
6591 \begin_layout Subsection
6592 Layout modules
6593 \begin_inset CommandInset label
6594 LatexCommand label
6595 name "subsec:Layout-modules"
6596
6597 \end_inset
6598
6599
6600 \end_layout
6601
6602 \begin_layout Standard
6603 We have spoken to this point about `layout files'.
6604  But there are different sorts of files that contain layout information.
6605  Layout files, strictly so called, have the 
6606 \begin_inset Flex Code
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 .layout
6611 \end_layout
6612
6613 \end_inset
6614
6615  extension and provide \SpecialChar LyX
6616  with information about document classes.
6617  Since \SpecialChar LyX
6618  1.6 layout information can also be contained in layout 
6619 \emph on
6620 modules
6621 \emph default
6622 , which have the 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 .module
6628 \end_layout
6629
6630 \end_inset
6631
6632  extension.
6633  Modules are to \SpecialChar LaTeX
6634  packages much as layouts are to \SpecialChar LaTeX
6635  classes, and some modules—such
6636  as the 
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 endnotes
6642 \end_layout
6643
6644 \end_inset
6645
6646  module—specifically provide support for one package.
6647  In a sense, layout modules are similar to included
6648 \begin_inset Foot
6649 status collapsed
6650
6651 \begin_layout Plain Layout
6652 These can have any extension, but by convention have the 
6653 \begin_inset Flex Code
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 .inc
6658 \end_layout
6659
6660 \end_inset
6661
6662  extension.
6663 \end_layout
6664
6665 \end_inset
6666
6667  files—files like 
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 stdsections.inc
6673 \end_layout
6674
6675 \end_inset
6676
6677 —in that modules are not specific to a given document class but may be used
6678  with many different classes.
6679  The difference is that using an included file with 
6680 \begin_inset Flex Code
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 article.cls
6685 \end_layout
6686
6687 \end_inset
6688
6689  requires editing that file.
6690  Modules, by contrast, are selected in the 
6691 \begin_inset Flex Noun
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 Document\SpecialChar menuseparator
6696 Settings
6697 \end_layout
6698
6699 \end_inset
6700
6701  dialog.
6702 \end_layout
6703
6704 \begin_layout Standard
6705 Building modules is the easiest way to get started with layout editing,
6706  since it can be as simple as adding a single new paragraph style or flex
6707  inset.
6708  But modules may, in principle, contain anything a layout file can contain.
6709 \end_layout
6710
6711 \begin_layout Standard
6712 After creating a new module and copying it to the 
6713 \begin_inset Flex Code
6714 status collapsed
6715
6716 \begin_layout Plain Layout
6717 layouts/
6718 \end_layout
6719
6720 \end_inset
6721
6722  folder, you will need to reconfigure and then restart \SpecialChar LyX
6723  for the module to
6724  appear in the menu.
6725  However, changes you make to the module will be seen immediately, if you
6726  open 
6727 \begin_inset Flex Noun
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731 Document\SpecialChar menuseparator
6732 Settings
6733 \end_layout
6734
6735 \end_inset
6736
6737 , highlight something, and then hit 
6738 \begin_inset Quotes eld
6739 \end_inset
6740
6741 OK
6742 \begin_inset Quotes erd
6743 \end_inset
6744
6745 .
6746  
6747 \emph on
6748 It is strongly recommended that you save your work before doing this
6749 \emph default
6750 .
6751  In fact, 
6752 \emph on
6753 it is strongly recommended that you not attempt to edit modules while simultaneo
6754 usly working on actual documents
6755 \emph default
6756 .
6757  Though of course the developers strive to keep \SpecialChar LyX
6758  stable in such situations,
6759  syntax errors and the like in your module file could cause strange behavior.
6760 \end_layout
6761
6762 \begin_layout Subsubsection
6763 Local Layout
6764 \end_layout
6765
6766 \begin_layout Standard
6767 Modules are to \SpecialChar LyX
6768  as packages are to \SpecialChar LaTeX
6769 .
6770  Sometimes, however, you find yourself wanting a specific inset or character
6771  style just for one document and writing a module that will also be available
6772  to other documents makes little sense.
6773  What you need is \SpecialChar LyX
6774 's 
6775 \begin_inset Quotes eld
6776 \end_inset
6777
6778 Local Layout
6779 \begin_inset Quotes erd
6780 \end_inset
6781
6782 .
6783 \end_layout
6784
6785 \begin_layout Standard
6786 You will find it under 
6787 \family sans
6788 Document\SpecialChar menuseparator
6789 Settings\SpecialChar menuseparator
6790 Local Layout
6791 \family default
6792 .
6793  The large text box allows you to enter anything that you might enter in
6794  a layout file or module.
6795  You can think of a document's local layout, in fact, as a module that belongs
6796  just to it.
6797  So, in particular, you must enter a 
6798 \begin_inset Flex Code
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 Format
6803 \end_layout
6804
6805 \end_inset
6806
6807  tag.
6808  Any format is acceptable, but one would normally use the format current
6809  at the time.
6810  (In \SpecialChar LyX
6811  2.2, the current layout format is 60.)
6812 \end_layout
6813
6814 \begin_layout Standard
6815 When you have entered something in the 
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 Local Layout
6821 \end_layout
6822
6823 \end_inset
6824
6825  pane, \SpecialChar LyX
6826  will enable the 
6827 \begin_inset Quotes eld
6828 \end_inset
6829
6830 Validate
6831 \begin_inset Quotes erd
6832 \end_inset
6833
6834  button at the bottom.
6835  Clicking this button will cause \SpecialChar LyX
6836  to determine whether what you have entered
6837  is valid layout information for the chosen format.
6838  \SpecialChar LyX
6839  will report the result but, unfortunately, will not tell you what errors
6840  there might have been.
6841  These will be written to the terminal, however, if \SpecialChar LyX
6842  is started from a terminal.
6843  You will not be permitted to save your local layout until you have entered
6844  something valid.
6845 \end_layout
6846
6847 \begin_layout Standard
6848 The warnings at the end of the previous section apply here, too.
6849  Do not play with local layout while you are actually working, especially
6850  if you have not saved your document.
6851  That said, using local layout with a test document can be a very convenient
6852  way to try out layout ideas, or even to start developing a module.
6853 \end_layout
6854
6855 \begin_layout Subsection
6856 Layout for 
6857 \begin_inset Flex Noun
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 .sty
6862 \end_layout
6863
6864 \end_inset
6865
6866  files
6867 \end_layout
6868
6869 \begin_layout Standard
6870 There are two situations you are likely to encounter when wanting to support
6871  a new \SpecialChar LaTeX
6872  document class, involving style (
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 .sty
6878 \end_layout
6879
6880 \end_inset
6881
6882 ) files and \SpecialChar LaTeX2e
6883  class (
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 .cls
6889 \end_layout
6890
6891 \end_inset
6892
6893 ) .
6894  Supporting a style file is usually fairly easy.
6895  Supporting a new class file is a bit harder.
6896  We'll discuss the former in this section and the latter in the next.
6897  Similar remarks apply, of course, if you want to support a new DocBook
6898  DTD.
6899 \end_layout
6900
6901 \begin_layout Standard
6902 The easier case is the one in which your new document class is provided
6903  as a style file that is to be used in conjunction with an already supported
6904  document class.
6905  For the sake of the example, we'll assume that the style file is called
6906  
6907 \begin_inset Flex Noun
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 myclass.sty
6912 \end_layout
6913
6914 \end_inset
6915
6916  and that it is meant to be used with 
6917 \begin_inset Flex Noun
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921 report.cls
6922 \end_layout
6923
6924 \end_inset
6925
6926 , which is a standard class.
6927  
6928 \end_layout
6929
6930 \begin_layout Standard
6931 Start by copying the existing class's layout file into your local directory:
6932 \begin_inset Foot
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 Of course, which directory is your local directory will vary by platform,
6937  and \SpecialChar LyX
6938  allows you to specify your local directory on startup, too, using
6939  the 
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 -userdir
6945 \end_layout
6946
6947 \end_inset
6948
6949  option.
6950 \end_layout
6951
6952 \end_inset
6953
6954
6955 \end_layout
6956
6957 \begin_layout LyX-Code
6958 cp report.layout ~/.lyx/layouts/myclass.layout
6959 \end_layout
6960
6961 \begin_layout Standard
6962 Then edit 
6963 \begin_inset Flex Code
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 myclass.layout
6968 \end_layout
6969
6970 \end_inset
6971
6972  and change the line: 
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \backslash
6978 DeclareLaTeXClass{report}
6979 \end_layout
6980
6981 \begin_layout Standard
6982 to read
6983 \end_layout
6984
6985 \begin_layout LyX-Code
6986
6987 \backslash
6988 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6989 \end_layout
6990
6991 \begin_layout Standard
6992 Then add:
6993 \end_layout
6994
6995 \begin_layout LyX-Code
6996 Preamble 
6997 \begin_inset Newline newline
6998 \end_inset
6999
7000     
7001 \backslash
7002 usepackage{myclass}
7003 \begin_inset Newline newline
7004 \end_inset
7005
7006 EndPreamble
7007 \end_layout
7008
7009 \begin_layout Standard
7010 near the top of the file.
7011 \end_layout
7012
7013 \begin_layout Standard
7014 Start \SpecialChar LyX
7015  and select 
7016 \begin_inset Flex Noun
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 Tools\SpecialChar menuseparator
7021 Reconfigure
7022 \end_layout
7023
7024 \end_inset
7025
7026 .
7027  Then restart \SpecialChar LyX
7028  and try creating a new document.
7029  You should see "
7030 \begin_inset Flex Noun
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 report (myclass)
7035 \end_layout
7036
7037 \end_inset
7038
7039 " as a document class option in the 
7040 \begin_inset Flex Noun
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 Document\SpecialChar menuseparator
7045 Settings
7046 \end_layout
7047
7048 \end_inset
7049
7050  dialog.
7051  It is likely that some of the sectioning commands and such in your new
7052  class will work differently from how they worked in the base class—
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 report
7058 \end_layout
7059
7060 \end_inset
7061
7062  in this example—so you can fiddle around with the settings for the different
7063  sections if you wish.
7064  The layout information for sections is contained in 
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 stdsections.inc
7070 \end_layout
7071
7072 \end_inset
7073
7074 , but you do not need to copy and change this file.
7075  Instead, you can simply add your changes to your layout file, after the
7076  line 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 Input stdclass.inc
7082 \end_layout
7083
7084 \end_inset
7085
7086 , which itself includes 
7087 \begin_inset Flex Code
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 stdsections.inc
7092 \end_layout
7093
7094 \end_inset
7095
7096 .
7097  For example, you might add these lines:
7098 \end_layout
7099
7100 \begin_layout LyX-Code
7101 Style Chapter
7102 \end_layout
7103
7104 \begin_layout LyX-Code
7105     Font
7106 \end_layout
7107
7108 \begin_layout LyX-Code
7109         Family Sans
7110 \end_layout
7111
7112 \begin_layout LyX-Code
7113     EndFont
7114 \end_layout
7115
7116 \begin_layout LyX-Code
7117 End
7118 \end_layout
7119
7120 \begin_layout Standard
7121 to change the font for chapter headings to sans-serif.
7122  This will override (or, in this case, add to) the existing declaration
7123  for the Chapter style.
7124  
7125 \end_layout
7126
7127 \begin_layout Standard
7128 Your new package may also provide commands or environments not present in
7129  the base class.
7130  In this case, you will want to add these to the layout file.
7131  See 
7132 \begin_inset CommandInset ref
7133 LatexCommand ref
7134 reference "sec:TextClass"
7135
7136 \end_inset
7137
7138  for information on how to do so.
7139 \end_layout
7140
7141 \begin_layout Standard
7142 If 
7143 \begin_inset Flex Noun
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 myclass.sty
7148 \end_layout
7149
7150 \end_inset
7151
7152  can be used with several different document classes, and even if it cannot,
7153  you might find it easiest just to write a module that you can load with
7154  the base class.
7155  The simplest possible such module would be:
7156 \end_layout
7157
7158 \begin_layout LyX-Code
7159 #
7160 \backslash
7161 DeclareLyXModule{My Package} 
7162 \end_layout
7163
7164 \begin_layout LyX-Code
7165 #DescriptionBegin 
7166 \end_layout
7167
7168 \begin_layout LyX-Code
7169 #Support for mypkg.sty.
7170 \end_layout
7171
7172 \begin_layout LyX-Code
7173 #DescriptionEnd
7174 \begin_inset Newline newline
7175 \end_inset
7176
7177
7178 \end_layout
7179
7180 \begin_layout LyX-Code
7181 Format 60
7182 \begin_inset Newline newline
7183 \end_inset
7184
7185
7186 \end_layout
7187
7188 \begin_layout LyX-Code
7189 Preamble
7190 \begin_inset Newline newline
7191 \end_inset
7192
7193     
7194 \backslash
7195 usepackage{mypkg}
7196 \begin_inset Newline newline
7197 \end_inset
7198
7199 EndPreamble
7200 \end_layout
7201
7202 \begin_layout Standard
7203 A more complex module might modify the behavior of some existing constructs
7204  or define some new ones.
7205  Again, see 
7206 \begin_inset CommandInset ref
7207 LatexCommand ref
7208 reference "sec:TextClass"
7209
7210 \end_inset
7211
7212  for discussion.
7213 \end_layout
7214
7215 \begin_layout Subsection
7216 Layout for 
7217 \begin_inset Flex Noun
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 .cls
7222 \end_layout
7223
7224 \end_inset
7225
7226  files
7227 \end_layout
7228
7229 \begin_layout Standard
7230 There are two possibilities here.
7231  One is that the class file is itself based upon an existing document class.
7232  For example, many thesis classes are based upon 
7233 \begin_inset Flex Noun
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 book.cls
7238 \end_layout
7239
7240 \end_inset
7241
7242 .
7243  To see whether yours is, look for a line like
7244 \end_layout
7245
7246 \begin_layout LyX-Code
7247
7248 \backslash
7249 LoadClass{book}
7250 \end_layout
7251
7252 \begin_layout Standard
7253 in the file.
7254  If so, then you may proceed largely as in the previous section, though
7255  the 
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 Declare\SpecialChar LaTeX
7261 Class
7262 \end_layout
7263
7264 \end_inset
7265
7266  line will be different.
7267  If your new class is 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 thesis
7273 \end_layout
7274
7275 \end_inset
7276
7277  and it is based upon 
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 book
7283 \end_layout
7284
7285 \end_inset
7286
7287 , then the line should read:
7288 \begin_inset Foot
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 And it will be easiest if you save the file to 
7293 \begin_inset Flex Code
7294 status collapsed
7295
7296 \begin_layout Plain Layout
7297 thesis.layout
7298 \end_layout
7299
7300 \end_inset
7301
7302 : \SpecialChar LyX
7303  assumes that the document class has the same name as the layout file.
7304  
7305 \end_layout
7306
7307 \end_inset
7308
7309
7310 \end_layout
7311
7312 \begin_layout LyX-Code
7313
7314 \backslash
7315 DeclareLaTeXClass[thesis,book]{thesis}
7316 \end_layout
7317
7318 \begin_layout Standard
7319 If, on the other hand, the new class is not based upon an existing class,
7320  you will probably have to 
7321 \begin_inset Quotes eld
7322 \end_inset
7323
7324 roll your own
7325 \begin_inset Quotes erd
7326 \end_inset
7327
7328  layout.
7329  We strongly suggest copying an existing layout file which uses a similar
7330  \SpecialChar LaTeX
7331  class and then modifying it, if you can do so.
7332  At least use an existing file as a starting point so you can find out what
7333  items you need to worry about.
7334  Again, the specifics are covered below.
7335 \end_layout
7336
7337 \begin_layout Subsection
7338 Creating templates
7339 \begin_inset CommandInset label
7340 LatexCommand label
7341 name "subsec:Creating-Templates"
7342
7343 \end_inset
7344
7345
7346 \end_layout
7347
7348 \begin_layout Standard
7349 Once you have written a layout file for a new document class, you might
7350  want to consider writing a 
7351 \emph on
7352 template
7353 \emph default
7354  for it, too.
7355  A template acts as a kind of tutorial for your layout, showing how it might
7356  be used, though containing dummy content.
7357  You can of course look at the various templates included with \SpecialChar LyX
7358  for ideas.
7359 \end_layout
7360
7361 \begin_layout Standard
7362 Templates are created just like usual documents: using \SpecialChar LyX
7363 .
7364  The only difference is that usual documents contain all possible settings,
7365  including the font scheme and the paper size.
7366  Usually a user doesn't want a template to overwrite his preferred settings
7367  for such parameters.
7368  For that reason, the designer of a template should remove the corresponding
7369  commands like 
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374
7375 \backslash
7376 font_roman
7377 \end_layout
7378
7379 \end_inset
7380
7381  or 
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386
7387 \backslash
7388 papersize
7389 \end_layout
7390
7391 \end_inset
7392
7393  from the template \SpecialChar LyX
7394  file.
7395  This can be done with any simple text-editor, for example 
7396 \begin_inset Flex Code
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 vi
7401 \end_layout
7402
7403 \end_inset
7404
7405  or 
7406 \begin_inset Flex Code
7407 status collapsed
7408
7409 \begin_layout Plain Layout
7410 notepad
7411 \end_layout
7412
7413 \end_inset
7414
7415 .
7416 \end_layout
7417
7418 \begin_layout Standard
7419 Put the edited template files you create in 
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 UserDir/templates/
7425 \end_layout
7426
7427 \end_inset
7428
7429 , copy the ones you use from the global template directory in 
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 LyXDir/templates/
7435 \end_layout
7436
7437 \end_inset
7438
7439  to the same place, and redefine the template path in the 
7440 \begin_inset Flex Noun
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 Tools\SpecialChar menuseparator
7445 Preferences\SpecialChar menuseparator
7446 Paths
7447 \end_layout
7448
7449 \end_inset
7450
7451  dialog.
7452 \end_layout
7453
7454 \begin_layout Standard
7455 Note, by the way, that there is a template which has a particular meaning:
7456  
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 defaults.lyx
7462 \end_layout
7463
7464 \end_inset
7465
7466 .
7467  This template is loaded every time you create a new document with 
7468 \begin_inset Flex Noun
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 File\SpecialChar menuseparator
7473 New
7474 \end_layout
7475
7476 \end_inset
7477
7478  in order to provide useful defaults.
7479  To create this template from inside \SpecialChar LyX
7480 , all you have to do is to open a document
7481  with the correct settings, and use the 
7482 \begin_inset Flex Noun
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 Save as Document Defaults
7487 \end_layout
7488
7489 \end_inset
7490
7491  button.
7492 \end_layout
7493
7494 \begin_layout Subsection
7495 Upgrading old layout files
7496 \end_layout
7497
7498 \begin_layout Standard
7499 The format of layout files changes with each \SpecialChar LyX
7500  release, so old layout files
7501  need to be converted to the new format.
7502  If \SpecialChar LyX
7503  reads a layout file in an older format, it automatically calls the
7504  script 
7505 \begin_inset Flex Code
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 layout2layout.py
7510 \end_layout
7511
7512 \end_inset
7513
7514  to convert it to a temporary file in current format.
7515  The original file is left untouched.
7516  If you use the layout file often, then, you may want to convert it permanently,
7517  so that \SpecialChar LyX
7518  does not have to do so itself every time.
7519  To do this, you can call the converter manually:
7520 \end_layout
7521
7522 \begin_layout Enumerate
7523 rename the file 
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 myclass.layout
7529 \end_layout
7530
7531 \end_inset
7532
7533  to 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 myclass.old
7539 \end_layout
7540
7541 \end_inset
7542
7543
7544 \end_layout
7545
7546 \begin_layout Enumerate
7547 Call the command
7548 \begin_inset Newline newline
7549 \end_inset
7550
7551
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7557 \end_layout
7558
7559 \end_inset
7560
7561
7562 \begin_inset Newline newline
7563 \end_inset
7564
7565 where 
7566 \begin_inset Flex Code
7567 status collapsed
7568
7569 \begin_layout Plain Layout
7570 LyXDir
7571 \end_layout
7572
7573 \end_inset
7574
7575  is the name of your \SpecialChar LyX
7576  system directory.
7577 \end_layout
7578
7579 \begin_layout Standard
7580 Note that manual conversion does not affect included files, so these will
7581  have to be converted separately.
7582 \change_inserted -712698321 1483873435
7583
7584 \end_layout
7585
7586 \begin_layout Subsection
7587
7588 \change_inserted -712698321 1483875083
7589 \begin_inset CommandInset label
7590 LatexCommand label
7591 name "subsec:Cite-Engine-Files"
7592
7593 \end_inset
7594
7595 Cite engine files
7596 \end_layout
7597
7598 \begin_layout Standard
7599
7600 \change_inserted -712698321 1483874213
7601 A specific form of layout files are the so-called 
7602 \begin_inset Flex Code
7603 status collapsed
7604
7605 \begin_layout Plain Layout
7606
7607 \change_inserted -712698321 1483873546
7608 *.citeengine
7609 \end_layout
7610
7611 \end_inset
7612
7613  files that are located in the 
7614 \begin_inset Flex Code
7615 status collapsed
7616
7617 \begin_layout Plain Layout
7618
7619 \change_inserted -712698321 1483873546
7620 citeengines/
7621 \end_layout
7622
7623 \end_inset
7624
7625  sub-directory.
7626  Their purpose is to define the specifics of \SpecialChar LaTeX
7627  packages aimed at bibliography
7628  generation, such as 
7629 \family sans
7630 natbib
7631 \family default
7632 ,
7633 \family sans
7634  jurabib
7635 \family default
7636  or 
7637 \family sans
7638 biblatex
7639 \family default
7640 , but also the way how normal Bib\SpecialChar TeX
7641  citations (without additional packages)
7642  are handled in \SpecialChar LyX
7643  is defined in such a file.
7644  
7645 \end_layout
7646
7647 \begin_layout Standard
7648
7649 \change_inserted -712698321 1483874969
7650 More specifically, it is defined which packages \SpecialChar LyX
7651  needs to load, which citation
7652  commands are available, how these are to be displayed in \SpecialChar LyX
7653  (in the workarea,
7654  the dialogs, the context menus) as well as in the XHTML and plain text
7655  output.
7656  Furthermore, the files specify available style variants (author-year, numerical
7657 , etc.) and their specifics.
7658  The cite engine files are also used to generate the options that are available
7659  in 
7660 \family sans
7661 Document\SpecialChar menuseparator
7662 Settings\SpecialChar ldots
7663 \SpecialChar menuseparator
7664 Bibliography\SpecialChar menuseparator
7665 Style engine
7666 \family default
7667 .
7668 \end_layout
7669
7670 \begin_layout Standard
7671
7672 \change_inserted -712698321 1483875180
7673 Even though a cite engine file is essentially a normal layout file that
7674  could theoretically include any layout information, it usually primarily
7675  includes some specific parameters such as 
7676 \begin_inset Flex Code
7677 status collapsed
7678
7679 \begin_layout Plain Layout
7680
7681 \change_inserted -712698321 1483874688
7682 MaxCiteNames
7683 \change_unchanged
7684
7685 \end_layout
7686
7687 \end_inset
7688
7689
7690 \begin_inset Flex Code
7691 status collapsed
7692
7693 \begin_layout Plain Layout
7694
7695 \change_inserted -712698321 1483875180
7696 CiteFramework
7697 \change_unchanged
7698
7699 \end_layout
7700
7701 \end_inset
7702
7703
7704 \begin_inset Flex Code
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708
7709 \change_inserted -712698321 1483874477
7710 CiteEngine
7711 \change_unchanged
7712
7713 \end_layout
7714
7715 \end_inset
7716
7717  and 
7718 \begin_inset Flex Code
7719 status collapsed
7720
7721 \begin_layout Plain Layout
7722
7723 \change_inserted -712698321 1483874482
7724 CiteFormat
7725 \change_unchanged
7726
7727 \end_layout
7728
7729 \end_inset
7730
7731  blocks.
7732  The syntax of the latter two is described in 
7733 \begin_inset CommandInset ref
7734 LatexCommand ref
7735 reference "subsec:Citation-engine-description"
7736 plural "false"
7737 caps "false"
7738 noprefix "false"
7739
7740 \end_inset
7741
7742  and 
7743 \begin_inset CommandInset ref
7744 LatexCommand ref
7745 reference "subsec:Citation-format-description"
7746
7747 \end_inset
7748
7749 , as well as in the files themselves.
7750 \change_unchanged
7751
7752 \end_layout
7753
7754 \begin_layout Section
7755 \begin_inset CommandInset label
7756 LatexCommand label
7757 name "sec:TextClass"
7758
7759 \end_inset
7760
7761 The layout file format
7762 \end_layout
7763
7764 \begin_layout Standard
7765 The following sections describe how layout files are structured and written.
7766  Our advice is to go slowly, save and test often.
7767  It is really not that hard, except that the multitude of options can become
7768  overwhelming, especially if you try to check out too many at once.
7769  It becomes easier if you use existing layouts of \SpecialChar LyX
7770  as examples/reference
7771  or if you modify an existing layout to your needs.
7772 \end_layout
7773
7774 \begin_layout Standard
7775 Note that all the tags used in layout files are case-insensitive.
7776  This means that 
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 Style
7782 \end_layout
7783
7784 \end_inset
7785
7786
7787 \begin_inset Flex Code
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 style
7792 \end_layout
7793
7794 \end_inset
7795
7796  and 
7797 \begin_inset Flex Code
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801 StYlE
7802 \end_layout
7803
7804 \end_inset
7805
7806  are really the same tag.
7807  The possible arguments are printed in brackets after the tag's name.
7808  The default argument is typeset 
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813
7814 \emph on
7815 emphasized
7816 \end_layout
7817
7818 \end_inset
7819
7820 .
7821  If the argument has a data type like 
7822 \begin_inset Quotes eld
7823 \end_inset
7824
7825 string
7826 \begin_inset Quotes erd
7827 \end_inset
7828
7829  or 
7830 \begin_inset Quotes eld
7831 \end_inset
7832
7833 float
7834 \begin_inset Quotes erd
7835 \end_inset
7836
7837 , the default is shown like this: 
7838 \begin_inset Flex Code
7839 status collapsed
7840
7841 \begin_layout Plain Layout
7842 float=
7843 \emph on
7844 default
7845 \end_layout
7846
7847 \end_inset
7848
7849 .
7850 \end_layout
7851
7852 \begin_layout Subsection
7853 The document class declaration and classification
7854 \end_layout
7855
7856 \begin_layout Standard
7857 Lines in a layout file which begin with 
7858 \begin_inset Flex Code
7859 status collapsed
7860
7861 \begin_layout Plain Layout
7862 #
7863 \end_layout
7864
7865 \end_inset
7866
7867  are comments.
7868  There is one exception to this rule.
7869  All 
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 *.layout
7875 \end_layout
7876
7877 \end_inset
7878
7879  files should begin with lines like:
7880 \end_layout
7881
7882 \begin_layout LyX-Code
7883
7884 \size small
7885 #% Do not delete the line below; configure depends on this 
7886 \end_layout
7887
7888 \begin_layout LyX-Code
7889
7890 \size small
7891 #  
7892 \backslash
7893 DeclareLaTeXClass{Article (Standard Class)}
7894 \end_layout
7895
7896 \begin_layout LyX-Code
7897
7898 \size small
7899 #  
7900 \backslash
7901 DeclareCategory{Articles}
7902 \end_layout
7903
7904 \begin_layout Standard
7905 The second and third lines are used when you (re)configure \SpecialChar LyX
7906 .
7907  The layout file is read by the \SpecialChar LaTeX
7908  script 
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 chkconfig.ltx
7914 \end_layout
7915
7916 \end_inset
7917
7918 , in a special mode where 
7919 \begin_inset Flex Code
7920 status collapsed
7921
7922 \begin_layout Plain Layout
7923 #
7924 \end_layout
7925
7926 \end_inset
7927
7928  is ignored.
7929  The first line is just a \SpecialChar LaTeX
7930  comment, the second one contains the mandatory
7931  declaration of the text class and the third line contains the optional
7932  classification of the class.
7933  If these lines appear in a file named 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 article.layout
7939 \end_layout
7940
7941 \end_inset
7942
7943 , then they define a text class of name 
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 article
7949 \end_layout
7950
7951 \end_inset
7952
7953  (the name of the layout file) which uses the \SpecialChar LaTeX
7954  document class 
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 article.cls
7960 \end_layout
7961
7962 \end_inset
7963
7964  (the default is to use the same name as the layout).
7965  The string 
7966 \begin_inset Quotes eld
7967 \end_inset
7968
7969 Article (Standard Class)
7970 \begin_inset Quotes erd
7971 \end_inset
7972
7973  that appears above is used as a description of the text class in the 
7974 \begin_inset Flex Noun
7975 status collapsed
7976
7977 \begin_layout Plain Layout
7978 Document\SpecialChar menuseparator
7979 Settings
7980 \end_layout
7981
7982 \end_inset
7983
7984  dialog.
7985  The category (
7986 \begin_inset Quotes eld
7987 \end_inset
7988
7989 Articles
7990 \begin_inset Quotes erd
7991 \end_inset
7992
7993  in the example) is also used in the 
7994 \begin_inset Flex Noun
7995 status collapsed
7996
7997 \begin_layout Plain Layout
7998 Document\SpecialChar menuseparator
7999 Settings
8000 \end_layout
8001
8002 \end_inset
8003
8004  dialog: the text classes are grouped by these categories (which are usually
8005  genres, so typical categories are 
8006 \begin_inset Quotes eld
8007 \end_inset
8008
8009 Articles
8010 \begin_inset Quotes erd
8011 \end_inset
8012
8013
8014 \begin_inset Quotes eld
8015 \end_inset
8016
8017 Books
8018 \begin_inset Quotes erd
8019 \end_inset
8020
8021
8022 \begin_inset Quotes eld
8023 \end_inset
8024
8025 Reports
8026 \begin_inset Quotes erd
8027 \end_inset
8028
8029
8030 \begin_inset Quotes eld
8031 \end_inset
8032
8033 Letters
8034 \begin_inset Quotes erd
8035 \end_inset
8036
8037
8038 \begin_inset Quotes eld
8039 \end_inset
8040
8041 Presentations
8042 \begin_inset Quotes erd
8043 \end_inset
8044
8045
8046 \begin_inset Quotes eld
8047 \end_inset
8048
8049 Curricula Vitae
8050 \begin_inset Quotes erd
8051 \end_inset
8052
8053  etc.).
8054  If no category has been declared, the class will be put in the 
8055 \begin_inset Quotes eld
8056 \end_inset
8057
8058 Uncategorized
8059 \begin_inset Quotes erd
8060 \end_inset
8061
8062  group.
8063 \end_layout
8064
8065 \begin_layout Standard
8066 Let's assume that you wrote your own text class that uses the 
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 article.cls
8072 \end_layout
8073
8074 \end_inset
8075
8076  document class, but where you changed the appearance of the section headings.
8077  If you put it in a file 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 myarticle.layout
8083 \end_layout
8084
8085 \end_inset
8086
8087 , the header of this file should be:
8088 \end_layout
8089
8090 \begin_layout LyX-Code
8091
8092 \size small
8093 #% Do not delete the line below; configure depends on this 
8094 \end_layout
8095
8096 \begin_layout LyX-Code
8097
8098 \size small
8099 #  
8100 \backslash
8101 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8102 \end_layout
8103
8104 \begin_layout LyX-Code
8105
8106 \size small
8107 #  
8108 \backslash
8109 DeclareCategory{Articles}
8110 \end_layout
8111
8112 \begin_layout Standard
8113 This declares a text class 
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 myarticle
8119 \end_layout
8120
8121 \end_inset
8122
8123 , associated with the \SpecialChar LaTeX
8124  document class 
8125 \begin_inset Flex Code
8126 status collapsed
8127
8128 \begin_layout Plain Layout
8129 article.cls
8130 \end_layout
8131
8132 \end_inset
8133
8134  and described as 
8135 \begin_inset Quotes eld
8136 \end_inset
8137
8138 Article (with My Own Headings)
8139 \begin_inset Quotes erd
8140 \end_inset
8141
8142 .
8143  If your text class depends on several packages, you can declare it as:
8144 \end_layout
8145
8146 \begin_layout LyX-Code
8147
8148 \size small
8149 #% Do not delete the line below; configure depends on this 
8150 \end_layout
8151
8152 \begin_layout LyX-Code
8153
8154 \size small
8155 #  
8156 \backslash
8157 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8158 \end_layout
8159
8160 \begin_layout LyX-Code
8161
8162 \size small
8163 #  
8164 \backslash
8165 DeclareCategory{Articles}
8166 \end_layout
8167
8168 \begin_layout Standard
8169 This indicates that your text class uses the 
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 foo.sty
8175 \end_layout
8176
8177 \end_inset
8178
8179  package.
8180  Finally, it is also possible to declare classes for DocBook code.
8181  Typical declarations will look like:
8182 \end_layout
8183
8184 \begin_layout LyX-Code
8185
8186 \size small
8187 #% Do not delete the line below; configure depends on this 
8188 \end_layout
8189
8190 \begin_layout LyX-Code
8191
8192 \size small
8193
8194 \backslash
8195 DeclareDocBookClass[article]{SGML (DocBook Article)}
8196 \end_layout
8197
8198 \begin_layout LyX-Code
8199
8200 \size small
8201
8202 \backslash
8203 DeclareCategory{Articles (DocBook)}
8204 \end_layout
8205
8206 \begin_layout Standard
8207 Note that these declarations can also be given an optional parameter declaring
8208  the name of the document class (but not a list).
8209 \end_layout
8210
8211 \begin_layout Standard
8212 So, to be as explicit as possible, the form of the layout declaration is:
8213 \end_layout
8214
8215 \begin_layout LyX-Code
8216
8217 \size small
8218 #  
8219 \backslash
8220 DeclareLaTeXClass[class,package.sty]{layout description}
8221 \end_layout
8222
8223 \begin_layout LyX-Code
8224
8225 \size small
8226 #  
8227 \backslash
8228 DeclareCategory{category}
8229 \end_layout
8230
8231 \begin_layout Standard
8232 The class need only be specified if the name of the \SpecialChar LaTeX
8233  class file and the
8234  name of the layout file are different or if there are packages to load.
8235  If the name of the class file is not specified, then \SpecialChar LyX
8236  will simply assume
8237  that it is the same as the name of the layout file.
8238 \end_layout
8239
8240 \begin_layout Standard
8241 When the text class has been modified to your taste, all you have to do
8242  is to copy it either to 
8243 \begin_inset Flex Code
8244 status collapsed
8245
8246 \begin_layout Plain Layout
8247 LyXDir/layouts/
8248 \end_layout
8249
8250 \end_inset
8251
8252  or to 
8253 \begin_inset Flex Code
8254 status collapsed
8255
8256 \begin_layout Plain Layout
8257 UserDir/layouts
8258 \end_layout
8259
8260 \end_inset
8261
8262 , run 
8263 \begin_inset Flex Noun
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 Tools\SpecialChar menuseparator
8268 Reconfigure
8269 \end_layout
8270
8271 \end_inset
8272
8273 , exit \SpecialChar LyX
8274  and restart.
8275  Then your new text class should be available along with the others.
8276 \end_layout
8277
8278 \begin_layout Standard
8279 Once the layout file is installed, you can edit it and see your changes
8280  without having to reconfigure or to restart \SpecialChar LyX
8281 .
8282  
8283 \begin_inset Foot
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 In versions of \SpecialChar LyX
8288  prior to 1.6, this was not true.
8289  As a result, editing layout files was very time consuming, since you had
8290  constantly to restart \SpecialChar LyX
8291  to see changes.
8292 \end_layout
8293
8294 \end_inset
8295
8296  You can force a reload of the current layout by using the \SpecialChar LyX
8297  function 
8298 \begin_inset Flex Noun
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 layout-reload
8303 \end_layout
8304
8305 \end_inset
8306
8307 .
8308  There is no default binding for this function—though, of course, you can
8309  bind it to a key yourself.
8310  But you will normally use this function simply by entering it in the mini-buffe
8311 r.
8312  
8313 \end_layout
8314
8315 \begin_layout Standard
8316
8317 \emph on
8318 Warning
8319 \emph default
8320
8321 \begin_inset Flex Noun
8322 status collapsed
8323
8324 \begin_layout Plain Layout
8325 layout-reload
8326 \end_layout
8327
8328 \end_inset
8329
8330  is very much an `advanced feature'.
8331  It is 
8332 \emph on
8333 strongly
8334 \emph default
8335  recommended that you save your work before using this function.
8336  In fact, it is 
8337 \emph on
8338 strongly
8339 \emph default
8340  recommended that you not attempt to edit layout information while simultaneousl
8341 y working on a document that you care about.
8342  Use a test document.
8343  Syntax errors and the like in your layout file could cause peculiar behavior.
8344  In particular, such errors could cause \SpecialChar LyX
8345  to regard the current layout as
8346  invalid and to attempt to switch to some other layout.
8347 \begin_inset Foot
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351 Really bad syntax errors may even caused \SpecialChar LyX
8352  to exit.
8353  This is because certain sorts of errors may make \SpecialChar LyX
8354  unable to read 
8355 \emph on
8356 any
8357 \emph default
8358  layout information.
8359  Please be careful.
8360 \end_layout
8361
8362 \end_inset
8363
8364  The \SpecialChar LyX
8365  team strives to keep \SpecialChar LyX
8366  stable in such situations, but safe is better
8367  than sorry.
8368 \begin_inset Foot
8369 status collapsed
8370
8371 \begin_layout Plain Layout
8372 While we're giving advice: make regular backups.
8373  And be nice to your mother.
8374 \end_layout
8375
8376 \end_inset
8377
8378
8379 \end_layout
8380
8381 \begin_layout Subsection
8382 The Module declaration
8383 \end_layout
8384
8385 \begin_layout Standard
8386 A module must begin with a line like the following:
8387 \end_layout
8388
8389 \begin_layout LyX-Code
8390 #
8391 \backslash
8392 DeclareLyXModule[endnotes.sty]{Endnotes} 
8393 \end_layout
8394
8395 \begin_layout Standard
8396 The mandatory argument, in curly brackets, is the name of the module, as
8397  it should appear in 
8398 \begin_inset Flex Noun
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402 Document\SpecialChar menuseparator
8403 Settings\SpecialChar menuseparator
8404 Modules
8405 \end_layout
8406
8407 \end_inset
8408
8409 .
8410  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8411  packages
8412  on which the module depends.
8413  It is also possible to use the form 
8414 \begin_inset Flex Noun
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 from->to
8419 \end_layout
8420
8421 \end_inset
8422
8423  as an optional argument, which declares that the module can only be used
8424  when there exists a conversion chain between the formats `
8425 \begin_inset Flex Code
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 from
8430 \end_layout
8431
8432 \end_inset
8433
8434 ' and `
8435 \begin_inset Flex Code
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 to
8440 \end_layout
8441
8442 \end_inset
8443
8444 '.
8445 \end_layout
8446
8447 \begin_layout Standard
8448 The module declaration should then be followed by lines like the following
8449 \begin_inset Foot
8450 status collapsed
8451
8452 \begin_layout Plain Layout
8453 Preferably in English if the module should be published with \SpecialChar LyX
8454 .
8455  This description will appear in the list of messages to be translated and
8456  will be thus translated with the next interface update.
8457 \end_layout
8458
8459 \end_inset
8460
8461 :
8462 \end_layout
8463
8464 \begin_layout LyX-Code
8465 #DescriptionBegin 
8466 \end_layout
8467
8468 \begin_layout LyX-Code
8469 #Adds an endnote command, in addition to footnotes.
8470  
8471 \end_layout
8472
8473 \begin_layout LyX-Code
8474 #You will need to add  
8475 \backslash
8476 theendnotes in TeX code where you 
8477 \end_layout
8478
8479 \begin_layout LyX-Code
8480 #want the endnotes to appear.
8481  
8482 \end_layout
8483
8484 \begin_layout LyX-Code
8485 #DescriptionEnd 
8486 \end_layout
8487
8488 \begin_layout LyX-Code
8489 #Requires: somemodule | othermodule
8490 \end_layout
8491
8492 \begin_layout LyX-Code
8493 #Excludes: badmodule
8494 \end_layout
8495
8496 \begin_layout Standard
8497 The description is used in 
8498 \begin_inset Flex Noun
8499 status collapsed
8500
8501 \begin_layout Plain Layout
8502 Document\SpecialChar menuseparator
8503 Settings\SpecialChar menuseparator
8504 Modules
8505 \end_layout
8506
8507 \end_inset
8508
8509  to provide the user with information about what the module does.
8510  The 
8511 \begin_inset Flex Code
8512 status collapsed
8513
8514 \begin_layout Plain Layout
8515 Requires
8516 \end_layout
8517
8518 \end_inset
8519
8520  line is used to identify other modules with which this one must be used;
8521  the 
8522 \begin_inset Flex Code
8523 status collapsed
8524
8525 \begin_layout Plain Layout
8526 Excludes
8527 \end_layout
8528
8529 \end_inset
8530
8531  line is used to identify modules with which this one may not be used.
8532  Both are optional, and, as shown, multiple modules should be separated
8533  with the pipe symbol: |.
8534  Note that the required modules are treated disjunctively: 
8535 \emph on
8536 at least one
8537 \emph default
8538  of the required modules must be used.
8539  Similarly, 
8540 \emph on
8541 no
8542 \emph default
8543  excluded module may be used.
8544  Note that modules are identified here by their filenames without the 
8545 \begin_inset Flex Code
8546 status collapsed
8547
8548 \begin_layout Plain Layout
8549 .module
8550 \end_layout
8551
8552 \end_inset
8553
8554  extension.
8555  So 
8556 \begin_inset Flex Code
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 somemodule
8561 \end_layout
8562
8563 \end_inset
8564
8565  is really 
8566 \begin_inset Flex Code
8567 status collapsed
8568
8569 \begin_layout Plain Layout
8570 somemodule.module
8571 \end_layout
8572
8573 \end_inset
8574
8575 .
8576 \change_inserted -712698321 1483873000
8577
8578 \end_layout
8579
8580 \begin_layout Subsection
8581
8582 \change_inserted -712698321 1483873010
8583 The CiteEngine file declaration
8584 \end_layout
8585
8586 \begin_layout Standard
8587
8588 \change_inserted -712698321 1483873022
8589 A cite engine file must begin with a line like the following:
8590 \end_layout
8591
8592 \begin_layout LyX-Code
8593
8594 \change_inserted -712698321 1483873047
8595 #
8596 \backslash
8597 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8598 \end_layout
8599
8600 \begin_layout Standard
8601
8602 \change_inserted -712698321 1483873077
8603 The mandatory argument, in curly brackets, is the name of the module, as
8604  it should appear in 
8605 \begin_inset Flex Noun
8606 status collapsed
8607
8608 \begin_layout Plain Layout
8609
8610 \change_inserted -712698321 1483873068
8611 Document\SpecialChar menuseparator
8612 Settings\SpecialChar menuseparator
8613 Bibliography
8614 \end_layout
8615
8616 \end_inset
8617
8618 .
8619  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8620  packages
8621  on which the cite engine depends.
8622 \end_layout
8623
8624 \begin_layout Standard
8625
8626 \change_inserted -712698321 1483873102
8627 The cite engine declaration should then be followed by lines like the following
8628 \begin_inset Foot
8629 status collapsed
8630
8631 \begin_layout Plain Layout
8632
8633 \change_inserted -712698321 1483873000
8634 Preferably in English if the module should be published with \SpecialChar LyX
8635 .
8636  This description will appear in the list of messages to be translated and
8637  will be thus translated with the next interface update.
8638 \end_layout
8639
8640 \end_inset
8641
8642 :
8643 \end_layout
8644
8645 \begin_layout LyX-Code
8646
8647 \change_inserted -712698321 1483873128
8648 # DescriptionBegin
8649 \end_layout
8650
8651 \begin_layout LyX-Code
8652
8653 \change_inserted -712698321 1483873140
8654 #   Biblatex supports many author-year and numerical styles.
8655 \end_layout
8656
8657 \begin_layout LyX-Code
8658
8659 \change_inserted -712698321 1483873152
8660 #   It is mainly aimed at the Humanities.
8661  It is highly
8662 \end_layout
8663
8664 \begin_layout LyX-Code
8665
8666 \change_inserted -712698321 1483873160
8667 #   customizable, fully localized and provides many features
8668 \end_layout
8669
8670 \begin_layout LyX-Code
8671
8672 \change_inserted -712698321 1483873170
8673 #   that are not possible with BibTeX.
8674  The use of 'biber' as
8675 \end_layout
8676
8677 \begin_layout LyX-Code
8678
8679 \change_inserted -712698321 1483873174
8680 #   bibliography processor is advised.
8681 \end_layout
8682
8683 \begin_layout LyX-Code
8684
8685 \change_inserted -712698321 1483873224
8686 # DescriptionEnd
8687 \end_layout
8688
8689 \begin_layout Standard
8690
8691 \change_inserted -712698321 1483873207
8692 The description is used in 
8693 \begin_inset Flex Noun
8694 status collapsed
8695
8696 \begin_layout Plain Layout
8697
8698 \change_inserted -712698321 1483873194
8699 Document\SpecialChar menuseparator
8700 Settings\SpecialChar menuseparator
8701 Bibliography
8702 \end_layout
8703
8704 \end_inset
8705
8706  to provide the user with information about the cite engine.
8707 \change_unchanged
8708
8709 \end_layout
8710
8711 \begin_layout Subsection
8712 Format number
8713 \end_layout
8714
8715 \begin_layout Standard
8716 The first non-comment line of any layout file, included file, or module
8717  
8718 \emph on
8719 must
8720 \emph default
8721  contain the file format number:
8722 \end_layout
8723
8724 \begin_layout Description
8725 \begin_inset Flex Code
8726 status collapsed
8727
8728 \begin_layout Plain Layout
8729 Format
8730 \end_layout
8731
8732 \end_inset
8733
8734  [
8735 \begin_inset Flex Code
8736 status collapsed
8737
8738 \begin_layout Plain Layout
8739 int
8740 \end_layout
8741
8742 \end_inset
8743
8744 ] The format number of the layout file.
8745 \end_layout
8746
8747 \begin_layout Standard
8748 This tag was introduced with \SpecialChar LyX
8749
8750 \begin_inset space ~
8751 \end_inset
8752
8753 1.4.0.
8754  Layout files from older \SpecialChar LyX
8755  versions do not have an explicit file format and
8756  are considered to have 
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 Format
8762 \begin_inset space ~
8763 \end_inset
8764
8765 1
8766 \end_layout
8767
8768 \end_inset
8769
8770 .
8771  The format for the present version of \SpecialChar LyX
8772  is format 60.
8773  But each version of \SpecialChar LyX
8774  is capable of reading earlier versions' layout files,
8775  just as they are capable of reading files produced by earlier versions
8776  of \SpecialChar LyX
8777 .
8778  There is, however, no provision for converting to earlier formats.
8779 \end_layout
8780
8781 \begin_layout Subsection
8782 \begin_inset CommandInset label
8783 LatexCommand label
8784 name "subsec:General-text-class"
8785
8786 \end_inset
8787
8788 General text class parameters
8789 \end_layout
8790
8791 \begin_layout Standard
8792 These are general parameters that govern the behavior of an entire document
8793  class.
8794  (This does 
8795 \emph on
8796 not
8797 \emph default
8798  mean that they must appear in 
8799 \begin_inset Flex Code
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 .layout
8804 \end_layout
8805
8806 \end_inset
8807
8808  files rather than in modules.
8809  A module can contain any layout tag.)
8810 \end_layout
8811
8812 \begin_layout Description
8813 \begin_inset Flex Code
8814 status collapsed
8815
8816 \begin_layout Plain Layout
8817 AddToHTMLPreamble
8818 \end_layout
8819
8820 \end_inset
8821
8822  Adds information that will be output in the 
8823 \begin_inset Flex Code
8824 status collapsed
8825
8826 \begin_layout Plain Layout
8827 <head>
8828 \end_layout
8829
8830 \end_inset
8831
8832  block when the document is output to XHTML.
8833  Typically, this would be used to output CSS style information, but it can
8834  be used for anything that can appear in 
8835 \begin_inset Flex Code
8836 status collapsed
8837
8838 \begin_layout Plain Layout
8839 <head>
8840 \end_layout
8841
8842 \end_inset
8843
8844 .
8845  Must end with 
8846 \begin_inset Quotes eld
8847 \end_inset
8848
8849
8850 \begin_inset Flex Code
8851 status collapsed
8852
8853 \begin_layout Plain Layout
8854 EndPreamble
8855 \end_layout
8856
8857 \end_inset
8858
8859
8860 \begin_inset Quotes erd
8861 \end_inset
8862
8863 .
8864 \end_layout
8865
8866 \begin_layout Description
8867 \begin_inset Flex Code
8868 status collapsed
8869
8870 \begin_layout Plain Layout
8871 AddToPreamble
8872 \end_layout
8873
8874 \end_inset
8875
8876  Adds information to the document preamble.
8877  Must end with
8878 \begin_inset Newline newline
8879 \end_inset
8880
8881
8882 \begin_inset Quotes eld
8883 \end_inset
8884
8885
8886 \begin_inset Flex Code
8887 status collapsed
8888
8889 \begin_layout Plain Layout
8890 EndPreamble
8891 \end_layout
8892
8893 \end_inset
8894
8895
8896 \begin_inset Quotes erd
8897 \end_inset
8898
8899 .
8900 \change_inserted -712698321 1483872509
8901
8902 \end_layout
8903
8904 \begin_layout Description
8905
8906 \change_inserted -712698321 1483874560
8907 \begin_inset Flex Code
8908 status collapsed
8909
8910 \begin_layout Plain Layout
8911
8912 \change_inserted -712698321 1483872558
8913 CiteEngine <engine>
8914 \end_layout
8915
8916 \end_inset
8917
8918  Defines the possibilities for displaying citation references.
8919  See 
8920 \begin_inset CommandInset ref
8921 LatexCommand ref
8922 reference "subsec:Citation-engine-description"
8923 plural "false"
8924 caps "false"
8925 noprefix "false"
8926
8927 \end_inset
8928
8929  for details.
8930  Must end with 
8931 \begin_inset Quotes eld
8932 \end_inset
8933
8934
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939
8940 \change_inserted -712698321 1483872548
8941 End
8942 \end_layout
8943
8944 \end_inset
8945
8946
8947 \begin_inset Quotes erd
8948 \end_inset
8949
8950 .
8951  Primarily used in cite engine files (see 
8952 \begin_inset CommandInset ref
8953 LatexCommand ref
8954 reference "subsec:Cite-Engine-Files"
8955 plural "false"
8956 caps "false"
8957 noprefix "false"
8958
8959 \end_inset
8960
8961 ).
8962 \change_unchanged
8963
8964 \end_layout
8965
8966 \begin_layout Description
8967 \begin_inset Flex Code
8968 status collapsed
8969
8970 \begin_layout Plain Layout
8971 CiteFormat
8972 \end_layout
8973
8974 \end_inset
8975
8976  Defines formats for use in the display of bibliographic information.
8977  See 
8978 \begin_inset CommandInset ref
8979 LatexCommand ref
8980 reference "subsec:Citation-format-description"
8981
8982 \end_inset
8983
8984  for details.
8985  Must end with 
8986 \begin_inset Quotes eld
8987 \end_inset
8988
8989
8990 \begin_inset Flex Code
8991 status collapsed
8992
8993 \begin_layout Plain Layout
8994 End
8995 \end_layout
8996
8997 \end_inset
8998
8999
9000 \begin_inset Quotes erd
9001 \end_inset
9002
9003 .
9004
9005 \change_inserted -712698321 1483875199
9006  Primarily used in cite engine files (see 
9007 \begin_inset CommandInset ref
9008 LatexCommand ref
9009 reference "subsec:Cite-Engine-Files"
9010 plural "false"
9011 caps "false"
9012 noprefix "false"
9013
9014 \end_inset
9015
9016 ).
9017 \change_unchanged
9018
9019 \end_layout
9020
9021 \begin_layout Description
9022
9023 \change_inserted -712698321 1483874578
9024 \begin_inset Flex Code
9025 status collapsed
9026
9027 \begin_layout Plain Layout
9028
9029 \change_inserted -712698321 1483872820
9030 CiteFramework
9031 \end_layout
9032
9033 \end_inset
9034
9035  [
9036 \begin_inset Flex Code
9037 status collapsed
9038
9039 \begin_layout Plain Layout
9040
9041 \change_inserted -712698321 1483872852
9042
9043 \emph on
9044 bibtex
9045 \change_unchanged
9046
9047 \end_layout
9048
9049 \end_inset
9050
9051 ,
9052 \begin_inset Flex Code
9053 status collapsed
9054
9055 \begin_layout Plain Layout
9056
9057 \change_inserted -712698321 1483872857
9058 biblatex
9059 \change_unchanged
9060
9061 \end_layout
9062
9063 \end_inset
9064
9065 ] Determines whether 
9066 \family sans
9067 Biblatex
9068 \family default
9069  or Bib\SpecialChar TeX
9070  is used to generate a Bibliography.
9071  Primarily used in cite engine files (see 
9072 \begin_inset CommandInset ref
9073 LatexCommand ref
9074 reference "subsec:Cite-Engine-Files"
9075 plural "false"
9076 caps "false"
9077 noprefix "false"
9078
9079 \end_inset
9080
9081 ).
9082 \change_unchanged
9083
9084 \end_layout
9085
9086 \begin_layout Description
9087 \begin_inset Flex Code
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 ClassOptions
9092 \end_layout
9093
9094 \end_inset
9095
9096  Describes various global options supported by the document class.
9097  See 
9098 \begin_inset CommandInset ref
9099 LatexCommand ref
9100 reference "subsec:ClassOptions"
9101
9102 \end_inset
9103
9104  for a description.
9105  Must end with 
9106 \begin_inset Quotes eld
9107 \end_inset
9108
9109
9110 \begin_inset Flex Code
9111 status collapsed
9112
9113 \begin_layout Plain Layout
9114 End
9115 \end_layout
9116
9117 \end_inset
9118
9119
9120 \begin_inset Quotes erd
9121 \end_inset
9122
9123 .
9124 \end_layout
9125
9126 \begin_layout Description
9127 \begin_inset Flex Code
9128 status collapsed
9129
9130 \begin_layout Plain Layout
9131 Columns
9132 \end_layout
9133
9134 \end_inset
9135
9136  [
9137 \begin_inset Flex Code
9138 status collapsed
9139
9140 \begin_layout Plain Layout
9141
9142 \emph on
9143 1
9144 \end_layout
9145
9146 \end_inset
9147
9148 ,
9149 \begin_inset space \thinspace{}
9150 \end_inset
9151
9152
9153 \begin_inset Flex Code
9154 status collapsed
9155
9156 \begin_layout Plain Layout
9157 2
9158 \end_layout
9159
9160 \end_inset
9161
9162 ] Whether the class should 
9163 \emph on
9164 default
9165 \emph default
9166  to having one or two columns.
9167  Can be changed in the 
9168 \begin_inset Flex Noun
9169 status collapsed
9170
9171 \begin_layout Plain Layout
9172 Document\SpecialChar menuseparator
9173 Settings
9174 \end_layout
9175
9176 \end_inset
9177
9178  dialog.
9179 \end_layout
9180
9181 \begin_layout Description
9182 \begin_inset Flex Code
9183 status collapsed
9184
9185 \begin_layout Plain Layout
9186 Counter
9187 \end_layout
9188
9189 \end_inset
9190
9191  [
9192 \begin_inset Flex Code
9193 status collapsed
9194
9195 \begin_layout Plain Layout
9196 string
9197 \end_layout
9198
9199 \end_inset
9200
9201 ] This sequence defines the properties for a counter.
9202  If the counter does not yet exist, it is created; if it does exist, it
9203  is modified.
9204  Must end with 
9205 \begin_inset Quotes eld
9206 \end_inset
9207
9208
9209 \begin_inset Flex Code
9210 status collapsed
9211
9212 \begin_layout Plain Layout
9213 End
9214 \end_layout
9215
9216 \end_inset
9217
9218
9219 \begin_inset Quotes erd
9220 \end_inset
9221
9222 .
9223 \begin_inset Newline newline
9224 \end_inset
9225
9226 See 
9227 \begin_inset CommandInset ref
9228 LatexCommand ref
9229 reference "subsec:Counters"
9230
9231 \end_inset
9232
9233  for details on counters.
9234 \end_layout
9235
9236 \begin_layout Description
9237 \begin_inset Flex Code
9238 status collapsed
9239
9240 \begin_layout Plain Layout
9241 DefaultFont
9242 \end_layout
9243
9244 \end_inset
9245
9246  Sets the default font used to display the document.
9247  See 
9248 \begin_inset CommandInset ref
9249 LatexCommand ref
9250 reference "subsec:Font-description"
9251
9252 \end_inset
9253
9254  for how to declare fonts.
9255  Must end with 
9256 \begin_inset Quotes eld
9257 \end_inset
9258
9259
9260 \begin_inset Flex Code
9261 status collapsed
9262
9263 \begin_layout Plain Layout
9264 EndFont
9265 \end_layout
9266
9267 \end_inset
9268
9269
9270 \begin_inset Quotes erd
9271 \end_inset
9272
9273 .
9274 \end_layout
9275
9276 \begin_layout Description
9277 \begin_inset Flex Code
9278 status collapsed
9279
9280 \begin_layout Plain Layout
9281 DefaultModule
9282 \end_layout
9283
9284 \end_inset
9285
9286  [
9287 \begin_inset Flex Code
9288 status collapsed
9289
9290 \begin_layout Plain Layout
9291 <module>
9292 \end_layout
9293
9294 \end_inset
9295
9296 ] Specifies a module to be included by default with this document class.
9297  The module is specified as filename without the 
9298 \begin_inset Flex Code
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302 .module
9303 \end_layout
9304
9305 \end_inset
9306
9307  extension.
9308  The user can still remove the module, but it will be active at the outset.
9309  (This applies only when new files are created, or when this class is chosen
9310  for an existing document.)
9311 \end_layout
9312
9313 \begin_layout Description
9314 \begin_inset Flex Code
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 DefaultStyle
9319 \end_layout
9320
9321 \end_inset
9322
9323  [
9324 \begin_inset Flex Code
9325 status collapsed
9326
9327 \begin_layout Plain Layout
9328 <style>
9329 \end_layout
9330
9331 \end_inset
9332
9333 ] This is the style that will be assigned to new paragraphs, usually 
9334 \begin_inset Flex Noun
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 Standard
9339 \end_layout
9340
9341 \end_inset
9342
9343 .
9344  This will default to the first defined style if not given, but you are
9345  encouraged to use this directive.
9346 \end_layout
9347
9348 \begin_layout Description
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 ExcludesModule
9354 \end_layout
9355
9356 \end_inset
9357
9358  [
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 <module>
9364 \end_layout
9365
9366 \end_inset
9367
9368 ] This tag indicates that the module (which is specified by filename without
9369  the 
9370 \begin_inset Flex Code
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 .module
9375 \end_layout
9376
9377 \end_inset
9378
9379  extension) cannot be used with this document class.
9380  This might be used in a journal-specific layout file to prevent, say, the
9381  use of the 
9382 \begin_inset Flex Code
9383 status collapsed
9384
9385 \begin_layout Plain Layout
9386 theorems-sec
9387 \end_layout
9388
9389 \end_inset
9390
9391  module that numbers theorems by section.
9392  This tag may 
9393 \emph on
9394 not
9395 \emph default
9396  be used in a module.
9397  Modules have their own way of excluding other modules (see 
9398 \begin_inset CommandInset ref
9399 LatexCommand ref
9400 reference "subsec:Layout-modules"
9401
9402 \end_inset
9403
9404 ).
9405 \end_layout
9406
9407 \begin_layout Description
9408 \begin_inset Flex Code
9409 status collapsed
9410
9411 \begin_layout Plain Layout
9412 Float
9413 \end_layout
9414
9415 \end_inset
9416
9417  Defines a new float.
9418  See 
9419 \begin_inset CommandInset ref
9420 LatexCommand ref
9421 reference "subsec:Floats"
9422
9423 \end_inset
9424
9425  for details.
9426  Must end with 
9427 \begin_inset Quotes eld
9428 \end_inset
9429
9430
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435 End
9436 \end_layout
9437
9438 \end_inset
9439
9440
9441 \begin_inset Quotes erd
9442 \end_inset
9443
9444 .
9445 \end_layout
9446
9447 \begin_layout Description
9448 \begin_inset Flex Code
9449 status collapsed
9450
9451 \begin_layout Plain Layout
9452 HTMLPreamble
9453 \end_layout
9454
9455 \end_inset
9456
9457  Sets the information that will be output in the 
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 <head>
9463 \end_layout
9464
9465 \end_inset
9466
9467  block when this document class is output to XHTML.
9468  Note that this will completely override any prior 
9469 \begin_inset Flex Code
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 HTMLPreamble
9474 \end_layout
9475
9476 \end_inset
9477
9478  or 
9479 \begin_inset Flex Code
9480 status collapsed
9481
9482 \begin_layout Plain Layout
9483 AddToHTMLPreamble
9484 \end_layout
9485
9486 \end_inset
9487
9488  declarations.
9489  (Use
9490 \begin_inset Newline newline
9491 \end_inset
9492
9493
9494 \begin_inset Flex Code
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 AddToHTMLPreamble
9499 \end_layout
9500
9501 \end_inset
9502
9503  if you just want to add material to the preamble.) Must end with 
9504 \begin_inset Quotes eld
9505 \end_inset
9506
9507
9508 \begin_inset Flex Code
9509 status collapsed
9510
9511 \begin_layout Plain Layout
9512 EndPreamble
9513 \end_layout
9514
9515 \end_inset
9516
9517
9518 \begin_inset Quotes erd
9519 \end_inset
9520
9521 .
9522 \end_layout
9523
9524 \begin_layout Description
9525 \begin_inset Flex Code
9526 status collapsed
9527
9528 \begin_layout Plain Layout
9529 HTMLTOCSection
9530 \end_layout
9531
9532 \end_inset
9533
9534  [
9535 \begin_inset Flex Code
9536 status collapsed
9537
9538 \begin_layout Plain Layout
9539 <style>
9540 \end_layout
9541
9542 \end_inset
9543
9544 ] The style to use for the table of contents, bibliography, and so forth,
9545  when the document is output to HTML.
9546  For articles, this should normally be 
9547 \begin_inset Flex Code
9548 status collapsed
9549
9550 \begin_layout Plain Layout
9551 Section
9552 \end_layout
9553
9554 \end_inset
9555
9556 ; for books 
9557 \begin_inset Flex Code
9558 status collapsed
9559
9560 \begin_layout Plain Layout
9561 Chapter
9562 \end_layout
9563
9564 \end_inset
9565
9566 .
9567  If it is not given, then \SpecialChar LyX
9568  will attempt to figure out which layout to use.
9569 \end_layout
9570
9571 \begin_layout Description
9572 \begin_inset Flex Code
9573 status collapsed
9574
9575 \begin_layout Plain Layout
9576 IfCounter
9577 \end_layout
9578
9579 \end_inset
9580
9581  [
9582 \begin_inset Flex Code
9583 status collapsed
9584
9585 \begin_layout Plain Layout
9586 <counter>
9587 \end_layout
9588
9589 \end_inset
9590
9591 ] Modifies the properties of the given counter.
9592  If the counter does not exist, the statement is ignored.
9593  Must end with 
9594 \begin_inset Quotes eld
9595 \end_inset
9596
9597
9598 \begin_inset Flex Code
9599 status collapsed
9600
9601 \begin_layout Plain Layout
9602 End
9603 \end_layout
9604
9605 \end_inset
9606
9607
9608 \begin_inset Quotes erd
9609 \end_inset
9610
9611 .
9612 \begin_inset Newline newline
9613 \end_inset
9614
9615 See 
9616 \begin_inset CommandInset ref
9617 LatexCommand ref
9618 reference "subsec:Counters"
9619
9620 \end_inset
9621
9622  for details on counters.
9623 \end_layout
9624
9625 \begin_layout Description
9626 \begin_inset Flex Code
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630 Input
9631 \end_layout
9632
9633 \end_inset
9634
9635  [
9636 \begin_inset Flex Code
9637 status collapsed
9638
9639 \begin_layout Plain Layout
9640 <filename>
9641 \end_layout
9642
9643 \end_inset
9644
9645 ] This allows you to include another layout definition file within yours
9646  to avoid duplicating commands.
9647  Common examples are the standard layout files, for example, 
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 stdclass.inc
9653 \end_layout
9654
9655 \end_inset
9656
9657 , which contains most of the basic layouts.
9658 \end_layout
9659
9660 \begin_layout Description
9661 \begin_inset Flex Code
9662 status collapsed
9663
9664 \begin_layout Plain Layout
9665 InsetLayout
9666 \end_layout
9667
9668 \end_inset
9669
9670  [
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 <type>
9676 \end_layout
9677
9678 \end_inset
9679
9680 ] This section (re-)defines the layout of an inset.
9681  It can be applied to an existing inset or to a new, user-defined inset,
9682  e.g., a new character style.
9683  Must end with 
9684 \begin_inset Quotes eld
9685 \end_inset
9686
9687
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 End
9693 \end_layout
9694
9695 \end_inset
9696
9697
9698 \begin_inset Quotes erd
9699 \end_inset
9700
9701 .
9702 \begin_inset Newline newline
9703 \end_inset
9704
9705 See 
9706 \begin_inset CommandInset ref
9707 LatexCommand ref
9708 reference "subsec:Flex-insets-and"
9709
9710 \end_inset
9711
9712  for more information.
9713  
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 LeftMargin
9722 \end_layout
9723
9724 \end_inset
9725
9726  [
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 string
9732 \end_layout
9733
9734 \end_inset
9735
9736 ] A string that indicates the width of the left margin on the screen, for
9737  example, 
9738 \begin_inset Quotes eld
9739 \end_inset
9740
9741
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 MMMMM
9747 \end_layout
9748
9749 \end_inset
9750
9751
9752 \begin_inset Quotes erd
9753 \end_inset
9754
9755 .
9756  (Note that this is not a `length', like 
9757 \begin_inset Quotes eld
9758 \end_inset
9759
9760 2ex
9761 \begin_inset Quotes erd
9762 \end_inset
9763
9764 .)
9765 \change_inserted -712698321 1483872681
9766
9767 \end_layout
9768
9769 \begin_layout Description
9770
9771 \change_inserted -712698321 1483874598
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776
9777 \change_inserted -712698321 1483872687
9778 MaxCiteNames
9779 \end_layout
9780
9781 \end_inset
9782
9783  [
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788
9789 \change_inserted -712698321 1483872692
9790 integer
9791 \end_layout
9792
9793 \end_inset
9794
9795 ] An integer that determines the maximal number of names displayed in an
9796  author-year citation before the citation switches to 
9797 \begin_inset Quotes eld
9798 \end_inset
9799
9800 FirstAuthor et al.
9801 \begin_inset Quotes erd
9802 \end_inset
9803
9804 .
9805  Primarily used in cite engine files (see 
9806 \begin_inset CommandInset ref
9807 LatexCommand ref
9808 reference "subsec:Cite-Engine-Files"
9809 plural "false"
9810 caps "false"
9811 noprefix "false"
9812
9813 \end_inset
9814
9815 ).
9816 \change_unchanged
9817
9818 \end_layout
9819
9820 \begin_layout Description
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 ModifyStyle
9826 \end_layout
9827
9828 \end_inset
9829
9830  [
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 <style>
9836 \end_layout
9837
9838 \end_inset
9839
9840 ] Modifies the properties of the given paragraph style.
9841  If the style does not exist, this section is ignored.
9842  Must end with 
9843 \begin_inset Quotes eld
9844 \end_inset
9845
9846
9847 \begin_inset Flex Code
9848 status collapsed
9849
9850 \begin_layout Plain Layout
9851 End
9852 \end_layout
9853
9854 \end_inset
9855
9856
9857 \begin_inset Quotes erd
9858 \end_inset
9859
9860 .
9861 \end_layout
9862
9863 \begin_layout Description
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 NoCounter
9869 \end_layout
9870
9871 \end_inset
9872
9873  [
9874 \begin_inset Flex Code
9875 status collapsed
9876
9877 \begin_layout Plain Layout
9878 <counter>
9879 \end_layout
9880
9881 \end_inset
9882
9883 ] Deletes an existing counter, usually one defined in an included file.
9884 \end_layout
9885
9886 \begin_layout Description
9887 \begin_inset Flex Code
9888 status collapsed
9889
9890 \begin_layout Plain Layout
9891 NoFloat
9892 \end_layout
9893
9894 \end_inset
9895
9896  [
9897 \begin_inset Flex Code
9898 status collapsed
9899
9900 \begin_layout Plain Layout
9901 <float>
9902 \end_layout
9903
9904 \end_inset
9905
9906 ] Deletes an existing float.
9907  This is particularly useful when you want to suppress a float that has
9908  been defined in an input file.
9909 \end_layout
9910
9911 \begin_layout Description
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 NoStyle
9917 \end_layout
9918
9919 \end_inset
9920
9921  [
9922 \begin_inset Flex Code
9923 status collapsed
9924
9925 \begin_layout Plain Layout
9926 <style>
9927 \end_layout
9928
9929 \end_inset
9930
9931 ] Deletes an existing style.
9932 \end_layout
9933
9934 \begin_layout Description
9935 \begin_inset Flex Code
9936 status collapsed
9937
9938 \begin_layout Plain Layout
9939 OutputFormat
9940 \end_layout
9941
9942 \end_inset
9943
9944  [
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949 <format>
9950 \end_layout
9951
9952 \end_inset
9953
9954 ] The file format (as defined in the \SpecialChar LyX
9955  preferences) produced by this document
9956  class.
9957  It is mainly useful when 
9958 \begin_inset Flex Code
9959 status collapsed
9960
9961 \begin_layout Plain Layout
9962 OutputType
9963 \end_layout
9964
9965 \end_inset
9966
9967  is 
9968 \begin_inset Flex Code
9969 status collapsed
9970
9971 \begin_layout Plain Layout
9972 literate
9973 \end_layout
9974
9975 \end_inset
9976
9977  and one wants to define a new type of literate document.
9978  The format is reset to 
9979 \begin_inset Quotes eld
9980 \end_inset
9981
9982
9983 \begin_inset Flex Code
9984 status collapsed
9985
9986 \begin_layout Plain Layout
9987 docbook
9988 \end_layout
9989
9990 \end_inset
9991
9992
9993 \begin_inset Quotes erd
9994 \end_inset
9995
9996  or 
9997 \begin_inset Quotes eld
9998 \end_inset
9999
10000
10001 \begin_inset Flex Code
10002 status collapsed
10003
10004 \begin_layout Plain Layout
10005 latex
10006 \end_layout
10007
10008 \end_inset
10009
10010
10011 \begin_inset Quotes erd
10012 \end_inset
10013
10014  when the corresponding 
10015 \begin_inset Flex Code
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 OutputType
10020 \end_layout
10021
10022 \end_inset
10023
10024  parameter is encountered.
10025 \end_layout
10026
10027 \begin_layout Description
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 OutputType
10033 \end_layout
10034
10035 \end_inset
10036
10037  [
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042
10043 \emph on
10044 lat
10045 \emph default
10046 ex
10047 \end_layout
10048
10049 \end_inset
10050
10051
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 docbook
10057 \end_layout
10058
10059 \end_inset
10060
10061
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 literate
10067 \end_layout
10068
10069 \end_inset
10070
10071 ] Specifies what sort of output documents using this class will produce.
10072 \end_layout
10073
10074 \begin_layout Description
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 PackageOptions
10080 \end_layout
10081
10082 \end_inset
10083
10084  [
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 string
10090 \end_layout
10091
10092 \end_inset
10093
10094  
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099 string
10100 \end_layout
10101
10102 \end_inset
10103
10104 ] Specifies options, given in the second string, for the package named by
10105  the first string.
10106  For example, 
10107 \begin_inset Quotes eld
10108 \end_inset
10109
10110
10111 \begin_inset Flex Code
10112 status collapsed
10113
10114 \begin_layout Plain Layout
10115 PackageOptions natbib square
10116 \end_layout
10117
10118 \end_inset
10119
10120
10121 \begin_inset Quotes erd
10122 \end_inset
10123
10124  will cause 
10125 \begin_inset Flex Code
10126 status collapsed
10127
10128 \begin_layout Plain Layout
10129 natbib
10130 \end_layout
10131
10132 \end_inset
10133
10134  to be loaded with the 
10135 \begin_inset Flex Code
10136 status collapsed
10137
10138 \begin_layout Plain Layout
10139 square
10140 \end_layout
10141
10142 \end_inset
10143
10144  option.
10145  (For \SpecialChar TeX
10146 perts, this causes \SpecialChar LyX
10147  to output: 
10148 \begin_inset Flex Code
10149 status collapsed
10150
10151 \begin_layout Plain Layout
10152
10153 \backslash
10154 PassOptionsToPackage{natbib}{square}
10155 \end_layout
10156
10157 \end_inset
10158
10159  prior to loading 
10160 \begin_inset Flex Code
10161 status collapsed
10162
10163 \begin_layout Plain Layout
10164 natbib
10165 \end_layout
10166
10167 \end_inset
10168
10169 .)
10170 \end_layout
10171
10172 \begin_layout Description
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 PageStyle
10178 \end_layout
10179
10180 \end_inset
10181
10182  [
10183 \begin_inset Flex Code
10184 status collapsed
10185
10186 \begin_layout Plain Layout
10187
10188 \emph on
10189 plain
10190 \end_layout
10191
10192 \end_inset
10193
10194
10195 \begin_inset Flex Code
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199 empty
10200 \end_layout
10201
10202 \end_inset
10203
10204
10205 \begin_inset Flex Code
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209 headings
10210 \end_layout
10211
10212 \end_inset
10213
10214 ] The default pagestyle.
10215  Can be changed in the 
10216 \begin_inset Flex Noun
10217 status collapsed
10218
10219 \begin_layout Plain Layout
10220 Document\SpecialChar menuseparator
10221 Settings
10222 \end_layout
10223
10224 \end_inset
10225
10226  dialog.
10227 \end_layout
10228
10229 \begin_layout Description
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 Preamble
10235 \end_layout
10236
10237 \end_inset
10238
10239  Sets the preamble for the \SpecialChar LaTeX
10240  document.
10241  Note that this will completely override any prior 
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246 Preamble
10247 \end_layout
10248
10249 \end_inset
10250
10251  or 
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 AddToPreamble
10257 \end_layout
10258
10259 \end_inset
10260
10261  declarations.
10262  (Use 
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 AddToPreamble
10268 \end_layout
10269
10270 \end_inset
10271
10272  if you just want to add material to the preamble.) Must end with 
10273 \begin_inset Quotes eld
10274 \end_inset
10275
10276
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 EndPreamble
10282 \end_layout
10283
10284 \end_inset
10285
10286
10287 \begin_inset Quotes erd
10288 \end_inset
10289
10290 .
10291 \end_layout
10292
10293 \begin_layout Description
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 Provides
10299 \end_layout
10300
10301 \end_inset
10302
10303  [
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 string
10309 \end_layout
10310
10311 \end_inset
10312
10313 ] [
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318
10319 \emph on
10320 0
10321 \end_layout
10322
10323 \end_inset
10324
10325 ,
10326 \begin_inset space \thinspace{}
10327 \end_inset
10328
10329
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 1
10335 \end_layout
10336
10337 \end_inset
10338
10339 ] Whether the class already provides the feature 
10340 \begin_inset Flex Code
10341 status collapsed
10342
10343 \begin_layout Plain Layout
10344 string
10345 \end_layout
10346
10347 \end_inset
10348
10349 .
10350  A feature is in general the name of a package (e.
10351 \begin_inset space \thinspace{}
10352 \end_inset
10353
10354 g.
10355 \begin_inset space \space{}
10356 \end_inset
10357
10358
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 amsmath
10364 \end_layout
10365
10366 \end_inset
10367
10368  or 
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 makeidx
10374 \end_layout
10375
10376 \end_inset
10377
10378 ) or a macro (e.
10379 \begin_inset space \thinspace{}
10380 \end_inset
10381
10382 g.
10383 \begin_inset space \space{}
10384 \end_inset
10385
10386
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 url
10392 \end_layout
10393
10394 \end_inset
10395
10396  or 
10397 \begin_inset Flex Code
10398 status collapsed
10399
10400 \begin_layout Plain Layout
10401 boldsymbol
10402 \end_layout
10403
10404 \end_inset
10405
10406 ).
10407  See 
10408 \begin_inset CommandInset ref
10409 LatexCommand ref
10410 reference "chap:List-of-functions"
10411
10412 \end_inset
10413
10414  for the list of features.
10415 \end_layout
10416
10417 \begin_layout Description
10418 \begin_inset Flex Code
10419 status collapsed
10420
10421 \begin_layout Plain Layout
10422 ProvidesModule
10423 \end_layout
10424
10425 \end_inset
10426
10427  [
10428 \begin_inset Flex Code
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432 string
10433 \end_layout
10434
10435 \end_inset
10436
10437 ] Indicates that this layout provides the functionality of the module mentioned,
10438  which should be specified by the filename without the 
10439 \begin_inset Flex Code
10440 status collapsed
10441
10442 \begin_layout Plain Layout
10443 .module
10444 \end_layout
10445
10446 \end_inset
10447
10448  extension.
10449  This will typically be used if the layout includes the module directly,
10450  rather than using the 
10451 \begin_inset Flex Code
10452 status collapsed
10453
10454 \begin_layout Plain Layout
10455 DefaultModule
10456 \end_layout
10457
10458 \end_inset
10459
10460  tag to indicate that it ought to be used.
10461  It could also be used in a module that provided an alternate implementation
10462  of the same functionality.
10463 \end_layout
10464
10465 \begin_layout Description
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 ProvideStyle
10471 \end_layout
10472
10473 \end_inset
10474
10475  [
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480 <style>
10481 \end_layout
10482
10483 \end_inset
10484
10485 ] Creates a new paragraph style if it does not already exist.
10486  If the style does exist, this section is ignored.
10487  Must end with 
10488 \begin_inset Quotes eld
10489 \end_inset
10490
10491
10492 \begin_inset Flex Code
10493 status collapsed
10494
10495 \begin_layout Plain Layout
10496 End
10497 \end_layout
10498
10499 \end_inset
10500
10501
10502 \begin_inset Quotes erd
10503 \end_inset
10504
10505 .
10506 \end_layout
10507
10508 \begin_layout Description
10509 \begin_inset Flex Code
10510 status collapsed
10511
10512 \begin_layout Plain Layout
10513 Requires
10514 \end_layout
10515
10516 \end_inset
10517
10518  [
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523 string
10524 \end_layout
10525
10526 \end_inset
10527
10528 ] Whether the class requires the feature 
10529 \begin_inset Flex Code
10530 status collapsed
10531
10532 \begin_layout Plain Layout
10533 string
10534 \end_layout
10535
10536 \end_inset
10537
10538 .
10539  Multiple features must be separated by commas.
10540  Note that you can only request supported features.
10541  (See 
10542 \begin_inset CommandInset ref
10543 LatexCommand ref
10544 reference "chap:List-of-functions"
10545
10546 \end_inset
10547
10548  for the list of features.).
10549  If you require a package with specific options, you can additionally use
10550  
10551 \begin_inset Flex Code
10552 status collapsed
10553
10554 \begin_layout Plain Layout
10555 PackageOptions
10556 \end_layout
10557
10558 \end_inset
10559
10560 .
10561 \end_layout
10562
10563 \begin_layout Description
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 RightMargin
10569 \end_layout
10570
10571 \end_inset
10572
10573  [
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 string
10579 \end_layout
10580
10581 \end_inset
10582
10583 ] A string that indicates the width of the right margin on the screen, for
10584  example, 
10585 \begin_inset Quotes eld
10586 \end_inset
10587
10588
10589 \begin_inset Flex Code
10590 status collapsed
10591
10592 \begin_layout Plain Layout
10593 MMMMM
10594 \end_layout
10595
10596 \end_inset
10597
10598
10599 \begin_inset Quotes erd
10600 \end_inset
10601
10602 .
10603 \end_layout
10604
10605 \begin_layout Description
10606 \begin_inset Flex Code
10607 status collapsed
10608
10609 \begin_layout Plain Layout
10610 SecNumDepth
10611 \end_layout
10612
10613 \end_inset
10614
10615  [
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 int=3
10621 \end_layout
10622
10623 \end_inset
10624
10625 ] Sets which divisions get numbered.
10626  Corresponds to the
10627 \begin_inset Newline newline
10628 \end_inset
10629
10630
10631 \begin_inset Flex Code
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 secnumdepth
10636 \end_layout
10637
10638 \end_inset
10639
10640  counter in \SpecialChar LaTeX
10641 .
10642 \end_layout
10643
10644 \begin_layout Description
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 Sides
10650 \end_layout
10651
10652 \end_inset
10653
10654  [
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659
10660 \emph on
10661 1
10662 \end_layout
10663
10664 \end_inset
10665
10666 ,
10667 \begin_inset space \thinspace{}
10668 \end_inset
10669
10670
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 2
10676 \end_layout
10677
10678 \end_inset
10679
10680 ] Whether the class-default should be printing on one or both sides of the
10681  paper.
10682  Can be changed in the 
10683 \begin_inset Flex Noun
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687 Document\SpecialChar menuseparator
10688 Settings
10689 \end_layout
10690
10691 \end_inset
10692
10693  dialog.
10694 \end_layout
10695
10696 \begin_layout Description
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 Style
10702 \end_layout
10703
10704 \end_inset
10705
10706  [
10707 \begin_inset Flex Code
10708 status collapsed
10709
10710 \begin_layout Plain Layout
10711 <name>
10712 \end_layout
10713
10714 \end_inset
10715
10716 ] This sequence defines a paragraph style.
10717  If the style does not yet exist, it is created; if it does exist, its parameter
10718 s are modified.
10719  Must end with 
10720 \begin_inset Quotes eld
10721 \end_inset
10722
10723
10724 \begin_inset Flex Code
10725 status collapsed
10726
10727 \begin_layout Plain Layout
10728 End
10729 \end_layout
10730
10731 \end_inset
10732
10733
10734 \begin_inset Quotes erd
10735 \end_inset
10736
10737 .
10738 \begin_inset Newline newline
10739 \end_inset
10740
10741 See 
10742 \begin_inset CommandInset ref
10743 LatexCommand ref
10744 reference "subsec:Paragraph-Styles"
10745
10746 \end_inset
10747
10748  for details on paragraph styles.
10749 \end_layout
10750
10751 \begin_layout Description
10752 \begin_inset Flex Code
10753 status collapsed
10754
10755 \begin_layout Plain Layout
10756 TitleLatexName
10757 \end_layout
10758
10759 \end_inset
10760
10761  [
10762 \begin_inset Flex Code
10763 status collapsed
10764
10765 \begin_layout Plain Layout
10766 string="maketitle"
10767 \end_layout
10768
10769 \end_inset
10770
10771 ] The name of the command or environment to be used with 
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776 TitleLatexType
10777 \end_layout
10778
10779 \end_inset
10780
10781 .
10782 \end_layout
10783
10784 \begin_layout Description
10785 \begin_inset Flex Code
10786 status collapsed
10787
10788 \begin_layout Plain Layout
10789 TitleLatexType
10790 \end_layout
10791
10792 \end_inset
10793
10794  [
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799
10800 \emph on
10801 CommandAfter
10802 \end_layout
10803
10804 \end_inset
10805
10806
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 Environment
10812 \end_layout
10813
10814 \end_inset
10815
10816 ] Indicates what kind of markup is used to define the title of a document.
10817  
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 CommandAfter
10823 \end_layout
10824
10825 \end_inset
10826
10827  means that the macro with name 
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 TitleLatexName
10833 \end_layout
10834
10835 \end_inset
10836
10837  will be inserted after the last layout which has 
10838 \begin_inset Quotes eld
10839 \end_inset
10840
10841
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 InTitle
10847 \begin_inset space ~
10848 \end_inset
10849
10850 1
10851 \end_layout
10852
10853 \end_inset
10854
10855
10856 \begin_inset Quotes erd
10857 \end_inset
10858
10859 .
10860  
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865 Environment
10866 \end_layout
10867
10868 \end_inset
10869
10870  corresponds to the case where all layouts which have 
10871 \begin_inset Quotes eld
10872 \end_inset
10873
10874
10875 \begin_inset Flex Code
10876 status collapsed
10877
10878 \begin_layout Plain Layout
10879 InTitle
10880 \begin_inset space ~
10881 \end_inset
10882
10883 1
10884 \end_layout
10885
10886 \end_inset
10887
10888
10889 \begin_inset Quotes erd
10890 \end_inset
10891
10892  should be enclosed into the 
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 TitleLatexName
10898 \end_layout
10899
10900 \end_inset
10901
10902  environment.
10903 \end_layout
10904
10905 \begin_layout Description
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 TocDepth
10911 \end_layout
10912
10913 \end_inset
10914
10915  [
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920 int=3
10921 \end_layout
10922
10923 \end_inset
10924
10925 ] Sets which divisions are included in the table of contents.
10926  Corresponds to the 
10927 \begin_inset Flex Code
10928 status collapsed
10929
10930 \begin_layout Plain Layout
10931 tocdepth
10932 \end_layout
10933
10934 \end_inset
10935
10936  counter in \SpecialChar LaTeX
10937 .
10938 \end_layout
10939
10940 \begin_layout Subsection
10941 \begin_inset Flex Code
10942 status collapsed
10943
10944 \begin_layout Plain Layout
10945 ClassOptions
10946 \end_layout
10947
10948 \end_inset
10949
10950  section
10951 \begin_inset CommandInset label
10952 LatexCommand label
10953 name "subsec:ClassOptions"
10954
10955 \end_inset
10956
10957
10958 \end_layout
10959
10960 \begin_layout Standard
10961 The 
10962 \begin_inset Flex Code
10963 status collapsed
10964
10965 \begin_layout Plain Layout
10966 ClassOptions
10967 \end_layout
10968
10969 \end_inset
10970
10971  section can contain the following entries:
10972 \end_layout
10973
10974 \begin_layout Description
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 FontSize
10980 \end_layout
10981
10982 \end_inset
10983
10984  [
10985 \begin_inset Flex Code
10986 status collapsed
10987
10988 \begin_layout Plain Layout
10989 string="10|11|12"
10990 \end_layout
10991
10992 \end_inset
10993
10994 ] The list of available font sizes for the document's main font, separated
10995  by 
10996 \begin_inset Quotes eld
10997 \end_inset
10998
10999
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004 |
11005 \end_layout
11006
11007 \end_inset
11008
11009
11010 \begin_inset Quotes erd
11011 \end_inset
11012
11013 .
11014 \end_layout
11015
11016 \begin_layout Description
11017 \begin_inset Flex Code
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 Header
11022 \end_layout
11023
11024 \end_inset
11025
11026  Used to set the DTD line with XML-based output classes.
11027  E.
11028 \begin_inset space \thinspace{}
11029 \end_inset
11030
11031 g.: PUBLIC 
11032 \begin_inset Quotes eld
11033 \end_inset
11034
11035 -//OASIS//DTD DocBook V4.2//EN
11036 \begin_inset Quotes erd
11037 \end_inset
11038
11039 .
11040 \end_layout
11041
11042 \begin_layout Description
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 PageStyle
11048 \end_layout
11049
11050 \end_inset
11051
11052  [
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057 string="empty|plain|headings|fancy"
11058 \end_layout
11059
11060 \end_inset
11061
11062 ] The list of available page sty\SpecialChar softhyphen
11063 les, separated by 
11064 \begin_inset Quotes eld
11065 \end_inset
11066
11067
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072 |
11073 \end_layout
11074
11075 \end_inset
11076
11077
11078 \begin_inset Quotes erd
11079 \end_inset
11080
11081 .
11082 \end_layout
11083
11084 \begin_layout Description
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089 Other
11090 \end_layout
11091
11092 \end_inset
11093
11094  [
11095 \begin_inset Flex Code
11096 status collapsed
11097
11098 \begin_layout Plain Layout
11099 string=""
11100 \end_layout
11101
11102 \end_inset
11103
11104 ] Some document class options, separated by a comma, that will be added
11105  to the optional part of the 
11106 \begin_inset Flex Code
11107 status collapsed
11108
11109 \begin_layout Plain Layout
11110
11111 \backslash
11112 documentclass
11113 \end_layout
11114
11115 \end_inset
11116
11117  command.
11118 \end_layout
11119
11120 \begin_layout Standard
11121 The 
11122 \begin_inset Flex Code
11123 status collapsed
11124
11125 \begin_layout Plain Layout
11126 ClassOptions
11127 \end_layout
11128
11129 \end_inset
11130
11131  section must end with 
11132 \begin_inset Quotes eld
11133 \end_inset
11134
11135
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140 End
11141 \end_layout
11142
11143 \end_inset
11144
11145
11146 \begin_inset Quotes erd
11147 \end_inset
11148
11149 .
11150 \end_layout
11151
11152 \begin_layout Subsection
11153 Paragraph styles
11154 \begin_inset CommandInset label
11155 LatexCommand label
11156 name "subsec:Paragraph-Styles"
11157
11158 \end_inset
11159
11160
11161 \end_layout
11162
11163 \begin_layout Standard
11164 A paragraph style description looks like this:
11165 \begin_inset Foot
11166 status collapsed
11167
11168 \begin_layout Plain Layout
11169 Note that this will either define a new style or modify an existing one.
11170 \end_layout
11171
11172 \end_inset
11173
11174
11175 \end_layout
11176
11177 \begin_layout LyX-Code
11178 Style 
11179 \family roman
11180 \emph on
11181 name
11182 \end_layout
11183
11184 \begin_layout LyX-Code
11185  ...
11186 \end_layout
11187
11188 \begin_layout LyX-Code
11189 End
11190 \end_layout
11191
11192 \begin_layout Standard
11193 where the following commands are allowed:
11194 \end_layout
11195
11196 \begin_layout Description
11197 \begin_inset Flex Code
11198 status collapsed
11199
11200 \begin_layout Plain Layout
11201 Align
11202 \end_layout
11203
11204 \end_inset
11205
11206  [
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211
11212 \emph on
11213 block
11214 \emph default
11215 , left, right, center
11216 \end_layout
11217
11218 \end_inset
11219
11220 ] Paragraph alignment.
11221 \end_layout
11222
11223 \begin_layout Description
11224 \begin_inset Flex Code
11225 status collapsed
11226
11227 \begin_layout Plain Layout
11228 AlignPossible
11229 \end_layout
11230
11231 \end_inset
11232
11233  [
11234 \begin_inset Flex Code
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238
11239 \emph on
11240 block
11241 \emph default
11242 , left, right, center
11243 \end_layout
11244
11245 \end_inset
11246
11247 ] A comma separated list of permitted alignments.
11248  (Some \SpecialChar LaTeX
11249  styles prohibit certain alignments, since those wouldn't make sense.
11250  For example a right-aligned or centered enumeration isn't possible.)
11251 \end_layout
11252
11253 \begin_layout Description
11254 \begin_inset Flex Code
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258 Argument
11259 \end_layout
11260
11261 \end_inset
11262
11263  [
11264 \begin_inset Flex Code
11265 status collapsed
11266
11267 \begin_layout Plain Layout
11268 int
11269 \end_layout
11270
11271 \end_inset
11272
11273 ] Defines argument number <int> of a command\SpecialChar breakableslash
11274 environment associated with
11275  the current style.
11276  This is useful for things like section headings, and only makes sense with
11277  \SpecialChar LaTeX
11278 .
11279  Every (optional or required) argument of a command or environment – except
11280  for the required argument that is associated with the content of the paragraph
11281  itself – has a separate definition, where the number specifies the order
11282  of the arguments.
11283  The definition must end with 
11284 \begin_inset Flex Code
11285 status collapsed
11286
11287 \begin_layout Plain Layout
11288 EndArgument
11289 \end_layout
11290
11291 \end_inset
11292
11293 .
11294  So a command with two optional arguments has:
11295 \end_layout
11296
11297 \begin_deeper
11298 \begin_layout Quote
11299
11300 \family typewriter
11301 Argument 1
11302 \end_layout
11303
11304 \begin_layout Quote
11305
11306 \family typewriter
11307 ...
11308 \end_layout
11309
11310 \begin_layout Quote
11311
11312 \family typewriter
11313 EndArgument
11314 \end_layout
11315
11316 \begin_layout Quote
11317
11318 \family typewriter
11319 Argument 2
11320 \end_layout
11321
11322 \begin_layout Quote
11323
11324 \family typewriter
11325 ...
11326 \end_layout
11327
11328 \begin_layout Quote
11329
11330 \family typewriter
11331 EndArgument
11332 \end_layout
11333
11334 \begin_layout Standard
11335 Inside the 
11336 \begin_inset Flex Code
11337 status collapsed
11338
11339 \begin_layout Plain Layout
11340 Argument
11341 \end_layout
11342
11343 \end_inset
11344
11345  definition, the following specifications are possible:
11346 \end_layout
11347
11348 \begin_layout Itemize
11349 \begin_inset Flex Code
11350 status collapsed
11351
11352 \begin_layout Plain Layout
11353 LabelString
11354 \end_layout
11355
11356 \end_inset
11357
11358  
11359 \begin_inset Flex Code
11360 status collapsed
11361
11362 \begin_layout Plain Layout
11363 [string]
11364 \end_layout
11365
11366 \end_inset
11367
11368  The string that will appear both in the menu (to insert this argument)
11369  and on the argument inset button (unless you also specify a separate 
11370 \begin_inset Flex Code
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 MenuString
11375 \end_layout
11376
11377 \end_inset
11378
11379 ).
11380  For the menu, you can define an accelerator by appending the respective
11381  character to the string, divided by 
11382 \begin_inset Quotes eld
11383 \end_inset
11384
11385 |
11386 \begin_inset Quotes erd
11387 \end_inset
11388
11389  (e.
11390 \begin_inset space \thinspace{}
11391 \end_inset
11392
11393 g.
11394 \begin_inset space \space{}
11395 \end_inset
11396
11397
11398 \begin_inset Quotes eld
11399 \end_inset
11400
11401
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 Short Title|S
11407 \end_layout
11408
11409 \end_inset
11410
11411
11412 \begin_inset Quotes erd
11413 \end_inset
11414
11415 ).
11416 \end_layout
11417
11418 \begin_layout Itemize
11419 \begin_inset Flex Code
11420 status collapsed
11421
11422 \begin_layout Plain Layout
11423 MenuString
11424 \end_layout
11425
11426 \end_inset
11427
11428  
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 [string]
11434 \end_layout
11435
11436 \end_inset
11437
11438  A separate string for the menu.
11439  You can define an accelerator by appending the respective character to
11440  the string, divided by 
11441 \begin_inset Quotes eld
11442 \end_inset
11443
11444 |
11445 \begin_inset Quotes erd
11446 \end_inset
11447
11448  (e.
11449 \begin_inset space \thinspace{}
11450 \end_inset
11451
11452 g.
11453 \begin_inset space \space{}
11454 \end_inset
11455
11456
11457 \begin_inset Quotes eld
11458 \end_inset
11459
11460
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 Short Title|S
11466 \end_layout
11467
11468 \end_inset
11469
11470
11471 \begin_inset Quotes erd
11472 \end_inset
11473
11474 ).
11475  This specification is optional.
11476  If it is not given the 
11477 \begin_inset Flex Code
11478 status collapsed
11479
11480 \begin_layout Plain Layout
11481 LabelString
11482 \end_layout
11483
11484 \end_inset
11485
11486  will be used instead for the menu.
11487 \end_layout
11488
11489 \begin_layout Itemize
11490 \begin_inset Flex Code
11491 status collapsed
11492
11493 \begin_layout Plain Layout
11494 Tooltip
11495 \end_layout
11496
11497 \end_inset
11498
11499  
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 [string]
11505 \end_layout
11506
11507 \end_inset
11508
11509  A longer explanatory text that appears in the tooltip when hovering over
11510  the argument inset.
11511 \end_layout
11512
11513 \begin_layout Itemize
11514 \begin_inset Flex Code
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518 Mandatory
11519 \end_layout
11520
11521 \end_inset
11522
11523  [
11524 \begin_inset Flex Code
11525 status collapsed
11526
11527 \begin_layout Plain Layout
11528
11529 \emph on
11530 0
11531 \end_layout
11532
11533 \end_inset
11534
11535 ,
11536 \begin_inset space \thinspace{}
11537 \end_inset
11538
11539
11540 \begin_inset Flex Code
11541 status collapsed
11542
11543 \begin_layout Plain Layout
11544 1
11545 \end_layout
11546
11547 \end_inset
11548
11549 ] Declare if this is a mandatory (1) or an optional (0) argument.
11550  Mandatory arguments will be output empty if not given, while optional arguments
11551  will not be output at all.
11552  By default, mandatory arguments are delimited by 
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 {...}
11558 \end_layout
11559
11560 \end_inset
11561
11562 , while optional arguments are delimited by 
11563 \begin_inset Flex Code
11564 status collapsed
11565
11566 \begin_layout Plain Layout
11567 [...]
11568 \end_layout
11569
11570 \end_inset
11571
11572
11573 \end_layout
11574
11575 \begin_layout Itemize
11576 \begin_inset Flex Code
11577 status collapsed
11578
11579 \begin_layout Plain Layout
11580 Requires
11581 \end_layout
11582
11583 \end_inset
11584
11585  
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590 [int=0]
11591 \end_layout
11592
11593 \end_inset
11594
11595  defines another argument (by its number) which this argument requires to
11596  be output if it is itself output.
11597  E.
11598 \begin_inset space \thinspace{}
11599 \end_inset
11600
11601 g., in \SpecialChar LaTeX
11602  commands, optional arguments often require previous optional arguments
11603  to be output (at least empty), as in 
11604 \begin_inset Flex Code
11605 status collapsed
11606
11607 \begin_layout Plain Layout
11608
11609 \backslash
11610 command[][argument]{text}
11611 \end_layout
11612
11613 \end_inset
11614
11615 .
11616  This can be achieved by the statement 
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 Requires 1
11622 \end_layout
11623
11624 \end_inset
11625
11626  within 
11627 \begin_inset Flex Code
11628 status collapsed
11629
11630 \begin_layout Plain Layout
11631 Argument 2
11632 \end_layout
11633
11634 \end_inset
11635
11636 .
11637 \end_layout
11638
11639 \begin_layout Itemize
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644 LeftDelim
11645 \end_layout
11646
11647 \end_inset
11648
11649  
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654 [string]
11655 \end_layout
11656
11657 \end_inset
11658
11659  defines a custom left delimiter (instead of 
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 {
11665 \end_layout
11666
11667 \end_inset
11668
11669  or 
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 [
11675 \end_layout
11676
11677 \end_inset
11678
11679 ).
11680  A line break in the output can be indicated by 
11681 \begin_inset Flex Code
11682 status collapsed
11683
11684 \begin_layout Plain Layout
11685 <br/>
11686 \end_layout
11687
11688 \end_inset
11689
11690 .
11691 \end_layout
11692
11693 \begin_layout Itemize
11694 \begin_inset Flex Code
11695 status collapsed
11696
11697 \begin_layout Plain Layout
11698 RightDelim
11699 \end_layout
11700
11701 \end_inset
11702
11703  
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708 [string]
11709 \end_layout
11710
11711 \end_inset
11712
11713  defines a custom right delimiter (instead of 
11714 \begin_inset Flex Code
11715 status collapsed
11716
11717 \begin_layout Plain Layout
11718 }
11719 \end_layout
11720
11721 \end_inset
11722
11723  or 
11724 \begin_inset Flex Code
11725 status collapsed
11726
11727 \begin_layout Plain Layout
11728 ]
11729 \end_layout
11730
11731 \end_inset
11732
11733 ).
11734  A line break in the output can be indicated by 
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 <br/>
11740 \end_layout
11741
11742 \end_inset
11743
11744 .
11745 \end_layout
11746
11747 \begin_layout Itemize
11748 \begin_inset Flex Code
11749 status collapsed
11750
11751 \begin_layout Plain Layout
11752 DefaultArg
11753 \end_layout
11754
11755 \end_inset
11756
11757  
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 [string]
11763 \end_layout
11764
11765 \end_inset
11766
11767  defines an argument that is inserted if and only if no user-specified arguments
11768  were given, i.
11769 \begin_inset space \thinspace{}
11770 \end_inset
11771
11772 e.
11773 \begin_inset space \space{}
11774 \end_inset
11775
11776 if no argument inset has been inserted (note that also an empty argument
11777  inset omits the DefaultArg).
11778  Multiple arguments need to be separated by comma.
11779 \end_layout
11780
11781 \begin_layout Itemize
11782 \begin_inset Flex Code
11783 status collapsed
11784
11785 \begin_layout Plain Layout
11786 PresetArg
11787 \end_layout
11788
11789 \end_inset
11790
11791  
11792 \begin_inset Flex Code
11793 status collapsed
11794
11795 \begin_layout Plain Layout
11796 [string]
11797 \end_layout
11798
11799 \end_inset
11800
11801  defines an argument that is inserted in any case (alone or in addition
11802  to user-specified arguments).
11803  Multiple arguments need to be separated by comma.
11804 \end_layout
11805
11806 \begin_layout Itemize
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 Font
11812 \end_layout
11813
11814 \end_inset
11815
11816  The font used for the argument content, see 
11817 \begin_inset CommandInset ref
11818 LatexCommand ref
11819 reference "subsec:Font-description"
11820
11821 \end_inset
11822
11823 .
11824 \end_layout
11825
11826 \begin_layout Itemize
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 LabelFont
11832 \end_layout
11833
11834 \end_inset
11835
11836  The font used for the label; see 
11837 \begin_inset CommandInset ref
11838 LatexCommand ref
11839 reference "subsec:Font-description"
11840
11841 \end_inset
11842
11843 .
11844 \end_layout
11845
11846 \begin_layout Itemize
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 Decoration
11852 \end_layout
11853
11854 \end_inset
11855
11856  [
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861
11862 \emph on
11863 Classic
11864 \emph default
11865 , Minimalistic, Conglomerate
11866 \end_layout
11867
11868 \end_inset
11869
11870 ] describes the rendering style used for the inset's frame and buttons.
11871 \end_layout
11872
11873 \begin_layout Itemize
11874 \begin_inset Flex Code
11875 status collapsed
11876
11877 \begin_layout Plain Layout
11878 AutoInsert
11879 \end_layout
11880
11881 \end_inset
11882
11883  
11884 \begin_inset Flex Code
11885 status collapsed
11886
11887 \begin_layout Plain Layout
11888 [int=0]
11889 \end_layout
11890
11891 \end_inset
11892
11893  If this is set to 
11894 \begin_inset Flex Code
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898 1
11899 \end_layout
11900
11901 \end_inset
11902
11903 , this argument is automatically inserted when the respective style is selected.
11904  Currently, only one argument per style\SpecialChar breakableslash
11905 layout can be automatically inserted.
11906 \end_layout
11907
11908 \begin_layout Itemize
11909 \begin_inset Flex Code
11910 status collapsed
11911
11912 \begin_layout Plain Layout
11913 InsertCotext
11914 \end_layout
11915
11916 \end_inset
11917
11918  
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 [int=0]
11924 \end_layout
11925
11926 \end_inset
11927
11928  If this is set to 
11929 \begin_inset Flex Code
11930 status collapsed
11931
11932 \begin_layout Plain Layout
11933 1
11934 \end_layout
11935
11936 \end_inset
11937
11938 , this argument will be inserted with a copy of the co-text (either selected
11939  text or the whole paragraph) as content.
11940 \change_inserted -712698321 1477038290
11941
11942 \end_layout
11943
11944 \begin_layout Itemize
11945
11946 \change_inserted -712698321 1477038425
11947 \begin_inset Flex Code
11948 status collapsed
11949
11950 \begin_layout Plain Layout
11951
11952 \change_inserted -712698321 1477038295
11953 PassThru
11954 \end_layout
11955
11956 \end_inset
11957
11958  [
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963
11964 \change_inserted -712698321 1477038311
11965
11966 \emph on
11967 inherited
11968 \emph default
11969 , true, false
11970 \end_layout
11971
11972 \end_inset
11973
11974 ] Whether the contents of this argument should be output in raw form, meaning
11975  without special translations that \SpecialChar LaTeX
11976  would require.
11977  By default, the 
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982
11983 \change_inserted -712698321 1477038356
11984 PassThru
11985 \end_layout
11986
11987 \end_inset
11988
11989  status is inherited by the inset or paragraph layout the argument belongs
11990  to, true and false change the status for the given argument only.
11991 \change_unchanged
11992
11993 \end_layout
11994
11995 \begin_layout Itemize
11996 \begin_inset Flex Code
11997 status collapsed
11998
11999 \begin_layout Plain Layout
12000 PassThruChars
12001 \end_layout
12002
12003 \end_inset
12004
12005  [
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010 string of characters
12011 \end_layout
12012
12013 \end_inset
12014
12015 ]
12016 \family typewriter
12017  
12018 \family default
12019 Defines individual characters that should be output in raw form, meaning
12020  without special translations that \SpecialChar LaTeX
12021  would require.
12022  Note that, contrary to PassThru, this needs to be explicitly defined for
12023  arguments.
12024  That is, arguments do not inherit PassThruChars from their parent inset
12025  or layout.
12026 \end_layout
12027
12028 \begin_layout Standard
12029 By default, the text entered in the \SpecialChar LyX
12030  workarea in the respective layout is
12031  the last (mandatory) argument of a command if the 
12032 \begin_inset Flex Code
12033 status collapsed
12034
12035 \begin_layout Plain Layout
12036 LatexType
12037 \end_layout
12038
12039 \end_inset
12040
12041  is 
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 Command
12047 \end_layout
12048
12049 \end_inset
12050
12051 .
12052  However, arguments with the prefix 
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 post:
12058 \end_layout
12059
12060 \end_inset
12061
12062  are output after this workarea argument.
12063  Note that post-argument numbering restarts at 1, so the first argument
12064  following the workarea argument is 
12065 \begin_inset Flex Code
12066 status collapsed
12067
12068 \begin_layout Plain Layout
12069 post:1
12070 \end_layout
12071
12072 \end_inset
12073
12074 .
12075  Post-arguments are ignored in any other 
12076 \begin_inset Flex Code
12077 status collapsed
12078
12079 \begin_layout Plain Layout
12080 LatexType
12081 \end_layout
12082
12083 \end_inset
12084
12085  than 
12086 \begin_inset Flex Code
12087 status collapsed
12088
12089 \begin_layout Plain Layout
12090 Command
12091 \end_layout
12092
12093 \end_inset
12094
12095 .
12096 \end_layout
12097
12098 \begin_layout Standard
12099 Arguments for list 
12100 \begin_inset Flex Code
12101 status collapsed
12102
12103 \begin_layout Plain Layout
12104
12105 \backslash
12106 item
12107 \end_layout
12108
12109 \end_inset
12110
12111 s (as in 
12112 \begin_inset Flex Code
12113 status collapsed
12114
12115 \begin_layout Plain Layout
12116
12117 \backslash
12118 item[foo]
12119 \end_layout
12120
12121 \end_inset
12122
12123 ) have the prefix 
12124 \begin_inset Flex Code
12125 status collapsed
12126
12127 \begin_layout Plain Layout
12128 item:
12129 \end_layout
12130
12131 \end_inset
12132
12133  followed by the number (e.
12134 \begin_inset space \thinspace{}
12135 \end_inset
12136
12137 g.
12138 \begin_inset space \space{}
12139 \end_inset
12140
12141
12142 \begin_inset Flex Code
12143 status collapsed
12144
12145 \begin_layout Plain Layout
12146 Argument item:1
12147 \end_layout
12148
12149 \end_inset
12150
12151 ).
12152 \end_layout
12153
12154 \end_deeper
12155 \begin_layout Description
12156 \begin_inset Flex Code
12157 status collapsed
12158
12159 \begin_layout Plain Layout
12160 BabelPreamble
12161 \end_layout
12162
12163 \end_inset
12164
12165  Note that this will completely override any prior 
12166 \begin_inset Flex Code
12167 status collapsed
12168
12169 \begin_layout Plain Layout
12170 BabelPreamble
12171 \end_layout
12172
12173 \end_inset
12174
12175  declaration for this style.
12176  Must end with 
12177 \begin_inset Quotes eld
12178 \end_inset
12179
12180
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 EndBabelPreamble
12186 \end_layout
12187
12188 \end_inset
12189
12190
12191 \begin_inset Quotes erd
12192 \end_inset
12193
12194 .
12195  See 
12196 \begin_inset CommandInset ref
12197 LatexCommand ref
12198 reference "subsec:I18n"
12199
12200 \end_inset
12201
12202  for details on its use.
12203 \end_layout
12204
12205 \begin_layout Description
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 BottomSep
12211 \end_layout
12212
12213 \end_inset
12214
12215  [
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 float=0
12221 \end_layout
12222
12223 \end_inset
12224
12225 ]
12226 \begin_inset Foot
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 Note that a `float' here is a real number, such as: 1.5.
12231 \end_layout
12232
12233 \end_inset
12234
12235  The vertical space with which the last of a chain of paragraphs with this
12236  style is separated from the following paragraph.
12237  If the next paragraph has another style, the separations are not simply
12238  added, but the maximum is taken.
12239 \end_layout
12240
12241 \begin_layout Description
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 Category
12247 \end_layout
12248
12249 \end_inset
12250
12251  [
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 string
12257 \end_layout
12258
12259 \end_inset
12260
12261 ] The category for this style.
12262  This is used to group related styles in the style combobox on the toolbar.
12263  Any string can be used, but you may want to use existing categories with
12264  your own styles.
12265  
12266 \end_layout
12267
12268 \begin_layout Description
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 CommandDepth
12274 \end_layout
12275
12276 \end_inset
12277
12278  Depth of XML command.
12279  Used only with XML-type formats.
12280 \end_layout
12281
12282 \begin_layout Description
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 CopyStyle
12288 \end_layout
12289
12290 \end_inset
12291
12292  [
12293 \begin_inset Flex Code
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297 string
12298 \end_layout
12299
12300 \end_inset
12301
12302 ] Copies all the features of an existing style into the current one.
12303  
12304 \end_layout
12305
12306 \begin_layout Description
12307 \begin_inset Flex Code
12308 status collapsed
12309
12310 \begin_layout Plain Layout
12311 DependsOn
12312 \end_layout
12313
12314 \end_inset
12315
12316  [
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 <name>
12322 \end_layout
12323
12324 \end_inset
12325
12326 ] The name of a style whose preamble should be output 
12327 \emph on
12328 before
12329 \emph default
12330  this one.
12331  This allows to ensure some ordering of the preamble snippets when macros
12332  definitions depend on one another.
12333 \begin_inset Foot
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 Note that, besides that functionality, there is no way to ensure any ordering
12338  of preambles.
12339  The ordering that you see in a given version of \SpecialChar LyX
12340  may change without warning
12341  in later versions.
12342 \end_layout
12343
12344 \end_inset
12345
12346
12347 \end_layout
12348
12349 \begin_layout Description
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 EndLabeltype
12355 \end_layout
12356
12357 \end_inset
12358
12359  [
12360 \begin_inset Flex Code
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364
12365 \emph on
12366 No_Label
12367 \emph default
12368 , Box, Filled_Box, Static
12369 \end_layout
12370
12371 \end_inset
12372
12373 ] The type of label that stands at the end of the paragraph (or sequence
12374  of paragraphs if 
12375 \begin_inset Flex Code
12376 status collapsed
12377
12378 \begin_layout Plain Layout
12379 LatexType
12380 \end_layout
12381
12382 \end_inset
12383
12384  is
12385 \begin_inset Newline newline
12386 \end_inset
12387
12388
12389 \begin_inset Flex Code
12390 status collapsed
12391
12392 \begin_layout Plain Layout
12393 Environment
12394 \end_layout
12395
12396 \end_inset
12397
12398
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403 Item_Environment
12404 \end_layout
12405
12406 \end_inset
12407
12408  or 
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 List_Environment
12414 \end_layout
12415
12416 \end_inset
12417
12418 ).
12419  
12420 \begin_inset Flex Code
12421 status collapsed
12422
12423 \begin_layout Plain Layout
12424 No_Label
12425 \end_layout
12426
12427 \end_inset
12428
12429  means 
12430 \begin_inset Quotes eld
12431 \end_inset
12432
12433 nothing
12434 \begin_inset Quotes erd
12435 \end_inset
12436
12437
12438 \begin_inset Flex Code
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 Box
12443 \end_layout
12444
12445 \end_inset
12446
12447  (resp.
12448 \begin_inset space \space{}
12449 \end_inset
12450
12451
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 Filled_Box
12457 \end_layout
12458
12459 \end_inset
12460
12461 ) is a white (resp.
12462 \begin_inset space ~
12463 \end_inset
12464
12465 black) square suitable for end of proof markers, 
12466 \begin_inset Flex Code
12467 status collapsed
12468
12469 \begin_layout Plain Layout
12470 Static
12471 \end_layout
12472
12473 \end_inset
12474
12475  is an explicit text string.
12476 \end_layout
12477
12478 \begin_layout Description
12479 \begin_inset Flex Code
12480 status collapsed
12481
12482 \begin_layout Plain Layout
12483 EndLabelString
12484 \end_layout
12485
12486 \end_inset
12487
12488  [
12489 \begin_inset Flex Code
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 string=""
12494 \end_layout
12495
12496 \end_inset
12497
12498 ] The string used for a label with a 
12499 \begin_inset Flex Code
12500 status collapsed
12501
12502 \begin_layout Plain Layout
12503 Static
12504 \end_layout
12505
12506 \end_inset
12507
12508
12509 \begin_inset Newline newline
12510 \end_inset
12511
12512
12513 \begin_inset Flex Code
12514 status collapsed
12515
12516 \begin_layout Plain Layout
12517 EndLabelType
12518 \end_layout
12519
12520 \end_inset
12521
12522 .
12523  
12524 \end_layout
12525
12526 \begin_layout Description
12527 \begin_inset Flex Code
12528 status collapsed
12529
12530 \begin_layout Plain Layout
12531 Font
12532 \end_layout
12533
12534 \end_inset
12535
12536  The font used for both the text body 
12537 \emph on
12538 and
12539 \emph default
12540  the label.
12541  See 
12542 \begin_inset CommandInset ref
12543 LatexCommand ref
12544 reference "subsec:Font-description"
12545
12546 \end_inset
12547
12548 .
12549  Note that defining this font automatically defines the 
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 LabelFont
12555 \end_layout
12556
12557 \end_inset
12558
12559  to the same value.
12560  So you should define this one first if you also want to define 
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 LabelFont
12566 \end_layout
12567
12568 \end_inset
12569
12570 .
12571 \end_layout
12572
12573 \begin_layout Description
12574 \begin_inset Flex Code
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578 ForceLocal
12579 \end_layout
12580
12581 \end_inset
12582
12583  [
12584 \begin_inset Flex Code
12585 status collapsed
12586
12587 \begin_layout Plain Layout
12588 int=0
12589 \end_layout
12590
12591 \end_inset
12592
12593 ] Used for backporting new styles to stable \SpecialChar LyX
12594  versions.
12595  The first stable version that supports this tag is \SpecialChar LyX
12596  2.1.0.
12597  The argument is a number which may either be 0, -1 or any value greater
12598  than zero.
12599  If the 
12600 \begin_inset Flex Code
12601 status collapsed
12602
12603 \begin_layout Plain Layout
12604 ForceLocal
12605 \end_layout
12606
12607 \end_inset
12608
12609  flag of a style is greater than zero, it will always be written to the
12610  document header.
12611  If a .lyx file is read, the style definitions from the document header are
12612  added to the document class.
12613  Therefore even older \SpecialChar LyX
12614  versions can handle the style.
12615  The argument of 
12616 \begin_inset Flex Code
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 ForceLocal
12621 \end_layout
12622
12623 \end_inset
12624
12625  is a version number: if the style is read, and the version number is less
12626  than the version number of the already existing style in the document class,
12627  the new style is ignored.
12628  If the version number is greater, the new style replaces the existing style.
12629  A value of -1 means an infinite version number, i.
12630 \begin_inset space \thinspace{}
12631 \end_inset
12632
12633 e.
12634 \begin_inset space \space{}
12635 \end_inset
12636
12637 the style is always used.
12638 \end_layout
12639
12640 \begin_layout Description
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 FreeSpacing
12646 \end_layout
12647
12648 \end_inset
12649
12650  [
12651 \begin_inset Flex Code
12652 status collapsed
12653
12654 \begin_layout Plain Layout
12655
12656 \emph on
12657 0
12658 \end_layout
12659
12660 \end_inset
12661
12662 ,
12663 \begin_inset space \thinspace{}
12664 \end_inset
12665
12666
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 1
12672 \end_layout
12673
12674 \end_inset
12675
12676 ] Usually \SpecialChar LyX
12677  does not allow you to insert more than one space between words,
12678  since a space is considered as the separation between two words, not a
12679  character or symbol of its own.
12680  This is a very fine thing but sometimes annoying, for example, when typing
12681  program code or plain \SpecialChar LaTeX
12682  code.
12683  For this reason, 
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688 FreeSpacing
12689 \end_layout
12690
12691 \end_inset
12692
12693  can be enabled.
12694  Note that \SpecialChar LyX
12695  will create protected blanks for the additional blanks when
12696  in another mode than \SpecialChar LaTeX
12697 -mode.
12698 \end_layout
12699
12700 \begin_layout Description
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 HTML*
12706 \end_layout
12707
12708 \end_inset
12709
12710  These tags are used with XHTML output.
12711  See 
12712 \begin_inset CommandInset ref
12713 LatexCommand ref
12714 reference "subsec:Paragraph-Style-XHTML"
12715
12716 \end_inset
12717
12718 .
12719 \end_layout
12720
12721 \begin_layout Description
12722 \begin_inset Flex Code
12723 status collapsed
12724
12725 \begin_layout Plain Layout
12726 InnerTag
12727 \end_layout
12728
12729 \end_inset
12730
12731  [FIXME] (Used only with XML-type formats.)
12732 \end_layout
12733
12734 \begin_layout Description
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 InPreamble
12740 \end_layout
12741
12742 \end_inset
12743
12744  [
12745 \begin_inset Flex Code
12746 status collapsed
12747
12748 \begin_layout Plain Layout
12749
12750 \emph on
12751 0
12752 \end_layout
12753
12754 \end_inset
12755
12756 ,
12757 \begin_inset space \thinspace{}
12758 \end_inset
12759
12760
12761 \begin_inset Flex Code
12762 status collapsed
12763
12764 \begin_layout Plain Layout
12765 1
12766 \end_layout
12767
12768 \end_inset
12769
12770 ] If 
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 1
12776 \end_layout
12777
12778 \end_inset
12779
12780 , marks the style as to be included in the document preamble and not in
12781  the document body.
12782  This is useful for document classes that want such information as the title
12783  and author to appear in the preamble.
12784  Note that this works only for styles for which the 
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 LatexType
12790 \end_layout
12791
12792 \end_inset
12793
12794  is 
12795 \begin_inset Flex Code
12796 status collapsed
12797
12798 \begin_layout Plain Layout
12799 Command
12800 \end_layout
12801
12802 \end_inset
12803
12804  or 
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809 Paragraph
12810 \end_layout
12811
12812 \end_inset
12813
12814 .
12815 \end_layout
12816
12817 \begin_layout Description
12818 \begin_inset Flex Code
12819 status collapsed
12820
12821 \begin_layout Plain Layout
12822 InTitle
12823 \end_layout
12824
12825 \end_inset
12826
12827  [
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832
12833 \emph on
12834 0
12835 \end_layout
12836
12837 \end_inset
12838
12839 ,
12840 \begin_inset space \thinspace{}
12841 \end_inset
12842
12843
12844 \begin_inset Flex Code
12845 status collapsed
12846
12847 \begin_layout Plain Layout
12848 1
12849 \end_layout
12850
12851 \end_inset
12852
12853 ] If 
12854 \begin_inset Flex Code
12855 status collapsed
12856
12857 \begin_layout Plain Layout
12858 1
12859 \end_layout
12860
12861 \end_inset
12862
12863 , marks the style as being part of a title block (see also the 
12864 \begin_inset Flex Code
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868 TitleLatexType
12869 \end_layout
12870
12871 \end_inset
12872
12873  and 
12874 \begin_inset Flex Code
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878 TitleLatexName
12879 \end_layout
12880
12881 \end_inset
12882
12883  global entries).
12884 \end_layout
12885
12886 \begin_layout Description
12887 \begin_inset Flex Code
12888 status collapsed
12889
12890 \begin_layout Plain Layout
12891 ItemCommand
12892 \end_layout
12893
12894 \end_inset
12895
12896  [
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901 string="item"
12902 \end_layout
12903
12904 \end_inset
12905
12906 ] The \SpecialChar LaTeX
12907  command sequence declaring an item in a list.
12908  The command is to be defined without the preceding backslash (the default
12909  is 
12910 \begin_inset Quotes eld
12911 \end_inset
12912
12913 item
12914 \begin_inset Quotes erd
12915 \end_inset
12916
12917 , resulting in 
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922
12923 \backslash
12924 item
12925 \end_layout
12926
12927 \end_inset
12928
12929  in the \SpecialChar LaTeX
12930  output).
12931 \end_layout
12932
12933 \begin_layout Description
12934 \begin_inset Flex Code
12935 status collapsed
12936
12937 \begin_layout Plain Layout
12938 ItemSep
12939 \end_layout
12940
12941 \end_inset
12942
12943  [
12944 \begin_inset Flex Code
12945 status collapsed
12946
12947 \begin_layout Plain Layout
12948 float=0
12949 \end_layout
12950
12951 \end_inset
12952
12953 ] This provides extra space between paragraphs that have the same style.
12954  If you put other styles into an environment, each is separated with the
12955  environment's 
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 ParSep
12961 \end_layout
12962
12963 \end_inset
12964
12965 .
12966  But the whole items of the environment are additionally separated with
12967  this 
12968 \begin_inset Flex Code
12969 status collapsed
12970
12971 \begin_layout Plain Layout
12972 ItemSep
12973 \end_layout
12974
12975 \end_inset
12976
12977 .
12978  Note that this is a
12979 \emph on
12980  multiplier.
12981 \end_layout
12982
12983 \begin_layout Description
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 ItemTag
12989 \end_layout
12990
12991 \end_inset
12992
12993  [FIXME] (Used only with XML-type formats.)
12994 \end_layout
12995
12996 \begin_layout Description
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001 KeepEmpty
13002 \end_layout
13003
13004 \end_inset
13005
13006  [
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011
13012 \emph on
13013 0
13014 \end_layout
13015
13016 \end_inset
13017
13018 ,
13019 \begin_inset space \thinspace{}
13020 \end_inset
13021
13022
13023 \begin_inset Flex Code
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027 1
13028 \end_layout
13029
13030 \end_inset
13031
13032 ] Usually \SpecialChar LyX
13033  does not allow you to leave a paragraph empty, since it would
13034  lead to empty \SpecialChar LaTeX
13035  output.
13036  There are some cases where this could be desirable however: in a letter
13037  template, the required fields can be provided as empty fields, so that
13038  people do not forget them; in some special classes, a style can be used
13039  as some kind of break, which does not contain actual text.
13040 \end_layout
13041
13042 \begin_layout Description
13043 \begin_inset Flex Code
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047 LabelBottomsep
13048 \end_layout
13049
13050 \end_inset
13051
13052  [
13053 \begin_inset Flex Code
13054 status collapsed
13055
13056 \begin_layout Plain Layout
13057 float=0
13058 \end_layout
13059
13060 \end_inset
13061
13062 ] The vertical space between the label and the text body.
13063  Only used for labels that are above the text body (
13064 \begin_inset Flex Code
13065 status collapsed
13066
13067 \begin_layout Plain Layout
13068 Top_Environment
13069 \end_layout
13070
13071 \end_inset
13072
13073  and
13074 \begin_inset Newline newline
13075 \end_inset
13076
13077
13078 \begin_inset Flex Code
13079 status collapsed
13080
13081 \begin_layout Plain Layout
13082 Centered_Top_Environment
13083 \end_layout
13084
13085 \end_inset
13086
13087 ).
13088 \end_layout
13089
13090 \begin_layout Description
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 LabelCounter
13096 \end_layout
13097
13098 \end_inset
13099
13100  [
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 string=""
13106 \end_layout
13107
13108 \end_inset
13109
13110 ] The name of the counter for automatic numbering.
13111  In order to have the counter appear with your label, you will need to reference
13112  it in the 
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117
13118 \family typewriter
13119 LabelString
13120 \end_layout
13121
13122 \end_inset
13123
13124 .
13125  This will work with 
13126 \begin_inset Flex Code
13127 status collapsed
13128
13129 \begin_layout Plain Layout
13130 LabelType
13131 \end_layout
13132
13133 \end_inset
13134
13135 s, 
13136 \begin_inset Flex Code
13137 status collapsed
13138
13139 \begin_layout Plain Layout
13140 Static
13141 \end_layout
13142
13143 \end_inset
13144
13145
13146 \begin_inset Flex Code
13147 status collapsed
13148
13149 \begin_layout Plain Layout
13150 Above
13151 \end_layout
13152
13153 \end_inset
13154
13155  and 
13156 \begin_inset Flex Code
13157 status collapsed
13158
13159 \begin_layout Plain Layout
13160 Centered
13161 \end_layout
13162
13163 \end_inset
13164
13165 , at least.
13166 \begin_inset Newline newline
13167 \end_inset
13168
13169 This 
13170 \emph on
13171 may
13172 \emph default
13173  also be given if 
13174 \begin_inset Flex Code
13175 status collapsed
13176
13177 \begin_layout Plain Layout
13178 LabelType
13179 \end_layout
13180
13181 \end_inset
13182
13183  is 
13184 \begin_inset Flex Code
13185 status collapsed
13186
13187 \begin_layout Plain Layout
13188 Enumerate
13189 \end_layout
13190
13191 \end_inset
13192
13193 , though this case is a bit complicated.
13194  Suppose you declare 
13195 \begin_inset Quotes eld
13196 \end_inset
13197
13198
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 LabelCounter myenum
13204 \end_layout
13205
13206 \end_inset
13207
13208
13209 \begin_inset Quotes erd
13210 \end_inset
13211
13212 .
13213  Then the actual counters used are 
13214 \begin_inset Flex Code
13215 status collapsed
13216
13217 \begin_layout Plain Layout
13218 myenumi
13219 \end_layout
13220
13221 \end_inset
13222
13223
13224 \begin_inset Flex Code
13225 status collapsed
13226
13227 \begin_layout Plain Layout
13228 myenumii
13229 \end_layout
13230
13231 \end_inset
13232
13233
13234 \begin_inset Flex Code
13235 status collapsed
13236
13237 \begin_layout Plain Layout
13238 myenumiii
13239 \end_layout
13240
13241 \end_inset
13242
13243  and 
13244 \begin_inset Flex Code
13245 status collapsed
13246
13247 \begin_layout Plain Layout
13248 myenumiv
13249 \end_layout
13250
13251 \end_inset
13252
13253 , much as in \SpecialChar LaTeX
13254 .
13255  These counters must all be declared separately.
13256 \begin_inset Newline newline
13257 \end_inset
13258
13259 See 
13260 \begin_inset CommandInset ref
13261 LatexCommand ref
13262 reference "subsec:Counters"
13263
13264 \end_inset
13265
13266  for details on counters.
13267 \end_layout
13268
13269 \begin_layout Description
13270 \begin_inset Flex Code
13271 status collapsed
13272
13273 \begin_layout Plain Layout
13274 LabelFont
13275 \end_layout
13276
13277 \end_inset
13278
13279  The font used for the label.
13280  See 
13281 \begin_inset CommandInset ref
13282 LatexCommand ref
13283 reference "subsec:Font-description"
13284
13285 \end_inset
13286
13287 .
13288 \end_layout
13289
13290 \begin_layout Description
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 LabelIndent
13296 \end_layout
13297
13298 \end_inset
13299
13300  [
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 string=""
13306 \end_layout
13307
13308 \end_inset
13309
13310 ] Text that indicates how far a label should be indented.
13311 \end_layout
13312
13313 \begin_layout Description
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 LabelSep
13319 \end_layout
13320
13321 \end_inset
13322
13323  [
13324 \begin_inset Flex Code
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 string=""
13329 \end_layout
13330
13331 \end_inset
13332
13333 ] Text that indicates the amount of horizontal space between the label and
13334  the text body.
13335  Only used for labels that are not above the text body.
13336 \end_layout
13337
13338 \begin_layout Description
13339 \begin_inset Flex Code
13340 status collapsed
13341
13342 \begin_layout Plain Layout
13343 LabelString
13344 \end_layout
13345
13346 \end_inset
13347
13348  [
13349 \begin_inset Flex Code
13350 status collapsed
13351
13352 \begin_layout Plain Layout
13353 string=""
13354 \end_layout
13355
13356 \end_inset
13357
13358 ] The string used for the label.
13359  When 
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364 LabelCounter
13365 \end_layout
13366
13367 \end_inset
13368
13369  is set, this string can be contain the special formatting commands described
13370  in 
13371 \begin_inset CommandInset ref
13372 LatexCommand ref
13373 reference "subsec:Counters"
13374
13375 \end_inset
13376
13377 .
13378 \end_layout
13379
13380 \begin_layout Description
13381 \begin_inset Flex Code
13382 status collapsed
13383
13384 \begin_layout Plain Layout
13385 LabelStringAppendix
13386 \end_layout
13387
13388 \end_inset
13389
13390  [
13391 \begin_inset Flex Code
13392 status collapsed
13393
13394 \begin_layout Plain Layout
13395 string=""
13396 \end_layout
13397
13398 \end_inset
13399
13400 ] This is used inside the appendix instead of
13401 \begin_inset Newline newline
13402 \end_inset
13403
13404
13405 \begin_inset Flex Code
13406 status collapsed
13407
13408 \begin_layout Plain Layout
13409 LabelString
13410 \end_layout
13411
13412 \end_inset
13413
13414 .
13415  Note that every 
13416 \begin_inset Flex Code
13417 status collapsed
13418
13419 \begin_layout Plain Layout
13420 LabelString
13421 \end_layout
13422
13423 \end_inset
13424
13425  statement resets
13426 \begin_inset Newline newline
13427 \end_inset
13428
13429
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434 LabelStringAppendix
13435 \end_layout
13436
13437 \end_inset
13438
13439  too.
13440 \end_layout
13441
13442 \begin_layout Description
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447 LabelTag
13448 \end_layout
13449
13450 \end_inset
13451
13452  [FIXME] (Used only with XML-type formats.)
13453 \end_layout
13454
13455 \begin_layout Description
13456 \begin_inset Flex Code
13457 status collapsed
13458
13459 \begin_layout Plain Layout
13460 LabelType
13461 \end_layout
13462
13463 \end_inset
13464
13465  [
13466 \begin_inset Flex Code
13467 status collapsed
13468
13469 \begin_layout Plain Layout
13470
13471 \emph on
13472 No_Label
13473 \emph default
13474 , Manual, Static, Above, 
13475 \begin_inset Newline newline
13476 \end_inset
13477
13478 Centered, Sensitive, Enumerate,
13479 \begin_inset Newline newline
13480 \end_inset
13481
13482 Itemize, Bibliography
13483 \end_layout
13484
13485 \end_inset
13486
13487 ]
13488 \end_layout
13489
13490 \begin_deeper
13491 \begin_layout Description
13492 \begin_inset Flex Code
13493 status collapsed
13494
13495 \begin_layout Plain Layout
13496 Manual
13497 \end_layout
13498
13499 \end_inset
13500
13501  means the label is the very first word (up to the first real blank).
13502  Use protected spaces if you want more than one word as the label.
13503  
13504 \end_layout
13505
13506 \begin_layout Description
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 Static
13512 \end_layout
13513
13514 \end_inset
13515
13516  means the label is simply what is declared as 
13517 \begin_inset Flex Code
13518 status collapsed
13519
13520 \begin_layout Plain Layout
13521 LabelString
13522 \end_layout
13523
13524 \end_inset
13525
13526 .
13527  This will be displayed 
13528 \begin_inset Quotes eld
13529 \end_inset
13530
13531 inline
13532 \begin_inset Quotes erd
13533 \end_inset
13534
13535 , at the beginning of the paragraph.
13536  If the 
13537 \begin_inset Flex Code
13538 status collapsed
13539
13540 \begin_layout Plain Layout
13541 LatexType
13542 \end_layout
13543
13544 \end_inset
13545
13546  is 
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 Environment
13552 \end_layout
13553
13554 \end_inset
13555
13556 , then it will be displayed only in the first paragraph of any sequence
13557  of paragraphs with the same 
13558 \begin_inset Flex Code
13559 status collapsed
13560
13561 \begin_layout Plain Layout
13562 Style
13563 \end_layout
13564
13565 \end_inset
13566
13567 .
13568 \end_layout
13569
13570 \begin_layout Description
13571 \begin_inset Flex Code
13572 status collapsed
13573
13574 \begin_layout Plain Layout
13575 Above
13576 \end_layout
13577
13578 \end_inset
13579
13580
13581 \begin_inset space ~
13582 \end_inset
13583
13584 and
13585 \begin_inset space ~
13586 \end_inset
13587
13588
13589 \begin_inset Flex Code
13590 status collapsed
13591
13592 \begin_layout Plain Layout
13593 Centered
13594 \end_layout
13595
13596 \end_inset
13597
13598  are special cases of 
13599 \begin_inset Flex Code
13600 status collapsed
13601
13602 \begin_layout Plain Layout
13603 Static
13604 \end_layout
13605
13606 \end_inset
13607
13608 .
13609  The label will be printed above the paragraph either at the beginning of
13610  the line or centered.
13611 \end_layout
13612
13613 \begin_layout Description
13614 \begin_inset Flex Code
13615 status collapsed
13616
13617 \begin_layout Plain Layout
13618 Sensitive
13619 \end_layout
13620
13621 \end_inset
13622
13623  is a special case for the caption-labels 
13624 \begin_inset Quotes eld
13625 \end_inset
13626
13627 Figure
13628 \begin_inset Quotes erd
13629 \end_inset
13630
13631  and 
13632 \begin_inset Quotes eld
13633 \end_inset
13634
13635 Table
13636 \begin_inset Quotes erd
13637 \end_inset
13638
13639 .
13640 \begin_inset Newline newline
13641 \end_inset
13642
13643
13644 \begin_inset Flex Code
13645 status collapsed
13646
13647 \begin_layout Plain Layout
13648 Sensitive
13649 \end_layout
13650
13651 \end_inset
13652
13653  means the (hardcoded) label string depends on the kind of float: It is
13654  hardcoded to be `FloatType N', where N is the value of the counter associated
13655  with the float.
13656  For the case that a caption is inserted outside of a float the 
13657 \begin_inset Flex Code
13658 status collapsed
13659
13660 \begin_layout Plain Layout
13661 LabelString
13662 \end_layout
13663
13664 \end_inset
13665
13666  will appear as 
13667 \begin_inset Quotes eld
13668 \end_inset
13669
13670 Senseless!
13671 \begin_inset Quotes erd
13672 \end_inset
13673
13674 .
13675 \end_layout
13676
13677 \begin_layout Description
13678 \begin_inset Flex Code
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682 Enumerate
13683 \end_layout
13684
13685 \end_inset
13686
13687  produces the usual sort of enumeration labels.
13688  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13689  small Roman numerals, and uppercase letters for the four possible depths.
13690 \end_layout
13691
13692 \begin_layout Description
13693 \begin_inset Flex Code
13694 status collapsed
13695
13696 \begin_layout Plain Layout
13697 Itemize
13698 \end_layout
13699
13700 \end_inset
13701
13702  produces various bullets at the different levels.
13703  It is also hardcoded.
13704 \end_layout
13705
13706 \begin_layout Description
13707 \begin_inset Flex Code
13708 status collapsed
13709
13710 \begin_layout Plain Layout
13711 Bibliography
13712 \end_layout
13713
13714 \end_inset
13715
13716  should be used only with 
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 LatexType BibEnvironment
13722 \end_layout
13723
13724 \end_inset
13725
13726 .
13727 \end_layout
13728
13729 \end_deeper
13730 \begin_layout Description
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735 LangPreamble
13736 \end_layout
13737
13738 \end_inset
13739
13740  Note that this will completely override any prior 
13741 \begin_inset Flex Code
13742 status collapsed
13743
13744 \begin_layout Plain Layout
13745 LangPreamble
13746 \end_layout
13747
13748 \end_inset
13749
13750  declaration for this style.
13751  Must end with 
13752 \begin_inset Quotes eld
13753 \end_inset
13754
13755
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760 EndLangPreamble
13761 \end_layout
13762
13763 \end_inset
13764
13765
13766 \begin_inset Quotes erd
13767 \end_inset
13768
13769 .
13770  See 
13771 \begin_inset CommandInset ref
13772 LatexCommand ref
13773 reference "subsec:I18n"
13774
13775 \end_inset
13776
13777  for details on its use.
13778 \end_layout
13779
13780 \begin_layout Description
13781 \begin_inset Flex Code
13782 status collapsed
13783
13784 \begin_layout Plain Layout
13785 LatexName
13786 \end_layout
13787
13788 \end_inset
13789
13790  [
13791 \begin_inset Flex Code
13792 status collapsed
13793
13794 \begin_layout Plain Layout
13795 <name>
13796 \end_layout
13797
13798 \end_inset
13799
13800 ] The name of the corresponding \SpecialChar LaTeX
13801  stuff.
13802  Either the environment or command name.
13803 \end_layout
13804
13805 \begin_layout Description
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 LatexParam
13811 \end_layout
13812
13813 \end_inset
13814
13815  [
13816 \begin_inset Flex Code
13817 status collapsed
13818
13819 \begin_layout Plain Layout
13820 <parameter>
13821 \end_layout
13822
13823 \end_inset
13824
13825 ] An optional parameter for the corresponding 
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 LatexName
13831 \end_layout
13832
13833 \end_inset
13834
13835  stuff.
13836  This parameter cannot be changed from within \SpecialChar LyX
13837  (use 
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 Argument
13843 \end_layout
13844
13845 \end_inset
13846
13847  for customizable parameters).
13848  This will be output as is after all \SpecialChar LaTeX
13849  
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854 Argument
13855 \end_layout
13856
13857 \end_inset
13858
13859 s.
13860 \end_layout
13861
13862 \begin_layout Description
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 LatexType
13868 \end_layout
13869
13870 \end_inset
13871
13872  [
13873 \begin_inset Flex Code
13874 status collapsed
13875
13876 \begin_layout Plain Layout
13877
13878 \emph on
13879 Paragraph
13880 \emph default
13881 , Command, Environment, Item_Environment,
13882 \begin_inset Newline newline
13883 \end_inset
13884
13885 List_Environment, Bib_Environment
13886 \end_layout
13887
13888 \end_inset
13889
13890 ] How the style should be translated into \SpecialChar LaTeX
13891 .
13892 \begin_inset Foot
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 \begin_inset Flex Code
13897 status collapsed
13898
13899 \begin_layout Plain Layout
13900 LatexType
13901 \end_layout
13902
13903 \end_inset
13904
13905  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13906  Visit the SGML class files for specific examples.
13907 \end_layout
13908
13909 \end_inset
13910
13911
13912 \end_layout
13913
13914 \begin_deeper
13915 \begin_layout Description
13916 \begin_inset Flex Code
13917 status collapsed
13918
13919 \begin_layout Plain Layout
13920 Paragraph
13921 \end_layout
13922
13923 \end_inset
13924
13925  means nothing special.
13926 \end_layout
13927
13928 \begin_layout Description
13929 \begin_inset Flex Code
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933 Command
13934 \end_layout
13935
13936 \end_inset
13937
13938  means 
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943
13944 \backslash
13945
13946 \emph on
13947 LatexName
13948 \emph default
13949 {\SpecialChar ldots
13950 }
13951 \end_layout
13952
13953 \end_inset
13954
13955 .
13956 \end_layout
13957
13958 \begin_layout Description
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 Environment
13964 \end_layout
13965
13966 \end_inset
13967
13968  means 
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973
13974 \backslash
13975 begin{
13976 \emph on
13977 LatexName
13978 \emph default
13979 }\SpecialChar ldots
13980
13981 \backslash
13982 end{
13983 \emph on
13984 LatexName
13985 \emph default
13986 }
13987 \end_layout
13988
13989 \end_inset
13990
13991 .
13992  
13993 \end_layout
13994
13995 \begin_layout Description
13996 \begin_inset Flex Code
13997 status collapsed
13998
13999 \begin_layout Plain Layout
14000 Item_Environment
14001 \end_layout
14002
14003 \end_inset
14004
14005  is the same as 
14006 \begin_inset Flex Code
14007 status collapsed
14008
14009 \begin_layout Plain Layout
14010 Environment
14011 \end_layout
14012
14013 \end_inset
14014
14015 , except that an 
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020
14021 \backslash
14022 item
14023 \end_layout
14024
14025 \end_inset
14026
14027  is generated for each paragraph of this environment.
14028  
14029 \end_layout
14030
14031 \begin_layout Description
14032 \begin_inset Flex Code
14033 status collapsed
14034
14035 \begin_layout Plain Layout
14036 List_Environment
14037 \end_layout
14038
14039 \end_inset
14040
14041  is the same as 
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 Item_Environment
14047 \end_layout
14048
14049 \end_inset
14050
14051 , except that
14052 \begin_inset Newline newline
14053 \end_inset
14054
14055
14056 \begin_inset Flex Code
14057 status collapsed
14058
14059 \begin_layout Plain Layout
14060 LabelWidthString
14061 \end_layout
14062
14063 \end_inset
14064
14065  is passed as an argument to the environment.
14066 \begin_inset Newline newline
14067 \end_inset
14068
14069
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 LabelWidthString
14075 \end_layout
14076
14077 \end_inset
14078
14079  can be defined in the 
14080 \begin_inset Flex Noun
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 Edit\SpecialChar menuseparator
14085 Paragraph
14086 \begin_inset space ~
14087 \end_inset
14088
14089 settings
14090 \end_layout
14091
14092 \end_inset
14093
14094  dialog.
14095 \end_layout
14096
14097 \begin_layout Description
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102 Bib_Environment
14103 \end_layout
14104
14105 \end_inset
14106
14107  is like 
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112 Environment
14113 \end_layout
14114
14115 \end_inset
14116
14117  but adds the necessary mandatory argument (the longest label) to the begin
14118  statement of the bibliography environment:
14119 \begin_inset Newline newline
14120 \end_inset
14121
14122
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127
14128 \backslash
14129 begin{thebibliography}{99}
14130 \end_layout
14131
14132 \end_inset
14133
14134 .
14135  It is therefore only useful for bibliography environments.
14136  The default longest label 
14137 \begin_inset Quotes eld
14138 \end_inset
14139
14140 99
14141 \begin_inset Quotes erd
14142 \end_inset
14143
14144  can be changed by the user in the paragraph settings of a bibliography
14145  item.
14146 \end_layout
14147
14148 \begin_layout Standard
14149 Putting the last few things together, the \SpecialChar LaTeX
14150  output will be either: 
14151 \end_layout
14152
14153 \begin_layout LyX-Code
14154
14155 \backslash
14156 LatexName[LatexParam]{\SpecialChar ldots
14157 }
14158 \end_layout
14159
14160 \begin_layout Standard
14161 or: 
14162 \end_layout
14163
14164 \begin_layout LyX-Code
14165
14166 \backslash
14167 begin{LatexName}[LatexParam] \SpecialChar ldots
14168  
14169 \backslash
14170 end{LatexName}.
14171 \end_layout
14172
14173 \begin_layout Standard
14174 depending upon the \SpecialChar LaTeX
14175  type.
14176 \end_layout
14177
14178 \end_deeper
14179 \begin_layout Description
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184 LeftDelim
14185 \end_layout
14186
14187 \end_inset
14188
14189  [
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 string
14195 \end_layout
14196
14197 \end_inset
14198
14199 ] A string that is put at the beginning of the style content.
14200  A line break in the output can be indicated by 
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 <br/>
14206 \end_layout
14207
14208 \end_inset
14209
14210 .
14211 \end_layout
14212
14213 \begin_layout Description
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218 LeftMargin
14219 \end_layout
14220
14221 \end_inset
14222
14223  [
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 string=""
14229 \end_layout
14230
14231 \end_inset
14232
14233 ] If you put styles into environments, the different 
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238 LeftMargin
14239 \end_layout
14240
14241 \end_inset
14242
14243  are not simply added, but added with a factor 
14244 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14245 \end_inset
14246
14247 .
14248  Note that this parameter is also used when 
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 Margin
14254 \end_layout
14255
14256 \end_inset
14257
14258  is defined as 
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 Manual
14264 \end_layout
14265
14266 \end_inset
14267
14268  or 
14269 \begin_inset Flex Code
14270 status collapsed
14271
14272 \begin_layout Plain Layout
14273 Dynamic
14274 \end_layout
14275
14276 \end_inset
14277
14278 .
14279  Then it is added to the manual or dynamic margin.
14280 \begin_inset Newline newline
14281 \end_inset
14282
14283 For example 
14284 \begin_inset Quotes eld
14285 \end_inset
14286
14287
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 MM
14293 \end_layout
14294
14295 \end_inset
14296
14297
14298 \begin_inset Quotes erd
14299 \end_inset
14300
14301  means that the paragraph is indented with the width of 
14302 \begin_inset Quotes eld
14303 \end_inset
14304
14305
14306 \begin_inset Flex Code
14307 status collapsed
14308
14309 \begin_layout Plain Layout
14310 MM
14311 \end_layout
14312
14313 \end_inset
14314
14315
14316 \begin_inset Quotes erd
14317 \end_inset
14318
14319  in the normal font.
14320  You can get a negative width by prefixing the string with 
14321 \begin_inset Quotes eld
14322 \end_inset
14323
14324
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 -
14330 \end_layout
14331
14332 \end_inset
14333
14334
14335 \begin_inset Quotes erd
14336 \end_inset
14337
14338 .
14339  This way was chosen so that the look is the same with each used screen
14340  font.
14341 \end_layout
14342
14343 \begin_layout Description
14344 \begin_inset Flex Code
14345 status collapsed
14346
14347 \begin_layout Plain Layout
14348 Margin
14349 \end_layout
14350
14351 \end_inset
14352
14353  [
14354 \begin_inset Flex Code
14355 status collapsed
14356
14357 \begin_layout Plain Layout
14358
14359 \emph on
14360 Static
14361 \emph default
14362 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14363 \end_layout
14364
14365 \end_inset
14366
14367
14368 \begin_inset Newline newline
14369 \end_inset
14370
14371 The kind of margin that the style has on the left side.
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 Static
14381 \end_layout
14382
14383 \end_inset
14384
14385  just means a fixed margin.
14386 \end_layout
14387
14388 \begin_layout Description
14389 \begin_inset Flex Code
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 Manual
14394 \end_layout
14395
14396 \end_inset
14397
14398  means that the left margin depends on the string entered in the 
14399 \begin_inset Flex Noun
14400 status collapsed
14401
14402 \begin_layout Plain Layout
14403 Edit\SpecialChar menuseparator
14404 Paragraph
14405 \begin_inset space ~
14406 \end_inset
14407
14408 Settings
14409 \end_layout
14410
14411 \end_inset
14412
14413  dialog.
14414  This is used to typeset nice lists without tabulators.
14415 \end_layout
14416
14417 \begin_layout Description
14418 \begin_inset Flex Code
14419 status collapsed
14420
14421 \begin_layout Plain Layout
14422 Dynamic
14423 \end_layout
14424
14425 \end_inset
14426
14427  means that the margin depends on the size of the label.
14428  This is used for automatic enumerated headlines.
14429  It is obvious that the headline 
14430 \begin_inset Quotes eld
14431 \end_inset
14432
14433 5.4.3.2.1 Very long headline
14434 \begin_inset Quotes erd
14435 \end_inset
14436
14437  must have a wider left margin (as wide as 
14438 \begin_inset Quotes eld
14439 \end_inset
14440
14441 5.4.3.2.1
14442 \begin_inset Quotes erd
14443 \end_inset
14444
14445  plus the space) than 
14446 \begin_inset Quotes eld
14447 \end_inset
14448
14449 3.2 Very long headline
14450 \begin_inset Quotes erd
14451 \end_inset
14452
14453 , even if standard 
14454 \begin_inset Quotes eld
14455 \end_inset
14456
14457 word processors
14458 \begin_inset Quotes erd
14459 \end_inset
14460
14461  are not able to do this.
14462 \end_layout
14463
14464 \begin_layout Description
14465 \begin_inset Flex Code
14466 status collapsed
14467
14468 \begin_layout Plain Layout
14469 First_Dynamic
14470 \end_layout
14471
14472 \end_inset
14473
14474  is similar, but only the very first row of the paragraph is dynamic, while
14475  the others are static; this is used, for example, for descriptions.
14476 \end_layout
14477
14478 \begin_layout Description
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 Right_Address_Box
14484 \end_layout
14485
14486 \end_inset
14487
14488  means the margin is chosen in a way that the longest row of this paragraph
14489  fits to the right margin.
14490  This is used to typeset an address on the right edge of the page.
14491 \end_layout
14492
14493 \end_deeper
14494 \begin_layout Description
14495 \begin_inset Flex Code
14496 status collapsed
14497
14498 \begin_layout Plain Layout
14499 NeedProtect
14500 \end_layout
14501
14502 \end_inset
14503
14504  [
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509
14510 \emph on
14511 0
14512 \end_layout
14513
14514 \end_inset
14515
14516 ,
14517 \begin_inset space \thinspace{}
14518 \end_inset
14519
14520
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525 1
14526 \end_layout
14527
14528 \end_inset
14529
14530 ] Whether fragile commands in this style should be 
14531 \begin_inset Flex Code
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535
14536 \backslash
14537 protect
14538 \end_layout
14539
14540 \end_inset
14541
14542 'ed.
14543  (Note: This is 
14544 \emph on
14545 not
14546 \emph default
14547  whether this command should itself be protected.)
14548 \end_layout
14549
14550 \begin_layout Description
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 Newline
14556 \end_layout
14557
14558 \end_inset
14559
14560  [
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 0
14566 \end_layout
14567
14568 \end_inset
14569
14570 ,
14571 \begin_inset space \thinspace{}
14572 \end_inset
14573
14574
14575 \begin_inset Flex Code
14576 status collapsed
14577
14578 \begin_layout Plain Layout
14579
14580 \emph on
14581 1
14582 \end_layout
14583
14584 \end_inset
14585
14586 ] Whether newlines are translated into \SpecialChar LaTeX
14587  newlines (
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592
14593 \backslash
14594
14595 \backslash
14596
14597 \end_layout
14598
14599 \end_inset
14600
14601 ) or not.
14602  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14603  editing
14604  inside \SpecialChar LyX
14605 .
14606 \end_layout
14607
14608 \begin_layout Description
14609 \begin_inset Flex Code
14610 status collapsed
14611
14612 \begin_layout Plain Layout
14613 NextNoIndent
14614 \end_layout
14615
14616 \end_inset
14617
14618  [
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623
14624 \emph on
14625 0
14626 \end_layout
14627
14628 \end_inset
14629
14630 ,
14631 \begin_inset space \thinspace{}
14632 \end_inset
14633
14634
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 1
14640 \end_layout
14641
14642 \end_inset
14643
14644 ] If set to true, and if 
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649 DefaultStyle
14650 \end_layout
14651
14652 \end_inset
14653
14654  (usually 
14655 \begin_inset Flex Code
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 Standard
14660 \end_layout
14661
14662 \end_inset
14663
14664 ) paragraphs are being indented, then the indentation of such a paragraph
14665  following one of this type will be suppressed.
14666  (So this will not affect the display of non-default paragraphs.)
14667 \end_layout
14668
14669 \begin_layout Description
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 ObsoletedBy
14675 \end_layout
14676
14677 \end_inset
14678
14679  [
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 <name>
14685 \end_layout
14686
14687 \end_inset
14688
14689 ] Name of a style that has replaced this style.
14690  This is used to rename a style, while keeping backward compatibility.
14691 \end_layout
14692
14693 \begin_layout Description
14694 \begin_inset Flex Code
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 ParagraphGroup
14699 \end_layout
14700
14701 \end_inset
14702
14703  [
14704 \begin_inset Flex Code
14705 status collapsed
14706
14707 \begin_layout Plain Layout
14708 0
14709 \end_layout
14710
14711 \end_inset
14712
14713 ,
14714 \begin_inset space \thinspace{}
14715 \end_inset
14716
14717
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 1
14723 \end_layout
14724
14725 \end_inset
14726
14727 ] Determines whether consecutive pragraphs of the same type are treated
14728  as belonging together.
14729  This has the effect that the 
14730 \begin_inset Flex Code
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734 GuiLabel
14735 \end_layout
14736
14737 \end_inset
14738
14739  is only printed once before such a group.
14740  By default, this is true for 
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 LaTeXType
14746 \end_layout
14747
14748 \end_inset
14749
14750  
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 Environment
14756 \end_layout
14757
14758 \end_inset
14759
14760  and 
14761 \begin_inset Flex Code
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765 Bib_Environment
14766 \end_layout
14767
14768 \end_inset
14769
14770  and false for all other types.
14771 \end_layout
14772
14773 \begin_layout Description
14774 \begin_inset Flex Code
14775 status collapsed
14776
14777 \begin_layout Plain Layout
14778 ParbreakIsNewline
14779 \end_layout
14780
14781 \end_inset
14782
14783  [
14784 \begin_inset Flex Code
14785 status collapsed
14786
14787 \begin_layout Plain Layout
14788
14789 \emph on
14790 0
14791 \end_layout
14792
14793 \end_inset
14794
14795 ,
14796 \begin_inset space \thinspace{}
14797 \end_inset
14798
14799
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804 1
14805 \end_layout
14806
14807 \end_inset
14808
14809 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14810  output,
14811  but only by a line break; together with 
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 PassThru 1
14817 \end_layout
14818
14819 \end_inset
14820
14821 , this allows to emulate a plain text editor (like the ERT inset).
14822 \end_layout
14823
14824 \begin_layout Description
14825 \begin_inset Flex Code
14826 status collapsed
14827
14828 \begin_layout Plain Layout
14829 ParIndent
14830 \end_layout
14831
14832 \end_inset
14833
14834  [
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 string=""
14840 \end_layout
14841
14842 \end_inset
14843
14844 ] The indent of the very first line of a paragraph.
14845  The
14846 \begin_inset Newline newline
14847 \end_inset
14848
14849
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 Parindent
14855 \end_layout
14856
14857 \end_inset
14858
14859  will be fixed for a certain style.
14860  The exception is the default style, since the indentation for these paragraphs
14861  can be prohibited with 
14862 \begin_inset Flex Code
14863 status collapsed
14864
14865 \begin_layout Plain Layout
14866 NextNoIndent
14867 \end_layout
14868
14869 \end_inset
14870
14871 .
14872  Also, 
14873 \begin_inset Flex Code
14874 status collapsed
14875
14876 \begin_layout Plain Layout
14877 Standard
14878 \end_layout
14879
14880 \end_inset
14881
14882  style paragraphs inside environments use the 
14883 \begin_inset Flex Code
14884 status collapsed
14885
14886 \begin_layout Plain Layout
14887 Parindent
14888 \end_layout
14889
14890 \end_inset
14891
14892  of the environment, not their native one.
14893  For example, 
14894 \begin_inset Flex Code
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898 Standard
14899 \end_layout
14900
14901 \end_inset
14902
14903  paragraphs inside an enumeration are not indented.
14904 \end_layout
14905
14906 \begin_layout Description
14907 \begin_inset Flex Code
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 ParSep
14912 \end_layout
14913
14914 \end_inset
14915
14916  [
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 float=0
14922 \end_layout
14923
14924 \end_inset
14925
14926 ] The vertical space between two paragraphs of this style.
14927 \end_layout
14928
14929 \begin_layout Description
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 Parskip
14935 \end_layout
14936
14937 \end_inset
14938
14939  [
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 float=0
14945 \end_layout
14946
14947 \end_inset
14948
14949 ] \SpecialChar LyX
14950  allows the user to choose either 
14951 \begin_inset Quotes eld
14952 \end_inset
14953
14954 indent
14955 \begin_inset Quotes erd
14956 \end_inset
14957
14958  or 
14959 \begin_inset Quotes eld
14960 \end_inset
14961
14962 skip
14963 \begin_inset Quotes erd
14964 \end_inset
14965
14966  to separate paragraphs.
14967  When 
14968 \begin_inset Quotes eld
14969 \end_inset
14970
14971 indent
14972 \begin_inset Quotes erd
14973 \end_inset
14974
14975  is chosen, 
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 Parskip
14981 \end_layout
14982
14983 \end_inset
14984
14985  is ignored.
14986  When 
14987 \begin_inset Quotes eld
14988 \end_inset
14989
14990 skip
14991 \begin_inset Quotes erd
14992 \end_inset
14993
14994  is chosen, 
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 ParIndent
15000 \end_layout
15001
15002 \end_inset
15003
15004  is ignored and all paragraphs are separated by the 
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009 Parskip
15010 \end_layout
15011
15012 \end_inset
15013
15014  argument.
15015  The vertical space is calculated with 
15016 \begin_inset Flex Code
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020 Parskip
15021 \begin_inset space ~
15022 \end_inset
15023
15024 * DefaultHeight
15025 \end_layout
15026
15027 \end_inset
15028
15029  where 
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 DefaultHeight
15035 \end_layout
15036
15037 \end_inset
15038
15039  is the height of a row with the normal font.
15040  This way, the look stays the same with different screen fonts.
15041 \end_layout
15042
15043 \begin_layout Description
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 PassThru
15049 \end_layout
15050
15051 \end_inset
15052
15053  [
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058
15059 \emph on
15060 0
15061 \end_layout
15062
15063 \end_inset
15064
15065 ,
15066 \begin_inset space \thinspace{}
15067 \end_inset
15068
15069
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 1
15075 \end_layout
15076
15077 \end_inset
15078
15079 ] Whether the contents of this paragraph should be output in raw form, meaning
15080  without special translations that \SpecialChar LaTeX
15081  would require.
15082 \end_layout
15083
15084 \begin_layout Description
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 PassThruChars
15090 \end_layout
15091
15092 \end_inset
15093
15094  [
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 string
15100 \end_layout
15101
15102 \end_inset
15103
15104 ]
15105 \family typewriter
15106  
15107 \family default
15108 Defines individual characters that should be output in raw form, meaning
15109  without special translations that \SpecialChar LaTeX
15110  would require.
15111 \end_layout
15112
15113 \begin_layout Description
15114 \begin_inset Flex Code
15115 status collapsed
15116
15117 \begin_layout Plain Layout
15118 Preamble
15119 \end_layout
15120
15121 \end_inset
15122
15123  Information to be included in the \SpecialChar LaTeX
15124  preamble when this style is used.
15125  Used to define macros, load packages, etc., required by this particular
15126  style.
15127  Must end with 
15128 \begin_inset Quotes eld
15129 \end_inset
15130
15131
15132 \begin_inset Flex Code
15133 status collapsed
15134
15135 \begin_layout Plain Layout
15136 EndPreamble
15137 \end_layout
15138
15139 \end_inset
15140
15141
15142 \begin_inset Quotes erd
15143 \end_inset
15144
15145 .
15146 \end_layout
15147
15148 \begin_layout Description
15149 \begin_inset Flex Code
15150 status collapsed
15151
15152 \begin_layout Plain Layout
15153 RefPrefix
15154 \end_layout
15155
15156 \end_inset
15157
15158  [
15159 \begin_inset Flex Code
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163 string
15164 \end_layout
15165
15166 \end_inset
15167
15168 ] The prefix to use when creating labels referring to paragraphs of this
15169  type.
15170  This allows the use of formatted references.
15171 \end_layout
15172
15173 \begin_layout Description
15174 \begin_inset Flex Code
15175 status collapsed
15176
15177 \begin_layout Plain Layout
15178 Requires 
15179 \end_layout
15180
15181 \end_inset
15182
15183  [
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 string
15189 \end_layout
15190
15191 \end_inset
15192
15193 ] Whether the style requires the feature 
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198 string
15199 \end_layout
15200
15201 \end_inset
15202
15203  (see 
15204 \begin_inset CommandInset ref
15205 LatexCommand ref
15206 reference "chap:List-of-functions"
15207
15208 \end_inset
15209
15210  for the list of features).
15211  If you require a package with specific options, you can additionally use
15212  
15213 \begin_inset Flex Code
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 PackageOptions
15218 \end_layout
15219
15220 \end_inset
15221
15222  as a general text class parameter (see 
15223 \begin_inset CommandInset ref
15224 LatexCommand ref
15225 reference "subsec:General-text-class"
15226
15227 \end_inset
15228
15229 ).
15230 \end_layout
15231
15232 \begin_layout Description
15233 \begin_inset Flex Code
15234 status collapsed
15235
15236 \begin_layout Plain Layout
15237 ResetArgs
15238 \end_layout
15239
15240 \end_inset
15241
15242  [
15243 \begin_inset Flex Code
15244 status collapsed
15245
15246 \begin_layout Plain Layout
15247
15248 \emph on
15249 0
15250 \end_layout
15251
15252 \end_inset
15253
15254 ,
15255 \begin_inset Flex Code
15256 status collapsed
15257
15258 \begin_layout Plain Layout
15259 1
15260 \end_layout
15261
15262 \end_inset
15263
15264 ] Resets the \SpecialChar LaTeX
15265  arguments of this style (as defined via the 
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270 Argument
15271 \end_layout
15272
15273 \end_inset
15274
15275  tag).
15276  This is useful if you have copied a style via 
15277 \begin_inset Flex Code
15278 status collapsed
15279
15280 \begin_layout Plain Layout
15281 CopyStyle
15282 \end_layout
15283
15284 \end_inset
15285
15286 , but you do not want to inherit its (required and optional) arguments.
15287 \change_inserted 2089657418 1476488475
15288
15289 \end_layout
15290
15291 \begin_layout Description
15292
15293 \change_inserted 2089657418 1476488475
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298
15299 \change_inserted 2089657418 1476488475
15300 ResumeCounter
15301 \end_layout
15302
15303 \end_inset
15304
15305  [
15306 \begin_inset Flex Code
15307 status collapsed
15308
15309 \begin_layout Plain Layout
15310
15311 \change_inserted 2089657418 1476488475
15312
15313 \emph on
15314 0
15315 \end_layout
15316
15317 \end_inset
15318
15319 ,
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324
15325 \change_inserted 2089657418 1476488475
15326 1
15327 \end_layout
15328
15329 \end_inset
15330
15331 ] Resumes a counter that is usually reset at each new sequence of layouts.
15332  This is currently only useful when 
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337
15338 \change_inserted 2089657418 1476488475
15339 LabelType
15340 \end_layout
15341
15342 \end_inset
15343
15344  is 
15345 \begin_inset Flex Code
15346 status collapsed
15347
15348 \begin_layout Plain Layout
15349
15350 \change_inserted 2089657418 1476488475
15351 Enumerate
15352 \end_layout
15353
15354 \end_inset
15355
15356 .
15357 \change_unchanged
15358
15359 \end_layout
15360
15361 \begin_layout Description
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 RightDelim
15367 \end_layout
15368
15369 \end_inset
15370
15371  [
15372 \begin_inset Flex Code
15373 status collapsed
15374
15375 \begin_layout Plain Layout
15376 string
15377 \end_layout
15378
15379 \end_inset
15380
15381 ] A string that is put at the end of the layout content.
15382  A line break in the output can be indicated by 
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 <br/>
15388 \end_layout
15389
15390 \end_inset
15391
15392 .
15393 \end_layout
15394
15395 \begin_layout Description
15396 \begin_inset Flex Code
15397 status collapsed
15398
15399 \begin_layout Plain Layout
15400 RightMargin
15401 \end_layout
15402
15403 \end_inset
15404
15405  [
15406 \begin_inset Flex Code
15407 status collapsed
15408
15409 \begin_layout Plain Layout
15410 string=""
15411 \end_layout
15412
15413 \end_inset
15414
15415 ] Similar to 
15416 \begin_inset Flex Code
15417 status collapsed
15418
15419 \begin_layout Plain Layout
15420 LeftMargin
15421 \end_layout
15422
15423 \end_inset
15424
15425 .
15426 \end_layout
15427
15428 \begin_layout Description
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 Spacing
15434 \end_layout
15435
15436 \end_inset
15437
15438  [
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443
15444 \emph on
15445 single
15446 \end_layout
15447
15448 \end_inset
15449
15450
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 onehalf
15456 \end_layout
15457
15458 \end_inset
15459
15460
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 double
15466 \end_layout
15467
15468 \end_inset
15469
15470
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 other
15476 \begin_inset space ~
15477 \end_inset
15478
15479 <value>
15480 \end_layout
15481
15482 \end_inset
15483
15484 ] This defines what the default spacing should be in the style.
15485  The arguments 
15486 \begin_inset Flex Code
15487 status collapsed
15488
15489 \begin_layout Plain Layout
15490 single
15491 \end_layout
15492
15493 \end_inset
15494
15495
15496 \begin_inset Flex Code
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500 onehalf
15501 \end_layout
15502
15503 \end_inset
15504
15505  and 
15506 \begin_inset Flex Code
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 double
15511 \end_layout
15512
15513 \end_inset
15514
15515  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15516  If you specify the argument 
15517 \begin_inset Flex Code
15518 status collapsed
15519
15520 \begin_layout Plain Layout
15521 other
15522 \end_layout
15523
15524 \end_inset
15525
15526 , then you must also provide a value argument which will be the actual multiplie
15527 r value.
15528  Note that, contrary to other parameters, 
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 Spacing
15534 \end_layout
15535
15536 \end_inset
15537
15538  implies the generation of specific \SpecialChar LaTeX
15539  code, using the \SpecialChar LaTeX
15540  package 
15541 \family roman
15542
15543 \begin_inset Flex Code
15544 status collapsed
15545
15546 \begin_layout Plain Layout
15547 setspace
15548 \end_layout
15549
15550 \end_inset
15551
15552 .
15553 \end_layout
15554
15555 \begin_layout Description
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 Spellcheck
15561 \end_layout
15562
15563 \end_inset
15564
15565  [
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 0
15571 \end_layout
15572
15573 \end_inset
15574
15575 ,
15576 \begin_inset space \thinspace{}
15577 \end_inset
15578
15579
15580 \begin_inset Flex Code
15581 status collapsed
15582
15583 \begin_layout Plain Layout
15584
15585 \emph on
15586 1
15587 \end_layout
15588
15589 \end_inset
15590
15591 ] Allow spell-checking paragraphs of this style.
15592  Default is true.
15593 \change_inserted 2089657418 1476488264
15594
15595 \end_layout
15596
15597 \begin_layout Description
15598
15599 \change_inserted 2089657418 1476488264
15600 \begin_inset Flex Code
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604
15605 \change_inserted 2089657418 1476488264
15606 StepMasterCounter
15607 \end_layout
15608
15609 \end_inset
15610
15611  [
15612 \begin_inset Flex Code
15613 status collapsed
15614
15615 \begin_layout Plain Layout
15616
15617 \change_inserted 2089657418 1476488264
15618
15619 \emph on
15620 0
15621 \end_layout
15622
15623 \end_inset
15624
15625 ,
15626 \begin_inset Flex Code
15627 status collapsed
15628
15629 \begin_layout Plain Layout
15630
15631 \change_inserted 2089657418 1476488264
15632 1
15633 \end_layout
15634
15635 \end_inset
15636
15637 ] Steps the master counter of a given counter at the beginning of a new
15638  sequence of layouts.
15639  This is currently only useful when 
15640 \begin_inset Flex Code
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644
15645 \change_inserted 2089657418 1476488264
15646 LabelType
15647 \end_layout
15648
15649 \end_inset
15650
15651  is 
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656
15657 \change_inserted 2089657418 1476488264
15658 Enumerate
15659 \end_layout
15660
15661 \end_inset
15662
15663 .
15664 \change_unchanged
15665
15666 \end_layout
15667
15668 \begin_layout Description
15669 \begin_inset Flex Code
15670 status collapsed
15671
15672 \begin_layout Plain Layout
15673 TextFont
15674 \end_layout
15675
15676 \end_inset
15677
15678  The font used for the text body .
15679  See 
15680 \begin_inset CommandInset ref
15681 LatexCommand ref
15682 reference "subsec:Font-description"
15683
15684 \end_inset
15685
15686 .
15687 \end_layout
15688
15689 \begin_layout Description
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 TocLevel
15695 \end_layout
15696
15697 \end_inset
15698
15699
15700 \series medium
15701  [
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706
15707 \series medium
15708 int=3
15709 \end_layout
15710
15711 \end_inset
15712
15713 ]
15714 \series default
15715  The level of the style in the table of contents.
15716  This is used for automatic numbering of section headings.
15717 \end_layout
15718
15719 \begin_layout Description
15720 \begin_inset Flex Code
15721 status collapsed
15722
15723 \begin_layout Plain Layout
15724 ToggleIndent
15725 \end_layout
15726
15727 \end_inset
15728
15729  [
15730 \emph on
15731
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736
15737 \emph on
15738 default
15739 \end_layout
15740
15741 \end_inset
15742
15743
15744 \emph default
15745
15746 \begin_inset Flex Code
15747 status collapsed
15748
15749 \begin_layout Plain Layout
15750 always
15751 \end_layout
15752
15753 \end_inset
15754
15755
15756 \begin_inset Flex Code
15757 status collapsed
15758
15759 \begin_layout Plain Layout
15760 never
15761 \end_layout
15762
15763 \end_inset
15764
15765 ] This tag determines whether the first line indentation of this paragraph
15766  can be toggled via the Paragraph settings dialog.
15767  If 
15768 \emph on
15769
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774
15775 \emph off
15776 default
15777 \end_layout
15778
15779 \end_inset
15780
15781
15782 \emph default
15783  is set, indentation can be toggled if the document settings use 
15784 \begin_inset Quotes eld
15785 \end_inset
15786
15787 indent
15788 \begin_inset Quotes erd
15789 \end_inset
15790
15791  paragraph style, with 
15792 \begin_inset Flex Code
15793 status collapsed
15794
15795 \begin_layout Plain Layout
15796 always
15797 \end_layout
15798
15799 \end_inset
15800
15801 , indentation can always be toggled, notwithstanding the document settings,
15802  with 
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 never
15808 \end_layout
15809
15810 \end_inset
15811
15812 , indentation can never be toggled.
15813 \end_layout
15814
15815 \begin_layout Description
15816 \begin_inset Flex Code
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820 TopSep
15821 \end_layout
15822
15823 \end_inset
15824
15825  [
15826 \begin_inset Flex Code
15827 status collapsed
15828
15829 \begin_layout Plain Layout
15830 float=0
15831 \end_layout
15832
15833 \end_inset
15834
15835 ] The vertical space with which the very first of a chain of paragraphs
15836  with this style is separated from the previous paragraph.
15837  If the previous paragraph has another style, the separations are not simply
15838  added, but the maximum is taken.
15839 \end_layout
15840
15841 \begin_layout Subsection
15842 \begin_inset CommandInset label
15843 LatexCommand label
15844 name "subsec:I18n"
15845
15846 \end_inset
15847
15848 Internationalization of Paragraph Styles
15849 \end_layout
15850
15851 \begin_layout Standard
15852 \SpecialChar LyX
15853  has long supported internationalization of layout information, but, until
15854  version 2.0, this applied only to the user interface and not to, say, PDF
15855  output.
15856  Thus, French authors were forced to resort to ugly hacks if they wanted
15857  `
15858 \lang french
15859 Théorème
15860 \lang english
15861  1' instead of `Theorem 1'.
15862  Thanks to Georg Baum, that is no longer the case.
15863 \end_layout
15864
15865 \begin_layout Standard
15866 If a 
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 Style
15872 \end_layout
15873
15874 \end_inset
15875
15876  defines text that is to appear in the typeset document, it may use 
15877 \begin_inset Flex Code
15878 status collapsed
15879
15880 \begin_layout Plain Layout
15881 LangPreamble
15882 \end_layout
15883
15884 \end_inset
15885
15886  and 
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 BabelPreamble
15892 \end_layout
15893
15894 \end_inset
15895
15896  to support non-English and even multi-language documents correctly.
15897  The following excerpt (from the 
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 theorems-ams.inc
15903 \end_layout
15904
15905 \end_inset
15906
15907  file) shows how this works:
15908 \end_layout
15909
15910 \begin_layout LyX-Code
15911 Preamble
15912 \end_layout
15913
15914 \begin_deeper
15915 \begin_layout LyX-Code
15916   
15917 \backslash
15918 theoremstyle{remark}
15919 \end_layout
15920
15921 \begin_layout LyX-Code
15922   
15923 \backslash
15924 newtheorem{claim}[thm]{
15925 \backslash
15926 protect
15927 \backslash
15928 claimname}
15929 \end_layout
15930
15931 \begin_layout LyX-Code
15932 EndPreamble
15933 \end_layout
15934
15935 \begin_layout LyX-Code
15936 LangPreamble
15937 \end_layout
15938
15939 \begin_layout LyX-Code
15940   
15941 \backslash
15942 providecommand{
15943 \backslash
15944 claimname}{_(Claim)}
15945 \end_layout
15946
15947 \begin_layout LyX-Code
15948 EndLangPreamble
15949 \end_layout
15950
15951 \begin_layout LyX-Code
15952 BabelPreamble
15953 \end_layout
15954
15955 \begin_layout LyX-Code
15956     
15957 \backslash
15958 addto
15959 \backslash
15960 captions$$lang{
15961 \backslash
15962 renewcommand{
15963 \backslash
15964 claimname}{_(Claim)}}
15965 \end_layout
15966
15967 \begin_layout LyX-Code
15968 EndBabelPreamble
15969 \end_layout
15970
15971 \end_deeper
15972 \begin_layout Standard
15973 In principle, any legal \SpecialChar LaTeX
15974  may appear in the 
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 LangPreamble
15980 \end_layout
15981
15982 \end_inset
15983
15984  and 
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 BabelPreamble
15990 \end_layout
15991
15992 \end_inset
15993
15994  tags, but in practice they will typically look as they do here.
15995  The key to correct translation of the typeset text is the definition of
15996  the \SpecialChar LaTeX
15997  command 
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002
16003 \backslash
16004 claimname
16005 \end_layout
16006
16007 \end_inset
16008
16009  and its use in 
16010 \begin_inset Flex Code
16011 status collapsed
16012
16013 \begin_layout Plain Layout
16014
16015 \backslash
16016 newtheorem
16017 \end_layout
16018
16019 \end_inset
16020
16021 .
16022  
16023 \end_layout
16024
16025 \begin_layout Standard
16026 The 
16027 \begin_inset Flex Code
16028 status collapsed
16029
16030 \begin_layout Plain Layout
16031 LangPreamble
16032 \end_layout
16033
16034 \end_inset
16035
16036  tag provides for internationalization based upon the overall language of
16037  the document.
16038  The contents of the tag will be included in the preamble, just as with
16039  the 
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 Preamble
16045 \end_layout
16046
16047 \end_inset
16048
16049  tag.
16050  What makes it special is the use of the 
16051 \begin_inset Quotes eld
16052 \end_inset
16053
16054 function
16055 \begin_inset Quotes erd
16056 \end_inset
16057
16058  
16059 \begin_inset Flex Code
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063 _()
16064 \end_layout
16065
16066 \end_inset
16067
16068 , which will be replaced, when \SpecialChar LyX
16069  produces \SpecialChar LaTeX
16070  output, with the translation of
16071  its argument into the document language.
16072 \end_layout
16073
16074 \begin_layout Standard
16075 The 
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 BabelPreamble
16081 \end_layout
16082
16083 \end_inset
16084
16085  tag is more complex, since it is meant to provide support for multi-language
16086  documents and so offers an interface to the 
16087 \begin_inset Flex Code
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091 babel
16092 \end_layout
16093
16094 \end_inset
16095
16096  package.
16097  Its contents will be added to the preamble once for each language that
16098  appears in the document.
16099  In this case, the argument to 
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 _()
16105 \end_layout
16106
16107 \end_inset
16108
16109  will be replaced with its translation into the language in question; the
16110  expression 
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 $$lang
16116 \end_layout
16117
16118 \end_inset
16119
16120  is replaced by the language name (as used by the babel package).
16121 \end_layout
16122
16123 \begin_layout Standard
16124 A German document that also included a French section would thus have the
16125  following in the preamble:
16126 \end_layout
16127
16128 \begin_layout LyX-Code
16129
16130 \backslash
16131 addto
16132 \backslash
16133 captionsfrench{
16134 \backslash
16135 renewcommand{
16136 \backslash
16137 claimname}{Affirmation}}
16138 \begin_inset Newline newline
16139 \end_inset
16140
16141
16142 \backslash
16143 addto
16144 \backslash
16145 captionsngerman{
16146 \backslash
16147 renewcommand{
16148 \backslash
16149 claimname}{Behauptung}}
16150 \begin_inset Newline newline
16151 \end_inset
16152
16153
16154 \backslash
16155 providecommand{
16156 \backslash
16157 claimname}{Behauptung}
16158 \end_layout
16159
16160 \begin_layout Standard
16161 \SpecialChar LaTeX
16162  and 
16163 \begin_inset Flex Code
16164 status collapsed
16165
16166 \begin_layout Plain Layout
16167 babel
16168 \end_layout
16169
16170 \end_inset
16171
16172  will then conspire to produce the correct text in the output.
16173 \end_layout
16174
16175 \begin_layout Standard
16176 One important point to note here is that the translations are provided by
16177  \SpecialChar LyX
16178  itself, through the file 
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 layouttranslations
16184 \end_layout
16185
16186 \end_inset
16187
16188 .
16189  This means, in effect, that 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 LangPreamble
16195 \end_layout
16196
16197 \end_inset
16198
16199  and 
16200 \begin_inset Flex Code
16201 status collapsed
16202
16203 \begin_layout Plain Layout
16204 BabelPreamble
16205 \end_layout
16206
16207 \end_inset
16208
16209  are really only of use in layout files that are provided with \SpecialChar LyX
16210 , since text
16211  entered in user-created layout files will not be seen by \SpecialChar LyX
16212 's internationalizatio
16213 n routines unless the 
16214 \begin_inset Flex Code
16215 status collapsed
16216
16217 \begin_layout Plain Layout
16218 layouttranslations
16219 \end_layout
16220
16221 \end_inset
16222
16223  file is modified accordingly.
16224  That said, however, any layout created with the intention that it will
16225  be included with \SpecialChar LyX
16226  should use these tags where appropriate.
16227  Please note that the paragraph style translations provided by \SpecialChar LyX
16228  will never
16229  change with a minor update (e.
16230 \begin_inset space \thinspace{}
16231 \end_inset
16232
16233 g.
16234 \begin_inset space \space{}
16235 \end_inset
16236
16237 from version 2.1.x to 2.1.y).
16238  It is however quite likely that a major update (e.
16239 \begin_inset space \thinspace{}
16240 \end_inset
16241
16242 g.
16243 \begin_inset space \space{}
16244 \end_inset
16245
16246 from 2.0.x to 2.1.y) will introduce new translations or corrections.
16247 \end_layout
16248
16249 \begin_layout Subsection
16250 Floats
16251 \begin_inset CommandInset label
16252 LatexCommand label
16253 name "subsec:Floats"
16254
16255 \end_inset
16256
16257
16258 \end_layout
16259
16260 \begin_layout Standard
16261 It is necessary to define the floats (
16262 \begin_inset Flex Noun
16263 status collapsed
16264
16265 \begin_layout Plain Layout
16266 figure
16267 \end_layout
16268
16269 \end_inset
16270
16271
16272 \begin_inset Flex Noun
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276 table
16277 \end_layout
16278
16279 \end_inset
16280
16281 , \SpecialChar ldots
16282 ) in the text class itself.
16283  Standard floats are included in the file 
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 stdfloats.inc
16289 \end_layout
16290
16291 \end_inset
16292
16293 , so you may have to do no more than add
16294 \end_layout
16295
16296 \begin_layout LyX-Code
16297 Input stdfloats.inc
16298 \end_layout
16299
16300 \begin_layout Standard
16301 to your layout file.
16302  If you want to implement a text class that proposes some other float types
16303  (like the AGU class bundled with \SpecialChar LyX
16304 ), the information below will hopefully
16305  help you:
16306 \end_layout
16307
16308 \begin_layout Description
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313 AllowedPlacement
16314 \end_layout
16315
16316 \end_inset
16317
16318  [
16319 \begin_inset Flex Code
16320 status collapsed
16321
16322 \begin_layout Plain Layout
16323 string
16324 \end_layout
16325
16326 \end_inset
16327
16328 =!htbpH] Allowed placement options for this float type.
16329  The value is a string of placement characters.
16330  Possible characters include: 
16331 \emph on
16332 h
16333 \emph default
16334  (
16335 \begin_inset Quotes eld
16336 \end_inset
16337
16338 here if possible
16339 \begin_inset Quotes erd
16340 \end_inset
16341
16342 ), 
16343 \emph on
16344 t
16345 \emph default
16346  (
16347 \begin_inset Quotes eld
16348 \end_inset
16349
16350 top of page
16351 \begin_inset Quotes erd
16352 \end_inset
16353
16354 ), 
16355 \emph on
16356 b
16357 \emph default
16358  (
16359 \begin_inset Quotes eld
16360 \end_inset
16361
16362 bottom of page
16363 \begin_inset Quotes erd
16364 \end_inset
16365
16366 ), 
16367 \emph on
16368 p
16369 \emph default
16370  (
16371 \begin_inset Quotes eld
16372 \end_inset
16373
16374 page of floats
16375 \begin_inset Quotes erd
16376 \end_inset
16377
16378 ), 
16379 \emph on
16380 H
16381 \emph default
16382  (
16383 \begin_inset Quotes eld
16384 \end_inset
16385
16386 here definitely
16387 \begin_inset Quotes erd
16388 \end_inset
16389
16390 ) and 
16391 \emph on
16392 !
16393 \emph default
16394  (
16395 \begin_inset Quotes eld
16396 \end_inset
16397
16398 ignore LaTeX rules
16399 \begin_inset Quotes erd
16400 \end_inset
16401
16402 ).
16403  The order of the characters in the string does not matter.
16404  If no placement options are allowed, use the string 
16405 \emph on
16406 none
16407 \emph default
16408 .
16409 \end_layout
16410
16411 \begin_layout Description
16412 \begin_inset Flex Code
16413 status collapsed
16414
16415 \begin_layout Plain Layout
16416 AllowsSideways
16417 \end_layout
16418
16419 \end_inset
16420
16421  [
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426
16427 \emph off
16428 0
16429 \end_layout
16430
16431 \end_inset
16432
16433 ,
16434 \begin_inset space \thinspace{}
16435 \end_inset
16436
16437
16438 \emph on
16439
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444
16445 \emph on
16446 1
16447 \end_layout
16448
16449 \end_inset
16450
16451
16452 \emph default
16453 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16454 -package 
16455 \family typewriter
16456 rotfloat
16457 \family default
16458  (sidewaysfloat).
16459  Set to 
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 0
16465 \end_layout
16466
16467 \end_inset
16468
16469  if the float does not support this feature.
16470 \end_layout
16471
16472 \begin_layout Description
16473 \begin_inset Flex Code
16474 status collapsed
16475
16476 \begin_layout Plain Layout
16477 AllowsWide
16478 \end_layout
16479
16480 \end_inset
16481
16482  [
16483 \begin_inset Flex Code
16484 status collapsed
16485
16486 \begin_layout Plain Layout
16487
16488 \emph off
16489 0
16490 \end_layout
16491
16492 \end_inset
16493
16494 ,
16495 \begin_inset space \thinspace{}
16496 \end_inset
16497
16498
16499 \emph on
16500
16501 \begin_inset Flex Code
16502 status collapsed
16503
16504 \begin_layout Plain Layout
16505
16506 \emph on
16507 1
16508 \end_layout
16509
16510 \end_inset
16511
16512
16513 \emph default
16514 ] Defines whether the float has a starred variant that spans columns in
16515  a two column paragraph.
16516  Set to 
16517 \begin_inset Flex Code
16518 status collapsed
16519
16520 \begin_layout Plain Layout
16521 0
16522 \end_layout
16523
16524 \end_inset
16525
16526  if the float does not support this feature.
16527 \end_layout
16528
16529 \begin_layout Description
16530 \begin_inset Flex Code
16531 status collapsed
16532
16533 \begin_layout Plain Layout
16534 Extension
16535 \end_layout
16536
16537 \end_inset
16538
16539  [
16540 \begin_inset Flex Code
16541 status collapsed
16542
16543 \begin_layout Plain Layout
16544 string
16545 \end_layout
16546
16547 \end_inset
16548
16549 =
16550 \begin_inset Quotes erd
16551 \end_inset
16552
16553
16554 \begin_inset Quotes erd
16555 \end_inset
16556
16557 ] The file name extension of an auxiliary file for the list of figures (or
16558  whatever).
16559  \SpecialChar LaTeX
16560  writes the captions to this file.
16561 \end_layout
16562
16563 \begin_layout Description
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 GuiName
16569 \end_layout
16570
16571 \end_inset
16572
16573  [
16574 \begin_inset Flex Code
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 string
16579 \end_layout
16580
16581 \end_inset
16582
16583 =
16584 \begin_inset Quotes erd
16585 \end_inset
16586
16587
16588 \begin_inset Quotes erd
16589 \end_inset
16590
16591 ] The string that will be used in the menus and also for the caption.
16592  This is translated to the current language if babel is used.
16593 \end_layout
16594
16595 \begin_layout Description
16596 \begin_inset Flex Code
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600 HTML*
16601 \end_layout
16602
16603 \end_inset
16604
16605  These tags control the XHTML output.
16606  See 
16607 \begin_inset CommandInset ref
16608 LatexCommand ref
16609 reference "sec:Tags-for-XHTML"
16610
16611 \end_inset
16612
16613 .
16614 \end_layout
16615
16616 \begin_layout Description
16617 \begin_inset Flex Code
16618 status collapsed
16619
16620 \begin_layout Plain Layout
16621 IsPredefined
16622 \end_layout
16623
16624 \end_inset
16625
16626  [
16627 \emph on
16628
16629 \begin_inset Flex Code
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 0
16634 \end_layout
16635
16636 \end_inset
16637
16638
16639 \emph default
16640 ,
16641 \begin_inset space \thinspace{}
16642 \end_inset
16643
16644
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649 1
16650 \end_layout
16651
16652 \end_inset
16653
16654 ] Indicates whether the float is already defined in the document class or
16655  if instead the \SpecialChar LaTeX
16656  package 
16657 \begin_inset Flex Code
16658 status collapsed
16659
16660 \begin_layout Plain Layout
16661 float
16662 \end_layout
16663
16664 \end_inset
16665
16666  needs to be loaded to define it on-the-fly.
16667  The default is 
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 0
16673 \end_layout
16674
16675 \end_inset
16676
16677 , which means: 
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 float
16683 \end_layout
16684
16685 \end_inset
16686
16687  is used.
16688  It should be set to 
16689 \begin_inset Flex Code
16690 status collapsed
16691
16692 \begin_layout Plain Layout
16693 1
16694 \end_layout
16695
16696 \end_inset
16697
16698  if the float is already defined by the \SpecialChar LaTeX
16699  document class.
16700 \end_layout
16701
16702 \begin_layout Description
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707 ListCommand
16708 \end_layout
16709
16710 \end_inset
16711
16712  [
16713 \begin_inset Flex Code
16714 status collapsed
16715
16716 \begin_layout Plain Layout
16717 string
16718 \end_layout
16719
16720 \end_inset
16721
16722 =
16723 \begin_inset Quotes erd
16724 \end_inset
16725
16726
16727 \begin_inset Quotes erd
16728 \end_inset
16729
16730 ] The command used to generate a list of floats of this type; the leading
16731  `
16732 \backslash
16733 ' must be omitted.
16734  This 
16735 \emph on
16736 must
16737 \emph default
16738  be given if 
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 UsesFloatPkg
16744 \end_layout
16745
16746 \end_inset
16747
16748  is false, since there is no standard way to generate this command.
16749  It is ignored if 
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754 UsesFloatPkg
16755 \end_layout
16756
16757 \end_inset
16758
16759  is true, since in that case there is a standard way to define the command.
16760 \end_layout
16761
16762 \begin_layout Description
16763 \begin_inset Flex Code
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767 ListName
16768 \end_layout
16769
16770 \end_inset
16771
16772  [
16773 \begin_inset Flex Code
16774 status collapsed
16775
16776 \begin_layout Plain Layout
16777 string
16778 \end_layout
16779
16780 \end_inset
16781
16782 =
16783 \begin_inset Quotes erd
16784 \end_inset
16785
16786
16787 \begin_inset Quotes erd
16788 \end_inset
16789
16790 ] A title for a list of floats of this kind (list of figures, tables, or
16791  whatever).
16792  It is used for the screen label within \SpecialChar LyX
16793 , it is used by \SpecialChar LaTeX
16794  for the title and
16795  it is used as the title in the XHTML output.
16796  It will be translated to the document language.
16797 \end_layout
16798
16799 \begin_layout Description
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 NumberWithin
16805 \end_layout
16806
16807 \end_inset
16808
16809  [
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814 string
16815 \end_layout
16816
16817 \end_inset
16818
16819 =
16820 \begin_inset Quotes erd
16821 \end_inset
16822
16823
16824 \begin_inset Quotes erd
16825 \end_inset
16826
16827 ] This (optional) argument determines whether floats of this class will
16828  be numbered within some sectional unit of the document.
16829  For example, if 
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 NumberWithin
16835 \end_layout
16836
16837 \end_inset
16838
16839  is set to 
16840 \begin_inset Quotes eld
16841 \end_inset
16842
16843
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 chapter
16849 \end_layout
16850
16851 \end_inset
16852
16853
16854 \begin_inset Quotes erd
16855 \end_inset
16856
16857 , the floats will be numbered within chapters.
16858  
16859 \end_layout
16860
16861 \begin_layout Description
16862 \begin_inset Flex Code
16863 status collapsed
16864
16865 \begin_layout Plain Layout
16866 Placement
16867 \end_layout
16868
16869 \end_inset
16870
16871  [
16872 \begin_inset Flex Code
16873 status collapsed
16874
16875 \begin_layout Plain Layout
16876 string
16877 \end_layout
16878
16879 \end_inset
16880
16881 =
16882 \begin_inset Quotes erd
16883 \end_inset
16884
16885
16886 \begin_inset Quotes erd
16887 \end_inset
16888
16889 ] The default placement for the given class of floats.
16890  The string should be as in standard \SpecialChar LaTeX
16891
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896 t
16897 \end_layout
16898
16899 \end_inset
16900
16901
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 b
16907 \end_layout
16908
16909 \end_inset
16910
16911
16912 \begin_inset Flex Code
16913 status collapsed
16914
16915 \begin_layout Plain Layout
16916 p
16917 \end_layout
16918
16919 \end_inset
16920
16921  and 
16922 \begin_inset Flex Code
16923 status collapsed
16924
16925 \begin_layout Plain Layout
16926 h
16927 \end_layout
16928
16929 \end_inset
16930
16931  for top, bottom, page, and here, respectively.
16932 \begin_inset Foot
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 Note that the order of these letters in the string is irrelevant, like in
16937  \SpecialChar LaTeX
16938 .
16939 \end_layout
16940
16941 \end_inset
16942
16943  On top of that there is a new type, 
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 H
16949 \end_layout
16950
16951 \end_inset
16952
16953 , which does not really correspond to a float, since it means: put it 
16954 \begin_inset Quotes eld
16955 \end_inset
16956
16957 here
16958 \begin_inset Quotes erd
16959 \end_inset
16960
16961  and nowhere else.
16962  Note however that the 
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 H
16968 \end_layout
16969
16970 \end_inset
16971
16972  specifier is special and, because of implementation details, cannot be
16973  used in non-built in float types.
16974  If you do not understand what this means, just use 
16975 \begin_inset Quotes eld
16976 \end_inset
16977
16978
16979 \begin_inset Flex Code
16980 status collapsed
16981
16982 \begin_layout Plain Layout
16983 tbp
16984 \end_layout
16985
16986 \end_inset
16987
16988
16989 \begin_inset Quotes erd
16990 \end_inset
16991
16992 .
16993 \end_layout
16994
16995 \begin_layout Description
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 RefPrefix
17001 \end_layout
17002
17003 \end_inset
17004
17005  [
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010 string
17011 \end_layout
17012
17013 \end_inset
17014
17015 ] The prefix to use when creating labels referring to floats of this type.
17016  This allows the use of formatted references.
17017  Note that you can remove any 
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 RefPrefix
17023 \end_layout
17024
17025 \end_inset
17026
17027  set by a copied style by using the special value 
17028 \begin_inset Quotes eld
17029 \end_inset
17030
17031 OFF
17032 \begin_inset Quotes erd
17033 \end_inset
17034
17035 , which must be all caps.
17036 \end_layout
17037
17038 \begin_layout Description
17039 \begin_inset Flex Code
17040 status collapsed
17041
17042 \begin_layout Plain Layout
17043 Style
17044 \end_layout
17045
17046 \end_inset
17047
17048  [
17049 \begin_inset Flex Code
17050 status collapsed
17051
17052 \begin_layout Plain Layout
17053 string
17054 \end_layout
17055
17056 \end_inset
17057
17058 =
17059 \begin_inset Quotes erd
17060 \end_inset
17061
17062
17063 \begin_inset Quotes erd
17064 \end_inset
17065
17066 ] The style used when defining the float using 
17067 \begin_inset Flex Code
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071
17072 \backslash
17073 newfloat
17074 \end_layout
17075
17076 \end_inset
17077
17078 .
17079 \end_layout
17080
17081 \begin_layout Description
17082 \begin_inset Flex Code
17083 status collapsed
17084
17085 \begin_layout Plain Layout
17086 Type
17087 \end_layout
17088
17089 \end_inset
17090
17091  [
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096 string
17097 \end_layout
17098
17099 \end_inset
17100
17101 =
17102 \begin_inset Quotes erd
17103 \end_inset
17104
17105
17106 \begin_inset Quotes erd
17107 \end_inset
17108
17109 ] The 
17110 \begin_inset Quotes eld
17111 \end_inset
17112
17113 type
17114 \begin_inset Quotes erd
17115 \end_inset
17116
17117  of the new class of floats, like program or algorithm.
17118  After the appropriate 
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123
17124 \backslash
17125 newfloat
17126 \end_layout
17127
17128 \end_inset
17129
17130 , commands such as 
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135
17136 \backslash
17137 begin{program}
17138 \end_layout
17139
17140 \end_inset
17141
17142  or 
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147
17148 \backslash
17149 end{algorithm*}
17150 \end_layout
17151
17152 \end_inset
17153
17154  will be available.
17155 \end_layout
17156
17157 \begin_layout Description
17158 \begin_inset Flex Code
17159 status collapsed
17160
17161 \begin_layout Plain Layout
17162 UsesFloatPkg
17163 \end_layout
17164
17165 \end_inset
17166
17167  [
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 0
17173 \end_layout
17174
17175 \end_inset
17176
17177 ,
17178 \begin_inset space \thinspace{}
17179 \end_inset
17180
17181
17182 \begin_inset Flex Code
17183 status collapsed
17184
17185 \begin_layout Plain Layout
17186
17187 \emph on
17188 1
17189 \end_layout
17190
17191 \end_inset
17192
17193 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17194  package 
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 float
17200 \end_layout
17201
17202 \end_inset
17203
17204 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17205  itself.
17206 \end_layout
17207
17208 \begin_layout Standard
17209 Note that defining a float with type 
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214
17215 \emph on
17216 type
17217 \end_layout
17218
17219 \end_inset
17220
17221  automatically defines the corresponding counter with name 
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226
17227 \emph on
17228 type
17229 \end_layout
17230
17231 \end_inset
17232
17233 .
17234 \end_layout
17235
17236 \begin_layout Subsection
17237 Flex insets and InsetLayout
17238 \begin_inset CommandInset label
17239 LatexCommand label
17240 name "subsec:Flex-insets-and"
17241
17242 \end_inset
17243
17244
17245 \end_layout
17246
17247 \begin_layout Standard
17248 Flex insets come in three different kinds: 
17249 \end_layout
17250
17251 \begin_layout Itemize
17252 character style (
17253 \begin_inset Flex Code
17254 status collapsed
17255
17256 \begin_layout Plain Layout
17257 CharStyle
17258 \end_layout
17259
17260 \end_inset
17261
17262 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17263  commands as 
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268
17269 \backslash
17270 noun
17271 \end_layout
17272
17273 \end_inset
17274
17275  and 
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280
17281 \backslash
17282 code
17283 \end_layout
17284
17285 \end_inset
17286
17287 .
17288 \end_layout
17289
17290 \begin_layout Itemize
17291 user custom (
17292 \begin_inset Flex Code
17293 status collapsed
17294
17295 \begin_layout Plain Layout
17296 Custom
17297 \end_layout
17298
17299 \end_inset
17300
17301 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17302  code,
17303  footnote, and the like.
17304  An obvious example is an endnote inset, which is defined in the 
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 endnote
17310 \end_layout
17311
17312 \end_inset
17313
17314  module.
17315 \end_layout
17316
17317 \begin_layout Itemize
17318 XML elements (
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 Element
17324 \end_layout
17325
17326 \end_inset
17327
17328 ): For use with DocBook classes.
17329 \end_layout
17330
17331 \begin_layout Standard
17332 Flex insets are defined using the 
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 InsetLayout
17338 \end_layout
17339
17340 \end_inset
17341
17342  tag, which shall be explained in a moment.
17343 \end_layout
17344
17345 \begin_layout Standard
17346 The 
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351 InsetLayout
17352 \end_layout
17353
17354 \end_inset
17355
17356  tag also serves another function: It can be used to customize the general
17357  layout of many different types of insets.
17358  Currently, 
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 InsetLayout
17364 \end_layout
17365
17366 \end_inset
17367
17368  can be used to customize the layout parameters for footnotes, marginal
17369  notes, note insets, \SpecialChar TeX
17370  code (ERT) insets, branches, listings, indexes, boxes,
17371  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17372 \end_layout
17373
17374 \begin_layout Standard
17375 The 
17376 \begin_inset Flex Code
17377 status collapsed
17378
17379 \begin_layout Plain Layout
17380 InsetLayout
17381 \end_layout
17382
17383 \end_inset
17384
17385  definition must begin with a line of the form:
17386 \end_layout
17387
17388 \begin_layout LyX-Code
17389 InsetLayout <type>
17390 \end_layout
17391
17392 \begin_layout Standard
17393 Here 
17394 \begin_inset Flex Code
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398 <Type>
17399 \end_layout
17400
17401 \end_inset
17402
17403  indicates the inset whose layout is being defined, and here there are four
17404  cases.
17405 \end_layout
17406
17407 \begin_layout Enumerate
17408 The layout for a pre-existing inset is being modified.
17409  In this case, can be 
17410 \begin_inset Flex Code
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 <Type>
17415 \end_layout
17416
17417 \end_inset
17418
17419  any one of the following: 
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424 Algorithm
17425 \end_layout
17426
17427 \end_inset
17428
17429
17430 \begin_inset Flex Code
17431 status collapsed
17432
17433 \begin_layout Plain Layout
17434 Branch
17435 \end_layout
17436
17437 \end_inset
17438
17439
17440 \begin_inset Flex Code
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 Box
17445 \end_layout
17446
17447 \end_inset
17448
17449
17450 \begin_inset Flex Code
17451 status collapsed
17452
17453 \begin_layout Plain Layout
17454 Box:shaded
17455 \end_layout
17456
17457 \end_inset
17458
17459
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 Caption:Standard
17465 \end_layout
17466
17467 \end_inset
17468
17469
17470 \begin_inset Flex Code
17471 status collapsed
17472
17473 \begin_layout Plain Layout
17474 ERT
17475 \end_layout
17476
17477 \end_inset
17478
17479
17480 \begin_inset Flex Code
17481 status collapsed
17482
17483 \begin_layout Plain Layout
17484 Figure
17485 \end_layout
17486
17487 \end_inset
17488
17489
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494 Foot
17495 \end_layout
17496
17497 \end_inset
17498
17499
17500 \begin_inset Flex Code
17501 status collapsed
17502
17503 \begin_layout Plain Layout
17504 Index
17505 \end_layout
17506
17507 \end_inset
17508
17509
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 Info
17515 \end_layout
17516
17517 \end_inset
17518
17519
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524 Info:menu
17525 \end_layout
17526
17527 \end_inset
17528
17529
17530 \begin_inset Flex Code
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534 Info:shortcut
17535 \end_layout
17536
17537 \end_inset
17538
17539
17540 \begin_inset Flex Code
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 Info:shortcuts
17545 \end_layout
17546
17547 \end_inset
17548
17549
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 Listings
17555 \end_layout
17556
17557 \end_inset
17558
17559
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 Marginal
17565 \end_layout
17566
17567 \end_inset
17568
17569
17570 \begin_inset Flex Code
17571 status collapsed
17572
17573 \begin_layout Plain Layout
17574 Note:Comment
17575 \end_layout
17576
17577 \end_inset
17578
17579
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 Note:Note
17585 \end_layout
17586
17587 \end_inset
17588
17589
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 Note:Greyedout
17595 \end_layout
17596
17597 \end_inset
17598
17599
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 Table
17605 \end_layout
17606
17607 \end_inset
17608
17609 , or 
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 URL
17615 \end_layout
17616
17617 \end_inset
17618
17619 .
17620 \end_layout
17621
17622 \begin_layout Enumerate
17623 The layout for a Flex inset is being defined.
17624  In this case, 
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 <Type>
17630 \end_layout
17631
17632 \end_inset
17633
17634  must be of the form 
17635 \begin_inset Quotes eld
17636 \end_inset
17637
17638
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 Flex:<name>
17644 \end_layout
17645
17646 \end_inset
17647
17648
17649 \begin_inset Quotes erd
17650 \end_inset
17651
17652 , where 
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 name
17658 \end_layout
17659
17660 \end_inset
17661
17662  may be be any valid identifier not used by a pre-existing Flex inset.
17663  The identifier may include spaces, but in that case the whole thing must
17664  be wrapped in quotes.
17665  Note that the definition of a flex inset 
17666 \emph on
17667 must 
17668 \emph default
17669 also include a 
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 LyXType
17675 \end_layout
17676
17677 \end_inset
17678
17679  entry, declaring which type of inset it defines.
17680 \end_layout
17681
17682 \begin_layout Enumerate
17683 The layout for user specific branch is being defined.
17684  In this case, 
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 <Type>
17690 \end_layout
17691
17692 \end_inset
17693
17694  must be of the form 
17695 \begin_inset Quotes eld
17696 \end_inset
17697
17698
17699 \begin_inset Flex Code
17700 status collapsed
17701
17702 \begin_layout Plain Layout
17703 Branch:<name>
17704 \end_layout
17705
17706 \end_inset
17707
17708
17709 \begin_inset Quotes erd
17710 \end_inset
17711
17712 , where 
17713 \begin_inset Flex Code
17714 status collapsed
17715
17716 \begin_layout Plain Layout
17717 name
17718 \end_layout
17719
17720 \end_inset
17721
17722  may be be any valid identifier of branch defined in user's document.
17723  The identifier may include spaces, but in that case the whole thing must
17724  be wrapped in quotes.
17725  The main purpose of this feature is to allow \SpecialChar LaTeX
17726  wrapping around specific
17727  branches as user needs.
17728 \end_layout
17729
17730 \begin_layout Enumerate
17731 The layout of a user (or class) specific caption is being defined.
17732  In this case, 
17733 \begin_inset Flex Code
17734 status collapsed
17735
17736 \begin_layout Plain Layout
17737 <Type>
17738 \end_layout
17739
17740 \end_inset
17741
17742  must be of the form 
17743 \begin_inset Quotes eld
17744 \end_inset
17745
17746
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 Caption:<name>
17752 \end_layout
17753
17754 \end_inset
17755
17756
17757 \begin_inset Quotes erd
17758 \end_inset
17759
17760 , where 
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 name
17766 \end_layout
17767
17768 \end_inset
17769
17770  specifies the name of the caption as it appears in the menu.
17771  Have a look at the standard caption (
17772 \begin_inset Flex Code
17773 status collapsed
17774
17775 \begin_layout Plain Layout
17776 Caption:Standard
17777 \end_layout
17778
17779 \end_inset
17780
17781 ), the specific captions of the KOMA-Script classes (
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 Caption:Above
17787 \end_layout
17788
17789 \end_inset
17790
17791
17792 \begin_inset Flex Code
17793 status collapsed
17794
17795 \begin_layout Plain Layout
17796 Caption:Below
17797 \end_layout
17798
17799 \end_inset
17800
17801 ) or the module 
17802 \family sans
17803 Multilingual
17804 \begin_inset space ~
17805 \end_inset
17806
17807 Captions 
17808 \family default
17809 (
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 Caption:Bicaption
17815 \end_layout
17816
17817 \end_inset
17818
17819 ) for applications.
17820 \end_layout
17821
17822 \begin_layout Standard
17823 The 
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 InsetLayout
17829 \end_layout
17830
17831 \end_inset
17832
17833  definition can contain the following entries:
17834 \end_layout
17835
17836 \begin_layout Description
17837 \begin_inset Flex Code
17838 status collapsed
17839
17840 \begin_layout Plain Layout
17841 Argument
17842 \end_layout
17843
17844 \end_inset
17845
17846  [
17847 \begin_inset Flex Code
17848 status collapsed
17849
17850 \begin_layout Plain Layout
17851 int
17852 \end_layout
17853
17854 \end_inset
17855
17856 ] Defines argument number of a command\SpecialChar breakableslash
17857 environment associated with the current
17858  layout.
17859  The definition must end with 
17860 \begin_inset Flex Code
17861 status collapsed
17862
17863 \begin_layout Plain Layout
17864 EndArgument
17865 \end_layout
17866
17867 \end_inset
17868
17869 .
17870  See 
17871 \begin_inset CommandInset ref
17872 LatexCommand ref
17873 reference "subsec:Paragraph-Styles"
17874
17875 \end_inset
17876
17877  for details.
17878 \end_layout
17879
17880 \begin_layout Description
17881 \begin_inset Flex Code
17882 status collapsed
17883
17884 \begin_layout Plain Layout
17885 BabelPreamble
17886 \end_layout
17887
17888 \end_inset
17889
17890  Preamble for changing language commands; see 
17891 \begin_inset CommandInset ref
17892 LatexCommand ref
17893 reference "subsec:I18n"
17894
17895 \end_inset
17896
17897 .
17898 \end_layout
17899
17900 \begin_layout Description
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 BgColor
17906 \end_layout
17907
17908 \end_inset
17909
17910  [
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 <name>
17916 \end_layout
17917
17918 \end_inset
17919
17920 ] The color for the inset's background.
17921  See 
17922 \begin_inset CommandInset ref
17923 LatexCommand ref
17924 reference "chap:Names-of-colors"
17925
17926 \end_inset
17927
17928  for a list of the available color names.
17929 \end_layout
17930
17931 \begin_layout Description
17932 \begin_inset Flex Code
17933 status collapsed
17934
17935 \begin_layout Plain Layout
17936 ContentAsLabel
17937 \end_layout
17938
17939 \end_inset
17940
17941  [
17942 \begin_inset Flex Code
17943 status collapsed
17944
17945 \begin_layout Plain Layout
17946
17947 \emph on
17948 0
17949 \end_layout
17950
17951 \end_inset
17952
17953 ,
17954 \begin_inset space \thinspace{}
17955 \end_inset
17956
17957
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962 1
17963 \end_layout
17964
17965 \end_inset
17966
17967 ] Whether to use the content of the inset as the label, when the inset is
17968  closed.
17969  Default is false.
17970 \end_layout
17971
17972 \begin_layout Description
17973 \begin_inset Flex Code
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977 CopyStyle
17978 \end_layout
17979
17980 \end_inset
17981
17982  [
17983 \begin_inset Flex Code
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987 <type>
17988 \end_layout
17989
17990 \end_inset
17991
17992 ] As with paragraph styles, see 
17993 \begin_inset CommandInset ref
17994 LatexCommand ref
17995 reference "subsec:Paragraph-Styles"
17996
17997 \end_inset
17998
17999 .
18000  Note that you need to specify the complete type, e.
18001 \begin_inset space \thinspace{}
18002 \end_inset
18003
18004 g.
18005 \begin_inset space ~
18006 \end_inset
18007
18008
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 CopyStyle Flex:<name>
18014 \end_layout
18015
18016 \end_inset
18017
18018 .
18019 \end_layout
18020
18021 \begin_layout Description
18022 \begin_inset Flex Code
18023 status collapsed
18024
18025 \begin_layout Plain Layout
18026 CustomPars
18027 \end_layout
18028
18029 \end_inset
18030
18031  [
18032 \begin_inset Flex Code
18033 status collapsed
18034
18035 \begin_layout Plain Layout
18036
18037 \emph on
18038 0
18039 \end_layout
18040
18041 \end_inset
18042
18043 ,
18044 \begin_inset space \thinspace{}
18045 \end_inset
18046
18047
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 1
18053 \end_layout
18054
18055 \end_inset
18056
18057 ] Indicates whether the user may employ the Paragraph Settings dialog to
18058  customize the paragraph.
18059 \end_layout
18060
18061 \begin_layout Description
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 Decoration
18067 \end_layout
18068
18069 \end_inset
18070
18071  can be 
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 Classic
18077 \end_layout
18078
18079 \end_inset
18080
18081
18082 \begin_inset Flex Code
18083 status collapsed
18084
18085 \begin_layout Plain Layout
18086 Minimalistic
18087 \end_layout
18088
18089 \end_inset
18090
18091 , or 
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 Conglomerate
18097 \end_layout
18098
18099 \end_inset
18100
18101 , describing the rendering style used for the inset's frame and buttons.
18102  Footnotes generally use 
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107 Classic
18108 \end_layout
18109
18110 \end_inset
18111
18112 , ERT insets generally 
18113 \begin_inset Flex Code
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 Minimalistic
18118 \end_layout
18119
18120 \end_inset
18121
18122 , and character styles 
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 Conglomerate
18128 \end_layout
18129
18130 \end_inset
18131
18132 .
18133 \end_layout
18134
18135 \begin_layout Description
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 Display
18141 \end_layout
18142
18143 \end_inset
18144
18145  [
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 0
18151 \end_layout
18152
18153 \end_inset
18154
18155 ,
18156 \emph on
18157
18158 \begin_inset space \thinspace{}
18159 \end_inset
18160
18161
18162 \emph default
18163
18164 \begin_inset Flex Code
18165 status collapsed
18166
18167 \begin_layout Plain Layout
18168
18169 \emph on
18170 1
18171 \end_layout
18172
18173 \end_inset
18174
18175 ] Only useful if 
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 LatexType
18181 \end_layout
18182
18183 \end_inset
18184
18185  is 
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 Environment
18191 \end_layout
18192
18193 \end_inset
18194
18195 .
18196  Indicates whether the environment will stand on its own in the output or
18197  will appear inline with the surrounding text.
18198  If set to false, it is supposed that the \SpecialChar LaTeX
18199  environment ignores white space
18200  (including one newline character) after the 
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205
18206 \backslash
18207 begin{
18208 \emph on
18209 LatexName
18210 \emph default
18211 }
18212 \end_layout
18213
18214 \end_inset
18215
18216  and 
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221
18222 \backslash
18223 end{
18224 \emph on
18225 LatexName
18226 \emph default
18227 }
18228 \end_layout
18229
18230 \end_inset
18231
18232  tags.
18233  Default is true.
18234 \end_layout
18235
18236 \begin_layout Description
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 End
18242 \end_layout
18243
18244 \end_inset
18245
18246  Required at the end of the 
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 InsetLayout
18252 \end_layout
18253
18254 \end_inset
18255
18256  declarations.
18257 \end_layout
18258
18259 \begin_layout Description
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264 Font
18265 \end_layout
18266
18267 \end_inset
18268
18269  The font used for both the text body 
18270 \emph on
18271 and
18272 \emph default
18273  the label.
18274  See 
18275 \begin_inset CommandInset ref
18276 LatexCommand ref
18277 reference "subsec:Font-description"
18278
18279 \end_inset
18280
18281 .
18282  Note that defining this font automatically defines the 
18283 \begin_inset Flex Code
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 LabelFont
18288 \end_layout
18289
18290 \end_inset
18291
18292  to the same value, so define this first and define 
18293 \begin_inset Flex Code
18294 status collapsed
18295
18296 \begin_layout Plain Layout
18297 LabelFont
18298 \end_layout
18299
18300 \end_inset
18301
18302  later if you want them to be different.
18303 \end_layout
18304
18305 \begin_layout Description
18306 \begin_inset Flex Code
18307 status collapsed
18308
18309 \begin_layout Plain Layout
18310 FixedWidthPreambleEncoding
18311 \end_layout
18312
18313 \end_inset
18314
18315  [
18316 \begin_inset Flex Code
18317 status collapsed
18318
18319 \begin_layout Plain Layout
18320
18321 \emph on
18322 0
18323 \end_layout
18324
18325 \end_inset
18326
18327 ,
18328 \begin_inset space \thinspace{}
18329 \end_inset
18330
18331
18332 \begin_inset Flex Code
18333 status collapsed
18334
18335 \begin_layout Plain Layout
18336 1
18337 \end_layout
18338
18339 \end_inset
18340
18341 ] Force a fixed width encoding for the translated contents of 
18342 \begin_inset Flex Code
18343 status collapsed
18344
18345 \begin_layout Plain Layout
18346 BabelPreamble
18347 \end_layout
18348
18349 \end_inset
18350
18351  and 
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 LangPreamble
18357 \end_layout
18358
18359 \end_inset
18360
18361  code generated by this layout.
18362  This is needed for special \SpecialChar LaTeX
18363 -packages like 
18364 \family typewriter
18365 listings
18366 \family default
18367  that do not work with variable width encodings such as 
18368 \family sans
18369 utf8
18370 \family default
18371 .
18372  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18373  backends such as Xe\SpecialChar TeX
18374  or
18375  Lua\SpecialChar TeX
18376  are used.
18377 \end_layout
18378
18379 \begin_layout Description
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 ForceLocalFontSwitch
18385 \end_layout
18386
18387 \end_inset
18388
18389  [
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394
18395 \emph on
18396 0
18397 \end_layout
18398
18399 \end_inset
18400
18401 ,
18402 \begin_inset space \thinspace{}
18403 \end_inset
18404
18405
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 1
18411 \end_layout
18412
18413 \end_inset
18414
18415 ] When using babel, always use a local font switch (
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420
18421 \backslash
18422 foreignlanguage
18423 \end_layout
18424
18425 \end_inset
18426
18427 ), never a global one (such as 
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432
18433 \backslash
18434 selectlanguage
18435 \end_layout
18436
18437 \end_inset
18438
18439 ).
18440 \end_layout
18441
18442 \begin_layout Description
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 ForceLTR
18448 \end_layout
18449
18450 \end_inset
18451
18452  [
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457
18458 \emph on
18459 0
18460 \end_layout
18461
18462 \end_inset
18463
18464 ,
18465 \begin_inset space \thinspace{}
18466 \end_inset
18467
18468
18469 \begin_inset Flex Code
18470 status collapsed
18471
18472 \begin_layout Plain Layout
18473 1
18474 \end_layout
18475
18476 \end_inset
18477
18478 ] Force the 
18479 \begin_inset Quotes eld
18480 \end_inset
18481
18482 latex
18483 \begin_inset Quotes erd
18484 \end_inset
18485
18486  language, leading to Left-to-Right (Latin) output, e.
18487 \begin_inset space \thinspace{}
18488 \end_inset
18489
18490 g.
18491 \begin_inset space \space{}
18492 \end_inset
18493
18494 in \SpecialChar TeX
18495  code or URL.
18496  A kludge.
18497 \end_layout
18498
18499 \begin_layout Description
18500 \begin_inset Flex Code
18501 status collapsed
18502
18503 \begin_layout Plain Layout
18504 ForceOwnlines
18505 \end_layout
18506
18507 \end_inset
18508
18509  [
18510 \begin_inset Flex Code
18511 status collapsed
18512
18513 \begin_layout Plain Layout
18514
18515 \emph on
18516 0
18517 \end_layout
18518
18519 \end_inset
18520
18521 ,
18522 \begin_inset space \thinspace{}
18523 \end_inset
18524
18525
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530 1
18531 \end_layout
18532
18533 \end_inset
18534
18535 ] Force a a line break in the \SpecialChar LaTeX
18536  output before the inset starts and after
18537  the inset ends.
18538  This assures the inset itself is output on its own lines, for parsing purposes.
18539 \end_layout
18540
18541 \begin_layout Description
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 ForcePlain
18547 \end_layout
18548
18549 \end_inset
18550
18551  [
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556
18557 \emph on
18558 0
18559 \end_layout
18560
18561 \end_inset
18562
18563 ,
18564 \begin_inset space \thinspace{}
18565 \end_inset
18566
18567
18568 \begin_inset Flex Code
18569 status collapsed
18570
18571 \begin_layout Plain Layout
18572 1
18573 \end_layout
18574
18575 \end_inset
18576
18577 ] Indicates whether the 
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 PlainLayout
18583 \end_layout
18584
18585 \end_inset
18586
18587  should be used or, instead, the user can change the paragraph style used
18588  in the inset.
18589  Default is false.
18590 \end_layout
18591
18592 \begin_layout Description
18593 \begin_inset Flex Code
18594 status collapsed
18595
18596 \begin_layout Plain Layout
18597 FreeSpacing
18598 \end_layout
18599
18600 \end_inset
18601
18602  [
18603 \begin_inset Flex Code
18604 status collapsed
18605
18606 \begin_layout Plain Layout
18607
18608 \emph on
18609 0
18610 \end_layout
18611
18612 \end_inset
18613
18614 ,
18615 \begin_inset space \thinspace{}
18616 \end_inset
18617
18618
18619 \begin_inset Flex Code
18620 status collapsed
18621
18622 \begin_layout Plain Layout
18623 1
18624 \end_layout
18625
18626 \end_inset
18627
18628 ] As with paragraph styles, see 
18629 \begin_inset CommandInset ref
18630 LatexCommand ref
18631 reference "subsec:Paragraph-Styles"
18632
18633 \end_inset
18634
18635 .
18636 \end_layout
18637
18638 \begin_layout Description
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 HTML*
18644 \end_layout
18645
18646 \end_inset
18647
18648  These tags control the XHTML output.
18649  See 
18650 \begin_inset CommandInset ref
18651 LatexCommand ref
18652 reference "sec:Tags-for-XHTML"
18653
18654 \end_inset
18655
18656 .
18657 \end_layout
18658
18659 \begin_layout Description
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 InToc
18665 \end_layout
18666
18667 \end_inset
18668
18669  [
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674
18675 \emph on
18676 0
18677 \end_layout
18678
18679 \end_inset
18680
18681 ,
18682 \begin_inset space \thinspace{}
18683 \end_inset
18684
18685
18686 \begin_inset Flex Code
18687 status collapsed
18688
18689 \begin_layout Plain Layout
18690 1
18691 \end_layout
18692
18693 \end_inset
18694
18695 ] Whether to include the contents of this inset in the strings generated
18696  for the `Outline' pane.
18697  One would not, for example, want the content of a footnote in a section
18698  header to be included in the TOC displayed in the outline, but one would
18699  normally want the content of a character style displayed.
18700  Default is false: not to include.
18701 \end_layout
18702
18703 \begin_layout Description
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 KeepEmpty
18709 \end_layout
18710
18711 \end_inset
18712
18713  [
18714 \emph on
18715
18716 \begin_inset Flex Code
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 0
18721 \end_layout
18722
18723 \end_inset
18724
18725
18726 \emph default
18727 ,
18728 \begin_inset space \thinspace{}
18729 \end_inset
18730
18731
18732 \begin_inset Flex Code
18733 status collapsed
18734
18735 \begin_layout Plain Layout
18736 1
18737 \end_layout
18738
18739 \end_inset
18740
18741 ] As with paragraph styles, see 
18742 \begin_inset CommandInset ref
18743 LatexCommand ref
18744 reference "subsec:Paragraph-Styles"
18745
18746 \end_inset
18747
18748 .
18749 \end_layout
18750
18751 \begin_layout Description
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 LabelFont
18757 \end_layout
18758
18759 \end_inset
18760
18761  The font used for the label.
18762  See 
18763 \begin_inset CommandInset ref
18764 LatexCommand ref
18765 reference "subsec:Font-description"
18766
18767 \end_inset
18768
18769 .
18770  Note that this definition can never appear before 
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 Font
18776 \end_layout
18777
18778 \end_inset
18779
18780 , lest it be ineffective.
18781 \end_layout
18782
18783 \begin_layout Description
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 LabelString
18789 \end_layout
18790
18791 \end_inset
18792
18793  [
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 string
18799 \end_layout
18800
18801 \end_inset
18802
18803 =
18804 \begin_inset Quotes erd
18805 \end_inset
18806
18807
18808 \begin_inset Quotes erd
18809 \end_inset
18810
18811 ] What will be displayed on the button or elsewhere as the inset label.
18812  Some inset types (
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817 \SpecialChar TeX
18818  code
18819 \end_layout
18820
18821 \end_inset
18822
18823  and 
18824 \begin_inset Flex Code
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828 Branch
18829 \end_layout
18830
18831 \end_inset
18832
18833 ) modify this label on the fly.
18834 \end_layout
18835
18836 \begin_layout Description
18837 \begin_inset Flex Code
18838 status collapsed
18839
18840 \begin_layout Plain Layout
18841 LangPreamble
18842 \end_layout
18843
18844 \end_inset
18845
18846  Language dependent preamble; see 
18847 \begin_inset CommandInset ref
18848 LatexCommand ref
18849 reference "subsec:I18n"
18850
18851 \end_inset
18852
18853 .
18854 \end_layout
18855
18856 \begin_layout Description
18857 \begin_inset Flex Code
18858 status collapsed
18859
18860 \begin_layout Plain Layout
18861 LatexName
18862 \end_layout
18863
18864 \end_inset
18865
18866  [
18867 \begin_inset Flex Code
18868 status collapsed
18869
18870 \begin_layout Plain Layout
18871 <name>
18872 \end_layout
18873
18874 \end_inset
18875
18876 ] The name of the corresponding \SpecialChar LaTeX
18877  stuff.
18878  Either the environment or command name.
18879 \end_layout
18880
18881 \begin_layout Description
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 LatexParam
18887 \end_layout
18888
18889 \end_inset
18890
18891  [
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896 <parameter>
18897 \end_layout
18898
18899 \end_inset
18900
18901 ] The optional parameter for the corresponding 
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 LatexName
18907 \end_layout
18908
18909 \end_inset
18910
18911  stuff, including possible bracket pairs like 
18912 \begin_inset Flex Code
18913 status collapsed
18914
18915 \begin_layout Plain Layout
18916 []
18917 \end_layout
18918
18919 \end_inset
18920
18921 .
18922  This parameter cannot be changed from within \SpecialChar LyX
18923  (use 
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 Argument
18929 \end_layout
18930
18931 \end_inset
18932
18933  for customizable parameters).
18934  It will be output as is after all \SpecialChar LaTeX
18935  
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 Argument
18941 \end_layout
18942
18943 \end_inset
18944
18945 s.
18946 \end_layout
18947
18948 \begin_layout Description
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 LatexType
18954 \end_layout
18955
18956 \end_inset
18957
18958  [
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 Command, Environment, None
18964 \end_layout
18965
18966 \end_inset
18967
18968 ] How the style should be translated into \SpecialChar LaTeX
18969 .
18970 \begin_inset Foot
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 LatexType
18979 \end_layout
18980
18981 \end_inset
18982
18983  is perhaps a bit misleading, since these rules apply to SGML classes too.
18984  Visit the SGML class files for specific examples.
18985 \end_layout
18986
18987 \end_inset
18988
18989
18990 \end_layout
18991
18992 \begin_deeper
18993 \begin_layout Description
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 None
18999 \end_layout
19000
19001 \end_inset
19002
19003  means nothing special
19004 \end_layout
19005
19006 \begin_layout Description
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011 Command
19012 \end_layout
19013
19014 \end_inset
19015
19016  means 
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021
19022 \backslash
19023
19024 \emph on
19025 LatexName
19026 \emph default
19027 {\SpecialChar ldots
19028 }
19029 \end_layout
19030
19031 \end_inset
19032
19033
19034 \end_layout
19035
19036 \begin_layout Description
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 Environment
19042 \end_layout
19043
19044 \end_inset
19045
19046  means 
19047 \begin_inset Flex Code
19048 status collapsed
19049
19050 \begin_layout Plain Layout
19051
19052 \backslash
19053 begin{
19054 \emph on
19055 LatexName
19056 \emph default
19057 }\SpecialChar ldots
19058
19059 \backslash
19060 end{
19061 \emph on
19062 LatexName
19063 \emph default
19064 }
19065 \end_layout
19066
19067 \end_inset
19068
19069
19070 \end_layout
19071
19072 \begin_layout Standard
19073 Putting the last few things together, the \SpecialChar LaTeX
19074  output will be either: 
19075 \end_layout
19076
19077 \begin_layout LyX-Code
19078
19079 \backslash
19080 LatexName[LatexParam]{\SpecialChar ldots
19081 }
19082 \end_layout
19083
19084 \begin_layout Standard
19085 or: 
19086 \end_layout
19087
19088 \begin_layout LyX-Code
19089
19090 \backslash
19091 begin{LatexName}[LatexParam] \SpecialChar ldots
19092  
19093 \backslash
19094 end{LatexName}
19095 \end_layout
19096
19097 \begin_layout Standard
19098 depending upon the \SpecialChar LaTeX
19099  type.
19100 \end_layout
19101
19102 \end_deeper
19103 \begin_layout Description
19104 \begin_inset Flex Code
19105 status collapsed
19106
19107 \begin_layout Plain Layout
19108 LeftDelim
19109 \end_layout
19110
19111 \end_inset
19112
19113  [
19114 \begin_inset Flex Code
19115 status collapsed
19116
19117 \begin_layout Plain Layout
19118 string
19119 \end_layout
19120
19121 \end_inset
19122
19123 ] A string that is put at the beginning of the layout content.
19124  A line break in the output can be indicated by 
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 <br/>
19130 \end_layout
19131
19132 \end_inset
19133
19134 .
19135 \end_layout
19136
19137 \begin_layout Description
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 LyxType
19143 \end_layout
19144
19145 \end_inset
19146
19147  Can be 
19148 \begin_inset Flex Code
19149 status collapsed
19150
19151 \begin_layout Plain Layout
19152 charstyle
19153 \end_layout
19154
19155 \end_inset
19156
19157
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 custom
19163 \end_layout
19164
19165 \end_inset
19166
19167
19168 \begin_inset Flex Code
19169 status collapsed
19170
19171 \begin_layout Plain Layout
19172 element
19173 \end_layout
19174
19175 \end_inset
19176
19177  or 
19178 \begin_inset Flex Code
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182 end
19183 \end_layout
19184
19185 \end_inset
19186
19187  (indicating a dummy definition ending definitions of charstyles, etc).
19188  This entry is required in and is only meaningful for Flex insets.
19189  Among other things, it determines on which menu this inset will appear.
19190  Setting 
19191 \begin_inset Flex Code
19192 status collapsed
19193
19194 \begin_layout Plain Layout
19195 LyxType
19196 \end_layout
19197
19198 \end_inset
19199
19200  to 
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 charstyle
19206 \end_layout
19207
19208 \end_inset
19209
19210  will automatically set 
19211 \begin_inset Flex Code
19212 status collapsed
19213
19214 \begin_layout Plain Layout
19215 MultiPar
19216 \end_layout
19217
19218 \end_inset
19219
19220  to false and 
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 ForcePlain
19226 \end_layout
19227
19228 \end_inset
19229
19230  to true.
19231  
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 MultiPar
19237 \end_layout
19238
19239 \end_inset
19240
19241  can be set to true, or 
19242 \begin_inset Flex Code
19243 status collapsed
19244
19245 \begin_layout Plain Layout
19246 ForcePlain
19247 \end_layout
19248
19249 \end_inset
19250
19251  to false, for 
19252 \begin_inset Flex Code
19253 status collapsed
19254
19255 \begin_layout Plain Layout
19256 charstyle
19257 \end_layout
19258
19259 \end_inset
19260
19261  insets by setting it 
19262 \emph on
19263 after
19264 \emph default
19265  you set the 
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 LyxType
19271 \end_layout
19272
19273 \end_inset
19274
19275 .
19276 \end_layout
19277
19278 \begin_layout Description
19279 \begin_inset Flex Code
19280 status collapsed
19281
19282 \begin_layout Plain Layout
19283 MultiPar
19284 \end_layout
19285
19286 \end_inset
19287
19288  [
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293
19294 \emph on
19295 0
19296 \end_layout
19297
19298 \end_inset
19299
19300 ,
19301 \begin_inset space \thinspace{}
19302 \end_inset
19303
19304
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 1
19310 \end_layout
19311
19312 \end_inset
19313
19314 ] Whether multiple paragraphs are permitted in this inset.
19315  This will also set 
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 CustomPars
19321 \end_layout
19322
19323 \end_inset
19324
19325  to the same value and 
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 ForcePlain
19331 \end_layout
19332
19333 \end_inset
19334
19335  to the opposite value.
19336  These can be reset to other values, if they are used 
19337 \emph on
19338 after
19339 \emph default
19340  
19341 \begin_inset Flex Code
19342 status collapsed
19343
19344 \begin_layout Plain Layout
19345 MultiPar
19346 \end_layout
19347
19348 \end_inset
19349
19350 .
19351  Default is true.
19352 \end_layout
19353
19354 \begin_layout Description
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 NeedProtect
19360 \end_layout
19361
19362 \end_inset
19363
19364  [
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369
19370 \emph on
19371 0
19372 \end_layout
19373
19374 \end_inset
19375
19376 ,
19377 \begin_inset space \thinspace{}
19378 \end_inset
19379
19380
19381 \begin_inset Flex Code
19382 status collapsed
19383
19384 \begin_layout Plain Layout
19385 1
19386 \end_layout
19387
19388 \end_inset
19389
19390 ] Whether fragile commands in this inset should be 
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395
19396 \backslash
19397 protect
19398 \end_layout
19399
19400 \end_inset
19401
19402 'ed.
19403  (Note: This is 
19404 \emph on
19405 not
19406 \emph default
19407  whether the command should itself be protected.) Default is false.
19408 \end_layout
19409
19410 \begin_layout Description
19411 \begin_inset Flex Code
19412 status collapsed
19413
19414 \begin_layout Plain Layout
19415 NoInsetLayout
19416 \end_layout
19417
19418 \end_inset
19419
19420  [
19421 \begin_inset Flex Code
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 <layout>
19426 \end_layout
19427
19428 \end_inset
19429
19430 ] Deletes an existing 
19431 \begin_inset Flex Code
19432 status collapsed
19433
19434 \begin_layout Plain Layout
19435 InsetLayout
19436 \end_layout
19437
19438 \end_inset
19439
19440 .
19441 \end_layout
19442
19443 \begin_layout Description
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 ObsoletedBy
19449 \end_layout
19450
19451 \end_inset
19452
19453  [
19454 \begin_inset Flex Code
19455 status collapsed
19456
19457 \begin_layout Plain Layout
19458 <layout>
19459 \end_layout
19460
19461 \end_inset
19462
19463 ] Name of an 
19464 \begin_inset Flex Code
19465 status collapsed
19466
19467 \begin_layout Plain Layout
19468 InsetLayout
19469 \end_layout
19470
19471 \end_inset
19472
19473  that has replaced this 
19474 \begin_inset Flex Code
19475 status collapsed
19476
19477 \begin_layout Plain Layout
19478 InsetLayout
19479 \end_layout
19480
19481 \end_inset
19482
19483 .
19484  This is used to rename an 
19485 \begin_inset Flex Code
19486 status collapsed
19487
19488 \begin_layout Plain Layout
19489 InsetLayout
19490 \end_layout
19491
19492 \end_inset
19493
19494 , while keeping backward compatibility.
19495 \end_layout
19496
19497 \begin_layout Description
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 ParbreakIsNewline
19503 \end_layout
19504
19505 \end_inset
19506
19507  [
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512
19513 \emph on
19514 0
19515 \end_layout
19516
19517 \end_inset
19518
19519 ,
19520 \begin_inset space \thinspace{}
19521 \end_inset
19522
19523
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 1
19529 \end_layout
19530
19531 \end_inset
19532
19533 ] As with paragraph styles, see 
19534 \begin_inset CommandInset ref
19535 LatexCommand ref
19536 reference "subsec:Paragraph-Styles"
19537
19538 \end_inset
19539
19540 .
19541  Default is false.
19542 \end_layout
19543
19544 \begin_layout Description
19545 \begin_inset Flex Code
19546 status collapsed
19547
19548 \begin_layout Plain Layout
19549 PassThru
19550 \end_layout
19551
19552 \end_inset
19553
19554  [
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559
19560 \emph on
19561 0
19562 \end_layout
19563
19564 \end_inset
19565
19566 ,
19567 \begin_inset space \thinspace{}
19568 \end_inset
19569
19570
19571 \begin_inset Flex Code
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 1
19576 \end_layout
19577
19578 \end_inset
19579
19580 ] As with paragraph styles, see 
19581 \begin_inset CommandInset ref
19582 LatexCommand ref
19583 reference "subsec:Paragraph-Styles"
19584
19585 \end_inset
19586
19587 .
19588  Default is false.
19589 \end_layout
19590
19591 \begin_layout Description
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 Preamble
19597 \end_layout
19598
19599 \end_inset
19600
19601  As with paragraph styles, see 
19602 \begin_inset CommandInset ref
19603 LatexCommand ref
19604 reference "subsec:Paragraph-Styles"
19605
19606 \end_inset
19607
19608 .
19609 \end_layout
19610
19611 \begin_layout Description
19612 \begin_inset Flex Code
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 RefPrefix
19617 \end_layout
19618
19619 \end_inset
19620
19621  [
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 string
19627 \end_layout
19628
19629 \end_inset
19630
19631 ] The prefix to use when creating labels referring to insets of this type.
19632  This allows the use of formatted references.
19633 \end_layout
19634
19635 \begin_layout Description
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 Requires
19641 \end_layout
19642
19643 \end_inset
19644
19645  [
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 string
19651 \end_layout
19652
19653 \end_inset
19654
19655 ] As with paragraph styles, see 
19656 \begin_inset CommandInset ref
19657 LatexCommand ref
19658 reference "subsec:Paragraph-Styles"
19659
19660 \end_inset
19661
19662 .
19663 \end_layout
19664
19665 \begin_layout Description
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 ResetArgs
19671 \end_layout
19672
19673 \end_inset
19674
19675  [
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680
19681 \emph on
19682 0
19683 \end_layout
19684
19685 \end_inset
19686
19687 ,
19688 \begin_inset space \thinspace{}
19689 \end_inset
19690
19691
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 1
19697 \end_layout
19698
19699 \end_inset
19700
19701 ] Resets the \SpecialChar LaTeX
19702  arguments of this layout (as defined via the 
19703 \begin_inset Flex Code
19704 status collapsed
19705
19706 \begin_layout Plain Layout
19707 Argument
19708 \end_layout
19709
19710 \end_inset
19711
19712  tag).
19713  This is useful if you have copied a style via 
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 CopyStyle
19719 \end_layout
19720
19721 \end_inset
19722
19723 , but you do not want to inherit its (required and optional) arguments.
19724 \end_layout
19725
19726 \begin_layout Description
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 ResetsFont
19732 \end_layout
19733
19734 \end_inset
19735
19736  [
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 0
19742 \end_layout
19743
19744 \end_inset
19745
19746 ,
19747 \begin_inset space \thinspace{}
19748 \end_inset
19749
19750
19751 \begin_inset Flex Code
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755
19756 \emph on
19757 1
19758 \end_layout
19759
19760 \end_inset
19761
19762 ] Whether this inset should use the font of its surrounding environment
19763  or uses its own.
19764  Default is false: use the font of the surrounding environment.
19765 \end_layout
19766
19767 \begin_layout Description
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 RightDelim
19773 \end_layout
19774
19775 \end_inset
19776
19777  [
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 string
19783 \end_layout
19784
19785 \end_inset
19786
19787 ] A string that is put at the end of the layout content.
19788  A line break in the output can be indicated by 
19789 \begin_inset Flex Code
19790 status collapsed
19791
19792 \begin_layout Plain Layout
19793 <br/>
19794 \end_layout
19795
19796 \end_inset
19797
19798 .
19799 \end_layout
19800
19801 \begin_layout Description
19802 \begin_inset Flex Code
19803 status collapsed
19804
19805 \begin_layout Plain Layout
19806 Spellcheck
19807 \end_layout
19808
19809 \end_inset
19810
19811  [
19812 \begin_inset Flex Code
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 0
19817 \end_layout
19818
19819 \end_inset
19820
19821 ,
19822 \begin_inset space \thinspace{}
19823 \end_inset
19824
19825
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830
19831 \emph on
19832 1
19833 \end_layout
19834
19835 \end_inset
19836
19837 ] Allow spell-checking the contents of this inset.
19838  Default is true.
19839 \end_layout
19840
19841 \begin_layout Subsection
19842 Counters
19843 \begin_inset CommandInset label
19844 LatexCommand label
19845 name "subsec:Counters"
19846
19847 \end_inset
19848
19849
19850 \end_layout
19851
19852 \begin_layout Standard
19853 It is necessary to define the counters (
19854 \begin_inset Flex Noun
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 chapter
19859 \end_layout
19860
19861 \end_inset
19862
19863
19864 \begin_inset Flex Noun
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 figure
19869 \end_layout
19870
19871 \end_inset
19872
19873 , \SpecialChar ldots
19874 ) in the text class itself.
19875  The standard counters are defined in the file 
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 stdcounters.inc
19881 \end_layout
19882
19883 \end_inset
19884
19885 , so you may have to do no more than add
19886 \end_layout
19887
19888 \begin_layout LyX-Code
19889 Input stdcounters.inc
19890 \end_layout
19891
19892 \begin_layout Standard
19893 to your layout file to get them to work.
19894  But if you want to define custom counters, then you can do so.
19895  The counter declaration must begin with:
19896 \end_layout
19897
19898 \begin_layout LyX-Code
19899 Counter CounterName
19900 \end_layout
19901
19902 \begin_layout Standard
19903 where of course `
19904 \begin_inset Flex Code
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908 CounterName
19909 \end_layout
19910
19911 \end_inset
19912
19913 ' is replaced by the name of the counter.
19914  And it must end with 
19915 \begin_inset Quotes eld
19916 \end_inset
19917
19918
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 End
19924 \end_layout
19925
19926 \end_inset
19927
19928
19929 \begin_inset Quotes erd
19930 \end_inset
19931
19932 .
19933  The following parameters can also be used:
19934 \end_layout
19935
19936 \begin_layout Description
19937 \begin_inset Flex Code
19938 status collapsed
19939
19940 \begin_layout Plain Layout
19941 InitialValue
19942 \end_layout
19943
19944 \end_inset
19945
19946  [
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 int=1
19952 \end_layout
19953
19954 \end_inset
19955
19956 ] Sets the initial value for the counter, to which it will be reset whenever
19957  that happens.
19958  Normally, one will want the default, 1.
19959 \end_layout
19960
19961 \begin_layout Description
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 LabelString
19967 \end_layout
19968
19969 \end_inset
19970
19971  [
19972 \begin_inset Flex Code
19973 status collapsed
19974
19975 \begin_layout Plain Layout
19976 string
19977 \end_layout
19978
19979 \end_inset
19980
19981 =
19982 \begin_inset Quotes erd
19983 \end_inset
19984
19985
19986 \begin_inset Quotes erd
19987 \end_inset
19988
19989 ] When defined, this string defines how the counter is displayed.
19990  Setting this value sets 
19991 \begin_inset Flex Code
19992 status collapsed
19993
19994 \begin_layout Plain Layout
19995 LabelStringAppendix
19996 \end_layout
19997
19998 \end_inset
19999
20000  to the same value.
20001  The following special constructs can be used in the string:
20002 \end_layout
20003
20004 \begin_deeper
20005 \begin_layout Itemize
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010
20011 \backslash
20012 thecounter
20013 \end_layout
20014
20015 \end_inset
20016
20017  will be replaced by the expansion of the 
20018 \begin_inset Flex Code
20019 status collapsed
20020
20021 \begin_layout Plain Layout
20022 LabelString
20023 \end_layout
20024
20025 \end_inset
20026
20027  (or 
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032 LabelStringAppendix
20033 \end_layout
20034
20035 \end_inset
20036
20037 ) of the counter 
20038 \begin_inset Flex Code
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 counter
20043 \end_layout
20044
20045 \end_inset
20046
20047 .
20048  
20049 \end_layout
20050
20051 \begin_layout Itemize
20052 counter values can be expressed using \SpecialChar LaTeX
20053 -like macros
20054 \begin_inset Newline newline
20055 \end_inset
20056
20057
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062
20063 \backslash
20064
20065 \emph on
20066 numbertype
20067 \emph default
20068 {
20069 \emph on
20070 counter
20071 \emph default
20072 }
20073 \end_layout
20074
20075 \end_inset
20076
20077 , where 
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082
20083 \emph on
20084 numbertype
20085 \end_layout
20086
20087 \end_inset
20088
20089  can be:
20090 \begin_inset Foot
20091 status collapsed
20092
20093 \begin_layout Plain Layout
20094
20095 \family roman
20096 \series medium
20097 \shape up
20098 \size normal
20099 \emph off
20100 \bar no
20101 \noun off
20102 \color none
20103 Actually, the situation is a bit more complicated: any
20104 \family default
20105 \series default
20106 \shape default
20107 \emph default
20108 \bar default
20109  
20110 \size default
20111 \emph on
20112 \noun default
20113 \color inherit
20114 numbertype
20115 \family roman
20116 \series medium
20117 \shape up
20118 \size normal
20119 \emph off
20120 \bar no
20121 \noun off
20122  other than those described below will produce arabic numerals.
20123  It would not be surprising to see this change in the future.
20124 \end_layout
20125
20126 \end_inset
20127
20128  
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 arabic
20134 \end_layout
20135
20136 \end_inset
20137
20138 : 1, 2, 3,\SpecialChar ldots
20139
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 alph
20145 \end_layout
20146
20147 \end_inset
20148
20149  for lower-case letters: a, b, c, \SpecialChar ldots
20150
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155 Alph
20156 \end_layout
20157
20158 \end_inset
20159
20160  for upper-case letters: A, B, C, \SpecialChar ldots
20161
20162 \begin_inset Flex Code
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166 roman
20167 \end_layout
20168
20169 \end_inset
20170
20171  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20172
20173 \begin_inset Flex Code
20174 status collapsed
20175
20176 \begin_layout Plain Layout
20177 Roman
20178 \end_layout
20179
20180 \end_inset
20181
20182  for upper-case roman numerals: I, II, III\SpecialChar ldots
20183
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 hebrew
20189 \end_layout
20190
20191 \end_inset
20192
20193  for hebrew numerals.
20194 \end_layout
20195
20196 \end_deeper
20197 \begin_layout Standard
20198 If LabelString is not defined, a default value is constructed as follows:
20199  if the counter has a master counter 
20200 \begin_inset Flex Code
20201 status collapsed
20202
20203 \begin_layout Plain Layout
20204 master
20205 \end_layout
20206
20207 \end_inset
20208
20209  (defined via 
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 Within
20215 \end_layout
20216
20217 \end_inset
20218
20219 ), the string
20220 \begin_inset Newline newline
20221 \end_inset
20222
20223
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228
20229 \backslash
20230 themaster.
20231 \backslash
20232 arabic{counter}
20233 \end_layout
20234
20235 \end_inset
20236
20237  is used; otherwise the string 
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242
20243 \backslash
20244 arabic{counter}
20245 \end_layout
20246
20247 \end_inset
20248
20249  is used.
20250 \end_layout
20251
20252 \begin_layout Description
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 LabelStringAppendix
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 =
20273 \begin_inset Quotes erd
20274 \end_inset
20275
20276
20277 \begin_inset Quotes erd
20278 \end_inset
20279
20280 ] Same as 
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 LabelString
20286 \end_layout
20287
20288 \end_inset
20289
20290 , but for use in the Appendix.
20291 \end_layout
20292
20293 \begin_layout Description
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298 PrettyFormat
20299 \end_layout
20300
20301 \end_inset
20302
20303  [
20304 \begin_inset Flex Code
20305 status collapsed
20306
20307 \begin_layout Plain Layout
20308 string
20309 \end_layout
20310
20311 \end_inset
20312
20313 =
20314 \begin_inset Quotes erd
20315 \end_inset
20316
20317
20318 \begin_inset Quotes erd
20319 \end_inset
20320
20321 ] A format for use with formatted references to this counter.
20322  For example, one might want to have references to section numbers appear
20323  as 
20324 \begin_inset Quotes eld
20325 \end_inset
20326
20327 Section 2.4
20328 \begin_inset Quotes erd
20329 \end_inset
20330
20331 .
20332  The string should contain 
20333 \begin_inset Quotes eld
20334 \end_inset
20335
20336 ##
20337 \begin_inset Quotes erd
20338 \end_inset
20339
20340 .
20341  This will be replaced by the counter number itself.
20342  So, for sections, it would be: Section ##.
20343 \end_layout
20344
20345 \begin_layout Description
20346 \begin_inset Flex Code
20347 status collapsed
20348
20349 \begin_layout Plain Layout
20350 Within
20351 \end_layout
20352
20353 \end_inset
20354
20355  [
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 string
20361 \end_layout
20362
20363 \end_inset
20364
20365 =
20366 \begin_inset Quotes erd
20367 \end_inset
20368
20369
20370 \begin_inset Quotes erd
20371 \end_inset
20372
20373 ] If this is set to the name of another counter, the present counter will
20374  be reset every time the other one is increased.
20375  For example, 
20376 \begin_inset Flex Code
20377 status collapsed
20378
20379 \begin_layout Plain Layout
20380 subsection
20381 \end_layout
20382
20383 \end_inset
20384
20385  is numbered inside 
20386 \begin_inset Flex Code
20387 status collapsed
20388
20389 \begin_layout Plain Layout
20390 section
20391 \end_layout
20392
20393 \end_inset
20394
20395 .
20396 \end_layout
20397
20398 \begin_layout Subsection
20399 Font description
20400 \begin_inset CommandInset label
20401 LatexCommand label
20402 name "subsec:Font-description"
20403
20404 \end_inset
20405
20406
20407 \end_layout
20408
20409 \begin_layout Standard
20410 A font description looks like this:
20411 \end_layout
20412
20413 \begin_layout LyX-Code
20414 Font 
20415 \family roman
20416 \emph on
20417 or
20418 \family default
20419 \emph default
20420  LabelFont
20421 \emph on
20422  or
20423 \emph default
20424  DefaultFont
20425 \end_layout
20426
20427 \begin_layout LyX-Code
20428  ...
20429 \end_layout
20430
20431 \begin_layout LyX-Code
20432 EndFont
20433 \end_layout
20434
20435 \begin_layout Standard
20436 The following commands are available:
20437 \end_layout
20438
20439 \begin_layout Description
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 Color
20445 \end_layout
20446
20447 \end_inset
20448
20449  [
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454
20455 \emph on
20456 none
20457 \end_layout
20458
20459 \end_inset
20460
20461
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 black
20467 \end_layout
20468
20469 \end_inset
20470
20471
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 white
20477 \end_layout
20478
20479 \end_inset
20480
20481
20482 \begin_inset Flex Code
20483 status collapsed
20484
20485 \begin_layout Plain Layout
20486 red
20487 \end_layout
20488
20489 \end_inset
20490
20491
20492 \begin_inset Flex Code
20493 status collapsed
20494
20495 \begin_layout Plain Layout
20496 green
20497 \end_layout
20498
20499 \end_inset
20500
20501
20502 \begin_inset Flex Code
20503 status collapsed
20504
20505 \begin_layout Plain Layout
20506 blue
20507 \end_layout
20508
20509 \end_inset
20510
20511
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 cyan
20517 \end_layout
20518
20519 \end_inset
20520
20521
20522 \begin_inset Flex Code
20523 status collapsed
20524
20525 \begin_layout Plain Layout
20526 magenta
20527 \end_layout
20528
20529 \end_inset
20530
20531
20532 \begin_inset Flex Code
20533 status collapsed
20534
20535 \begin_layout Plain Layout
20536 yellow
20537 \end_layout
20538
20539 \end_inset
20540
20541
20542 \begin_inset Flex Code
20543 status collapsed
20544
20545 \begin_layout Plain Layout
20546 brown
20547 \end_layout
20548
20549 \end_inset
20550
20551
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 darkgray
20557 \end_layout
20558
20559 \end_inset
20560
20561
20562 \begin_inset Flex Code
20563 status collapsed
20564
20565 \begin_layout Plain Layout
20566 gray
20567 \end_layout
20568
20569 \end_inset
20570
20571
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 lightgray
20577 \end_layout
20578
20579 \end_inset
20580
20581
20582 \begin_inset Flex Code
20583 status collapsed
20584
20585 \begin_layout Plain Layout
20586 lime
20587 \end_layout
20588
20589 \end_inset
20590
20591
20592 \begin_inset Flex Code
20593 status collapsed
20594
20595 \begin_layout Plain Layout
20596 orange
20597 \end_layout
20598
20599 \end_inset
20600
20601
20602 \begin_inset Flex Code
20603 status collapsed
20604
20605 \begin_layout Plain Layout
20606 olive
20607 \end_layout
20608
20609 \end_inset
20610
20611
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 pink
20617 \end_layout
20618
20619 \end_inset
20620
20621
20622 \begin_inset Flex Code
20623 status collapsed
20624
20625 \begin_layout Plain Layout
20626 purple
20627 \end_layout
20628
20629 \end_inset
20630
20631
20632 \begin_inset Flex Code
20633 status collapsed
20634
20635 \begin_layout Plain Layout
20636 teal
20637 \end_layout
20638
20639 \end_inset
20640
20641
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 violet
20647 \end_layout
20648
20649 \end_inset
20650
20651 ]
20652 \end_layout
20653
20654 \begin_layout Description
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 Family
20660 \end_layout
20661
20662 \end_inset
20663
20664  [
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669
20670 \emph on
20671 Roman
20672 \end_layout
20673
20674 \end_inset
20675
20676
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 Sans
20682 \end_layout
20683
20684 \end_inset
20685
20686
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 Typewriter
20692 \end_layout
20693
20694 \end_inset
20695
20696 ]
20697 \end_layout
20698
20699 \begin_layout Description
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 Misc
20705 \end_layout
20706
20707 \end_inset
20708
20709  [
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 string
20715 \end_layout
20716
20717 \end_inset
20718
20719 ] Valid arguments are: 
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 emph
20725 \end_layout
20726
20727 \end_inset
20728
20729
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 noun
20735 \end_layout
20736
20737 \end_inset
20738
20739
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 strikeout
20745 \end_layout
20746
20747 \end_inset
20748
20749
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 underbar
20755 \end_layout
20756
20757 \end_inset
20758
20759
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 uuline
20765 \end_layout
20766
20767 \end_inset
20768
20769
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 uwave
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 no_emph
20785 \end_layout
20786
20787 \end_inset
20788
20789
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 no_noun
20795 \end_layout
20796
20797 \end_inset
20798
20799
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 no_strikeout
20805 \end_layout
20806
20807 \end_inset
20808
20809
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 no_bar
20815 \end_layout
20816
20817 \end_inset
20818
20819
20820 \begin_inset Flex Code
20821 status collapsed
20822
20823 \begin_layout Plain Layout
20824 no_uuline
20825 \end_layout
20826
20827 \end_inset
20828
20829  and 
20830 \begin_inset Flex Code
20831 status collapsed
20832
20833 \begin_layout Plain Layout
20834 no_uwave
20835 \end_layout
20836
20837 \end_inset
20838
20839 .
20840  Each of these turns on or off the corresponding attribute.
20841  For example, 
20842 \begin_inset Flex Code
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846 emph
20847 \end_layout
20848
20849 \end_inset
20850
20851  turns on emphasis, and 
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 no_emph
20857 \end_layout
20858
20859 \end_inset
20860
20861  turns it off.
20862  
20863 \begin_inset Newline newline
20864 \end_inset
20865
20866 If the latter seems puzzling, remember that the font settings for the present
20867  context are generally inherited from the surrounding context.
20868  So 
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 no_emph
20874 \end_layout
20875
20876 \end_inset
20877
20878  would turn off the emphasis that was anyway in effect, say, in a theorem
20879  environment.
20880 \end_layout
20881
20882 \begin_layout Description
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 Series
20888 \end_layout
20889
20890 \end_inset
20891
20892  [
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897
20898 \emph on
20899 Medium
20900 \end_layout
20901
20902 \end_inset
20903
20904
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909 Bold
20910 \end_layout
20911
20912 \end_inset
20913
20914
20915 \end_layout
20916
20917 \begin_layout Description
20918 \begin_inset Flex Code
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922 Shape
20923 \end_layout
20924
20925 \end_inset
20926
20927  [
20928 \begin_inset Flex Code
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932
20933 \emph on
20934 Up
20935 \end_layout
20936
20937 \end_inset
20938
20939
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 Italic
20945 \end_layout
20946
20947 \end_inset
20948
20949
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 SmallCaps
20955 \end_layout
20956
20957 \end_inset
20958
20959
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 Slanted
20965 \end_layout
20966
20967 \end_inset
20968
20969
20970 \end_layout
20971
20972 \begin_layout Description
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 Size
20978 \end_layout
20979
20980 \end_inset
20981
20982  [
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 tiny
20988 \end_layout
20989
20990 \end_inset
20991
20992
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 small
20998 \end_layout
20999
21000 \end_inset
21001
21002
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007
21008 \emph on
21009 normal
21010 \end_layout
21011
21012 \end_inset
21013
21014
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 large
21020 \end_layout
21021
21022 \end_inset
21023
21024
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 larger
21030 \end_layout
21031
21032 \end_inset
21033
21034
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 largest
21040 \end_layout
21041
21042 \end_inset
21043
21044
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049 huge
21050 \end_layout
21051
21052 \end_inset
21053
21054
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 giant
21060 \end_layout
21061
21062 \end_inset
21063
21064 ]
21065 \end_layout
21066
21067 \begin_layout Subsection
21068
21069 \change_inserted -712698321 1483869872
21070 \begin_inset CommandInset label
21071 LatexCommand label
21072 name "subsec:Citation-engine-description"
21073
21074 \end_inset
21075
21076 Citation engine description
21077 \end_layout
21078
21079 \begin_layout Standard
21080
21081 \change_inserted -712698321 1483875281
21082 The 
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087
21088 \change_inserted -712698321 1483869913
21089 CiteEngine
21090 \change_unchanged
21091
21092 \end_layout
21093
21094 \end_inset
21095
21096  blocks, as used mainly in cite engine files (see 
21097 \begin_inset CommandInset ref
21098 LatexCommand ref
21099 reference "subsec:Cite-Engine-Files"
21100 plural "false"
21101 caps "false"
21102 noprefix "false"
21103
21104 \end_inset
21105
21106 ), define the citation commands provided by a specific 
21107 \begin_inset Quotes eld
21108 \end_inset
21109
21110 cite engine
21111 \begin_inset Quotes erd
21112 \end_inset
21113
21114 .
21115  A cite engine, in \SpecialChar LyX
21116  terms, is way specific way to format citations, using
21117  numbers, author names and/or years.
21118  Currently, \SpecialChar LyX
21119  supports three such engine types, namely:
21120 \end_layout
21121
21122 \begin_layout Enumerate
21123
21124 \change_inserted -712698321 1483875764
21125 \begin_inset Flex Code
21126 status collapsed
21127
21128 \begin_layout Plain Layout
21129
21130 \change_inserted -712698321 1483870430
21131 default
21132 \change_unchanged
21133
21134 \end_layout
21135
21136 \end_inset
21137
21138 : the default Bib\SpecialChar TeX
21139  way to format citations, a simple numeric style (e.
21140 \begin_inset space \thinspace{}
21141 \end_inset
21142
21143 g., 
21144 \begin_inset Quotes eld
21145 \end_inset
21146
21147 [1]
21148 \begin_inset Quotes erd
21149 \end_inset
21150
21151 )
21152 \end_layout
21153
21154 \begin_layout Enumerate
21155
21156 \change_inserted -712698321 1483875766
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161
21162 \change_inserted -712698321 1483870434
21163 authoryear
21164 \change_unchanged
21165
21166 \end_layout
21167
21168 \end_inset
21169
21170 : Harvard-styled citations using author names and publication year (e.
21171 \begin_inset space \thinspace{}
21172 \end_inset
21173
21174 g., 
21175 \begin_inset Quotes eld
21176 \end_inset
21177
21178 Smith and Miller (2017b)
21179 \begin_inset Quotes erd
21180 \end_inset
21181
21182 )
21183 \end_layout
21184
21185 \begin_layout Enumerate
21186
21187 \change_inserted -712698321 1483875769
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192
21193 \change_inserted -712698321 1483870457
21194 numerical
21195 \change_unchanged
21196
21197 \end_layout
21198
21199 \end_inset
21200
21201 : extended numerical citations that also allow for author or title next
21202  to the number (e.
21203 \begin_inset space \thinspace{}
21204 \end_inset
21205
21206 g., 
21207 \begin_inset Quotes eld
21208 \end_inset
21209
21210 Smith and Miller [1]
21211 \begin_inset Quotes erd
21212 \end_inset
21213
21214 )
21215 \end_layout
21216
21217 \begin_layout Standard
21218
21219 \change_inserted -712698321 1483870566
21220 \begin_inset Flex Code
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224
21225 \change_inserted -712698321 1483870552
21226 CiteEngine
21227 \end_layout
21228
21229 \end_inset
21230
21231  blocks look like this:
21232 \end_layout
21233
21234 \begin_layout LyX-Code
21235
21236 \change_inserted -712698321 1483870590
21237 CiteEngine default
21238 \end_layout
21239
21240 \begin_layout LyX-Code
21241
21242 \change_inserted -712698321 1483870615
21243  cite
21244 \end_layout
21245
21246 \begin_layout LyX-Code
21247
21248 \change_inserted -712698321 1483870633
21249  Citep*[][]
21250 \end_layout
21251
21252 \begin_layout LyX-Code
21253
21254 \change_inserted -712698321 1483870652
21255  citeyearpar[][]=parencite*
21256 \end_layout
21257
21258 \begin_layout LyX-Code
21259
21260 \change_inserted -712698321 1483870652
21261  ...
21262 \end_layout
21263
21264 \begin_layout LyX-Code
21265
21266 \change_inserted -712698321 1483870668
21267 End
21268 \end_layout
21269
21270 \begin_layout Standard
21271
21272 \change_inserted -712698321 1483871113
21273 The tag following 
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278
21279 \change_inserted -712698321 1483871085
21280 CiteEngine
21281 \end_layout
21282
21283 \end_inset
21284
21285  denotes the engine.
21286  The individual lines respectively define a cite command or cite command
21287  paradigm supported by this engine.
21288  The line can be as simple as a cite command that is used both to name the
21289  respective \SpecialChar LyX
21290  command and the \SpecialChar LaTeX
21291  output or more complex in order to differentiate
21292  things.
21293  
21294 \change_deleted -712698321 1483871114
21295
21296 \end_layout
21297
21298 \begin_layout Standard
21299
21300 \change_inserted -712698321 1483871119
21301 The full syntax is:
21302 \end_layout
21303
21304 \begin_layout LyX-Code
21305
21306 \change_inserted -712698321 1483870927
21307 LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
21308 \end_layout
21309
21310 \begin_layout Itemize
21311
21312 \change_inserted -712698321 1483871222
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317
21318 \change_inserted -712698321 1483871181
21319 LyXName
21320 \change_unchanged
21321
21322 \end_layout
21323
21324 \end_inset
21325
21326 : The name as used in the 
21327 \begin_inset Flex Code
21328 status collapsed
21329
21330 \begin_layout Plain Layout
21331
21332 \change_inserted -712698321 1483871216
21333 *.lyx
21334 \change_unchanged
21335
21336 \end_layout
21337
21338 \end_inset
21339
21340  file.
21341 \end_layout
21342
21343 \begin_deeper
21344 \begin_layout Standard
21345
21346 \change_inserted -712698321 1483871487
21347 For portability reasons, we try to use the same name for same-formatted
21348  commands in different cite packages (thus many names stem from natbib,
21349  and thus we need to differentiate a 
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354
21355 \change_inserted -712698321 1483871402
21356 latexcmd
21357 \end_layout
21358
21359 \end_inset
21360
21361  sometimes, if the \SpecialChar LaTeX
21362  command names differ).
21363 \end_layout
21364
21365 \end_deeper
21366 \begin_layout Itemize
21367
21368 \change_inserted -712698321 1483871583
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373
21374 \change_inserted -712698321 1483871186
21375 alias
21376 \change_unchanged
21377
21378 \end_layout
21379
21380 \end_inset
21381
21382 : a (comma-separated) list of commands that fall back to the given 
21383 \begin_inset Flex Code
21384 status collapsed
21385
21386 \begin_layout Plain Layout
21387
21388 \change_inserted -712698321 1483871257
21389 LyXName
21390 \end_layout
21391
21392 \end_inset
21393
21394  in the current engine.
21395  This eases the switch of citation packages and engines.
21396  The 
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401
21402 \change_inserted -712698321 1483871559
21403 alias
21404 \end_layout
21405
21406 \end_inset
21407
21408  can be compared to 
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413
21414 \change_inserted -712698321 1483871278
21415 ObsoletedBy
21416 \change_unchanged
21417
21418 \end_layout
21419
21420 \end_inset
21421
21422  in layout definitions.
21423 \end_layout
21424
21425 \begin_layout Itemize
21426
21427 \change_inserted -712698321 1483871307
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432
21433 \change_inserted -712698321 1483871296
21434 latexcmd
21435 \change_unchanged
21436
21437 \end_layout
21438
21439 \end_inset
21440
21441 : The actual \SpecialChar LaTeX
21442  command that is output.
21443  
21444 \end_layout
21445
21446 \begin_layout Standard
21447
21448 \change_inserted -712698321 1483871348
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453
21454 \change_inserted -712698321 1483871316
21455 Alias
21456 \change_unchanged
21457
21458 \end_layout
21459
21460 \end_inset
21461
21462  and 
21463 \begin_inset Flex Code
21464 status collapsed
21465
21466 \begin_layout Plain Layout
21467
21468 \change_inserted -712698321 1483871321
21469 latexcmd
21470 \change_unchanged
21471
21472 \end_layout
21473
21474 \end_inset
21475
21476  are optional.
21477  If no 
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482
21483 \change_inserted -712698321 1483871333
21484 latexcmd
21485 \end_layout
21486
21487 \end_inset
21488
21489  is given, the 
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494
21495 \change_inserted -712698321 1483871340
21496 LyXName
21497 \end_layout
21498
21499 \end_inset
21500
21501  will be output to \SpecialChar LaTeX
21502 .
21503 \end_layout
21504
21505 \begin_layout Standard
21506
21507 \change_inserted -712698321 1483871604
21508 Note further:
21509 \end_layout
21510
21511 \begin_layout Itemize
21512
21513 \change_inserted -712698321 1483871664
21514 Capitalization indicates that the command also has a capitalized form (
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519
21520 \change_inserted -712698321 1483871622
21521
21522 \backslash
21523 Latexcmd
21524 \change_unchanged
21525
21526 \end_layout
21527
21528 \end_inset
21529
21530  vs.
21531  
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536
21537 \change_inserted -712698321 1483871626
21538
21539 \backslash
21540 latexcmd
21541 \change_unchanged
21542
21543 \end_layout
21544
21545 \end_inset
21546
21547 ).
21548  These usually enforce up-casing of name prefixes (
21549 \emph on
21550 von Goethe
21551 \emph default
21552  
21553 \begin_inset Formula $\Rightarrow$
21554 \end_inset
21555
21556  
21557 \emph on
21558 Von Goethe
21559 \emph default
21560 ).
21561 \end_layout
21562
21563 \begin_layout Itemize
21564
21565 \change_inserted -712698321 1483871690
21566 Brackets 
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571
21572 \change_inserted -712698321 1483871670
21573 []
21574 \change_unchanged
21575
21576 \end_layout
21577
21578 \end_inset
21579
21580  indicate the number of optional arguments (there can be 0–2).
21581 \end_layout
21582
21583 \begin_layout Itemize
21584
21585 \change_inserted -712698321 1483871747
21586 A star 
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591
21592 \change_inserted -712698321 1483871698
21593 *
21594 \change_unchanged
21595
21596 \end_layout
21597
21598 \end_inset
21599
21600  indicates there is a starred version of the command (
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605
21606 \change_inserted -712698321 1483871718
21607
21608 \backslash
21609 latexcmd*
21610 \change_unchanged
21611
21612 \end_layout
21613
21614 \end_inset
21615
21616  vs.
21617  
21618 \begin_inset Flex Code
21619 status collapsed
21620
21621 \begin_layout Plain Layout
21622
21623 \change_inserted -712698321 1483871724
21624
21625 \backslash
21626 latexcmd
21627 \change_unchanged
21628
21629 \end_layout
21630
21631 \end_inset
21632
21633 ).
21634  
21635 \end_layout
21636
21637 \begin_deeper
21638 \begin_layout Standard
21639
21640 \change_inserted -712698321 1483871864
21641 By default, the starred version means: Output all authors even if it should
21642  be shortened with 
21643 \begin_inset Quotes eld
21644 \end_inset
21645
21646 et al.
21647 \begin_inset Quotes erd
21648 \end_inset
21649
21650  due to the 
21651 \begin_inset Flex Code
21652 status collapsed
21653
21654 \begin_layout Plain Layout
21655
21656 \change_inserted -712698321 1483871835
21657 MaxCiteNames
21658 \change_unchanged
21659
21660 \end_layout
21661
21662 \end_inset
21663
21664  threshold.
21665 \end_layout
21666
21667 \begin_layout Standard
21668
21669 \change_inserted -712698321 1483872045
21670 If the star has a different meaning for a given command, it can be specified
21671  in angle brackets: 
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676
21677 \change_inserted -712698321 1483871856
21678 <!_stardesc!_stardesctooltip>
21679 \change_unchanged
21680
21681 \end_layout
21682
21683 \end_inset
21684
21685 .
21686  Maximal two translatable macro keywords, marked by the prefix 
21687 \begin_inset Flex Code
21688 status collapsed
21689
21690 \begin_layout Plain Layout
21691
21692 \change_inserted -712698321 1483872014
21693 !_
21694 \change_unchanged
21695
21696 \end_layout
21697
21698 \end_inset
21699
21700 , can be given.
21701  The first points to the string that replaces the 
21702 \begin_inset Quotes eld
21703 \end_inset
21704
21705 Full aut&hor list
21706 \begin_inset Quotes erd
21707 \end_inset
21708
21709  checkbox label in the citation dialog, the second one to an optional tool
21710  tip for this checkbox.
21711  
21712 \end_layout
21713
21714 \begin_layout Standard
21715
21716 \change_inserted -712698321 1483872164
21717 Note that these two macros have to be defined in a 
21718 \begin_inset Flex Code
21719 status collapsed
21720
21721 \begin_layout Plain Layout
21722
21723 \change_inserted -712698321 1483871983
21724 CiteFormat
21725 \change_unchanged
21726
21727 \end_layout
21728
21729 \end_inset
21730
21731  (see next section), dropping the 
21732 \begin_inset Flex Code
21733 status collapsed
21734
21735 \begin_layout Plain Layout
21736
21737 \change_inserted -712698321 1483872023
21738 !
21739 \change_unchanged
21740
21741 \end_layout
21742
21743 \end_inset
21744
21745  from the prefix, like this: 
21746 \end_layout
21747
21748 \begin_layout LyX-Code
21749
21750 \change_inserted -712698321 1483872092
21751 _stardesc Sta&rred command label
21752 \end_layout
21753
21754 \begin_layout LyX-Code
21755
21756 \change_inserted -712698321 1483872184
21757 _stardesctooltip Tooltip for the starred command checkbox.
21758 \end_layout
21759
21760 \end_deeper
21761 \begin_layout Subsection
21762 \begin_inset CommandInset label
21763 LatexCommand label
21764 name "subsec:Citation-format-description"
21765
21766 \end_inset
21767
21768 Citation format description
21769 \end_layout
21770
21771 \begin_layout Standard
21772 The 
21773 \begin_inset Flex Code
21774 status collapsed
21775
21776 \begin_layout Plain Layout
21777 CiteFormat
21778 \end_layout
21779
21780 \end_inset
21781
21782  blocks are used to describe how bibliographic information should be displayed,
21783  both within \SpecialChar LyX
21784  itself (in the citation dialog and in tooltips, for example)
21785  and in XHTML output.
21786  Such a block might look like this:
21787 \end_layout
21788
21789 \begin_layout LyX-Code
21790 CiteFormat
21791 \end_layout
21792
21793 \begin_layout LyX-Code
21794  article ...
21795 \end_layout
21796
21797 \begin_layout LyX-Code
21798  book ...
21799 \end_layout
21800
21801 \begin_layout LyX-Code
21802 End
21803 \change_inserted -712698321 1483867197
21804
21805 \end_layout
21806
21807 \begin_layout Standard
21808
21809 \change_inserted -712698321 1483867200
21810 or
21811 \end_layout
21812
21813 \begin_layout LyX-Code
21814
21815 \change_inserted -712698321 1483867195
21816 CiteFormat
21817 \end_layout
21818
21819 \begin_layout LyX-Code
21820
21821 \change_inserted -712698321 1483867204
21822  cite ...
21823 \end_layout
21824
21825 \begin_layout LyX-Code
21826
21827 \change_inserted -712698321 1483867359
21828  citet*[][] ...
21829 \end_layout
21830
21831 \begin_layout LyX-Code
21832
21833 \change_inserted -712698321 1483867195
21834 End
21835 \change_unchanged
21836
21837 \end_layout
21838
21839 \begin_layout Standard
21840
21841 \change_inserted -712698321 1483867269
21842 In the first case, 
21843 \change_deleted -712698321 1483867270
21844 T
21845 \change_inserted -712698321 1483867270
21846 t
21847 \change_unchanged
21848 he individual lines define how the bibliographic information associated
21849  with an article or book, respectively, is to be displayed, and such a definitio
21850 n can be given for any 
21851 \change_deleted -712698321 1483867550
21852 `
21853 \change_inserted -712698321 1483867550
21854
21855 \begin_inset Quotes els
21856 \end_inset
21857
21858
21859 \change_unchanged
21860 entry type
21861 \change_deleted -712698321 1483867552
21862 '
21863 \change_inserted -712698321 1483867552
21864
21865 \begin_inset Quotes ers
21866 \end_inset
21867
21868
21869 \change_unchanged
21870  that might be present in a Bib\SpecialChar TeX
21871  file.
21872  \SpecialChar LyX
21873  defines a default format in the source code that will be used if no specific
21874  definition has been given.
21875  \SpecialChar LyX
21876  predefines several formats in the file 
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 stdciteformats.inc
21882 \end_layout
21883
21884 \end_inset
21885
21886 , which is included in most of \SpecialChar LyX
21887 's document classes.
21888 \change_inserted -712698321 1483867288
21889
21890 \end_layout
21891
21892 \begin_layout Standard
21893
21894 \change_inserted -712698321 1483875512
21895 In the second case, the lines define how a specific citation command (in
21896  the example 
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901
21902 \change_inserted -712698321 1483867674
21903
21904 \backslash
21905 cite
21906 \change_unchanged
21907
21908 \end_layout
21909
21910 \end_inset
21911
21912
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917
21918 \change_inserted -712698321 1483867679
21919
21920 \backslash
21921 citet
21922 \change_unchanged
21923
21924 \end_layout
21925
21926 \end_inset
21927
21928 ) is to be displayed on the citation inset label, in the citation dialog,
21929  menu or XHTML output.
21930  \SpecialChar LyX
21931  defines such formats for the citation style variants it supports via 
21932 \family sans
21933 Document\SpecialChar menuseparator
21934 Setting\SpecialChar menuseparator
21935 Bibliography\SpecialChar ldots
21936
21937 \family default
21938  in specific 
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943
21944 \change_inserted -712698321 1483875503
21945 *.citeengine
21946 \end_layout
21947
21948 \end_inset
21949
21950  files that are shipped with \SpecialChar LyX
21951  (see 
21952 \begin_inset CommandInset ref
21953 LatexCommand ref
21954 reference "subsec:Cite-Engine-Files"
21955 plural "false"
21956 caps "false"
21957 noprefix "false"
21958
21959 \end_inset
21960
21961 ).
21962 \change_unchanged
21963
21964 \end_layout
21965
21966 \begin_layout Standard
21967 The definitions use a simple language that allows Bib\SpecialChar TeX
21968  keys to be replaced
21969  with their values.
21970  Keys should be enclosed in 
21971 \begin_inset Flex Code
21972 status collapsed
21973
21974 \begin_layout Plain Layout
21975 %
21976 \end_layout
21977
21978 \end_inset
21979
21980  signs, e.g.: 
21981 \begin_inset Flex Code
21982 status collapsed
21983
21984 \begin_layout Plain Layout
21985 %author%
21986 \end_layout
21987
21988 \end_inset
21989
21990 .
21991  So a simple definition might look like this:
21992 \end_layout
21993
21994 \begin_layout LyX-Code
21995 misc %author%, 
21996 \begin_inset Quotes eld
21997 \end_inset
21998
21999 %title%
22000 \begin_inset Quotes erd
22001 \end_inset
22002
22003 .
22004 \end_layout
22005
22006 \begin_layout Standard
22007 This would print the author, followed by a comma, followed by the title,
22008  in quotes, followed by a period.
22009 \end_layout
22010
22011 \begin_layout Standard
22012 Of course, sometimes you may want to print a key only if it exists.
22013  This can be done by using a conditional construction, such as: 
22014 \begin_inset Flex Code
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 {%volume%[[vol.
22019 \begin_inset space ~
22020 \end_inset
22021
22022 %volume%]]}
22023 \end_layout
22024
22025 \end_inset
22026
22027 .
22028  This says: If the 
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033 volume
22034 \end_layout
22035
22036 \end_inset
22037
22038  key exists, then print 
22039 \begin_inset Quotes eld
22040 \end_inset
22041
22042 vol.
22043 \begin_inset space ~
22044 \end_inset
22045
22046
22047 \begin_inset Quotes erd
22048 \end_inset
22049
22050  followed by the volume key.
22051  It is also possible to have an else clause in the conditional, such as:
22052 \begin_inset Newline newline
22053 \end_inset
22054
22055
22056 \begin_inset Flex Code
22057 status collapsed
22058
22059 \begin_layout Plain Layout
22060 {%author%[[%author%]][[%editor%, ed.]]}
22061 \end_layout
22062
22063 \end_inset
22064
22065 .
22066 \begin_inset Newline newline
22067 \end_inset
22068
22069 Here, the 
22070 \begin_inset Flex Code
22071 status collapsed
22072
22073 \begin_layout Plain Layout
22074 author
22075 \end_layout
22076
22077 \end_inset
22078
22079  key is printed if it exists; otherwise, the editor key is printed, followed
22080  by 
22081 \begin_inset Quotes eld
22082 \end_inset
22083
22084 ,
22085 \begin_inset space ~
22086 \end_inset
22087
22088 ed.
22089 \begin_inset Quotes erd
22090 \end_inset
22091
22092  Note that the key is again enclosed in 
22093 \begin_inset Flex Code
22094 status collapsed
22095
22096 \begin_layout Plain Layout
22097 %
22098 \end_layout
22099
22100 \end_inset
22101
22102  signs; the entire conditional is enclosed in braces; and the if and else
22103  clauses are enclosed in double brackets, 
22104 \begin_inset Quotes eld
22105 \end_inset
22106
22107
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 [[
22113 \end_layout
22114
22115 \end_inset
22116
22117
22118 \begin_inset Quotes eld
22119 \end_inset
22120
22121  and 
22122 \begin_inset Quotes eld
22123 \end_inset
22124
22125
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130 ]]
22131 \end_layout
22132
22133 \end_inset
22134
22135
22136 \begin_inset Quotes erd
22137 \end_inset
22138
22139 .
22140  There must be no space between any of these.
22141 \change_inserted -712698321 1483867855
22142
22143 \end_layout
22144
22145 \begin_layout Standard
22146
22147 \change_inserted -712698321 1483867910
22148 Next to the entry keys, there are some special keys that can be used for
22149  these conditionals:
22150 \end_layout
22151
22152 \begin_layout Itemize
22153
22154 \change_inserted -712698321 1483868049
22155 \begin_inset Flex Code
22156 status collapsed
22157
22158 \begin_layout Plain Layout
22159
22160 \change_inserted -712698321 1483867962
22161 {%dialog%[[true]][[false]]}
22162 \change_unchanged
22163
22164 \end_layout
22165
22166 \end_inset
22167
22168 : process the 
22169 \begin_inset Quotes eld
22170 \end_inset
22171
22172 true
22173 \begin_inset Quotes erd
22174 \end_inset
22175
22176  part for dialogs and menus, the 
22177 \begin_inset Quotes eld
22178 \end_inset
22179
22180 false
22181 \begin_inset Quotes erd
22182 \end_inset
22183
22184  part for other contexts (workarea, export)
22185 \end_layout
22186
22187 \begin_layout Itemize
22188
22189 \change_inserted -712698321 1483868068
22190 \begin_inset Flex Code
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194
22195 \change_inserted -712698321 1483868052
22196 {%export%[[true]][[false]]}
22197 \end_layout
22198
22199 \end_inset
22200
22201 : process the 
22202 \begin_inset Quotes eld
22203 \end_inset
22204
22205 true
22206 \begin_inset Quotes erd
22207 \end_inset
22208
22209  part for export and menus, the 
22210 \begin_inset Quotes eld
22211 \end_inset
22212
22213 false
22214 \begin_inset Quotes erd
22215 \end_inset
22216
22217  part for other contexts (workarea, dialog)
22218 \end_layout
22219
22220 \begin_layout Itemize
22221
22222 \change_inserted -712698321 1483868138
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227
22228 \change_inserted -712698321 1483868076
22229 {%next%[[true]]}
22230 \end_layout
22231
22232 \end_inset
22233
22234 : process the 
22235 \begin_inset Quotes eld
22236 \end_inset
22237
22238 true
22239 \begin_inset Quotes erd
22240 \end_inset
22241
22242  part if another item follows (e.
22243 \begin_inset space \thinspace{}
22244 \end_inset
22245
22246 g., in a citation with multiple keys)
22247 \end_layout
22248
22249 \begin_layout Itemize
22250
22251 \change_inserted -712698321 1483868174
22252 \begin_inset Flex Code
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256
22257 \change_inserted -712698321 1483868144
22258 {%second%[[true]][[false]]}
22259 \end_layout
22260
22261 \end_inset
22262
22263 : process the 
22264 \begin_inset Quotes eld
22265 \end_inset
22266
22267 true
22268 \begin_inset Quotes erd
22269 \end_inset
22270
22271  if this is the second of multiple items, else the 
22272 \begin_inset Quotes eld
22273 \end_inset
22274
22275 false
22276 \begin_inset Quotes erd
22277 \end_inset
22278
22279  part
22280 \end_layout
22281
22282 \begin_layout Itemize
22283
22284 \change_inserted -712698321 1483868321
22285 \begin_inset Flex Code
22286 status collapsed
22287
22288 \begin_layout Plain Layout
22289
22290 \change_inserted -712698321 1483868259
22291 {%ifstar%[[true]][[false]]}
22292 \end_layout
22293
22294 \end_inset
22295
22296 : process the 
22297 \begin_inset Quotes eld
22298 \end_inset
22299
22300 true
22301 \begin_inset Quotes erd
22302 \end_inset
22303
22304  part for starred citation commands (such as 
22305 \begin_inset Flex Code
22306 status collapsed
22307
22308 \begin_layout Plain Layout
22309
22310 \change_inserted -712698321 1483868310
22311
22312 \backslash
22313 cite*
22314 \change_unchanged
22315
22316 \end_layout
22317
22318 \end_inset
22319
22320 ), the false part for unstarred
22321 \end_layout
22322
22323 \begin_layout Itemize
22324
22325 \change_inserted -712698321 1483978485
22326 \begin_inset Flex Code
22327 status collapsed
22328
22329 \begin_layout Plain Layout
22330
22331 \change_inserted -712698321 1483868330
22332 {%ifentrytype:<type>%[[true]][[false]]}
22333 \end_layout
22334
22335 \end_inset
22336
22337 : process the 
22338 \begin_inset Quotes eld
22339 \end_inset
22340
22341 true
22342 \begin_inset Quotes erd
22343 \end_inset
22344
22345  if the current entry type matches 
22346 \begin_inset Flex Code
22347 status collapsed
22348
22349 \begin_layout Plain Layout
22350
22351 \change_inserted -712698321 1483868364
22352 <type>
22353 \change_unchanged
22354
22355 \end_layout
22356
22357 \end_inset
22358
22359 , else the false part (e.g., in a citation definition: 
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364
22365 \change_inserted -712698321 1483868420
22366 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22367 \change_unchanged
22368
22369 \end_layout
22370
22371 \end_inset
22372
22373 )
22374 \end_layout
22375
22376 \begin_layout Itemize
22377
22378 \change_inserted -712698321 1483978548
22379 \begin_inset Flex Code
22380 status collapsed
22381
22382 \begin_layout Plain Layout
22383
22384 \change_inserted -712698321 1483978499
22385 {%ifmultiple:<authortype>%[[true]][[false]]}
22386 \end_layout
22387
22388 \end_inset
22389
22390 : process the 
22391 \begin_inset Quotes eld
22392 \end_inset
22393
22394 true
22395 \begin_inset Quotes erd
22396 \end_inset
22397
22398  if the current author type (author, editor etc.) has multiple authors, else
22399  the false part (e.g., in a bibliography definition: 
22400 \begin_inset Flex Code
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404
22405 \change_inserted -712698321 1483978571
22406 {%ifmultiple:editor%[[eds.]][[ed.]]}
22407 \end_layout
22408
22409 \end_inset
22410
22411 )
22412 \change_unchanged
22413
22414 \end_layout
22415
22416 \begin_layout Standard
22417
22418 \change_inserted -712698321 1483978958
22419 We said that 
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424
22425 \change_inserted -712698321 1483978693
22426 %author%
22427 \end_layout
22428
22429 \end_inset
22430
22431  prints the author key as it is recorded in the bibliography file.
22432  This might not be what you want, since it will result in a string such
22433  as 
22434 \begin_inset Quotes eld
22435 \end_inset
22436
22437 Miller, Peter and Smith, Mary and White, Jane
22438 \begin_inset Quotes erd
22439 \end_inset
22440
22441  (since 
22442 \begin_inset Quotes eld
22443 \end_inset
22444
22445 and
22446 \begin_inset Quotes erd
22447 \end_inset
22448
22449  is used by Bib\SpecialChar TeX
22450  to delimit authors).
22451  \SpecialChar LyX
22452  therefore provides some methods to get properly formatted name lists (which
22453  will also get translated).
22454  The following keys are provided:
22455 \end_layout
22456
22457 \begin_layout Enumerate
22458
22459 \change_inserted -712698321 1483979807
22460 For name lists with pre- and surname, suitable for the main authors/editors
22461  of a bibliography item.
22462  The 
22463 \begin_inset Flex Code
22464 status collapsed
22465
22466 \begin_layout Plain Layout
22467
22468 \change_inserted -712698321 1483979800
22469 <nametype>
22470 \change_unchanged
22471
22472 \end_layout
22473
22474 \end_inset
22475
22476  part denotes the kind of list that is requested (e.g.
22477  
22478 \begin_inset Flex Code
22479 status collapsed
22480
22481 \begin_layout Plain Layout
22482
22483 \change_inserted -712698321 1483979807
22484 <nametype:author>
22485 \change_unchanged
22486
22487 \end_layout
22488
22489 \end_inset
22490
22491 ):
22492 \end_layout
22493
22494 \begin_deeper
22495 \begin_layout Itemize
22496
22497 \change_inserted -712698321 1483979186
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502
22503 \change_inserted -712698321 1483979743
22504 %abbrvnames:<nametype>%
22505 \change_unchanged
22506
22507 \end_layout
22508
22509 \end_inset
22510
22511 : Provides a name list which is abbreviated (with 
22512 \begin_inset Quotes eld
22513 \end_inset
22514
22515 et al.
22516 \begin_inset Quotes erd
22517 \end_inset
22518
22519 ) when 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524
22525 \change_inserted -712698321 1483979186
22526 MaxCiteNames
22527 \change_unchanged
22528
22529 \end_layout
22530
22531 \end_inset
22532
22533  is reached.
22534 \end_layout
22535
22536 \begin_layout Itemize
22537
22538 \change_inserted -712698321 1483979527
22539 \begin_inset Flex Code
22540 status collapsed
22541
22542 \begin_layout Plain Layout
22543
22544 \change_inserted -712698321 1483979748
22545 %fullnames:<nametype>%
22546 \change_unchanged
22547
22548 \end_layout
22549
22550 \end_inset
22551
22552 : Provides a full name list (never abbreviated with 
22553 \begin_inset Quotes eld
22554 \end_inset
22555
22556 et al.
22557 \begin_inset Quotes erd
22558 \end_inset
22559
22560 ).
22561 \end_layout
22562
22563 \begin_layout Itemize
22564
22565 \change_inserted -712698321 1483979553
22566 \begin_inset Flex Code
22567 status collapsed
22568
22569 \begin_layout Plain Layout
22570
22571 \change_inserted -712698321 1483980138
22572 %forceabbrvnames:<nametype>%
22573 \change_unchanged
22574
22575 \end_layout
22576
22577 \end_inset
22578
22579 : Provides a name list which is always abbreviated (with 
22580 \begin_inset Quotes eld
22581 \end_inset
22582
22583 et al.
22584 \begin_inset Quotes erd
22585 \end_inset
22586
22587 ) irrespective of 
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592
22593 \change_inserted -712698321 1483979535
22594 MaxCiteNames
22595 \end_layout
22596
22597 \end_inset
22598
22599 .
22600 \change_unchanged
22601
22602 \end_layout
22603
22604 \end_deeper
22605 \begin_layout Enumerate
22606
22607 \change_inserted -712698321 1483979413
22608 Alternative name lists with pre- and surname, if the order of pre- and surname
22609  inside the bibliography item differs (as in: 
22610 \begin_inset Quotes eld
22611 \end_inset
22612
22613 Miller, John: Some text, in: Mary Smith, ed.: A volume
22614 \begin_inset Quotes erd
22615 \end_inset
22616
22617 ):
22618 \change_unchanged
22619
22620 \end_layout
22621
22622 \begin_deeper
22623 \begin_layout Itemize
22624
22625 \change_inserted -712698321 1483979565
22626 \begin_inset Flex Code
22627 status collapsed
22628
22629 \begin_layout Plain Layout
22630
22631 \change_inserted -712698321 1483979751
22632 %abbrvbynames:<nametype>%
22633 \change_unchanged
22634
22635 \end_layout
22636
22637 \end_inset
22638
22639 : Provides a name list which is abbreviated (with 
22640 \begin_inset Quotes eld
22641 \end_inset
22642
22643 et al.
22644 \begin_inset Quotes erd
22645 \end_inset
22646
22647 ) when 
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652
22653 \change_inserted -712698321 1483979565
22654 MaxCiteNames
22655 \end_layout
22656
22657 \end_inset
22658
22659  is reached.
22660 \change_unchanged
22661
22662 \end_layout
22663
22664 \begin_layout Itemize
22665
22666 \change_inserted -712698321 1483979570
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671
22672 \change_inserted -712698321 1483979753
22673 %fullbynames:<nametype>%
22674 \change_unchanged
22675
22676 \end_layout
22677
22678 \end_inset
22679
22680 : Provides a full name list (never abbreviated with 
22681 \begin_inset Quotes eld
22682 \end_inset
22683
22684 et al.
22685 \begin_inset Quotes erd
22686 \end_inset
22687
22688 ).
22689 \change_unchanged
22690
22691 \end_layout
22692
22693 \begin_layout Itemize
22694
22695 \change_inserted -712698321 1483979576
22696 \begin_inset Flex Code
22697 status collapsed
22698
22699 \begin_layout Plain Layout
22700
22701 \change_inserted -712698321 1483980143
22702 %forceabbrvbynames:<nametype>%
22703 \change_unchanged
22704
22705 \end_layout
22706
22707 \end_inset
22708
22709 : Provides a name list which is always abbreviated (with 
22710 \begin_inset Quotes eld
22711 \end_inset
22712
22713 et al.
22714 \begin_inset Quotes erd
22715 \end_inset
22716
22717 ) irrespective of 
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722
22723 \change_inserted -712698321 1483979574
22724 MaxCiteNames
22725 \end_layout
22726
22727 \end_inset
22728
22729 .
22730 \end_layout
22731
22732 \end_deeper
22733 \begin_layout Enumerate
22734
22735 \change_inserted -712698321 1483980219
22736 And finally name lists which consist of family names only, as used in author-yea
22737 r citation labels.
22738  these do not take a 
22739 \begin_inset Flex Code
22740 status collapsed
22741
22742 \begin_layout Plain Layout
22743
22744 \change_inserted -712698321 1483979871
22745 <nametype>
22746 \change_unchanged
22747
22748 \end_layout
22749
22750 \end_inset
22751
22752  part, but always return either an author list or, if this does not exist,
22753  an editor list (as common in author-year labels):
22754 \change_unchanged
22755
22756 \end_layout
22757
22758 \begin_deeper
22759 \begin_layout Itemize
22760
22761 \change_inserted -712698321 1483979715
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766
22767 \change_inserted -712698321 1483979700
22768 %abbrvciteauthor%
22769 \change_unchanged
22770
22771 \end_layout
22772
22773 \end_inset
22774
22775 : Provides a name list which is abbreviated (with 
22776 \begin_inset Quotes eld
22777 \end_inset
22778
22779 et al.
22780 \begin_inset Quotes erd
22781 \end_inset
22782
22783 ) when 
22784 \begin_inset Flex Code
22785 status collapsed
22786
22787 \begin_layout Plain Layout
22788
22789 \change_inserted -712698321 1483979715
22790 MaxCiteNames
22791 \end_layout
22792
22793 \end_inset
22794
22795  is reached.
22796 \change_unchanged
22797
22798 \end_layout
22799
22800 \begin_layout Itemize
22801
22802 \change_inserted -712698321 1483979721
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807
22808 \change_inserted -712698321 1483979703
22809 %fullciteauthor%
22810 \change_unchanged
22811
22812 \end_layout
22813
22814 \end_inset
22815
22816 : Provides a full name list (never abbreviated with 
22817 \begin_inset Quotes eld
22818 \end_inset
22819
22820 et al.
22821 \begin_inset Quotes erd
22822 \end_inset
22823
22824 ).
22825 \change_unchanged
22826
22827 \end_layout
22828
22829 \begin_layout Itemize
22830
22831 \change_inserted -712698321 1483980272
22832 \begin_inset Flex Code
22833 status collapsed
22834
22835 \begin_layout Plain Layout
22836
22837 \change_inserted -712698321 1483979705
22838 %forceabbrvciteauthor%
22839 \change_unchanged
22840
22841 \end_layout
22842
22843 \end_inset
22844
22845 : Provides a name list which is always abbreviated (with 
22846 \begin_inset Quotes eld
22847 \end_inset
22848
22849 et al.
22850 \begin_inset Quotes erd
22851 \end_inset
22852
22853 ) irrespective of 
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858
22859 \change_inserted -712698321 1483979726
22860 MaxCiteNames
22861 \end_layout
22862
22863 \end_inset
22864
22865 .
22866 \end_layout
22867
22868 \end_deeper
22869 \begin_layout Standard
22870
22871 \change_inserted -712698321 1483980314
22872 The order of pre- and surname in the former two lists can be adjusted by
22873  these macros:
22874 \end_layout
22875
22876 \begin_layout Itemize
22877
22878 \change_inserted -712698321 1483980535
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883
22884 \change_inserted -712698321 1483980354
22885 !firstnameform %surname%, %prename%
22886 \change_unchanged
22887
22888 \end_layout
22889
22890 \end_inset
22891
22892  (first author in lists of type 1)
22893 \end_layout
22894
22895 \begin_layout Itemize
22896
22897 \change_inserted -712698321 1483980557
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902
22903 \change_inserted -712698321 1483980367
22904 !othernameform %surname%, %prename%
22905 \change_unchanged
22906
22907 \end_layout
22908
22909 \end_inset
22910
22911  (other authors in lists of type 1)
22912 \change_unchanged
22913
22914 \end_layout
22915
22916 \begin_layout Itemize
22917
22918 \change_inserted -712698321 1483980550
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923
22924 \change_inserted -712698321 1483980373
22925 !firstbynameform %prename% %surname%
22926 \change_unchanged
22927
22928 \end_layout
22929
22930 \end_inset
22931
22932  (first author in lists of type 2)
22933 \end_layout
22934
22935 \begin_layout Itemize
22936
22937 \change_inserted -712698321 1483980570
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942
22943 \change_inserted -712698321 1483980381
22944 !otherbynameform %prename% %surname%
22945 \change_unchanged
22946
22947 \end_layout
22948
22949 \end_inset
22950
22951  (other authors in lists of type 2)
22952 \end_layout
22953
22954 \begin_layout Standard
22955
22956 \change_inserted -712698321 1483980643
22957 This allows you to configure namings like 
22958 \begin_inset Quotes eld
22959 \end_inset
22960
22961 Miller, Peter and Mary Smith: \SpecialChar ldots
22962 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22963
22964 \begin_inset Quotes erd
22965 \end_inset
22966
22967 .
22968 \change_unchanged
22969
22970 \end_layout
22971
22972 \begin_layout Standard
22973 There is one other piece of syntax available in definitions, which looks
22974  like this: 
22975 \begin_inset Flex Code
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 {!<i>!}
22980 \end_layout
22981
22982 \end_inset
22983
22984 .
22985  This defines a piece of formatting information that is to be used when
22986  creating 
22987 \begin_inset Quotes eld
22988 \end_inset
22989
22990 rich text
22991 \begin_inset Quotes erd
22992 \end_inset
22993
22994 .
22995  Obviously, we do not want to output HTML tags when writing plain text,
22996  so they should be wrapped in 
22997 \begin_inset Quotes eld
22998 \end_inset
22999
23000 {!
23001 \begin_inset Quotes erd
23002 \end_inset
23003
23004  and 
23005 \begin_inset Quotes eld
23006 \end_inset
23007
23008 !}
23009 \begin_inset Quotes erd
23010 \end_inset
23011
23012 .
23013 \end_layout
23014
23015 \begin_layout Standard
23016 Two special sorts of definitions are also possible in a 
23017 \begin_inset Flex Code
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021 CiteFormat
23022 \end_layout
23023
23024 \end_inset
23025
23026  block.
23027  An example of the first would be:
23028 \end_layout
23029
23030 \begin_layout LyX-Code
23031 !quotetitle 
23032 \begin_inset Quotes eld
23033 \end_inset
23034
23035 %title%
23036 \begin_inset Quotes erd
23037 \end_inset
23038
23039
23040 \end_layout
23041
23042 \begin_layout Standard
23043 This is an abbreviation, or macro, and it can be used by treating it as
23044  if it were a key: 
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 %!quotetitle%
23050 \end_layout
23051
23052 \end_inset
23053
23054 .
23055  \SpecialChar LyX
23056  will treat 
23057 \begin_inset Flex Code
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061 %!quotetitle%
23062 \end_layout
23063
23064 \end_inset
23065
23066  exactly as it would treat its definition.
23067  So, let us issue the obvious 
23068 \emph on
23069 warning
23070 \emph default
23071 .
23072  Do not do this:
23073 \end_layout
23074
23075 \begin_layout LyX-Code
23076 !funfun %funfun%
23077 \end_layout
23078
23079 \begin_layout Standard
23080 or anything like it.
23081  \SpecialChar LyX
23082  shouldn't go into an infinite loop, but it may go into a long one before
23083  it gives up.
23084 \end_layout
23085
23086 \begin_layout Standard
23087 The second sort of special definition might look like this:
23088 \end_layout
23089
23090 \begin_layout LyX-Code
23091 _pptext pp.
23092 \end_layout
23093
23094 \begin_layout Standard
23095 This defines a translatable piece of text, which allows relevant parts of
23096  the bibliography 
23097 \change_inserted -712698321 1483868477
23098 or citation 
23099 \change_unchanged
23100 to be translated.
23101  It can be included in a definition by treating it as a key: 
23102 \begin_inset Flex Code
23103 status collapsed
23104
23105 \begin_layout Plain Layout
23106 %_pptext%
23107 \end_layout
23108
23109 \end_inset
23110
23111 .
23112  Several of these are predefined in 
23113 \begin_inset Flex Code
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 stdciteformats.inc
23118 \end_layout
23119
23120 \end_inset
23121
23122
23123 \change_inserted -712698321 1483868503
23124  and the diverse 
23125 \begin_inset Flex Code
23126 status collapsed
23127
23128 \begin_layout Plain Layout
23129
23130 \change_inserted -712698321 1483868503
23131 *.citeengine
23132 \change_unchanged
23133
23134 \end_layout
23135
23136 \end_inset
23137
23138  files
23139 \change_unchanged
23140 .
23141  Note that these are not macros, in the sense just defined.
23142  They will not be expanded.
23143 \end_layout
23144
23145 \begin_layout Standard
23146 So here then is an example that use all these features:
23147 \begin_inset VSpace defskip
23148 \end_inset
23149
23150
23151 \end_layout
23152
23153 \begin_layout Standard
23154 \noindent
23155
23156 \family typewriter
23157 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
23158 \end_layout
23159
23160 \begin_layout Standard
23161 \begin_inset VSpace defskip
23162 \end_inset
23163
23164 This defines a macro that prints the author, followed by a comma, if the
23165  
23166 \begin_inset Flex Code
23167 status collapsed
23168
23169 \begin_layout Plain Layout
23170 author
23171 \end_layout
23172
23173 \end_inset
23174
23175  key is defined, or else prints the name of the editor, followed by the
23176  
23177 \begin_inset Flex Code
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181 _edtext
23182 \end_layout
23183
23184 \end_inset
23185
23186  or its translation (it is by default 
23187 \begin_inset Quotes eld
23188 \end_inset
23189
23190 ed.
23191 \begin_inset Quotes erd
23192 \end_inset
23193
23194 ), if the 
23195 \begin_inset Flex Code
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199 editor
23200 \end_layout
23201
23202 \end_inset
23203
23204  key is defined.
23205  Note that this is in fact defined in 
23206 \begin_inset Flex Code
23207 status collapsed
23208
23209 \begin_layout Plain Layout
23210 stdciteformats.inc
23211 \end_layout
23212
23213 \end_inset
23214
23215 , so you can use it in your own definitions, or re-definitions, if you load
23216  that file first.
23217 \end_layout
23218
23219 \begin_layout Section
23220 \begin_inset CommandInset label
23221 LatexCommand label
23222 name "sec:Tags-for-XHTML"
23223
23224 \end_inset
23225
23226 Tags for XHTML output
23227 \end_layout
23228
23229 \begin_layout Standard
23230 As with \SpecialChar LaTeX
23231  or DocBook, the format of \SpecialChar LyX
23232 's XHTML output is also controlled by
23233  layout information.
23234  In general, \SpecialChar LyX
23235  provides sensible defaults and, as mentioned earlier, it will
23236  even construct default CSS style rules from the other layout tags.
23237  For example, \SpecialChar LyX
23238  will attempt to use the information provided in the 
23239 \begin_inset Flex Code
23240 status collapsed
23241
23242 \begin_layout Plain Layout
23243 Font
23244 \end_layout
23245
23246 \end_inset
23247
23248  declaration for the Chapter style to write CSS that will appropriately
23249  format chapter headings.
23250 \end_layout
23251
23252 \begin_layout Standard
23253 In many cases, then, you may not have to do anything at all to get acceptable
23254  XHTML output for your own environments, custom insets, and so forth.
23255  But in some cases you will, and so \SpecialChar LyX
23256  provides a number of layout tags that
23257  can be used to customize the XHTML and CSS that are generated.
23258 \end_layout
23259
23260 \begin_layout Standard
23261 Note that there are two tags, 
23262 \begin_inset Flex Code
23263 status collapsed
23264
23265 \begin_layout Plain Layout
23266 HTMLPreamble
23267 \end_layout
23268
23269 \end_inset
23270
23271  and 
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 AddToHTMLPreamble
23277 \end_layout
23278
23279 \end_inset
23280
23281  that may appear outside style and inset declarations.
23282  See 
23283 \begin_inset CommandInset ref
23284 LatexCommand ref
23285 reference "subsec:General-text-class"
23286
23287 \end_inset
23288
23289  for details on these.
23290 \end_layout
23291
23292 \begin_layout Subsection
23293 \begin_inset CommandInset label
23294 LatexCommand label
23295 name "subsec:Paragraph-Style-XHTML"
23296
23297 \end_inset
23298
23299 Paragraph styles
23300 \end_layout
23301
23302 \begin_layout Standard
23303 The sort of XHTML \SpecialChar LyX
23304  outputs for a paragraph depends upon whether we are dealing
23305  with a normal paragraph, a command, or an environment, where this is itself
23306  determined by the contents of the corresponding 
23307 \begin_inset Flex Code
23308 status collapsed
23309
23310 \begin_layout Plain Layout
23311 \SpecialChar LaTeX
23312 Type
23313 \end_layout
23314
23315 \end_inset
23316
23317  tag.
23318  
23319 \end_layout
23320
23321 \begin_layout Standard
23322 For a command or normal paragraph, the output XHTML has the following form:
23323 \end_layout
23324
23325 \begin_layout LyX-Code
23326 <tag attr=
23327 \begin_inset Quotes erd
23328 \end_inset
23329
23330 value
23331 \begin_inset Quotes erd
23332 \end_inset
23333
23334 >
23335 \end_layout
23336
23337 \begin_layout LyX-Code
23338 <labeltag attr=
23339 \begin_inset Quotes erd
23340 \end_inset
23341
23342 value
23343 \begin_inset Quotes erd
23344 \end_inset
23345
23346 >Label</labeltag>
23347 \end_layout
23348
23349 \begin_layout LyX-Code
23350 Contents of the paragraph.
23351 \end_layout
23352
23353 \begin_layout LyX-Code
23354 </tag>
23355 \end_layout
23356
23357 \begin_layout Standard
23358 The label tags are of course omitted if the paragraph does not have a label.
23359 \end_layout
23360
23361 \begin_layout Standard
23362 For an environment that is not some sort of list, the XHTML takes this form:
23363 \end_layout
23364
23365 \begin_layout LyX-Code
23366 <tag attr=
23367 \begin_inset Quotes erd
23368 \end_inset
23369
23370 value
23371 \begin_inset Quotes erd
23372 \end_inset
23373
23374 >
23375 \end_layout
23376
23377 \begin_layout LyX-Code
23378 <itemtag attr=
23379 \begin_inset Quotes erd
23380 \end_inset
23381
23382 value
23383 \begin_inset Quotes erd
23384 \end_inset
23385
23386 ><labeltag attr=
23387 \begin_inset Quotes erd
23388 \end_inset
23389
23390 value
23391 \begin_inset Quotes erd
23392 \end_inset
23393
23394 >Environment Label</labeltag>First paragraph.</itemtag>
23395 \end_layout
23396
23397 \begin_layout LyX-Code
23398 <itemtag>Second paragraph.</itemtag>
23399 \end_layout
23400
23401 \begin_layout LyX-Code
23402 </tag>
23403 \end_layout
23404
23405 \begin_layout Standard
23406 Note that the label is output only for the first paragraph, as it should
23407  be for a theorem, for example.
23408  
23409 \end_layout
23410
23411 \begin_layout Standard
23412 For a list, we have one of these forms:
23413 \end_layout
23414
23415 \begin_layout LyX-Code
23416 <tag attr=
23417 \begin_inset Quotes erd
23418 \end_inset
23419
23420 value
23421 \begin_inset Quotes erd
23422 \end_inset
23423
23424 >
23425 \end_layout
23426
23427 \begin_layout LyX-Code
23428 <itemtag attr=
23429 \begin_inset Quotes erd
23430 \end_inset
23431
23432 value
23433 \begin_inset Quotes erd
23434 \end_inset
23435
23436 ><labeltag attr=
23437 \begin_inset Quotes erd
23438 \end_inset
23439
23440 value
23441 \begin_inset Quotes erd
23442 \end_inset
23443
23444 >List Label</labeltag>First item.</itemtag>
23445 \end_layout
23446
23447 \begin_layout LyX-Code
23448 <itemtag attr=
23449 \begin_inset Quotes erd
23450 \end_inset
23451
23452 value
23453 \begin_inset Quotes erd
23454 \end_inset
23455
23456 ><labeltag attr=
23457 \begin_inset Quotes erd
23458 \end_inset
23459
23460 value
23461 \begin_inset Quotes erd
23462 \end_inset
23463
23464 >List Label</labeltag>Second item.</itemtag>
23465 \end_layout
23466
23467 \begin_layout LyX-Code
23468 </tag>
23469 \end_layout
23470
23471 \begin_layout LyX-Code
23472
23473 \end_layout
23474
23475 \begin_layout LyX-Code
23476 <tag attr=
23477 \begin_inset Quotes erd
23478 \end_inset
23479
23480 value
23481 \begin_inset Quotes erd
23482 \end_inset
23483
23484 >
23485 \end_layout
23486
23487 \begin_layout LyX-Code
23488 <labeltag attr=
23489 \begin_inset Quotes erd
23490 \end_inset
23491
23492 value
23493 \begin_inset Quotes erd
23494 \end_inset
23495
23496 >List Label</labeltag><itemtag attr=
23497 \begin_inset Quotes erd
23498 \end_inset
23499
23500 value
23501 \begin_inset Quotes erd
23502 \end_inset
23503
23504 >First item.</itemtag>
23505 \end_layout
23506
23507 \begin_layout LyX-Code
23508 <labeltag attr=
23509 \begin_inset Quotes erd
23510 \end_inset
23511
23512 value
23513 \begin_inset Quotes erd
23514 \end_inset
23515
23516 >List Label</labeltag><itemtag attr=
23517 \begin_inset Quotes erd
23518 \end_inset
23519
23520 value
23521 \begin_inset Quotes erd
23522 \end_inset
23523
23524 >Second item.</itemtag>
23525 \end_layout
23526
23527 \begin_layout LyX-Code
23528 </tag>
23529 \end_layout
23530
23531 \begin_layout Standard
23532 Note the different orders of 
23533 \begin_inset Flex Code
23534 status collapsed
23535
23536 \begin_layout Plain Layout
23537 labeltag
23538 \end_layout
23539
23540 \end_inset
23541
23542  and 
23543 \begin_inset Flex Code
23544 status collapsed
23545
23546 \begin_layout Plain Layout
23547 itemtag
23548 \end_layout
23549
23550 \end_inset
23551
23552 .
23553  Which order we get depends upon the setting of 
23554 \begin_inset Flex Code
23555 status collapsed
23556
23557 \begin_layout Plain Layout
23558 HTMLLabelFirst
23559 \end_layout
23560
23561 \end_inset
23562
23563 : If 
23564 \begin_inset Flex Code
23565 status collapsed
23566
23567 \begin_layout Plain Layout
23568 HTMLLabelFirst
23569 \end_layout
23570
23571 \end_inset
23572
23573  is false (the default), you get the first of these, with the label within
23574  the item; if true, you get the second, with the label outside the item.
23575 \end_layout
23576
23577 \begin_layout Standard
23578 The specific tags and attributes output for each paragraph type can be controlle
23579 d by means of the layout tags we are about to describe.
23580  As mentioned earlier, however, \SpecialChar LyX
23581  uses sensible defaults for many of these,
23582  so you often may not need to do very much to get good XHTML output.
23583  Think of the available tags as there so you can tweak things to your liking.
23584 \end_layout
23585
23586 \begin_layout Description
23587 \begin_inset Flex Code
23588 status collapsed
23589
23590 \begin_layout Plain Layout
23591 HTMLAttr
23592 \end_layout
23593
23594 \end_inset
23595
23596  [
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 string
23602 \end_layout
23603
23604 \end_inset
23605
23606 ] Specifies attribute information to be output with the main tag.
23607  For example, 
23608 \begin_inset Quotes eld
23609 \end_inset
23610
23611
23612 \begin_inset Flex Code
23613 status collapsed
23614
23615 \begin_layout Plain Layout
23616 class=`mydiv'
23617 \end_layout
23618
23619 \end_inset
23620
23621
23622 \begin_inset Quotes erd
23623 \end_inset
23624
23625 .
23626  By default, \SpecialChar LyX
23627  will output 
23628 \begin_inset Quotes eld
23629 \end_inset
23630
23631
23632 \begin_inset Flex Code
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 class=`layoutname'
23637 \end_layout
23638
23639 \end_inset
23640
23641
23642 \begin_inset Quotes erd
23643 \end_inset
23644
23645 , where 
23646 \begin_inset Flex Code
23647 status collapsed
23648
23649 \begin_layout Plain Layout
23650 layoutname
23651 \end_layout
23652
23653 \end_inset
23654
23655  is the \SpecialChar LyX
23656  name of the layout, made lowercase, for example: chapter.
23657  This should 
23658 \emph on
23659 not
23660 \emph default
23661  contain any style information.
23662  Use 
23663 \begin_inset Flex Code
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 HTMLStyle
23668 \end_layout
23669
23670 \end_inset
23671
23672  for that purpose.
23673 \end_layout
23674
23675 \begin_layout Description
23676 \begin_inset Flex Code
23677 status collapsed
23678
23679 \begin_layout Plain Layout
23680 HTMLForceCSS
23681 \end_layout
23682
23683 \end_inset
23684
23685  [
23686 \begin_inset Flex Code
23687 status collapsed
23688
23689 \begin_layout Plain Layout
23690
23691 \emph on
23692 0
23693 \emph default
23694 ,1
23695 \end_layout
23696
23697 \end_inset
23698
23699 ] Whether to output the default CSS information \SpecialChar LyX
23700  generates for this layout,
23701  even if additional information is explicitly provided via 
23702 \begin_inset Flex Code
23703 status collapsed
23704
23705 \begin_layout Plain Layout
23706 HTMLStyle
23707 \end_layout
23708
23709 \end_inset
23710
23711 .
23712  Setting this to 
23713 \begin_inset Flex Code
23714 status collapsed
23715
23716 \begin_layout Plain Layout
23717 1
23718 \end_layout
23719
23720 \end_inset
23721
23722  allows you to alter or augment the generated CSS, rather than to override
23723  it completely.
23724  Default is 
23725 \begin_inset Flex Code
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 0
23730 \end_layout
23731
23732 \end_inset
23733
23734 .
23735 \end_layout
23736
23737 \begin_layout Description
23738 \begin_inset Flex Code
23739 status collapsed
23740
23741 \begin_layout Plain Layout
23742 HTMLItem
23743 \end_layout
23744
23745 \end_inset
23746
23747  [
23748 \begin_inset Flex Code
23749 status collapsed
23750
23751 \begin_layout Plain Layout
23752 string
23753 \end_layout
23754
23755 \end_inset
23756
23757 ] The tag to be used for individual paragraphs of environments, replacing
23758  
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763 itemtag
23764 \end_layout
23765
23766 \end_inset
23767
23768  in the examples above.
23769  Defaults to 
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774 div
23775 \end_layout
23776
23777 \end_inset
23778
23779 .
23780 \end_layout
23781
23782 \begin_layout Description
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 HTMLItemAttr
23788 \end_layout
23789
23790 \end_inset
23791
23792  [
23793 \begin_inset Flex Code
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797 string
23798 \end_layout
23799
23800 \end_inset
23801
23802 ] Attributes for the item tag.
23803  Defaults to 
23804 \begin_inset Quotes eld
23805 \end_inset
23806
23807
23808 \begin_inset Flex Code
23809 status collapsed
23810
23811 \begin_layout Plain Layout
23812 class=`layoutname_item'
23813 \end_layout
23814
23815 \end_inset
23816
23817
23818 \begin_inset Quotes erd
23819 \end_inset
23820
23821 .
23822  This should 
23823 \emph on
23824 not
23825 \emph default
23826  contain any style information.
23827  Use 
23828 \begin_inset Flex Code
23829 status collapsed
23830
23831 \begin_layout Plain Layout
23832 HTMLStyle
23833 \end_layout
23834
23835 \end_inset
23836
23837  for that purpose.
23838 \end_layout
23839
23840 \begin_layout Description
23841 \begin_inset Flex Code
23842 status collapsed
23843
23844 \begin_layout Plain Layout
23845 HTMLLabel
23846 \end_layout
23847
23848 \end_inset
23849
23850  [
23851 \begin_inset Flex Code
23852 status collapsed
23853
23854 \begin_layout Plain Layout
23855 string
23856 \end_layout
23857
23858 \end_inset
23859
23860 ] The tag to be used for paragraph and item labels, replacing 
23861 \begin_inset Flex Code
23862 status collapsed
23863
23864 \begin_layout Plain Layout
23865 labeltag
23866 \end_layout
23867
23868 \end_inset
23869
23870  in the examples above.
23871  Defaults to 
23872 \begin_inset Flex Code
23873 status collapsed
23874
23875 \begin_layout Plain Layout
23876 span
23877 \end_layout
23878
23879 \end_inset
23880
23881 , unless 
23882 \begin_inset Flex Code
23883 status collapsed
23884
23885 \begin_layout Plain Layout
23886 LabelType
23887 \end_layout
23888
23889 \end_inset
23890
23891  is either 
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896 Top_Environment
23897 \end_layout
23898
23899 \end_inset
23900
23901  or 
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 Centered_Top_Environment
23907 \end_layout
23908
23909 \end_inset
23910
23911 , in which case it defaults to 
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916 div
23917 \end_layout
23918
23919 \end_inset
23920
23921 .
23922 \end_layout
23923
23924 \begin_layout Description
23925 \begin_inset Flex Code
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929 HTMLLabelAttr
23930 \end_layout
23931
23932 \end_inset
23933
23934  [
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 string
23940 \end_layout
23941
23942 \end_inset
23943
23944 ] Attributes for the label tag.
23945  Defaults to 
23946 \begin_inset Quotes eld
23947 \end_inset
23948
23949
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954 class=`layoutname_label'
23955 \end_layout
23956
23957 \end_inset
23958
23959
23960 \begin_inset Quotes erd
23961 \end_inset
23962
23963 .
23964  This should 
23965 \emph on
23966 not
23967 \emph default
23968  contain any style information.
23969  Use 
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 HTMLStyle
23975 \end_layout
23976
23977 \end_inset
23978
23979  for that purpose.
23980 \end_layout
23981
23982 \begin_layout Description
23983 \begin_inset Flex Code
23984 status collapsed
23985
23986 \begin_layout Plain Layout
23987 HTMLLabelFirst
23988 \end_layout
23989
23990 \end_inset
23991
23992  [
23993 \begin_inset Flex Code
23994 status collapsed
23995
23996 \begin_layout Plain Layout
23997
23998 \emph on
23999 0
24000 \emph default
24001 ,1
24002 \end_layout
24003
24004 \end_inset
24005
24006 ] Meaningful only for list-like environments, this tag controls whether
24007  the label tag is output before or inside the item tag.
24008  This is used, for example, in the description environment, where we want
24009  `
24010 \begin_inset Flex Code
24011 status collapsed
24012
24013 \begin_layout Plain Layout
24014 <dt>\SpecialChar ldots
24015 </dt><dd>\SpecialChar ldots
24016 </dd>
24017 \end_layout
24018
24019 \end_inset
24020
24021 .
24022  Default is 
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 0
24028 \end_layout
24029
24030 \end_inset
24031
24032 : The label tag is output inside the item tag.
24033 \end_layout
24034
24035 \begin_layout Description
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 HTMLPreamble
24041 \end_layout
24042
24043 \end_inset
24044
24045  Information to be output in the 
24046 \begin_inset Flex Code
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 <head>
24051 \end_layout
24052
24053 \end_inset
24054
24055  section when this style is used.
24056  This might, for example, be used to include a 
24057 \begin_inset Flex Code
24058 status collapsed
24059
24060 \begin_layout Plain Layout
24061 <script>
24062 \end_layout
24063
24064 \end_inset
24065
24066  block defining an 
24067 \begin_inset Flex Code
24068 status collapsed
24069
24070 \begin_layout Plain Layout
24071 onclick
24072 \end_layout
24073
24074 \end_inset
24075
24076  handler.
24077 \end_layout
24078
24079 \begin_layout Description
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 HTMLStyle
24085 \end_layout
24086
24087 \end_inset
24088
24089  CSS style information to be included when this style is used.
24090  Note that this will automatically be wrapped in a layout-generated 
24091 \begin_inset Flex Code
24092 status collapsed
24093
24094 \begin_layout Plain Layout
24095 <style>
24096 \end_layout
24097
24098 \end_inset
24099
24100  block, so only the CSS itself need be included.
24101  Must end with 
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 EndHTMLStyle
24107 \end_layout
24108
24109 \end_inset
24110
24111 .
24112 \end_layout
24113
24114 \begin_layout Description
24115 \begin_inset Flex Code
24116 status collapsed
24117
24118 \begin_layout Plain Layout
24119 HTMLTag
24120 \end_layout
24121
24122 \end_inset
24123
24124  [
24125 \begin_inset Flex Code
24126 status collapsed
24127
24128 \begin_layout Plain Layout
24129 string
24130 \end_layout
24131
24132 \end_inset
24133
24134 ] The tag to be used for the main label, replacing 
24135 \begin_inset Flex Code
24136 status collapsed
24137
24138 \begin_layout Plain Layout
24139 tag
24140 \end_layout
24141
24142 \end_inset
24143
24144  in the examples above.
24145  Defaults to 
24146 \begin_inset Flex Code
24147 status collapsed
24148
24149 \begin_layout Plain Layout
24150 div
24151 \end_layout
24152
24153 \end_inset
24154
24155 .
24156 \end_layout
24157
24158 \begin_layout Description
24159 \begin_inset Flex Code
24160 status collapsed
24161
24162 \begin_layout Plain Layout
24163 HTMLTitle
24164 \end_layout
24165
24166 \end_inset
24167
24168  [
24169 \begin_inset Flex Code
24170 status collapsed
24171
24172 \begin_layout Plain Layout
24173
24174 \emph on
24175 0
24176 \emph default
24177 ,1
24178 \end_layout
24179
24180 \end_inset
24181
24182 ] Marks this style as the one to be used to generate the 
24183 \begin_inset Flex Code
24184 status collapsed
24185
24186 \begin_layout Plain Layout
24187 <title>
24188 \end_layout
24189
24190 \end_inset
24191
24192  tag for the XHTML file.
24193  By default, it is false.
24194  The 
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199 stdtitle.inc
24200 \end_layout
24201
24202 \end_inset
24203
24204  file sets it to true for the 
24205 \begin_inset Flex Code
24206 status collapsed
24207
24208 \begin_layout Plain Layout
24209 title
24210 \end_layout
24211
24212 \end_inset
24213
24214  environment.
24215  
24216 \end_layout
24217
24218 \begin_layout Subsection
24219 InsetLayout XHTML
24220 \end_layout
24221
24222 \begin_layout Standard
24223 The XHTML output of insets can also be controlled by information in layout
24224  files.
24225 \begin_inset Foot
24226 status collapsed
24227
24228 \begin_layout Plain Layout
24229 At present, this is true only for 
24230 \begin_inset Quotes eld
24231 \end_inset
24232
24233 text
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237  insets (insets you can type into) and is not true for 
24238 \begin_inset Quotes eld
24239 \end_inset
24240
24241 command
24242 \begin_inset Quotes erd
24243 \end_inset
24244
24245  insets (insets that are associated with dialog boxes).
24246 \end_layout
24247
24248 \end_inset
24249
24250  Here, too, \SpecialChar LyX
24251  tries to provide sensible defaults, and it constructs default
24252  CSS style rules.
24253  But everything can be customized.
24254 \end_layout
24255
24256 \begin_layout Standard
24257 The XHTML \SpecialChar LyX
24258  outputs for an inset has the following form:
24259 \end_layout
24260
24261 \begin_layout LyX-Code
24262 <tag attr=
24263 \begin_inset Quotes erd
24264 \end_inset
24265
24266 value
24267 \begin_inset Quotes erd
24268 \end_inset
24269
24270 >
24271 \end_layout
24272
24273 \begin_layout LyX-Code
24274 <labeltag>Label</labeltag>
24275 \end_layout
24276
24277 \begin_layout LyX-Code
24278 <innertag attr=
24279 \begin_inset Quotes erd
24280 \end_inset
24281
24282 value
24283 \begin_inset Quotes erd
24284 \end_inset
24285
24286 >Contents of the inset.</innertag>
24287 \end_layout
24288
24289 \begin_layout LyX-Code
24290 </tag>
24291 \end_layout
24292
24293 \begin_layout Standard
24294 If the inset permits multiple paragraphs—that is, if 
24295 \begin_inset Flex Code
24296 status collapsed
24297
24298 \begin_layout Plain Layout
24299 MultiPar
24300 \end_layout
24301
24302 \end_inset
24303
24304  is true—then the contents of the inset will itself be output as paragraphs
24305  formatted according to the styles used for those paragraphs (standard,
24306  quote, and the like).
24307  The label tag is of course omitted if the paragraph does not have a label
24308  and, at present, is always 
24309 \begin_inset Flex Code
24310 status collapsed
24311
24312 \begin_layout Plain Layout
24313 span
24314 \end_layout
24315
24316 \end_inset
24317
24318 .
24319  The inner tag is optional and, by default, does not appear.
24320 \end_layout
24321
24322 \begin_layout Standard
24323 The specific tags and attributes output for each inset can be controlled
24324  by means of the following layout tags.
24325 \end_layout
24326
24327 \begin_layout Description
24328 \begin_inset Flex Code
24329 status collapsed
24330
24331 \begin_layout Plain Layout
24332 HTMLAttr
24333 \end_layout
24334
24335 \end_inset
24336
24337  [
24338 \begin_inset Flex Code
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342 string
24343 \end_layout
24344
24345 \end_inset
24346
24347 ] Specifies attribute information to be output with the main tag.
24348  For example, 
24349 \begin_inset Quotes eld
24350 \end_inset
24351
24352
24353 \begin_inset Flex Code
24354 status collapsed
24355
24356 \begin_layout Plain Layout
24357 class=`myinset' onclick=`\SpecialChar ldots
24358 '
24359 \end_layout
24360
24361 \end_inset
24362
24363
24364 \begin_inset Quotes erd
24365 \end_inset
24366
24367 .
24368  By default, \SpecialChar LyX
24369  will output 
24370 \begin_inset Quotes eld
24371 \end_inset
24372
24373
24374 \begin_inset Flex Code
24375 status collapsed
24376
24377 \begin_layout Plain Layout
24378 class=`insetname'
24379 \end_layout
24380
24381 \end_inset
24382
24383
24384 \begin_inset Quotes erd
24385 \end_inset
24386
24387 , where 
24388 \begin_inset Flex Code
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 insetname
24393 \end_layout
24394
24395 \end_inset
24396
24397  is the \SpecialChar LyX
24398  name of the inset, made lowercase and with non-alphanumeric characters
24399  converted to underscores, for example: footnote.
24400 \end_layout
24401
24402 \begin_layout Description
24403 \begin_inset Flex Code
24404 status collapsed
24405
24406 \begin_layout Plain Layout
24407 HTMLForceCSS
24408 \end_layout
24409
24410 \end_inset
24411
24412  [
24413 \begin_inset Flex Code
24414 status collapsed
24415
24416 \begin_layout Plain Layout
24417
24418 \emph on
24419 0
24420 \emph default
24421 ,1
24422 \end_layout
24423
24424 \end_inset
24425
24426 ] Whether to output the default CSS information \SpecialChar LyX
24427  generates for this layout,
24428  even if additional information is explicitly provided via 
24429 \begin_inset Flex Code
24430 status collapsed
24431
24432 \begin_layout Plain Layout
24433 HTMLStyle
24434 \end_layout
24435
24436 \end_inset
24437
24438 .
24439  Setting this to 
24440 \begin_inset Flex Code
24441 status collapsed
24442
24443 \begin_layout Plain Layout
24444 1
24445 \end_layout
24446
24447 \end_inset
24448
24449  allows you to alter or augment the generated CSS, rather than to override
24450  it completely.
24451  Default is 0.
24452 \end_layout
24453
24454 \begin_layout Description
24455 \begin_inset Flex Code
24456 status collapsed
24457
24458 \begin_layout Plain Layout
24459 HTMLInnerAttr
24460 \end_layout
24461
24462 \end_inset
24463
24464  [
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469 string
24470 \end_layout
24471
24472 \end_inset
24473
24474 ] Attributes for the inner tag.
24475  Defaults to 
24476 \begin_inset Quotes eld
24477 \end_inset
24478
24479
24480 \begin_inset Flex Code
24481 status collapsed
24482
24483 \begin_layout Plain Layout
24484 class=`insetname_inner'
24485 \end_layout
24486
24487 \end_inset
24488
24489
24490 \begin_inset Quotes erd
24491 \end_inset
24492
24493 .
24494 \end_layout
24495
24496 \begin_layout Description
24497 \begin_inset Flex Code
24498 status collapsed
24499
24500 \begin_layout Plain Layout
24501 HTMLInnerTag
24502 \end_layout
24503
24504 \end_inset
24505
24506  [
24507 \begin_inset Flex Code
24508 status collapsed
24509
24510 \begin_layout Plain Layout
24511 string
24512 \end_layout
24513
24514 \end_inset
24515
24516 ] The inner tag, replacing 
24517 \begin_inset Flex Code
24518 status collapsed
24519
24520 \begin_layout Plain Layout
24521 innertag
24522 \end_layout
24523
24524 \end_inset
24525
24526  in the examples above.
24527  By default, there is none.
24528 \end_layout
24529
24530 \begin_layout Description
24531 \begin_inset Flex Code
24532 status collapsed
24533
24534 \begin_layout Plain Layout
24535 HTMLIsBlock
24536 \end_layout
24537
24538 \end_inset
24539
24540  [
24541 \begin_inset Flex Code
24542 status collapsed
24543
24544 \begin_layout Plain Layout
24545 0,
24546 \emph on
24547 1
24548 \end_layout
24549
24550 \end_inset
24551
24552 ] Whether this inset represents a standalone block of text (such as a footnote)
24553  or instead represents material that is included in the surrounding text
24554  (such as a branch).
24555  Defaults to 1.
24556 \end_layout
24557
24558 \begin_layout Description
24559 \begin_inset Flex Code
24560 status collapsed
24561
24562 \begin_layout Plain Layout
24563 HTMLLabel
24564 \end_layout
24565
24566 \end_inset
24567
24568  [
24569 \begin_inset Flex Code
24570 status collapsed
24571
24572 \begin_layout Plain Layout
24573 string
24574 \end_layout
24575
24576 \end_inset
24577
24578 ] A label for this inset, possibly including a reference to a counter.
24579  For example, for footnote, it might be: 
24580 \begin_inset Flex Code
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584
24585 \backslash
24586 arabic{footnote}
24587 \end_layout
24588
24589 \end_inset
24590
24591 .
24592  This is optional, and there is no default.
24593 \end_layout
24594
24595 \begin_layout Description
24596 \begin_inset Flex Code
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600 HTMLPreamble
24601 \end_layout
24602
24603 \end_inset
24604
24605  Information to be output in the 
24606 \begin_inset Flex Code
24607 status collapsed
24608
24609 \begin_layout Plain Layout
24610 <head>
24611 \end_layout
24612
24613 \end_inset
24614
24615  section when this style is used.
24616  This might, for example, be used to include a 
24617 \begin_inset Flex Code
24618 status collapsed
24619
24620 \begin_layout Plain Layout
24621 <script>
24622 \end_layout
24623
24624 \end_inset
24625
24626  block defining an 
24627 \begin_inset Flex Code
24628 status collapsed
24629
24630 \begin_layout Plain Layout
24631 onclick
24632 \end_layout
24633
24634 \end_inset
24635
24636  handler.
24637 \end_layout
24638
24639 \begin_layout Description
24640 \begin_inset Flex Code
24641 status collapsed
24642
24643 \begin_layout Plain Layout
24644 HTMLStyle
24645 \end_layout
24646
24647 \end_inset
24648
24649  CSS style information to be included when this style is used.
24650  Note that this will automatically be wrapped in a layout-generated 
24651 \begin_inset Flex Code
24652 status collapsed
24653
24654 \begin_layout Plain Layout
24655 <style>
24656 \end_layout
24657
24658 \end_inset
24659
24660  block, so only the CSS itself need be included.
24661 \end_layout
24662
24663 \begin_layout Description
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 HTMLTag
24669 \end_layout
24670
24671 \end_inset
24672
24673  [
24674 \begin_inset Flex Code
24675 status collapsed
24676
24677 \begin_layout Plain Layout
24678 string
24679 \end_layout
24680
24681 \end_inset
24682
24683 ] The tag to be used for the main label, replacing 
24684 \begin_inset Flex Code
24685 status collapsed
24686
24687 \begin_layout Plain Layout
24688 tag
24689 \end_layout
24690
24691 \end_inset
24692
24693  in the examples above.
24694  The default depends upon the setting of 
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699 MultiPar
24700 \end_layout
24701
24702 \end_inset
24703
24704 : If 
24705 \begin_inset Flex Code
24706 status collapsed
24707
24708 \begin_layout Plain Layout
24709 MultiPar
24710 \end_layout
24711
24712 \end_inset
24713
24714  is true, the default is 
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 div
24720 \end_layout
24721
24722 \end_inset
24723
24724 ; if it is false, the default is 
24725 \begin_inset Flex Code
24726 status collapsed
24727
24728 \begin_layout Plain Layout
24729 span
24730 \end_layout
24731
24732 \end_inset
24733
24734 .
24735 \end_layout
24736
24737 \begin_layout Subsection
24738 Float XHTML
24739 \end_layout
24740
24741 \begin_layout Standard
24742 The XHTML output for floats too can be controlled by layout information.
24743  The output has the following form:
24744 \end_layout
24745
24746 \begin_layout LyX-Code
24747 <tag attr=
24748 \begin_inset Quotes erd
24749 \end_inset
24750
24751 value
24752 \begin_inset Quotes erd
24753 \end_inset
24754
24755 >
24756 \end_layout
24757
24758 \begin_layout LyX-Code
24759 Contents of the float.
24760 \end_layout
24761
24762 \begin_layout LyX-Code
24763 </tag>
24764 \end_layout
24765
24766 \begin_layout Standard
24767 The caption, if there is one, is a separate inset and will be output as
24768  such.
24769  Its appearance can be controlled via the InsetLayout for caption insets.
24770  
24771 \end_layout
24772
24773 \begin_layout Description
24774 \begin_inset Flex Code
24775 status collapsed
24776
24777 \begin_layout Plain Layout
24778 HTMLAttr
24779 \end_layout
24780
24781 \end_inset
24782
24783  [
24784 \begin_inset Flex Code
24785 status collapsed
24786
24787 \begin_layout Plain Layout
24788 string
24789 \end_layout
24790
24791 \end_inset
24792
24793 ] Specifies attribute information to be output with the main tag.
24794  For example, 
24795 \begin_inset Quotes eld
24796 \end_inset
24797
24798
24799 \begin_inset Flex Code
24800 status collapsed
24801
24802 \begin_layout Plain Layout
24803 class=`myfloat' onclick=`\SpecialChar ldots
24804 '
24805 \end_layout
24806
24807 \end_inset
24808
24809
24810 \begin_inset Quotes erd
24811 \end_inset
24812
24813 .
24814  By default, \SpecialChar LyX
24815  will output 
24816 \begin_inset Quotes eld
24817 \end_inset
24818
24819
24820 \begin_inset Flex Code
24821 status collapsed
24822
24823 \begin_layout Plain Layout
24824 class=`float float-floattype'
24825 \end_layout
24826
24827 \end_inset
24828
24829
24830 \begin_inset Quotes erd
24831 \end_inset
24832
24833 , where 
24834 \begin_inset Flex Code
24835 status collapsed
24836
24837 \begin_layout Plain Layout
24838 floattype
24839 \end_layout
24840
24841 \end_inset
24842
24843  is \SpecialChar LyX
24844 's name for this type of float, as determined by the float declaration
24845  (see 
24846 \begin_inset CommandInset ref
24847 LatexCommand ref
24848 reference "subsec:Floats"
24849
24850 \end_inset
24851
24852 ), though made lowercase and with non-alphanumeric characters converted
24853  to underscores, for example: float-table.
24854 \end_layout
24855
24856 \begin_layout Description
24857 \begin_inset Flex Code
24858 status collapsed
24859
24860 \begin_layout Plain Layout
24861 HTMLStyle
24862 \end_layout
24863
24864 \end_inset
24865
24866  CSS style information to be included when this float is used.
24867  Note that this will automatically be wrapped in a layout-generated 
24868 \begin_inset Flex Code
24869 status collapsed
24870
24871 \begin_layout Plain Layout
24872 <style>
24873 \end_layout
24874
24875 \end_inset
24876
24877  block, so only the CSS itself need be included.
24878 \end_layout
24879
24880 \begin_layout Description
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 HTMLTag
24886 \end_layout
24887
24888 \end_inset
24889
24890  [
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 string
24896 \end_layout
24897
24898 \end_inset
24899
24900 ] The tag to be used for this float, replacing 
24901 \begin_inset Quotes eld
24902 \end_inset
24903
24904
24905 \begin_inset Flex Code
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909 tag
24910 \end_layout
24911
24912 \end_inset
24913
24914
24915 \begin_inset Quotes erd
24916 \end_inset
24917
24918  in the example above.
24919  The default is 
24920 \begin_inset Flex Code
24921 status collapsed
24922
24923 \begin_layout Plain Layout
24924 div
24925 \end_layout
24926
24927 \end_inset
24928
24929  and will rarely need changing.
24930 \end_layout
24931
24932 \begin_layout Subsection
24933 Bibliography formatting
24934 \end_layout
24935
24936 \begin_layout Standard
24937 The bibliography can be formatted using 
24938 \begin_inset Flex Code
24939 status collapsed
24940
24941 \begin_layout Plain Layout
24942 CiteFormat
24943 \end_layout
24944
24945 \end_inset
24946
24947  blocks.
24948  See 
24949 \begin_inset CommandInset ref
24950 LatexCommand ref
24951 reference "subsec:Citation-format-description"
24952
24953 \end_inset
24954
24955  for the details.
24956 \end_layout
24957
24958 \begin_layout Subsection
24959 \SpecialChar LyX
24960 -generated CSS
24961 \end_layout
24962
24963 \begin_layout Standard
24964 We have several times mentioned that \SpecialChar LyX
24965  will generate default CSS style rules
24966  for both insets and paragraph styles, based upon the other layout information
24967  that is provided.
24968  In this section, we shall say a word about which layout information \SpecialChar LyX
24969  uses
24970  and how.
24971 \end_layout
24972
24973 \begin_layout Standard
24974 At present, \SpecialChar LyX
24975  auto-generates CSS only for font information, making use of
24976  the 
24977 \begin_inset Flex Code
24978 status collapsed
24979
24980 \begin_layout Plain Layout
24981 Family
24982 \end_layout
24983
24984 \end_inset
24985
24986
24987 \begin_inset Flex Code
24988 status collapsed
24989
24990 \begin_layout Plain Layout
24991 Series
24992 \end_layout
24993
24994 \end_inset
24995
24996
24997 \begin_inset Flex Code
24998 status collapsed
24999
25000 \begin_layout Plain Layout
25001 Shape
25002 \end_layout
25003
25004 \end_inset
25005
25006 , and 
25007 \begin_inset Flex Code
25008 status collapsed
25009
25010 \begin_layout Plain Layout
25011 Size
25012 \end_layout
25013
25014 \end_inset
25015
25016  specified in the 
25017 \begin_inset Flex Code
25018 status collapsed
25019
25020 \begin_layout Plain Layout
25021 Font
25022 \end_layout
25023
25024 \end_inset
25025
25026  declaration (see 
25027 \begin_inset CommandInset ref
25028 LatexCommand ref
25029 reference "subsec:Font-description"
25030
25031 \end_inset
25032
25033 ).
25034  The translation is mostly straightforward and obvious.
25035  For example, 
25036 \begin_inset Quotes eld
25037 \end_inset
25038
25039
25040 \begin_inset Flex Code
25041 status collapsed
25042
25043 \begin_layout Plain Layout
25044 Family Sans
25045 \end_layout
25046
25047 \end_inset
25048
25049
25050 \begin_inset Quotes erd
25051 \end_inset
25052
25053  becomes 
25054 \begin_inset Quotes eld
25055 \end_inset
25056
25057
25058 \begin_inset Flex Code
25059 status collapsed
25060
25061 \begin_layout Plain Layout
25062 font-family: sans-serif;
25063 \end_layout
25064
25065 \end_inset
25066
25067
25068 \begin_inset Quotes erd
25069 \end_inset
25070
25071 .
25072  The correspondence of \SpecialChar LyX
25073  sizes and CSS sizes is a little less obvious but
25074  nonetheless intuitive.
25075  See the 
25076 \begin_inset Flex Code
25077 status collapsed
25078
25079 \begin_layout Plain Layout
25080 getSizeCSS()
25081 \end_layout
25082
25083 \end_inset
25084
25085  function in 
25086 \begin_inset Flex URL
25087 status collapsed
25088
25089 \begin_layout Plain Layout
25090
25091 src/FontInfo.cpp
25092 \end_layout
25093
25094 \end_inset
25095
25096  for the details.
25097 \end_layout
25098
25099 \begin_layout Chapter
25100 Including External Material
25101 \begin_inset CommandInset label
25102 LatexCommand label
25103 name "chap:Including-External-Material"
25104
25105 \end_inset
25106
25107
25108 \end_layout
25109
25110 \begin_layout Standard
25111 \begin_inset Box Shadowbox
25112 position "t"
25113 hor_pos "c"
25114 has_inner_box 1
25115 inner_pos "t"
25116 use_parbox 0
25117 use_makebox 0
25118 width "100col%"
25119 special "none"
25120 height "1in"
25121 height_special "totalheight"
25122 thickness "0.4pt"
25123 separation "3pt"
25124 shadowsize "4pt"
25125 framecolor "black"
25126 backgroundcolor "none"
25127 status open
25128
25129 \begin_layout Plain Layout
25130 WARNING: This portion of the documentation has not been updated for some
25131  time.
25132  We certainly hope that it is still accurate, but there are no guarantees.
25133 \end_layout
25134
25135 \end_inset
25136
25137
25138 \end_layout
25139
25140 \begin_layout Standard
25141 The use of material from sources external to \SpecialChar LyX
25142  is covered in detail in the
25143  
25144 \emph on
25145 Embedded Objects
25146 \emph default
25147  manual.
25148  This part of the manual covers what needs to happen behind the scenes for
25149  new sorts of material to be included.
25150 \end_layout
25151
25152 \begin_layout Section
25153 How does it work?
25154 \end_layout
25155
25156 \begin_layout Standard
25157 The external material feature is based on the concept of a 
25158 \emph on
25159 template
25160 \emph default
25161 .
25162  A template is a specification of how \SpecialChar LyX
25163  should interface with a certain kind
25164  of material.
25165  As bundled, \SpecialChar LyX
25166  comes with predefined templates for Xfig figures, various
25167  raster format images, chess diagrams, and LilyPond music notation.
25168  You can check the actual list by using the menu 
25169 \begin_inset Flex Noun
25170 status collapsed
25171
25172 \begin_layout Plain Layout
25173 Insert\SpecialChar menuseparator
25174 File\SpecialChar menuseparator
25175 External Material
25176 \end_layout
25177
25178 \end_inset
25179
25180 .
25181  Furthermore, it is possible to roll your own template to support a specific
25182  kind of material.
25183  Later we'll describe in more detail what is involved, and hopefully you
25184  will submit all the templates you create so we can include them in a later
25185  \SpecialChar LyX
25186  version.
25187 \end_layout
25188
25189 \begin_layout Standard
25190 Another basic idea of the external material feature is to distinguish between
25191  the original file that serves as a base for final material and the produced
25192  file that is included in your exported or printed document.
25193  For example, consider the case of a figure produced with 
25194 \begin_inset Flex Code
25195 status collapsed
25196
25197 \begin_layout Plain Layout
25198 Xfig
25199 \end_layout
25200
25201 \end_inset
25202
25203 .
25204  The Xfig application itself works on an original file with the 
25205 \begin_inset Flex Code
25206 status collapsed
25207
25208 \begin_layout Plain Layout
25209 .fig
25210 \end_layout
25211
25212 \end_inset
25213
25214  extension.
25215  Within Xfig, you create and change your figure, and when you are done,
25216  you save the 
25217 \begin_inset Flex Code
25218 status collapsed
25219
25220 \begin_layout Plain Layout
25221 fig
25222 \end_layout
25223
25224 \end_inset
25225
25226 -file.
25227  When you want to include the figure in your document, you invoke 
25228 \begin_inset Flex Code
25229 status collapsed
25230
25231 \begin_layout Plain Layout
25232 transfig
25233 \end_layout
25234
25235 \end_inset
25236
25237  in order to create a PostScript file that can readily be included in your
25238  \SpecialChar LaTeX
25239  file.
25240  In this case, the 
25241 \begin_inset Flex Code
25242 status collapsed
25243
25244 \begin_layout Plain Layout
25245 .fig
25246 \end_layout
25247
25248 \end_inset
25249
25250  file is the original file, and the PostScript file is the produced file.
25251 \end_layout
25252
25253 \begin_layout Standard
25254 This distinction is important in order to allow updating of the material
25255  while you are in the process of writing the document.
25256  Furthermore, it provides us with the flexibility that is needed to support
25257  multiple export formats.
25258  For instance, in the case of a plain text file, it is not exactly an award-winn
25259 ing idea to include the figure as raw PostScript.
25260  Instead, you would either prefer to just include a reference to the figure
25261  or try to invoke some graphics to ASCII converter to make the final result
25262  look similar to the real graphics.
25263  The external material management allows you to do this, because it is parametri
25264 zed on the different export formats that \SpecialChar LyX
25265  supports.
25266 \end_layout
25267
25268 \begin_layout Standard
25269 Besides supporting the production of different products according to the
25270  exported format, it supports tight integration with editing and viewing
25271  applications.
25272  In the case of an Xfig figure, you are able to invoke Xfig on the original
25273  file with a single click from within the external material dialog in \SpecialChar LyX
25274 ,
25275  and also preview the produced PostScript file with Ghostview with another
25276  click.
25277  No more fiddling around with the command line and/or file browsers to locate
25278  and manipulate the original or produced files.
25279  In this way, you are finally able to take full advantage of the many different
25280  applications that are relevant to use when you write your documents, and
25281  ultimately be more productive.
25282 \end_layout
25283
25284 \begin_layout Section
25285 The external template configuration file
25286 \end_layout
25287
25288 \begin_layout Standard
25289 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25290 .
25291  However, be aware that doing this in an careless manner most probably 
25292 \emph on
25293 will
25294 \emph default
25295  introduce an easily exploitable security hole.
25296  So before you do this, please read the discussion about security in 
25297 \begin_inset CommandInset ref
25298 LatexCommand ref
25299 reference "sec:Security-discussion"
25300
25301 \end_inset
25302
25303 .
25304 \end_layout
25305
25306 \begin_layout Standard
25307 Having said that, we encourage you to submit any interesting templates that
25308  you create.
25309  
25310 \end_layout
25311
25312 \begin_layout Standard
25313 The external templates are defined in the 
25314 \begin_inset Flex Code
25315 status collapsed
25316
25317 \begin_layout Plain Layout
25318 LyXDir/lib/external_templates
25319 \end_layout
25320
25321 \end_inset
25322
25323  file.
25324  You can place your own version in 
25325 \begin_inset Flex Code
25326 status collapsed
25327
25328 \begin_layout Plain Layout
25329 UserDir/external_templates
25330 \end_layout
25331
25332 \end_inset
25333
25334 .
25335 \end_layout
25336
25337 \begin_layout Standard
25338 A typical template looks like this:
25339 \end_layout
25340
25341 \begin_layout LyX-Code
25342 Template XFig
25343 \end_layout
25344
25345 \begin_layout LyX-Code
25346 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25347 \end_layout
25348
25349 \begin_layout LyX-Code
25350 HelpText
25351 \end_layout
25352
25353 \begin_layout LyX-Code
25354 An XFig figure.
25355 \end_layout
25356
25357 \begin_layout LyX-Code
25358 HelpTextEnd
25359 \end_layout
25360
25361 \begin_layout LyX-Code
25362 InputFormat fig
25363 \end_layout
25364
25365 \begin_layout LyX-Code
25366 FileFilter "*.fig"
25367 \end_layout
25368
25369 \begin_layout LyX-Code
25370 AutomaticProduction true
25371 \end_layout
25372
25373 \begin_layout LyX-Code
25374 Transform Rotate
25375 \end_layout
25376
25377 \begin_layout LyX-Code
25378 Transform Resize
25379 \end_layout
25380
25381 \begin_layout LyX-Code
25382 Format LaTeX
25383 \end_layout
25384
25385 \begin_layout LyX-Code
25386 TransformCommand Rotate RotationLatexCommand
25387 \end_layout
25388
25389 \begin_layout LyX-Code
25390 TransformCommand Resize ResizeLatexCommand
25391 \end_layout
25392
25393 \begin_layout LyX-Code
25394 Product "$$RotateFront$$ResizeFront
25395 \end_layout
25396
25397 \begin_layout LyX-Code
25398          
25399 \backslash
25400
25401 \backslash
25402 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25403 \end_layout
25404
25405 \begin_layout LyX-Code
25406          $$ResizeBack$$RotateBack"
25407 \end_layout
25408
25409 \begin_layout LyX-Code
25410 UpdateFormat pstex
25411 \end_layout
25412
25413 \begin_layout LyX-Code
25414 UpdateResult "$$AbsPath$$Basename.pstex_t"
25415 \end_layout
25416
25417 \begin_layout LyX-Code
25418 Requirement "graphicx"
25419 \end_layout
25420
25421 \begin_layout LyX-Code
25422 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25423 \end_layout
25424
25425 \begin_layout LyX-Code
25426 ReferencedFile latex "$$AbsPath$$Basename.eps"
25427 \end_layout
25428
25429 \begin_layout LyX-Code
25430 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25431 \end_layout
25432
25433 \begin_layout LyX-Code
25434 FormatEnd
25435 \end_layout
25436
25437 \begin_layout LyX-Code
25438 Format PDFLaTeX
25439 \end_layout
25440
25441 \begin_layout LyX-Code
25442 TransformCommand Rotate RotationLatexCommand
25443 \end_layout
25444
25445 \begin_layout LyX-Code
25446 TransformCommand Resize ResizeLatexCommand
25447 \end_layout
25448
25449 \begin_layout LyX-Code
25450 Product "$$RotateFront$$ResizeFront
25451 \end_layout
25452
25453 \begin_layout LyX-Code
25454          
25455 \backslash
25456
25457 \backslash
25458 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25459 \end_layout
25460
25461 \begin_layout LyX-Code
25462          $$ResizeBack$$RotateBack"
25463 \end_layout
25464
25465 \begin_layout LyX-Code
25466 UpdateFormat pdftex
25467 \end_layout
25468
25469 \begin_layout LyX-Code
25470 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25471 \end_layout
25472
25473 \begin_layout LyX-Code
25474 Requirement "graphicx"
25475 \end_layout
25476
25477 \begin_layout LyX-Code
25478 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25479 \end_layout
25480
25481 \begin_layout LyX-Code
25482 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25483 \end_layout
25484
25485 \begin_layout LyX-Code
25486 FormatEnd
25487 \end_layout
25488
25489 \begin_layout LyX-Code
25490 Format Ascii
25491 \end_layout
25492
25493 \begin_layout LyX-Code
25494 Product "[XFig: $$FName]"
25495 \end_layout
25496
25497 \begin_layout LyX-Code
25498 FormatEnd
25499 \end_layout
25500
25501 \begin_layout LyX-Code
25502 Format DocBook
25503 \end_layout
25504
25505 \begin_layout LyX-Code
25506 Product "<graphic fileref=
25507 \backslash
25508 "$$AbsOrRelPathMaster$$Basename.eps
25509 \backslash
25510 ">
25511 \end_layout
25512
25513 \begin_layout LyX-Code
25514          </graphic>"
25515 \end_layout
25516
25517 \begin_layout LyX-Code
25518 UpdateFormat eps
25519 \end_layout
25520
25521 \begin_layout LyX-Code
25522 UpdateResult "$$AbsPath$$Basename.eps"
25523 \end_layout
25524
25525 \begin_layout LyX-Code
25526 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25527 \end_layout
25528
25529 \begin_layout LyX-Code
25530 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25531 \end_layout
25532
25533 \begin_layout LyX-Code
25534 FormatEnd
25535 \end_layout
25536
25537 \begin_layout LyX-Code
25538 TemplateEnd
25539 \end_layout
25540
25541 \begin_layout Standard
25542 As you can see, the template is enclosed in 
25543 \begin_inset Flex Code
25544 status collapsed
25545
25546 \begin_layout Plain Layout
25547 Template
25548 \end_layout
25549
25550 \end_inset
25551
25552  \SpecialChar ldots
25553  
25554 \begin_inset Flex Code
25555 status collapsed
25556
25557 \begin_layout Plain Layout
25558 TemplateEnd
25559 \end_layout
25560
25561 \end_inset
25562
25563 .
25564  It contains a header specifying some general settings and, for each supported
25565  primary document file format, a section 
25566 \begin_inset Flex Code
25567 status collapsed
25568
25569 \begin_layout Plain Layout
25570 Format
25571 \end_layout
25572
25573 \end_inset
25574
25575  \SpecialChar ldots
25576  
25577 \begin_inset Flex Code
25578 status collapsed
25579
25580 \begin_layout Plain Layout
25581 FormatEnd
25582 \end_layout
25583
25584 \end_inset
25585
25586 .
25587 \end_layout
25588
25589 \begin_layout Subsection
25590 The template header
25591 \end_layout
25592
25593 \begin_layout Description
25594 \begin_inset Flex Code
25595 status collapsed
25596
25597 \begin_layout Plain Layout
25598 AutomaticProduction
25599 \begin_inset space ~
25600 \end_inset
25601
25602 true|false
25603 \end_layout
25604
25605 \end_inset
25606
25607  Whether the file represented by the template must be generated by \SpecialChar LyX
25608 .
25609  This command must occur exactly once.
25610 \end_layout
25611
25612 \begin_layout Description
25613 \begin_inset Flex Code
25614 status collapsed
25615
25616 \begin_layout Plain Layout
25617 FileFilter
25618 \begin_inset space ~
25619 \end_inset
25620
25621 <pattern>
25622 \end_layout
25623
25624 \end_inset
25625
25626  A glob pattern that is used in the file dialog to filter out the desired
25627  files.
25628  If there is more than one possible file extension (e.
25629 \begin_inset space \thinspace{}
25630 \end_inset
25631
25632 g.
25633 \begin_inset space \space{}
25634 \end_inset
25635
25636 tgif has 
25637 \begin_inset Flex Code
25638 status collapsed
25639
25640 \begin_layout Plain Layout
25641 .obj
25642 \end_layout
25643
25644 \end_inset
25645
25646  and 
25647 \begin_inset Flex Code
25648 status collapsed
25649
25650 \begin_layout Plain Layout
25651 .tgo
25652 \end_layout
25653
25654 \end_inset
25655
25656 ), use something like 
25657 \begin_inset Flex Code
25658 status collapsed
25659
25660 \begin_layout Plain Layout
25661 "*.{obj,tgo}"
25662 \end_layout
25663
25664 \end_inset
25665
25666 .
25667  This command must occur exactly once.
25668 \end_layout
25669
25670 \begin_layout Description
25671 \begin_inset Flex Code
25672 status collapsed
25673
25674 \begin_layout Plain Layout
25675 GuiName
25676 \begin_inset space ~
25677 \end_inset
25678
25679 <guiname>
25680 \end_layout
25681
25682 \end_inset
25683
25684  The text that is displayed on the button.
25685  This command must occur exactly once.
25686 \end_layout
25687
25688 \begin_layout Description
25689 \begin_inset Flex Code
25690 status collapsed
25691
25692 \begin_layout Plain Layout
25693 HelpText
25694 \begin_inset space ~
25695 \end_inset
25696
25697 <text>
25698 \begin_inset space ~
25699 \end_inset
25700
25701 HelpTextEnd
25702 \end_layout
25703
25704 \end_inset
25705
25706  The help text that is used in the External dialog.
25707  Provide enough information to explain to the user just what the template
25708  can provide him with.
25709  This command must occur exactly once.
25710 \end_layout
25711
25712 \begin_layout Description
25713 \begin_inset Flex Code
25714 status collapsed
25715
25716 \begin_layout Plain Layout
25717 InputFormat
25718 \begin_inset space ~
25719 \end_inset
25720
25721 <format>
25722 \end_layout
25723
25724 \end_inset
25725
25726  The file format of the original file.
25727  This must be the name of a format that is known to \SpecialChar LyX
25728  (see 
25729 \begin_inset CommandInset ref
25730 LatexCommand ref
25731 reference "sec:Formats"
25732
25733 \end_inset
25734
25735 ).
25736  Use 
25737 \begin_inset Quotes eld
25738 \end_inset
25739
25740
25741 \begin_inset Flex Code
25742 status collapsed
25743
25744 \begin_layout Plain Layout
25745 *
25746 \end_layout
25747
25748 \end_inset
25749
25750
25751 \begin_inset Quotes erd
25752 \end_inset
25753
25754  if the template can handle original files of more than one format.
25755  \SpecialChar LyX
25756  will attempt to interrogate the file itself in order to deduce its format
25757  in this case.
25758  This command must occur exactly once.
25759 \end_layout
25760
25761 \begin_layout Description
25762 \begin_inset Flex Code
25763 status collapsed
25764
25765 \begin_layout Plain Layout
25766 Template
25767 \begin_inset space ~
25768 \end_inset
25769
25770 <id>
25771 \end_layout
25772
25773 \end_inset
25774
25775  A unique name for the template.
25776  It must not contain substitution macros (see below).
25777 \end_layout
25778
25779 \begin_layout Description
25780 \begin_inset Flex Code
25781 status collapsed
25782
25783 \begin_layout Plain Layout
25784 Transform
25785 \begin_inset space ~
25786 \end_inset
25787
25788 Rotate|Resize|Clip|Extra
25789 \end_layout
25790
25791 \end_inset
25792
25793  This command specifies which transformations are supported by this template.
25794  It may occur zero or more times.
25795  This command enables the corresponding tabs in the external dialog.
25796  Each 
25797 \begin_inset Flex Code
25798 status collapsed
25799
25800 \begin_layout Plain Layout
25801 Transform
25802 \end_layout
25803
25804 \end_inset
25805
25806  command must have either a corresponding 
25807 \begin_inset Flex Code
25808 status collapsed
25809
25810 \begin_layout Plain Layout
25811 TransformCommand
25812 \end_layout
25813
25814 \end_inset
25815
25816  or a 
25817 \begin_inset Flex Code
25818 status collapsed
25819
25820 \begin_layout Plain Layout
25821 TransformOption
25822 \end_layout
25823
25824 \end_inset
25825
25826  command in the 
25827 \begin_inset Flex Code
25828 status collapsed
25829
25830 \begin_layout Plain Layout
25831 Format
25832 \end_layout
25833
25834 \end_inset
25835
25836  section.
25837  Otherwise the transformation will not be supported by that format.
25838 \end_layout
25839
25840 \begin_layout Subsection
25841 The Format section
25842 \end_layout
25843
25844 \begin_layout Description
25845 \begin_inset Flex Code
25846 status collapsed
25847
25848 \begin_layout Plain Layout
25849 Format
25850 \begin_inset space ~
25851 \end_inset
25852
25853 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25854 \end_layout
25855
25856 \end_inset
25857
25858  The primary document file format that this format definition is for.
25859  Not every template has a sensible representation in all document file formats.
25860  Please define nevertheless a 
25861 \begin_inset Flex Code
25862 status collapsed
25863
25864 \begin_layout Plain Layout
25865 Format
25866 \end_layout
25867
25868 \end_inset
25869
25870  section for all templates.
25871  Use a dummy text when no representation is available.
25872  Then you can at least see a reference to the external material in the exported
25873  document.
25874 \end_layout
25875
25876 \begin_layout Description
25877 \begin_inset Flex Code
25878 status collapsed
25879
25880 \begin_layout Plain Layout
25881 Option
25882 \begin_inset space ~
25883 \end_inset
25884
25885 <name>
25886 \begin_inset space ~
25887 \end_inset
25888
25889 <value>
25890 \end_layout
25891
25892 \end_inset
25893
25894  This command defines an additional macro 
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 $$<name>
25900 \end_layout
25901
25902 \end_inset
25903
25904  for substitution in 
25905 \begin_inset Flex Code
25906 status collapsed
25907
25908 \begin_layout Plain Layout
25909 Product
25910 \end_layout
25911
25912 \end_inset
25913
25914 .
25915  
25916 \begin_inset Flex Code
25917 status collapsed
25918
25919 \begin_layout Plain Layout
25920 <value>
25921 \end_layout
25922
25923 \end_inset
25924
25925  itself may contain substitution macros.
25926  The advantage over using 
25927 \begin_inset Flex Code
25928 status collapsed
25929
25930 \begin_layout Plain Layout
25931 <value>
25932 \end_layout
25933
25934 \end_inset
25935
25936  directly in 
25937 \begin_inset Flex Code
25938 status collapsed
25939
25940 \begin_layout Plain Layout
25941 Product
25942 \end_layout
25943
25944 \end_inset
25945
25946  is that the substituted value of 
25947 \begin_inset Flex Code
25948 status collapsed
25949
25950 \begin_layout Plain Layout
25951 $$<name>
25952 \end_layout
25953
25954 \end_inset
25955
25956  is sanitized so that it is a valid optional argument in the document format.
25957  This command may occur zero or more times.
25958 \end_layout
25959
25960 \begin_layout Description
25961 \begin_inset Flex Code
25962 status collapsed
25963
25964 \begin_layout Plain Layout
25965 Product
25966 \begin_inset space ~
25967 \end_inset
25968
25969 <text>
25970 \end_layout
25971
25972 \end_inset
25973
25974  The text that is inserted in the exported document.
25975  This is actually the most important command and can be quite complex.
25976  This command must occur exactly once.
25977 \end_layout
25978
25979 \begin_layout Description
25980 \begin_inset Flex Code
25981 status collapsed
25982
25983 \begin_layout Plain Layout
25984 Preamble
25985 \begin_inset space ~
25986 \end_inset
25987
25988 <name>
25989 \end_layout
25990
25991 \end_inset
25992
25993  This command specifies a preamble snippet that will be included in the
25994  \SpecialChar LaTeX
25995  preamble.
25996  It has to be defined using 
25997 \begin_inset Flex Code
25998 status collapsed
25999
26000 \begin_layout Plain Layout
26001 PreambleDef
26002 \end_layout
26003
26004 \end_inset
26005
26006  \SpecialChar ldots
26007  
26008 \begin_inset Flex Code
26009 status collapsed
26010
26011 \begin_layout Plain Layout
26012 PreambleDefEnd
26013 \end_layout
26014
26015 \end_inset
26016
26017 .
26018  This command may occur zero or more times.
26019 \end_layout
26020
26021 \begin_layout Description
26022 \begin_inset Flex Code
26023 status collapsed
26024
26025 \begin_layout Plain Layout
26026 ReferencedFile
26027 \begin_inset space ~
26028 \end_inset
26029
26030 <format>
26031 \begin_inset space ~
26032 \end_inset
26033
26034 <filename>
26035 \end_layout
26036
26037 \end_inset
26038
26039  This command denotes files that are created by the conversion process and
26040  are needed for a particular export format.
26041  If the filename is relative, it is interpreted relative to the master document.
26042  This command may be given zero or more times.
26043 \end_layout
26044
26045 \begin_layout Description
26046 \begin_inset Flex Code
26047 status collapsed
26048
26049 \begin_layout Plain Layout
26050 Requirement
26051 \begin_inset space ~
26052 \end_inset
26053
26054 <package>
26055 \end_layout
26056
26057 \end_inset
26058
26059  The name of a required \SpecialChar LaTeX
26060  package.
26061  The package is included via 
26062 \begin_inset Flex Code
26063 status collapsed
26064
26065 \begin_layout Plain Layout
26066
26067 \backslash
26068 usepackage{}
26069 \end_layout
26070
26071 \end_inset
26072
26073  in the \SpecialChar LaTeX
26074  preamble.
26075  This command may occur zero or more times.
26076 \end_layout
26077
26078 \begin_layout Description
26079 \begin_inset Flex Code
26080 status collapsed
26081
26082 \begin_layout Plain Layout
26083 TransformCommand
26084 \begin_inset space ~
26085 \end_inset
26086
26087 Rotate
26088 \begin_inset space ~
26089 \end_inset
26090
26091 RotationLatexCommand
26092 \end_layout
26093
26094 \end_inset
26095
26096  This command specifies that the built in \SpecialChar LaTeX
26097  command should be used for rotation.
26098  This command may occur once or not at all.
26099 \end_layout
26100
26101 \begin_layout Description
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 TransformCommand
26107 \begin_inset space ~
26108 \end_inset
26109
26110 Resize
26111 \begin_inset space ~
26112 \end_inset
26113
26114 ResizeLatexCommand
26115 \end_layout
26116
26117 \end_inset
26118
26119  This command specifies that the built in \SpecialChar LaTeX
26120  command should be used for resizing.
26121  This command may occur once or not at all.
26122 \end_layout
26123
26124 \begin_layout Description
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 TransformOption
26130 \begin_inset space ~
26131 \end_inset
26132
26133 Rotate
26134 \begin_inset space ~
26135 \end_inset
26136
26137 RotationLatexOption
26138 \end_layout
26139
26140 \end_inset
26141
26142  This command specifies that rotation is done via an optional argument.
26143  This command may occur once or not at all.
26144 \end_layout
26145
26146 \begin_layout Description
26147 \begin_inset Flex Code
26148 status collapsed
26149
26150 \begin_layout Plain Layout
26151 TransformOption
26152 \begin_inset space ~
26153 \end_inset
26154
26155 Resize
26156 \begin_inset space ~
26157 \end_inset
26158
26159 ResizeLatexOption
26160 \end_layout
26161
26162 \end_inset
26163
26164  This command specifies that resizing is done via an optional argument.
26165  This command may occur once or not at all.
26166 \end_layout
26167
26168 \begin_layout Description
26169 \begin_inset Flex Code
26170 status collapsed
26171
26172 \begin_layout Plain Layout
26173 TransformOption
26174 \begin_inset space ~
26175 \end_inset
26176
26177 Clip
26178 \begin_inset space ~
26179 \end_inset
26180
26181 ClipLatexOption
26182 \end_layout
26183
26184 \end_inset
26185
26186  This command specifies that clipping is done via an optional argument.
26187  This command may occur once or not at all.
26188 \end_layout
26189
26190 \begin_layout Description
26191 \begin_inset Flex Code
26192 status collapsed
26193
26194 \begin_layout Plain Layout
26195 TransformOption
26196 \begin_inset space ~
26197 \end_inset
26198
26199 Extra
26200 \begin_inset space ~
26201 \end_inset
26202
26203 ExtraLatexOption
26204 \end_layout
26205
26206 \end_inset
26207
26208  This command specifies that an extra optional argument is used.
26209  This command may occur once or not at all.
26210 \end_layout
26211
26212 \begin_layout Description
26213 \begin_inset Flex Code
26214 status collapsed
26215
26216 \begin_layout Plain Layout
26217 UpdateFormat
26218 \begin_inset space ~
26219 \end_inset
26220
26221 <format>
26222 \end_layout
26223
26224 \end_inset
26225
26226  The file format of the converted file.
26227  This must be the name of a format that is known to \SpecialChar LyX
26228  (see the 
26229 \begin_inset Flex Noun
26230 status collapsed
26231
26232 \begin_layout Plain Layout
26233 Tools\SpecialChar menuseparator
26234 Preferences\SpecialChar menuseparator
26235 File Handling\SpecialChar menuseparator
26236 File Format
26237 \end_layout
26238
26239 \end_inset
26240
26241  dialog).
26242  This command must occur exactly once.
26243  If the resulting file format is PDF, you need to specify the format 
26244 \begin_inset Flex Code
26245 status collapsed
26246
26247 \begin_layout Plain Layout
26248 pdf6
26249 \end_layout
26250
26251 \end_inset
26252
26253 .
26254  This is the PDF format used for including graphics.
26255  The other defined PDF formats are for document export.
26256 \end_layout
26257
26258 \begin_layout Description
26259 \begin_inset Flex Code
26260 status collapsed
26261
26262 \begin_layout Plain Layout
26263 UpdateResult
26264 \begin_inset space ~
26265 \end_inset
26266
26267 <filename>
26268 \end_layout
26269
26270 \end_inset
26271
26272  The file name of the converted file.
26273  The file name must be absolute.
26274  This command must occur exactly once.
26275 \end_layout
26276
26277 \begin_layout Subsection
26278 Preamble definitions
26279 \end_layout
26280
26281 \begin_layout Standard
26282 The external template configuration file may contain additional preamble
26283  definitions enclosed by 
26284 \begin_inset Flex Code
26285 status collapsed
26286
26287 \begin_layout Plain Layout
26288 PreambleDef
26289 \end_layout
26290
26291 \end_inset
26292
26293  \SpecialChar ldots
26294  
26295 \begin_inset Flex Code
26296 status collapsed
26297
26298 \begin_layout Plain Layout
26299 PreambleDefEnd
26300 \end_layout
26301
26302 \end_inset
26303
26304 .
26305  They can be used by the templates in the 
26306 \begin_inset Flex Code
26307 status collapsed
26308
26309 \begin_layout Plain Layout
26310 Format
26311 \end_layout
26312
26313 \end_inset
26314
26315  section.
26316 \end_layout
26317
26318 \begin_layout Section
26319 The substitution mechanism
26320 \end_layout
26321
26322 \begin_layout Standard
26323 When the external material facility invokes an external program, it is done
26324  on the basis of a command defined in the template configuration file.
26325  These commands can contain various macros that are expanded before execution.
26326  Execution always take place in the directory of the containing document.
26327 \end_layout
26328
26329 \begin_layout Standard
26330 Also, whenever external material is to be displayed, the name will be produced
26331  by the substitution mechanism, and most other commands in the template
26332  definition support substitution as well.
26333 \end_layout
26334
26335 \begin_layout Standard
26336 The available macros are the following:
26337 \end_layout
26338
26339 \begin_layout Description
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 $$AbsOrRelPathMaster
26345 \end_layout
26346
26347 \end_inset
26348
26349  The file path, absolute or relative to the master \SpecialChar LyX
26350  document.
26351 \end_layout
26352
26353 \begin_layout Description
26354 \begin_inset Flex Code
26355 status collapsed
26356
26357 \begin_layout Plain Layout
26358 $$AbsOrRelPathParent
26359 \end_layout
26360
26361 \end_inset
26362
26363  The file path, absolute or relative to the \SpecialChar LyX
26364  document.
26365 \end_layout
26366
26367 \begin_layout Description
26368 \begin_inset Flex Code
26369 status collapsed
26370
26371 \begin_layout Plain Layout
26372 $$AbsPath
26373 \end_layout
26374
26375 \end_inset
26376
26377  The absolute file path.
26378 \end_layout
26379
26380 \begin_layout Description
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 $$Basename
26386 \end_layout
26387
26388 \end_inset
26389
26390  The filename without path and without the extension.
26391 \end_layout
26392
26393 \begin_layout Description
26394 \begin_inset Flex Code
26395 status collapsed
26396
26397 \begin_layout Plain Layout
26398 $$Contents(
26399 \begin_inset Quotes eld
26400 \end_inset
26401
26402 filename.ext
26403 \begin_inset Quotes erd
26404 \end_inset
26405
26406 )
26407 \end_layout
26408
26409 \end_inset
26410
26411  This macro will expand to the contents of the file with the name 
26412 \begin_inset Flex Code
26413 status collapsed
26414
26415 \begin_layout Plain Layout
26416 filename.ext
26417 \end_layout
26418
26419 \end_inset
26420
26421 .
26422 \end_layout
26423
26424 \begin_layout Description
26425 \begin_inset Flex Code
26426 status collapsed
26427
26428 \begin_layout Plain Layout
26429 $$Extension
26430 \end_layout
26431
26432 \end_inset
26433
26434  The file extension (including the dot).
26435 \end_layout
26436
26437 \begin_layout Description
26438 \begin_inset Flex Code
26439 status collapsed
26440
26441 \begin_layout Plain Layout
26442 $$pngOrjpg
26443 \end_layout
26444
26445 \end_inset
26446
26447  This will be the string 
26448 \begin_inset Quotes eld
26449 \end_inset
26450
26451 jpg
26452 \begin_inset Quotes erd
26453 \end_inset
26454
26455  if the file is in JPEG format, otherwise it will be the string 
26456 \begin_inset Quotes eld
26457 \end_inset
26458
26459 png
26460 \begin_inset Quotes erd
26461 \end_inset
26462
26463 .
26464  This is useful to avoid uneeded conversions for output formats that support
26465  both PNG and JPEG fomats.
26466  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26467  output
26468  format.
26469 \end_layout
26470
26471 \begin_layout Description
26472 \begin_inset Flex Code
26473 status collapsed
26474
26475 \begin_layout Plain Layout
26476 $$FName
26477 \end_layout
26478
26479 \end_inset
26480
26481  The filename of the file specified in the external material dialog.
26482  This is either an absolute name, or it is relative to the \SpecialChar LyX
26483  document.
26484 \end_layout
26485
26486 \begin_layout Description
26487 \begin_inset Flex Code
26488 status collapsed
26489
26490 \begin_layout Plain Layout
26491 $$FPath
26492 \end_layout
26493
26494 \end_inset
26495
26496  The path part of 
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 $$FName
26502 \end_layout
26503
26504 \end_inset
26505
26506  (absolute name or relative to the \SpecialChar LyX
26507  document).
26508 \end_layout
26509
26510 \begin_layout Description
26511 \begin_inset Flex Code
26512 status collapsed
26513
26514 \begin_layout Plain Layout
26515 $$RelPathMaster
26516 \end_layout
26517
26518 \end_inset
26519
26520  The file path, relative to the master \SpecialChar LyX
26521  document.
26522 \end_layout
26523
26524 \begin_layout Description
26525 \begin_inset Flex Code
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 $$RelPathParent
26530 \end_layout
26531
26532 \end_inset
26533
26534  The file path, relative to the \SpecialChar LyX
26535  document.
26536 \end_layout
26537
26538 \begin_layout Description
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543 $$Sysdir
26544 \end_layout
26545
26546 \end_inset
26547
26548  This macro will expand to the absolute path of the system directory.
26549  This is typically used to point to the various helper scripts that are
26550  bundled with \SpecialChar LyX
26551 .
26552 \end_layout
26553
26554 \begin_layout Description
26555 \begin_inset Flex Code
26556 status collapsed
26557
26558 \begin_layout Plain Layout
26559 $$Tempname
26560 \end_layout
26561
26562 \end_inset
26563
26564  A name and full path to a temporary file which will be automatically deleted
26565  whenever the containing document is closed, or the external material insertion
26566  deleted.
26567 \end_layout
26568
26569 \begin_layout Standard
26570 All path macros contain a trailing directory separator, so you can construct
26571  e.
26572 \begin_inset space \thinspace{}
26573 \end_inset
26574
26575 g.
26576 \begin_inset space \space{}
26577 \end_inset
26578
26579 the absolute filename with 
26580 \begin_inset Flex Code
26581 status collapsed
26582
26583 \begin_layout Plain Layout
26584 $$AbsPath$$Basename$$Extension
26585 \end_layout
26586
26587 \end_inset
26588
26589 .
26590 \end_layout
26591
26592 \begin_layout Standard
26593 The macros above are substituted in all commands unless otherwise noted.
26594  The command 
26595 \begin_inset Flex Code
26596 status collapsed
26597
26598 \begin_layout Plain Layout
26599 Product
26600 \end_layout
26601
26602 \end_inset
26603
26604  supports additionally the following substitutions if they are enabled by
26605  the 
26606 \begin_inset Flex Code
26607 status collapsed
26608
26609 \begin_layout Plain Layout
26610 Transform
26611 \end_layout
26612
26613 \end_inset
26614
26615  and 
26616 \begin_inset Flex Code
26617 status collapsed
26618
26619 \begin_layout Plain Layout
26620 TransformCommand
26621 \end_layout
26622
26623 \end_inset
26624
26625  commands:
26626 \end_layout
26627
26628 \begin_layout Description
26629 \begin_inset Flex Code
26630 status collapsed
26631
26632 \begin_layout Plain Layout
26633 $$ResizeFront
26634 \end_layout
26635
26636 \end_inset
26637
26638  The front part of the resize command.
26639 \end_layout
26640
26641 \begin_layout Description
26642 \begin_inset Flex Code
26643 status collapsed
26644
26645 \begin_layout Plain Layout
26646 $$ResizeBack
26647 \end_layout
26648
26649 \end_inset
26650
26651  The back part of the resize command.
26652 \end_layout
26653
26654 \begin_layout Description
26655 \begin_inset Flex Code
26656 status collapsed
26657
26658 \begin_layout Plain Layout
26659 $$RotateFront
26660 \end_layout
26661
26662 \end_inset
26663
26664  The front part of the rotation command.
26665 \end_layout
26666
26667 \begin_layout Description
26668 \begin_inset Flex Code
26669 status collapsed
26670
26671 \begin_layout Plain Layout
26672 $$RotateBack
26673 \end_layout
26674
26675 \end_inset
26676
26677  The back part of the rotation command.
26678 \end_layout
26679
26680 \begin_layout Standard
26681 The value string of the 
26682 \begin_inset Flex Code
26683 status collapsed
26684
26685 \begin_layout Plain Layout
26686 Option
26687 \end_layout
26688
26689 \end_inset
26690
26691  command supports additionally the following substitutions if they are enabled
26692  by the 
26693 \begin_inset Flex Code
26694 status collapsed
26695
26696 \begin_layout Plain Layout
26697 Transform
26698 \end_layout
26699
26700 \end_inset
26701
26702  and 
26703 \begin_inset Flex Code
26704 status collapsed
26705
26706 \begin_layout Plain Layout
26707 TransformOption
26708 \end_layout
26709
26710 \end_inset
26711
26712  commands:
26713 \end_layout
26714
26715 \begin_layout Description
26716 \begin_inset Flex Code
26717 status collapsed
26718
26719 \begin_layout Plain Layout
26720 $$Clip
26721 \end_layout
26722
26723 \end_inset
26724
26725  The clip option.
26726 \end_layout
26727
26728 \begin_layout Description
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 $$Extra
26734 \end_layout
26735
26736 \end_inset
26737
26738  The extra option.
26739 \end_layout
26740
26741 \begin_layout Description
26742 \begin_inset Flex Code
26743 status collapsed
26744
26745 \begin_layout Plain Layout
26746 $$Resize
26747 \end_layout
26748
26749 \end_inset
26750
26751  The resize option.
26752 \end_layout
26753
26754 \begin_layout Description
26755 \begin_inset Flex Code
26756 status collapsed
26757
26758 \begin_layout Plain Layout
26759 $$Rotate
26760 \end_layout
26761
26762 \end_inset
26763
26764  The rotation option.
26765 \end_layout
26766
26767 \begin_layout Standard
26768 You may ask why there are so many path macros.
26769  There are mainly two reasons:
26770 \end_layout
26771
26772 \begin_layout Enumerate
26773 Relative and absolute file names should remain relative or absolute, respectivel
26774 y.
26775  Users may have reasons to prefer either form.
26776  Relative names are useful for portable documents that should work on different
26777  machines, for example.
26778  Absolute names may be required by some programs.
26779 \end_layout
26780
26781 \begin_layout Enumerate
26782 \SpecialChar LaTeX
26783  treats relative file names differently than \SpecialChar LyX
26784  and other programs in nested
26785  included files.
26786  For \SpecialChar LyX
26787 , a relative file name is always relative to the document that contains
26788  the file name.
26789  For \SpecialChar LaTeX
26790 , it is always relative to the master document.
26791  These two definitions are identical if you have only one document, but
26792  differ if you have a master document that includes part documents.
26793  That means that relative filenames must be transformed when presented to
26794  \SpecialChar LaTeX
26795 .
26796  Fortunately \SpecialChar LyX
26797  does this automatically for you if you choose the right macros.
26798 \end_layout
26799
26800 \begin_layout Standard
26801 So which path macro should be used in new template definitions? The rule
26802  is not difficult:
26803 \end_layout
26804
26805 \begin_layout Itemize
26806 Use 
26807 \begin_inset Flex Code
26808 status collapsed
26809
26810 \begin_layout Plain Layout
26811 $$AbsPath
26812 \end_layout
26813
26814 \end_inset
26815
26816  if an absolute path is required.
26817 \end_layout
26818
26819 \begin_layout Itemize
26820 Use 
26821 \begin_inset Flex Code
26822 status collapsed
26823
26824 \begin_layout Plain Layout
26825 $$AbsOrRelPathMaster
26826 \end_layout
26827
26828 \end_inset
26829
26830  if the substituted string is some kind of \SpecialChar LaTeX
26831  input.
26832 \end_layout
26833
26834 \begin_layout Itemize
26835 Else use 
26836 \begin_inset Flex Code
26837 status collapsed
26838
26839 \begin_layout Plain Layout
26840 $$AbsOrRelPathParent
26841 \end_layout
26842
26843 \end_inset
26844
26845  in order to preserve the user's choice.
26846 \end_layout
26847
26848 \begin_layout Standard
26849 There are special cases where this rule does not work and e.
26850 \begin_inset space \thinspace{}
26851 \end_inset
26852
26853 g.
26854 \begin_inset space \space{}
26855 \end_inset
26856
26857 relative names are needed, but normally it will work just fine.
26858  One example for such a case is the command 
26859 \begin_inset Flex Code
26860 status collapsed
26861
26862 \begin_layout Plain Layout
26863 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26864 \end_layout
26865
26866 \end_inset
26867
26868  in the XFig template above: We can't use the absolute name because the
26869  copier for 
26870 \begin_inset Flex Code
26871 status collapsed
26872
26873 \begin_layout Plain Layout
26874 .pstex_t
26875 \end_layout
26876
26877 \end_inset
26878
26879  files needs the relative name in order to rewrite the file content.
26880 \end_layout
26881
26882 \begin_layout Section
26883 Security discussion
26884 \begin_inset CommandInset label
26885 LatexCommand label
26886 name "sec:Security-discussion"
26887
26888 \end_inset
26889
26890
26891 \end_layout
26892
26893 \begin_layout Standard
26894 The external material feature interfaces with a lot of external programs
26895  and does so automatically, so we have to consider the security implications
26896  of this.
26897  In particular, since you have the option of including your own filenames
26898  and/or parameter strings and those are expanded into a command, it seems
26899  that it would be possible to create a malicious document which executes
26900  arbitrary commands when a user views or prints the document.
26901  This is something we definitely want to avoid.
26902 \end_layout
26903
26904 \begin_layout Standard
26905 However, since the external program commands are specified in the template
26906  configuration file only, there are no security issues if \SpecialChar LyX
26907  is properly configure
26908 d with safe templates only.
26909  This is so because the external programs are invoked with the 
26910 \begin_inset Flex Code
26911 status collapsed
26912
26913 \begin_layout Plain Layout
26914 execvp
26915 \end_layout
26916
26917 \end_inset
26918
26919 -system call rather than the 
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 system
26925 \end_layout
26926
26927 \end_inset
26928
26929  system-call, so it's not possible to execute arbitrary commands from the
26930  filename or parameter section via the shell.
26931 \end_layout
26932
26933 \begin_layout Standard
26934 This also implies that you are restricted in what command strings you can
26935  use in the external material templates.
26936  In particular, pipes and redirection are not readily available.
26937  This has to be so if \SpecialChar LyX
26938  should remain safe.
26939  If you want to use some of the shell features, you should write a safe
26940  script to do this in a controlled manner, and then invoke the script from
26941  the command string.
26942  
26943 \end_layout
26944
26945 \begin_layout Standard
26946 It is possible to design a template that interacts directly with the shell,
26947  but since this would allow a malicious user to execute arbitrary commands
26948  by writing clever filenames and/or parameters, we generally recommend that
26949  you only use safe scripts that work with the 
26950 \begin_inset Flex Code
26951 status collapsed
26952
26953 \begin_layout Plain Layout
26954 execvp
26955 \end_layout
26956
26957 \end_inset
26958
26959  system call in a controlled manner.
26960  Of course, for use in a controlled environment, it can be tempting to just
26961  fall back to use ordinary shell scripts.
26962  If you do so, be aware that you 
26963 \emph on
26964 will
26965 \emph default
26966  provide an easily exploitable security hole in your system.
26967  Of course it stands to reason that such unsafe templates will never be
26968  included in the standard \SpecialChar LyX
26969  distribution, although we do encourage people
26970  to submit new templates in the open source tradition.
26971  But \SpecialChar LyX
26972  as shipped from the official distribution channels will never have
26973  unsafe templates.
26974 \end_layout
26975
26976 \begin_layout Standard
26977 Including external material provides a lot of power, and you have to be
26978  careful not to introduce security hazards with this power.
26979  A subtle error in a single line in an innocent looking script can open
26980  the door to huge security problems.
26981  So if you do not fully understand the issues, we recommend that you consult
26982  a knowledgeable security professional or the \SpecialChar LyX
26983  development team if you have
26984  any questions about whether a given template is safe or not.
26985  And do this before you use it in an uncontrolled environment.
26986 \end_layout
26987
26988 \begin_layout Chapter
26989 \start_of_appendix
26990 List of supported \SpecialChar LyX
26991  functions to be used in layouts
26992 \begin_inset CommandInset label
26993 LatexCommand label
26994 name "chap:List-of-functions"
26995
26996 \end_inset
26997
26998
26999 \end_layout
27000
27001 \begin_layout Standard
27002 \align center
27003 \begin_inset Tabular
27004 <lyxtabular version="3" rows="11" columns="8">
27005 <features tabularvalignment="middle">
27006 <column alignment="left" valignment="top">
27007 <column alignment="left" valignment="top">
27008 <column alignment="left" valignment="top">
27009 <column alignment="left" valignment="top">
27010 <column alignment="left" valignment="top">
27011 <column alignment="left" valignment="top">
27012 <column alignment="left" valignment="top">
27013 <column alignment="left" valignment="top">
27014 <row>
27015 <cell alignment="left" valignment="top" usebox="none">
27016 \begin_inset Text
27017
27018 \begin_layout Plain Layout
27019 accents
27020 \end_layout
27021
27022 \end_inset
27023 </cell>
27024 <cell alignment="left" valignment="top" usebox="none">
27025 \begin_inset Text
27026
27027 \begin_layout Plain Layout
27028 booktabs
27029 \end_layout
27030
27031 \end_inset
27032 </cell>
27033 <cell alignment="left" valignment="top" usebox="none">
27034 \begin_inset Text
27035
27036 \begin_layout Plain Layout
27037 feyn
27038 \end_layout
27039
27040 \end_inset
27041 </cell>
27042 <cell alignment="left" valignment="top" usebox="none">
27043 \begin_inset Text
27044
27045 \begin_layout Plain Layout
27046 listings
27047 \end_layout
27048
27049 \end_inset
27050 </cell>
27051 <cell alignment="center" valignment="top" usebox="none">
27052 \begin_inset Text
27053
27054 \begin_layout Plain Layout
27055 natbib
27056 \end_layout
27057
27058 \end_inset
27059 </cell>
27060 <cell alignment="center" valignment="top" usebox="none">
27061 \begin_inset Text
27062
27063 \begin_layout Plain Layout
27064 rotfloat
27065 \end_layout
27066
27067 \end_inset
27068 </cell>
27069 <cell alignment="center" valignment="top" usebox="none">
27070 \begin_inset Text
27071
27072 \begin_layout Plain Layout
27073 tfrupee
27074 \end_layout
27075
27076 \end_inset
27077 </cell>
27078 <cell alignment="center" valignment="top" usebox="none">
27079 \begin_inset Text
27080
27081 \begin_layout Plain Layout
27082 wasysym
27083 \end_layout
27084
27085 \end_inset
27086 </cell>
27087 </row>
27088 <row>
27089 <cell alignment="left" valignment="top" usebox="none">
27090 \begin_inset Text
27091
27092 \begin_layout Plain Layout
27093 amsbsy
27094 \end_layout
27095
27096 \end_inset
27097 </cell>
27098 <cell alignment="left" valignment="top" usebox="none">
27099 \begin_inset Text
27100
27101 \begin_layout Plain Layout
27102 calc
27103 \end_layout
27104
27105 \end_inset
27106 </cell>
27107 <cell alignment="left" valignment="top" usebox="none">
27108 \begin_inset Text
27109
27110 \begin_layout Plain Layout
27111 fixltx2e
27112 \end_layout
27113
27114 \end_inset
27115 </cell>
27116 <cell alignment="left" valignment="top" usebox="none">
27117 \begin_inset Text
27118
27119 \begin_layout Plain Layout
27120 longtable
27121 \end_layout
27122
27123 \end_inset
27124 </cell>
27125 <cell alignment="center" valignment="top" usebox="none">
27126 \begin_inset Text
27127
27128 \begin_layout Plain Layout
27129 nomencl
27130 \end_layout
27131
27132 \end_inset
27133 </cell>
27134 <cell alignment="center" valignment="top" usebox="none">
27135 \begin_inset Text
27136
27137 \begin_layout Plain Layout
27138 rsphrase
27139 \end_layout
27140
27141 \end_inset
27142 </cell>
27143 <cell alignment="center" valignment="top" usebox="none">
27144 \begin_inset Text
27145
27146 \begin_layout Plain Layout
27147 tipa
27148 \end_layout
27149
27150 \end_inset
27151 </cell>
27152 <cell alignment="center" valignment="top" usebox="none">
27153 \begin_inset Text
27154
27155 \begin_layout Plain Layout
27156 wrapfig
27157 \end_layout
27158
27159 \end_inset
27160 </cell>
27161 </row>
27162 <row>
27163 <cell alignment="left" valignment="top" usebox="none">
27164 \begin_inset Text
27165
27166 \begin_layout Plain Layout
27167 amscd
27168 \end_layout
27169
27170 \end_inset
27171 </cell>
27172 <cell alignment="left" valignment="top" usebox="none">
27173 \begin_inset Text
27174
27175 \begin_layout Plain Layout
27176 CJK
27177 \end_layout
27178
27179 \end_inset
27180 </cell>
27181 <cell alignment="left" valignment="top" usebox="none">
27182 \begin_inset Text
27183
27184 \begin_layout Plain Layout
27185 float
27186 \end_layout
27187
27188 \end_inset
27189 </cell>
27190 <cell alignment="left" valignment="top" usebox="none">
27191 \begin_inset Text
27192
27193 \begin_layout Plain Layout
27194 lyxskak
27195 \end_layout
27196
27197 \end_inset
27198 </cell>
27199 <cell alignment="center" valignment="top" usebox="none">
27200 \begin_inset Text
27201
27202 \begin_layout Plain Layout
27203 pdfcolmk
27204 \end_layout
27205
27206 \end_inset
27207 </cell>
27208 <cell alignment="center" valignment="top" usebox="none">
27209 \begin_inset Text
27210
27211 \begin_layout Plain Layout
27212 setspace
27213 \end_layout
27214
27215 \end_inset
27216 </cell>
27217 <cell alignment="center" valignment="top" usebox="none">
27218 \begin_inset Text
27219
27220 \begin_layout Plain Layout
27221 tipx
27222 \end_layout
27223
27224 \end_inset
27225 </cell>
27226 <cell alignment="center" valignment="top" usebox="none">
27227 \begin_inset Text
27228
27229 \begin_layout Plain Layout
27230 xargs
27231 \end_layout
27232
27233 \end_inset
27234 </cell>
27235 </row>
27236 <row>
27237 <cell alignment="left" valignment="top" usebox="none">
27238 \begin_inset Text
27239
27240 \begin_layout Plain Layout
27241 amsmath
27242 \end_layout
27243
27244 \end_inset
27245 </cell>
27246 <cell alignment="left" valignment="top" usebox="none">
27247 \begin_inset Text
27248
27249 \begin_layout Plain Layout
27250 color
27251 \end_layout
27252
27253 \end_inset
27254 </cell>
27255 <cell alignment="left" valignment="top" usebox="none">
27256 \begin_inset Text
27257
27258 \begin_layout Plain Layout
27259 framed
27260 \end_layout
27261
27262 \end_inset
27263 </cell>
27264 <cell alignment="left" valignment="top" usebox="none">
27265 \begin_inset Text
27266
27267 \begin_layout Plain Layout
27268 makeidx
27269 \end_layout
27270
27271 \end_inset
27272 </cell>
27273 <cell alignment="center" valignment="top" usebox="none">
27274 \begin_inset Text
27275
27276 \begin_layout Plain Layout
27277 pdfpages
27278 \end_layout
27279
27280 \end_inset
27281 </cell>
27282 <cell alignment="center" valignment="top" usebox="none">
27283 \begin_inset Text
27284
27285 \begin_layout Plain Layout
27286 shapepar
27287 \end_layout
27288
27289 \end_inset
27290 </cell>
27291 <cell alignment="center" valignment="top" usebox="none">
27292 \begin_inset Text
27293
27294 \begin_layout Plain Layout
27295 tone
27296 \end_layout
27297
27298 \end_inset
27299 </cell>
27300 <cell alignment="center" valignment="top" usebox="none">
27301 \begin_inset Text
27302
27303 \begin_layout Plain Layout
27304 xcolor
27305 \end_layout
27306
27307 \end_inset
27308 </cell>
27309 </row>
27310 <row>
27311 <cell alignment="left" valignment="top" usebox="none">
27312 \begin_inset Text
27313
27314 \begin_layout Plain Layout
27315 amssymb
27316 \end_layout
27317
27318 \end_inset
27319 </cell>
27320 <cell alignment="left" valignment="top" usebox="none">
27321 \begin_inset Text
27322
27323 \begin_layout Plain Layout
27324 covington
27325 \end_layout
27326
27327 \end_inset
27328 </cell>
27329 <cell alignment="left" valignment="top" usebox="none">
27330 \begin_inset Text
27331
27332 \begin_layout Plain Layout
27333 graphicx
27334 \end_layout
27335
27336 \end_inset
27337 </cell>
27338 <cell alignment="left" valignment="top" usebox="none">
27339 \begin_inset Text
27340
27341 \begin_layout Plain Layout
27342 marvosym
27343 \end_layout
27344
27345 \end_inset
27346 </cell>
27347 <cell alignment="center" valignment="top" usebox="none">
27348 \begin_inset Text
27349
27350 \begin_layout Plain Layout
27351 pifont
27352 \end_layout
27353
27354 \end_inset
27355 </cell>
27356 <cell alignment="center" valignment="top" usebox="none">
27357 \begin_inset Text
27358
27359 \begin_layout Plain Layout
27360 slashed
27361 \end_layout
27362
27363 \end_inset
27364 </cell>
27365 <cell alignment="center" valignment="top" usebox="none">
27366 \begin_inset Text
27367
27368 \begin_layout Plain Layout
27369 txfonts
27370 \end_layout
27371
27372 \end_inset
27373 </cell>
27374 <cell alignment="center" valignment="top" usebox="none">
27375 \begin_inset Text
27376
27377 \begin_layout Plain Layout
27378 xy
27379 \end_layout
27380
27381 \end_inset
27382 </cell>
27383 </row>
27384 <row>
27385 <cell alignment="left" valignment="top" usebox="none">
27386 \begin_inset Text
27387
27388 \begin_layout Plain Layout
27389 amstext
27390 \end_layout
27391
27392 \end_inset
27393 </cell>
27394 <cell alignment="left" valignment="top" usebox="none">
27395 \begin_inset Text
27396
27397 \begin_layout Plain Layout
27398 csquotes
27399 \end_layout
27400
27401 \end_inset
27402 </cell>
27403 <cell alignment="left" valignment="top" usebox="none">
27404 \begin_inset Text
27405
27406 \begin_layout Plain Layout
27407 hhline
27408 \end_layout
27409
27410 \end_inset
27411 </cell>
27412 <cell alignment="left" valignment="top" usebox="none">
27413 \begin_inset Text
27414
27415 \begin_layout Plain Layout
27416 mathdesign
27417 \end_layout
27418
27419 \end_inset
27420 </cell>
27421 <cell alignment="center" valignment="top" usebox="none">
27422 \begin_inset Text
27423
27424 \begin_layout Plain Layout
27425 pmboxdraw
27426 \end_layout
27427
27428 \end_inset
27429 </cell>
27430 <cell alignment="center" valignment="top" usebox="none">
27431 \begin_inset Text
27432
27433 \begin_layout Plain Layout
27434 soul
27435 \end_layout
27436
27437 \end_inset
27438 </cell>
27439 <cell alignment="center" valignment="top" usebox="none">
27440 \begin_inset Text
27441
27442 \begin_layout Plain Layout
27443 ulem
27444 \end_layout
27445
27446 \end_inset
27447 </cell>
27448 <cell alignment="center" valignment="top" usebox="none">
27449 \begin_inset Text
27450
27451 \begin_layout Plain Layout
27452 yhmath
27453 \end_layout
27454
27455 \end_inset
27456 </cell>
27457 </row>
27458 <row>
27459 <cell alignment="left" valignment="top" usebox="none">
27460 \begin_inset Text
27461
27462 \begin_layout Plain Layout
27463 amsthm
27464 \end_layout
27465
27466 \end_inset
27467 </cell>
27468 <cell alignment="left" valignment="top" usebox="none">
27469 \begin_inset Text
27470
27471 \begin_layout Plain Layout
27472 dvipost
27473 \end_layout
27474
27475 \end_inset
27476 </cell>
27477 <cell alignment="left" valignment="top" usebox="none">
27478 \begin_inset Text
27479
27480 \begin_layout Plain Layout
27481 hyperref
27482 \end_layout
27483
27484 \end_inset
27485 </cell>
27486 <cell alignment="left" valignment="top" usebox="none">
27487 \begin_inset Text
27488
27489 \begin_layout Plain Layout
27490 mathdots
27491 \end_layout
27492
27493 \end_inset
27494 </cell>
27495 <cell alignment="center" valignment="top" usebox="none">
27496 \begin_inset Text
27497
27498 \begin_layout Plain Layout
27499 polyglossia
27500 \end_layout
27501
27502 \end_inset
27503 </cell>
27504 <cell alignment="center" valignment="top" usebox="none">
27505 \begin_inset Text
27506
27507 \begin_layout Plain Layout
27508 splitidx
27509 \end_layout
27510
27511 \end_inset
27512 </cell>
27513 <cell alignment="center" valignment="top" usebox="none">
27514 \begin_inset Text
27515
27516 \begin_layout Plain Layout
27517 undertilde
27518 \end_layout
27519
27520 \end_inset
27521 </cell>
27522 <cell alignment="center" valignment="top" usebox="none">
27523 \begin_inset Text
27524
27525 \begin_layout Plain Layout
27526
27527 \end_layout
27528
27529 \end_inset
27530 </cell>
27531 </row>
27532 <row>
27533 <cell alignment="left" valignment="top" usebox="none">
27534 \begin_inset Text
27535
27536 \begin_layout Plain Layout
27537 array
27538 \end_layout
27539
27540 \end_inset
27541 </cell>
27542 <cell alignment="left" valignment="top" usebox="none">
27543 \begin_inset Text
27544
27545 \begin_layout Plain Layout
27546 endnotes
27547 \end_layout
27548
27549 \end_inset
27550 </cell>
27551 <cell alignment="left" valignment="top" usebox="none">
27552 \begin_inset Text
27553
27554 \begin_layout Plain Layout
27555 ifsym
27556 \end_layout
27557
27558 \end_inset
27559 </cell>
27560 <cell alignment="left" valignment="top" usebox="none">
27561 \begin_inset Text
27562
27563 \begin_layout Plain Layout
27564 mathrsfs
27565 \end_layout
27566
27567 \end_inset
27568 </cell>
27569 <cell alignment="center" valignment="top" usebox="none">
27570 \begin_inset Text
27571
27572 \begin_layout Plain Layout
27573 prettyref
27574 \end_layout
27575
27576 \end_inset
27577 </cell>
27578 <cell alignment="center" valignment="top" usebox="none">
27579 \begin_inset Text
27580
27581 \begin_layout Plain Layout
27582 subfig
27583 \end_layout
27584
27585 \end_inset
27586 </cell>
27587 <cell alignment="center" valignment="top" usebox="none">
27588 \begin_inset Text
27589
27590 \begin_layout Plain Layout
27591 units
27592 \end_layout
27593
27594 \end_inset
27595 </cell>
27596 <cell alignment="center" valignment="top" usebox="none">
27597 \begin_inset Text
27598
27599 \begin_layout Plain Layout
27600
27601 \end_layout
27602
27603 \end_inset
27604 </cell>
27605 </row>
27606 <row>
27607 <cell alignment="left" valignment="top" usebox="none">
27608 \begin_inset Text
27609
27610 \begin_layout Plain Layout
27611 ascii
27612 \end_layout
27613
27614 \end_inset
27615 </cell>
27616 <cell alignment="left" valignment="top" usebox="none">
27617 \begin_inset Text
27618
27619 \begin_layout Plain Layout
27620 enumitem
27621 \end_layout
27622
27623 \end_inset
27624 </cell>
27625 <cell alignment="left" valignment="top" usebox="none">
27626 \begin_inset Text
27627
27628 \begin_layout Plain Layout
27629 ifthen
27630 \end_layout
27631
27632 \end_inset
27633 </cell>
27634 <cell alignment="left" valignment="top" usebox="none">
27635 \begin_inset Text
27636
27637 \begin_layout Plain Layout
27638 mhchem
27639 \end_layout
27640
27641 \end_inset
27642 </cell>
27643 <cell alignment="center" valignment="top" usebox="none">
27644 \begin_inset Text
27645
27646 \begin_layout Plain Layout
27647 pxfonts
27648 \end_layout
27649
27650 \end_inset
27651 </cell>
27652 <cell alignment="center" valignment="top" usebox="none">
27653 \begin_inset Text
27654
27655 \begin_layout Plain Layout
27656 subscript
27657 \end_layout
27658
27659 \end_inset
27660 </cell>
27661 <cell alignment="center" valignment="top" usebox="none">
27662 \begin_inset Text
27663
27664 \begin_layout Plain Layout
27665 url
27666 \end_layout
27667
27668 \end_inset
27669 </cell>
27670 <cell alignment="center" valignment="top" usebox="none">
27671 \begin_inset Text
27672
27673 \begin_layout Plain Layout
27674
27675 \end_layout
27676
27677 \end_inset
27678 </cell>
27679 </row>
27680 <row>
27681 <cell alignment="left" valignment="top" usebox="none">
27682 \begin_inset Text
27683
27684 \begin_layout Plain Layout
27685 bbding
27686 \end_layout
27687
27688 \end_inset
27689 </cell>
27690 <cell alignment="left" valignment="top" usebox="none">
27691 \begin_inset Text
27692
27693 \begin_layout Plain Layout
27694 esint
27695 \end_layout
27696
27697 \end_inset
27698 </cell>
27699 <cell alignment="left" valignment="top" usebox="none">
27700 \begin_inset Text
27701
27702 \begin_layout Plain Layout
27703 jurabib
27704 \end_layout
27705
27706 \end_inset
27707 </cell>
27708 <cell alignment="left" valignment="top" usebox="none">
27709 \begin_inset Text
27710
27711 \begin_layout Plain Layout
27712 multicol
27713 \end_layout
27714
27715 \end_inset
27716 </cell>
27717 <cell alignment="center" valignment="top" usebox="none">
27718 \begin_inset Text
27719
27720 \begin_layout Plain Layout
27721 refstyle
27722 \end_layout
27723
27724 \end_inset
27725 </cell>
27726 <cell alignment="center" valignment="top" usebox="none">
27727 \begin_inset Text
27728
27729 \begin_layout Plain Layout
27730 textcomp
27731 \end_layout
27732
27733 \end_inset
27734 </cell>
27735 <cell alignment="center" valignment="top" usebox="none">
27736 \begin_inset Text
27737
27738 \begin_layout Plain Layout
27739 varioref
27740 \end_layout
27741
27742 \end_inset
27743 </cell>
27744 <cell alignment="center" valignment="top" usebox="none">
27745 \begin_inset Text
27746
27747 \begin_layout Plain Layout
27748
27749 \end_layout
27750
27751 \end_inset
27752 </cell>
27753 </row>
27754 <row>
27755 <cell alignment="center" valignment="top" usebox="none">
27756 \begin_inset Text
27757
27758 \begin_layout Plain Layout
27759 bm
27760 \end_layout
27761
27762 \end_inset
27763 </cell>
27764 <cell alignment="center" valignment="top" usebox="none">
27765 \begin_inset Text
27766
27767 \begin_layout Plain Layout
27768 fancybox
27769 \end_layout
27770
27771 \end_inset
27772 </cell>
27773 <cell alignment="center" valignment="top" usebox="none">
27774 \begin_inset Text
27775
27776 \begin_layout Plain Layout
27777 latexsym
27778 \end_layout
27779
27780 \end_inset
27781 </cell>
27782 <cell alignment="center" valignment="top" usebox="none">
27783 \begin_inset Text
27784
27785 \begin_layout Plain Layout
27786 multirow
27787 \end_layout
27788
27789 \end_inset
27790 </cell>
27791 <cell alignment="center" valignment="top" usebox="none">
27792 \begin_inset Text
27793
27794 \begin_layout Plain Layout
27795 rotating
27796 \end_layout
27797
27798 \end_inset
27799 </cell>
27800 <cell alignment="center" valignment="top" usebox="none">
27801 \begin_inset Text
27802
27803 \begin_layout Plain Layout
27804 textgreek
27805 \end_layout
27806
27807 \end_inset
27808 </cell>
27809 <cell alignment="center" valignment="top" usebox="none">
27810 \begin_inset Text
27811
27812 \begin_layout Plain Layout
27813 verbatim
27814 \end_layout
27815
27816 \end_inset
27817 </cell>
27818 <cell alignment="center" valignment="top" usebox="none">
27819 \begin_inset Text
27820
27821 \begin_layout Plain Layout
27822
27823 \end_layout
27824
27825 \end_inset
27826 </cell>
27827 </row>
27828 </lyxtabular>
27829
27830 \end_inset
27831
27832
27833 \end_layout
27834
27835 \begin_layout Chapter
27836 Names of available colors to be used in layouts
27837 \begin_inset CommandInset label
27838 LatexCommand label
27839 name "chap:Names-of-colors"
27840
27841 \end_inset
27842
27843
27844 \end_layout
27845
27846 \begin_layout Standard
27847 The colors listed here are the standard colors and the those that you can
27848  adjust in the \SpecialChar LyX
27849  preferences.
27850 \end_layout
27851
27852 \begin_layout Description
27853 none
27854 \family roman
27855 \series medium
27856 \shape up
27857 \size normal
27858 \emph off
27859 \bar no
27860 \strikeout off
27861 \uuline off
27862 \uwave off
27863 \noun off
27864 \color none
27865  No particular color – clear or default
27866 \end_layout
27867
27868 \begin_layout Description
27869 black
27870 \end_layout
27871
27872 \begin_layout Description
27873 white
27874 \end_layout
27875
27876 \begin_layout Description
27877 red
27878 \end_layout
27879
27880 \begin_layout Description
27881 green
27882 \end_layout
27883
27884 \begin_layout Description
27885 blue
27886 \end_layout
27887
27888 \begin_layout Description
27889 cyan
27890 \end_layout
27891
27892 \begin_layout Description
27893 magenta
27894 \end_layout
27895
27896 \begin_layout Description
27897 yellow
27898 \end_layout
27899
27900 \begin_layout Description
27901 added_space Added space marker color
27902 \end_layout
27903
27904 \begin_layout Description
27905 addedtext Added text color
27906 \end_layout
27907
27908 \begin_layout Description
27909 appendix Appendix marker color
27910 \end_layout
27911
27912 \begin_layout Description
27913 background Background color
27914 \end_layout
27915
27916 \begin_layout Description
27917 bottomarea Bottom area color
27918 \end_layout
27919
27920 \begin_layout Description
27921 branchlabel Label color for branches
27922 \end_layout
27923
27924 \begin_layout Description
27925 buttonbg Color used for button background
27926 \end_layout
27927
27928 \begin_layout Description
27929 buttonhoverbg Color used for button background under focus
27930 \end_layout
27931
27932 \begin_layout Description
27933 buttonframe Color for inset button frames
27934 \end_layout
27935
27936 \begin_layout Description
27937 changebar Changebar color
27938 \end_layout
27939
27940 \begin_layout Description
27941 changedtextauthor1 Changed text color author 1
27942 \end_layout
27943
27944 \begin_layout Description
27945 changedtextauthor2 Changed text color author 2
27946 \end_layout
27947
27948 \begin_layout Description
27949 changedtextauthor3 Changed text color author 3
27950 \end_layout
27951
27952 \begin_layout Description
27953 changedtextauthor4 Changed text color author 4
27954 \end_layout
27955
27956 \begin_layout Description
27957 changedtextauthor5 Changed text color author 5
27958 \end_layout
27959
27960 \begin_layout Description
27961 collapsable_inset_frame Collapsable insets framecolor
27962 \end_layout
27963
27964 \begin_layout Description
27965 collapsable_inset_text Collapsable insets text color
27966 \end_layout
27967
27968 \begin_layout Description
27969 command Text color for command insets
27970 \end_layout
27971
27972 \begin_layout Description
27973 commandbg Background color for command insets
27974 \end_layout
27975
27976 \begin_layout Description
27977 commandframe Frame color for command insets
27978 \end_layout
27979
27980 \begin_layout Description
27981 comment color for comments
27982 \end_layout
27983
27984 \begin_layout Description
27985 commentbg Background color of comments
27986 \end_layout
27987
27988 \begin_layout Description
27989 cursor Cursor color
27990 \end_layout
27991
27992 \begin_layout Description
27993 deletedtext Deleted text color
27994 \end_layout
27995
27996 \begin_layout Description
27997 deletedtextmodifier Deleted text modifying color
27998 \end_layout
27999
28000 \begin_layout Description
28001 depthbar Color for the depth bars in the margin
28002 \end_layout
28003
28004 \begin_layout Description
28005 eolmarker End of line marker color
28006 \end_layout
28007
28008 \begin_layout Description
28009 error Color of the \SpecialChar LaTeX
28010  error box
28011 \end_layout
28012
28013 \begin_layout Description
28014 footlabel Label color for footnotes
28015 \end_layout
28016
28017 \begin_layout Description
28018 graphicsbg Graphics inset background color
28019 \end_layout
28020
28021 \begin_layout Description
28022 greyedout Label color for greyedout insets
28023 \end_layout
28024
28025 \begin_layout Description
28026 greyedoutbg Background color of greyedout inset
28027 \end_layout
28028
28029 \begin_layout Description
28030 greyedouttext Color for greyedout inset text
28031 \end_layout
28032
28033 \begin_layout Description
28034 indexlabel Label color for index insets
28035 \end_layout
28036
28037 \begin_layout Description
28038 ignore The color is ignored
28039 \end_layout
28040
28041 \begin_layout Description
28042 inherit The color is inherited
28043 \end_layout
28044
28045 \begin_layout Description
28046 inlinecompletion Inline completion color
28047 \end_layout
28048
28049 \begin_layout Description
28050 insetbg Inset marker background color
28051 \end_layout
28052
28053 \begin_layout Description
28054 insetframe Inset marker frame color
28055 \end_layout
28056
28057 \begin_layout Description
28058 language Color for marking foreign language words
28059 \end_layout
28060
28061 \begin_layout Description
28062 latex Text color in \SpecialChar LaTeX
28063  mode
28064 \end_layout
28065
28066 \begin_layout Description
28067 listingsbg Background color of listings inset
28068 \end_layout
28069
28070 \begin_layout Description
28071 marginlabel Label color for margin notes
28072 \end_layout
28073
28074 \begin_layout Description
28075 math Math inset text color
28076 \end_layout
28077
28078 \begin_layout Description
28079 mathbg Math inset background color
28080 \end_layout
28081
28082 \begin_layout Description
28083 mathcorners Math inset frame color not under focus
28084 \end_layout
28085
28086 \begin_layout Description
28087 mathframe Math inset frame color under focus
28088 \end_layout
28089
28090 \begin_layout Description
28091 mathline Math line color
28092 \end_layout
28093
28094 \begin_layout Description
28095 mathmacrobg Macro math inset background color
28096 \end_layout
28097
28098 \begin_layout Description
28099 mathmacroblend Macro math blended color
28100 \end_layout
28101
28102 \begin_layout Description
28103 mathmacroframe Macro math frame color
28104 \end_layout
28105
28106 \begin_layout Description
28107 mathmacrohoverbg Macro math inset background color hovered
28108 \end_layout
28109
28110 \begin_layout Description
28111 mathmacrolabel Macro math label color
28112 \end_layout
28113
28114 \begin_layout Description
28115 mathmacronewarg Macro template color for new parameters
28116 \end_layout
28117
28118 \begin_layout Description
28119 mathmacrooldarg Macro template color for old parameters
28120 \end_layout
28121
28122 \begin_layout Description
28123 newpage New page color
28124 \end_layout
28125
28126 \begin_layout Description
28127 nonunique_inlinecompletion Inline completion color for the non-unique part
28128 \end_layout
28129
28130 \begin_layout Description
28131 notebg Background color of notes
28132 \end_layout
28133
28134 \begin_layout Description
28135 notelabel Label color for notes
28136 \end_layout
28137
28138 \begin_layout Description
28139 pagebreak Page break/line break color
28140 \end_layout
28141
28142 \begin_layout Description
28143 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28144 \end_layout
28145
28146 \begin_layout Description
28147 phantomtext Text color for phantom insets
28148 \end_layout
28149
28150 \begin_layout Description
28151 preview The color used for previews
28152 \end_layout
28153
28154 \begin_layout Description
28155 previewframe Preview frame color
28156 \end_layout
28157
28158 \begin_layout Description
28159 regexpframe Color for regexp frame
28160 \end_layout
28161
28162 \begin_layout Description
28163 selection Background color of selected text
28164 \end_layout
28165
28166 \begin_layout Description
28167 selectiontext Foreground color of selected text
28168 \end_layout
28169
28170 \begin_layout Description
28171 shadedbg Background color of shaded box
28172 \end_layout
28173
28174 \begin_layout Description
28175 special Special chars text color
28176 \end_layout
28177
28178 \begin_layout Description
28179 tabularline Table line color
28180 \end_layout
28181
28182 \begin_layout Description
28183 tabularonoffline Table line color
28184 \end_layout
28185
28186 \begin_layout Description
28187 urllabel Label color for URL insets
28188 \end_layout
28189
28190 \begin_layout Description
28191 urltext Color for URL inset text
28192 \end_layout
28193
28194 \end_body
28195 \end_document