]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Split external_templates to individual *.xtemplate files
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 535
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 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 0
86 \use_package amssymb 0
87 \use_package cancel 0
88 \use_package esint 0
89 \use_package mathdots 1
90 \use_package mathtools 0
91 \use_package mhchem 0
92 \use_package stackrel 0
93 \use_package stmaryrd 0
94 \use_package undertilde 0
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \notefontcolor #0000ff
105 \branch OutDated
106 \selected 0
107 \filename_suffix 0
108 \color #f5fae7
109 \end_branch
110 \index Index
111 \shortcut idx
112 \color #008000
113 \end_index
114 \secnumdepth 3
115 \tocdepth 3
116 \paragraph_separation indent
117 \paragraph_indentation default
118 \quotes_style english
119 \dynamic_quotes 0
120 \papercolumns 1
121 \papersides 2
122 \paperpagestyle headings
123 \tracking_changes true
124 \output_changes false
125 \html_math_output 0
126 \html_css_as_file 0
127 \html_be_strict true
128 \author -712698321 "Jürgen Spitzmüller"
129 \author 2047637253 "Guillaume Munch"
130 \author 2089657418 "Usti"
131 \end_header
132
133 \begin_body
134
135 \begin_layout Title
136 Customizing \SpecialChar LyX
137 : Features for the Advanced User
138 \end_layout
139
140 \begin_layout Author
141 by the \SpecialChar LyX
142  Team
143 \begin_inset Foot
144 status collapsed
145
146 \begin_layout Plain Layout
147 \noindent
148 If you have comments or error corrections, please send them to the \SpecialChar LyX
149  Documentatio
150 n mailing list, 
151 \begin_inset CommandInset href
152 LatexCommand href
153 target "lyx-docs@lists.lyx.org"
154 type "mailto:"
155 literal "false"
156
157 \end_inset
158
159 .
160  Include 
161 \begin_inset Quotes eld
162 \end_inset
163
164 [Customization]
165 \begin_inset Quotes erd
166 \end_inset
167
168  in the subject header, and please cc the current maintainer of this file,
169  Richard Heck <rgheck@comcast.net>.
170 \end_layout
171
172 \end_inset
173
174
175 \begin_inset Newline newline
176 \end_inset
177
178
179 \begin_inset Newline newline
180 \end_inset
181
182 Version 2.2.x 
183 \end_layout
184
185 \begin_layout Standard
186 \begin_inset CommandInset toc
187 LatexCommand tableofcontents
188
189 \end_inset
190
191
192 \end_layout
193
194 \begin_layout Standard
195 \begin_inset Note Note
196 status open
197
198 \begin_layout Plain Layout
199 Please use change tracking when modifying this document.
200  This makes it easier for our translators to recognize things that have
201  been changed, and it helps the maintainer keep up-to-date with what's been
202  done.
203 \end_layout
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Chapter
211 Introduction
212 \end_layout
213
214 \begin_layout Standard
215 This manual covers the customization features present in \SpecialChar LyX
216 .
217  In it, we discuss issues like keyboard shortcuts, screen previewing options,
218  printer options, sending commands to \SpecialChar LyX
219  via the \SpecialChar LyX
220  Server, internationalization,
221  installing new \SpecialChar LaTeX
222  classes and \SpecialChar LyX
223  layouts, etc.
224  We can't possibly hope to touch on everything you can change—our developers
225  add new features faster than we can document them—but we will explain the
226  most common customizations and hopefully point you in the right direction
227  for some of the more obscure ones.
228 \end_layout
229
230 \begin_layout Standard
231 \begin_inset Branch OutDated
232 inverted 0
233 status collapsed
234
235 \begin_layout Standard
236 Information from previous versions of this document that now seems to be
237  outdated is contained in the OutDated branch of this document.
238  By default, this information will not appear in the \SpecialChar LaTeX
239  output.
240 \end_layout
241
242 \end_inset
243
244
245 \end_layout
246
247 \begin_layout Chapter
248 \SpecialChar LyX
249  configuration files
250 \end_layout
251
252 \begin_layout Standard
253 This chapter aims to help you to find your way through the \SpecialChar LyX
254  configuration
255  files.
256  Before continuing to read this chapter, you should find out where your
257  \SpecialChar LyX
258  library and user directories are by using 
259 \begin_inset Flex Noun
260 status collapsed
261
262 \begin_layout Plain Layout
263 Help\SpecialChar menuseparator
264 About
265 \begin_inset space ~
266 \end_inset
267
268 LyX
269 \end_layout
270
271 \end_inset
272
273 .
274  The library directory is the place where \SpecialChar LyX
275  places its system-wide configuration
276  files; the user directory is where you can place your modified versions.
277  We will call the former 
278 \begin_inset Flex Code
279 status collapsed
280
281 \begin_layout Plain Layout
282 LyXDir
283 \end_layout
284
285 \end_inset
286
287  and the latter 
288 \begin_inset Flex Noun
289 status collapsed
290
291 \begin_layout Plain Layout
292 UserDir
293 \end_layout
294
295 \end_inset
296
297  in the remainder of this document.
298  
299 \end_layout
300
301 \begin_layout Section
302 What's in 
303 \begin_inset Flex Code
304 status collapsed
305
306 \begin_layout Plain Layout
307 LyXDir
308 \end_layout
309
310 \end_inset
311
312 ?
313 \end_layout
314
315 \begin_layout Standard
316 \begin_inset Flex Code
317 status collapsed
318
319 \begin_layout Plain Layout
320 LyXDir
321 \end_layout
322
323 \end_inset
324
325  and its sub-directories contain a number of files and that can be used
326  to customize \SpecialChar LyX
327 's behavior.
328  You can change many of these files from within \SpecialChar LyX
329  itself through the 
330 \begin_inset Flex Noun
331 status collapsed
332
333 \begin_layout Plain Layout
334 Tools\SpecialChar menuseparator
335 Preferences
336 \end_layout
337
338 \end_inset
339
340  dialog.
341  Most customization that you will want to do in \SpecialChar LyX
342  is possible through this
343  dialog.
344  However, many other inner aspects of \SpecialChar LyX
345  can be customized by modifying the
346  files in 
347 \begin_inset Flex Code
348 status collapsed
349
350 \begin_layout Plain Layout
351 LyXDir
352 \end_layout
353
354 \end_inset
355
356 .
357  These files fall in different categories, described in the following subsection
358 s.
359 \end_layout
360
361 \begin_layout Subsection
362 Automatically generated files
363 \end_layout
364
365 \begin_layout Standard
366 The files, which are to be found in 
367 \begin_inset Flex Noun
368 status collapsed
369
370 \begin_layout Plain Layout
371 UserDir
372 \end_layout
373
374 \end_inset
375
376 , are generated when you configure \SpecialChar LyX
377 .
378  They contain various default values that are guessed by inspection.
379  In general, it is not a good idea to modify them, since they might be overwritt
380 en at any time.
381 \end_layout
382
383 \begin_layout Labeling
384 \labelwidthstring 00.00.0000
385 \begin_inset Flex Code
386 status collapsed
387
388 \begin_layout Plain Layout
389 lyxrc.defaults
390 \end_layout
391
392 \end_inset
393
394  contains defaults for various commands.
395 \end_layout
396
397 \begin_layout Labeling
398 \labelwidthstring 00.00.0000
399 \begin_inset Flex Code
400 status collapsed
401
402 \begin_layout Plain Layout
403 packages.lst
404 \end_layout
405
406 \end_inset
407
408  contains the list of packages that have been recognized by \SpecialChar LyX
409 .
410  It is currently unused by the \SpecialChar LyX
411  program itself, but the information extracted,
412  and more, is made available with 
413 \begin_inset Flex Noun
414 status collapsed
415
416 \begin_layout Plain Layout
417 Help\SpecialChar menuseparator
418 \SpecialChar LaTeX
419
420 \begin_inset space ~
421 \end_inset
422
423 Configuration
424 \end_layout
425
426 \end_inset
427
428 .
429 \end_layout
430
431 \begin_layout Labeling
432 \labelwidthstring 00.00.0000
433 \begin_inset Flex Code
434 status collapsed
435
436 \begin_layout Plain Layout
437 textclass.lst
438 \end_layout
439
440 \end_inset
441
442  the list of text classes that have been found in your 
443 \begin_inset Flex Code
444 status collapsed
445
446 \begin_layout Plain Layout
447 layout/
448 \end_layout
449
450 \end_inset
451
452  directories, along with the associated \SpecialChar LaTeX
453  document class and their description.
454 \end_layout
455
456 \begin_layout Labeling
457 \labelwidthstring 00.00.0000
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 lyxmodules.lst
463 \end_layout
464
465 \end_inset
466
467  the list of layout modules found in your 
468 \begin_inset Flex Code
469 status collapsed
470
471 \begin_layout Plain Layout
472 layout/
473 \end_layout
474
475 \end_inset
476
477  directories
478 \end_layout
479
480 \begin_layout Labeling
481 \labelwidthstring 00.00.0000
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 *files.lst
487 \end_layout
488
489 \end_inset
490
491  lists of various sorts of \SpecialChar LaTeX
492 -related files found on your system
493 \end_layout
494
495 \begin_layout Labeling
496 \labelwidthstring 00.00.0000
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 doc/\SpecialChar LaTeX
502 Config.lyx
503 \end_layout
504
505 \end_inset
506
507  is automatically generated during configuration from the file 
508 \begin_inset Flex Code
509 status collapsed
510
511 \begin_layout Plain Layout
512 \SpecialChar LaTeX
513 Config.lyx.in
514 \end_layout
515
516 \end_inset
517
518 .
519  It contains information on your \SpecialChar LaTeX
520  configuration.
521 \end_layout
522
523 \begin_layout Subsection
524 Directories
525 \end_layout
526
527 \begin_layout Standard
528 These directories are duplicated between 
529 \begin_inset Flex Code
530 status collapsed
531
532 \begin_layout Plain Layout
533 LyXDir
534 \end_layout
535
536 \end_inset
537
538  and 
539 \begin_inset Flex Code
540 status collapsed
541
542 \begin_layout Plain Layout
543 UserDir
544 \end_layout
545
546 \end_inset
547
548 .
549  If a particular files exists in both places, the one in 
550 \begin_inset Flex Code
551 status collapsed
552
553 \begin_layout Plain Layout
554 UserDir
555 \end_layout
556
557 \end_inset
558
559  will be used.
560 \end_layout
561
562 \begin_layout Labeling
563 \labelwidthstring 00.00.0000
564 \begin_inset Flex Code
565 status collapsed
566
567 \begin_layout Plain Layout
568 bind/
569 \end_layout
570
571 \end_inset
572
573  this directory contains files with the extension 
574 \begin_inset Flex Code
575 status collapsed
576
577 \begin_layout Plain Layout
578 .bind
579 \end_layout
580
581 \end_inset
582
583  that define the keybindings used in \SpecialChar LyX
584 .
585  If there exists an internationalized version of the bind file named 
586 \begin_inset Flex Code
587 status collapsed
588
589 \begin_layout Plain Layout
590 $LANG_xxx.bind
591 \end_layout
592
593 \end_inset
594
595 , that will be used first.
596 \change_inserted -712698321 1483535138
597
598 \end_layout
599
600 \begin_layout Labeling
601 \labelwidthstring 00.00.0000
602
603 \change_inserted -712698321 1483874001
604 \begin_inset Flex Code
605 status collapsed
606
607 \begin_layout Plain Layout
608
609 \change_inserted -712698321 1483535144
610 citeengines/
611 \end_layout
612
613 \end_inset
614
615  contains files with the extension 
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620
621 \change_inserted -712698321 1483869840
622 .citeengine
623 \change_unchanged
624
625 \end_layout
626
627 \end_inset
628
629  which define the diverse citation possibilities (natbib, biblatex etc.).
630  See 
631 \begin_inset CommandInset ref
632 LatexCommand ref
633 reference "subsec:Cite-Engine-Files"
634 plural "false"
635 caps "false"
636 noprefix "false"
637
638 \end_inset
639
640  for details.
641 \change_unchanged
642
643 \end_layout
644
645 \begin_layout Labeling
646 \labelwidthstring 00.00.0000
647 \begin_inset Flex Code
648 status collapsed
649
650 \begin_layout Plain Layout
651 clipart/
652 \end_layout
653
654 \end_inset
655
656  contains graphics files that can be included in documents.
657  
658 \end_layout
659
660 \begin_layout Labeling
661 \labelwidthstring 00.00.0000
662 \begin_inset Flex Code
663 status collapsed
664
665 \begin_layout Plain Layout
666 doc/
667 \end_layout
668
669 \end_inset
670
671  contains \SpecialChar LyX
672  documentation files (including the one you are currently reading).
673  The file 
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 \SpecialChar LaTeX
679 Config.lyx
680 \end_layout
681
682 \end_inset
683
684  deserves special attention, as noted above.
685  The internationalized help docs are in subdirectories 
686 \begin_inset Flex Code
687 status collapsed
688
689 \begin_layout Plain Layout
690 doc/xx
691 \end_layout
692
693 \end_inset
694
695  where 
696 \begin_inset Quotes eld
697 \end_inset
698
699 xx
700 \begin_inset Quotes erd
701 \end_inset
702
703  is the ISO language code.
704  See 
705 \begin_inset CommandInset ref
706 LatexCommand ref
707 reference "cha:Internationalizing-LyX"
708
709 \end_inset
710
711  for details.
712 \end_layout
713
714 \begin_layout Labeling
715 \labelwidthstring 00.00.0000
716 \begin_inset Flex Code
717 status collapsed
718
719 \begin_layout Plain Layout
720 examples/
721 \end_layout
722
723 \end_inset
724
725  contains example files that explain how to use some features.
726  In the file browser, press the 
727 \begin_inset Flex Noun
728 status collapsed
729
730 \begin_layout Plain Layout
731 Examples
732 \end_layout
733
734 \end_inset
735
736  button to get there.
737 \end_layout
738
739 \begin_layout Labeling
740 \labelwidthstring 00.00.0000
741 \begin_inset Flex Code
742 status collapsed
743
744 \begin_layout Plain Layout
745 images/
746 \end_layout
747
748 \end_inset
749
750  contains image files that are used by the 
751 \begin_inset Flex Noun
752 status collapsed
753
754 \begin_layout Plain Layout
755 Document
756 \end_layout
757
758 \end_inset
759
760  dialog.
761  In addition, it also contains the individual icons used in the toolbar
762  and the banners that can be shown when \SpecialChar LyX
763  is launched.
764 \end_layout
765
766 \begin_layout Labeling
767 \labelwidthstring 00.00.0000
768 \begin_inset Flex Code
769 status collapsed
770
771 \begin_layout Plain Layout
772 kbd/
773 \end_layout
774
775 \end_inset
776
777  contains keyboard keymapping files.
778  See 
779 \begin_inset CommandInset ref
780 LatexCommand ref
781 reference "sec:International-Keymap-Stuff"
782
783 \end_inset
784
785  for details.
786 \end_layout
787
788 \begin_layout Labeling
789 \labelwidthstring 00.00.0000
790 \begin_inset Flex Code
791 status collapsed
792
793 \begin_layout Plain Layout
794 layouts/
795 \end_layout
796
797 \end_inset
798
799  contains the text class and module files described in 
800 \begin_inset CommandInset ref
801 LatexCommand ref
802 reference "cha:Installing-New-Document"
803
804 \end_inset
805
806 .
807 \end_layout
808
809 \begin_layout Labeling
810 \labelwidthstring 00.00.0000
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 lyx2lyx
816 \end_layout
817
818 \end_inset
819
820  contains the 
821 \begin_inset Flex Code
822 status collapsed
823
824 \begin_layout Plain Layout
825 lyx2lyx
826 \end_layout
827
828 \end_inset
829
830  Python scripts used to convert between \SpecialChar LyX
831  versions.
832  These can be run from the command line if, say, you want to batch-convert
833  files.
834 \end_layout
835
836 \begin_layout Labeling
837 \labelwidthstring 00.00.0000
838 \begin_inset Flex Code
839 status collapsed
840
841 \begin_layout Plain Layout
842 scripts/
843 \end_layout
844
845 \end_inset
846
847  contains some files that demonstrate the capabilities of the 
848 \begin_inset Flex Noun
849 status collapsed
850
851 \begin_layout Plain Layout
852 External
853 \begin_inset space ~
854 \end_inset
855
856 Template
857 \end_layout
858
859 \end_inset
860
861  feature.
862  Also contains some scripts used by \SpecialChar LyX
863  itself.
864 \end_layout
865
866 \begin_layout Labeling
867 \labelwidthstring 00.00.0000
868 \begin_inset Flex Code
869 status collapsed
870
871 \begin_layout Plain Layout
872 templates/
873 \end_layout
874
875 \end_inset
876
877  contains the standard \SpecialChar LyX
878  template files described in 
879 \begin_inset CommandInset ref
880 LatexCommand ref
881 reference "subsec:Creating-Templates"
882
883 \end_inset
884
885 .
886 \end_layout
887
888 \begin_layout Labeling
889 \labelwidthstring 00.00.0000
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 ui/
895 \end_layout
896
897 \end_inset
898
899  contains files with the extension 
900 \begin_inset Flex Code
901 status collapsed
902
903 \begin_layout Plain Layout
904 .ui
905 \end_layout
906
907 \end_inset
908
909  that define the user interface to \SpecialChar LyX
910 .
911  That is, the files define which items appear in which menus and the items
912  appearing on the toolbar.
913 \change_inserted -712698321 1490533733
914
915 \end_layout
916
917 \begin_layout Labeling
918 \labelwidthstring 00.00.0000
919
920 \change_inserted -712698321 1490533849
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925
926 \change_inserted -712698321 1490533738
927 xtemplates/
928 \end_layout
929
930 \end_inset
931
932  contains files with the extension 
933 \begin_inset Flex Code
934 status collapsed
935
936 \begin_layout Plain Layout
937
938 \change_inserted -712698321 1490533759
939 .xtemplate
940 \end_layout
941
942 \end_inset
943
944  which define the templates for the insertion of external material to a
945  \SpecialChar LyX
946  document; see 
947 \begin_inset CommandInset ref
948 LatexCommand ref
949 reference "chap:Including-External-Material"
950
951 \end_inset
952
953 .
954 \change_unchanged
955
956 \end_layout
957
958 \begin_layout Subsection
959 Files you don't want to modify
960 \end_layout
961
962 \begin_layout Standard
963 These files are used internally by \SpecialChar LyX
964  and you generally do not need to modify
965  them unless you are a developer.
966 \end_layout
967
968 \begin_layout Labeling
969 \labelwidthstring 00.00.0000
970 \begin_inset Flex Code
971 status collapsed
972
973 \begin_layout Plain Layout
974 CREDITS
975 \end_layout
976
977 \end_inset
978
979  this file contains the list of \SpecialChar LyX
980  developers.
981  The contents are displayed with the menu entry 
982 \begin_inset Flex Noun
983 status collapsed
984
985 \begin_layout Plain Layout
986 Help\SpecialChar menuseparator
987 About
988 \begin_inset space ~
989 \end_inset
990
991 LyX
992 \end_layout
993
994 \end_inset
995
996 .
997 \end_layout
998
999 \begin_layout Labeling
1000 \labelwidthstring 00.00.0000
1001 \begin_inset Flex Code
1002 status collapsed
1003
1004 \begin_layout Plain Layout
1005 chkconfig.ltx
1006 \end_layout
1007
1008 \end_inset
1009
1010  this is a \SpecialChar LaTeX
1011  script used during the configuration process.
1012  Do not run directly.
1013 \end_layout
1014
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 configure.py
1022 \end_layout
1023
1024 \end_inset
1025
1026  this is a Python script that is used to re-configure \SpecialChar LyX
1027 .
1028  It creates configuration files in the directory it was run from.
1029 \end_layout
1030
1031 \begin_layout Subsection
1032 Other files needing a line or two
1033 \end_layout
1034
1035 \begin_layout Labeling
1036 \labelwidthstring 00.00.0000
1037 \begin_inset Flex Code
1038 status collapsed
1039
1040 \begin_layout Plain Layout
1041 encodings
1042 \end_layout
1043
1044 \end_inset
1045
1046  this contains tables describing how different character encodings can be
1047  mapped to Unicode
1048 \end_layout
1049
1050 \begin_layout Labeling
1051 \labelwidthstring 00.00.0000
1052
1053 \change_deleted -712698321 1490533856
1054 \begin_inset Flex Code
1055 status collapsed
1056
1057 \begin_layout Plain Layout
1058 external_templates
1059 \end_layout
1060
1061 \end_inset
1062
1063  this file contains the templates available to the new 
1064 \begin_inset Flex Noun
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068 External
1069 \begin_inset space ~
1070 \end_inset
1071
1072 Template
1073 \end_layout
1074
1075 \end_inset
1076
1077  feature, see 
1078 \begin_inset CommandInset ref
1079 LatexCommand ref
1080 reference "chap:Including-External-Material"
1081
1082 \end_inset
1083
1084 .
1085 \change_unchanged
1086
1087 \end_layout
1088
1089 \begin_layout Labeling
1090 \labelwidthstring 00.00.0000
1091 \begin_inset Flex Code
1092 status collapsed
1093
1094 \begin_layout Plain Layout
1095 languages
1096 \end_layout
1097
1098 \end_inset
1099
1100  this file contains a list of all the languages currently supported by \SpecialChar LyX
1101 .
1102 \end_layout
1103
1104 \begin_layout Labeling
1105 \labelwidthstring 00.00.0000
1106 \begin_inset Flex Code
1107 status collapsed
1108
1109 \begin_layout Plain Layout
1110 latexfonts
1111 \end_layout
1112
1113 \end_inset
1114
1115  contains information about the supported fonts.
1116 \end_layout
1117
1118 \begin_layout Labeling
1119 \labelwidthstring 00.00.0000
1120 \begin_inset Flex Code
1121 status collapsed
1122
1123 \begin_layout Plain Layout
1124 layouttranslations
1125 \end_layout
1126
1127 \end_inset
1128
1129  this file contains translations for internationalized paragraph styles
1130  (see 
1131 \begin_inset CommandInset ref
1132 LatexCommand ref
1133 reference "subsec:I18n"
1134
1135 \end_inset
1136
1137 ).
1138 \end_layout
1139
1140 \begin_layout Labeling
1141 \labelwidthstring 00.00.0000
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 unicodesymbols
1147 \end_layout
1148
1149 \end_inset
1150
1151  this file contains information about unicode-encoded glyphs and the way
1152  they are supported by \SpecialChar LyX
1153  via \SpecialChar LaTeX
1154 .
1155 \end_layout
1156
1157 \begin_layout Section
1158 Your local configuration directory
1159 \end_layout
1160
1161 \begin_layout Standard
1162 Even if you are using \SpecialChar LyX
1163  as an unprivileged user, you might want to change
1164  \SpecialChar LyX
1165  configuration for your own use.
1166  The 
1167 \begin_inset Flex Code
1168 status collapsed
1169
1170 \begin_layout Plain Layout
1171 UserDir
1172 \end_layout
1173
1174 \end_inset
1175
1176  directory contains all your personal configuration files.
1177  This is the directory described as 
1178 \begin_inset Quotes eld
1179 \end_inset
1180
1181 user directory
1182 \begin_inset Quotes erd
1183 \end_inset
1184
1185  in 
1186 \begin_inset Flex Noun
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 Help\SpecialChar menuseparator
1191 About
1192 \begin_inset space ~
1193 \end_inset
1194
1195 LyX
1196 \end_layout
1197
1198 \end_inset
1199
1200 .
1201  This directory is used as a mirror of 
1202 \begin_inset Flex Code
1203 status collapsed
1204
1205 \begin_layout Plain Layout
1206 LyXDir
1207 \end_layout
1208
1209 \end_inset
1210
1211 , which means that every file in 
1212 \begin_inset Flex Code
1213 status collapsed
1214
1215 \begin_layout Plain Layout
1216 UserDir
1217 \end_layout
1218
1219 \end_inset
1220
1221  is a replacement for the corresponding file in 
1222 \begin_inset Flex Code
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 LyXDir
1227 \end_layout
1228
1229 \end_inset
1230
1231 .
1232  Any configuration file described in the above sections can be placed either
1233  in the system-wide directory, in which case it will affect all users, or
1234  in your local directory for your own use.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 To make things clearer, let's provide a few examples:
1239 \end_layout
1240
1241 \begin_layout Itemize
1242 The preferences set in the 
1243 \begin_inset Flex Noun
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 Tools\SpecialChar menuseparator
1248 Preferences
1249 \end_layout
1250
1251 \end_inset
1252
1253  dialog are saved to a file 
1254 \begin_inset Flex Code
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 preferences
1259 \end_layout
1260
1261 \end_inset
1262
1263  in 
1264 \begin_inset Flex Code
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 UserDir
1269 \end_layout
1270
1271 \end_inset
1272
1273 .
1274 \end_layout
1275
1276 \begin_layout Itemize
1277 When you reconfigure using 
1278 \begin_inset Flex Noun
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 Tools\SpecialChar menuseparator
1283 Reconfigure
1284 \end_layout
1285
1286 \end_inset
1287
1288 , \SpecialChar LyX
1289  runs the 
1290 \begin_inset Flex Code
1291 status collapsed
1292
1293 \begin_layout Plain Layout
1294 configure.py
1295 \end_layout
1296
1297 \end_inset
1298
1299  script, and the resulting files are written in your local configuration
1300  directory.
1301  This means that any additional text class file that you might have added
1302  in 
1303 \begin_inset Flex Code
1304 status collapsed
1305
1306 \begin_layout Plain Layout
1307 UserDir/layouts
1308 \end_layout
1309
1310 \end_inset
1311
1312  will be added to the list of classes in the 
1313 \begin_inset Flex Noun
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 Document\SpecialChar menuseparator
1318 Settings
1319 \end_layout
1320
1321 \end_inset
1322
1323  dialog.
1324 \end_layout
1325
1326 \begin_layout Itemize
1327 If you get some updated documentation from \SpecialChar LyX
1328  ftp site and cannot install
1329  it because you do not have sysadmin rights on your system, you can just
1330  copy the files in 
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335 UserDir/doc/
1336 \end_layout
1337
1338 \end_inset
1339
1340  and the items in the 
1341 \begin_inset Flex Noun
1342 status collapsed
1343
1344 \begin_layout Plain Layout
1345 Help
1346 \end_layout
1347
1348 \end_inset
1349
1350  menu will open them!
1351 \end_layout
1352
1353 \begin_layout Section
1354 Running \SpecialChar LyX
1355  with multiple configurations
1356 \end_layout
1357
1358 \begin_layout Standard
1359 The configuration freedom of the local configuration directory may not suffice
1360  if you want to have more than one configuration at your disposal.
1361  For example, you may want to be use different key bindings or printer settings
1362  at different times.
1363  You can achieve this by having several such directories.
1364  You then specify which directory to use at run-time.
1365 \end_layout
1366
1367 \begin_layout Standard
1368 Invoking \SpecialChar LyX
1369  with the command line switch 
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374 -userdir
1375 \end_layout
1376
1377 \end_inset
1378
1379  
1380 \emph on
1381 <some directory>
1382 \emph default
1383  instructs the program to read the configuration from that directory, and
1384  not from the default directory.
1385  (You can determine the default directory by running \SpecialChar LyX
1386  without the 
1387 \begin_inset Flex Code
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391 -userdir
1392 \end_layout
1393
1394 \end_inset
1395
1396  switch.) If the specified directory does not exist, \SpecialChar LyX
1397  offers to create it
1398  for you, just like it does for the default directory on the first time
1399  you run the program.
1400  You can modify the configuration options in this additional user directory
1401  exactly as you would for the default directory.
1402  These directories are completely independent (but read on).
1403  Note that setting the environment variable 
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408 LYX_USERDIR_VER
1409 \end_layout
1410
1411 \end_inset
1412
1413  to some value has exactly the same effect.
1414 \end_layout
1415
1416 \begin_layout Standard
1417 Having several configurations also requires more maintenance: if you want
1418  to add a new layout to 
1419 \begin_inset Flex Code
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423 NewUserDir/layouts
1424 \end_layout
1425
1426 \end_inset
1427
1428  which you want available from all your configurations, you must add it
1429  to each directory separately.
1430  You can avoid this with the following trick: after \SpecialChar LyX
1431  creates the additional
1432  directory, most of the subdirectories (see above) are empty.
1433  If you want the new configuration to mirror an existing one, replace the
1434  empty subdirectory with a symbolic link to the matching subdirectory in
1435  the existing configuration.
1436  Take care with the 
1437 \begin_inset Flex Code
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 doc/
1442 \end_layout
1443
1444 \end_inset
1445
1446  subdirectory, however, since it contains a file written by the configuration
1447  script (also accessible through 
1448 \begin_inset Flex Noun
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 Tools\SpecialChar menuseparator
1453 Reconfigure
1454 \end_layout
1455
1456 \end_inset
1457
1458 ) which is configuration-specific.
1459 \end_layout
1460
1461 \begin_layout Chapter
1462 The Preferences dialog
1463 \end_layout
1464
1465 \begin_layout Standard
1466 All options of the preferences dialog are described in the Appendix 
1467 \emph on
1468 The Preferences Dialog
1469 \emph default
1470  in the 
1471 \emph on
1472 User's Guide
1473 \emph default
1474 .
1475  For some options you might find here more details.
1476 \end_layout
1477
1478 \begin_layout Section
1479 Formats
1480 \begin_inset CommandInset label
1481 LatexCommand label
1482 name "sec:Formats"
1483
1484 \end_inset
1485
1486
1487 \end_layout
1488
1489 \begin_layout Standard
1490 The first step is to define your file formats if they are not already defined.
1491  To do so, open the 
1492 \begin_inset Flex Noun
1493 status collapsed
1494
1495 \begin_layout Plain Layout
1496 Tools\SpecialChar menuseparator
1497 Preferences
1498 \end_layout
1499
1500 \end_inset
1501
1502  dialog.
1503  Under 
1504 \begin_inset Flex Noun
1505 status collapsed
1506
1507 \begin_layout Plain Layout
1508 File Handling\SpecialChar menuseparator
1509 File formats
1510 \end_layout
1511
1512 \end_inset
1513
1514  press the 
1515 \begin_inset Flex Noun
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 New
1520 \end_layout
1521
1522 \end_inset
1523
1524  button to define your new format.
1525  The 
1526 \begin_inset Flex Noun
1527 status collapsed
1528
1529 \begin_layout Plain Layout
1530 Format
1531 \end_layout
1532
1533 \end_inset
1534
1535  field contains the name used to identify the format in the GUI.
1536  The 
1537 \begin_inset Flex Noun
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 Short Name
1542 \end_layout
1543
1544 \end_inset
1545
1546  is used to identify the format internally.
1547  You will also need to enter a file extension.
1548  These are all required.
1549  The optional 
1550 \begin_inset Flex Noun
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 Shortcut
1555 \end_layout
1556
1557 \end_inset
1558
1559  field is used to provide a keyboard shortcut on the menus.
1560  (For example, pressing 
1561 \begin_inset Flex Noun
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565 Ctrl+D
1566 \end_layout
1567
1568 \end_inset
1569
1570  will 
1571 \begin_inset Flex Noun
1572 status collapsed
1573
1574 \begin_layout Plain Layout
1575 Document\SpecialChar menuseparator
1576 View (Other Formats)\SpecialChar menuseparator
1577 DVI
1578 \end_layout
1579
1580 \end_inset
1581
1582 .) 
1583 \end_layout
1584
1585 \begin_layout Standard
1586 A Format can have a 
1587 \begin_inset Flex Noun
1588 status collapsed
1589
1590 \begin_layout Plain Layout
1591 Viewer
1592 \end_layout
1593
1594 \end_inset
1595
1596  and an 
1597 \begin_inset Flex Noun
1598 status collapsed
1599
1600 \begin_layout Plain Layout
1601 Editor
1602 \end_layout
1603
1604 \end_inset
1605
1606  associated with it.
1607  For example, you might want to use 
1608 \begin_inset Flex Noun
1609 status collapsed
1610
1611 \begin_layout Plain Layout
1612 Ghostview
1613 \end_layout
1614
1615 \end_inset
1616
1617  to view PostScript files.
1618  You can enter the command needed to start the program in the corresponding
1619  fields.
1620  In defining this command, you can use the four variables listed in the
1621  next section.
1622  The viewer is launched when you view an image in \SpecialChar LyX
1623  or use the 
1624 \begin_inset Flex Noun
1625 status collapsed
1626
1627 \begin_layout Plain Layout
1628 Document\SpecialChar menuseparator
1629 View
1630 \end_layout
1631
1632 \end_inset
1633
1634  menu.
1635  The editor is for example launched when you right-click on an image and
1636  choose 
1637 \begin_inset Flex Noun
1638 status collapsed
1639
1640 \begin_layout Plain Layout
1641 Edit externally
1642 \end_layout
1643
1644 \end_inset
1645
1646  in the appearing context menu.
1647 \end_layout
1648
1649 \begin_layout Standard
1650 The 
1651 \begin_inset Flex Noun
1652 status collapsed
1653
1654 \begin_layout Plain Layout
1655 MIME
1656 \end_layout
1657
1658 \end_inset
1659
1660  type of a format is optional, but if it is specified, it must be unique
1661  across all formats.
1662  It is used to detect files of this format from the file contents.
1663  For some important file formats there is no MIME type officially registered
1664  with the 
1665 \begin_inset CommandInset href
1666 LatexCommand href
1667 name "IANA"
1668 target "http://www.iana.org/assignments/media-types/"
1669 literal "false"
1670
1671 \end_inset
1672
1673 .
1674  Therefore \SpecialChar LyX
1675  uses the extended list of MIME types as specified by 
1676 \begin_inset CommandInset href
1677 LatexCommand href
1678 name "freedesktop.org"
1679 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1680 literal "false"
1681
1682 \end_inset
1683
1684 .
1685 \end_layout
1686
1687 \begin_layout Standard
1688 The 
1689 \begin_inset Flex Noun
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 Document format
1694 \end_layout
1695
1696 \end_inset
1697
1698  option tells \SpecialChar LyX
1699  that a format is suitable for document export.
1700  If this is set and if a suitable conversion route exists (see 
1701 \begin_inset CommandInset ref
1702 LatexCommand ref
1703 reference "sec:Converters"
1704
1705 \end_inset
1706
1707 ), the format will appear in the 
1708 \begin_inset Flex Noun
1709 status collapsed
1710
1711 \begin_layout Plain Layout
1712 File\SpecialChar menuseparator
1713 Export
1714 \end_layout
1715
1716 \end_inset
1717
1718  menu.
1719  The format will also appear in the 
1720 \begin_inset Flex Noun
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 Document\SpecialChar menuseparator
1725 View
1726 \end_layout
1727
1728 \end_inset
1729
1730  menu if a viewer is specified for the format.
1731  Pure image formats, such as 
1732 \begin_inset Flex Code
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 png
1737 \end_layout
1738
1739 \end_inset
1740
1741 , should not use this option.
1742  Formats that can both represent vector graphics and documents like 
1743 \begin_inset Flex Code
1744 status collapsed
1745
1746 \begin_layout Plain Layout
1747 pdf
1748 \end_layout
1749
1750 \end_inset
1751
1752  should use it.
1753 \end_layout
1754
1755 \begin_layout Standard
1756 The option 
1757 \begin_inset Flex Noun
1758 status collapsed
1759
1760 \begin_layout Plain Layout
1761 Vector graphics format
1762 \end_layout
1763
1764 \end_inset
1765
1766  tells \SpecialChar LyX
1767  that a format can contain vector graphics.
1768  This information is used to determine the target format of included graphics
1769  for 
1770 \begin_inset Flex Noun
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 pdflatex
1775 \end_layout
1776
1777 \end_inset
1778
1779  export.
1780  Included graphics may need to be converted to either 
1781 \begin_inset Flex Noun
1782 status collapsed
1783
1784 \begin_layout Plain Layout
1785 pdf
1786 \end_layout
1787
1788 \end_inset
1789
1790
1791 \begin_inset Flex Noun
1792 status collapsed
1793
1794 \begin_layout Plain Layout
1795 png
1796 \end_layout
1797
1798 \end_inset
1799
1800 , or 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 jpg
1806 \end_layout
1807
1808 \end_inset
1809
1810 , since 
1811 \begin_inset Flex Noun
1812 status collapsed
1813
1814 \begin_layout Plain Layout
1815 pdflatex
1816 \end_layout
1817
1818 \end_inset
1819
1820  cannot handle other image formats.
1821  If an included graphic is not already in 
1822 \begin_inset Flex Noun
1823 status collapsed
1824
1825 \begin_layout Plain Layout
1826 pdf
1827 \end_layout
1828
1829 \end_inset
1830
1831
1832 \begin_inset Flex Noun
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836 png
1837 \end_layout
1838
1839 \end_inset
1840
1841 , or 
1842 \begin_inset Flex Noun
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846 jpg
1847 \end_layout
1848
1849 \end_inset
1850
1851  format, it is converted to 
1852 \begin_inset Flex Noun
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 pdf
1857 \end_layout
1858
1859 \end_inset
1860
1861  if the vector format option is set, and otherwise to 
1862 \begin_inset Flex Noun
1863 status collapsed
1864
1865 \begin_layout Plain Layout
1866 png
1867 \end_layout
1868
1869 \end_inset
1870
1871 .
1872 \end_layout
1873
1874 \begin_layout Section
1875 Copiers
1876 \end_layout
1877
1878 \begin_layout Standard
1879 Since all conversions from one format to another take place in \SpecialChar LyX
1880 's temporary
1881  directory, it is sometimes necessary to modify a file before copying it
1882  to the temporary directory in order that the conversion may be performed.
1883 \begin_inset Foot
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 For example, the file may refer to other files—images, for example—using
1888  relative file names, and these may become invalid when the file is copied
1889  to the temporary directory.
1890 \end_layout
1891
1892 \end_inset
1893
1894  This is done by a Copier: It copies a file to (or from) the temporary directory
1895  and may modify it in the process.
1896 \end_layout
1897
1898 \begin_layout Standard
1899 The definitions of the copiers may use eight variables:
1900 \end_layout
1901
1902 \begin_layout Labeling
1903 \labelwidthstring 00.00.0000
1904 \begin_inset Flex Code
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 $$s
1909 \end_layout
1910
1911 \end_inset
1912
1913  The \SpecialChar LyX
1914  system directory (e.
1915 \begin_inset space \thinspace{}
1916 \end_inset
1917
1918 g.
1919 \begin_inset space \space{}
1920 \end_inset
1921
1922
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 /usr/share/lyx
1928 \end_layout
1929
1930 \end_inset
1931
1932 ).
1933 \end_layout
1934
1935 \begin_layout Labeling
1936 \labelwidthstring 00.00.0000
1937 \begin_inset Flex Code
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 $$i
1942 \end_layout
1943
1944 \end_inset
1945
1946  The input file
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$o
1956 \end_layout
1957
1958 \end_inset
1959
1960  The output file
1961 \end_layout
1962
1963 \begin_layout Labeling
1964 \labelwidthstring 00.00.0000
1965 \begin_inset Flex Code
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 $$b
1970 \end_layout
1971
1972 \end_inset
1973
1974  The base name (without filename extension) in the \SpecialChar LyX
1975  temporary directory
1976 \end_layout
1977
1978 \begin_layout Labeling
1979 \labelwidthstring 00.00.0000
1980 \begin_inset Flex Code
1981 status collapsed
1982
1983 \begin_layout Plain Layout
1984 $$p
1985 \end_layout
1986
1987 \end_inset
1988
1989  The full directory path of the \SpecialChar LyX
1990  temporary directory
1991 \end_layout
1992
1993 \begin_layout Labeling
1994 \labelwidthstring 00.00.0000
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 $$r
2000 \end_layout
2001
2002 \end_inset
2003
2004  The full pathname to the original \SpecialChar LyX
2005  file being processed
2006 \end_layout
2007
2008 \begin_layout Labeling
2009 \labelwidthstring 00.00.0000
2010 \begin_inset Flex Code
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014 $$f
2015 \end_layout
2016
2017 \end_inset
2018
2019  The filename (without any directory path) of the \SpecialChar LyX
2020  file.
2021 \end_layout
2022
2023 \begin_layout Labeling
2024 \labelwidthstring 00.00.0000
2025 \begin_inset Flex Code
2026 status collapsed
2027
2028 \begin_layout Plain Layout
2029 $$l
2030 \end_layout
2031
2032 \end_inset
2033
2034  The `\SpecialChar LaTeX
2035  name'
2036 \end_layout
2037
2038 \begin_layout Standard
2039 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2040 's 
2041 \series bold
2042
2043 \backslash
2044 include
2045 \series default
2046  command.
2047  It is relevant only when exporting files suitable for such inclusion.
2048 \end_layout
2049
2050 \begin_layout Standard
2051 Copiers can be used to do almost anything with output files.
2052  For example, suppose you want generated pdf files to be copied to a special
2053  directory, 
2054 \begin_inset Flex Code
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 /home/you/pdf/
2059 \end_layout
2060
2061 \end_inset
2062
2063 .
2064  Then you could write a shell script such as this one:
2065 \end_layout
2066
2067 \begin_layout Standard
2068 \begin_inset listings
2069 inline false
2070 status open
2071
2072 \begin_layout Plain Layout
2073
2074 #!/bin/bash
2075 \end_layout
2076
2077 \begin_layout Plain Layout
2078
2079 FROMFILE=$1
2080 \end_layout
2081
2082 \begin_layout Plain Layout
2083
2084 TOFILE=`basename $2`
2085 \end_layout
2086
2087 \begin_layout Plain Layout
2088
2089 cp $FROMFILE /home/you/pdf/$TOFILE
2090 \end_layout
2091
2092 \end_inset
2093
2094 Save it in your local \SpecialChar LyX
2095  directory—say, 
2096 \begin_inset Flex Code
2097 status collapsed
2098
2099 \begin_layout Plain Layout
2100 /home/you/.lyx/scripts/pdfcopier.sh
2101 \end_layout
2102
2103 \end_inset
2104
2105 —and make it executable, if you need to do so on your platform.
2106  Then, in the 
2107 \begin_inset Flex Noun
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111 Tools\SpecialChar menuseparator
2112 Preferences
2113 \end_layout
2114
2115 \end_inset
2116
2117  dialog, select under 
2118 \begin_inset Flex Noun
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122 File Handling\SpecialChar menuseparator
2123 File formats
2124 \end_layout
2125
2126 \end_inset
2127
2128  the 
2129 \begin_inset Flex Noun
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 PDF(pdflatex)
2134 \end_layout
2135
2136 \end_inset
2137
2138  format—or one of the other pdf formats—and enter 
2139 \begin_inset Flex Code
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 pdfcopier.sh $$i $$o
2144 \end_layout
2145
2146 \end_inset
2147
2148  into the 
2149 \begin_inset Flex Noun
2150 status collapsed
2151
2152 \begin_layout Plain Layout
2153 Copier
2154 \end_layout
2155
2156 \end_inset
2157
2158  field.
2159  
2160 \end_layout
2161
2162 \begin_layout Standard
2163 Copiers are used by \SpecialChar LyX
2164  in various of its own conversions.
2165  For example, if appropriate programs are found, \SpecialChar LyX
2166  will automatically install
2167  copiers for the 
2168 \begin_inset Flex Noun
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 HTML
2173 \end_layout
2174
2175 \end_inset
2176
2177  and 
2178 \begin_inset Flex Noun
2179 status collapsed
2180
2181 \begin_layout Plain Layout
2182 HTML
2183 \begin_inset space ~
2184 \end_inset
2185
2186 (MS Word)
2187 \end_layout
2188
2189 \end_inset
2190
2191  formats.
2192  When these formats are exported, the copier sees that not just the main
2193  HTML file but various associated files (style files, images, etc.) are also
2194  copied.
2195  All these files are written to a subdirectory of the directory in which
2196  the original \SpecialChar LyX
2197  file was found.
2198 \begin_inset Foot
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 This copier can be customized.
2203  The optional 
2204 \begin_inset Quotes eld
2205 \end_inset
2206
2207 -e
2208 \begin_inset Quotes erd
2209 \end_inset
2210
2211  argument takes a comma-separated list of extensions to be copied; if it
2212  is omitted, all files will be copied.
2213  The 
2214 \begin_inset Quotes eld
2215 \end_inset
2216
2217 -t
2218 \begin_inset Quotes erd
2219 \end_inset
2220
2221  argument determines the extension added to the generated directory.
2222  By default, it is 
2223 \begin_inset Quotes eld
2224 \end_inset
2225
2226
2227 \begin_inset Flex Noun
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 LyXconv
2232 \end_layout
2233
2234 \end_inset
2235
2236
2237 \begin_inset Quotes erd
2238 \end_inset
2239
2240 , so HTML generated from 
2241 \begin_inset Flex Noun
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 /path/to/filename.lyx
2246 \end_layout
2247
2248 \end_inset
2249
2250  will end up in 
2251 \begin_inset Flex Noun
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 /path/to/filename.html.LyXconv
2256 \end_layout
2257
2258 \end_inset
2259
2260 .
2261  
2262 \end_layout
2263
2264 \end_inset
2265
2266
2267 \end_layout
2268
2269 \begin_layout Section
2270 Converters
2271 \begin_inset CommandInset label
2272 LatexCommand label
2273 name "sec:Converters"
2274
2275 \end_inset
2276
2277
2278 \end_layout
2279
2280 \begin_layout Standard
2281 You can define your own Converters to convert files between different formats.
2282  This is done in the 
2283 \begin_inset Flex Noun
2284 status collapsed
2285
2286 \begin_layout Plain Layout
2287 Tools\SpecialChar menuseparator
2288 Preferences\SpecialChar menuseparator
2289 File Handling\SpecialChar menuseparator
2290 Converters
2291 \end_layout
2292
2293 \end_inset
2294
2295  dialog.
2296 \end_layout
2297
2298 \begin_layout Standard
2299 To define a new converter, select the 
2300 \begin_inset Flex Noun
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 From
2305 \begin_inset space ~
2306 \end_inset
2307
2308 format
2309 \end_layout
2310
2311 \end_inset
2312
2313  and 
2314 \begin_inset Flex Noun
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 To
2319 \begin_inset space ~
2320 \end_inset
2321
2322 format
2323 \end_layout
2324
2325 \end_inset
2326
2327  from the drop-down lists, enter the command needed for the conversion,
2328  and then press the 
2329 \begin_inset Flex Noun
2330 status collapsed
2331
2332 \begin_layout Plain Layout
2333 Add
2334 \end_layout
2335
2336 \end_inset
2337
2338  button.
2339  Several variables can be used in the definition of converters:
2340 \end_layout
2341
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Flex Code
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 $$s
2349 \end_layout
2350
2351 \end_inset
2352
2353  The \SpecialChar LyX
2354  system directory
2355 \end_layout
2356
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363 $$i
2364 \end_layout
2365
2366 \end_inset
2367
2368  The input file
2369 \end_layout
2370
2371 \begin_layout Labeling
2372 \labelwidthstring 00.00.0000
2373 \begin_inset Flex Code
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377 $$o
2378 \end_layout
2379
2380 \end_inset
2381
2382  The output file
2383 \end_layout
2384
2385 \begin_layout Labeling
2386 \labelwidthstring 00.00.0000
2387 \begin_inset Flex Code
2388 status collapsed
2389
2390 \begin_layout Plain Layout
2391 $$b
2392 \end_layout
2393
2394 \end_inset
2395
2396  The base filename of the input file (i.
2397 \begin_inset space \thinspace{}
2398 \end_inset
2399
2400 g., without the extension)
2401 \end_layout
2402
2403 \begin_layout Labeling
2404 \labelwidthstring 00.00.0000
2405 \begin_inset Flex Code
2406 status collapsed
2407
2408 \begin_layout Plain Layout
2409 $$p
2410 \end_layout
2411
2412 \end_inset
2413
2414  The path to the input file
2415 \end_layout
2416
2417 \begin_layout Labeling
2418 \labelwidthstring 00.00.0000
2419 \begin_inset Flex Code
2420 status collapsed
2421
2422 \begin_layout Plain Layout
2423 $$r
2424 \end_layout
2425
2426 \end_inset
2427
2428  The path to the original input file (this is different from $$p when a
2429  chain of converters is called)
2430 \end_layout
2431
2432 \begin_layout Labeling
2433 \labelwidthstring 00.00.0000
2434 \begin_inset Flex Code
2435 status collapsed
2436
2437 \begin_layout Plain Layout
2438 $$e
2439 \end_layout
2440
2441 \end_inset
2442
2443  The iconv name for the encoding of the document.
2444 \end_layout
2445
2446 \begin_layout Standard
2447 In the 
2448 \begin_inset Flex Noun
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Extra
2453 \begin_inset space ~
2454 \end_inset
2455
2456 Flag
2457 \end_layout
2458
2459 \end_inset
2460
2461  field you can enter the following flags, separated by commas:
2462 \end_layout
2463
2464 \begin_layout Labeling
2465 \labelwidthstring 00.00.0000
2466 \begin_inset Flex Code
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 latex
2471 \end_layout
2472
2473 \end_inset
2474
2475  This converter runs some form of \SpecialChar LaTeX
2476 .
2477  This will make \SpecialChar LyX
2478 's \SpecialChar LaTeX
2479  error logs available.
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 needaux
2489 \end_layout
2490
2491 \end_inset
2492
2493  Needs the \SpecialChar LaTeX
2494  
2495 \begin_inset Flex Noun
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 .aux
2500 \end_layout
2501
2502 \end_inset
2503
2504  file for the conversion.
2505 \end_layout
2506
2507 \begin_layout Labeling
2508 \labelwidthstring 00.00.0000
2509 \begin_inset Flex Code
2510 status collapsed
2511
2512 \begin_layout Plain Layout
2513 nice
2514 \end_layout
2515
2516 \end_inset
2517
2518  Needs a 
2519 \begin_inset Quotes eld
2520 \end_inset
2521
2522 nice
2523 \begin_inset Quotes erd
2524 \end_inset
2525
2526  file from the backend, which in practice means a \SpecialChar LaTeX
2527  file like the one we
2528  would export, without 
2529 \begin_inset Flex Code
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 input@path
2534 \end_layout
2535
2536 \end_inset
2537
2538 .
2539 \end_layout
2540
2541 \begin_layout Labeling
2542 \labelwidthstring 00.00.0000
2543 \begin_inset Flex Code
2544 status collapsed
2545
2546 \begin_layout Plain Layout
2547 xml
2548 \end_layout
2549
2550 \end_inset
2551
2552  Output is XML.
2553 \end_layout
2554
2555 \begin_layout Standard
2556 The following three flags are not really flags at all because they take
2557  an argument in the 
2558 \begin_inset Flex Noun
2559 status collapsed
2560
2561 \begin_layout Plain Layout
2562 key
2563 \begin_inset space ~
2564 \end_inset
2565
2566 =
2567 \begin_inset space ~
2568 \end_inset
2569
2570 value
2571 \end_layout
2572
2573 \end_inset
2574
2575  format:
2576 \end_layout
2577
2578 \begin_layout Labeling
2579 \labelwidthstring 00.00.0000
2580 \begin_inset Flex Code
2581 status collapsed
2582
2583 \begin_layout Plain Layout
2584 parselog
2585 \end_layout
2586
2587 \end_inset
2588
2589  If set, the converter's standard error will be redirected to a file 
2590 \begin_inset Flex Code
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594 infile.out
2595 \end_layout
2596
2597 \end_inset
2598
2599 , and the script given as argument will be run as: 
2600 \begin_inset Flex Code
2601 status collapsed
2602
2603 \begin_layout Plain Layout
2604 script < infile.out > infile.log
2605 \end_layout
2606
2607 \end_inset
2608
2609 .
2610  The argument may contain 
2611 \begin_inset Flex Code
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 $$s
2616 \end_layout
2617
2618 \end_inset
2619
2620 .
2621 \end_layout
2622
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2625 \begin_inset Flex Code
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 resultdir
2630 \end_layout
2631
2632 \end_inset
2633
2634  The name of the directory in which the converter will dump the generated
2635  files.
2636  \SpecialChar LyX
2637  will not create this directory, and it does not copy anything into it,
2638  though it will copy this directory to the destination.
2639  The argument may contain 
2640 \begin_inset Flex Code
2641 status collapsed
2642
2643 \begin_layout Plain Layout
2644 $$b
2645 \end_layout
2646
2647 \end_inset
2648
2649 , which will be replaced by the base name of the input and output files,
2650  respectively, when the directory is copied.
2651 \begin_inset Newline newline
2652 \end_inset
2653
2654 Note that resultdir and usetempdir make no sense together.
2655  The latter will be ignored if the former is given.
2656 \end_layout
2657
2658 \begin_layout Labeling
2659 \labelwidthstring 00.00.0000
2660 \begin_inset Flex Code
2661 status collapsed
2662
2663 \begin_layout Plain Layout
2664 resultfile
2665 \end_layout
2666
2667 \end_inset
2668
2669  Determines the output file name and may, contain 
2670 \begin_inset Flex Code
2671 status collapsed
2672
2673 \begin_layout Plain Layout
2674 $$b
2675 \end_layout
2676
2677 \end_inset
2678
2679 .
2680  Sensible only with resultdir and optional even then; if not given, it defaults
2681  to `index'.
2682 \end_layout
2683
2684 \begin_layout Standard
2685 None of these last three are presently used in any of the converters that
2686  are installed with \SpecialChar LyX
2687 .
2688  
2689 \end_layout
2690
2691 \begin_layout Standard
2692 You do not have to define converters for all formats between which you want
2693  to convert.
2694  For example, you will note that there is no `\SpecialChar LyX
2695  to PostScript' converter,
2696  but \SpecialChar LyX
2697  will export PostScript.
2698  It does so by first creating a \SpecialChar LaTeX
2699  file (no converter needs to be defined
2700  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2701  to DVI' converter,
2702  and finally converting the resulting DVI file to PostScript.
2703  \SpecialChar LyX
2704  finds such `chains' of converters automatically, and it will always choose
2705  the shortest possible chain.
2706  You can, though, still define multiple conversion methods between file
2707  formats.
2708  For example, the standard \SpecialChar LyX
2709  configuration provides five ways to convert
2710  \SpecialChar LaTeX
2711  to PDF:
2712 \end_layout
2713
2714 \begin_layout Enumerate
2715 Directly, using 
2716 \begin_inset Flex Noun
2717 status collapsed
2718
2719 \begin_layout Plain Layout
2720 pdflatex
2721 \end_layout
2722
2723 \end_inset
2724
2725
2726 \end_layout
2727
2728 \begin_layout Enumerate
2729 via (DVI and) PostScript, using 
2730 \begin_inset Flex Noun
2731 status collapsed
2732
2733 \begin_layout Plain Layout
2734 ps2pdf
2735 \end_layout
2736
2737 \end_inset
2738
2739
2740 \end_layout
2741
2742 \begin_layout Enumerate
2743 via DVI, using 
2744 \begin_inset Flex Noun
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 dvipdfm
2749 \end_layout
2750
2751 \end_inset
2752
2753
2754 \end_layout
2755
2756 \begin_layout Enumerate
2757 directly using 
2758 \begin_inset Flex Noun
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 Xe\SpecialChar TeX
2763
2764 \end_layout
2765
2766 \end_inset
2767
2768
2769 \end_layout
2770
2771 \begin_layout Enumerate
2772 directly using 
2773 \begin_inset Flex Noun
2774 status collapsed
2775
2776 \begin_layout Plain Layout
2777 Lua\SpecialChar TeX
2778
2779 \end_layout
2780
2781 \end_inset
2782
2783
2784 \end_layout
2785
2786 \begin_layout Standard
2787 To define such alternate chains, you must define multiple target `file formats',
2788  as described in 
2789 \begin_inset CommandInset ref
2790 LatexCommand ref
2791 reference "sec:Formats"
2792
2793 \end_inset
2794
2795 .
2796  For example, in the standard configuration, the formats named 
2797 \begin_inset Flex Noun
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801 pdf
2802 \end_layout
2803
2804 \end_inset
2805
2806  (for 
2807 \begin_inset Flex Noun
2808 status collapsed
2809
2810 \begin_layout Plain Layout
2811 ps2pdf
2812 \end_layout
2813
2814 \end_inset
2815
2816 ), 
2817 \begin_inset Flex Noun
2818 status collapsed
2819
2820 \begin_layout Plain Layout
2821 pdf2
2822 \end_layout
2823
2824 \end_inset
2825
2826  (for 
2827 \begin_inset Flex Noun
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 pdflatex
2832 \end_layout
2833
2834 \end_inset
2835
2836 ), 
2837 \begin_inset Flex Noun
2838 status collapsed
2839
2840 \begin_layout Plain Layout
2841 pdf3
2842 \end_layout
2843
2844 \end_inset
2845
2846  (for 
2847 \begin_inset Flex Noun
2848 status collapsed
2849
2850 \begin_layout Plain Layout
2851 dvipdfm
2852 \end_layout
2853
2854 \end_inset
2855
2856 ), 
2857 \begin_inset Flex Noun
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861 pdf4
2862 \end_layout
2863
2864 \end_inset
2865
2866  (for 
2867 \begin_inset Flex Noun
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 Xe\SpecialChar TeX
2872
2873 \end_layout
2874
2875 \end_inset
2876
2877 ), and 
2878 \begin_inset Flex Noun
2879 status collapsed
2880
2881 \begin_layout Plain Layout
2882 pdf5
2883 \end_layout
2884
2885 \end_inset
2886
2887  (for 
2888 \begin_inset Flex Noun
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892 Lua\SpecialChar TeX
2893
2894 \end_layout
2895
2896 \end_inset
2897
2898 ) are defined, all of which share the extension 
2899 \begin_inset Flex Noun
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 .pdf
2904 \end_layout
2905
2906 \end_inset
2907
2908 , and which correspond to the conversion methods just mentioned.
2909 \end_layout
2910
2911 \begin_layout Chapter
2912 Internationalizing \SpecialChar LyX
2913
2914 \begin_inset CommandInset label
2915 LatexCommand label
2916 name "cha:Internationalizing-LyX"
2917
2918 \end_inset
2919
2920
2921 \end_layout
2922
2923 \begin_layout Standard
2924 \SpecialChar LyX
2925  supports using a translated interface.
2926  Last time we checked, \SpecialChar LyX
2927  provided text in thirty languages.
2928  The language of choice is called your 
2929 \emph on
2930 locale
2931 \emph default
2932 .
2933  (For further reading on locale settings, see also the documentation for
2934  locale that comes with your operating system.
2935  For Linux, the manual page for 
2936 \begin_inset Flex Code
2937 status collapsed
2938
2939 \begin_layout Plain Layout
2940 locale(5)
2941 \end_layout
2942
2943 \end_inset
2944
2945  could be a good place to start).
2946 \end_layout
2947
2948 \begin_layout Standard
2949 Notice that these translations will work, but do contain a few flaws.
2950  In particular, all dialogs have been designed with the English text in
2951  mind, which means that some of the translated text will be too large to
2952  fit within the space allocated.
2953  This is only a display problem and will not cause any harm.
2954  Also, you will find that some of the translations do not define shortcut
2955  keys for everything.
2956  Sometimes, there are simply not enough free letters to do it.
2957  Other times, the translator just hasn't got around to doing it yet.
2958  Our localization team, which you may wish to join,
2959 \begin_inset Foot
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 If you are a fluent speaker of a language other than English, joining these
2964  teams is a great way to give back to the \SpecialChar LyX
2965  community!
2966 \end_layout
2967
2968 \end_inset
2969
2970  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2971 .
2972 \end_layout
2973
2974 \begin_layout Section
2975 Translating \SpecialChar LyX
2976
2977 \end_layout
2978
2979 \begin_layout Subsection
2980 Translating the graphical user interface (text messages).
2981 \end_layout
2982
2983 \begin_layout Standard
2984 \SpecialChar LyX
2985  uses the GNU 
2986 \begin_inset Flex Code
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990 gettext
2991 \end_layout
2992
2993 \end_inset
2994
2995  library to handle the internationalization of the interface.
2996  To have \SpecialChar LyX
2997  speak your favorite language in all menus and dialogs, you need
2998  a 
2999 \begin_inset Flex Code
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 po
3004 \end_layout
3005
3006 \end_inset
3007
3008 -file for that language.
3009  When this is available, you'll have to generate a 
3010 \begin_inset Flex Code
3011 status collapsed
3012
3013 \begin_layout Plain Layout
3014 mo
3015 \end_layout
3016
3017 \end_inset
3018
3019 -file from it and install the 
3020 \begin_inset Flex Code
3021 status collapsed
3022
3023 \begin_layout Plain Layout
3024 mo
3025 \end_layout
3026
3027 \end_inset
3028
3029 -file.
3030  The process of doing all of this is explained in the documentation for
3031  GNU 
3032 \begin_inset Flex Code
3033 status collapsed
3034
3035 \begin_layout Plain Layout
3036 gettext
3037 \end_layout
3038
3039 \end_inset
3040
3041 .
3042  It is possible to do this just for yourself, but if you're going to do
3043  it, you might as well share the results of your labors with the rest of
3044  the \SpecialChar LyX
3045  community.
3046  Send a message to the \SpecialChar LyX
3047  developers' list for more information about how
3048  to proceed.
3049 \end_layout
3050
3051 \begin_layout Standard
3052 In short, this is what you should do (xx denotes the language code):
3053 \end_layout
3054
3055 \begin_layout Itemize
3056 Check out the \SpecialChar LyX
3057  source code.
3058  (See the 
3059 \begin_inset CommandInset href
3060 LatexCommand href
3061 name "information on the web"
3062 target "http://www.lyx.org/HowToUseGIT"
3063 literal "false"
3064
3065 \end_inset
3066
3067 .)
3068 \end_layout
3069
3070 \begin_layout Itemize
3071 Copy the file 
3072 \begin_inset Flex Code
3073 status collapsed
3074
3075 \begin_layout Plain Layout
3076 lyx.pot
3077 \end_layout
3078
3079 \end_inset
3080
3081  to the folder of the 
3082 \begin_inset Flex Code
3083 status collapsed
3084
3085 \begin_layout Plain Layout
3086 **.po
3087 \end_layout
3088
3089 \end_inset
3090
3091  files.
3092  Then rename it to 
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 xx.po
3098 \end_layout
3099
3100 \end_inset
3101
3102 .
3103  (If 
3104 \begin_inset Flex Code
3105 status collapsed
3106
3107 \begin_layout Plain Layout
3108 lyx.pot
3109 \end_layout
3110
3111 \end_inset
3112
3113  doesn't exist anywhere, it can be remade with the console command 
3114 \begin_inset Flex Code
3115 status collapsed
3116
3117 \begin_layout Plain Layout
3118 make lyx.pot
3119 \end_layout
3120
3121 \end_inset
3122
3123  in that directory, or you can use an existing po-file for some other language
3124  as a template).
3125 \end_layout
3126
3127 \begin_layout Itemize
3128 Edit 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 xx.po
3134 \end_layout
3135
3136 \end_inset
3137
3138 .
3139 \begin_inset Foot
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143 This is just a text file, so it can be edited in any text editor.
3144  But there are also specialized programs that support such editing, such
3145  as 
3146 \family typewriter
3147 Poedit
3148 \family default
3149  (for all platforms) or 
3150 \family typewriter
3151 KBabel
3152 \family default
3153  (for KDE).
3154  
3155 \family typewriter
3156 Emacs
3157 \family default
3158  contains a `mode' for editing 
3159 \begin_inset Flex Code
3160 status collapsed
3161
3162 \begin_layout Plain Layout
3163 po
3164 \end_layout
3165
3166 \end_inset
3167
3168  files, as well, see 
3169 \begin_inset Flex URL
3170 status open
3171
3172 \begin_layout Plain Layout
3173
3174 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3175 \backslash
3176 #PO-Mode
3177 \end_layout
3178
3179 \end_inset
3180
3181 .
3182 \end_layout
3183
3184 \end_inset
3185
3186  For some menu- and widget-labels, there are also shortcut keys that should
3187  be translated.
3188  Those keys are marked after a `|', and should be translated according to
3189  the words and phrases of the language.
3190  You should also fill also out the information at the beginning of the new
3191  
3192 \begin_inset Flex Code
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 po
3197 \end_layout
3198
3199 \end_inset
3200
3201 -file with your email-address, etc., so people know where to reach you with
3202  suggestions and entertaining flames.
3203 \end_layout
3204
3205 \begin_layout Standard
3206 If you are just doing this on your own, then:
3207 \end_layout
3208
3209 \begin_layout Itemize
3210 Generate 
3211 \begin_inset Flex Code
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215 xx.mo
3216 \end_layout
3217
3218 \end_inset
3219
3220 .
3221  This can be done with 
3222 \begin_inset Flex Code
3223 status collapsed
3224
3225 \begin_layout Plain Layout
3226 msgfmt -o xx.mo < xx.po
3227 \end_layout
3228
3229 \end_inset
3230
3231 .
3232 \end_layout
3233
3234 \begin_layout Itemize
3235 Copy the 
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240 mo
3241 \end_layout
3242
3243 \end_inset
3244
3245 -file to your locale-tree, at the correct directory for application messages
3246  for the language
3247 \series bold
3248  
3249 \series default
3250 xx, and under the name 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 lyx.mo
3256 \end_layout
3257
3258 \end_inset
3259
3260  (e.
3261 \begin_inset space \thinspace{}
3262 \end_inset
3263
3264 g.
3265 \begin_inset space \space{}
3266 \end_inset
3267
3268
3269 \begin_inset Flex Code
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3274 \end_layout
3275
3276 \end_inset
3277
3278
3279 \series bold
3280 .
3281 \end_layout
3282
3283 \begin_layout Standard
3284 As said, however, it would be best if the new 
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 po
3290 \end_layout
3291
3292 \end_inset
3293
3294  file could be added to the \SpecialChar LyX
3295  distribution, so others can use it.
3296  Adding it involves making additional changes to \SpecialChar LyX
3297 .
3298  So send an email to the developers' mailing list if you're interested in
3299  doing that.
3300 \end_layout
3301
3302 \begin_layout Subsubsection
3303 Ambiguous messages
3304 \end_layout
3305
3306 \begin_layout Standard
3307 Sometimes it turns out that one English message needs to be translated into
3308  different messages in the target language.
3309  One example is the message 
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314 To
3315 \end_layout
3316
3317 \end_inset
3318
3319  which has the German translation 
3320 \lang german
3321 Nach
3322 \lang english
3323  or 
3324 \lang german
3325 Bis
3326 \lang english
3327 , depending upon exactly what the English 
3328 \begin_inset Quotes eld
3329 \end_inset
3330
3331 to
3332 \begin_inset Quotes erd
3333 \end_inset
3334
3335  means.
3336  GNU 
3337 \begin_inset Flex Code
3338 status collapsed
3339
3340 \begin_layout Plain Layout
3341 gettext
3342 \end_layout
3343
3344 \end_inset
3345
3346  does not handle such ambiguous translations.
3347  Therefore you have to add some context information to the message: Instead
3348  of 
3349 \begin_inset Flex Code
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353 To
3354 \end_layout
3355
3356 \end_inset
3357
3358  it becomes 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363 To[[as in 'From format x to format y']]
3364 \end_layout
3365
3366 \end_inset
3367
3368  and 
3369 \begin_inset Flex Code
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373 To[[as in 'From page x to page y']].
3374 \end_layout
3375
3376 \end_inset
3377
3378  Now the two occurrences of 
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 To
3384 \end_layout
3385
3386 \end_inset
3387
3388  are different for 
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393 gettext
3394 \end_layout
3395
3396 \end_inset
3397
3398  and can be translated correctly to 
3399 \lang german
3400 Nach
3401 \lang english
3402  and 
3403 \lang german
3404 Bis
3405 \lang english
3406 , respectively.
3407 \end_layout
3408
3409 \begin_layout Standard
3410 Of course the context information needs to be stripped off the original
3411  message when no translation is used.
3412  Therefore you have to put it in double square brackets at the end of the
3413  message (see the example above).
3414  The translation mechanism of \SpecialChar LyX
3415  ensures that everything in double square
3416  brackets at the end of messages is removed before displaying the message.
3417 \end_layout
3418
3419 \begin_layout Subsection
3420 Translating the documentation.
3421 \end_layout
3422
3423 \begin_layout Standard
3424 The online documentation (in the 
3425 \begin_inset Flex Noun
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429 Help
3430 \end_layout
3431
3432 \end_inset
3433
3434 -menu) can (and should!) be translated.
3435  If there are translated versions of the documentation available
3436 \begin_inset Foot
3437 status collapsed
3438
3439 \begin_layout Plain Layout
3440 As of March 2008, at least some of the documents have been translated into
3441  fourteen languages, with the Tutorial available in a few more.
3442 \end_layout
3443
3444 \end_inset
3445
3446  and the locale is set accordingly, these will be used automagically by
3447  \SpecialChar LyX
3448 .
3449  \SpecialChar LyX
3450  looks for translated versions as 
3451 \begin_inset Flex Code
3452 status collapsed
3453
3454 \begin_layout Plain Layout
3455 LyXDir/doc/xx/DocName.lyx
3456 \end_layout
3457
3458 \end_inset
3459
3460 , where 
3461 \begin_inset Flex Code
3462 status collapsed
3463
3464 \begin_layout Plain Layout
3465 xx
3466 \end_layout
3467
3468 \end_inset
3469
3470  is the code for the language currently in use.
3471  If there are no translated documents, the default English versions will
3472  be displayed.
3473  Note that the translated versions must have the same filenames (
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 DocName
3479 \end_layout
3480
3481 \end_inset
3482
3483  above) as the original.
3484  If you feel up to translating the documentation (an excellent way to proof-read
3485  the original documentation by the way!), there are a few things you should
3486  do right away:
3487 \end_layout
3488
3489 \begin_layout Itemize
3490 Check out the documentation translation web page at 
3491 \begin_inset CommandInset href
3492 LatexCommand href
3493 name "http://www.lyx.org/Translation"
3494 target "http://www.lyx.org/Translation"
3495 literal "false"
3496
3497 \end_inset
3498
3499 .
3500  That way, you can find out which (if any) documents have already been translate
3501 d into your language.
3502  You can also find out who (if anyone) is organizing the effort to translate
3503  the documentation into your language.
3504  If no one is organizing the effort, please let us know that you're interested.
3505 \end_layout
3506
3507 \begin_layout Standard
3508 Once you get to actually translating, here's a few hints for you that may
3509  save you trouble:
3510 \end_layout
3511
3512 \begin_layout Itemize
3513 Join the documentation team! There is information on how to do that in 
3514 \begin_inset Flex Code
3515 status collapsed
3516
3517 \begin_layout Plain Layout
3518 Intro.lyx
3519 \end_layout
3520
3521 \end_inset
3522
3523  (
3524 \begin_inset Flex Noun
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528 Help\SpecialChar menuseparator
3529 Introduction
3530 \end_layout
3531
3532 \end_inset
3533
3534 ), which by the way is the first document you should translate.
3535 \end_layout
3536
3537 \begin_layout Itemize
3538 Learn the typographic conventions for the language you are translating to.
3539  Typography is an ancient art and over the centuries, a great variety of
3540  conventions have developed throughout different parts of the world.
3541  Also study the professional terminology amongst typographers in your country.
3542  Inventing your own terminology will only confuse the users.
3543  
3544 \emph on
3545 (Warning! Typography is addictive!)
3546 \end_layout
3547
3548 \begin_layout Itemize
3549 Make a copy of the document.
3550  This will be your working copy.
3551  You can use this as your personal translated help-file by placing it in
3552  your 
3553 \begin_inset Flex Code
3554 status collapsed
3555
3556 \begin_layout Plain Layout
3557 UserDir/doc/xx/
3558 \end_layout
3559
3560 \end_inset
3561
3562  directory.
3563 \begin_inset Note Greyedout
3564 status open
3565
3566 \begin_layout Plain Layout
3567
3568 \series bold
3569 Note:
3570 \series default
3571  For a complex document with external material (images, etc.), if you make
3572  a copy e.
3573 \begin_inset space \thinspace{}
3574 \end_inset
3575
3576 g.
3577 \begin_inset space \space{}
3578 \end_inset
3579
3580 in a temp dir, beware that the links to external material may be broken
3581  when the document is moved to a different place.
3582  The best way is to retrieve the \SpecialChar LyX
3583  tree from git (see 
3584 \begin_inset Flex URL
3585 status collapsed
3586
3587 \begin_layout Plain Layout
3588
3589 http://www.lyx.org/HowToUseGIT
3590 \end_layout
3591
3592 \end_inset
3593
3594 ) and to edit the doc file in place.
3595 \end_layout
3596
3597 \end_inset
3598
3599
3600 \end_layout
3601
3602 \begin_layout Itemize
3603 Sometimes the original document (from the \SpecialChar LyX
3604  team) will be updated.
3605  Use the source viewer at 
3606 \begin_inset CommandInset href
3607 LatexCommand href
3608 name "http://www.lyx.org/trac/timeline"
3609 target "http://www.lyx.org/trac/timeline"
3610 literal "false"
3611
3612 \end_inset
3613
3614  to see what has been changed.
3615  That way you can easily see which parts of the translated document need
3616  to be updated.
3617 \end_layout
3618
3619 \begin_layout Standard
3620 If you ever find an error in the original document, fix it and notify the
3621  rest of the documentation team of the changes! (You didn't forget to join
3622  the documentation team, did you?)
3623 \end_layout
3624
3625 \begin_layout Standard
3626 \begin_inset Branch OutDated
3627 inverted 0
3628 status collapsed
3629
3630 \begin_layout Section
3631 International Keyboard Support
3632 \end_layout
3633
3634 \begin_layout Standard
3635
3636 \emph on
3637 [Editor's Note: The following section is by
3638 \emph default
3639  
3640 \shape smallcaps
3641 \emph on
3642 Ivan Schreter
3643 \shape default
3644 .
3645  It needs to be fixed to conform to the new Documentation Style sheet and
3646  to make use of the new v1.0 features.
3647  The whole thing also needs to be merged with the section following it.-jw
3648  It may also be badly out of date.-rh (2008)]
3649 \end_layout
3650
3651 \begin_layout Subsection
3652 Defining Own Keymaps: Keymap File Format
3653 \end_layout
3654
3655 \begin_layout Standard
3656 Let's look at a keyboard definition file a little closer.
3657  It is a plain text file defining
3658 \end_layout
3659
3660 \begin_layout Itemize
3661 key-to-key or key-to-string translations
3662 \end_layout
3663
3664 \begin_layout Itemize
3665 dead keys
3666 \end_layout
3667
3668 \begin_layout Itemize
3669 dead keys exceptions
3670 \end_layout
3671
3672 \begin_layout Standard
3673 To define key-to-key or key-to-string translation, use this command:
3674 \end_layout
3675
3676 \begin_layout Quotation
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681
3682 \backslash
3683 kmap
3684 \end_layout
3685
3686 \end_inset
3687
3688  
3689 \begin_inset Flex Code
3690 status collapsed
3691
3692 \begin_layout Plain Layout
3693 key
3694 \end_layout
3695
3696 \end_inset
3697
3698  outstring 
3699 \end_layout
3700
3701 \begin_layout Standard
3702 where 
3703 \begin_inset Flex Code
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707 key
3708 \end_layout
3709
3710 \end_inset
3711
3712  is the key to be translated and 
3713 \begin_inset Flex Code
3714 status collapsed
3715
3716 \begin_layout Plain Layout
3717 outstring
3718 \end_layout
3719
3720 \end_inset
3721
3722  is the string to be inserted into the document.
3723  To define dead keys, use:
3724 \end_layout
3725
3726 \begin_layout Quotation
3727 \begin_inset Flex Code
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731
3732 \backslash
3733 kmod
3734 \end_layout
3735
3736 \end_inset
3737
3738  
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 key
3744 \end_layout
3745
3746 \end_inset
3747
3748  deadkey
3749 \end_layout
3750
3751 \begin_layout Standard
3752 where 
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757 key
3758 \end_layout
3759
3760 \end_inset
3761
3762  is a keyboard key and 
3763 \begin_inset Flex Code
3764 status collapsed
3765
3766 \begin_layout Plain Layout
3767 deadkey
3768 \end_layout
3769
3770 \end_inset
3771
3772  is dead key name.
3773  The following dead keys are supported (shortcut name is in parentheses):
3774 \end_layout
3775
3776 \begin_layout Quotation
3777
3778 \emph on
3779 Name
3780 \begin_inset space \hfill{}
3781 \end_inset
3782
3783 Example
3784 \end_layout
3785
3786 \begin_layout Quotation
3787 acute (acu)
3788 \begin_inset space \hfill{}
3789 \end_inset
3790
3791 áéíóú
3792 \end_layout
3793
3794 \begin_layout Quotation
3795 grave (gra)
3796 \begin_inset space \hfill{}
3797 \end_inset
3798
3799 àèìòù
3800 \end_layout
3801
3802 \begin_layout Quotation
3803 macron (mac)
3804 \begin_inset space \hfill{}
3805 \end_inset
3806
3807  ō
3808 \end_layout
3809
3810 \begin_layout Quotation
3811 tilde (til)
3812 \begin_inset space \hfill{}
3813 \end_inset
3814
3815 ñÑ
3816 \end_layout
3817
3818 \begin_layout Quotation
3819 underbar (underb)
3820 \begin_inset space \hfill{}
3821 \end_inset
3822
3823
3824 \begin_inset ERT
3825 status open
3826
3827 \begin_layout Plain Layout
3828
3829
3830 \backslash
3831 b o
3832 \end_layout
3833
3834 \end_inset
3835
3836
3837 \end_layout
3838
3839 \begin_layout Quotation
3840 cedilla (ced)
3841 \begin_inset space \hfill{}
3842 \end_inset
3843
3844 çÇ
3845 \end_layout
3846
3847 \begin_layout Quotation
3848 underdot (underd)
3849 \begin_inset space \hfill{}
3850 \end_inset
3851
3852
3853 \begin_inset ERT
3854 status open
3855
3856 \begin_layout Plain Layout
3857
3858
3859 \backslash
3860 d o
3861 \end_layout
3862
3863 \end_inset
3864
3865
3866 \end_layout
3867
3868 \begin_layout Quotation
3869 circumflex (circu)
3870 \begin_inset space \hfill{}
3871 \end_inset
3872
3873 âêîôû
3874 \end_layout
3875
3876 \begin_layout Quotation
3877 circle (circl)
3878 \begin_inset space \hfill{}
3879 \end_inset
3880
3881 ÅůŮ
3882 \end_layout
3883
3884 \begin_layout Quotation
3885 tie (tie)
3886 \begin_inset space \hfill{}
3887 \end_inset
3888
3889
3890 \begin_inset ERT
3891 status open
3892
3893 \begin_layout Plain Layout
3894
3895
3896 \backslash
3897 t o
3898 \end_layout
3899
3900 \end_inset
3901
3902
3903 \end_layout
3904
3905 \begin_layout Quotation
3906 breve (bre)
3907 \begin_inset space \hfill{}
3908 \end_inset
3909
3910 ă
3911 \begin_inset ERT
3912 status open
3913
3914 \begin_layout Plain Layout
3915
3916
3917 \backslash
3918 u o
3919 \end_layout
3920
3921 \end_inset
3922
3923
3924 \end_layout
3925
3926 \begin_layout Quotation
3927 caron (car)
3928 \begin_inset space \hfill{}
3929 \end_inset
3930
3931 čšž
3932 \end_layout
3933
3934 \begin_layout Quotation
3935 hungarian umlaut (hug)
3936 \begin_inset space \hfill{}
3937 \end_inset
3938
3939 őű
3940 \end_layout
3941
3942 \begin_layout Quotation
3943 umlaut (uml)
3944 \begin_inset space \hfill{}
3945 \end_inset
3946
3947 äöü
3948 \end_layout
3949
3950 \begin_layout Quotation
3951 dot (dot)
3952 \begin_inset space \hfill{}
3953 \end_inset
3954
3955 ż
3956 \begin_inset ERT
3957 status open
3958
3959 \begin_layout Plain Layout
3960
3961
3962 \backslash
3963 .s
3964 \end_layout
3965
3966 \end_inset
3967
3968
3969 \end_layout
3970
3971 \begin_layout Standard
3972 Since in many international keyboards there are exceptions to what some
3973  dead keys should do, you can define them using
3974 \end_layout
3975
3976 \begin_layout Quotation
3977 \begin_inset Flex Code
3978 status collapsed
3979
3980 \begin_layout Plain Layout
3981
3982 \backslash
3983 kxmod
3984 \end_layout
3985
3986 \end_inset
3987
3988  deadkey key outstring
3989 \end_layout
3990
3991 \begin_layout Standard
3992 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3993 , so you put in
3994 \end_layout
3995
3996 \begin_layout Quotation
3997 \begin_inset Flex Code
3998 status collapsed
3999
4000 \begin_layout Plain Layout
4001
4002 \backslash
4003 kxmod
4004 \end_layout
4005
4006 \end_inset
4007
4008  caron o "
4009 \backslash
4010 ^o"
4011 \end_layout
4012
4013 \begin_layout Standard
4014 to make it work correctly.
4015  Also, you have to define as exceptions dead keys over i and j, to remove
4016  the dot from them before inserting an accent mark.
4017  I will change this when the time comes, but so far I haven't had time.
4018 \end_layout
4019
4020 \begin_layout Standard
4021 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4022  double backslash.
4023  Also, quotes and 
4024 \begin_inset Flex Code
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028 #
4029 \end_layout
4030
4031 \end_inset
4032
4033  have different meaning.
4034  
4035 \begin_inset Flex Code
4036 status collapsed
4037
4038 \begin_layout Plain Layout
4039 #
4040 \end_layout
4041
4042 \end_inset
4043
4044  marks comments, quotes start and end \SpecialChar LaTeX
4045 -style commands.
4046  To enter quote, you'll need to use 
4047 \begin_inset Flex Code
4048 status collapsed
4049
4050 \begin_layout Plain Layout
4051
4052 \backslash
4053 "
4054 \end_layout
4055
4056 \end_inset
4057
4058 , to enter 
4059 \begin_inset Flex Code
4060 status collapsed
4061
4062 \begin_layout Plain Layout
4063 #
4064 \end_layout
4065
4066 \end_inset
4067
4068 , use 
4069 \begin_inset Flex Code
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073
4074 \backslash
4075 #
4076 \end_layout
4077
4078 \end_inset
4079
4080 .
4081 \end_layout
4082
4083 \begin_layout Standard
4084 If you make a keyboard description file that works for your language, please
4085  mail it to me, so I can include it in the next keymap distribution.
4086 \end_layout
4087
4088 \begin_layout Standard
4089 More keywords will be supported in keymap configuration file in future,
4090  like
4091 \end_layout
4092
4093 \begin_layout Itemize
4094 \begin_inset Flex Code
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098
4099 \backslash
4100 kinclude filename
4101 \end_layout
4102
4103 \end_inset
4104
4105
4106 \emph on
4107
4108 \begin_inset space \hfill{}
4109 \end_inset
4110
4111
4112 \begin_inset Flex Code
4113 status collapsed
4114
4115 \begin_layout Plain Layout
4116 include
4117 \end_layout
4118
4119 \end_inset
4120
4121  another file
4122 \end_layout
4123
4124 \begin_layout Itemize
4125 \begin_inset Flex Code
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129
4130 \backslash
4131 kprog program
4132 \end_layout
4133
4134 \end_inset
4135
4136
4137 \emph on
4138
4139 \begin_inset space \hfill{}
4140 \end_inset
4141
4142
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 define
4148 \end_layout
4149
4150 \end_inset
4151
4152  an external keymap translation program 
4153 \end_layout
4154
4155 \begin_layout Standard
4156 Also, it should look into 
4157 \begin_inset Flex Code
4158 status collapsed
4159
4160 \begin_layout Plain Layout
4161 lyxrc
4162 \end_layout
4163
4164 \end_inset
4165
4166  file for defaults, too (for example, a 
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171
4172 \backslash
4173 kinclude
4174 \end_layout
4175
4176 \end_inset
4177
4178  option to include default keyboard).
4179 \end_layout
4180
4181 \end_inset
4182
4183
4184 \end_layout
4185
4186 \begin_layout Section
4187 International Keymap Stuff
4188 \begin_inset CommandInset label
4189 LatexCommand label
4190 name "sec:International-Keymap-Stuff"
4191
4192 \end_inset
4193
4194
4195 \end_layout
4196
4197 \begin_layout Standard
4198 \begin_inset Note Note
4199 status open
4200
4201 \begin_layout Plain Layout
4202 In doing the revisions on this document in March 2008, I did not look over
4203  this stuff, as I do not understand it.
4204  It would be good if someone else could do so.
4205  (RH)
4206 \end_layout
4207
4208 \end_inset
4209
4210
4211 \end_layout
4212
4213 \begin_layout Standard
4214 The next two sections describe the 
4215 \begin_inset Flex Code
4216 status collapsed
4217
4218 \begin_layout Plain Layout
4219
4220 \shape up
4221 .kmap
4222 \end_layout
4223
4224 \end_inset
4225
4226  and 
4227 \begin_inset Flex Code
4228 status collapsed
4229
4230 \begin_layout Plain Layout
4231
4232 \shape up
4233 .cdef
4234 \end_layout
4235
4236 \end_inset
4237
4238  file syntax in detail.
4239  These sections should help you design your own key map if the ones provided
4240  do not meet your needs.
4241 \end_layout
4242
4243 \begin_layout Subsection
4244 The .kmap File
4245 \end_layout
4246
4247 \begin_layout Standard
4248
4249 \shape up
4250 .
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255 kmap
4256 \end_layout
4257
4258 \end_inset
4259
4260  file maps keystrokes to characters or strings.
4261  As the name suggests, it sets a keyboard mapping.
4262  The 
4263 \begin_inset Flex Code
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267 .kmap
4268 \end_layout
4269
4270 \end_inset
4271
4272
4273 \shape default
4274  file keywords 
4275 \shape up
4276
4277 \begin_inset Flex Code
4278 status collapsed
4279
4280 \begin_layout Plain Layout
4281
4282 \shape up
4283 kmap
4284 \end_layout
4285
4286 \end_inset
4287
4288
4289 \shape default
4290 ,
4291 \shape up
4292  
4293 \shape default
4294
4295 \begin_inset Flex Code
4296 status collapsed
4297
4298 \begin_layout Plain Layout
4299
4300 \shape up
4301 kmod
4302 \end_layout
4303
4304 \end_inset
4305
4306 ,
4307 \shape up
4308  
4309 \shape default
4310
4311 \begin_inset Flex Code
4312 status collapsed
4313
4314 \begin_layout Plain Layout
4315
4316 \shape up
4317 kxmod
4318 \end_layout
4319
4320 \end_inset
4321
4322 , and 
4323 \begin_inset Flex Code
4324 status collapsed
4325
4326 \begin_layout Plain Layout
4327
4328 \shape up
4329 kcomb
4330 \end_layout
4331
4332 \end_inset
4333
4334  are described in this section.
4335 \end_layout
4336
4337 \begin_layout Labeling
4338 \labelwidthstring 00.00.0000
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343
4344 \shape up
4345 kmap
4346 \end_layout
4347
4348 \end_inset
4349
4350  Map a character to a string
4351 \end_layout
4352
4353 \begin_layout LyX-Code
4354
4355 \backslash
4356 kmap 
4357 \family roman
4358 \emph on
4359 char
4360 \family default
4361 \emph default
4362  
4363 \family roman
4364 \emph on
4365 string
4366 \end_layout
4367
4368 \begin_layout Standard
4369 This will ma
4370 \family roman
4371 p
4372 \family default
4373  
4374 \family roman
4375 \emph on
4376 char
4377 \family default
4378 \emph default
4379  
4380 \family roman
4381 to
4382 \family default
4383  
4384 \family roman
4385 \emph on
4386 string
4387 \emph default
4388 .
4389  Note that in
4390 \family default
4391  
4392 \family roman
4393 \emph on
4394 string
4395 \emph default
4396 ,
4397 \family default
4398  
4399 \family roman
4400 \shape up
4401 the double-quote (")
4402 \family default
4403 \shape default
4404  
4405 \family roman
4406 and
4407 \family default
4408  
4409 \family roman
4410 \shape up
4411 the backslash (
4412 \backslash
4413 )
4414 \family default
4415 \shape default
4416  
4417 \family roman
4418 must be escaped with a preceding backslash (
4419 \shape up
4420
4421 \backslash
4422
4423 \shape default
4424 )
4425 \family default
4426 .
4427 \end_layout
4428
4429 \begin_layout Standard
4430 An example of a 
4431 \begin_inset Flex Noun
4432 status collapsed
4433
4434 \begin_layout Plain Layout
4435
4436 \shape up
4437 kmap
4438 \end_layout
4439
4440 \end_inset
4441
4442  statement to cause the symbol 
4443 \begin_inset Flex Noun
4444 status collapsed
4445
4446 \begin_layout Plain Layout
4447
4448 \shape up
4449 /
4450 \end_layout
4451
4452 \end_inset
4453
4454  to be output for the keystroke 
4455 \begin_inset Flex Noun
4456 status collapsed
4457
4458 \begin_layout Plain Layout
4459
4460 \shape up
4461 &
4462 \end_layout
4463
4464 \end_inset
4465
4466  is:
4467 \end_layout
4468
4469 \begin_layout LyX-Code
4470
4471 \backslash
4472 kmap & /
4473 \end_layout
4474
4475 \begin_layout Labeling
4476 \labelwidthstring 00.00.0000
4477 \begin_inset Flex Code
4478 status collapsed
4479
4480 \begin_layout Plain Layout
4481
4482 \shape up
4483 kmod
4484 \end_layout
4485
4486 \end_inset
4487
4488  Specify an accent character
4489 \end_layout
4490
4491 \begin_layout LyX-Code
4492
4493 \backslash
4494 kmod 
4495 \family roman
4496 \emph on
4497 char accent allowed
4498 \end_layout
4499
4500 \begin_layout Standard
4501 This will make the cha
4502 \family roman
4503 racter
4504 \family default
4505  
4506 \family roman
4507 \emph on
4508 char
4509 \family default
4510 \emph default
4511  
4512 \family roman
4513 \shape up
4514 \emph on
4515 be an accent
4516 \family default
4517 \shape default
4518 \emph default
4519  
4520 \family roman
4521 \shape up
4522 on the
4523 \family default
4524 \shape default
4525  
4526 \family roman
4527 \shape up
4528 \emph on
4529 allowed
4530 \family default
4531 \shape default
4532 \emph default
4533  
4534 \family roman
4535 \shape up
4536 cha
4537 \family default
4538 racter(s).
4539  This is the dead key
4540 \begin_inset Foot
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544 The term 
4545 \family roman
4546 \emph on
4547 dead key
4548 \family default
4549 \emph default
4550  refers to a key that does not produce a character by itself, but when followed
4551  with another key, produces the desired accent character.
4552  For example, a German characte
4553 \family roman
4554 r with an umlaut like
4555 \family default
4556  
4557 \family roman
4558 \emph on
4559 ä
4560 \family default
4561 \emph default
4562  
4563 \family roman
4564 can be produced in this manner.
4565 \end_layout
4566
4567 \end_inset
4568
4569  mechanism.
4570  
4571 \end_layout
4572
4573 \begin_layout Standard
4574 If you 
4575 \family roman
4576 hit
4577 \family default
4578  
4579 \family roman
4580 \emph on
4581 char
4582 \family default
4583 \emph default
4584  
4585 \family roman
4586 and then another key not in
4587 \family default
4588  
4589 \family roman
4590 \emph on
4591 allowed
4592 \emph default
4593 , you will get a
4594 \family default
4595  
4596 \family roman
4597 \emph on
4598 char
4599 \family default
4600 \emph default
4601  
4602 \family roman
4603 followed by the other, not allowed key, as output.
4604
4605 \family default
4606  Note that a 
4607 \begin_inset Flex Noun
4608 status collapsed
4609
4610 \begin_layout Plain Layout
4611
4612 \shape up
4613 Backspace
4614 \end_layout
4615
4616 \end_inset
4617
4618  cancels a dead key, so if 
4619 \family roman
4620 you hit
4621 \family default
4622  
4623 \family roman
4624 \emph on
4625 char
4626 \family default
4627 \emph default
4628  
4629 \begin_inset Flex Noun
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633
4634 \shape up
4635 \emph on
4636 Backspace
4637 \end_layout
4638
4639 \end_inset
4640
4641 , the cursor will not go one position backwards but will instead cancel
4642  the effect t
4643 \family roman
4644 hat
4645 \family default
4646  
4647 \family roman
4648 \shape up
4649 \emph on
4650 char
4651 \family default
4652 \shape default
4653 \emph default
4654  
4655 \family roman
4656 \shape up
4657 might have had on the next keystroke.
4658  
4659 \end_layout
4660
4661 \begin_layout Standard
4662 The following example specifies that the character ' is to be an acute accent,
4663  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4664 \end_layout
4665
4666 \begin_layout LyX-Code
4667
4668 \backslash
4669 kmod ' acute aeiouAEIOU
4670 \end_layout
4671
4672 \begin_layout Labeling
4673 \labelwidthstring 00.00.0000
4674 \begin_inset Flex Code
4675 status collapsed
4676
4677 \begin_layout Plain Layout
4678 kxmod
4679 \end_layout
4680
4681 \end_inset
4682
4683  Specify an exception to the accent character
4684 \end_layout
4685
4686 \begin_layout LyX-Code
4687
4688 \backslash
4689 kxmod  
4690 \family roman
4691 \emph on
4692 accent char result
4693 \end_layout
4694
4695 \begin_layout Standard
4696 This defines an exce
4697 \family roman
4698 ption for
4699 \family default
4700  
4701 \family roman
4702 \emph on
4703 accent
4704 \family default
4705 \emph default
4706  
4707 \family roman
4708 on
4709 \family default
4710  
4711 \family roman
4712 \emph on
4713 char
4714 \emph default
4715 .
4716  T
4717 \shape up
4718 he
4719 \family default
4720 \shape default
4721  
4722 \family roman
4723 \shape up
4724 \emph on
4725 accent
4726 \family default
4727 \shape default
4728 \emph default
4729  
4730 \family roman
4731 \shape up
4732 must
4733 \family default
4734 \shape default
4735  
4736 \shape up
4737 have been assigned a keystroke with a previous
4738 \shape default
4739  
4740 \begin_inset Flex Code
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744
4745 \shape up
4746
4747 \backslash
4748 kmo
4749 \shape default
4750 d
4751 \end_layout
4752
4753 \end_inset
4754
4755  declar
4756 \family roman
4757 ation and
4758 \family default
4759  
4760 \family roman
4761 \emph on
4762 char
4763 \family default
4764 \emph default
4765  
4766 \family roman
4767 must not belong in the
4768 \family default
4769  
4770 \family roman
4771 \emph on
4772 allowed
4773 \family default
4774 \emph default
4775  
4776 \family roman
4777 set of
4778 \family default
4779  
4780 \family roman
4781 \emph on
4782 accent
4783 \emph default
4784 .
4785  When
4786 \family default
4787  
4788 \family roman
4789 \shape up
4790 you enter the
4791 \family default
4792 \shape default
4793  
4794 \family roman
4795 \shape up
4796 \emph on
4797 accent char
4798 \family default
4799 \shape default
4800 \emph default
4801  
4802 \family roman
4803 \shape up
4804 sequence,
4805 \family default
4806 \shape default
4807  
4808 \family roman
4809 \shape up
4810 \emph on
4811 result
4812 \emph default
4813  is produced.
4814  If such a declaration does not exist in
4815 \family default
4816 \shape default
4817  
4818 \shape up
4819 the
4820 \shape default
4821  
4822 \begin_inset Flex Code
4823 status collapsed
4824
4825 \begin_layout Plain Layout
4826
4827 \shape up
4828 .kmap
4829 \end_layout
4830
4831 \end_inset
4832
4833  file and yo
4834 \family roman
4835 u enter
4836 \family default
4837  
4838 \family roman
4839 \emph on
4840 accent char
4841 \emph default
4842 , you get
4843 \family default
4844  
4845 \family roman
4846 \emph on
4847 accent_key char
4848 \emph default
4849  where
4850 \family default
4851  
4852 \family roman
4853 \emph on
4854 accent_key
4855 \emph default
4856  is the first arg
4857 \family default
4858 ument of the 
4859 \begin_inset Flex Code
4860 status collapsed
4861
4862 \begin_layout Plain Layout
4863
4864 \shape up
4865
4866 \backslash
4867 kmod
4868 \end_layout
4869
4870 \end_inset
4871
4872  declaration.
4873  
4874 \end_layout
4875
4876 \begin_layout Standard
4877 The following command produces causes äi to be produced when you enter acute-i
4878  ('i):
4879 \end_layout
4880
4881 \begin_layout LyX-Code
4882
4883 \backslash
4884 kxmod acute i "
4885 \backslash
4886
4887 \backslash
4888 '{
4889 \backslash
4890
4891 \backslash
4892 i}"
4893 \end_layout
4894
4895 \begin_layout Labeling
4896 \labelwidthstring 00.00.0000
4897 \begin_inset Flex Code
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901 kcomb
4902 \end_layout
4903
4904 \end_inset
4905
4906  Combine two accent characters
4907 \end_layout
4908
4909 \begin_layout LyX-Code
4910
4911 \backslash
4912 kcomb 
4913 \family roman
4914 \emph on
4915 accent1 accent2 allowed
4916 \end_layout
4917
4918 \begin_layout Standard
4919 This one is getting pretty esoteric.
4920  It allows you to combine the effect 
4921 \family roman
4922 of
4923 \family default
4924  
4925 \family roman
4926 \emph on
4927 accent1
4928 \family default
4929 \emph default
4930  
4931 \family roman
4932 and
4933 \family default
4934  
4935 \family roman
4936 \emph on
4937 accent2
4938 \family default
4939 \emph default
4940  
4941 \family roman
4942 (in that order!) on
4943 \family default
4944  
4945 \family roman
4946 \emph on
4947 allowed
4948 \family default
4949 \emph default
4950  
4951 \family roman
4952 chars.
4953  The keystrokes for
4954 \family default
4955  
4956 \family roman
4957 \emph on
4958 accent1
4959 \family default
4960 \emph default
4961  
4962 \family roman
4963 and
4964 \family default
4965  
4966 \family roman
4967 \emph on
4968 accent2
4969 \family default
4970 \emph default
4971  
4972 \family roman
4973 must have be
4974 \family default
4975 en set with a 
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \shape up
4982
4983 \backslash
4984 kmod
4985 \end_layout
4986
4987 \end_inset
4988
4989  command at 
4990 \family roman
4991 a
4992 \family default
4993  
4994 \family roman
4995 \emph on
4996 previous
4997 \family default
4998 \emph default
4999  
5000 \family roman
5001 point in the
5002 \family default
5003  file.
5004  
5005 \end_layout
5006
5007 \begin_layout Standard
5008 Consider this example from the 
5009 \begin_inset Flex Code
5010 status collapsed
5011
5012 \begin_layout Plain Layout
5013
5014 \shape up
5015 greek.kmap
5016 \end_layout
5017
5018 \end_inset
5019
5020  file:
5021 \end_layout
5022
5023 \begin_layout LyX-Code
5024
5025 \backslash
5026 kmod ; acute aeioyvhAEIOYVH 
5027 \backslash
5028 kmod : umlaut iyIY 
5029 \backslash
5030 kcomb acute umlaut iyIY
5031 \end_layout
5032
5033 \begin_layout Standard
5034 This allows you to press 
5035 \begin_inset Flex Noun
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039
5040 \shape up
5041 ;:i
5042 \end_layout
5043
5044 \end_inset
5045
5046  and get the effect of 
5047 \begin_inset Flex Code
5048 status collapsed
5049
5050 \begin_layout Plain Layout
5051
5052 \shape up
5053
5054 \backslash
5055 '{
5056 \backslash
5057 "{i}}
5058 \end_layout
5059
5060 \end_inset
5061
5062 .
5063  
5064 \family roman
5065 \shape up
5066 A backspace
5067 \family default
5068 \shape default
5069  in this case cancels the last dead key, so if you press 
5070 \begin_inset Flex Noun
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074
5075 \shape up
5076 ;: Backspace i
5077 \end_layout
5078
5079 \end_inset
5080
5081  you get 
5082 \begin_inset Flex Code
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086
5087 \shape up
5088
5089 \backslash
5090 '{i}
5091 \end_layout
5092
5093 \end_inset
5094
5095 .
5096 \end_layout
5097
5098 \begin_layout Subsection
5099 The .cdef File
5100 \end_layout
5101
5102 \begin_layout Standard
5103 After the 
5104 \begin_inset Flex Code
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108
5109 \shape up
5110 .kmap
5111 \end_layout
5112
5113 \end_inset
5114
5115  mapping is performed, a 
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120
5121 \shape up
5122 .cde
5123 \shape default
5124 f
5125 \end_layout
5126
5127 \end_inset
5128
5129  file maps the strings that the symbols generate to characters in the current
5130  font.
5131  The \SpecialChar LyX
5132  distribution currently includes at least the 
5133 \begin_inset Flex Code
5134 status collapsed
5135
5136 \begin_layout Plain Layout
5137
5138 \shape up
5139 iso8859-1.cdef
5140 \end_layout
5141
5142 \end_inset
5143
5144  and 
5145 \begin_inset Flex Code
5146 status collapsed
5147
5148 \begin_layout Plain Layout
5149
5150 \shape up
5151 iso8859-2.cdef
5152 \end_layout
5153
5154 \end_inset
5155
5156  files.
5157 \end_layout
5158
5159 \begin_layout Standard
5160 In general the 
5161 \begin_inset Flex Code
5162 status collapsed
5163
5164 \begin_layout Plain Layout
5165
5166 \shape up
5167 .cdef
5168 \end_layout
5169
5170 \end_inset
5171
5172  file is a sequence of declarations of the form
5173 \end_layout
5174
5175 \begin_layout LyX-Code
5176
5177 \family roman
5178 \emph on
5179 char_index_in_set
5180 \family default
5181 \emph default
5182  
5183 \family roman
5184 \emph on
5185  string
5186 \end_layout
5187
5188 \begin_layout Standard
5189 For example, in order to map 
5190 \begin_inset Flex Noun
5191 status collapsed
5192
5193 \begin_layout Plain Layout
5194
5195 \shape up
5196
5197 \backslash
5198 '{e}
5199 \end_layout
5200
5201 \end_inset
5202
5203  to the corresponding character in the iso-8859-1 set (233), the following
5204  declaration is used
5205 \end_layout
5206
5207 \begin_layout LyX-Code
5208 233 "
5209 \backslash
5210
5211 \backslash
5212 '{e}"
5213 \end_layout
5214
5215 \begin_layout Standard
5216 with 
5217 \begin_inset Flex Code
5218 status collapsed
5219
5220 \begin_layout Plain Layout
5221
5222 \backslash
5223
5224 \end_layout
5225
5226 \end_inset
5227
5228  and 
5229 \begin_inset Flex Code
5230 status collapsed
5231
5232 \begin_layout Plain Layout
5233 "
5234 \end_layout
5235
5236 \end_inset
5237
5238  being escap
5239 \family roman
5240 ed in
5241 \family default
5242  
5243 \family roman
5244 \emph on
5245 string
5246 \emph default
5247 .
5248  Note that
5249 \family default
5250  the same character can apply to more than one string.
5251  In the 
5252 \begin_inset Flex Code
5253 status collapsed
5254
5255 \begin_layout Plain Layout
5256 i
5257 \shape up
5258 so-8859-7.cdef
5259 \end_layout
5260
5261 \end_inset
5262
5263  file you have
5264 \end_layout
5265
5266 \begin_layout LyX-Code
5267 192 "
5268 \backslash
5269
5270 \backslash
5271 '{
5272 \backslash
5273
5274 \backslash
5275
5276 \backslash
5277 "{i}}"
5278 \begin_inset Newline newline
5279 \end_inset
5280
5281 192 "
5282 \backslash
5283
5284 \backslash
5285
5286 \backslash
5287 "{
5288 \backslash
5289
5290 \backslash
5291 '{i}}"
5292 \end_layout
5293
5294 \begin_layout Standard
5295 If \SpecialChar LyX
5296  cannot find a mapping for the string produced by the keystroke or a
5297  deadkey sequence, it will check if it looks like an accented char and try
5298  to draw an accent over the character on screen.
5299 \end_layout
5300
5301 \begin_layout Subsection
5302 Dead Keys
5303 \end_layout
5304
5305 \begin_layout Standard
5306 There is a second way to add support for international characters through
5307  so-called dead-keys.
5308  A dead-key works in combination with a letter to produce an accented character.
5309  Here, we'll explain how to create a really simple dead-key to illustrate
5310  how they work.
5311 \end_layout
5312
5313 \begin_layout Standard
5314 Suppose you happen to need the circumflex character, 
5315 \begin_inset Quotes eld
5316 \end_inset
5317
5318  ̂
5319 \begin_inset Quotes erd
5320 \end_inset
5321
5322 .
5323  You could bind the 
5324 \begin_inset Flex Noun
5325 status collapsed
5326
5327 \begin_layout Plain Layout
5328 ^
5329 \end_layout
5330
5331 \end_inset
5332
5333 -key [a.k.a.
5334 \begin_inset space ~
5335 \end_inset
5336
5337
5338 \begin_inset Flex Noun
5339 status collapsed
5340
5341 \begin_layout Plain Layout
5342 Shift-6
5343 \end_layout
5344
5345 \end_inset
5346
5347 ] to the \SpecialChar LyX
5348  command 
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353 accent-circumflex
5354 \end_layout
5355
5356 \end_inset
5357
5358  in your 
5359 \begin_inset Flex Code
5360 status collapsed
5361
5362 \begin_layout Plain Layout
5363 lyxrc
5364 \end_layout
5365
5366 \end_inset
5367
5368  file.
5369  Now, whenever you type the 
5370 \begin_inset Flex Noun
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374 ^
5375 \end_layout
5376
5377 \end_inset
5378
5379 -key followed by a letter, that letter will have a circumflex accent on
5380  it.
5381  For example, the sequence 
5382 \begin_inset Quotes eld
5383 \end_inset
5384
5385
5386 \begin_inset Flex Noun
5387 status collapsed
5388
5389 \begin_layout Plain Layout
5390 ^e
5391 \end_layout
5392
5393 \end_inset
5394
5395
5396 \begin_inset Quotes erd
5397 \end_inset
5398
5399  produces the letter: 
5400 \begin_inset Quotes eld
5401 \end_inset
5402
5403 ê
5404 \begin_inset Quotes erd
5405 \end_inset
5406
5407 .
5408  If you tried to type 
5409 \begin_inset Quotes eld
5410 \end_inset
5411
5412
5413 \begin_inset Flex Noun
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 ^t
5418 \end_layout
5419
5420 \end_inset
5421
5422
5423 \begin_inset Quotes erd
5424 \end_inset
5425
5426 , however, \SpecialChar LyX
5427  will complain with a beep, since a 
5428 \begin_inset Quotes eld
5429 \end_inset
5430
5431
5432 \begin_inset Flex Noun
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436 t
5437 \end_layout
5438
5439 \end_inset
5440
5441
5442 \begin_inset Quotes erd
5443 \end_inset
5444
5445  never takes a circumflex accent.
5446  Hitting 
5447 \begin_inset Flex Noun
5448 status collapsed
5449
5450 \begin_layout Plain Layout
5451 Space
5452 \end_layout
5453
5454 \end_inset
5455
5456  after a dead-key produces the bare-accent.
5457  Please note this last point! If you bind a key to a dead-key, you'll need
5458  to rebind the character on that key to yet another key.
5459  Binding the 
5460 \begin_inset Flex Noun
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464 ,-key
5465 \end_layout
5466
5467 \end_inset
5468
5469  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5470 \end_layout
5471
5472 \begin_layout Standard
5473 One common way to bind dead-keys is to use 
5474 \begin_inset Flex Noun
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478 Meta-
5479 \end_layout
5480
5481 \end_inset
5482
5483
5484 \begin_inset Flex Noun
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488 Ctrl-
5489 \end_layout
5490
5491 \end_inset
5492
5493 , and 
5494 \begin_inset Flex Noun
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 Shift-
5499 \end_layout
5500
5501 \end_inset
5502
5503  in combination with an accent, like 
5504 \begin_inset Quotes eld
5505 \end_inset
5506
5507
5508 \begin_inset Flex Noun
5509 status collapsed
5510
5511 \begin_layout Plain Layout
5512 ~
5513 \end_layout
5514
5515 \end_inset
5516
5517
5518 \begin_inset Quotes erd
5519 \end_inset
5520
5521  or 
5522 \begin_inset Quotes eld
5523 \end_inset
5524
5525
5526 \begin_inset Flex Noun
5527 status collapsed
5528
5529 \begin_layout Plain Layout
5530 ,
5531 \end_layout
5532
5533 \end_inset
5534
5535
5536 \begin_inset Quotes erd
5537 \end_inset
5538
5539  or 
5540 \begin_inset Quotes eld
5541 \end_inset
5542
5543
5544 \begin_inset Flex Noun
5545 status collapsed
5546
5547 \begin_layout Plain Layout
5548 ^
5549 \end_layout
5550
5551 \end_inset
5552
5553
5554 \begin_inset Quotes erd
5555 \end_inset
5556
5557 .
5558  Another way involves using 
5559 \begin_inset Flex Code
5560 status collapsed
5561
5562 \begin_layout Plain Layout
5563 xmodmap
5564 \end_layout
5565
5566 \end_inset
5567
5568  and 
5569 \begin_inset Flex Code
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 xkeycaps
5574 \end_layout
5575
5576 \end_inset
5577
5578  to set up the special 
5579 \begin_inset Flex Code
5580 status collapsed
5581
5582 \begin_layout Plain Layout
5583 Mode_Switch
5584 \end_layout
5585
5586 \end_inset
5587
5588  key.
5589  The 
5590 \begin_inset Flex Code
5591 status collapsed
5592
5593 \begin_layout Plain Layout
5594 Mode_Switch
5595 \end_layout
5596
5597 \end_inset
5598
5599  acts in some ways just like 
5600 \begin_inset Flex Noun
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604 Shift
5605 \end_layout
5606
5607 \end_inset
5608
5609  and permits you to bind keys to accented characters.
5610  You can also turn keys into dead-keys by binding them to something like
5611  
5612 \begin_inset Flex Code
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 usldead_cedilla
5617 \end_layout
5618
5619 \end_inset
5620
5621  and then binding this symbolic key to the corresponding \SpecialChar LyX
5622  command.
5623 \begin_inset Foot
5624 status collapsed
5625
5626 \begin_layout Plain Layout
5627 Note from 
5628 \noun on
5629 John Weiss
5630 \noun default
5631 : This is exactly what I do in my 
5632 \begin_inset Flex Code
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636 ~/.lyx/lyxrc
5637 \end_layout
5638
5639 \end_inset
5640
5641  and my 
5642 \begin_inset Flex Code
5643 status collapsed
5644
5645 \begin_layout Plain Layout
5646 ~/.xmodmap
5647 \end_layout
5648
5649 \end_inset
5650
5651  files.
5652  I have my 
5653 \begin_inset Flex Noun
5654 status collapsed
5655
5656 \begin_layout Plain Layout
5657 Scroll
5658 \begin_inset space ~
5659 \end_inset
5660
5661 Lock
5662 \end_layout
5663
5664 \end_inset
5665
5666  key set up as 
5667 \begin_inset Flex Code
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 Mode_Shift
5672 \end_layout
5673
5674 \end_inset
5675
5676  and a bunch of these 
5677 \begin_inset Quotes eld
5678 \end_inset
5679
5680
5681 \begin_inset Flex Code
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685 usldead_*
5686 \end_layout
5687
5688 \end_inset
5689
5690
5691 \begin_inset Quotes erd
5692 \end_inset
5693
5694  symbolic keys bound such things as 
5695 \begin_inset Flex Noun
5696 status collapsed
5697
5698 \begin_layout Plain Layout
5699 Scroll
5700 \begin_inset space ~
5701 \end_inset
5702
5703 Lock-^
5704 \end_layout
5705
5706 \end_inset
5707
5708  and 
5709 \begin_inset Flex Noun
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 Scroll
5714 \begin_inset space ~
5715 \end_inset
5716
5717 Lock-~
5718 \end_layout
5719
5720 \end_inset
5721
5722 .
5723  This is how I produce my accented characters.
5724 \end_layout
5725
5726 \end_inset
5727
5728  You can make just about anything into the 
5729 \begin_inset Flex Code
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733 Mode_Switch
5734 \end_layout
5735
5736 \end_inset
5737
5738  key: One of the 
5739 \begin_inset Flex Noun
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 Ctrl-
5744 \end_layout
5745
5746 \end_inset
5747
5748  keys, a spare function key, etc.
5749  As for the \SpecialChar LyX
5750  commands that produce accents, check the entry for 
5751 \begin_inset Flex Code
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 accent-acute
5756 \end_layout
5757
5758 \end_inset
5759
5760  in the 
5761 \emph on
5762 Reference Manual
5763 \emph default
5764 .
5765  You'll find the complete list there.
5766 \end_layout
5767
5768 \begin_layout Subsection
5769 Saving your Language Configuration
5770 \end_layout
5771
5772 \begin_layout Standard
5773 You can edit your preferences so that your desired language environment
5774  is automatically configured when \SpecialChar LyX
5775  starts up, via the 
5776 \begin_inset Flex Noun
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 Edit\SpecialChar menuseparator
5781 Preferences
5782 \end_layout
5783
5784 \end_inset
5785
5786  dialog.
5787 \end_layout
5788
5789 \begin_layout Chapter
5790 Installing New Document Classes, Layouts, and Templates
5791 \begin_inset CommandInset label
5792 LatexCommand label
5793 name "cha:Installing-New-Document"
5794
5795 \end_inset
5796
5797
5798 \begin_inset Argument 1
5799 status collapsed
5800
5801 \begin_layout Plain Layout
5802 Installing New Document Classes
5803 \end_layout
5804
5805 \end_inset
5806
5807
5808 \end_layout
5809
5810 \begin_layout Standard
5811 In this chapter, we describe the procedures for creating and installing
5812  new \SpecialChar LyX
5813  layout and template files, as well as offer a refresher on correctly
5814  installing new \SpecialChar LaTeX
5815  document classes.
5816  
5817 \end_layout
5818
5819 \begin_layout Standard
5820 First, let us a say a few words about how one ought to think about the relation
5821  between \SpecialChar LyX
5822  and \SpecialChar LaTeX
5823 .
5824  The thing to understand is that, in a certain sense, \SpecialChar LyX
5825  doesn't know anything
5826  about \SpecialChar LaTeX
5827 .
5828  Indeed, from \SpecialChar LyX
5829 's point of view, \SpecialChar LaTeX
5830  is just one of several 
5831 \begin_inset Quotes eld
5832 \end_inset
5833
5834 backend formats
5835 \begin_inset Quotes erd
5836 \end_inset
5837
5838  in which it is capable of producing output.
5839  Other such formats are DocBook, plaintext, and XHTML.
5840  \SpecialChar LaTeX
5841  is, of course, a particularly important format, but very little of the
5842  information \SpecialChar LyX
5843  has about \SpecialChar LaTeX
5844  is actually contained in the program itself.
5845 \begin_inset Foot
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 Some commands are sufficiently complex that they are 
5850 \begin_inset Quotes eld
5851 \end_inset
5852
5853 hardcoded
5854 \begin_inset Quotes erd
5855 \end_inset
5856
5857  into \SpecialChar LyX
5858 .
5859  But the developers generally regard this as a Bad Thing.
5860 \end_layout
5861
5862 \end_inset
5863
5864  Rather, that information, even for the standard classes like 
5865 \begin_inset Flex Code
5866 status collapsed
5867
5868 \begin_layout Plain Layout
5869 article.cls
5870 \end_layout
5871
5872 \end_inset
5873
5874 , is contained in `layout files'.
5875  Similarly, \SpecialChar LyX
5876  itself does not know much about DocBook or XHTML.
5877  What it knows is contained in layout files.
5878 \end_layout
5879
5880 \begin_layout Standard
5881 You can think of the layout file for a given document class as a translation
5882  manual between \SpecialChar LyX
5883  constructs—paragraphs with their corresponding styles,
5884  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5885 , DocBook, or XHTML
5886  constructs.
5887  Almost everything \SpecialChar LyX
5888  knows about 
5889 \begin_inset Flex Code
5890 status collapsed
5891
5892 \begin_layout Plain Layout
5893 article.cls
5894 \end_layout
5895
5896 \end_inset
5897
5898 , for example, is contained in the file 
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 article.layout
5904 \end_layout
5905
5906 \end_inset
5907
5908  and in various other files it includes.
5909  For this reason, anyone intending to write layout files should plan to
5910  study the existing files.
5911  A good place to start is with 
5912 \begin_inset Flex Code
5913 status collapsed
5914
5915 \begin_layout Plain Layout
5916 stdsections.inc
5917 \end_layout
5918
5919 \end_inset
5920
5921 , which is included in 
5922 \begin_inset Flex Code
5923 status collapsed
5924
5925 \begin_layout Plain Layout
5926 article.layout
5927 \end_layout
5928
5929 \end_inset
5930
5931
5932 \begin_inset Flex Code
5933 status collapsed
5934
5935 \begin_layout Plain Layout
5936 book.layout
5937 \end_layout
5938
5939 \end_inset
5940
5941 , and many of the other layout files for document classes.
5942  This file is where sections and the like are defined: 
5943 \begin_inset Flex Code
5944 status collapsed
5945
5946 \begin_layout Plain Layout
5947 stdsections.inc
5948 \end_layout
5949
5950 \end_inset
5951
5952  tells \SpecialChar LyX
5953  how paragraphs that are marked with the Section, Subsection, etc,
5954  styles can be translated into corresponding \SpecialChar LaTeX
5955 , DocBook, and XHTML commands
5956  and tags.
5957  The 
5958 \begin_inset Flex Code
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 article.layout
5963 \end_layout
5964
5965 \end_inset
5966
5967  file basically just includes several of these 
5968 \begin_inset Flex Code
5969 status collapsed
5970
5971 \begin_layout Plain Layout
5972 std*.inc
5973 \end_layout
5974
5975 \end_inset
5976
5977  files.
5978 \end_layout
5979
5980 \begin_layout Standard
5981 Defining the \SpecialChar LyX
5982 –\SpecialChar LaTeX
5983  correspondence is not the only thing layout files do, though.
5984  Their other job is to define how the \SpecialChar LyX
5985  constructs themselves will appear
5986  on-screen.
5987  The fact that layout files have these two jobs is often a source of confusion,
5988  because they are completely separate.
5989  Telling \SpecialChar LyX
5990  how to translate a certain paragraph style into \SpecialChar LaTeX
5991  does not tell
5992  \SpecialChar LyX
5993  how to display it; conversely, telling \SpecialChar LyX
5994  how to display a certain paragraph
5995  style does not tell \SpecialChar LyX
5996  how to translate it into \SpecialChar LaTeX
5997  (let alone tell \SpecialChar LaTeX
5998  how to
5999  display it).
6000  So, in general, when you define a new \SpecialChar LyX
6001  construct, you must always do two
6002  quite separate things: (i)
6003 \begin_inset space ~
6004 \end_inset
6005
6006 tell \SpecialChar LyX
6007  how to translate it into \SpecialChar LaTeX
6008  and (ii)
6009 \begin_inset space ~
6010 \end_inset
6011
6012 tell \SpecialChar LyX
6013  how to display it.
6014 \end_layout
6015
6016 \begin_layout Standard
6017 Much the same is true, of course, as regards \SpecialChar LyX
6018 's other backend formats, though
6019  XHTML is in some ways different, because in that case \SpecialChar LyX
6020  
6021 \emph on
6022 is
6023 \emph default
6024  able, to some extent, to use information about how it should display a
6025  paragraph on the screen to output information (in the form of CSS) about
6026  how the paragraph should be displayed in a browser.
6027  Even in this case, however, the distinction between what \SpecialChar LyX
6028  does internally
6029  and how things are rendered externally remains in force, and the two can
6030  be controlled separately.
6031  See 
6032 \begin_inset CommandInset ref
6033 LatexCommand ref
6034 reference "sec:Tags-for-XHTML"
6035
6036 \end_inset
6037
6038  for the details.
6039 \end_layout
6040
6041 \begin_layout Section
6042 Installing new \SpecialChar LaTeX
6043  files
6044 \end_layout
6045
6046 \begin_layout Standard
6047 Some installations may not include a \SpecialChar LaTeX
6048  package or class file that you would
6049  like to use within \SpecialChar LyX
6050 .
6051  For example, you might need Foil\SpecialChar TeX
6052 , a package for preparing slides for overhead
6053  projectors.
6054  Modern \SpecialChar LaTeX
6055  distributions like \SpecialChar TeX
6056 Live (2008 or newer) or MiK\SpecialChar TeX
6057  provide a user interface
6058  for installing such packages.
6059  For example, with MiK\SpecialChar TeX
6060 , you start the program 
6061 \begin_inset Quotes eld
6062 \end_inset
6063
6064 Package
6065 \begin_inset space ~
6066 \end_inset
6067
6068 Manager
6069 \begin_inset Quotes erd
6070 \end_inset
6071
6072  to get a list of available packages.
6073  To install one of them, right click on it or use the corresponding toolbar
6074  button.
6075 \end_layout
6076
6077 \begin_layout Standard
6078 If your \SpecialChar LaTeX
6079  distribution does not provide such a `package manager', or if the
6080  package is not available from your distribution, then follow these steps
6081  to install it manually:
6082 \end_layout
6083
6084 \begin_layout Enumerate
6085 Get the package from 
6086 \begin_inset CommandInset href
6087 LatexCommand href
6088 name "CTAN"
6089 target "http://www.ctan.org/"
6090 literal "false"
6091
6092 \end_inset
6093
6094  or wherever.
6095 \end_layout
6096
6097 \begin_layout Enumerate
6098 If the package contains a file with the ending 
6099 \begin_inset Quotes eld
6100 \end_inset
6101
6102
6103 \begin_inset Flex Code
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 .ins
6108 \end_layout
6109
6110 \end_inset
6111
6112
6113 \begin_inset Quotes erd
6114 \end_inset
6115
6116  (is the case for Foil\SpecialChar TeX
6117 ) then open a console, change to the folder of this
6118  file and execute the command 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 latex foiltex.ins
6124 \end_layout
6125
6126 \end_inset
6127
6128 .
6129  You have now unpacked the package and have all files to install it.
6130  Most \SpecialChar LaTeX
6131 -packages are not packed and you can skip this step.
6132 \end_layout
6133
6134 \begin_layout Enumerate
6135 Now you need to decide if the package should be available for all users
6136  or only for you.
6137 \end_layout
6138
6139 \begin_deeper
6140 \begin_layout Enumerate
6141 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6142  for all users on your system, then install it in your `local' \SpecialChar TeX
6143  tree, otherwise
6144  install it in your own `user' \SpecialChar TeX
6145  tree.
6146  Where these trees should be created, if they do not already exist, depends
6147  on your system.
6148  To find this out, look in the file 
6149 \begin_inset Flex Code
6150 status collapsed
6151
6152 \begin_layout Plain Layout
6153 texmf.cnf
6154 \end_layout
6155
6156 \end_inset
6157
6158 .
6159 \begin_inset Foot
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 This is usually in the directory 
6164 \begin_inset Flex Code
6165 status collapsed
6166
6167 \begin_layout Plain Layout
6168 $TEXMF/web2c
6169 \end_layout
6170
6171 \end_inset
6172
6173 , though you can execute the command 
6174 \begin_inset Flex Code
6175 status collapsed
6176
6177 \begin_layout Plain Layout
6178 kpsewhich texmf.cnf
6179 \end_layout
6180
6181 \end_inset
6182
6183  to locate it.
6184 \end_layout
6185
6186 \end_inset
6187
6188  The location of the `local' \SpecialChar TeX
6189  tree is defined by the 
6190 \begin_inset Flex Code
6191 status collapsed
6192
6193 \begin_layout Plain Layout
6194 TEXMFLOCAL
6195 \end_layout
6196
6197 \end_inset
6198
6199  variable; this is usually somewhere like 
6200 \begin_inset Flex Code
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204 /usr/local/share/texmf
6205 \end_layout
6206
6207 \end_inset
6208
6209  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6210 Live
6211  distribution.
6212  The location of the `user' \SpecialChar TeX
6213  tree is defined by 
6214 \begin_inset Flex Code
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 TEXMFHOME
6219 \end_layout
6220
6221 \end_inset
6222
6223  and is commonly 
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 $HOME/texmf
6229 \end_layout
6230
6231 \end_inset
6232
6233  or 
6234 \begin_inset Flex Code
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238
6239 \family sans
6240 \lang french
6241 $HOME/.texliveXXXX
6242 \end_layout
6243
6244 \end_inset
6245
6246 .
6247  (If these variables are not predefined, you have to define them.) You'll
6248  probably need root permissions to create or modify the `local' tree, but
6249  not for your `user' tree.
6250 \begin_inset Newline newline
6251 \end_inset
6252
6253 In general, it is recommended to install in the user tree because your user
6254  will not be modified or even overwritten when you upgrade your system.
6255  It will typically also be backed up together with everything else when
6256  you backup your home directory (which, of course, you do on a regular basis).
6257 \end_layout
6258
6259 \begin_layout Enumerate
6260 On Windows, if you want the new package to be available for all users on
6261  your system, change to the folder where \SpecialChar LaTeX
6262  is installed and then change to
6263  the subfolder 
6264 \begin_inset Flex Code
6265 status collapsed
6266
6267 \begin_layout Plain Layout
6268 ~
6269 \backslash
6270 tex
6271 \backslash
6272 latex
6273 \end_layout
6274
6275 \end_inset
6276
6277 .
6278  (For MiK\SpecialChar TeX
6279 , this would be by default the folder 
6280 \begin_inset Flex Code
6281 status collapsed
6282
6283 \begin_layout Plain Layout
6284 ~:
6285 \backslash
6286 Programs
6287 \backslash
6288 MiKTeX
6289 \backslash
6290 tex
6291 \backslash
6292 latex
6293 \end_layout
6294
6295 \end_inset
6296
6297 .)
6298 \begin_inset Foot
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 Note that this will be the correct path only on English installations.
6303  On a German one, it would be 
6304 \begin_inset Flex Code
6305 status collapsed
6306
6307 \begin_layout Plain Layout
6308 ~:
6309 \backslash
6310 Programme
6311 \backslash
6312 MiKTeX
6313 \backslash
6314 tex
6315 \backslash
6316 latex
6317 \end_layout
6318
6319 \end_inset
6320
6321 , and similarly for other languages.
6322 \end_layout
6323
6324 \end_inset
6325
6326  Create there a new folder 
6327 \begin_inset Flex Code
6328 status collapsed
6329
6330 \begin_layout Plain Layout
6331 foiltex
6332 \end_layout
6333
6334 \end_inset
6335
6336  and copy all files of the package into it.
6337  
6338 \begin_inset Newline newline
6339 \end_inset
6340
6341 If the package should only available for you or you don't have admin permissions
6342 , do the same, but in the local \SpecialChar LaTeX
6343  folder.
6344  E.
6345 \begin_inset space \thinspace{}
6346 \end_inset
6347
6348 g., for MiK\SpecialChar TeX
6349
6350 \begin_inset space ~
6351 \end_inset
6352
6353 2.8 under Windows XP, this would be the folder:
6354 \begin_inset Newline newline
6355 \end_inset
6356
6357
6358 \family sans
6359
6360 \begin_inset Flex Code
6361 status collapsed
6362
6363 \begin_layout Plain Layout
6364 ~:
6365 \backslash
6366 Documents and Settings
6367 \backslash
6368 <username>
6369 \backslash
6370 Application Data
6371 \backslash
6372
6373 \end_layout
6374
6375 \end_inset
6376
6377
6378 \begin_inset Newline newline
6379 \end_inset
6380
6381
6382 \family default
6383
6384 \begin_inset Phantom HPhantom
6385 status open
6386
6387 \begin_layout Plain Layout
6388
6389 \family sans
6390 ~:
6391 \backslash
6392
6393 \end_layout
6394
6395 \end_inset
6396
6397
6398 \begin_inset Flex Code
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 MiKTeX
6403 \backslash
6404 2.8
6405 \backslash
6406 tex
6407 \backslash
6408 latex
6409 \end_layout
6410
6411 \end_inset
6412
6413
6414 \begin_inset Newline newline
6415 \end_inset
6416
6417 On Vista, it would be:
6418 \begin_inset Newline newline
6419 \end_inset
6420
6421
6422 \begin_inset Flex Code
6423 status collapsed
6424
6425 \begin_layout Plain Layout
6426 ~:
6427 \backslash
6428 Users
6429 \backslash
6430 <username>
6431 \backslash
6432 AppData
6433 \backslash
6434 Roaming
6435 \backslash
6436 2.8
6437 \backslash
6438 MiKTeX
6439 \backslash
6440 tex
6441 \backslash
6442 latex
6443 \end_layout
6444
6445 \end_inset
6446
6447
6448 \end_layout
6449
6450 \end_deeper
6451 \begin_layout Enumerate
6452 Now one only need to tell \SpecialChar LaTeX
6453  that there are new files.
6454  This depends on the used \SpecialChar LaTeX
6455 -Distribution:
6456 \end_layout
6457
6458 \begin_deeper
6459 \begin_layout Enumerate
6460 For \SpecialChar TeX
6461 Live execute the command 
6462 \begin_inset Flex Code
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 texhash
6467 \end_layout
6468
6469 \end_inset
6470
6471  from a console.
6472  If you installed the package for all users, then you will probably need
6473  to have root permissions for that.
6474 \end_layout
6475
6476 \begin_layout Enumerate
6477 For MiK\SpecialChar TeX
6478 , if you have installed the package for all users, start the program
6479  
6480 \begin_inset Quotes eld
6481 \end_inset
6482
6483 Settings
6484 \begin_inset space ~
6485 \end_inset
6486
6487 (Admin)
6488 \begin_inset Quotes erd
6489 \end_inset
6490
6491  and press the button marked 
6492 \begin_inset Quotes eld
6493 \end_inset
6494
6495 Refresh FNDB
6496 \begin_inset Quotes erd
6497 \end_inset
6498
6499 .
6500  Otherwise start the program 
6501 \begin_inset Quotes eld
6502 \end_inset
6503
6504 Settings
6505 \begin_inset Quotes erd
6506 \end_inset
6507
6508  and do the same.
6509 \end_layout
6510
6511 \end_deeper
6512 \begin_layout Enumerate
6513 Finally, you need to tell \SpecialChar LyX
6514  that there are new packages available.
6515  So, in \SpecialChar LyX
6516 , use the menu 
6517 \begin_inset Flex Noun
6518 status collapsed
6519
6520 \begin_layout Plain Layout
6521 Tools
6522 \family sans
6523 \SpecialChar menuseparator
6524 Reconfigure
6525 \end_layout
6526
6527 \end_inset
6528
6529  and then restart \SpecialChar LyX
6530 .
6531 \end_layout
6532
6533 \begin_layout Standard
6534 Now the package is installed.
6535  In our example, the document class 
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 Slides
6541 \begin_inset space ~
6542 \end_inset
6543
6544 (FoilTex)
6545 \end_layout
6546
6547 \end_inset
6548
6549  will now be available under 
6550 \begin_inset Flex Noun
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 Document\SpecialChar menuseparator
6555 Settings\SpecialChar menuseparator
6556 Document Class
6557 \end_layout
6558
6559 \end_inset
6560
6561 .
6562  
6563 \end_layout
6564
6565 \begin_layout Standard
6566 If you would like to use a \SpecialChar LaTeX
6567  document class that is not even listed in the
6568  menu 
6569 \begin_inset Flex Noun
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 Document\SpecialChar menuseparator
6574 Settings\SpecialChar menuseparator
6575 Document Class
6576 \end_layout
6577
6578 \end_inset
6579
6580 , then you need to create a `layout' file for it.
6581  That is the topic of the next section.
6582 \end_layout
6583
6584 \begin_layout Section
6585 Types of layout files
6586 \end_layout
6587
6588 \begin_layout Standard
6589 This section describes the various sorts of \SpecialChar LyX
6590  files that contain layout informati
6591 on.
6592  These files describe various paragraph and character styles, determining
6593  how \SpecialChar LyX
6594  should display them and how they should be translated into \SpecialChar LaTeX
6595 , DocBook,
6596  XHTML, or whatever output format is being used.
6597  
6598 \end_layout
6599
6600 \begin_layout Standard
6601 We shall try to provide a thorough description of the process of writing
6602  layout files here.
6603  However, there are so many different types of documents supported even
6604  by just \SpecialChar LaTeX
6605  that we can't hope to cover every different possibility or problem
6606  you might encounter.
6607  The \SpecialChar LyX
6608  users' list is frequented by people with lots of experience with layout
6609  design who are willing to share what they've learned, so please feel free
6610  to ask questions there.
6611 \end_layout
6612
6613 \begin_layout Standard
6614 As you prepare to write a new layout, it is extremely helpful to look at
6615  the layouts distributed with \SpecialChar LyX
6616 .
6617  If you write a \SpecialChar LyX
6618  layout for a \SpecialChar LaTeX
6619  document class that might also be used by
6620  others, or write a module that might be useful to others, then you should
6621  consider posting your layout to the 
6622 \begin_inset CommandInset href
6623 LatexCommand href
6624 name "layout section on the LyX wiki"
6625 target "http://wiki.lyx.org/Layouts/Layouts"
6626 literal "false"
6627
6628 \end_inset
6629
6630  or even to the \SpecialChar LyX
6631  developers' list, so that it might be included in \SpecialChar LyX
6632  itself.
6633 \begin_inset Foot
6634 status collapsed
6635
6636 \begin_layout Plain Layout
6637 Note that \SpecialChar LyX
6638  is licensed under the General Public License, so any material
6639  that is contributed to \SpecialChar LyX
6640  must be similarly licensed.
6641 \end_layout
6642
6643 \end_inset
6644
6645
6646 \end_layout
6647
6648 \begin_layout Subsection
6649 Layout modules
6650 \begin_inset CommandInset label
6651 LatexCommand label
6652 name "subsec:Layout-modules"
6653
6654 \end_inset
6655
6656
6657 \end_layout
6658
6659 \begin_layout Standard
6660 We have spoken to this point about `layout files'.
6661  But there are different sorts of files that contain layout information.
6662  Layout files, strictly so called, have the 
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 .layout
6668 \end_layout
6669
6670 \end_inset
6671
6672  extension and provide \SpecialChar LyX
6673  with information about document classes.
6674  Since \SpecialChar LyX
6675  1.6 layout information can also be contained in layout 
6676 \emph on
6677 modules
6678 \emph default
6679 , which have the 
6680 \begin_inset Flex Code
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 .module
6685 \end_layout
6686
6687 \end_inset
6688
6689  extension.
6690  Modules are to \SpecialChar LaTeX
6691  packages much as layouts are to \SpecialChar LaTeX
6692  classes, and some modules—such
6693  as the 
6694 \begin_inset Flex Code
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 endnotes
6699 \end_layout
6700
6701 \end_inset
6702
6703  module—specifically provide support for one package.
6704  In a sense, layout modules are similar to included
6705 \begin_inset Foot
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 These can have any extension, but by convention have the 
6710 \begin_inset Flex Code
6711 status collapsed
6712
6713 \begin_layout Plain Layout
6714 .inc
6715 \end_layout
6716
6717 \end_inset
6718
6719  extension.
6720 \end_layout
6721
6722 \end_inset
6723
6724  files—files like 
6725 \begin_inset Flex Code
6726 status collapsed
6727
6728 \begin_layout Plain Layout
6729 stdsections.inc
6730 \end_layout
6731
6732 \end_inset
6733
6734 —in that modules are not specific to a given document class but may be used
6735  with many different classes.
6736  The difference is that using an included file with 
6737 \begin_inset Flex Code
6738 status collapsed
6739
6740 \begin_layout Plain Layout
6741 article.cls
6742 \end_layout
6743
6744 \end_inset
6745
6746  requires editing that file.
6747  Modules, by contrast, are selected in the 
6748 \begin_inset Flex Noun
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 Document\SpecialChar menuseparator
6753 Settings
6754 \end_layout
6755
6756 \end_inset
6757
6758  dialog.
6759 \end_layout
6760
6761 \begin_layout Standard
6762 Building modules is the easiest way to get started with layout editing,
6763  since it can be as simple as adding a single new paragraph style or flex
6764  inset.
6765  But modules may, in principle, contain anything a layout file can contain.
6766 \end_layout
6767
6768 \begin_layout Standard
6769 After creating a new module and copying it to the 
6770 \begin_inset Flex Code
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774 layouts/
6775 \end_layout
6776
6777 \end_inset
6778
6779  folder, you will need to reconfigure and then restart \SpecialChar LyX
6780  for the module to
6781  appear in the menu.
6782  However, changes you make to the module will be seen immediately, if you
6783  open 
6784 \begin_inset Flex Noun
6785 status collapsed
6786
6787 \begin_layout Plain Layout
6788 Document\SpecialChar menuseparator
6789 Settings
6790 \end_layout
6791
6792 \end_inset
6793
6794 , highlight something, and then hit 
6795 \begin_inset Quotes eld
6796 \end_inset
6797
6798 OK
6799 \begin_inset Quotes erd
6800 \end_inset
6801
6802 .
6803  
6804 \emph on
6805 It is strongly recommended that you save your work before doing this
6806 \emph default
6807 .
6808  In fact, 
6809 \emph on
6810 it is strongly recommended that you not attempt to edit modules while simultaneo
6811 usly working on actual documents
6812 \emph default
6813 .
6814  Though of course the developers strive to keep \SpecialChar LyX
6815  stable in such situations,
6816  syntax errors and the like in your module file could cause strange behavior.
6817 \end_layout
6818
6819 \begin_layout Subsubsection
6820 Local Layout
6821 \end_layout
6822
6823 \begin_layout Standard
6824 Modules are to \SpecialChar LyX
6825  as packages are to \SpecialChar LaTeX
6826 .
6827  Sometimes, however, you find yourself wanting a specific inset or character
6828  style just for one document and writing a module that will also be available
6829  to other documents makes little sense.
6830  What you need is \SpecialChar LyX
6831 's 
6832 \begin_inset Quotes eld
6833 \end_inset
6834
6835 Local Layout
6836 \begin_inset Quotes erd
6837 \end_inset
6838
6839 .
6840 \end_layout
6841
6842 \begin_layout Standard
6843 You will find it under 
6844 \family sans
6845 Document\SpecialChar menuseparator
6846 Settings\SpecialChar menuseparator
6847 Local Layout
6848 \family default
6849 .
6850  The large text box allows you to enter anything that you might enter in
6851  a layout file or module.
6852  You can think of a document's local layout, in fact, as a module that belongs
6853  just to it.
6854  So, in particular, you must enter a 
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 Format
6860 \end_layout
6861
6862 \end_inset
6863
6864  tag.
6865  Any format is acceptable, but one would normally use the format current
6866  at the time.
6867  (In \SpecialChar LyX
6868  2.2, the current layout format is 60.)
6869 \end_layout
6870
6871 \begin_layout Standard
6872 When you have entered something in the 
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 Local Layout
6878 \end_layout
6879
6880 \end_inset
6881
6882  pane, \SpecialChar LyX
6883  will enable the 
6884 \begin_inset Quotes eld
6885 \end_inset
6886
6887 Validate
6888 \begin_inset Quotes erd
6889 \end_inset
6890
6891  button at the bottom.
6892  Clicking this button will cause \SpecialChar LyX
6893  to determine whether what you have entered
6894  is valid layout information for the chosen format.
6895  \SpecialChar LyX
6896  will report the result but, unfortunately, will not tell you what errors
6897  there might have been.
6898  These will be written to the terminal, however, if \SpecialChar LyX
6899  is started from a terminal.
6900  You will not be permitted to save your local layout until you have entered
6901  something valid.
6902 \end_layout
6903
6904 \begin_layout Standard
6905 The warnings at the end of the previous section apply here, too.
6906  Do not play with local layout while you are actually working, especially
6907  if you have not saved your document.
6908  That said, using local layout with a test document can be a very convenient
6909  way to try out layout ideas, or even to start developing a module.
6910 \end_layout
6911
6912 \begin_layout Subsection
6913 Layout for 
6914 \begin_inset Flex Noun
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 .sty
6919 \end_layout
6920
6921 \end_inset
6922
6923  files
6924 \end_layout
6925
6926 \begin_layout Standard
6927 There are two situations you are likely to encounter when wanting to support
6928  a new \SpecialChar LaTeX
6929  document class, involving style (
6930 \begin_inset Flex Code
6931 status collapsed
6932
6933 \begin_layout Plain Layout
6934 .sty
6935 \end_layout
6936
6937 \end_inset
6938
6939 ) files and \SpecialChar LaTeX2e
6940  class (
6941 \begin_inset Flex Code
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 .cls
6946 \end_layout
6947
6948 \end_inset
6949
6950 ) .
6951  Supporting a style file is usually fairly easy.
6952  Supporting a new class file is a bit harder.
6953  We'll discuss the former in this section and the latter in the next.
6954  Similar remarks apply, of course, if you want to support a new DocBook
6955  DTD.
6956 \end_layout
6957
6958 \begin_layout Standard
6959 The easier case is the one in which your new document class is provided
6960  as a style file that is to be used in conjunction with an already supported
6961  document class.
6962  For the sake of the example, we'll assume that the style file is called
6963  
6964 \begin_inset Flex Noun
6965 status collapsed
6966
6967 \begin_layout Plain Layout
6968 myclass.sty
6969 \end_layout
6970
6971 \end_inset
6972
6973  and that it is meant to be used with 
6974 \begin_inset Flex Noun
6975 status collapsed
6976
6977 \begin_layout Plain Layout
6978 report.cls
6979 \end_layout
6980
6981 \end_inset
6982
6983 , which is a standard class.
6984  
6985 \end_layout
6986
6987 \begin_layout Standard
6988 Start by copying the existing class's layout file into your local directory:
6989 \begin_inset Foot
6990 status collapsed
6991
6992 \begin_layout Plain Layout
6993 Of course, which directory is your local directory will vary by platform,
6994  and \SpecialChar LyX
6995  allows you to specify your local directory on startup, too, using
6996  the 
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 -userdir
7002 \end_layout
7003
7004 \end_inset
7005
7006  option.
7007 \end_layout
7008
7009 \end_inset
7010
7011
7012 \end_layout
7013
7014 \begin_layout LyX-Code
7015 cp report.layout ~/.lyx/layouts/myclass.layout
7016 \end_layout
7017
7018 \begin_layout Standard
7019 Then edit 
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 myclass.layout
7025 \end_layout
7026
7027 \end_inset
7028
7029  and change the line: 
7030 \end_layout
7031
7032 \begin_layout LyX-Code
7033
7034 \backslash
7035 DeclareLaTeXClass{report}
7036 \end_layout
7037
7038 \begin_layout Standard
7039 to read
7040 \end_layout
7041
7042 \begin_layout LyX-Code
7043
7044 \backslash
7045 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
7046 \end_layout
7047
7048 \begin_layout Standard
7049 Then add:
7050 \end_layout
7051
7052 \begin_layout LyX-Code
7053 Preamble 
7054 \begin_inset Newline newline
7055 \end_inset
7056
7057     
7058 \backslash
7059 usepackage{myclass}
7060 \begin_inset Newline newline
7061 \end_inset
7062
7063 EndPreamble
7064 \end_layout
7065
7066 \begin_layout Standard
7067 near the top of the file.
7068 \end_layout
7069
7070 \begin_layout Standard
7071 Start \SpecialChar LyX
7072  and select 
7073 \begin_inset Flex Noun
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 Tools\SpecialChar menuseparator
7078 Reconfigure
7079 \end_layout
7080
7081 \end_inset
7082
7083 .
7084  Then restart \SpecialChar LyX
7085  and try creating a new document.
7086  You should see "
7087 \begin_inset Flex Noun
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 report (myclass)
7092 \end_layout
7093
7094 \end_inset
7095
7096 " as a document class option in the 
7097 \begin_inset Flex Noun
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 Document\SpecialChar menuseparator
7102 Settings
7103 \end_layout
7104
7105 \end_inset
7106
7107  dialog.
7108  It is likely that some of the sectioning commands and such in your new
7109  class will work differently from how they worked in the base class—
7110 \begin_inset Flex Code
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 report
7115 \end_layout
7116
7117 \end_inset
7118
7119  in this example—so you can fiddle around with the settings for the different
7120  sections if you wish.
7121  The layout information for sections is contained in 
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 stdsections.inc
7127 \end_layout
7128
7129 \end_inset
7130
7131 , but you do not need to copy and change this file.
7132  Instead, you can simply add your changes to your layout file, after the
7133  line 
7134 \begin_inset Flex Code
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 Input stdclass.inc
7139 \end_layout
7140
7141 \end_inset
7142
7143 , which itself includes 
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 stdsections.inc
7149 \end_layout
7150
7151 \end_inset
7152
7153 .
7154  For example, you might add these lines:
7155 \end_layout
7156
7157 \begin_layout LyX-Code
7158 Style Chapter
7159 \end_layout
7160
7161 \begin_layout LyX-Code
7162     Font
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166         Family Sans
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170     EndFont
7171 \end_layout
7172
7173 \begin_layout LyX-Code
7174 End
7175 \end_layout
7176
7177 \begin_layout Standard
7178 to change the font for chapter headings to sans-serif.
7179  This will override (or, in this case, add to) the existing declaration
7180  for the Chapter style.
7181  
7182 \end_layout
7183
7184 \begin_layout Standard
7185 Your new package may also provide commands or environments not present in
7186  the base class.
7187  In this case, you will want to add these to the layout file.
7188  See 
7189 \begin_inset CommandInset ref
7190 LatexCommand ref
7191 reference "sec:TextClass"
7192
7193 \end_inset
7194
7195  for information on how to do so.
7196 \end_layout
7197
7198 \begin_layout Standard
7199 If 
7200 \begin_inset Flex Noun
7201 status collapsed
7202
7203 \begin_layout Plain Layout
7204 myclass.sty
7205 \end_layout
7206
7207 \end_inset
7208
7209  can be used with several different document classes, and even if it cannot,
7210  you might find it easiest just to write a module that you can load with
7211  the base class.
7212  The simplest possible such module would be:
7213 \end_layout
7214
7215 \begin_layout LyX-Code
7216 #
7217 \backslash
7218 DeclareLyXModule{My Package} 
7219 \end_layout
7220
7221 \begin_layout LyX-Code
7222 #DescriptionBegin 
7223 \end_layout
7224
7225 \begin_layout LyX-Code
7226 #Support for mypkg.sty.
7227 \end_layout
7228
7229 \begin_layout LyX-Code
7230 #DescriptionEnd
7231 \begin_inset Newline newline
7232 \end_inset
7233
7234
7235 \end_layout
7236
7237 \begin_layout LyX-Code
7238 Format 60
7239 \begin_inset Newline newline
7240 \end_inset
7241
7242
7243 \end_layout
7244
7245 \begin_layout LyX-Code
7246 Preamble
7247 \begin_inset Newline newline
7248 \end_inset
7249
7250     
7251 \backslash
7252 usepackage{mypkg}
7253 \begin_inset Newline newline
7254 \end_inset
7255
7256 EndPreamble
7257 \end_layout
7258
7259 \begin_layout Standard
7260 A more complex module might modify the behavior of some existing constructs
7261  or define some new ones.
7262  Again, see 
7263 \begin_inset CommandInset ref
7264 LatexCommand ref
7265 reference "sec:TextClass"
7266
7267 \end_inset
7268
7269  for discussion.
7270 \end_layout
7271
7272 \begin_layout Subsection
7273 Layout for 
7274 \begin_inset Flex Noun
7275 status collapsed
7276
7277 \begin_layout Plain Layout
7278 .cls
7279 \end_layout
7280
7281 \end_inset
7282
7283  files
7284 \end_layout
7285
7286 \begin_layout Standard
7287 There are two possibilities here.
7288  One is that the class file is itself based upon an existing document class.
7289  For example, many thesis classes are based upon 
7290 \begin_inset Flex Noun
7291 status collapsed
7292
7293 \begin_layout Plain Layout
7294 book.cls
7295 \end_layout
7296
7297 \end_inset
7298
7299 .
7300  To see whether yours is, look for a line like
7301 \end_layout
7302
7303 \begin_layout LyX-Code
7304
7305 \backslash
7306 LoadClass{book}
7307 \end_layout
7308
7309 \begin_layout Standard
7310 in the file.
7311  If so, then you may proceed largely as in the previous section, though
7312  the 
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 Declare\SpecialChar LaTeX
7318 Class
7319 \end_layout
7320
7321 \end_inset
7322
7323  line will be different.
7324  If your new class is 
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 thesis
7330 \end_layout
7331
7332 \end_inset
7333
7334  and it is based upon 
7335 \begin_inset Flex Code
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 book
7340 \end_layout
7341
7342 \end_inset
7343
7344 , then the line should read:
7345 \begin_inset Foot
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 And it will be easiest if you save the file to 
7350 \begin_inset Flex Code
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 thesis.layout
7355 \end_layout
7356
7357 \end_inset
7358
7359 : \SpecialChar LyX
7360  assumes that the document class has the same name as the layout file.
7361  
7362 \end_layout
7363
7364 \end_inset
7365
7366
7367 \end_layout
7368
7369 \begin_layout LyX-Code
7370
7371 \backslash
7372 DeclareLaTeXClass[thesis,book]{thesis}
7373 \end_layout
7374
7375 \begin_layout Standard
7376 If, on the other hand, the new class is not based upon an existing class,
7377  you will probably have to 
7378 \begin_inset Quotes eld
7379 \end_inset
7380
7381 roll your own
7382 \begin_inset Quotes erd
7383 \end_inset
7384
7385  layout.
7386  We strongly suggest copying an existing layout file which uses a similar
7387  \SpecialChar LaTeX
7388  class and then modifying it, if you can do so.
7389  At least use an existing file as a starting point so you can find out what
7390  items you need to worry about.
7391  Again, the specifics are covered below.
7392 \end_layout
7393
7394 \begin_layout Subsection
7395 Creating templates
7396 \begin_inset CommandInset label
7397 LatexCommand label
7398 name "subsec:Creating-Templates"
7399
7400 \end_inset
7401
7402
7403 \end_layout
7404
7405 \begin_layout Standard
7406 Once you have written a layout file for a new document class, you might
7407  want to consider writing a 
7408 \emph on
7409 template
7410 \emph default
7411  for it, too.
7412  A template acts as a kind of tutorial for your layout, showing how it might
7413  be used, though containing dummy content.
7414  You can of course look at the various templates included with \SpecialChar LyX
7415  for ideas.
7416 \end_layout
7417
7418 \begin_layout Standard
7419 Templates are created just like usual documents: using \SpecialChar LyX
7420 .
7421  The only difference is that usual documents contain all possible settings,
7422  including the font scheme and the paper size.
7423  Usually a user doesn't want a template to overwrite his preferred settings
7424  for such parameters.
7425  For that reason, the designer of a template should remove the corresponding
7426  commands like 
7427 \begin_inset Flex Code
7428 status collapsed
7429
7430 \begin_layout Plain Layout
7431
7432 \backslash
7433 font_roman
7434 \end_layout
7435
7436 \end_inset
7437
7438  or 
7439 \begin_inset Flex Code
7440 status collapsed
7441
7442 \begin_layout Plain Layout
7443
7444 \backslash
7445 papersize
7446 \end_layout
7447
7448 \end_inset
7449
7450  from the template \SpecialChar LyX
7451  file.
7452  This can be done with any simple text-editor, for example 
7453 \begin_inset Flex Code
7454 status collapsed
7455
7456 \begin_layout Plain Layout
7457 vi
7458 \end_layout
7459
7460 \end_inset
7461
7462  or 
7463 \begin_inset Flex Code
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 notepad
7468 \end_layout
7469
7470 \end_inset
7471
7472 .
7473 \end_layout
7474
7475 \begin_layout Standard
7476 Put the edited template files you create in 
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 UserDir/templates/
7482 \end_layout
7483
7484 \end_inset
7485
7486 , copy the ones you use from the global template directory in 
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 LyXDir/templates/
7492 \end_layout
7493
7494 \end_inset
7495
7496  to the same place, and redefine the template path in the 
7497 \begin_inset Flex Noun
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 Tools\SpecialChar menuseparator
7502 Preferences\SpecialChar menuseparator
7503 Paths
7504 \end_layout
7505
7506 \end_inset
7507
7508  dialog.
7509 \end_layout
7510
7511 \begin_layout Standard
7512 Note, by the way, that there is a template which has a particular meaning:
7513  
7514 \begin_inset Flex Code
7515 status collapsed
7516
7517 \begin_layout Plain Layout
7518 defaults.lyx
7519 \end_layout
7520
7521 \end_inset
7522
7523 .
7524  This template is loaded every time you create a new document with 
7525 \begin_inset Flex Noun
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 File\SpecialChar menuseparator
7530 New
7531 \end_layout
7532
7533 \end_inset
7534
7535  in order to provide useful defaults.
7536  To create this template from inside \SpecialChar LyX
7537 , all you have to do is to open a document
7538  with the correct settings, and use the 
7539 \begin_inset Flex Noun
7540 status collapsed
7541
7542 \begin_layout Plain Layout
7543 Save as Document Defaults
7544 \end_layout
7545
7546 \end_inset
7547
7548  button.
7549 \end_layout
7550
7551 \begin_layout Subsection
7552 Upgrading old layout files
7553 \end_layout
7554
7555 \begin_layout Standard
7556 The format of layout files changes with each \SpecialChar LyX
7557  release, so old layout files
7558  need to be converted to the new format.
7559  If \SpecialChar LyX
7560  reads a layout file in an older format, it automatically calls the
7561  script 
7562 \begin_inset Flex Code
7563 status collapsed
7564
7565 \begin_layout Plain Layout
7566 layout2layout.py
7567 \end_layout
7568
7569 \end_inset
7570
7571  to convert it to a temporary file in current format.
7572  The original file is left untouched.
7573  If you use the layout file often, then, you may want to convert it permanently,
7574  so that \SpecialChar LyX
7575  does not have to do so itself every time.
7576  To do this, you can call the converter manually:
7577 \end_layout
7578
7579 \begin_layout Enumerate
7580 rename the file 
7581 \begin_inset Flex Code
7582 status collapsed
7583
7584 \begin_layout Plain Layout
7585 myclass.layout
7586 \end_layout
7587
7588 \end_inset
7589
7590  to 
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595 myclass.old
7596 \end_layout
7597
7598 \end_inset
7599
7600
7601 \end_layout
7602
7603 \begin_layout Enumerate
7604 Call the command
7605 \begin_inset Newline newline
7606 \end_inset
7607
7608
7609 \begin_inset Flex Code
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7614 \end_layout
7615
7616 \end_inset
7617
7618
7619 \begin_inset Newline newline
7620 \end_inset
7621
7622 where 
7623 \begin_inset Flex Code
7624 status collapsed
7625
7626 \begin_layout Plain Layout
7627 LyXDir
7628 \end_layout
7629
7630 \end_inset
7631
7632  is the name of your \SpecialChar LyX
7633  system directory.
7634 \end_layout
7635
7636 \begin_layout Standard
7637 Note that manual conversion does not affect included files, so these will
7638  have to be converted separately.
7639 \change_inserted -712698321 1483873435
7640
7641 \end_layout
7642
7643 \begin_layout Subsection
7644
7645 \change_inserted -712698321 1483875083
7646 \begin_inset CommandInset label
7647 LatexCommand label
7648 name "subsec:Cite-Engine-Files"
7649
7650 \end_inset
7651
7652 Cite engine files
7653 \end_layout
7654
7655 \begin_layout Standard
7656
7657 \change_inserted -712698321 1483874213
7658 A specific form of layout files are the so-called 
7659 \begin_inset Flex Code
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663
7664 \change_inserted -712698321 1483873546
7665 *.citeengine
7666 \end_layout
7667
7668 \end_inset
7669
7670  files that are located in the 
7671 \begin_inset Flex Code
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675
7676 \change_inserted -712698321 1483873546
7677 citeengines/
7678 \end_layout
7679
7680 \end_inset
7681
7682  sub-directory.
7683  Their purpose is to define the specifics of \SpecialChar LaTeX
7684  packages aimed at bibliography
7685  generation, such as 
7686 \family sans
7687 natbib
7688 \family default
7689 ,
7690 \family sans
7691  jurabib
7692 \family default
7693  or 
7694 \family sans
7695 biblatex
7696 \family default
7697 , but also the way how normal Bib\SpecialChar TeX
7698  citations (without additional packages)
7699  are handled in \SpecialChar LyX
7700  is defined in such a file.
7701  
7702 \end_layout
7703
7704 \begin_layout Standard
7705
7706 \change_inserted -712698321 1483874969
7707 More specifically, it is defined which packages \SpecialChar LyX
7708  needs to load, which citation
7709  commands are available, how these are to be displayed in \SpecialChar LyX
7710  (in the workarea,
7711  the dialogs, the context menus) as well as in the XHTML and plain text
7712  output.
7713  Furthermore, the files specify available style variants (author-year, numerical
7714 , etc.) and their specifics.
7715  The cite engine files are also used to generate the options that are available
7716  in 
7717 \family sans
7718 Document\SpecialChar menuseparator
7719 Settings\SpecialChar ldots
7720 \SpecialChar menuseparator
7721 Bibliography\SpecialChar menuseparator
7722 Style engine
7723 \family default
7724 .
7725 \end_layout
7726
7727 \begin_layout Standard
7728
7729 \change_inserted -712698321 1483875180
7730 Even though a cite engine file is essentially a normal layout file that
7731  could theoretically include any layout information, it usually primarily
7732  includes some specific parameters such as 
7733 \begin_inset Flex Code
7734 status collapsed
7735
7736 \begin_layout Plain Layout
7737
7738 \change_inserted -712698321 1483874688
7739 MaxCiteNames
7740 \change_unchanged
7741
7742 \end_layout
7743
7744 \end_inset
7745
7746
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751
7752 \change_inserted -712698321 1483875180
7753 CiteFramework
7754 \change_unchanged
7755
7756 \end_layout
7757
7758 \end_inset
7759
7760
7761 \begin_inset Flex Code
7762 status collapsed
7763
7764 \begin_layout Plain Layout
7765
7766 \change_inserted -712698321 1483874477
7767 CiteEngine
7768 \change_unchanged
7769
7770 \end_layout
7771
7772 \end_inset
7773
7774  and 
7775 \begin_inset Flex Code
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779
7780 \change_inserted -712698321 1483874482
7781 CiteFormat
7782 \change_unchanged
7783
7784 \end_layout
7785
7786 \end_inset
7787
7788  blocks.
7789  The syntax of the latter two is described in 
7790 \begin_inset CommandInset ref
7791 LatexCommand ref
7792 reference "subsec:Citation-engine-description"
7793 plural "false"
7794 caps "false"
7795 noprefix "false"
7796
7797 \end_inset
7798
7799  and 
7800 \begin_inset CommandInset ref
7801 LatexCommand ref
7802 reference "subsec:Citation-format-description"
7803
7804 \end_inset
7805
7806 , as well as in the files themselves.
7807 \change_unchanged
7808
7809 \end_layout
7810
7811 \begin_layout Section
7812 \begin_inset CommandInset label
7813 LatexCommand label
7814 name "sec:TextClass"
7815
7816 \end_inset
7817
7818 The layout file format
7819 \end_layout
7820
7821 \begin_layout Standard
7822 The following sections describe how layout files are structured and written.
7823  Our advice is to go slowly, save and test often.
7824  It is really not that hard, except that the multitude of options can become
7825  overwhelming, especially if you try to check out too many at once.
7826  It becomes easier if you use existing layouts of \SpecialChar LyX
7827  as examples/reference
7828  or if you modify an existing layout to your needs.
7829 \end_layout
7830
7831 \begin_layout Standard
7832 Note that all the tags used in layout files are case-insensitive.
7833  This means that 
7834 \begin_inset Flex Code
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 Style
7839 \end_layout
7840
7841 \end_inset
7842
7843
7844 \begin_inset Flex Code
7845 status collapsed
7846
7847 \begin_layout Plain Layout
7848 style
7849 \end_layout
7850
7851 \end_inset
7852
7853  and 
7854 \begin_inset Flex Code
7855 status collapsed
7856
7857 \begin_layout Plain Layout
7858 StYlE
7859 \end_layout
7860
7861 \end_inset
7862
7863  are really the same tag.
7864  The possible arguments are printed in brackets after the tag's name.
7865  The default argument is typeset 
7866 \begin_inset Flex Code
7867 status collapsed
7868
7869 \begin_layout Plain Layout
7870
7871 \emph on
7872 emphasized
7873 \end_layout
7874
7875 \end_inset
7876
7877 .
7878  If the argument has a data type like 
7879 \begin_inset Quotes eld
7880 \end_inset
7881
7882 string
7883 \begin_inset Quotes erd
7884 \end_inset
7885
7886  or 
7887 \begin_inset Quotes eld
7888 \end_inset
7889
7890 float
7891 \begin_inset Quotes erd
7892 \end_inset
7893
7894 , the default is shown like this: 
7895 \begin_inset Flex Code
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899 float=
7900 \emph on
7901 default
7902 \end_layout
7903
7904 \end_inset
7905
7906 .
7907 \end_layout
7908
7909 \begin_layout Subsection
7910 The document class declaration and classification
7911 \end_layout
7912
7913 \begin_layout Standard
7914 Lines in a layout file which begin with 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 #
7920 \end_layout
7921
7922 \end_inset
7923
7924  are comments.
7925  There is one exception to this rule.
7926  All 
7927 \begin_inset Flex Code
7928 status collapsed
7929
7930 \begin_layout Plain Layout
7931 *.layout
7932 \end_layout
7933
7934 \end_inset
7935
7936  files should begin with lines like:
7937 \end_layout
7938
7939 \begin_layout LyX-Code
7940
7941 \size small
7942 #% Do not delete the line below; configure depends on this 
7943 \end_layout
7944
7945 \begin_layout LyX-Code
7946
7947 \size small
7948 #  
7949 \backslash
7950 DeclareLaTeXClass{Article (Standard Class)}
7951 \end_layout
7952
7953 \begin_layout LyX-Code
7954
7955 \size small
7956 #  
7957 \backslash
7958 DeclareCategory{Articles}
7959 \end_layout
7960
7961 \begin_layout Standard
7962 The second and third lines are used when you (re)configure \SpecialChar LyX
7963 .
7964  The layout file is read by the \SpecialChar LaTeX
7965  script 
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 chkconfig.ltx
7971 \end_layout
7972
7973 \end_inset
7974
7975 , in a special mode where 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 #
7981 \end_layout
7982
7983 \end_inset
7984
7985  is ignored.
7986  The first line is just a \SpecialChar LaTeX
7987  comment, the second one contains the mandatory
7988  declaration of the text class and the third line contains the optional
7989  classification of the class.
7990  If these lines appear in a file named 
7991 \begin_inset Flex Code
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 article.layout
7996 \end_layout
7997
7998 \end_inset
7999
8000 , then they define a text class of name 
8001 \begin_inset Flex Code
8002 status collapsed
8003
8004 \begin_layout Plain Layout
8005 article
8006 \end_layout
8007
8008 \end_inset
8009
8010  (the name of the layout file) which uses the \SpecialChar LaTeX
8011  document class 
8012 \begin_inset Flex Code
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 article.cls
8017 \end_layout
8018
8019 \end_inset
8020
8021  (the default is to use the same name as the layout).
8022  The string 
8023 \begin_inset Quotes eld
8024 \end_inset
8025
8026 Article (Standard Class)
8027 \begin_inset Quotes erd
8028 \end_inset
8029
8030  that appears above is used as a description of the text class in the 
8031 \begin_inset Flex Noun
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035 Document\SpecialChar menuseparator
8036 Settings
8037 \end_layout
8038
8039 \end_inset
8040
8041  dialog.
8042  The category (
8043 \begin_inset Quotes eld
8044 \end_inset
8045
8046 Articles
8047 \begin_inset Quotes erd
8048 \end_inset
8049
8050  in the example) is also used in the 
8051 \begin_inset Flex Noun
8052 status collapsed
8053
8054 \begin_layout Plain Layout
8055 Document\SpecialChar menuseparator
8056 Settings
8057 \end_layout
8058
8059 \end_inset
8060
8061  dialog: the text classes are grouped by these categories (which are usually
8062  genres, so typical categories are 
8063 \begin_inset Quotes eld
8064 \end_inset
8065
8066 Articles
8067 \begin_inset Quotes erd
8068 \end_inset
8069
8070
8071 \begin_inset Quotes eld
8072 \end_inset
8073
8074 Books
8075 \begin_inset Quotes erd
8076 \end_inset
8077
8078
8079 \begin_inset Quotes eld
8080 \end_inset
8081
8082 Reports
8083 \begin_inset Quotes erd
8084 \end_inset
8085
8086
8087 \begin_inset Quotes eld
8088 \end_inset
8089
8090 Letters
8091 \begin_inset Quotes erd
8092 \end_inset
8093
8094
8095 \begin_inset Quotes eld
8096 \end_inset
8097
8098 Presentations
8099 \begin_inset Quotes erd
8100 \end_inset
8101
8102
8103 \begin_inset Quotes eld
8104 \end_inset
8105
8106 Curricula Vitae
8107 \begin_inset Quotes erd
8108 \end_inset
8109
8110  etc.).
8111  If no category has been declared, the class will be put in the 
8112 \begin_inset Quotes eld
8113 \end_inset
8114
8115 Uncategorized
8116 \begin_inset Quotes erd
8117 \end_inset
8118
8119  group.
8120 \end_layout
8121
8122 \begin_layout Standard
8123 Let's assume that you wrote your own text class that uses the 
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 article.cls
8129 \end_layout
8130
8131 \end_inset
8132
8133  document class, but where you changed the appearance of the section headings.
8134  If you put it in a file 
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 myarticle.layout
8140 \end_layout
8141
8142 \end_inset
8143
8144 , the header of this file should be:
8145 \end_layout
8146
8147 \begin_layout LyX-Code
8148
8149 \size small
8150 #% Do not delete the line below; configure depends on this 
8151 \end_layout
8152
8153 \begin_layout LyX-Code
8154
8155 \size small
8156 #  
8157 \backslash
8158 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8159 \end_layout
8160
8161 \begin_layout LyX-Code
8162
8163 \size small
8164 #  
8165 \backslash
8166 DeclareCategory{Articles}
8167 \end_layout
8168
8169 \begin_layout Standard
8170 This declares a text class 
8171 \begin_inset Flex Code
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 myarticle
8176 \end_layout
8177
8178 \end_inset
8179
8180 , associated with the \SpecialChar LaTeX
8181  document class 
8182 \begin_inset Flex Code
8183 status collapsed
8184
8185 \begin_layout Plain Layout
8186 article.cls
8187 \end_layout
8188
8189 \end_inset
8190
8191  and described as 
8192 \begin_inset Quotes eld
8193 \end_inset
8194
8195 Article (with My Own Headings)
8196 \begin_inset Quotes erd
8197 \end_inset
8198
8199 .
8200  If your text class depends on several packages, you can declare it as:
8201 \end_layout
8202
8203 \begin_layout LyX-Code
8204
8205 \size small
8206 #% Do not delete the line below; configure depends on this 
8207 \end_layout
8208
8209 \begin_layout LyX-Code
8210
8211 \size small
8212 #  
8213 \backslash
8214 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8215 \end_layout
8216
8217 \begin_layout LyX-Code
8218
8219 \size small
8220 #  
8221 \backslash
8222 DeclareCategory{Articles}
8223 \end_layout
8224
8225 \begin_layout Standard
8226 This indicates that your text class uses the 
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 foo.sty
8232 \end_layout
8233
8234 \end_inset
8235
8236  package.
8237  Finally, it is also possible to declare classes for DocBook code.
8238  Typical declarations will look like:
8239 \end_layout
8240
8241 \begin_layout LyX-Code
8242
8243 \size small
8244 #% Do not delete the line below; configure depends on this 
8245 \end_layout
8246
8247 \begin_layout LyX-Code
8248
8249 \size small
8250
8251 \backslash
8252 DeclareDocBookClass[article]{SGML (DocBook Article)}
8253 \end_layout
8254
8255 \begin_layout LyX-Code
8256
8257 \size small
8258
8259 \backslash
8260 DeclareCategory{Articles (DocBook)}
8261 \end_layout
8262
8263 \begin_layout Standard
8264 Note that these declarations can also be given an optional parameter declaring
8265  the name of the document class (but not a list).
8266 \end_layout
8267
8268 \begin_layout Standard
8269 So, to be as explicit as possible, the form of the layout declaration is:
8270 \end_layout
8271
8272 \begin_layout LyX-Code
8273
8274 \size small
8275 #  
8276 \backslash
8277 DeclareLaTeXClass[class,package.sty]{layout description}
8278 \end_layout
8279
8280 \begin_layout LyX-Code
8281
8282 \size small
8283 #  
8284 \backslash
8285 DeclareCategory{category}
8286 \end_layout
8287
8288 \begin_layout Standard
8289 The class need only be specified if the name of the \SpecialChar LaTeX
8290  class file and the
8291  name of the layout file are different or if there are packages to load.
8292  If the name of the class file is not specified, then \SpecialChar LyX
8293  will simply assume
8294  that it is the same as the name of the layout file.
8295 \end_layout
8296
8297 \begin_layout Standard
8298 When the text class has been modified to your taste, all you have to do
8299  is to copy it either to 
8300 \begin_inset Flex Code
8301 status collapsed
8302
8303 \begin_layout Plain Layout
8304 LyXDir/layouts/
8305 \end_layout
8306
8307 \end_inset
8308
8309  or to 
8310 \begin_inset Flex Code
8311 status collapsed
8312
8313 \begin_layout Plain Layout
8314 UserDir/layouts
8315 \end_layout
8316
8317 \end_inset
8318
8319 , run 
8320 \begin_inset Flex Noun
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324 Tools\SpecialChar menuseparator
8325 Reconfigure
8326 \end_layout
8327
8328 \end_inset
8329
8330 , exit \SpecialChar LyX
8331  and restart.
8332  Then your new text class should be available along with the others.
8333 \end_layout
8334
8335 \begin_layout Standard
8336 Once the layout file is installed, you can edit it and see your changes
8337  without having to reconfigure or to restart \SpecialChar LyX
8338 .
8339  
8340 \begin_inset Foot
8341 status collapsed
8342
8343 \begin_layout Plain Layout
8344 In versions of \SpecialChar LyX
8345  prior to 1.6, this was not true.
8346  As a result, editing layout files was very time consuming, since you had
8347  constantly to restart \SpecialChar LyX
8348  to see changes.
8349 \end_layout
8350
8351 \end_inset
8352
8353  You can force a reload of the current layout by using the \SpecialChar LyX
8354  function 
8355 \begin_inset Flex Noun
8356 status collapsed
8357
8358 \begin_layout Plain Layout
8359 layout-reload
8360 \end_layout
8361
8362 \end_inset
8363
8364 .
8365  There is no default binding for this function—though, of course, you can
8366  bind it to a key yourself.
8367  But you will normally use this function simply by entering it in the mini-buffe
8368 r.
8369  
8370 \end_layout
8371
8372 \begin_layout Standard
8373
8374 \emph on
8375 Warning
8376 \emph default
8377
8378 \begin_inset Flex Noun
8379 status collapsed
8380
8381 \begin_layout Plain Layout
8382 layout-reload
8383 \end_layout
8384
8385 \end_inset
8386
8387  is very much an `advanced feature'.
8388  It is 
8389 \emph on
8390 strongly
8391 \emph default
8392  recommended that you save your work before using this function.
8393  In fact, it is 
8394 \emph on
8395 strongly
8396 \emph default
8397  recommended that you not attempt to edit layout information while simultaneousl
8398 y working on a document that you care about.
8399  Use a test document.
8400  Syntax errors and the like in your layout file could cause peculiar behavior.
8401  In particular, such errors could cause \SpecialChar LyX
8402  to regard the current layout as
8403  invalid and to attempt to switch to some other layout.
8404 \begin_inset Foot
8405 status collapsed
8406
8407 \begin_layout Plain Layout
8408 Really bad syntax errors may even caused \SpecialChar LyX
8409  to exit.
8410  This is because certain sorts of errors may make \SpecialChar LyX
8411  unable to read 
8412 \emph on
8413 any
8414 \emph default
8415  layout information.
8416  Please be careful.
8417 \end_layout
8418
8419 \end_inset
8420
8421  The \SpecialChar LyX
8422  team strives to keep \SpecialChar LyX
8423  stable in such situations, but safe is better
8424  than sorry.
8425 \begin_inset Foot
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 While we're giving advice: make regular backups.
8430  And be nice to your mother.
8431 \end_layout
8432
8433 \end_inset
8434
8435
8436 \end_layout
8437
8438 \begin_layout Subsection
8439 The Module declaration
8440 \end_layout
8441
8442 \begin_layout Standard
8443 A module must begin with a line like the following:
8444 \end_layout
8445
8446 \begin_layout LyX-Code
8447 #
8448 \backslash
8449 DeclareLyXModule[endnotes.sty]{Endnotes} 
8450 \end_layout
8451
8452 \begin_layout Standard
8453 The mandatory argument, in curly brackets, is the name of the module, as
8454  it should appear in 
8455 \begin_inset Flex Noun
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459 Document\SpecialChar menuseparator
8460 Settings\SpecialChar menuseparator
8461 Modules
8462 \end_layout
8463
8464 \end_inset
8465
8466 .
8467  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8468  packages
8469  on which the module depends.
8470  It is also possible to use the form 
8471 \begin_inset Flex Noun
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 from->to
8476 \end_layout
8477
8478 \end_inset
8479
8480  as an optional argument, which declares that the module can only be used
8481  when there exists a conversion chain between the formats `
8482 \begin_inset Flex Code
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 from
8487 \end_layout
8488
8489 \end_inset
8490
8491 ' and `
8492 \begin_inset Flex Code
8493 status collapsed
8494
8495 \begin_layout Plain Layout
8496 to
8497 \end_layout
8498
8499 \end_inset
8500
8501 '.
8502 \end_layout
8503
8504 \begin_layout Standard
8505 The module declaration should then be followed by lines like the following
8506 \begin_inset Foot
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 Preferably in English if the module should be published with \SpecialChar LyX
8511 .
8512  This description will appear in the list of messages to be translated and
8513  will be thus translated with the next interface update.
8514 \end_layout
8515
8516 \end_inset
8517
8518 :
8519 \end_layout
8520
8521 \begin_layout LyX-Code
8522 #DescriptionBegin 
8523 \end_layout
8524
8525 \begin_layout LyX-Code
8526 #Adds an endnote command, in addition to footnotes.
8527  
8528 \end_layout
8529
8530 \begin_layout LyX-Code
8531 #You will need to add  
8532 \backslash
8533 theendnotes in TeX code where you 
8534 \end_layout
8535
8536 \begin_layout LyX-Code
8537 #want the endnotes to appear.
8538  
8539 \end_layout
8540
8541 \begin_layout LyX-Code
8542 #DescriptionEnd 
8543 \end_layout
8544
8545 \begin_layout LyX-Code
8546 #Requires: somemodule | othermodule
8547 \end_layout
8548
8549 \begin_layout LyX-Code
8550 #Excludes: badmodule
8551 \end_layout
8552
8553 \begin_layout Standard
8554 The description is used in 
8555 \begin_inset Flex Noun
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559 Document\SpecialChar menuseparator
8560 Settings\SpecialChar menuseparator
8561 Modules
8562 \end_layout
8563
8564 \end_inset
8565
8566  to provide the user with information about what the module does.
8567  The 
8568 \begin_inset Flex Code
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 Requires
8573 \end_layout
8574
8575 \end_inset
8576
8577  line is used to identify other modules with which this one must be used;
8578  the 
8579 \begin_inset Flex Code
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 Excludes
8584 \end_layout
8585
8586 \end_inset
8587
8588  line is used to identify modules with which this one may not be used.
8589  Both are optional, and, as shown, multiple modules should be separated
8590  with the pipe symbol: |.
8591  Note that the required modules are treated disjunctively: 
8592 \emph on
8593 at least one
8594 \emph default
8595  of the required modules must be used.
8596  Similarly, 
8597 \emph on
8598 no
8599 \emph default
8600  excluded module may be used.
8601  Note that modules are identified here by their filenames without the 
8602 \begin_inset Flex Code
8603 status collapsed
8604
8605 \begin_layout Plain Layout
8606 .module
8607 \end_layout
8608
8609 \end_inset
8610
8611  extension.
8612  So 
8613 \begin_inset Flex Code
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 somemodule
8618 \end_layout
8619
8620 \end_inset
8621
8622  is really 
8623 \begin_inset Flex Code
8624 status collapsed
8625
8626 \begin_layout Plain Layout
8627 somemodule.module
8628 \end_layout
8629
8630 \end_inset
8631
8632 .
8633 \change_inserted -712698321 1483873000
8634
8635 \end_layout
8636
8637 \begin_layout Subsection
8638
8639 \change_inserted -712698321 1483873010
8640 The CiteEngine file declaration
8641 \end_layout
8642
8643 \begin_layout Standard
8644
8645 \change_inserted -712698321 1483873022
8646 A cite engine file must begin with a line like the following:
8647 \end_layout
8648
8649 \begin_layout LyX-Code
8650
8651 \change_inserted -712698321 1483873047
8652 #
8653 \backslash
8654 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8655 \end_layout
8656
8657 \begin_layout Standard
8658
8659 \change_inserted -712698321 1483873077
8660 The mandatory argument, in curly brackets, is the name of the module, as
8661  it should appear in 
8662 \begin_inset Flex Noun
8663 status collapsed
8664
8665 \begin_layout Plain Layout
8666
8667 \change_inserted -712698321 1483873068
8668 Document\SpecialChar menuseparator
8669 Settings\SpecialChar menuseparator
8670 Bibliography
8671 \end_layout
8672
8673 \end_inset
8674
8675 .
8676  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8677  packages
8678  on which the cite engine depends.
8679 \end_layout
8680
8681 \begin_layout Standard
8682
8683 \change_inserted -712698321 1483873102
8684 The cite engine declaration should then be followed by lines like the following
8685 \begin_inset Foot
8686 status collapsed
8687
8688 \begin_layout Plain Layout
8689
8690 \change_inserted -712698321 1483873000
8691 Preferably in English if the module should be published with \SpecialChar LyX
8692 .
8693  This description will appear in the list of messages to be translated and
8694  will be thus translated with the next interface update.
8695 \end_layout
8696
8697 \end_inset
8698
8699 :
8700 \end_layout
8701
8702 \begin_layout LyX-Code
8703
8704 \change_inserted -712698321 1483873128
8705 # DescriptionBegin
8706 \end_layout
8707
8708 \begin_layout LyX-Code
8709
8710 \change_inserted -712698321 1483873140
8711 #   Biblatex supports many author-year and numerical styles.
8712 \end_layout
8713
8714 \begin_layout LyX-Code
8715
8716 \change_inserted -712698321 1483873152
8717 #   It is mainly aimed at the Humanities.
8718  It is highly
8719 \end_layout
8720
8721 \begin_layout LyX-Code
8722
8723 \change_inserted -712698321 1483873160
8724 #   customizable, fully localized and provides many features
8725 \end_layout
8726
8727 \begin_layout LyX-Code
8728
8729 \change_inserted -712698321 1483873170
8730 #   that are not possible with BibTeX.
8731  The use of 'biber' as
8732 \end_layout
8733
8734 \begin_layout LyX-Code
8735
8736 \change_inserted -712698321 1483873174
8737 #   bibliography processor is advised.
8738 \end_layout
8739
8740 \begin_layout LyX-Code
8741
8742 \change_inserted -712698321 1483873224
8743 # DescriptionEnd
8744 \end_layout
8745
8746 \begin_layout Standard
8747
8748 \change_inserted -712698321 1483873207
8749 The description is used in 
8750 \begin_inset Flex Noun
8751 status collapsed
8752
8753 \begin_layout Plain Layout
8754
8755 \change_inserted -712698321 1483873194
8756 Document\SpecialChar menuseparator
8757 Settings\SpecialChar menuseparator
8758 Bibliography
8759 \end_layout
8760
8761 \end_inset
8762
8763  to provide the user with information about the cite engine.
8764 \change_unchanged
8765
8766 \end_layout
8767
8768 \begin_layout Subsection
8769 Format number
8770 \end_layout
8771
8772 \begin_layout Standard
8773 The first non-comment line of any layout file, included file, or module
8774  
8775 \emph on
8776 must
8777 \emph default
8778  contain the file format number:
8779 \end_layout
8780
8781 \begin_layout Description
8782 \begin_inset Flex Code
8783 status collapsed
8784
8785 \begin_layout Plain Layout
8786 Format
8787 \end_layout
8788
8789 \end_inset
8790
8791  [
8792 \begin_inset Flex Code
8793 status collapsed
8794
8795 \begin_layout Plain Layout
8796 int
8797 \end_layout
8798
8799 \end_inset
8800
8801 ] The format number of the layout file.
8802 \end_layout
8803
8804 \begin_layout Standard
8805 This tag was introduced with \SpecialChar LyX
8806
8807 \begin_inset space ~
8808 \end_inset
8809
8810 1.4.0.
8811  Layout files from older \SpecialChar LyX
8812  versions do not have an explicit file format and
8813  are considered to have 
8814 \begin_inset Flex Code
8815 status collapsed
8816
8817 \begin_layout Plain Layout
8818 Format
8819 \begin_inset space ~
8820 \end_inset
8821
8822 1
8823 \end_layout
8824
8825 \end_inset
8826
8827 .
8828  The format for the present version of \SpecialChar LyX
8829  is format 60.
8830  But each version of \SpecialChar LyX
8831  is capable of reading earlier versions' layout files,
8832  just as they are capable of reading files produced by earlier versions
8833  of \SpecialChar LyX
8834 .
8835  There is, however, no provision for converting to earlier formats.
8836 \end_layout
8837
8838 \begin_layout Subsection
8839 \begin_inset CommandInset label
8840 LatexCommand label
8841 name "subsec:General-text-class"
8842
8843 \end_inset
8844
8845 General text class parameters
8846 \end_layout
8847
8848 \begin_layout Standard
8849 These are general parameters that govern the behavior of an entire document
8850  class.
8851  (This does 
8852 \emph on
8853 not
8854 \emph default
8855  mean that they must appear in 
8856 \begin_inset Flex Code
8857 status collapsed
8858
8859 \begin_layout Plain Layout
8860 .layout
8861 \end_layout
8862
8863 \end_inset
8864
8865  files rather than in modules.
8866  A module can contain any layout tag.)
8867 \end_layout
8868
8869 \begin_layout Description
8870 \begin_inset Flex Code
8871 status collapsed
8872
8873 \begin_layout Plain Layout
8874 AddToHTMLPreamble
8875 \end_layout
8876
8877 \end_inset
8878
8879  Adds information that will be output in the 
8880 \begin_inset Flex Code
8881 status collapsed
8882
8883 \begin_layout Plain Layout
8884 <head>
8885 \end_layout
8886
8887 \end_inset
8888
8889  block when the document is output to XHTML.
8890  Typically, this would be used to output CSS style information, but it can
8891  be used for anything that can appear in 
8892 \begin_inset Flex Code
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 <head>
8897 \end_layout
8898
8899 \end_inset
8900
8901 .
8902  Must end with 
8903 \begin_inset Quotes eld
8904 \end_inset
8905
8906
8907 \begin_inset Flex Code
8908 status collapsed
8909
8910 \begin_layout Plain Layout
8911 EndPreamble
8912 \end_layout
8913
8914 \end_inset
8915
8916
8917 \begin_inset Quotes erd
8918 \end_inset
8919
8920 .
8921 \end_layout
8922
8923 \begin_layout Description
8924 \begin_inset Flex Code
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928 AddToPreamble
8929 \end_layout
8930
8931 \end_inset
8932
8933  Adds information to the document preamble.
8934  Must end with
8935 \begin_inset Newline newline
8936 \end_inset
8937
8938
8939 \begin_inset Quotes eld
8940 \end_inset
8941
8942
8943 \begin_inset Flex Code
8944 status collapsed
8945
8946 \begin_layout Plain Layout
8947 EndPreamble
8948 \end_layout
8949
8950 \end_inset
8951
8952
8953 \begin_inset Quotes erd
8954 \end_inset
8955
8956 .
8957 \change_inserted -712698321 1483872509
8958
8959 \end_layout
8960
8961 \begin_layout Description
8962
8963 \change_inserted -712698321 1483874560
8964 \begin_inset Flex Code
8965 status collapsed
8966
8967 \begin_layout Plain Layout
8968
8969 \change_inserted -712698321 1483872558
8970 CiteEngine <engine>
8971 \end_layout
8972
8973 \end_inset
8974
8975  Defines the possibilities for displaying citation references.
8976  See 
8977 \begin_inset CommandInset ref
8978 LatexCommand ref
8979 reference "subsec:Citation-engine-description"
8980 plural "false"
8981 caps "false"
8982 noprefix "false"
8983
8984 \end_inset
8985
8986  for details.
8987  Must end with 
8988 \begin_inset Quotes eld
8989 \end_inset
8990
8991
8992 \begin_inset Flex Code
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996
8997 \change_inserted -712698321 1483872548
8998 End
8999 \end_layout
9000
9001 \end_inset
9002
9003
9004 \begin_inset Quotes erd
9005 \end_inset
9006
9007 .
9008  Primarily used in cite engine files (see 
9009 \begin_inset CommandInset ref
9010 LatexCommand ref
9011 reference "subsec:Cite-Engine-Files"
9012 plural "false"
9013 caps "false"
9014 noprefix "false"
9015
9016 \end_inset
9017
9018 ).
9019 \change_unchanged
9020
9021 \end_layout
9022
9023 \begin_layout Description
9024 \begin_inset Flex Code
9025 status collapsed
9026
9027 \begin_layout Plain Layout
9028 CiteFormat
9029 \end_layout
9030
9031 \end_inset
9032
9033  Defines formats for use in the display of bibliographic information.
9034  See 
9035 \begin_inset CommandInset ref
9036 LatexCommand ref
9037 reference "subsec:Citation-format-description"
9038
9039 \end_inset
9040
9041  for details.
9042  Must end with 
9043 \begin_inset Quotes eld
9044 \end_inset
9045
9046
9047 \begin_inset Flex Code
9048 status collapsed
9049
9050 \begin_layout Plain Layout
9051 End
9052 \end_layout
9053
9054 \end_inset
9055
9056
9057 \begin_inset Quotes erd
9058 \end_inset
9059
9060 .
9061
9062 \change_inserted -712698321 1483875199
9063  Primarily used in cite engine files (see 
9064 \begin_inset CommandInset ref
9065 LatexCommand ref
9066 reference "subsec:Cite-Engine-Files"
9067 plural "false"
9068 caps "false"
9069 noprefix "false"
9070
9071 \end_inset
9072
9073 ).
9074 \change_unchanged
9075
9076 \end_layout
9077
9078 \begin_layout Description
9079
9080 \change_inserted -712698321 1483874578
9081 \begin_inset Flex Code
9082 status collapsed
9083
9084 \begin_layout Plain Layout
9085
9086 \change_inserted -712698321 1483872820
9087 CiteFramework
9088 \end_layout
9089
9090 \end_inset
9091
9092  [
9093 \begin_inset Flex Code
9094 status collapsed
9095
9096 \begin_layout Plain Layout
9097
9098 \change_inserted -712698321 1483872852
9099
9100 \emph on
9101 bibtex
9102 \change_unchanged
9103
9104 \end_layout
9105
9106 \end_inset
9107
9108 ,
9109 \begin_inset Flex Code
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113
9114 \change_inserted -712698321 1483872857
9115 biblatex
9116 \change_unchanged
9117
9118 \end_layout
9119
9120 \end_inset
9121
9122 ] Determines whether 
9123 \family sans
9124 Biblatex
9125 \family default
9126  or Bib\SpecialChar TeX
9127  is used to generate a Bibliography.
9128  Primarily used in cite engine files (see 
9129 \begin_inset CommandInset ref
9130 LatexCommand ref
9131 reference "subsec:Cite-Engine-Files"
9132 plural "false"
9133 caps "false"
9134 noprefix "false"
9135
9136 \end_inset
9137
9138 ).
9139 \change_unchanged
9140
9141 \end_layout
9142
9143 \begin_layout Description
9144 \begin_inset Flex Code
9145 status collapsed
9146
9147 \begin_layout Plain Layout
9148 ClassOptions
9149 \end_layout
9150
9151 \end_inset
9152
9153  Describes various global options supported by the document class.
9154  See 
9155 \begin_inset CommandInset ref
9156 LatexCommand ref
9157 reference "subsec:ClassOptions"
9158
9159 \end_inset
9160
9161  for a description.
9162  Must end with 
9163 \begin_inset Quotes eld
9164 \end_inset
9165
9166
9167 \begin_inset Flex Code
9168 status collapsed
9169
9170 \begin_layout Plain Layout
9171 End
9172 \end_layout
9173
9174 \end_inset
9175
9176
9177 \begin_inset Quotes erd
9178 \end_inset
9179
9180 .
9181 \end_layout
9182
9183 \begin_layout Description
9184 \begin_inset Flex Code
9185 status collapsed
9186
9187 \begin_layout Plain Layout
9188 Columns
9189 \end_layout
9190
9191 \end_inset
9192
9193  [
9194 \begin_inset Flex Code
9195 status collapsed
9196
9197 \begin_layout Plain Layout
9198
9199 \emph on
9200 1
9201 \end_layout
9202
9203 \end_inset
9204
9205 ,
9206 \begin_inset space \thinspace{}
9207 \end_inset
9208
9209
9210 \begin_inset Flex Code
9211 status collapsed
9212
9213 \begin_layout Plain Layout
9214 2
9215 \end_layout
9216
9217 \end_inset
9218
9219 ] Whether the class should 
9220 \emph on
9221 default
9222 \emph default
9223  to having one or two columns.
9224  Can be changed in the 
9225 \begin_inset Flex Noun
9226 status collapsed
9227
9228 \begin_layout Plain Layout
9229 Document\SpecialChar menuseparator
9230 Settings
9231 \end_layout
9232
9233 \end_inset
9234
9235  dialog.
9236 \end_layout
9237
9238 \begin_layout Description
9239 \begin_inset Flex Code
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 Counter
9244 \end_layout
9245
9246 \end_inset
9247
9248  [
9249 \begin_inset Flex Code
9250 status collapsed
9251
9252 \begin_layout Plain Layout
9253 string
9254 \end_layout
9255
9256 \end_inset
9257
9258 ] This sequence defines the properties for a counter.
9259  If the counter does not yet exist, it is created; if it does exist, it
9260  is modified.
9261  Must end with 
9262 \begin_inset Quotes eld
9263 \end_inset
9264
9265
9266 \begin_inset Flex Code
9267 status collapsed
9268
9269 \begin_layout Plain Layout
9270 End
9271 \end_layout
9272
9273 \end_inset
9274
9275
9276 \begin_inset Quotes erd
9277 \end_inset
9278
9279 .
9280 \begin_inset Newline newline
9281 \end_inset
9282
9283 See 
9284 \begin_inset CommandInset ref
9285 LatexCommand ref
9286 reference "subsec:Counters"
9287
9288 \end_inset
9289
9290  for details on counters.
9291 \end_layout
9292
9293 \begin_layout Description
9294 \begin_inset Flex Code
9295 status collapsed
9296
9297 \begin_layout Plain Layout
9298 DefaultFont
9299 \end_layout
9300
9301 \end_inset
9302
9303  Sets the default font used to display the document.
9304  See 
9305 \begin_inset CommandInset ref
9306 LatexCommand ref
9307 reference "subsec:Font-description"
9308
9309 \end_inset
9310
9311  for how to declare fonts.
9312  Must end with 
9313 \begin_inset Quotes eld
9314 \end_inset
9315
9316
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 EndFont
9322 \end_layout
9323
9324 \end_inset
9325
9326
9327 \begin_inset Quotes erd
9328 \end_inset
9329
9330 .
9331 \end_layout
9332
9333 \begin_layout Description
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 DefaultModule
9339 \end_layout
9340
9341 \end_inset
9342
9343  [
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348 <module>
9349 \end_layout
9350
9351 \end_inset
9352
9353 ] Specifies a module to be included by default with this document class.
9354  The module is specified as filename without the 
9355 \begin_inset Flex Code
9356 status collapsed
9357
9358 \begin_layout Plain Layout
9359 .module
9360 \end_layout
9361
9362 \end_inset
9363
9364  extension.
9365  The user can still remove the module, but it will be active at the outset.
9366  (This applies only when new files are created, or when this class is chosen
9367  for an existing document.)
9368 \end_layout
9369
9370 \begin_layout Description
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 DefaultStyle
9376 \end_layout
9377
9378 \end_inset
9379
9380  [
9381 \begin_inset Flex Code
9382 status collapsed
9383
9384 \begin_layout Plain Layout
9385 <style>
9386 \end_layout
9387
9388 \end_inset
9389
9390 ] This is the style that will be assigned to new paragraphs, usually 
9391 \begin_inset Flex Noun
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 Standard
9396 \end_layout
9397
9398 \end_inset
9399
9400 .
9401  This will default to the first defined style if not given, but you are
9402  encouraged to use this directive.
9403 \end_layout
9404
9405 \begin_layout Description
9406 \begin_inset Flex Code
9407 status collapsed
9408
9409 \begin_layout Plain Layout
9410 ExcludesModule
9411 \end_layout
9412
9413 \end_inset
9414
9415  [
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420 <module>
9421 \end_layout
9422
9423 \end_inset
9424
9425 ] This tag indicates that the module (which is specified by filename without
9426  the 
9427 \begin_inset Flex Code
9428 status collapsed
9429
9430 \begin_layout Plain Layout
9431 .module
9432 \end_layout
9433
9434 \end_inset
9435
9436  extension) cannot be used with this document class.
9437  This might be used in a journal-specific layout file to prevent, say, the
9438  use of the 
9439 \begin_inset Flex Code
9440 status collapsed
9441
9442 \begin_layout Plain Layout
9443 theorems-sec
9444 \end_layout
9445
9446 \end_inset
9447
9448  module that numbers theorems by section.
9449  This tag may 
9450 \emph on
9451 not
9452 \emph default
9453  be used in a module.
9454  Modules have their own way of excluding other modules (see 
9455 \begin_inset CommandInset ref
9456 LatexCommand ref
9457 reference "subsec:Layout-modules"
9458
9459 \end_inset
9460
9461 ).
9462 \end_layout
9463
9464 \begin_layout Description
9465 \begin_inset Flex Code
9466 status collapsed
9467
9468 \begin_layout Plain Layout
9469 Float
9470 \end_layout
9471
9472 \end_inset
9473
9474  Defines a new float.
9475  See 
9476 \begin_inset CommandInset ref
9477 LatexCommand ref
9478 reference "subsec:Floats"
9479
9480 \end_inset
9481
9482  for details.
9483  Must end with 
9484 \begin_inset Quotes eld
9485 \end_inset
9486
9487
9488 \begin_inset Flex Code
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492 End
9493 \end_layout
9494
9495 \end_inset
9496
9497
9498 \begin_inset Quotes erd
9499 \end_inset
9500
9501 .
9502 \end_layout
9503
9504 \begin_layout Description
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 HTMLPreamble
9510 \end_layout
9511
9512 \end_inset
9513
9514  Sets the information that will be output in the 
9515 \begin_inset Flex Code
9516 status collapsed
9517
9518 \begin_layout Plain Layout
9519 <head>
9520 \end_layout
9521
9522 \end_inset
9523
9524  block when this document class is output to XHTML.
9525  Note that this will completely override any prior 
9526 \begin_inset Flex Code
9527 status collapsed
9528
9529 \begin_layout Plain Layout
9530 HTMLPreamble
9531 \end_layout
9532
9533 \end_inset
9534
9535  or 
9536 \begin_inset Flex Code
9537 status collapsed
9538
9539 \begin_layout Plain Layout
9540 AddToHTMLPreamble
9541 \end_layout
9542
9543 \end_inset
9544
9545  declarations.
9546  (Use
9547 \begin_inset Newline newline
9548 \end_inset
9549
9550
9551 \begin_inset Flex Code
9552 status collapsed
9553
9554 \begin_layout Plain Layout
9555 AddToHTMLPreamble
9556 \end_layout
9557
9558 \end_inset
9559
9560  if you just want to add material to the preamble.) Must end with 
9561 \begin_inset Quotes eld
9562 \end_inset
9563
9564
9565 \begin_inset Flex Code
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 EndPreamble
9570 \end_layout
9571
9572 \end_inset
9573
9574
9575 \begin_inset Quotes erd
9576 \end_inset
9577
9578 .
9579 \end_layout
9580
9581 \begin_layout Description
9582 \begin_inset Flex Code
9583 status collapsed
9584
9585 \begin_layout Plain Layout
9586 HTMLTOCSection
9587 \end_layout
9588
9589 \end_inset
9590
9591  [
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 <style>
9597 \end_layout
9598
9599 \end_inset
9600
9601 ] The style to use for the table of contents, bibliography, and so forth,
9602  when the document is output to HTML.
9603  For articles, this should normally be 
9604 \begin_inset Flex Code
9605 status collapsed
9606
9607 \begin_layout Plain Layout
9608 Section
9609 \end_layout
9610
9611 \end_inset
9612
9613 ; for books 
9614 \begin_inset Flex Code
9615 status collapsed
9616
9617 \begin_layout Plain Layout
9618 Chapter
9619 \end_layout
9620
9621 \end_inset
9622
9623 .
9624  If it is not given, then \SpecialChar LyX
9625  will attempt to figure out which layout to use.
9626 \end_layout
9627
9628 \begin_layout Description
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 IfCounter
9634 \end_layout
9635
9636 \end_inset
9637
9638  [
9639 \begin_inset Flex Code
9640 status collapsed
9641
9642 \begin_layout Plain Layout
9643 <counter>
9644 \end_layout
9645
9646 \end_inset
9647
9648 ] Modifies the properties of the given counter.
9649  If the counter does not exist, the statement is ignored.
9650  Must end with 
9651 \begin_inset Quotes eld
9652 \end_inset
9653
9654
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 End
9660 \end_layout
9661
9662 \end_inset
9663
9664
9665 \begin_inset Quotes erd
9666 \end_inset
9667
9668 .
9669 \begin_inset Newline newline
9670 \end_inset
9671
9672 See 
9673 \begin_inset CommandInset ref
9674 LatexCommand ref
9675 reference "subsec:Counters"
9676
9677 \end_inset
9678
9679  for details on counters.
9680 \end_layout
9681
9682 \begin_layout Description
9683 \begin_inset Flex Code
9684 status collapsed
9685
9686 \begin_layout Plain Layout
9687 Input
9688 \end_layout
9689
9690 \end_inset
9691
9692  [
9693 \begin_inset Flex Code
9694 status collapsed
9695
9696 \begin_layout Plain Layout
9697 <filename>
9698 \end_layout
9699
9700 \end_inset
9701
9702 ] This allows you to include another layout definition file within yours
9703  to avoid duplicating commands.
9704  Common examples are the standard layout files, for example, 
9705 \begin_inset Flex Code
9706 status collapsed
9707
9708 \begin_layout Plain Layout
9709 stdclass.inc
9710 \end_layout
9711
9712 \end_inset
9713
9714 , which contains most of the basic layouts.
9715 \end_layout
9716
9717 \begin_layout Description
9718 \begin_inset Flex Code
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 InsetLayout
9723 \end_layout
9724
9725 \end_inset
9726
9727  [
9728 \begin_inset Flex Code
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732 <type>
9733 \end_layout
9734
9735 \end_inset
9736
9737 ] This section (re-)defines the layout of an inset.
9738  It can be applied to an existing inset or to a new, user-defined inset,
9739  e.g., a new character style.
9740  Must end with 
9741 \begin_inset Quotes eld
9742 \end_inset
9743
9744
9745 \begin_inset Flex Code
9746 status collapsed
9747
9748 \begin_layout Plain Layout
9749 End
9750 \end_layout
9751
9752 \end_inset
9753
9754
9755 \begin_inset Quotes erd
9756 \end_inset
9757
9758 .
9759 \begin_inset Newline newline
9760 \end_inset
9761
9762 See 
9763 \begin_inset CommandInset ref
9764 LatexCommand ref
9765 reference "subsec:Flex-insets-and"
9766
9767 \end_inset
9768
9769  for more information.
9770  
9771 \end_layout
9772
9773 \begin_layout Description
9774 \begin_inset Flex Code
9775 status collapsed
9776
9777 \begin_layout Plain Layout
9778 LeftMargin
9779 \end_layout
9780
9781 \end_inset
9782
9783  [
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 string
9789 \end_layout
9790
9791 \end_inset
9792
9793 ] A string that indicates the width of the left margin on the screen, for
9794  example, 
9795 \begin_inset Quotes eld
9796 \end_inset
9797
9798
9799 \begin_inset Flex Code
9800 status collapsed
9801
9802 \begin_layout Plain Layout
9803 MMMMM
9804 \end_layout
9805
9806 \end_inset
9807
9808
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812 .
9813  (Note that this is not a `length', like 
9814 \begin_inset Quotes eld
9815 \end_inset
9816
9817 2ex
9818 \begin_inset Quotes erd
9819 \end_inset
9820
9821 .)
9822 \change_inserted -712698321 1483872681
9823
9824 \end_layout
9825
9826 \begin_layout Description
9827
9828 \change_inserted -712698321 1483874598
9829 \begin_inset Flex Code
9830 status collapsed
9831
9832 \begin_layout Plain Layout
9833
9834 \change_inserted -712698321 1483872687
9835 MaxCiteNames
9836 \end_layout
9837
9838 \end_inset
9839
9840  [
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845
9846 \change_inserted -712698321 1483872692
9847 integer
9848 \end_layout
9849
9850 \end_inset
9851
9852 ] An integer that determines the maximal number of names displayed in an
9853  author-year citation before the citation switches to 
9854 \begin_inset Quotes eld
9855 \end_inset
9856
9857 FirstAuthor et al.
9858 \begin_inset Quotes erd
9859 \end_inset
9860
9861 .
9862  Primarily used in cite engine files (see 
9863 \begin_inset CommandInset ref
9864 LatexCommand ref
9865 reference "subsec:Cite-Engine-Files"
9866 plural "false"
9867 caps "false"
9868 noprefix "false"
9869
9870 \end_inset
9871
9872 ).
9873 \change_unchanged
9874
9875 \end_layout
9876
9877 \begin_layout Description
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 ModifyStyle
9883 \end_layout
9884
9885 \end_inset
9886
9887  [
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 <style>
9893 \end_layout
9894
9895 \end_inset
9896
9897 ] Modifies the properties of the given paragraph style.
9898  If the style does not exist, this section is ignored.
9899  Must end with 
9900 \begin_inset Quotes eld
9901 \end_inset
9902
9903
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 End
9909 \end_layout
9910
9911 \end_inset
9912
9913
9914 \begin_inset Quotes erd
9915 \end_inset
9916
9917 .
9918 \end_layout
9919
9920 \begin_layout Description
9921 \begin_inset Flex Code
9922 status collapsed
9923
9924 \begin_layout Plain Layout
9925 NoCounter
9926 \end_layout
9927
9928 \end_inset
9929
9930  [
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935 <counter>
9936 \end_layout
9937
9938 \end_inset
9939
9940 ] Deletes an existing counter, usually one defined in an included file.
9941 \end_layout
9942
9943 \begin_layout Description
9944 \begin_inset Flex Code
9945 status collapsed
9946
9947 \begin_layout Plain Layout
9948 NoFloat
9949 \end_layout
9950
9951 \end_inset
9952
9953  [
9954 \begin_inset Flex Code
9955 status collapsed
9956
9957 \begin_layout Plain Layout
9958 <float>
9959 \end_layout
9960
9961 \end_inset
9962
9963 ] Deletes an existing float.
9964  This is particularly useful when you want to suppress a float that has
9965  been defined in an input file.
9966 \end_layout
9967
9968 \begin_layout Description
9969 \begin_inset Flex Code
9970 status collapsed
9971
9972 \begin_layout Plain Layout
9973 NoStyle
9974 \end_layout
9975
9976 \end_inset
9977
9978  [
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 <style>
9984 \end_layout
9985
9986 \end_inset
9987
9988 ] Deletes an existing style.
9989 \change_inserted 2047637253 1483900342
9990
9991 \end_layout
9992
9993 \begin_layout Description
9994
9995 \change_inserted 2047637253 1483900479
9996 \begin_inset Flex Code
9997 status collapsed
9998
9999 \begin_layout Plain Layout
10000
10001 \change_inserted 2047637253 1483900346
10002 OutlinerName
10003 \end_layout
10004
10005 \end_inset
10006
10007  [
10008 \begin_inset Flex Code
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012
10013 \change_inserted 2047637253 1483900369
10014 <type>
10015 \end_layout
10016
10017 \end_inset
10018
10019 ] [
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024
10025 \change_inserted 2047637253 1483900418
10026 <string>
10027 \end_layout
10028
10029 \end_inset
10030
10031 ] Define a new table of contents with type 
10032 \begin_inset Flex Code
10033 status collapsed
10034
10035 \begin_layout Plain Layout
10036
10037 \change_inserted 2047637253 1483900414
10038 <type>
10039 \end_layout
10040
10041 \end_inset
10042
10043  and name 
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048
10049 \change_inserted 2047637253 1483900419
10050 <string>
10051 \end_layout
10052
10053 \end_inset
10054
10055 .
10056  See also the AddToToc commands.
10057 \change_unchanged
10058
10059 \end_layout
10060
10061 \begin_layout Description
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 OutputFormat
10067 \end_layout
10068
10069 \end_inset
10070
10071  [
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 <format>
10077 \end_layout
10078
10079 \end_inset
10080
10081 ] The file format (as defined in the \SpecialChar LyX
10082  preferences) produced by this document
10083  class.
10084  It is mainly useful when 
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 OutputType
10090 \end_layout
10091
10092 \end_inset
10093
10094  is 
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099 literate
10100 \end_layout
10101
10102 \end_inset
10103
10104  and one wants to define a new type of literate document.
10105  The format is reset to 
10106 \begin_inset Quotes eld
10107 \end_inset
10108
10109
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 docbook
10115 \end_layout
10116
10117 \end_inset
10118
10119
10120 \begin_inset Quotes erd
10121 \end_inset
10122
10123  or 
10124 \begin_inset Quotes eld
10125 \end_inset
10126
10127
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 latex
10133 \end_layout
10134
10135 \end_inset
10136
10137
10138 \begin_inset Quotes erd
10139 \end_inset
10140
10141  when the corresponding 
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 OutputType
10147 \end_layout
10148
10149 \end_inset
10150
10151  parameter is encountered.
10152 \end_layout
10153
10154 \begin_layout Description
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 OutputType
10160 \end_layout
10161
10162 \end_inset
10163
10164  [
10165 \begin_inset Flex Code
10166 status collapsed
10167
10168 \begin_layout Plain Layout
10169
10170 \emph on
10171 lat
10172 \emph default
10173 ex
10174 \end_layout
10175
10176 \end_inset
10177
10178
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 docbook
10184 \end_layout
10185
10186 \end_inset
10187
10188
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 literate
10194 \end_layout
10195
10196 \end_inset
10197
10198 ] Specifies what sort of output documents using this class will produce.
10199 \end_layout
10200
10201 \begin_layout Description
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206 PackageOptions
10207 \end_layout
10208
10209 \end_inset
10210
10211  [
10212 \begin_inset Flex Code
10213 status collapsed
10214
10215 \begin_layout Plain Layout
10216 string
10217 \end_layout
10218
10219 \end_inset
10220
10221  
10222 \begin_inset Flex Code
10223 status collapsed
10224
10225 \begin_layout Plain Layout
10226 string
10227 \end_layout
10228
10229 \end_inset
10230
10231 ] Specifies options, given in the second string, for the package named by
10232  the first string.
10233  For example, 
10234 \begin_inset Quotes eld
10235 \end_inset
10236
10237
10238 \begin_inset Flex Code
10239 status collapsed
10240
10241 \begin_layout Plain Layout
10242 PackageOptions natbib square
10243 \end_layout
10244
10245 \end_inset
10246
10247
10248 \begin_inset Quotes erd
10249 \end_inset
10250
10251  will cause 
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 natbib
10257 \end_layout
10258
10259 \end_inset
10260
10261  to be loaded with the 
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 square
10267 \end_layout
10268
10269 \end_inset
10270
10271  option.
10272  (For \SpecialChar TeX
10273 perts, this causes \SpecialChar LyX
10274  to output: 
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279
10280 \backslash
10281 PassOptionsToPackage{natbib}{square}
10282 \end_layout
10283
10284 \end_inset
10285
10286  prior to loading 
10287 \begin_inset Flex Code
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 natbib
10292 \end_layout
10293
10294 \end_inset
10295
10296 .)
10297 \end_layout
10298
10299 \begin_layout Description
10300 \begin_inset Flex Code
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304 PageStyle
10305 \end_layout
10306
10307 \end_inset
10308
10309  [
10310 \begin_inset Flex Code
10311 status collapsed
10312
10313 \begin_layout Plain Layout
10314
10315 \emph on
10316 plain
10317 \end_layout
10318
10319 \end_inset
10320
10321
10322 \begin_inset Flex Code
10323 status collapsed
10324
10325 \begin_layout Plain Layout
10326 empty
10327 \end_layout
10328
10329 \end_inset
10330
10331
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 headings
10337 \end_layout
10338
10339 \end_inset
10340
10341 ] The default pagestyle.
10342  Can be changed in the 
10343 \begin_inset Flex Noun
10344 status collapsed
10345
10346 \begin_layout Plain Layout
10347 Document\SpecialChar menuseparator
10348 Settings
10349 \end_layout
10350
10351 \end_inset
10352
10353  dialog.
10354 \end_layout
10355
10356 \begin_layout Description
10357 \begin_inset Flex Code
10358 status collapsed
10359
10360 \begin_layout Plain Layout
10361 Preamble
10362 \end_layout
10363
10364 \end_inset
10365
10366  Sets the preamble for the \SpecialChar LaTeX
10367  document.
10368  Note that this will completely override any prior 
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 Preamble
10374 \end_layout
10375
10376 \end_inset
10377
10378  or 
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 AddToPreamble
10384 \end_layout
10385
10386 \end_inset
10387
10388  declarations.
10389  (Use 
10390 \begin_inset Flex Code
10391 status collapsed
10392
10393 \begin_layout Plain Layout
10394 AddToPreamble
10395 \end_layout
10396
10397 \end_inset
10398
10399  if you just want to add material to the preamble.) Must end with 
10400 \begin_inset Quotes eld
10401 \end_inset
10402
10403
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 EndPreamble
10409 \end_layout
10410
10411 \end_inset
10412
10413
10414 \begin_inset Quotes erd
10415 \end_inset
10416
10417 .
10418 \end_layout
10419
10420 \begin_layout Description
10421 \begin_inset Flex Code
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425 Provides
10426 \end_layout
10427
10428 \end_inset
10429
10430  [
10431 \begin_inset Flex Code
10432 status collapsed
10433
10434 \begin_layout Plain Layout
10435 string
10436 \end_layout
10437
10438 \end_inset
10439
10440 ] [
10441 \begin_inset Flex Code
10442 status collapsed
10443
10444 \begin_layout Plain Layout
10445
10446 \emph on
10447 0
10448 \end_layout
10449
10450 \end_inset
10451
10452 ,
10453 \begin_inset space \thinspace{}
10454 \end_inset
10455
10456
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 1
10462 \end_layout
10463
10464 \end_inset
10465
10466 ] Whether the class already provides the feature 
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 string
10472 \end_layout
10473
10474 \end_inset
10475
10476 .
10477  A feature is in general the name of a package (e.
10478 \begin_inset space \thinspace{}
10479 \end_inset
10480
10481 g.
10482 \begin_inset space \space{}
10483 \end_inset
10484
10485
10486 \begin_inset Flex Code
10487 status collapsed
10488
10489 \begin_layout Plain Layout
10490 amsmath
10491 \end_layout
10492
10493 \end_inset
10494
10495  or 
10496 \begin_inset Flex Code
10497 status collapsed
10498
10499 \begin_layout Plain Layout
10500 makeidx
10501 \end_layout
10502
10503 \end_inset
10504
10505 ) or a macro (e.
10506 \begin_inset space \thinspace{}
10507 \end_inset
10508
10509 g.
10510 \begin_inset space \space{}
10511 \end_inset
10512
10513
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 url
10519 \end_layout
10520
10521 \end_inset
10522
10523  or 
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528 boldsymbol
10529 \end_layout
10530
10531 \end_inset
10532
10533 ).
10534  See 
10535 \begin_inset CommandInset ref
10536 LatexCommand ref
10537 reference "chap:List-of-functions"
10538
10539 \end_inset
10540
10541  for the list of features.
10542 \end_layout
10543
10544 \begin_layout Description
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 ProvidesModule
10550 \end_layout
10551
10552 \end_inset
10553
10554  [
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 string
10560 \end_layout
10561
10562 \end_inset
10563
10564 ] Indicates that this layout provides the functionality of the module mentioned,
10565  which should be specified by the filename without the 
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 .module
10571 \end_layout
10572
10573 \end_inset
10574
10575  extension.
10576  This will typically be used if the layout includes the module directly,
10577  rather than using the 
10578 \begin_inset Flex Code
10579 status collapsed
10580
10581 \begin_layout Plain Layout
10582 DefaultModule
10583 \end_layout
10584
10585 \end_inset
10586
10587  tag to indicate that it ought to be used.
10588  It could also be used in a module that provided an alternate implementation
10589  of the same functionality.
10590 \end_layout
10591
10592 \begin_layout Description
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 ProvideStyle
10598 \end_layout
10599
10600 \end_inset
10601
10602  [
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 <style>
10608 \end_layout
10609
10610 \end_inset
10611
10612 ] Creates a new paragraph style if it does not already exist.
10613  If the style does exist, this section is ignored.
10614  Must end with 
10615 \begin_inset Quotes eld
10616 \end_inset
10617
10618
10619 \begin_inset Flex Code
10620 status collapsed
10621
10622 \begin_layout Plain Layout
10623 End
10624 \end_layout
10625
10626 \end_inset
10627
10628
10629 \begin_inset Quotes erd
10630 \end_inset
10631
10632 .
10633 \end_layout
10634
10635 \begin_layout Description
10636 \begin_inset Flex Code
10637 status collapsed
10638
10639 \begin_layout Plain Layout
10640 Requires
10641 \end_layout
10642
10643 \end_inset
10644
10645  [
10646 \begin_inset Flex Code
10647 status collapsed
10648
10649 \begin_layout Plain Layout
10650 string
10651 \end_layout
10652
10653 \end_inset
10654
10655 ] Whether the class requires the feature 
10656 \begin_inset Flex Code
10657 status collapsed
10658
10659 \begin_layout Plain Layout
10660 string
10661 \end_layout
10662
10663 \end_inset
10664
10665 .
10666  Multiple features must be separated by commas.
10667  Note that you can only request supported features.
10668  (See 
10669 \begin_inset CommandInset ref
10670 LatexCommand ref
10671 reference "chap:List-of-functions"
10672
10673 \end_inset
10674
10675  for the list of features.).
10676  If you require a package with specific options, you can additionally use
10677  
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 PackageOptions
10683 \end_layout
10684
10685 \end_inset
10686
10687 .
10688 \end_layout
10689
10690 \begin_layout Description
10691 \begin_inset Flex Code
10692 status collapsed
10693
10694 \begin_layout Plain Layout
10695 RightMargin
10696 \end_layout
10697
10698 \end_inset
10699
10700  [
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 string
10706 \end_layout
10707
10708 \end_inset
10709
10710 ] A string that indicates the width of the right margin on the screen, for
10711  example, 
10712 \begin_inset Quotes eld
10713 \end_inset
10714
10715
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 MMMMM
10721 \end_layout
10722
10723 \end_inset
10724
10725
10726 \begin_inset Quotes erd
10727 \end_inset
10728
10729 .
10730 \end_layout
10731
10732 \begin_layout Description
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 SecNumDepth
10738 \end_layout
10739
10740 \end_inset
10741
10742  [
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 int=3
10748 \end_layout
10749
10750 \end_inset
10751
10752 ] Sets which divisions get numbered.
10753  Corresponds to the
10754 \begin_inset Newline newline
10755 \end_inset
10756
10757
10758 \begin_inset Flex Code
10759 status collapsed
10760
10761 \begin_layout Plain Layout
10762 secnumdepth
10763 \end_layout
10764
10765 \end_inset
10766
10767  counter in \SpecialChar LaTeX
10768 .
10769 \end_layout
10770
10771 \begin_layout Description
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776 Sides
10777 \end_layout
10778
10779 \end_inset
10780
10781  [
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786
10787 \emph on
10788 1
10789 \end_layout
10790
10791 \end_inset
10792
10793 ,
10794 \begin_inset space \thinspace{}
10795 \end_inset
10796
10797
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802 2
10803 \end_layout
10804
10805 \end_inset
10806
10807 ] Whether the class-default should be printing on one or both sides of the
10808  paper.
10809  Can be changed in the 
10810 \begin_inset Flex Noun
10811 status collapsed
10812
10813 \begin_layout Plain Layout
10814 Document\SpecialChar menuseparator
10815 Settings
10816 \end_layout
10817
10818 \end_inset
10819
10820  dialog.
10821 \end_layout
10822
10823 \begin_layout Description
10824 \begin_inset Flex Code
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 Style
10829 \end_layout
10830
10831 \end_inset
10832
10833  [
10834 \begin_inset Flex Code
10835 status collapsed
10836
10837 \begin_layout Plain Layout
10838 <name>
10839 \end_layout
10840
10841 \end_inset
10842
10843 ] This sequence defines a paragraph style.
10844  If the style does not yet exist, it is created; if it does exist, its parameter
10845 s are modified.
10846  Must end with 
10847 \begin_inset Quotes eld
10848 \end_inset
10849
10850
10851 \begin_inset Flex Code
10852 status collapsed
10853
10854 \begin_layout Plain Layout
10855 End
10856 \end_layout
10857
10858 \end_inset
10859
10860
10861 \begin_inset Quotes erd
10862 \end_inset
10863
10864 .
10865 \begin_inset Newline newline
10866 \end_inset
10867
10868 See 
10869 \begin_inset CommandInset ref
10870 LatexCommand ref
10871 reference "subsec:Paragraph-Styles"
10872
10873 \end_inset
10874
10875  for details on paragraph styles.
10876 \end_layout
10877
10878 \begin_layout Description
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 TitleLatexName
10884 \end_layout
10885
10886 \end_inset
10887
10888  [
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 string="maketitle"
10894 \end_layout
10895
10896 \end_inset
10897
10898 ] The name of the command or environment to be used with 
10899 \begin_inset Flex Code
10900 status collapsed
10901
10902 \begin_layout Plain Layout
10903 TitleLatexType
10904 \end_layout
10905
10906 \end_inset
10907
10908 .
10909 \end_layout
10910
10911 \begin_layout Description
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 TitleLatexType
10917 \end_layout
10918
10919 \end_inset
10920
10921  [
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926
10927 \emph on
10928 CommandAfter
10929 \end_layout
10930
10931 \end_inset
10932
10933
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 Environment
10939 \end_layout
10940
10941 \end_inset
10942
10943 ] Indicates what kind of markup is used to define the title of a document.
10944  
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 CommandAfter
10950 \end_layout
10951
10952 \end_inset
10953
10954  means that the macro with name 
10955 \begin_inset Flex Code
10956 status collapsed
10957
10958 \begin_layout Plain Layout
10959 TitleLatexName
10960 \end_layout
10961
10962 \end_inset
10963
10964  will be inserted after the last layout which has 
10965 \begin_inset Quotes eld
10966 \end_inset
10967
10968
10969 \begin_inset Flex Code
10970 status collapsed
10971
10972 \begin_layout Plain Layout
10973 InTitle
10974 \begin_inset space ~
10975 \end_inset
10976
10977 1
10978 \end_layout
10979
10980 \end_inset
10981
10982
10983 \begin_inset Quotes erd
10984 \end_inset
10985
10986 .
10987  
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 Environment
10993 \end_layout
10994
10995 \end_inset
10996
10997  corresponds to the case where all layouts which have 
10998 \begin_inset Quotes eld
10999 \end_inset
11000
11001
11002 \begin_inset Flex Code
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006 InTitle
11007 \begin_inset space ~
11008 \end_inset
11009
11010 1
11011 \end_layout
11012
11013 \end_inset
11014
11015
11016 \begin_inset Quotes erd
11017 \end_inset
11018
11019  should be enclosed into the 
11020 \begin_inset Flex Code
11021 status collapsed
11022
11023 \begin_layout Plain Layout
11024 TitleLatexName
11025 \end_layout
11026
11027 \end_inset
11028
11029  environment.
11030 \end_layout
11031
11032 \begin_layout Description
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 TocDepth
11038 \end_layout
11039
11040 \end_inset
11041
11042  [
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 int=3
11048 \end_layout
11049
11050 \end_inset
11051
11052 ] Sets which divisions are included in the table of contents.
11053  Corresponds to the 
11054 \begin_inset Flex Code
11055 status collapsed
11056
11057 \begin_layout Plain Layout
11058 tocdepth
11059 \end_layout
11060
11061 \end_inset
11062
11063  counter in \SpecialChar LaTeX
11064 .
11065 \end_layout
11066
11067 \begin_layout Subsection
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072 ClassOptions
11073 \end_layout
11074
11075 \end_inset
11076
11077  section
11078 \begin_inset CommandInset label
11079 LatexCommand label
11080 name "subsec:ClassOptions"
11081
11082 \end_inset
11083
11084
11085 \end_layout
11086
11087 \begin_layout Standard
11088 The 
11089 \begin_inset Flex Code
11090 status collapsed
11091
11092 \begin_layout Plain Layout
11093 ClassOptions
11094 \end_layout
11095
11096 \end_inset
11097
11098  section can contain the following entries:
11099 \end_layout
11100
11101 \begin_layout Description
11102 \begin_inset Flex Code
11103 status collapsed
11104
11105 \begin_layout Plain Layout
11106 FontSize
11107 \end_layout
11108
11109 \end_inset
11110
11111  [
11112 \begin_inset Flex Code
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116 string="10|11|12"
11117 \end_layout
11118
11119 \end_inset
11120
11121 ] The list of available font sizes for the document's main font, separated
11122  by 
11123 \begin_inset Quotes eld
11124 \end_inset
11125
11126
11127 \begin_inset Flex Code
11128 status collapsed
11129
11130 \begin_layout Plain Layout
11131 |
11132 \end_layout
11133
11134 \end_inset
11135
11136
11137 \begin_inset Quotes erd
11138 \end_inset
11139
11140 .
11141 \end_layout
11142
11143 \begin_layout Description
11144 \begin_inset Flex Code
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148 Header
11149 \end_layout
11150
11151 \end_inset
11152
11153  Used to set the DTD line with XML-based output classes.
11154  E.
11155 \begin_inset space \thinspace{}
11156 \end_inset
11157
11158 g.: PUBLIC 
11159 \begin_inset Quotes eld
11160 \end_inset
11161
11162 -//OASIS//DTD DocBook V4.2//EN
11163 \begin_inset Quotes erd
11164 \end_inset
11165
11166 .
11167 \end_layout
11168
11169 \begin_layout Description
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 PageStyle
11175 \end_layout
11176
11177 \end_inset
11178
11179  [
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 string="empty|plain|headings|fancy"
11185 \end_layout
11186
11187 \end_inset
11188
11189 ] The list of available page sty\SpecialChar softhyphen
11190 les, separated by 
11191 \begin_inset Quotes eld
11192 \end_inset
11193
11194
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 |
11200 \end_layout
11201
11202 \end_inset
11203
11204
11205 \begin_inset Quotes erd
11206 \end_inset
11207
11208 .
11209 \end_layout
11210
11211 \begin_layout Description
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 Other
11217 \end_layout
11218
11219 \end_inset
11220
11221  [
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 string=""
11227 \end_layout
11228
11229 \end_inset
11230
11231 ] Some document class options, separated by a comma, that will be added
11232  to the optional part of the 
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237
11238 \backslash
11239 documentclass
11240 \end_layout
11241
11242 \end_inset
11243
11244  command.
11245 \end_layout
11246
11247 \begin_layout Standard
11248 The 
11249 \begin_inset Flex Code
11250 status collapsed
11251
11252 \begin_layout Plain Layout
11253 ClassOptions
11254 \end_layout
11255
11256 \end_inset
11257
11258  section must end with 
11259 \begin_inset Quotes eld
11260 \end_inset
11261
11262
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 End
11268 \end_layout
11269
11270 \end_inset
11271
11272
11273 \begin_inset Quotes erd
11274 \end_inset
11275
11276 .
11277 \end_layout
11278
11279 \begin_layout Subsection
11280 Paragraph styles
11281 \begin_inset CommandInset label
11282 LatexCommand label
11283 name "subsec:Paragraph-Styles"
11284
11285 \end_inset
11286
11287
11288 \end_layout
11289
11290 \begin_layout Standard
11291 A paragraph style description looks like this:
11292 \begin_inset Foot
11293 status collapsed
11294
11295 \begin_layout Plain Layout
11296 Note that this will either define a new style or modify an existing one.
11297 \end_layout
11298
11299 \end_inset
11300
11301
11302 \end_layout
11303
11304 \begin_layout LyX-Code
11305 Style 
11306 \family roman
11307 \emph on
11308 name
11309 \end_layout
11310
11311 \begin_layout LyX-Code
11312  ...
11313 \end_layout
11314
11315 \begin_layout LyX-Code
11316 End
11317 \end_layout
11318
11319 \begin_layout Standard
11320 where the following commands are allowed:
11321 \end_layout
11322
11323 \begin_layout Description
11324
11325 \change_inserted 2047637253 1483963019
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330
11331 \change_inserted 2047637253 1483901753
11332 AddToToc
11333 \end_layout
11334
11335 \end_inset
11336
11337  [
11338 \begin_inset Flex Code
11339 status collapsed
11340
11341 \begin_layout Plain Layout
11342
11343 \change_inserted 2047637253 1483963007
11344 string
11345 \end_layout
11346
11347 \end_inset
11348
11349 =""] This paragraph will appear in the table of contents of the given type.
11350  An empty string disables.
11351  See also the OutlinerName and the IsTocCaption commands.
11352  Default: disabled.
11353 \end_layout
11354
11355 \begin_layout Description
11356 \begin_inset Flex Code
11357 status collapsed
11358
11359 \begin_layout Plain Layout
11360 Align
11361 \end_layout
11362
11363 \end_inset
11364
11365  [
11366 \begin_inset Flex Code
11367 status collapsed
11368
11369 \begin_layout Plain Layout
11370
11371 \emph on
11372 block
11373 \emph default
11374 , left, right, center
11375 \end_layout
11376
11377 \end_inset
11378
11379 ] Paragraph alignment.
11380 \end_layout
11381
11382 \begin_layout Description
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 AlignPossible
11388 \end_layout
11389
11390 \end_inset
11391
11392  [
11393 \begin_inset Flex Code
11394 status collapsed
11395
11396 \begin_layout Plain Layout
11397
11398 \emph on
11399 block
11400 \emph default
11401 , left, right, center
11402 \end_layout
11403
11404 \end_inset
11405
11406 ] A comma separated list of permitted alignments.
11407  (Some \SpecialChar LaTeX
11408  styles prohibit certain alignments, since those wouldn't make sense.
11409  For example a right-aligned or centered enumeration isn't possible.)
11410 \end_layout
11411
11412 \begin_layout Description
11413 \begin_inset Flex Code
11414 status collapsed
11415
11416 \begin_layout Plain Layout
11417 Argument
11418 \end_layout
11419
11420 \end_inset
11421
11422  [
11423 \begin_inset Flex Code
11424 status collapsed
11425
11426 \begin_layout Plain Layout
11427 int
11428 \end_layout
11429
11430 \end_inset
11431
11432 ] Defines argument number <int> of a command\SpecialChar breakableslash
11433 environment associated with
11434  the current style.
11435  This is useful for things like section headings, and only makes sense with
11436  \SpecialChar LaTeX
11437 .
11438  Every (optional or required) argument of a command or environment – except
11439  for the required argument that is associated with the content of the paragraph
11440  itself – has a separate definition, where the number specifies the order
11441  of the arguments.
11442  The definition must end with 
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447 EndArgument
11448 \end_layout
11449
11450 \end_inset
11451
11452 .
11453  So a command with two optional arguments has:
11454 \end_layout
11455
11456 \begin_deeper
11457 \begin_layout Quote
11458
11459 \family typewriter
11460 Argument 1
11461 \end_layout
11462
11463 \begin_layout Quote
11464
11465 \family typewriter
11466 ...
11467 \end_layout
11468
11469 \begin_layout Quote
11470
11471 \family typewriter
11472 EndArgument
11473 \end_layout
11474
11475 \begin_layout Quote
11476
11477 \family typewriter
11478 Argument 2
11479 \end_layout
11480
11481 \begin_layout Quote
11482
11483 \family typewriter
11484 ...
11485 \end_layout
11486
11487 \begin_layout Quote
11488
11489 \family typewriter
11490 EndArgument
11491 \end_layout
11492
11493 \begin_layout Standard
11494 Inside the 
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 Argument
11500 \end_layout
11501
11502 \end_inset
11503
11504  definition, the following specifications are possible:
11505 \end_layout
11506
11507 \begin_layout Itemize
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 LabelString
11513 \end_layout
11514
11515 \end_inset
11516
11517  
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 [string]
11523 \end_layout
11524
11525 \end_inset
11526
11527  The string that will appear both in the menu (to insert this argument)
11528  and on the argument inset button (unless you also specify a separate 
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 MenuString
11534 \end_layout
11535
11536 \end_inset
11537
11538 ).
11539  For the menu, you can define an accelerator by appending the respective
11540  character to the string, divided by 
11541 \begin_inset Quotes eld
11542 \end_inset
11543
11544 |
11545 \begin_inset Quotes erd
11546 \end_inset
11547
11548  (e.
11549 \begin_inset space \thinspace{}
11550 \end_inset
11551
11552 g.
11553 \begin_inset space \space{}
11554 \end_inset
11555
11556
11557 \begin_inset Quotes eld
11558 \end_inset
11559
11560
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565 Short Title|S
11566 \end_layout
11567
11568 \end_inset
11569
11570
11571 \begin_inset Quotes erd
11572 \end_inset
11573
11574 ).
11575 \end_layout
11576
11577 \begin_layout Itemize
11578 \begin_inset Flex Code
11579 status collapsed
11580
11581 \begin_layout Plain Layout
11582 MenuString
11583 \end_layout
11584
11585 \end_inset
11586
11587  
11588 \begin_inset Flex Code
11589 status collapsed
11590
11591 \begin_layout Plain Layout
11592 [string]
11593 \end_layout
11594
11595 \end_inset
11596
11597  A separate string for the menu.
11598  You can define an accelerator by appending the respective character to
11599  the string, divided by 
11600 \begin_inset Quotes eld
11601 \end_inset
11602
11603 |
11604 \begin_inset Quotes erd
11605 \end_inset
11606
11607  (e.
11608 \begin_inset space \thinspace{}
11609 \end_inset
11610
11611 g.
11612 \begin_inset space \space{}
11613 \end_inset
11614
11615
11616 \begin_inset Quotes eld
11617 \end_inset
11618
11619
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 Short Title|S
11625 \end_layout
11626
11627 \end_inset
11628
11629
11630 \begin_inset Quotes erd
11631 \end_inset
11632
11633 ).
11634  This specification is optional.
11635  If it is not given the 
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640 LabelString
11641 \end_layout
11642
11643 \end_inset
11644
11645  will be used instead for the menu.
11646 \end_layout
11647
11648 \begin_layout Itemize
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 Tooltip
11654 \end_layout
11655
11656 \end_inset
11657
11658  
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 [string]
11664 \end_layout
11665
11666 \end_inset
11667
11668  A longer explanatory text that appears in the tooltip when hovering over
11669  the argument inset.
11670 \end_layout
11671
11672 \begin_layout Itemize
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 Mandatory
11678 \end_layout
11679
11680 \end_inset
11681
11682  [
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687
11688 \emph on
11689 0
11690 \end_layout
11691
11692 \end_inset
11693
11694 ,
11695 \begin_inset space \thinspace{}
11696 \end_inset
11697
11698
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 1
11704 \end_layout
11705
11706 \end_inset
11707
11708 ] Declare if this is a mandatory (1) or an optional (0) argument.
11709  Mandatory arguments will be output empty if not given, while optional arguments
11710  will not be output at all.
11711  By default, mandatory arguments are delimited by 
11712 \begin_inset Flex Code
11713 status collapsed
11714
11715 \begin_layout Plain Layout
11716 {...}
11717 \end_layout
11718
11719 \end_inset
11720
11721 , while optional arguments are delimited by 
11722 \begin_inset Flex Code
11723 status collapsed
11724
11725 \begin_layout Plain Layout
11726 [...]
11727 \end_layout
11728
11729 \end_inset
11730
11731
11732 \end_layout
11733
11734 \begin_layout Itemize
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 Requires
11740 \end_layout
11741
11742 \end_inset
11743
11744  
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 [int=0]
11750 \end_layout
11751
11752 \end_inset
11753
11754  defines another argument (by its number) which this argument requires to
11755  be output if it is itself output.
11756  E.
11757 \begin_inset space \thinspace{}
11758 \end_inset
11759
11760 g., in \SpecialChar LaTeX
11761  commands, optional arguments often require previous optional arguments
11762  to be output (at least empty), as in 
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767
11768 \backslash
11769 command[][argument]{text}
11770 \end_layout
11771
11772 \end_inset
11773
11774 .
11775  This can be achieved by the statement 
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780 Requires 1
11781 \end_layout
11782
11783 \end_inset
11784
11785  within 
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 Argument 2
11791 \end_layout
11792
11793 \end_inset
11794
11795 .
11796 \end_layout
11797
11798 \begin_layout Itemize
11799 \begin_inset Flex Code
11800 status collapsed
11801
11802 \begin_layout Plain Layout
11803 LeftDelim
11804 \end_layout
11805
11806 \end_inset
11807
11808  
11809 \begin_inset Flex Code
11810 status collapsed
11811
11812 \begin_layout Plain Layout
11813 [string]
11814 \end_layout
11815
11816 \end_inset
11817
11818  defines a custom left delimiter (instead of 
11819 \begin_inset Flex Code
11820 status collapsed
11821
11822 \begin_layout Plain Layout
11823 {
11824 \end_layout
11825
11826 \end_inset
11827
11828  or 
11829 \begin_inset Flex Code
11830 status collapsed
11831
11832 \begin_layout Plain Layout
11833 [
11834 \end_layout
11835
11836 \end_inset
11837
11838 ).
11839  A line break in the output can be indicated by 
11840 \begin_inset Flex Code
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 <br/>
11845 \end_layout
11846
11847 \end_inset
11848
11849 .
11850 \end_layout
11851
11852 \begin_layout Itemize
11853 \begin_inset Flex Code
11854 status collapsed
11855
11856 \begin_layout Plain Layout
11857 RightDelim
11858 \end_layout
11859
11860 \end_inset
11861
11862  
11863 \begin_inset Flex Code
11864 status collapsed
11865
11866 \begin_layout Plain Layout
11867 [string]
11868 \end_layout
11869
11870 \end_inset
11871
11872  defines a custom right delimiter (instead of 
11873 \begin_inset Flex Code
11874 status collapsed
11875
11876 \begin_layout Plain Layout
11877 }
11878 \end_layout
11879
11880 \end_inset
11881
11882  or 
11883 \begin_inset Flex Code
11884 status collapsed
11885
11886 \begin_layout Plain Layout
11887 ]
11888 \end_layout
11889
11890 \end_inset
11891
11892 ).
11893  A line break in the output can be indicated by 
11894 \begin_inset Flex Code
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898 <br/>
11899 \end_layout
11900
11901 \end_inset
11902
11903 .
11904 \end_layout
11905
11906 \begin_layout Itemize
11907 \begin_inset Flex Code
11908 status collapsed
11909
11910 \begin_layout Plain Layout
11911 DefaultArg
11912 \end_layout
11913
11914 \end_inset
11915
11916  
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 [string]
11922 \end_layout
11923
11924 \end_inset
11925
11926  defines an argument that is inserted if and only if no user-specified arguments
11927  were given, i.
11928 \begin_inset space \thinspace{}
11929 \end_inset
11930
11931 e.
11932 \begin_inset space \space{}
11933 \end_inset
11934
11935 if no argument inset has been inserted (note that also an empty argument
11936  inset omits the DefaultArg).
11937  Multiple arguments need to be separated by comma.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 PresetArg
11946 \end_layout
11947
11948 \end_inset
11949
11950  
11951 \begin_inset Flex Code
11952 status collapsed
11953
11954 \begin_layout Plain Layout
11955 [string]
11956 \end_layout
11957
11958 \end_inset
11959
11960  defines an argument that is inserted in any case (alone or in addition
11961  to user-specified arguments).
11962  Multiple arguments need to be separated by comma.
11963 \end_layout
11964
11965 \begin_layout Itemize
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 Font
11971 \end_layout
11972
11973 \end_inset
11974
11975  The font used for the argument content, see 
11976 \begin_inset CommandInset ref
11977 LatexCommand ref
11978 reference "subsec:Font-description"
11979
11980 \end_inset
11981
11982 .
11983 \end_layout
11984
11985 \begin_layout Itemize
11986 \begin_inset Flex Code
11987 status collapsed
11988
11989 \begin_layout Plain Layout
11990 LabelFont
11991 \end_layout
11992
11993 \end_inset
11994
11995  The font used for the label; see 
11996 \begin_inset CommandInset ref
11997 LatexCommand ref
11998 reference "subsec:Font-description"
11999
12000 \end_inset
12001
12002 .
12003 \end_layout
12004
12005 \begin_layout Itemize
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010 Decoration
12011 \end_layout
12012
12013 \end_inset
12014
12015  [
12016 \begin_inset Flex Code
12017 status collapsed
12018
12019 \begin_layout Plain Layout
12020
12021 \emph on
12022 Classic
12023 \emph default
12024 , Minimalistic, Conglomerate
12025 \end_layout
12026
12027 \end_inset
12028
12029 ] describes the rendering style used for the inset's frame and buttons.
12030 \end_layout
12031
12032 \begin_layout Itemize
12033 \begin_inset Flex Code
12034 status collapsed
12035
12036 \begin_layout Plain Layout
12037 AutoInsert
12038 \end_layout
12039
12040 \end_inset
12041
12042  
12043 \begin_inset Flex Code
12044 status collapsed
12045
12046 \begin_layout Plain Layout
12047 [int=0]
12048 \end_layout
12049
12050 \end_inset
12051
12052  If this is set to 
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 1
12058 \end_layout
12059
12060 \end_inset
12061
12062 , this argument is automatically inserted when the respective style is selected.
12063  Currently, only one argument per style\SpecialChar breakableslash
12064 layout can be automatically inserted.
12065 \end_layout
12066
12067 \begin_layout Itemize
12068 \begin_inset Flex Code
12069 status collapsed
12070
12071 \begin_layout Plain Layout
12072 InsertCotext
12073 \end_layout
12074
12075 \end_inset
12076
12077  
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 [int=0]
12083 \end_layout
12084
12085 \end_inset
12086
12087  If this is set to 
12088 \begin_inset Flex Code
12089 status collapsed
12090
12091 \begin_layout Plain Layout
12092 1
12093 \end_layout
12094
12095 \end_inset
12096
12097 , this argument will be inserted with a copy of the co-text (either selected
12098  text or the whole paragraph) as content.
12099 \change_inserted -712698321 1477038290
12100
12101 \end_layout
12102
12103 \begin_layout Itemize
12104
12105 \change_inserted -712698321 1477038425
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110
12111 \change_inserted -712698321 1477038295
12112 PassThru
12113 \end_layout
12114
12115 \end_inset
12116
12117  [
12118 \begin_inset Flex Code
12119 status collapsed
12120
12121 \begin_layout Plain Layout
12122
12123 \change_inserted -712698321 1477038311
12124
12125 \emph on
12126 inherited
12127 \emph default
12128 , true, false
12129 \end_layout
12130
12131 \end_inset
12132
12133 ] Whether the contents of this argument should be output in raw form, meaning
12134  without special translations that \SpecialChar LaTeX
12135  would require.
12136  By default, the 
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141
12142 \change_inserted -712698321 1477038356
12143 PassThru
12144 \end_layout
12145
12146 \end_inset
12147
12148  status is inherited by the inset or paragraph layout the argument belongs
12149  to, true and false change the status for the given argument only.
12150 \change_unchanged
12151
12152 \end_layout
12153
12154 \begin_layout Itemize
12155 \begin_inset Flex Code
12156 status collapsed
12157
12158 \begin_layout Plain Layout
12159 PassThruChars
12160 \end_layout
12161
12162 \end_inset
12163
12164  [
12165 \begin_inset Flex Code
12166 status collapsed
12167
12168 \begin_layout Plain Layout
12169 string of characters
12170 \end_layout
12171
12172 \end_inset
12173
12174 ]
12175 \family typewriter
12176  
12177 \family default
12178 Defines individual characters that should be output in raw form, meaning
12179  without special translations that \SpecialChar LaTeX
12180  would require.
12181  Note that, contrary to PassThru, this needs to be explicitly defined for
12182  arguments.
12183  That is, arguments do not inherit PassThruChars from their parent inset
12184  or layout.
12185 \change_inserted 2047637253 1483899840
12186
12187 \end_layout
12188
12189 \begin_layout Itemize
12190
12191 \change_inserted 2047637253 1483900841
12192 \begin_inset Flex Code
12193 status collapsed
12194
12195 \begin_layout Plain Layout
12196
12197 \change_inserted 2047637253 1483900841
12198 IsTocCaption
12199 \end_layout
12200
12201 \end_inset
12202
12203  [
12204 \begin_inset Flex Code
12205 status collapsed
12206
12207 \begin_layout Plain Layout
12208
12209 \change_inserted 2047637253 1483900841
12210
12211 \emph on
12212 0
12213 \end_layout
12214
12215 \end_inset
12216
12217 ,
12218 \begin_inset space \thinspace{}
12219 \end_inset
12220
12221
12222 \begin_inset Flex Code
12223 status collapsed
12224
12225 \begin_layout Plain Layout
12226
12227 \change_inserted 2047637253 1483900841
12228 1
12229 \end_layout
12230
12231 \end_inset
12232
12233 ] If this is set to 1, the argument will output its content in the corresponding
12234  item in the table of contents.
12235  See AddToToc.
12236 \change_unchanged
12237
12238 \end_layout
12239
12240 \begin_layout Standard
12241 By default, the text entered in the \SpecialChar LyX
12242  workarea in the respective layout is
12243  the last (mandatory) argument of a command if the 
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 LatexType
12249 \end_layout
12250
12251 \end_inset
12252
12253  is 
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 Command
12259 \end_layout
12260
12261 \end_inset
12262
12263 .
12264  However, arguments with the prefix 
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 post:
12270 \end_layout
12271
12272 \end_inset
12273
12274  are output after this workarea argument.
12275  Note that post-argument numbering restarts at 1, so the first argument
12276  following the workarea argument is 
12277 \begin_inset Flex Code
12278 status collapsed
12279
12280 \begin_layout Plain Layout
12281 post:1
12282 \end_layout
12283
12284 \end_inset
12285
12286 .
12287  Post-arguments are ignored in any other 
12288 \begin_inset Flex Code
12289 status collapsed
12290
12291 \begin_layout Plain Layout
12292 LatexType
12293 \end_layout
12294
12295 \end_inset
12296
12297  than 
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 Command
12303 \end_layout
12304
12305 \end_inset
12306
12307 .
12308 \end_layout
12309
12310 \begin_layout Standard
12311 Arguments for list 
12312 \begin_inset Flex Code
12313 status collapsed
12314
12315 \begin_layout Plain Layout
12316
12317 \backslash
12318 item
12319 \end_layout
12320
12321 \end_inset
12322
12323 s (as in 
12324 \begin_inset Flex Code
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328
12329 \backslash
12330 item[foo]
12331 \end_layout
12332
12333 \end_inset
12334
12335 ) have the prefix 
12336 \begin_inset Flex Code
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340 item:
12341 \end_layout
12342
12343 \end_inset
12344
12345  followed by the number (e.
12346 \begin_inset space \thinspace{}
12347 \end_inset
12348
12349 g.
12350 \begin_inset space \space{}
12351 \end_inset
12352
12353
12354 \begin_inset Flex Code
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358 Argument item:1
12359 \end_layout
12360
12361 \end_inset
12362
12363 ).
12364 \end_layout
12365
12366 \end_deeper
12367 \begin_layout Description
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 BabelPreamble
12373 \end_layout
12374
12375 \end_inset
12376
12377  Note that this will completely override any prior 
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382 BabelPreamble
12383 \end_layout
12384
12385 \end_inset
12386
12387  declaration for this style.
12388  Must end with 
12389 \begin_inset Quotes eld
12390 \end_inset
12391
12392
12393 \begin_inset Flex Code
12394 status collapsed
12395
12396 \begin_layout Plain Layout
12397 EndBabelPreamble
12398 \end_layout
12399
12400 \end_inset
12401
12402
12403 \begin_inset Quotes erd
12404 \end_inset
12405
12406 .
12407  See 
12408 \begin_inset CommandInset ref
12409 LatexCommand ref
12410 reference "subsec:I18n"
12411
12412 \end_inset
12413
12414  for details on its use.
12415 \end_layout
12416
12417 \begin_layout Description
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 BottomSep
12423 \end_layout
12424
12425 \end_inset
12426
12427  [
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 float=0
12433 \end_layout
12434
12435 \end_inset
12436
12437 ]
12438 \begin_inset Foot
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 Note that a `float' here is a real number, such as: 1.5.
12443 \end_layout
12444
12445 \end_inset
12446
12447  The vertical space with which the last of a chain of paragraphs with this
12448  style is separated from the following paragraph.
12449  If the next paragraph has another style, the separations are not simply
12450  added, but the maximum is taken.
12451 \end_layout
12452
12453 \begin_layout Description
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 Category
12459 \end_layout
12460
12461 \end_inset
12462
12463  [
12464 \begin_inset Flex Code
12465 status collapsed
12466
12467 \begin_layout Plain Layout
12468 string
12469 \end_layout
12470
12471 \end_inset
12472
12473 ] The category for this style.
12474  This is used to group related styles in the style combobox on the toolbar.
12475  Any string can be used, but you may want to use existing categories with
12476  your own styles.
12477  
12478 \end_layout
12479
12480 \begin_layout Description
12481 \begin_inset Flex Code
12482 status collapsed
12483
12484 \begin_layout Plain Layout
12485 CommandDepth
12486 \end_layout
12487
12488 \end_inset
12489
12490  Depth of XML command.
12491  Used only with XML-type formats.
12492 \end_layout
12493
12494 \begin_layout Description
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 CopyStyle
12500 \end_layout
12501
12502 \end_inset
12503
12504  [
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 string
12510 \end_layout
12511
12512 \end_inset
12513
12514 ] Copies all the features of an existing style into the current one.
12515  
12516 \end_layout
12517
12518 \begin_layout Description
12519 \begin_inset Flex Code
12520 status collapsed
12521
12522 \begin_layout Plain Layout
12523 DependsOn
12524 \end_layout
12525
12526 \end_inset
12527
12528  [
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 <name>
12534 \end_layout
12535
12536 \end_inset
12537
12538 ] The name of a style whose preamble should be output 
12539 \emph on
12540 before
12541 \emph default
12542  this one.
12543  This allows to ensure some ordering of the preamble snippets when macros
12544  definitions depend on one another.
12545 \begin_inset Foot
12546 status collapsed
12547
12548 \begin_layout Plain Layout
12549 Note that, besides that functionality, there is no way to ensure any ordering
12550  of preambles.
12551  The ordering that you see in a given version of \SpecialChar LyX
12552  may change without warning
12553  in later versions.
12554 \end_layout
12555
12556 \end_inset
12557
12558
12559 \end_layout
12560
12561 \begin_layout Description
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 EndLabeltype
12567 \end_layout
12568
12569 \end_inset
12570
12571  [
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576
12577 \emph on
12578 No_Label
12579 \emph default
12580 , Box, Filled_Box, Static
12581 \end_layout
12582
12583 \end_inset
12584
12585 ] The type of label that stands at the end of the paragraph (or sequence
12586  of paragraphs if 
12587 \begin_inset Flex Code
12588 status collapsed
12589
12590 \begin_layout Plain Layout
12591 LatexType
12592 \end_layout
12593
12594 \end_inset
12595
12596  is
12597 \begin_inset Newline newline
12598 \end_inset
12599
12600
12601 \begin_inset Flex Code
12602 status collapsed
12603
12604 \begin_layout Plain Layout
12605 Environment
12606 \end_layout
12607
12608 \end_inset
12609
12610
12611 \begin_inset Flex Code
12612 status collapsed
12613
12614 \begin_layout Plain Layout
12615 Item_Environment
12616 \end_layout
12617
12618 \end_inset
12619
12620  or 
12621 \begin_inset Flex Code
12622 status collapsed
12623
12624 \begin_layout Plain Layout
12625 List_Environment
12626 \end_layout
12627
12628 \end_inset
12629
12630 ).
12631  
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 No_Label
12637 \end_layout
12638
12639 \end_inset
12640
12641  means 
12642 \begin_inset Quotes eld
12643 \end_inset
12644
12645 nothing
12646 \begin_inset Quotes erd
12647 \end_inset
12648
12649
12650 \begin_inset Flex Code
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654 Box
12655 \end_layout
12656
12657 \end_inset
12658
12659  (resp.
12660 \begin_inset space \space{}
12661 \end_inset
12662
12663
12664 \begin_inset Flex Code
12665 status collapsed
12666
12667 \begin_layout Plain Layout
12668 Filled_Box
12669 \end_layout
12670
12671 \end_inset
12672
12673 ) is a white (resp.
12674 \begin_inset space ~
12675 \end_inset
12676
12677 black) square suitable for end of proof markers, 
12678 \begin_inset Flex Code
12679 status collapsed
12680
12681 \begin_layout Plain Layout
12682 Static
12683 \end_layout
12684
12685 \end_inset
12686
12687  is an explicit text string.
12688 \end_layout
12689
12690 \begin_layout Description
12691 \begin_inset Flex Code
12692 status collapsed
12693
12694 \begin_layout Plain Layout
12695 EndLabelString
12696 \end_layout
12697
12698 \end_inset
12699
12700  [
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 string=""
12706 \end_layout
12707
12708 \end_inset
12709
12710 ] The string used for a label with a 
12711 \begin_inset Flex Code
12712 status collapsed
12713
12714 \begin_layout Plain Layout
12715 Static
12716 \end_layout
12717
12718 \end_inset
12719
12720
12721 \begin_inset Newline newline
12722 \end_inset
12723
12724
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 EndLabelType
12730 \end_layout
12731
12732 \end_inset
12733
12734 .
12735  
12736 \end_layout
12737
12738 \begin_layout Description
12739 \begin_inset Flex Code
12740 status collapsed
12741
12742 \begin_layout Plain Layout
12743 Font
12744 \end_layout
12745
12746 \end_inset
12747
12748  The font used for both the text body 
12749 \emph on
12750 and
12751 \emph default
12752  the label.
12753  See 
12754 \begin_inset CommandInset ref
12755 LatexCommand ref
12756 reference "subsec:Font-description"
12757
12758 \end_inset
12759
12760 .
12761  Note that defining this font automatically defines the 
12762 \begin_inset Flex Code
12763 status collapsed
12764
12765 \begin_layout Plain Layout
12766 LabelFont
12767 \end_layout
12768
12769 \end_inset
12770
12771  to the same value.
12772  So you should define this one first if you also want to define 
12773 \begin_inset Flex Code
12774 status collapsed
12775
12776 \begin_layout Plain Layout
12777 LabelFont
12778 \end_layout
12779
12780 \end_inset
12781
12782 .
12783 \end_layout
12784
12785 \begin_layout Description
12786 \begin_inset Flex Code
12787 status collapsed
12788
12789 \begin_layout Plain Layout
12790 ForceLocal
12791 \end_layout
12792
12793 \end_inset
12794
12795  [
12796 \begin_inset Flex Code
12797 status collapsed
12798
12799 \begin_layout Plain Layout
12800 int=0
12801 \end_layout
12802
12803 \end_inset
12804
12805 ] Used for backporting new styles to stable \SpecialChar LyX
12806  versions.
12807  The first stable version that supports this tag is \SpecialChar LyX
12808  2.1.0.
12809  The argument is a number which may either be 0, -1 or any value greater
12810  than zero.
12811  If the 
12812 \begin_inset Flex Code
12813 status collapsed
12814
12815 \begin_layout Plain Layout
12816 ForceLocal
12817 \end_layout
12818
12819 \end_inset
12820
12821  flag of a style is greater than zero, it will always be written to the
12822  document header.
12823  If a .lyx file is read, the style definitions from the document header are
12824  added to the document class.
12825  Therefore even older \SpecialChar LyX
12826  versions can handle the style.
12827  The argument of 
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 ForceLocal
12833 \end_layout
12834
12835 \end_inset
12836
12837  is a version number: if the style is read, and the version number is less
12838  than the version number of the already existing style in the document class,
12839  the new style is ignored.
12840  If the version number is greater, the new style replaces the existing style.
12841  A value of -1 means an infinite version number, i.
12842 \begin_inset space \thinspace{}
12843 \end_inset
12844
12845 e.
12846 \begin_inset space \space{}
12847 \end_inset
12848
12849 the style is always used.
12850 \end_layout
12851
12852 \begin_layout Description
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 FreeSpacing
12858 \end_layout
12859
12860 \end_inset
12861
12862  [
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867
12868 \emph on
12869 0
12870 \end_layout
12871
12872 \end_inset
12873
12874 ,
12875 \begin_inset space \thinspace{}
12876 \end_inset
12877
12878
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 1
12884 \end_layout
12885
12886 \end_inset
12887
12888 ] Usually \SpecialChar LyX
12889  does not allow you to insert more than one space between words,
12890  since a space is considered as the separation between two words, not a
12891  character or symbol of its own.
12892  This is a very fine thing but sometimes annoying, for example, when typing
12893  program code or plain \SpecialChar LaTeX
12894  code.
12895  For this reason, 
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 FreeSpacing
12901 \end_layout
12902
12903 \end_inset
12904
12905  can be enabled.
12906  Note that \SpecialChar LyX
12907  will create protected blanks for the additional blanks when
12908  in another mode than \SpecialChar LaTeX
12909 -mode.
12910 \end_layout
12911
12912 \begin_layout Description
12913 \begin_inset Flex Code
12914 status collapsed
12915
12916 \begin_layout Plain Layout
12917 HTML*
12918 \end_layout
12919
12920 \end_inset
12921
12922  These tags are used with XHTML output.
12923  See 
12924 \begin_inset CommandInset ref
12925 LatexCommand ref
12926 reference "subsec:Paragraph-Style-XHTML"
12927
12928 \end_inset
12929
12930 .
12931 \end_layout
12932
12933 \begin_layout Description
12934 \begin_inset Flex Code
12935 status collapsed
12936
12937 \begin_layout Plain Layout
12938 InnerTag
12939 \end_layout
12940
12941 \end_inset
12942
12943  [FIXME] (Used only with XML-type formats.)
12944 \end_layout
12945
12946 \begin_layout Description
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951 InPreamble
12952 \end_layout
12953
12954 \end_inset
12955
12956  [
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961
12962 \emph on
12963 0
12964 \end_layout
12965
12966 \end_inset
12967
12968 ,
12969 \begin_inset space \thinspace{}
12970 \end_inset
12971
12972
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 1
12978 \end_layout
12979
12980 \end_inset
12981
12982 ] If 
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 1
12988 \end_layout
12989
12990 \end_inset
12991
12992 , marks the style as to be included in the document preamble and not in
12993  the document body.
12994  This is useful for document classes that want such information as the title
12995  and author to appear in the preamble.
12996  Note that this works only for styles for which the 
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001 LatexType
13002 \end_layout
13003
13004 \end_inset
13005
13006  is 
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 Command
13012 \end_layout
13013
13014 \end_inset
13015
13016  or 
13017 \begin_inset Flex Code
13018 status collapsed
13019
13020 \begin_layout Plain Layout
13021 Paragraph
13022 \end_layout
13023
13024 \end_inset
13025
13026 .
13027 \end_layout
13028
13029 \begin_layout Description
13030 \begin_inset Flex Code
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 InTitle
13035 \end_layout
13036
13037 \end_inset
13038
13039  [
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044
13045 \emph on
13046 0
13047 \end_layout
13048
13049 \end_inset
13050
13051 ,
13052 \begin_inset space \thinspace{}
13053 \end_inset
13054
13055
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060 1
13061 \end_layout
13062
13063 \end_inset
13064
13065 ] If 
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 1
13071 \end_layout
13072
13073 \end_inset
13074
13075 , marks the style as being part of a title block (see also the 
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 TitleLatexType
13081 \end_layout
13082
13083 \end_inset
13084
13085  and 
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 TitleLatexName
13091 \end_layout
13092
13093 \end_inset
13094
13095  global entries).
13096 \end_layout
13097
13098 \begin_layout Description
13099
13100 \change_inserted 2047637253 1483902824
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105
13106 \change_inserted 2047637253 1483902211
13107 IsTocCaption
13108 \end_layout
13109
13110 \end_inset
13111
13112  [
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117
13118 \change_inserted 2047637253 1483902211
13119
13120 \emph on
13121 0
13122 \end_layout
13123
13124 \end_inset
13125
13126 ,
13127 \begin_inset space \thinspace{}
13128 \end_inset
13129
13130
13131 \begin_inset Flex Code
13132 status collapsed
13133
13134 \begin_layout Plain Layout
13135
13136 \change_inserted 2047637253 1483902211
13137 1
13138 \end_layout
13139
13140 \end_inset
13141
13142 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13143  of its contents in its item in the table of contents.
13144  Otherwise, only the label, if it exists, appears.
13145 \end_layout
13146
13147 \begin_layout Description
13148 \begin_inset Flex Code
13149 status collapsed
13150
13151 \begin_layout Plain Layout
13152 ItemCommand
13153 \end_layout
13154
13155 \end_inset
13156
13157  [
13158 \begin_inset Flex Code
13159 status collapsed
13160
13161 \begin_layout Plain Layout
13162 string="item"
13163 \end_layout
13164
13165 \end_inset
13166
13167 ] The \SpecialChar LaTeX
13168  command sequence declaring an item in a list.
13169  The command is to be defined without the preceding backslash (the default
13170  is 
13171 \begin_inset Quotes eld
13172 \end_inset
13173
13174 item
13175 \begin_inset Quotes erd
13176 \end_inset
13177
13178 , resulting in 
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183
13184 \backslash
13185 item
13186 \end_layout
13187
13188 \end_inset
13189
13190  in the \SpecialChar LaTeX
13191  output).
13192 \end_layout
13193
13194 \begin_layout Description
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 ItemSep
13200 \end_layout
13201
13202 \end_inset
13203
13204  [
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 float=0
13210 \end_layout
13211
13212 \end_inset
13213
13214 ] This provides extra space between paragraphs that have the same style.
13215  If you put other styles into an environment, each is separated with the
13216  environment's 
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 ParSep
13222 \end_layout
13223
13224 \end_inset
13225
13226 .
13227  But the whole items of the environment are additionally separated with
13228  this 
13229 \begin_inset Flex Code
13230 status collapsed
13231
13232 \begin_layout Plain Layout
13233 ItemSep
13234 \end_layout
13235
13236 \end_inset
13237
13238 .
13239  Note that this is a
13240 \emph on
13241  multiplier.
13242 \end_layout
13243
13244 \begin_layout Description
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 ItemTag
13250 \end_layout
13251
13252 \end_inset
13253
13254  [FIXME] (Used only with XML-type formats.)
13255 \end_layout
13256
13257 \begin_layout Description
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262 KeepEmpty
13263 \end_layout
13264
13265 \end_inset
13266
13267  [
13268 \begin_inset Flex Code
13269 status collapsed
13270
13271 \begin_layout Plain Layout
13272
13273 \emph on
13274 0
13275 \end_layout
13276
13277 \end_inset
13278
13279 ,
13280 \begin_inset space \thinspace{}
13281 \end_inset
13282
13283
13284 \begin_inset Flex Code
13285 status collapsed
13286
13287 \begin_layout Plain Layout
13288 1
13289 \end_layout
13290
13291 \end_inset
13292
13293 ] Usually \SpecialChar LyX
13294  does not allow you to leave a paragraph empty, since it would
13295  lead to empty \SpecialChar LaTeX
13296  output.
13297  There are some cases where this could be desirable however: in a letter
13298  template, the required fields can be provided as empty fields, so that
13299  people do not forget them; in some special classes, a style can be used
13300  as some kind of break, which does not contain actual text.
13301 \end_layout
13302
13303 \begin_layout Description
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 LabelBottomsep
13309 \end_layout
13310
13311 \end_inset
13312
13313  [
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 float=0
13319 \end_layout
13320
13321 \end_inset
13322
13323 ] The vertical space between the label and the text body.
13324  Only used for labels that are above the text body (
13325 \begin_inset Flex Code
13326 status collapsed
13327
13328 \begin_layout Plain Layout
13329 Top_Environment
13330 \end_layout
13331
13332 \end_inset
13333
13334  and
13335 \begin_inset Newline newline
13336 \end_inset
13337
13338
13339 \begin_inset Flex Code
13340 status collapsed
13341
13342 \begin_layout Plain Layout
13343 Centered_Top_Environment
13344 \end_layout
13345
13346 \end_inset
13347
13348 ).
13349 \end_layout
13350
13351 \begin_layout Description
13352 \begin_inset Flex Code
13353 status collapsed
13354
13355 \begin_layout Plain Layout
13356 LabelCounter
13357 \end_layout
13358
13359 \end_inset
13360
13361  [
13362 \begin_inset Flex Code
13363 status collapsed
13364
13365 \begin_layout Plain Layout
13366 string=""
13367 \end_layout
13368
13369 \end_inset
13370
13371 ] The name of the counter for automatic numbering.
13372  In order to have the counter appear with your label, you will need to reference
13373  it in the 
13374 \begin_inset Flex Code
13375 status collapsed
13376
13377 \begin_layout Plain Layout
13378
13379 \family typewriter
13380 LabelString
13381 \end_layout
13382
13383 \end_inset
13384
13385 .
13386  This will work with 
13387 \begin_inset Flex Code
13388 status collapsed
13389
13390 \begin_layout Plain Layout
13391 LabelType
13392 \end_layout
13393
13394 \end_inset
13395
13396 s, 
13397 \begin_inset Flex Code
13398 status collapsed
13399
13400 \begin_layout Plain Layout
13401 Static
13402 \end_layout
13403
13404 \end_inset
13405
13406
13407 \begin_inset Flex Code
13408 status collapsed
13409
13410 \begin_layout Plain Layout
13411 Above
13412 \end_layout
13413
13414 \end_inset
13415
13416  and 
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 Centered
13422 \end_layout
13423
13424 \end_inset
13425
13426 , at least.
13427 \begin_inset Newline newline
13428 \end_inset
13429
13430 This 
13431 \emph on
13432 may
13433 \emph default
13434  also be given if 
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 LabelType
13440 \end_layout
13441
13442 \end_inset
13443
13444  is 
13445 \begin_inset Flex Code
13446 status collapsed
13447
13448 \begin_layout Plain Layout
13449 Enumerate
13450 \end_layout
13451
13452 \end_inset
13453
13454 , though this case is a bit complicated.
13455  Suppose you declare 
13456 \begin_inset Quotes eld
13457 \end_inset
13458
13459
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464 LabelCounter myenum
13465 \end_layout
13466
13467 \end_inset
13468
13469
13470 \begin_inset Quotes erd
13471 \end_inset
13472
13473 .
13474  Then the actual counters used are 
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479 myenumi
13480 \end_layout
13481
13482 \end_inset
13483
13484
13485 \begin_inset Flex Code
13486 status collapsed
13487
13488 \begin_layout Plain Layout
13489 myenumii
13490 \end_layout
13491
13492 \end_inset
13493
13494
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 myenumiii
13500 \end_layout
13501
13502 \end_inset
13503
13504  and 
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 myenumiv
13510 \end_layout
13511
13512 \end_inset
13513
13514 , much as in \SpecialChar LaTeX
13515 .
13516  These counters must all be declared separately.
13517 \begin_inset Newline newline
13518 \end_inset
13519
13520 See 
13521 \begin_inset CommandInset ref
13522 LatexCommand ref
13523 reference "subsec:Counters"
13524
13525 \end_inset
13526
13527  for details on counters.
13528 \end_layout
13529
13530 \begin_layout Description
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 LabelFont
13536 \end_layout
13537
13538 \end_inset
13539
13540  The font used for the label.
13541  See 
13542 \begin_inset CommandInset ref
13543 LatexCommand ref
13544 reference "subsec:Font-description"
13545
13546 \end_inset
13547
13548 .
13549 \end_layout
13550
13551 \begin_layout Description
13552 \begin_inset Flex Code
13553 status collapsed
13554
13555 \begin_layout Plain Layout
13556 LabelIndent
13557 \end_layout
13558
13559 \end_inset
13560
13561  [
13562 \begin_inset Flex Code
13563 status collapsed
13564
13565 \begin_layout Plain Layout
13566 string=""
13567 \end_layout
13568
13569 \end_inset
13570
13571 ] Text that indicates how far a label should be indented.
13572 \end_layout
13573
13574 \begin_layout Description
13575 \begin_inset Flex Code
13576 status collapsed
13577
13578 \begin_layout Plain Layout
13579 LabelSep
13580 \end_layout
13581
13582 \end_inset
13583
13584  [
13585 \begin_inset Flex Code
13586 status collapsed
13587
13588 \begin_layout Plain Layout
13589 string=""
13590 \end_layout
13591
13592 \end_inset
13593
13594 ] Text that indicates the amount of horizontal space between the label and
13595  the text body.
13596  Only used for labels that are not above the text body.
13597 \end_layout
13598
13599 \begin_layout Description
13600 \begin_inset Flex Code
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604 LabelString
13605 \end_layout
13606
13607 \end_inset
13608
13609  [
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614 string=""
13615 \end_layout
13616
13617 \end_inset
13618
13619 ] The string used for the label.
13620  When 
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 LabelCounter
13626 \end_layout
13627
13628 \end_inset
13629
13630  is set, this string can be contain the special formatting commands described
13631  in 
13632 \begin_inset CommandInset ref
13633 LatexCommand ref
13634 reference "subsec:Counters"
13635
13636 \end_inset
13637
13638 .
13639 \end_layout
13640
13641 \begin_layout Description
13642 \begin_inset Flex Code
13643 status collapsed
13644
13645 \begin_layout Plain Layout
13646 LabelStringAppendix
13647 \end_layout
13648
13649 \end_inset
13650
13651  [
13652 \begin_inset Flex Code
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656 string=""
13657 \end_layout
13658
13659 \end_inset
13660
13661 ] This is used inside the appendix instead of
13662 \begin_inset Newline newline
13663 \end_inset
13664
13665
13666 \begin_inset Flex Code
13667 status collapsed
13668
13669 \begin_layout Plain Layout
13670 LabelString
13671 \end_layout
13672
13673 \end_inset
13674
13675 .
13676  Note that every 
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681 LabelString
13682 \end_layout
13683
13684 \end_inset
13685
13686  statement resets
13687 \begin_inset Newline newline
13688 \end_inset
13689
13690
13691 \begin_inset Flex Code
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 LabelStringAppendix
13696 \end_layout
13697
13698 \end_inset
13699
13700  too.
13701 \end_layout
13702
13703 \begin_layout Description
13704 \begin_inset Flex Code
13705 status collapsed
13706
13707 \begin_layout Plain Layout
13708 LabelTag
13709 \end_layout
13710
13711 \end_inset
13712
13713  [FIXME] (Used only with XML-type formats.)
13714 \end_layout
13715
13716 \begin_layout Description
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 LabelType
13722 \end_layout
13723
13724 \end_inset
13725
13726  [
13727 \begin_inset Flex Code
13728 status collapsed
13729
13730 \begin_layout Plain Layout
13731
13732 \emph on
13733 No_Label
13734 \emph default
13735 , Manual, Static, Above, 
13736 \begin_inset Newline newline
13737 \end_inset
13738
13739 Centered, Sensitive, Enumerate,
13740 \begin_inset Newline newline
13741 \end_inset
13742
13743 Itemize, Bibliography
13744 \end_layout
13745
13746 \end_inset
13747
13748 ]
13749 \end_layout
13750
13751 \begin_deeper
13752 \begin_layout Description
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757 Manual
13758 \end_layout
13759
13760 \end_inset
13761
13762  means the label is the very first word (up to the first real blank).
13763  Use protected spaces if you want more than one word as the label.
13764  
13765 \end_layout
13766
13767 \begin_layout Description
13768 \begin_inset Flex Code
13769 status collapsed
13770
13771 \begin_layout Plain Layout
13772 Static
13773 \end_layout
13774
13775 \end_inset
13776
13777  means the label is simply what is declared as 
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782 LabelString
13783 \end_layout
13784
13785 \end_inset
13786
13787 .
13788  This will be displayed 
13789 \begin_inset Quotes eld
13790 \end_inset
13791
13792 inline
13793 \begin_inset Quotes erd
13794 \end_inset
13795
13796 , at the beginning of the paragraph.
13797  If the 
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 LatexType
13803 \end_layout
13804
13805 \end_inset
13806
13807  is 
13808 \begin_inset Flex Code
13809 status collapsed
13810
13811 \begin_layout Plain Layout
13812 Environment
13813 \end_layout
13814
13815 \end_inset
13816
13817 , then it will be displayed only in the first paragraph of any sequence
13818  of paragraphs with the same 
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 Style
13824 \end_layout
13825
13826 \end_inset
13827
13828 .
13829 \end_layout
13830
13831 \begin_layout Description
13832 \begin_inset Flex Code
13833 status collapsed
13834
13835 \begin_layout Plain Layout
13836 Above
13837 \end_layout
13838
13839 \end_inset
13840
13841
13842 \begin_inset space ~
13843 \end_inset
13844
13845 and
13846 \begin_inset space ~
13847 \end_inset
13848
13849
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854 Centered
13855 \end_layout
13856
13857 \end_inset
13858
13859  are special cases of 
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 Static
13865 \end_layout
13866
13867 \end_inset
13868
13869 .
13870  The label will be printed above the paragraph either at the beginning of
13871  the line or centered.
13872 \end_layout
13873
13874 \begin_layout Description
13875 \begin_inset Flex Code
13876 status collapsed
13877
13878 \begin_layout Plain Layout
13879 Sensitive
13880 \end_layout
13881
13882 \end_inset
13883
13884  is a special case for the caption-labels 
13885 \begin_inset Quotes eld
13886 \end_inset
13887
13888 Figure
13889 \begin_inset Quotes erd
13890 \end_inset
13891
13892  and 
13893 \begin_inset Quotes eld
13894 \end_inset
13895
13896 Table
13897 \begin_inset Quotes erd
13898 \end_inset
13899
13900 .
13901 \begin_inset Newline newline
13902 \end_inset
13903
13904
13905 \begin_inset Flex Code
13906 status collapsed
13907
13908 \begin_layout Plain Layout
13909 Sensitive
13910 \end_layout
13911
13912 \end_inset
13913
13914  means the (hardcoded) label string depends on the kind of float: It is
13915  hardcoded to be `FloatType N', where N is the value of the counter associated
13916  with the float.
13917  For the case that a caption is inserted outside of a float the 
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 LabelString
13923 \end_layout
13924
13925 \end_inset
13926
13927  will appear as 
13928 \begin_inset Quotes eld
13929 \end_inset
13930
13931 Senseless!
13932 \begin_inset Quotes erd
13933 \end_inset
13934
13935 .
13936 \end_layout
13937
13938 \begin_layout Description
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943 Enumerate
13944 \end_layout
13945
13946 \end_inset
13947
13948  produces the usual sort of enumeration labels.
13949  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13950  small Roman numerals, and uppercase letters for the four possible depths.
13951 \end_layout
13952
13953 \begin_layout Description
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 Itemize
13959 \end_layout
13960
13961 \end_inset
13962
13963  produces various bullets at the different levels.
13964  It is also hardcoded.
13965 \end_layout
13966
13967 \begin_layout Description
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 Bibliography
13973 \end_layout
13974
13975 \end_inset
13976
13977  should be used only with 
13978 \begin_inset Flex Code
13979 status collapsed
13980
13981 \begin_layout Plain Layout
13982 LatexType BibEnvironment
13983 \end_layout
13984
13985 \end_inset
13986
13987 .
13988 \end_layout
13989
13990 \end_deeper
13991 \begin_layout Description
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 LangPreamble
13997 \end_layout
13998
13999 \end_inset
14000
14001  Note that this will completely override any prior 
14002 \begin_inset Flex Code
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006 LangPreamble
14007 \end_layout
14008
14009 \end_inset
14010
14011  declaration for this style.
14012  Must end with 
14013 \begin_inset Quotes eld
14014 \end_inset
14015
14016
14017 \begin_inset Flex Code
14018 status collapsed
14019
14020 \begin_layout Plain Layout
14021 EndLangPreamble
14022 \end_layout
14023
14024 \end_inset
14025
14026
14027 \begin_inset Quotes erd
14028 \end_inset
14029
14030 .
14031  See 
14032 \begin_inset CommandInset ref
14033 LatexCommand ref
14034 reference "subsec:I18n"
14035
14036 \end_inset
14037
14038  for details on its use.
14039 \end_layout
14040
14041 \begin_layout Description
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 LatexName
14047 \end_layout
14048
14049 \end_inset
14050
14051  [
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056 <name>
14057 \end_layout
14058
14059 \end_inset
14060
14061 ] The name of the corresponding \SpecialChar LaTeX
14062  stuff.
14063  Either the environment or command name.
14064 \end_layout
14065
14066 \begin_layout Description
14067 \begin_inset Flex Code
14068 status collapsed
14069
14070 \begin_layout Plain Layout
14071 LatexParam
14072 \end_layout
14073
14074 \end_inset
14075
14076  [
14077 \begin_inset Flex Code
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081 <parameter>
14082 \end_layout
14083
14084 \end_inset
14085
14086 ] An optional parameter for the corresponding 
14087 \begin_inset Flex Code
14088 status collapsed
14089
14090 \begin_layout Plain Layout
14091 LatexName
14092 \end_layout
14093
14094 \end_inset
14095
14096  stuff.
14097  This parameter cannot be changed from within \SpecialChar LyX
14098  (use 
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 Argument
14104 \end_layout
14105
14106 \end_inset
14107
14108  for customizable parameters).
14109  This will be output as is after all \SpecialChar LaTeX
14110  
14111 \begin_inset Flex Code
14112 status collapsed
14113
14114 \begin_layout Plain Layout
14115 Argument
14116 \end_layout
14117
14118 \end_inset
14119
14120 s.
14121 \end_layout
14122
14123 \begin_layout Description
14124 \begin_inset Flex Code
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 LatexType
14129 \end_layout
14130
14131 \end_inset
14132
14133  [
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138
14139 \emph on
14140 Paragraph
14141 \emph default
14142 , Command, Environment, Item_Environment,
14143 \begin_inset Newline newline
14144 \end_inset
14145
14146 List_Environment, Bib_Environment
14147 \end_layout
14148
14149 \end_inset
14150
14151 ] How the style should be translated into \SpecialChar LaTeX
14152 .
14153 \begin_inset Foot
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161 LatexType
14162 \end_layout
14163
14164 \end_inset
14165
14166  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14167  Visit the SGML class files for specific examples.
14168 \end_layout
14169
14170 \end_inset
14171
14172
14173 \end_layout
14174
14175 \begin_deeper
14176 \begin_layout Description
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 Paragraph
14182 \end_layout
14183
14184 \end_inset
14185
14186  means nothing special.
14187 \end_layout
14188
14189 \begin_layout Description
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 Command
14195 \end_layout
14196
14197 \end_inset
14198
14199  means 
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204
14205 \backslash
14206
14207 \emph on
14208 LatexName
14209 \emph default
14210 {\SpecialChar ldots
14211 }
14212 \end_layout
14213
14214 \end_inset
14215
14216 .
14217 \end_layout
14218
14219 \begin_layout Description
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224 Environment
14225 \end_layout
14226
14227 \end_inset
14228
14229  means 
14230 \begin_inset Flex Code
14231 status collapsed
14232
14233 \begin_layout Plain Layout
14234
14235 \backslash
14236 begin{
14237 \emph on
14238 LatexName
14239 \emph default
14240 }\SpecialChar ldots
14241
14242 \backslash
14243 end{
14244 \emph on
14245 LatexName
14246 \emph default
14247 }
14248 \end_layout
14249
14250 \end_inset
14251
14252 .
14253  
14254 \end_layout
14255
14256 \begin_layout Description
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261 Item_Environment
14262 \end_layout
14263
14264 \end_inset
14265
14266  is the same as 
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 Environment
14272 \end_layout
14273
14274 \end_inset
14275
14276 , except that an 
14277 \begin_inset Flex Code
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281
14282 \backslash
14283 item
14284 \end_layout
14285
14286 \end_inset
14287
14288  is generated for each paragraph of this environment.
14289  
14290 \end_layout
14291
14292 \begin_layout Description
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 List_Environment
14298 \end_layout
14299
14300 \end_inset
14301
14302  is the same as 
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 Item_Environment
14308 \end_layout
14309
14310 \end_inset
14311
14312 , except that
14313 \begin_inset Newline newline
14314 \end_inset
14315
14316
14317 \begin_inset Flex Code
14318 status collapsed
14319
14320 \begin_layout Plain Layout
14321 LabelWidthString
14322 \end_layout
14323
14324 \end_inset
14325
14326  is passed as an argument to the environment.
14327 \begin_inset Newline newline
14328 \end_inset
14329
14330
14331 \begin_inset Flex Code
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 LabelWidthString
14336 \end_layout
14337
14338 \end_inset
14339
14340  can be defined in the 
14341 \begin_inset Flex Noun
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345 Edit\SpecialChar menuseparator
14346 Paragraph
14347 \begin_inset space ~
14348 \end_inset
14349
14350 settings
14351 \end_layout
14352
14353 \end_inset
14354
14355  dialog.
14356 \end_layout
14357
14358 \begin_layout Description
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 Bib_Environment
14364 \end_layout
14365
14366 \end_inset
14367
14368  is like 
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 Environment
14374 \end_layout
14375
14376 \end_inset
14377
14378  but adds the necessary mandatory argument (the longest label) to the begin
14379  statement of the bibliography environment:
14380 \begin_inset Newline newline
14381 \end_inset
14382
14383
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388
14389 \backslash
14390 begin{thebibliography}{99}
14391 \end_layout
14392
14393 \end_inset
14394
14395 .
14396  It is therefore only useful for bibliography environments.
14397  The default longest label 
14398 \begin_inset Quotes eld
14399 \end_inset
14400
14401 99
14402 \begin_inset Quotes erd
14403 \end_inset
14404
14405  can be changed by the user in the paragraph settings of a bibliography
14406  item.
14407 \end_layout
14408
14409 \begin_layout Standard
14410 Putting the last few things together, the \SpecialChar LaTeX
14411  output will be either: 
14412 \end_layout
14413
14414 \begin_layout LyX-Code
14415
14416 \backslash
14417 LatexName[LatexParam]{\SpecialChar ldots
14418 }
14419 \end_layout
14420
14421 \begin_layout Standard
14422 or: 
14423 \end_layout
14424
14425 \begin_layout LyX-Code
14426
14427 \backslash
14428 begin{LatexName}[LatexParam] \SpecialChar ldots
14429  
14430 \backslash
14431 end{LatexName}.
14432 \end_layout
14433
14434 \begin_layout Standard
14435 depending upon the \SpecialChar LaTeX
14436  type.
14437 \end_layout
14438
14439 \end_deeper
14440 \begin_layout Description
14441 \begin_inset Flex Code
14442 status collapsed
14443
14444 \begin_layout Plain Layout
14445 LeftDelim
14446 \end_layout
14447
14448 \end_inset
14449
14450  [
14451 \begin_inset Flex Code
14452 status collapsed
14453
14454 \begin_layout Plain Layout
14455 string
14456 \end_layout
14457
14458 \end_inset
14459
14460 ] A string that is put at the beginning of the style content.
14461  A line break in the output can be indicated by 
14462 \begin_inset Flex Code
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 <br/>
14467 \end_layout
14468
14469 \end_inset
14470
14471 .
14472 \end_layout
14473
14474 \begin_layout Description
14475 \begin_inset Flex Code
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479 LeftMargin
14480 \end_layout
14481
14482 \end_inset
14483
14484  [
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489 string=""
14490 \end_layout
14491
14492 \end_inset
14493
14494 ] If you put styles into environments, the different 
14495 \begin_inset Flex Code
14496 status collapsed
14497
14498 \begin_layout Plain Layout
14499 LeftMargin
14500 \end_layout
14501
14502 \end_inset
14503
14504  are not simply added, but added with a factor 
14505 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14506 \end_inset
14507
14508 .
14509  Note that this parameter is also used when 
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 Margin
14515 \end_layout
14516
14517 \end_inset
14518
14519  is defined as 
14520 \begin_inset Flex Code
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 Manual
14525 \end_layout
14526
14527 \end_inset
14528
14529  or 
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 Dynamic
14535 \end_layout
14536
14537 \end_inset
14538
14539 .
14540  Then it is added to the manual or dynamic margin.
14541 \begin_inset Newline newline
14542 \end_inset
14543
14544 For example 
14545 \begin_inset Quotes eld
14546 \end_inset
14547
14548
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 MM
14554 \end_layout
14555
14556 \end_inset
14557
14558
14559 \begin_inset Quotes erd
14560 \end_inset
14561
14562  means that the paragraph is indented with the width of 
14563 \begin_inset Quotes eld
14564 \end_inset
14565
14566
14567 \begin_inset Flex Code
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 MM
14572 \end_layout
14573
14574 \end_inset
14575
14576
14577 \begin_inset Quotes erd
14578 \end_inset
14579
14580  in the normal font.
14581  You can get a negative width by prefixing the string with 
14582 \begin_inset Quotes eld
14583 \end_inset
14584
14585
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 -
14591 \end_layout
14592
14593 \end_inset
14594
14595
14596 \begin_inset Quotes erd
14597 \end_inset
14598
14599 .
14600  This way was chosen so that the look is the same with each used screen
14601  font.
14602 \end_layout
14603
14604 \begin_layout Description
14605 \begin_inset Flex Code
14606 status collapsed
14607
14608 \begin_layout Plain Layout
14609 Margin
14610 \end_layout
14611
14612 \end_inset
14613
14614  [
14615 \begin_inset Flex Code
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619
14620 \emph on
14621 Static
14622 \emph default
14623 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14624 \end_layout
14625
14626 \end_inset
14627
14628
14629 \begin_inset Newline newline
14630 \end_inset
14631
14632 The kind of margin that the style has on the left side.
14633 \end_layout
14634
14635 \begin_deeper
14636 \begin_layout Description
14637 \begin_inset Flex Code
14638 status collapsed
14639
14640 \begin_layout Plain Layout
14641 Static
14642 \end_layout
14643
14644 \end_inset
14645
14646  just means a fixed margin.
14647 \end_layout
14648
14649 \begin_layout Description
14650 \begin_inset Flex Code
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 Manual
14655 \end_layout
14656
14657 \end_inset
14658
14659  means that the left margin depends on the string entered in the 
14660 \begin_inset Flex Noun
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 Edit\SpecialChar menuseparator
14665 Paragraph
14666 \begin_inset space ~
14667 \end_inset
14668
14669 Settings
14670 \end_layout
14671
14672 \end_inset
14673
14674  dialog.
14675  This is used to typeset nice lists without tabulators.
14676 \end_layout
14677
14678 \begin_layout Description
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683 Dynamic
14684 \end_layout
14685
14686 \end_inset
14687
14688  means that the margin depends on the size of the label.
14689  This is used for automatic enumerated headlines.
14690  It is obvious that the headline 
14691 \begin_inset Quotes eld
14692 \end_inset
14693
14694 5.4.3.2.1 Very long headline
14695 \begin_inset Quotes erd
14696 \end_inset
14697
14698  must have a wider left margin (as wide as 
14699 \begin_inset Quotes eld
14700 \end_inset
14701
14702 5.4.3.2.1
14703 \begin_inset Quotes erd
14704 \end_inset
14705
14706  plus the space) than 
14707 \begin_inset Quotes eld
14708 \end_inset
14709
14710 3.2 Very long headline
14711 \begin_inset Quotes erd
14712 \end_inset
14713
14714 , even if standard 
14715 \begin_inset Quotes eld
14716 \end_inset
14717
14718 word processors
14719 \begin_inset Quotes erd
14720 \end_inset
14721
14722  are not able to do this.
14723 \end_layout
14724
14725 \begin_layout Description
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 First_Dynamic
14731 \end_layout
14732
14733 \end_inset
14734
14735  is similar, but only the very first row of the paragraph is dynamic, while
14736  the others are static; this is used, for example, for descriptions.
14737 \end_layout
14738
14739 \begin_layout Description
14740 \begin_inset Flex Code
14741 status collapsed
14742
14743 \begin_layout Plain Layout
14744 Right_Address_Box
14745 \end_layout
14746
14747 \end_inset
14748
14749  means the margin is chosen in a way that the longest row of this paragraph
14750  fits to the right margin.
14751  This is used to typeset an address on the right edge of the page.
14752 \end_layout
14753
14754 \end_deeper
14755 \begin_layout Description
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 NeedProtect
14761 \end_layout
14762
14763 \end_inset
14764
14765  [
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770
14771 \emph on
14772 0
14773 \end_layout
14774
14775 \end_inset
14776
14777 ,
14778 \begin_inset space \thinspace{}
14779 \end_inset
14780
14781
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 1
14787 \end_layout
14788
14789 \end_inset
14790
14791 ] Whether fragile commands in this style should be 
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796
14797 \backslash
14798 protect
14799 \end_layout
14800
14801 \end_inset
14802
14803 'ed.
14804  (Note: This is 
14805 \emph on
14806 not
14807 \emph default
14808  whether this command should itself be protected.)
14809 \end_layout
14810
14811 \begin_layout Description
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 Newline
14817 \end_layout
14818
14819 \end_inset
14820
14821  [
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 0
14827 \end_layout
14828
14829 \end_inset
14830
14831 ,
14832 \begin_inset space \thinspace{}
14833 \end_inset
14834
14835
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840
14841 \emph on
14842 1
14843 \end_layout
14844
14845 \end_inset
14846
14847 ] Whether newlines are translated into \SpecialChar LaTeX
14848  newlines (
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853
14854 \backslash
14855
14856 \backslash
14857
14858 \end_layout
14859
14860 \end_inset
14861
14862 ) or not.
14863  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14864  editing
14865  inside \SpecialChar LyX
14866 .
14867 \end_layout
14868
14869 \begin_layout Description
14870 \begin_inset Flex Code
14871 status collapsed
14872
14873 \begin_layout Plain Layout
14874 NextNoIndent
14875 \end_layout
14876
14877 \end_inset
14878
14879  [
14880 \begin_inset Flex Code
14881 status collapsed
14882
14883 \begin_layout Plain Layout
14884
14885 \emph on
14886 0
14887 \end_layout
14888
14889 \end_inset
14890
14891 ,
14892 \begin_inset space \thinspace{}
14893 \end_inset
14894
14895
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 1
14901 \end_layout
14902
14903 \end_inset
14904
14905 ] If set to true, and if 
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 DefaultStyle
14911 \end_layout
14912
14913 \end_inset
14914
14915  (usually 
14916 \begin_inset Flex Code
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920 Standard
14921 \end_layout
14922
14923 \end_inset
14924
14925 ) paragraphs are being indented, then the indentation of such a paragraph
14926  following one of this type will be suppressed.
14927  (So this will not affect the display of non-default paragraphs.)
14928 \end_layout
14929
14930 \begin_layout Description
14931 \begin_inset Flex Code
14932 status collapsed
14933
14934 \begin_layout Plain Layout
14935 ObsoletedBy
14936 \end_layout
14937
14938 \end_inset
14939
14940  [
14941 \begin_inset Flex Code
14942 status collapsed
14943
14944 \begin_layout Plain Layout
14945 <name>
14946 \end_layout
14947
14948 \end_inset
14949
14950 ] Name of a style that has replaced this style.
14951  This is used to rename a style, while keeping backward compatibility.
14952 \end_layout
14953
14954 \begin_layout Description
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 ParagraphGroup
14960 \end_layout
14961
14962 \end_inset
14963
14964  [
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 0
14970 \end_layout
14971
14972 \end_inset
14973
14974 ,
14975 \begin_inset space \thinspace{}
14976 \end_inset
14977
14978
14979 \begin_inset Flex Code
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983 1
14984 \end_layout
14985
14986 \end_inset
14987
14988 ] Determines whether consecutive pragraphs of the same type are treated
14989  as belonging together.
14990  This has the effect that the 
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 GuiLabel
14996 \end_layout
14997
14998 \end_inset
14999
15000  is only printed once before such a group.
15001  By default, this is true for 
15002 \begin_inset Flex Code
15003 status collapsed
15004
15005 \begin_layout Plain Layout
15006 LaTeXType
15007 \end_layout
15008
15009 \end_inset
15010
15011  
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 Environment
15017 \end_layout
15018
15019 \end_inset
15020
15021  and 
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 Bib_Environment
15027 \end_layout
15028
15029 \end_inset
15030
15031  and false for all other types.
15032 \end_layout
15033
15034 \begin_layout Description
15035 \begin_inset Flex Code
15036 status collapsed
15037
15038 \begin_layout Plain Layout
15039 ParbreakIsNewline
15040 \end_layout
15041
15042 \end_inset
15043
15044  [
15045 \begin_inset Flex Code
15046 status collapsed
15047
15048 \begin_layout Plain Layout
15049
15050 \emph on
15051 0
15052 \end_layout
15053
15054 \end_inset
15055
15056 ,
15057 \begin_inset space \thinspace{}
15058 \end_inset
15059
15060
15061 \begin_inset Flex Code
15062 status collapsed
15063
15064 \begin_layout Plain Layout
15065 1
15066 \end_layout
15067
15068 \end_inset
15069
15070 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15071  output,
15072  but only by a line break; together with 
15073 \begin_inset Flex Code
15074 status collapsed
15075
15076 \begin_layout Plain Layout
15077 PassThru 1
15078 \end_layout
15079
15080 \end_inset
15081
15082 , this allows to emulate a plain text editor (like the ERT inset).
15083 \end_layout
15084
15085 \begin_layout Description
15086 \begin_inset Flex Code
15087 status collapsed
15088
15089 \begin_layout Plain Layout
15090 ParIndent
15091 \end_layout
15092
15093 \end_inset
15094
15095  [
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 string=""
15101 \end_layout
15102
15103 \end_inset
15104
15105 ] The indent of the very first line of a paragraph.
15106  The
15107 \begin_inset Newline newline
15108 \end_inset
15109
15110
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 Parindent
15116 \end_layout
15117
15118 \end_inset
15119
15120  will be fixed for a certain style.
15121  The exception is the default style, since the indentation for these paragraphs
15122  can be prohibited with 
15123 \begin_inset Flex Code
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127 NextNoIndent
15128 \end_layout
15129
15130 \end_inset
15131
15132 .
15133  Also, 
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138 Standard
15139 \end_layout
15140
15141 \end_inset
15142
15143  style paragraphs inside environments use the 
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 Parindent
15149 \end_layout
15150
15151 \end_inset
15152
15153  of the environment, not their native one.
15154  For example, 
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 Standard
15160 \end_layout
15161
15162 \end_inset
15163
15164  paragraphs inside an enumeration are not indented.
15165 \end_layout
15166
15167 \begin_layout Description
15168 \begin_inset Flex Code
15169 status collapsed
15170
15171 \begin_layout Plain Layout
15172 ParSep
15173 \end_layout
15174
15175 \end_inset
15176
15177  [
15178 \begin_inset Flex Code
15179 status collapsed
15180
15181 \begin_layout Plain Layout
15182 float=0
15183 \end_layout
15184
15185 \end_inset
15186
15187 ] The vertical space between two paragraphs of this style.
15188 \end_layout
15189
15190 \begin_layout Description
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 Parskip
15196 \end_layout
15197
15198 \end_inset
15199
15200  [
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 float=0
15206 \end_layout
15207
15208 \end_inset
15209
15210 ] \SpecialChar LyX
15211  allows the user to choose either 
15212 \begin_inset Quotes eld
15213 \end_inset
15214
15215 indent
15216 \begin_inset Quotes erd
15217 \end_inset
15218
15219  or 
15220 \begin_inset Quotes eld
15221 \end_inset
15222
15223 skip
15224 \begin_inset Quotes erd
15225 \end_inset
15226
15227  to separate paragraphs.
15228  When 
15229 \begin_inset Quotes eld
15230 \end_inset
15231
15232 indent
15233 \begin_inset Quotes erd
15234 \end_inset
15235
15236  is chosen, 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 Parskip
15242 \end_layout
15243
15244 \end_inset
15245
15246  is ignored.
15247  When 
15248 \begin_inset Quotes eld
15249 \end_inset
15250
15251 skip
15252 \begin_inset Quotes erd
15253 \end_inset
15254
15255  is chosen, 
15256 \begin_inset Flex Code
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 ParIndent
15261 \end_layout
15262
15263 \end_inset
15264
15265  is ignored and all paragraphs are separated by the 
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270 Parskip
15271 \end_layout
15272
15273 \end_inset
15274
15275  argument.
15276  The vertical space is calculated with 
15277 \begin_inset Flex Code
15278 status collapsed
15279
15280 \begin_layout Plain Layout
15281 Parskip
15282 \begin_inset space ~
15283 \end_inset
15284
15285 * DefaultHeight
15286 \end_layout
15287
15288 \end_inset
15289
15290  where 
15291 \begin_inset Flex Code
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295 DefaultHeight
15296 \end_layout
15297
15298 \end_inset
15299
15300  is the height of a row with the normal font.
15301  This way, the look stays the same with different screen fonts.
15302 \end_layout
15303
15304 \begin_layout Description
15305 \begin_inset Flex Code
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309 PassThru
15310 \end_layout
15311
15312 \end_inset
15313
15314  [
15315 \begin_inset Flex Code
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319
15320 \emph on
15321 0
15322 \end_layout
15323
15324 \end_inset
15325
15326 ,
15327 \begin_inset space \thinspace{}
15328 \end_inset
15329
15330
15331 \begin_inset Flex Code
15332 status collapsed
15333
15334 \begin_layout Plain Layout
15335 1
15336 \end_layout
15337
15338 \end_inset
15339
15340 ] Whether the contents of this paragraph should be output in raw form, meaning
15341  without special translations that \SpecialChar LaTeX
15342  would require.
15343 \end_layout
15344
15345 \begin_layout Description
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 PassThruChars
15351 \end_layout
15352
15353 \end_inset
15354
15355  [
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 string
15361 \end_layout
15362
15363 \end_inset
15364
15365 ]
15366 \family typewriter
15367  
15368 \family default
15369 Defines individual characters that should be output in raw form, meaning
15370  without special translations that \SpecialChar LaTeX
15371  would require.
15372 \end_layout
15373
15374 \begin_layout Description
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 Preamble
15380 \end_layout
15381
15382 \end_inset
15383
15384  Information to be included in the \SpecialChar LaTeX
15385  preamble when this style is used.
15386  Used to define macros, load packages, etc., required by this particular
15387  style.
15388  Must end with 
15389 \begin_inset Quotes eld
15390 \end_inset
15391
15392
15393 \begin_inset Flex Code
15394 status collapsed
15395
15396 \begin_layout Plain Layout
15397 EndPreamble
15398 \end_layout
15399
15400 \end_inset
15401
15402
15403 \begin_inset Quotes erd
15404 \end_inset
15405
15406 .
15407 \end_layout
15408
15409 \begin_layout Description
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 RefPrefix
15415 \end_layout
15416
15417 \end_inset
15418
15419  [
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424 string
15425 \end_layout
15426
15427 \end_inset
15428
15429 ] The prefix to use when creating labels referring to paragraphs of this
15430  type.
15431  This allows the use of formatted references.
15432 \end_layout
15433
15434 \begin_layout Description
15435 \begin_inset Flex Code
15436 status collapsed
15437
15438 \begin_layout Plain Layout
15439 Requires 
15440 \end_layout
15441
15442 \end_inset
15443
15444  [
15445 \begin_inset Flex Code
15446 status collapsed
15447
15448 \begin_layout Plain Layout
15449 string
15450 \end_layout
15451
15452 \end_inset
15453
15454 ] Whether the style requires the feature 
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 string
15460 \end_layout
15461
15462 \end_inset
15463
15464  (see 
15465 \begin_inset CommandInset ref
15466 LatexCommand ref
15467 reference "chap:List-of-functions"
15468
15469 \end_inset
15470
15471  for the list of features).
15472  If you require a package with specific options, you can additionally use
15473  
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 PackageOptions
15479 \end_layout
15480
15481 \end_inset
15482
15483  as a general text class parameter (see 
15484 \begin_inset CommandInset ref
15485 LatexCommand ref
15486 reference "subsec:General-text-class"
15487
15488 \end_inset
15489
15490 ).
15491 \end_layout
15492
15493 \begin_layout Description
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 ResetArgs
15499 \end_layout
15500
15501 \end_inset
15502
15503  [
15504 \begin_inset Flex Code
15505 status collapsed
15506
15507 \begin_layout Plain Layout
15508
15509 \emph on
15510 0
15511 \end_layout
15512
15513 \end_inset
15514
15515 ,
15516 \begin_inset Flex Code
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 1
15521 \end_layout
15522
15523 \end_inset
15524
15525 ] Resets the \SpecialChar LaTeX
15526  arguments of this style (as defined via the 
15527 \begin_inset Flex Code
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531 Argument
15532 \end_layout
15533
15534 \end_inset
15535
15536  tag).
15537  This is useful if you have copied a style via 
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 CopyStyle
15543 \end_layout
15544
15545 \end_inset
15546
15547 , but you do not want to inherit its (required and optional) arguments.
15548 \change_inserted 2089657418 1476488475
15549
15550 \end_layout
15551
15552 \begin_layout Description
15553
15554 \change_inserted 2089657418 1476488475
15555 \begin_inset Flex Code
15556 status collapsed
15557
15558 \begin_layout Plain Layout
15559
15560 \change_inserted 2089657418 1476488475
15561 ResumeCounter
15562 \end_layout
15563
15564 \end_inset
15565
15566  [
15567 \begin_inset Flex Code
15568 status collapsed
15569
15570 \begin_layout Plain Layout
15571
15572 \change_inserted 2089657418 1476488475
15573
15574 \emph on
15575 0
15576 \end_layout
15577
15578 \end_inset
15579
15580 ,
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585
15586 \change_inserted 2089657418 1476488475
15587 1
15588 \end_layout
15589
15590 \end_inset
15591
15592 ] Resumes a counter that is usually reset at each new sequence of layouts.
15593  This is currently only useful when 
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598
15599 \change_inserted 2089657418 1476488475
15600 LabelType
15601 \end_layout
15602
15603 \end_inset
15604
15605  is 
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610
15611 \change_inserted 2089657418 1476488475
15612 Enumerate
15613 \end_layout
15614
15615 \end_inset
15616
15617 .
15618 \change_unchanged
15619
15620 \end_layout
15621
15622 \begin_layout Description
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 RightDelim
15628 \end_layout
15629
15630 \end_inset
15631
15632  [
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637 string
15638 \end_layout
15639
15640 \end_inset
15641
15642 ] A string that is put at the end of the layout content.
15643  A line break in the output can be indicated by 
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648 <br/>
15649 \end_layout
15650
15651 \end_inset
15652
15653 .
15654 \end_layout
15655
15656 \begin_layout Description
15657 \begin_inset Flex Code
15658 status collapsed
15659
15660 \begin_layout Plain Layout
15661 RightMargin
15662 \end_layout
15663
15664 \end_inset
15665
15666  [
15667 \begin_inset Flex Code
15668 status collapsed
15669
15670 \begin_layout Plain Layout
15671 string=""
15672 \end_layout
15673
15674 \end_inset
15675
15676 ] Similar to 
15677 \begin_inset Flex Code
15678 status collapsed
15679
15680 \begin_layout Plain Layout
15681 LeftMargin
15682 \end_layout
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 Spacing
15695 \end_layout
15696
15697 \end_inset
15698
15699  [
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704
15705 \emph on
15706 single
15707 \end_layout
15708
15709 \end_inset
15710
15711
15712 \begin_inset Flex Code
15713 status collapsed
15714
15715 \begin_layout Plain Layout
15716 onehalf
15717 \end_layout
15718
15719 \end_inset
15720
15721
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 double
15727 \end_layout
15728
15729 \end_inset
15730
15731
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 other
15737 \begin_inset space ~
15738 \end_inset
15739
15740 <value>
15741 \end_layout
15742
15743 \end_inset
15744
15745 ] This defines what the default spacing should be in the style.
15746  The arguments 
15747 \begin_inset Flex Code
15748 status collapsed
15749
15750 \begin_layout Plain Layout
15751 single
15752 \end_layout
15753
15754 \end_inset
15755
15756
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 onehalf
15762 \end_layout
15763
15764 \end_inset
15765
15766  and 
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 double
15772 \end_layout
15773
15774 \end_inset
15775
15776  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15777  If you specify the argument 
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 other
15783 \end_layout
15784
15785 \end_inset
15786
15787 , then you must also provide a value argument which will be the actual multiplie
15788 r value.
15789  Note that, contrary to other parameters, 
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 Spacing
15795 \end_layout
15796
15797 \end_inset
15798
15799  implies the generation of specific \SpecialChar LaTeX
15800  code, using the \SpecialChar LaTeX
15801  package 
15802 \family roman
15803
15804 \begin_inset Flex Code
15805 status collapsed
15806
15807 \begin_layout Plain Layout
15808 setspace
15809 \end_layout
15810
15811 \end_inset
15812
15813 .
15814 \end_layout
15815
15816 \begin_layout Description
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821 Spellcheck
15822 \end_layout
15823
15824 \end_inset
15825
15826  [
15827 \begin_inset Flex Code
15828 status collapsed
15829
15830 \begin_layout Plain Layout
15831 0
15832 \end_layout
15833
15834 \end_inset
15835
15836 ,
15837 \begin_inset space \thinspace{}
15838 \end_inset
15839
15840
15841 \begin_inset Flex Code
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845
15846 \emph on
15847 1
15848 \end_layout
15849
15850 \end_inset
15851
15852 ] Allow spell-checking paragraphs of this style.
15853  Default is true.
15854 \change_inserted 2089657418 1476488264
15855
15856 \end_layout
15857
15858 \begin_layout Description
15859
15860 \change_inserted 2089657418 1476488264
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865
15866 \change_inserted 2089657418 1476488264
15867 StepMasterCounter
15868 \end_layout
15869
15870 \end_inset
15871
15872  [
15873 \begin_inset Flex Code
15874 status collapsed
15875
15876 \begin_layout Plain Layout
15877
15878 \change_inserted 2089657418 1476488264
15879
15880 \emph on
15881 0
15882 \end_layout
15883
15884 \end_inset
15885
15886 ,
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891
15892 \change_inserted 2089657418 1476488264
15893 1
15894 \end_layout
15895
15896 \end_inset
15897
15898 ] Steps the master counter of a given counter at the beginning of a new
15899  sequence of layouts.
15900  This is currently only useful when 
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905
15906 \change_inserted 2089657418 1476488264
15907 LabelType
15908 \end_layout
15909
15910 \end_inset
15911
15912  is 
15913 \begin_inset Flex Code
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917
15918 \change_inserted 2089657418 1476488264
15919 Enumerate
15920 \end_layout
15921
15922 \end_inset
15923
15924 .
15925 \change_unchanged
15926
15927 \end_layout
15928
15929 \begin_layout Description
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 TextFont
15935 \end_layout
15936
15937 \end_inset
15938
15939  The font used for the text body .
15940  See 
15941 \begin_inset CommandInset ref
15942 LatexCommand ref
15943 reference "subsec:Font-description"
15944
15945 \end_inset
15946
15947 .
15948 \end_layout
15949
15950 \begin_layout Description
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 TocLevel
15956 \end_layout
15957
15958 \end_inset
15959
15960
15961 \series medium
15962  [
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967
15968 \series medium
15969 int=3
15970 \end_layout
15971
15972 \end_inset
15973
15974 ]
15975 \series default
15976  The level of the style in the table of contents.
15977  This is used for automatic numbering of section headings.
15978 \end_layout
15979
15980 \begin_layout Description
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 ToggleIndent
15986 \end_layout
15987
15988 \end_inset
15989
15990  [
15991 \emph on
15992
15993 \begin_inset Flex Code
15994 status collapsed
15995
15996 \begin_layout Plain Layout
15997
15998 \emph on
15999 default
16000 \end_layout
16001
16002 \end_inset
16003
16004
16005 \emph default
16006
16007 \begin_inset Flex Code
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011 always
16012 \end_layout
16013
16014 \end_inset
16015
16016
16017 \begin_inset Flex Code
16018 status collapsed
16019
16020 \begin_layout Plain Layout
16021 never
16022 \end_layout
16023
16024 \end_inset
16025
16026 ] This tag determines whether the first line indentation of this paragraph
16027  can be toggled via the Paragraph settings dialog.
16028  If 
16029 \emph on
16030
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035
16036 \emph off
16037 default
16038 \end_layout
16039
16040 \end_inset
16041
16042
16043 \emph default
16044  is set, indentation can be toggled if the document settings use 
16045 \begin_inset Quotes eld
16046 \end_inset
16047
16048 indent
16049 \begin_inset Quotes erd
16050 \end_inset
16051
16052  paragraph style, with 
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 always
16058 \end_layout
16059
16060 \end_inset
16061
16062 , indentation can always be toggled, notwithstanding the document settings,
16063  with 
16064 \begin_inset Flex Code
16065 status collapsed
16066
16067 \begin_layout Plain Layout
16068 never
16069 \end_layout
16070
16071 \end_inset
16072
16073 , indentation can never be toggled.
16074 \end_layout
16075
16076 \begin_layout Description
16077 \begin_inset Flex Code
16078 status collapsed
16079
16080 \begin_layout Plain Layout
16081 TopSep
16082 \end_layout
16083
16084 \end_inset
16085
16086  [
16087 \begin_inset Flex Code
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091 float=0
16092 \end_layout
16093
16094 \end_inset
16095
16096 ] The vertical space with which the very first of a chain of paragraphs
16097  with this style is separated from the previous paragraph.
16098  If the previous paragraph has another style, the separations are not simply
16099  added, but the maximum is taken.
16100 \end_layout
16101
16102 \begin_layout Subsection
16103 \begin_inset CommandInset label
16104 LatexCommand label
16105 name "subsec:I18n"
16106
16107 \end_inset
16108
16109 Internationalization of Paragraph Styles
16110 \end_layout
16111
16112 \begin_layout Standard
16113 \SpecialChar LyX
16114  has long supported internationalization of layout information, but, until
16115  version 2.0, this applied only to the user interface and not to, say, PDF
16116  output.
16117  Thus, French authors were forced to resort to ugly hacks if they wanted
16118  `
16119 \lang french
16120 Théorème
16121 \lang english
16122  1' instead of `Theorem 1'.
16123  Thanks to Georg Baum, that is no longer the case.
16124 \end_layout
16125
16126 \begin_layout Standard
16127 If a 
16128 \begin_inset Flex Code
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132 Style
16133 \end_layout
16134
16135 \end_inset
16136
16137  defines text that is to appear in the typeset document, it may use 
16138 \begin_inset Flex Code
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142 LangPreamble
16143 \end_layout
16144
16145 \end_inset
16146
16147  and 
16148 \begin_inset Flex Code
16149 status collapsed
16150
16151 \begin_layout Plain Layout
16152 BabelPreamble
16153 \end_layout
16154
16155 \end_inset
16156
16157  to support non-English and even multi-language documents correctly.
16158  The following excerpt (from the 
16159 \begin_inset Flex Code
16160 status collapsed
16161
16162 \begin_layout Plain Layout
16163 theorems-ams.inc
16164 \end_layout
16165
16166 \end_inset
16167
16168  file) shows how this works:
16169 \end_layout
16170
16171 \begin_layout LyX-Code
16172 Preamble
16173 \end_layout
16174
16175 \begin_deeper
16176 \begin_layout LyX-Code
16177   
16178 \backslash
16179 theoremstyle{remark}
16180 \end_layout
16181
16182 \begin_layout LyX-Code
16183   
16184 \backslash
16185 newtheorem{claim}[thm]{
16186 \backslash
16187 protect
16188 \backslash
16189 claimname}
16190 \end_layout
16191
16192 \begin_layout LyX-Code
16193 EndPreamble
16194 \end_layout
16195
16196 \begin_layout LyX-Code
16197 LangPreamble
16198 \end_layout
16199
16200 \begin_layout LyX-Code
16201   
16202 \backslash
16203 providecommand{
16204 \backslash
16205 claimname}{_(Claim)}
16206 \end_layout
16207
16208 \begin_layout LyX-Code
16209 EndLangPreamble
16210 \end_layout
16211
16212 \begin_layout LyX-Code
16213 BabelPreamble
16214 \end_layout
16215
16216 \begin_layout LyX-Code
16217     
16218 \backslash
16219 addto
16220 \backslash
16221 captions$$lang{
16222 \backslash
16223 renewcommand{
16224 \backslash
16225 claimname}{_(Claim)}}
16226 \end_layout
16227
16228 \begin_layout LyX-Code
16229 EndBabelPreamble
16230 \end_layout
16231
16232 \end_deeper
16233 \begin_layout Standard
16234 In principle, any legal \SpecialChar LaTeX
16235  may appear in the 
16236 \begin_inset Flex Code
16237 status collapsed
16238
16239 \begin_layout Plain Layout
16240 LangPreamble
16241 \end_layout
16242
16243 \end_inset
16244
16245  and 
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 BabelPreamble
16251 \end_layout
16252
16253 \end_inset
16254
16255  tags, but in practice they will typically look as they do here.
16256  The key to correct translation of the typeset text is the definition of
16257  the \SpecialChar LaTeX
16258  command 
16259 \begin_inset Flex Code
16260 status collapsed
16261
16262 \begin_layout Plain Layout
16263
16264 \backslash
16265 claimname
16266 \end_layout
16267
16268 \end_inset
16269
16270  and its use in 
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275
16276 \backslash
16277 newtheorem
16278 \end_layout
16279
16280 \end_inset
16281
16282 .
16283  
16284 \end_layout
16285
16286 \begin_layout Standard
16287 The 
16288 \begin_inset Flex Code
16289 status collapsed
16290
16291 \begin_layout Plain Layout
16292 LangPreamble
16293 \end_layout
16294
16295 \end_inset
16296
16297  tag provides for internationalization based upon the overall language of
16298  the document.
16299  The contents of the tag will be included in the preamble, just as with
16300  the 
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305 Preamble
16306 \end_layout
16307
16308 \end_inset
16309
16310  tag.
16311  What makes it special is the use of the 
16312 \begin_inset Quotes eld
16313 \end_inset
16314
16315 function
16316 \begin_inset Quotes erd
16317 \end_inset
16318
16319  
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 _()
16325 \end_layout
16326
16327 \end_inset
16328
16329 , which will be replaced, when \SpecialChar LyX
16330  produces \SpecialChar LaTeX
16331  output, with the translation of
16332  its argument into the document language.
16333 \end_layout
16334
16335 \begin_layout Standard
16336 The 
16337 \begin_inset Flex Code
16338 status collapsed
16339
16340 \begin_layout Plain Layout
16341 BabelPreamble
16342 \end_layout
16343
16344 \end_inset
16345
16346  tag is more complex, since it is meant to provide support for multi-language
16347  documents and so offers an interface to the 
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 babel
16353 \end_layout
16354
16355 \end_inset
16356
16357  package.
16358  Its contents will be added to the preamble once for each language that
16359  appears in the document.
16360  In this case, the argument to 
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 _()
16366 \end_layout
16367
16368 \end_inset
16369
16370  will be replaced with its translation into the language in question; the
16371  expression 
16372 \begin_inset Flex Code
16373 status collapsed
16374
16375 \begin_layout Plain Layout
16376 $$lang
16377 \end_layout
16378
16379 \end_inset
16380
16381  is replaced by the language name (as used by the babel package).
16382 \end_layout
16383
16384 \begin_layout Standard
16385 A German document that also included a French section would thus have the
16386  following in the preamble:
16387 \end_layout
16388
16389 \begin_layout LyX-Code
16390
16391 \backslash
16392 addto
16393 \backslash
16394 captionsfrench{
16395 \backslash
16396 renewcommand{
16397 \backslash
16398 claimname}{Affirmation}}
16399 \begin_inset Newline newline
16400 \end_inset
16401
16402
16403 \backslash
16404 addto
16405 \backslash
16406 captionsngerman{
16407 \backslash
16408 renewcommand{
16409 \backslash
16410 claimname}{Behauptung}}
16411 \begin_inset Newline newline
16412 \end_inset
16413
16414
16415 \backslash
16416 providecommand{
16417 \backslash
16418 claimname}{Behauptung}
16419 \end_layout
16420
16421 \begin_layout Standard
16422 \SpecialChar LaTeX
16423  and 
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 babel
16429 \end_layout
16430
16431 \end_inset
16432
16433  will then conspire to produce the correct text in the output.
16434 \end_layout
16435
16436 \begin_layout Standard
16437 One important point to note here is that the translations are provided by
16438  \SpecialChar LyX
16439  itself, through the file 
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444 layouttranslations
16445 \end_layout
16446
16447 \end_inset
16448
16449 .
16450  This means, in effect, that 
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455 LangPreamble
16456 \end_layout
16457
16458 \end_inset
16459
16460  and 
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465 BabelPreamble
16466 \end_layout
16467
16468 \end_inset
16469
16470  are really only of use in layout files that are provided with \SpecialChar LyX
16471 , since text
16472  entered in user-created layout files will not be seen by \SpecialChar LyX
16473 's internationalizatio
16474 n routines unless the 
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 layouttranslations
16480 \end_layout
16481
16482 \end_inset
16483
16484  file is modified accordingly.
16485  That said, however, any layout created with the intention that it will
16486  be included with \SpecialChar LyX
16487  should use these tags where appropriate.
16488  Please note that the paragraph style translations provided by \SpecialChar LyX
16489  will never
16490  change with a minor update (e.
16491 \begin_inset space \thinspace{}
16492 \end_inset
16493
16494 g.
16495 \begin_inset space \space{}
16496 \end_inset
16497
16498 from version 2.1.x to 2.1.y).
16499  It is however quite likely that a major update (e.
16500 \begin_inset space \thinspace{}
16501 \end_inset
16502
16503 g.
16504 \begin_inset space \space{}
16505 \end_inset
16506
16507 from 2.0.x to 2.1.y) will introduce new translations or corrections.
16508 \end_layout
16509
16510 \begin_layout Subsection
16511 Floats
16512 \begin_inset CommandInset label
16513 LatexCommand label
16514 name "subsec:Floats"
16515
16516 \end_inset
16517
16518
16519 \end_layout
16520
16521 \begin_layout Standard
16522 It is necessary to define the floats (
16523 \begin_inset Flex Noun
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527 figure
16528 \end_layout
16529
16530 \end_inset
16531
16532
16533 \begin_inset Flex Noun
16534 status collapsed
16535
16536 \begin_layout Plain Layout
16537 table
16538 \end_layout
16539
16540 \end_inset
16541
16542 , \SpecialChar ldots
16543 ) in the text class itself.
16544  Standard floats are included in the file 
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 stdfloats.inc
16550 \end_layout
16551
16552 \end_inset
16553
16554 , so you may have to do no more than add
16555 \end_layout
16556
16557 \begin_layout LyX-Code
16558 Input stdfloats.inc
16559 \end_layout
16560
16561 \begin_layout Standard
16562 to your layout file.
16563  If you want to implement a text class that proposes some other float types
16564  (like the AGU class bundled with \SpecialChar LyX
16565 ), the information below will hopefully
16566  help you:
16567 \end_layout
16568
16569 \begin_layout Description
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574 AllowedPlacement
16575 \end_layout
16576
16577 \end_inset
16578
16579  [
16580 \begin_inset Flex Code
16581 status collapsed
16582
16583 \begin_layout Plain Layout
16584 string
16585 \end_layout
16586
16587 \end_inset
16588
16589 =!htbpH] Allowed placement options for this float type.
16590  The value is a string of placement characters.
16591  Possible characters include: 
16592 \emph on
16593 h
16594 \emph default
16595  (
16596 \begin_inset Quotes eld
16597 \end_inset
16598
16599 here if possible
16600 \begin_inset Quotes erd
16601 \end_inset
16602
16603 ), 
16604 \emph on
16605 t
16606 \emph default
16607  (
16608 \begin_inset Quotes eld
16609 \end_inset
16610
16611 top of page
16612 \begin_inset Quotes erd
16613 \end_inset
16614
16615 ), 
16616 \emph on
16617 b
16618 \emph default
16619  (
16620 \begin_inset Quotes eld
16621 \end_inset
16622
16623 bottom of page
16624 \begin_inset Quotes erd
16625 \end_inset
16626
16627 ), 
16628 \emph on
16629 p
16630 \emph default
16631  (
16632 \begin_inset Quotes eld
16633 \end_inset
16634
16635 page of floats
16636 \begin_inset Quotes erd
16637 \end_inset
16638
16639 ), 
16640 \emph on
16641 H
16642 \emph default
16643  (
16644 \begin_inset Quotes eld
16645 \end_inset
16646
16647 here definitely
16648 \begin_inset Quotes erd
16649 \end_inset
16650
16651 ) and 
16652 \emph on
16653 !
16654 \emph default
16655  (
16656 \begin_inset Quotes eld
16657 \end_inset
16658
16659 ignore LaTeX rules
16660 \begin_inset Quotes erd
16661 \end_inset
16662
16663 ).
16664  The order of the characters in the string does not matter.
16665  If no placement options are allowed, use the string 
16666 \emph on
16667 none
16668 \emph default
16669 .
16670 \end_layout
16671
16672 \begin_layout Description
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 AllowsSideways
16678 \end_layout
16679
16680 \end_inset
16681
16682  [
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687
16688 \emph off
16689 0
16690 \end_layout
16691
16692 \end_inset
16693
16694 ,
16695 \begin_inset space \thinspace{}
16696 \end_inset
16697
16698
16699 \emph on
16700
16701 \begin_inset Flex Code
16702 status collapsed
16703
16704 \begin_layout Plain Layout
16705
16706 \emph on
16707 1
16708 \end_layout
16709
16710 \end_inset
16711
16712
16713 \emph default
16714 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16715 -package 
16716 \family typewriter
16717 rotfloat
16718 \family default
16719  (sidewaysfloat).
16720  Set to 
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 0
16726 \end_layout
16727
16728 \end_inset
16729
16730  if the float does not support this feature.
16731 \end_layout
16732
16733 \begin_layout Description
16734 \begin_inset Flex Code
16735 status collapsed
16736
16737 \begin_layout Plain Layout
16738 AllowsWide
16739 \end_layout
16740
16741 \end_inset
16742
16743  [
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748
16749 \emph off
16750 0
16751 \end_layout
16752
16753 \end_inset
16754
16755 ,
16756 \begin_inset space \thinspace{}
16757 \end_inset
16758
16759
16760 \emph on
16761
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766
16767 \emph on
16768 1
16769 \end_layout
16770
16771 \end_inset
16772
16773
16774 \emph default
16775 ] Defines whether the float has a starred variant that spans columns in
16776  a two column paragraph.
16777  Set to 
16778 \begin_inset Flex Code
16779 status collapsed
16780
16781 \begin_layout Plain Layout
16782 0
16783 \end_layout
16784
16785 \end_inset
16786
16787  if the float does not support this feature.
16788 \end_layout
16789
16790 \begin_layout Description
16791 \begin_inset Flex Code
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795 Extension
16796 \end_layout
16797
16798 \end_inset
16799
16800  [
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 string
16806 \end_layout
16807
16808 \end_inset
16809
16810 =
16811 \begin_inset Quotes erd
16812 \end_inset
16813
16814
16815 \begin_inset Quotes erd
16816 \end_inset
16817
16818 ] The file name extension of an auxiliary file for the list of figures (or
16819  whatever).
16820  \SpecialChar LaTeX
16821  writes the captions to this file.
16822 \end_layout
16823
16824 \begin_layout Description
16825 \begin_inset Flex Code
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 GuiName
16830 \end_layout
16831
16832 \end_inset
16833
16834  [
16835 \begin_inset Flex Code
16836 status collapsed
16837
16838 \begin_layout Plain Layout
16839 string
16840 \end_layout
16841
16842 \end_inset
16843
16844 =
16845 \begin_inset Quotes erd
16846 \end_inset
16847
16848
16849 \begin_inset Quotes erd
16850 \end_inset
16851
16852 ] The string that will be used in the menus and also for the caption.
16853  This is translated to the current language if babel is used.
16854 \end_layout
16855
16856 \begin_layout Description
16857 \begin_inset Flex Code
16858 status collapsed
16859
16860 \begin_layout Plain Layout
16861 HTML*
16862 \end_layout
16863
16864 \end_inset
16865
16866  These tags control the XHTML output.
16867  See 
16868 \begin_inset CommandInset ref
16869 LatexCommand ref
16870 reference "sec:Tags-for-XHTML"
16871
16872 \end_inset
16873
16874 .
16875 \end_layout
16876
16877 \begin_layout Description
16878 \begin_inset Flex Code
16879 status collapsed
16880
16881 \begin_layout Plain Layout
16882 IsPredefined
16883 \end_layout
16884
16885 \end_inset
16886
16887  [
16888 \emph on
16889
16890 \begin_inset Flex Code
16891 status collapsed
16892
16893 \begin_layout Plain Layout
16894 0
16895 \end_layout
16896
16897 \end_inset
16898
16899
16900 \emph default
16901 ,
16902 \begin_inset space \thinspace{}
16903 \end_inset
16904
16905
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 1
16911 \end_layout
16912
16913 \end_inset
16914
16915 ] Indicates whether the float is already defined in the document class or
16916  if instead the \SpecialChar LaTeX
16917  package 
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922 float
16923 \end_layout
16924
16925 \end_inset
16926
16927  needs to be loaded to define it on-the-fly.
16928  The default is 
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 0
16934 \end_layout
16935
16936 \end_inset
16937
16938 , which means: 
16939 \begin_inset Flex Code
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943 float
16944 \end_layout
16945
16946 \end_inset
16947
16948  is used.
16949  It should be set to 
16950 \begin_inset Flex Code
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 1
16955 \end_layout
16956
16957 \end_inset
16958
16959  if the float is already defined by the \SpecialChar LaTeX
16960  document class.
16961 \end_layout
16962
16963 \begin_layout Description
16964 \begin_inset Flex Code
16965 status collapsed
16966
16967 \begin_layout Plain Layout
16968 ListCommand
16969 \end_layout
16970
16971 \end_inset
16972
16973  [
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978 string
16979 \end_layout
16980
16981 \end_inset
16982
16983 =
16984 \begin_inset Quotes erd
16985 \end_inset
16986
16987
16988 \begin_inset Quotes erd
16989 \end_inset
16990
16991 ] The command used to generate a list of floats of this type; the leading
16992  `
16993 \backslash
16994 ' must be omitted.
16995  This 
16996 \emph on
16997 must
16998 \emph default
16999  be given if 
17000 \begin_inset Flex Code
17001 status collapsed
17002
17003 \begin_layout Plain Layout
17004 UsesFloatPkg
17005 \end_layout
17006
17007 \end_inset
17008
17009  is false, since there is no standard way to generate this command.
17010  It is ignored if 
17011 \begin_inset Flex Code
17012 status collapsed
17013
17014 \begin_layout Plain Layout
17015 UsesFloatPkg
17016 \end_layout
17017
17018 \end_inset
17019
17020  is true, since in that case there is a standard way to define the command.
17021 \end_layout
17022
17023 \begin_layout Description
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 ListName
17029 \end_layout
17030
17031 \end_inset
17032
17033  [
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 string
17039 \end_layout
17040
17041 \end_inset
17042
17043 =
17044 \begin_inset Quotes erd
17045 \end_inset
17046
17047
17048 \begin_inset Quotes erd
17049 \end_inset
17050
17051 ] A title for a list of floats of this kind (list of figures, tables, or
17052  whatever).
17053  It is used for the screen label within \SpecialChar LyX
17054 , it is used by \SpecialChar LaTeX
17055  for the title and
17056  it is used as the title in the XHTML output.
17057  It will be translated to the document language.
17058 \end_layout
17059
17060 \begin_layout Description
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 NumberWithin
17066 \end_layout
17067
17068 \end_inset
17069
17070  [
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 string
17076 \end_layout
17077
17078 \end_inset
17079
17080 =
17081 \begin_inset Quotes erd
17082 \end_inset
17083
17084
17085 \begin_inset Quotes erd
17086 \end_inset
17087
17088 ] This (optional) argument determines whether floats of this class will
17089  be numbered within some sectional unit of the document.
17090  For example, if 
17091 \begin_inset Flex Code
17092 status collapsed
17093
17094 \begin_layout Plain Layout
17095 NumberWithin
17096 \end_layout
17097
17098 \end_inset
17099
17100  is set to 
17101 \begin_inset Quotes eld
17102 \end_inset
17103
17104
17105 \begin_inset Flex Code
17106 status collapsed
17107
17108 \begin_layout Plain Layout
17109 chapter
17110 \end_layout
17111
17112 \end_inset
17113
17114
17115 \begin_inset Quotes erd
17116 \end_inset
17117
17118 , the floats will be numbered within chapters.
17119  
17120 \end_layout
17121
17122 \begin_layout Description
17123 \begin_inset Flex Code
17124 status collapsed
17125
17126 \begin_layout Plain Layout
17127 Placement
17128 \end_layout
17129
17130 \end_inset
17131
17132  [
17133 \begin_inset Flex Code
17134 status collapsed
17135
17136 \begin_layout Plain Layout
17137 string
17138 \end_layout
17139
17140 \end_inset
17141
17142 =
17143 \begin_inset Quotes erd
17144 \end_inset
17145
17146
17147 \begin_inset Quotes erd
17148 \end_inset
17149
17150 ] The default placement for the given class of floats.
17151  The string should be as in standard \SpecialChar LaTeX
17152
17153 \begin_inset Flex Code
17154 status collapsed
17155
17156 \begin_layout Plain Layout
17157 t
17158 \end_layout
17159
17160 \end_inset
17161
17162
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167 b
17168 \end_layout
17169
17170 \end_inset
17171
17172
17173 \begin_inset Flex Code
17174 status collapsed
17175
17176 \begin_layout Plain Layout
17177 p
17178 \end_layout
17179
17180 \end_inset
17181
17182  and 
17183 \begin_inset Flex Code
17184 status collapsed
17185
17186 \begin_layout Plain Layout
17187 h
17188 \end_layout
17189
17190 \end_inset
17191
17192  for top, bottom, page, and here, respectively.
17193 \begin_inset Foot
17194 status collapsed
17195
17196 \begin_layout Plain Layout
17197 Note that the order of these letters in the string is irrelevant, like in
17198  \SpecialChar LaTeX
17199 .
17200 \end_layout
17201
17202 \end_inset
17203
17204  On top of that there is a new type, 
17205 \begin_inset Flex Code
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209 H
17210 \end_layout
17211
17212 \end_inset
17213
17214 , which does not really correspond to a float, since it means: put it 
17215 \begin_inset Quotes eld
17216 \end_inset
17217
17218 here
17219 \begin_inset Quotes erd
17220 \end_inset
17221
17222  and nowhere else.
17223  Note however that the 
17224 \begin_inset Flex Code
17225 status collapsed
17226
17227 \begin_layout Plain Layout
17228 H
17229 \end_layout
17230
17231 \end_inset
17232
17233  specifier is special and, because of implementation details, cannot be
17234  used in non-built in float types.
17235  If you do not understand what this means, just use 
17236 \begin_inset Quotes eld
17237 \end_inset
17238
17239
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 tbp
17245 \end_layout
17246
17247 \end_inset
17248
17249
17250 \begin_inset Quotes erd
17251 \end_inset
17252
17253 .
17254 \end_layout
17255
17256 \begin_layout Description
17257 \begin_inset Flex Code
17258 status collapsed
17259
17260 \begin_layout Plain Layout
17261 RefPrefix
17262 \end_layout
17263
17264 \end_inset
17265
17266  [
17267 \begin_inset Flex Code
17268 status collapsed
17269
17270 \begin_layout Plain Layout
17271 string
17272 \end_layout
17273
17274 \end_inset
17275
17276 ] The prefix to use when creating labels referring to floats of this type.
17277  This allows the use of formatted references.
17278  Note that you can remove any 
17279 \begin_inset Flex Code
17280 status collapsed
17281
17282 \begin_layout Plain Layout
17283 RefPrefix
17284 \end_layout
17285
17286 \end_inset
17287
17288  set by a copied style by using the special value 
17289 \begin_inset Quotes eld
17290 \end_inset
17291
17292 OFF
17293 \begin_inset Quotes erd
17294 \end_inset
17295
17296 , which must be all caps.
17297 \end_layout
17298
17299 \begin_layout Description
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 Style
17305 \end_layout
17306
17307 \end_inset
17308
17309  [
17310 \begin_inset Flex Code
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 string
17315 \end_layout
17316
17317 \end_inset
17318
17319 =
17320 \begin_inset Quotes erd
17321 \end_inset
17322
17323
17324 \begin_inset Quotes erd
17325 \end_inset
17326
17327 ] The style used when defining the float using 
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332
17333 \backslash
17334 newfloat
17335 \end_layout
17336
17337 \end_inset
17338
17339 .
17340 \end_layout
17341
17342 \begin_layout Description
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347 Type
17348 \end_layout
17349
17350 \end_inset
17351
17352  [
17353 \begin_inset Flex Code
17354 status collapsed
17355
17356 \begin_layout Plain Layout
17357 string
17358 \end_layout
17359
17360 \end_inset
17361
17362 =
17363 \begin_inset Quotes erd
17364 \end_inset
17365
17366
17367 \begin_inset Quotes erd
17368 \end_inset
17369
17370 ] The 
17371 \begin_inset Quotes eld
17372 \end_inset
17373
17374 type
17375 \begin_inset Quotes erd
17376 \end_inset
17377
17378  of the new class of floats, like program or algorithm.
17379  After the appropriate 
17380 \begin_inset Flex Code
17381 status collapsed
17382
17383 \begin_layout Plain Layout
17384
17385 \backslash
17386 newfloat
17387 \end_layout
17388
17389 \end_inset
17390
17391 , commands such as 
17392 \begin_inset Flex Code
17393 status collapsed
17394
17395 \begin_layout Plain Layout
17396
17397 \backslash
17398 begin{program}
17399 \end_layout
17400
17401 \end_inset
17402
17403  or 
17404 \begin_inset Flex Code
17405 status collapsed
17406
17407 \begin_layout Plain Layout
17408
17409 \backslash
17410 end{algorithm*}
17411 \end_layout
17412
17413 \end_inset
17414
17415  will be available.
17416 \end_layout
17417
17418 \begin_layout Description
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423 UsesFloatPkg
17424 \end_layout
17425
17426 \end_inset
17427
17428  [
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 0
17434 \end_layout
17435
17436 \end_inset
17437
17438 ,
17439 \begin_inset space \thinspace{}
17440 \end_inset
17441
17442
17443 \begin_inset Flex Code
17444 status collapsed
17445
17446 \begin_layout Plain Layout
17447
17448 \emph on
17449 1
17450 \end_layout
17451
17452 \end_inset
17453
17454 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17455  package 
17456 \begin_inset Flex Code
17457 status collapsed
17458
17459 \begin_layout Plain Layout
17460 float
17461 \end_layout
17462
17463 \end_inset
17464
17465 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17466  itself.
17467 \end_layout
17468
17469 \begin_layout Standard
17470 Note that defining a float with type 
17471 \begin_inset Flex Code
17472 status collapsed
17473
17474 \begin_layout Plain Layout
17475
17476 \emph on
17477 type
17478 \end_layout
17479
17480 \end_inset
17481
17482  automatically defines the corresponding counter with name 
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487
17488 \emph on
17489 type
17490 \end_layout
17491
17492 \end_inset
17493
17494 .
17495 \end_layout
17496
17497 \begin_layout Subsection
17498 Flex insets and InsetLayout
17499 \begin_inset CommandInset label
17500 LatexCommand label
17501 name "subsec:Flex-insets-and"
17502
17503 \end_inset
17504
17505
17506 \end_layout
17507
17508 \begin_layout Standard
17509 Flex insets come in three different kinds: 
17510 \end_layout
17511
17512 \begin_layout Itemize
17513 character style (
17514 \begin_inset Flex Code
17515 status collapsed
17516
17517 \begin_layout Plain Layout
17518 CharStyle
17519 \end_layout
17520
17521 \end_inset
17522
17523 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17524  commands as 
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529
17530 \backslash
17531 noun
17532 \end_layout
17533
17534 \end_inset
17535
17536  and 
17537 \begin_inset Flex Code
17538 status collapsed
17539
17540 \begin_layout Plain Layout
17541
17542 \backslash
17543 code
17544 \end_layout
17545
17546 \end_inset
17547
17548 .
17549 \end_layout
17550
17551 \begin_layout Itemize
17552 user custom (
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 Custom
17558 \end_layout
17559
17560 \end_inset
17561
17562 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17563  code,
17564  footnote, and the like.
17565  An obvious example is an endnote inset, which is defined in the 
17566 \begin_inset Flex Code
17567 status collapsed
17568
17569 \begin_layout Plain Layout
17570 endnote
17571 \end_layout
17572
17573 \end_inset
17574
17575  module.
17576 \end_layout
17577
17578 \begin_layout Itemize
17579 XML elements (
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 Element
17585 \end_layout
17586
17587 \end_inset
17588
17589 ): For use with DocBook classes.
17590 \end_layout
17591
17592 \begin_layout Standard
17593 Flex insets are defined using the 
17594 \begin_inset Flex Code
17595 status collapsed
17596
17597 \begin_layout Plain Layout
17598 InsetLayout
17599 \end_layout
17600
17601 \end_inset
17602
17603  tag, which shall be explained in a moment.
17604 \end_layout
17605
17606 \begin_layout Standard
17607 The 
17608 \begin_inset Flex Code
17609 status collapsed
17610
17611 \begin_layout Plain Layout
17612 InsetLayout
17613 \end_layout
17614
17615 \end_inset
17616
17617  tag also serves another function: It can be used to customize the general
17618  layout of many different types of insets.
17619  Currently, 
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 InsetLayout
17625 \end_layout
17626
17627 \end_inset
17628
17629  can be used to customize the layout parameters for footnotes, marginal
17630  notes, note insets, \SpecialChar TeX
17631  code (ERT) insets, branches, listings, indexes, boxes,
17632  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17633 \end_layout
17634
17635 \begin_layout Standard
17636 The 
17637 \begin_inset Flex Code
17638 status collapsed
17639
17640 \begin_layout Plain Layout
17641 InsetLayout
17642 \end_layout
17643
17644 \end_inset
17645
17646  definition must begin with a line of the form:
17647 \end_layout
17648
17649 \begin_layout LyX-Code
17650 InsetLayout <type>
17651 \end_layout
17652
17653 \begin_layout Standard
17654 Here 
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 <Type>
17660 \end_layout
17661
17662 \end_inset
17663
17664  indicates the inset whose layout is being defined, and here there are four
17665  cases.
17666 \end_layout
17667
17668 \begin_layout Enumerate
17669 The layout for a pre-existing inset is being modified.
17670  In this case, can be 
17671 \begin_inset Flex Code
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 <Type>
17676 \end_layout
17677
17678 \end_inset
17679
17680  any one of the following: 
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 Algorithm
17686 \end_layout
17687
17688 \end_inset
17689
17690
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 Branch
17696 \end_layout
17697
17698 \end_inset
17699
17700
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705 Box
17706 \end_layout
17707
17708 \end_inset
17709
17710
17711 \begin_inset Flex Code
17712 status collapsed
17713
17714 \begin_layout Plain Layout
17715 Box:shaded
17716 \end_layout
17717
17718 \end_inset
17719
17720
17721 \begin_inset Flex Code
17722 status collapsed
17723
17724 \begin_layout Plain Layout
17725 Caption:Standard
17726 \end_layout
17727
17728 \end_inset
17729
17730
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 ERT
17736 \end_layout
17737
17738 \end_inset
17739
17740
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 Figure
17746 \end_layout
17747
17748 \end_inset
17749
17750
17751 \begin_inset Flex Code
17752 status collapsed
17753
17754 \begin_layout Plain Layout
17755 Foot
17756 \end_layout
17757
17758 \end_inset
17759
17760
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 Index
17766 \end_layout
17767
17768 \end_inset
17769
17770
17771 \begin_inset Flex Code
17772 status collapsed
17773
17774 \begin_layout Plain Layout
17775 Info
17776 \end_layout
17777
17778 \end_inset
17779
17780
17781 \begin_inset Flex Code
17782 status collapsed
17783
17784 \begin_layout Plain Layout
17785 Info:menu
17786 \end_layout
17787
17788 \end_inset
17789
17790
17791 \begin_inset Flex Code
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795 Info:shortcut
17796 \end_layout
17797
17798 \end_inset
17799
17800
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 Info:shortcuts
17806 \end_layout
17807
17808 \end_inset
17809
17810
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 Listings
17816 \end_layout
17817
17818 \end_inset
17819
17820
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 Marginal
17826 \end_layout
17827
17828 \end_inset
17829
17830
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 Note:Comment
17836 \end_layout
17837
17838 \end_inset
17839
17840
17841 \begin_inset Flex Code
17842 status collapsed
17843
17844 \begin_layout Plain Layout
17845 Note:Note
17846 \end_layout
17847
17848 \end_inset
17849
17850
17851 \begin_inset Flex Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855 Note:Greyedout
17856 \end_layout
17857
17858 \end_inset
17859
17860
17861 \begin_inset Flex Code
17862 status collapsed
17863
17864 \begin_layout Plain Layout
17865 Table
17866 \end_layout
17867
17868 \end_inset
17869
17870 , or 
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875 URL
17876 \end_layout
17877
17878 \end_inset
17879
17880 .
17881 \end_layout
17882
17883 \begin_layout Enumerate
17884 The layout for a Flex inset is being defined.
17885  In this case, 
17886 \begin_inset Flex Code
17887 status collapsed
17888
17889 \begin_layout Plain Layout
17890 <Type>
17891 \end_layout
17892
17893 \end_inset
17894
17895  must be of the form 
17896 \begin_inset Quotes eld
17897 \end_inset
17898
17899
17900 \begin_inset Flex Code
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904 Flex:<name>
17905 \end_layout
17906
17907 \end_inset
17908
17909
17910 \begin_inset Quotes erd
17911 \end_inset
17912
17913 , where 
17914 \begin_inset Flex Code
17915 status collapsed
17916
17917 \begin_layout Plain Layout
17918 name
17919 \end_layout
17920
17921 \end_inset
17922
17923  may be be any valid identifier not used by a pre-existing Flex inset.
17924  The identifier may include spaces, but in that case the whole thing must
17925  be wrapped in quotes.
17926  Note that the definition of a flex inset 
17927 \emph on
17928 must 
17929 \emph default
17930 also include a 
17931 \begin_inset Flex Code
17932 status collapsed
17933
17934 \begin_layout Plain Layout
17935 LyXType
17936 \end_layout
17937
17938 \end_inset
17939
17940  entry, declaring which type of inset it defines.
17941 \end_layout
17942
17943 \begin_layout Enumerate
17944 The layout for user specific branch is being defined.
17945  In this case, 
17946 \begin_inset Flex Code
17947 status collapsed
17948
17949 \begin_layout Plain Layout
17950 <Type>
17951 \end_layout
17952
17953 \end_inset
17954
17955  must be of the form 
17956 \begin_inset Quotes eld
17957 \end_inset
17958
17959
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 Branch:<name>
17965 \end_layout
17966
17967 \end_inset
17968
17969
17970 \begin_inset Quotes erd
17971 \end_inset
17972
17973 , where 
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 name
17979 \end_layout
17980
17981 \end_inset
17982
17983  may be be any valid identifier of branch defined in user's document.
17984  The identifier may include spaces, but in that case the whole thing must
17985  be wrapped in quotes.
17986  The main purpose of this feature is to allow \SpecialChar LaTeX
17987  wrapping around specific
17988  branches as user needs.
17989 \end_layout
17990
17991 \begin_layout Enumerate
17992 The layout of a user (or class) specific caption is being defined.
17993  In this case, 
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 <Type>
17999 \end_layout
18000
18001 \end_inset
18002
18003  must be of the form 
18004 \begin_inset Quotes eld
18005 \end_inset
18006
18007
18008 \begin_inset Flex Code
18009 status collapsed
18010
18011 \begin_layout Plain Layout
18012 Caption:<name>
18013 \end_layout
18014
18015 \end_inset
18016
18017
18018 \begin_inset Quotes erd
18019 \end_inset
18020
18021 , where 
18022 \begin_inset Flex Code
18023 status collapsed
18024
18025 \begin_layout Plain Layout
18026 name
18027 \end_layout
18028
18029 \end_inset
18030
18031  specifies the name of the caption as it appears in the menu.
18032  Have a look at the standard caption (
18033 \begin_inset Flex Code
18034 status collapsed
18035
18036 \begin_layout Plain Layout
18037 Caption:Standard
18038 \end_layout
18039
18040 \end_inset
18041
18042 ), the specific captions of the KOMA-Script classes (
18043 \begin_inset Flex Code
18044 status collapsed
18045
18046 \begin_layout Plain Layout
18047 Caption:Above
18048 \end_layout
18049
18050 \end_inset
18051
18052
18053 \begin_inset Flex Code
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 Caption:Below
18058 \end_layout
18059
18060 \end_inset
18061
18062 ) or the module 
18063 \family sans
18064 Multilingual
18065 \begin_inset space ~
18066 \end_inset
18067
18068 Captions 
18069 \family default
18070 (
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075 Caption:Bicaption
18076 \end_layout
18077
18078 \end_inset
18079
18080 ) for applications.
18081 \end_layout
18082
18083 \begin_layout Standard
18084 The 
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 InsetLayout
18090 \end_layout
18091
18092 \end_inset
18093
18094  definition can contain the following entries:
18095 \end_layout
18096
18097 \begin_layout Description
18098
18099 \change_inserted 2047637253 1483963036
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104
18105 \change_inserted 2047637253 1483900123
18106 AddToToc
18107 \end_layout
18108
18109 \end_inset
18110
18111  [
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116
18117 \change_inserted 2047637253 1483962897
18118 string
18119 \end_layout
18120
18121 \end_inset
18122
18123 =""] This inset will appear in the table of contents of the given type.
18124  An empty string disables.
18125  See also the OutlinerName and the IsTocCaption commands.
18126  This is only implemented for Flex insets.
18127  Default: disabled.
18128 \end_layout
18129
18130 \begin_layout Description
18131 \begin_inset Flex Code
18132 status collapsed
18133
18134 \begin_layout Plain Layout
18135 Argument
18136 \end_layout
18137
18138 \end_inset
18139
18140  [
18141 \begin_inset Flex Code
18142 status collapsed
18143
18144 \begin_layout Plain Layout
18145 int
18146 \end_layout
18147
18148 \end_inset
18149
18150 ] Defines argument number of a command\SpecialChar breakableslash
18151 environment associated with the current
18152  layout.
18153  The definition must end with 
18154 \begin_inset Flex Code
18155 status collapsed
18156
18157 \begin_layout Plain Layout
18158 EndArgument
18159 \end_layout
18160
18161 \end_inset
18162
18163 .
18164  See 
18165 \begin_inset CommandInset ref
18166 LatexCommand ref
18167 reference "subsec:Paragraph-Styles"
18168
18169 \end_inset
18170
18171  for details.
18172 \end_layout
18173
18174 \begin_layout Description
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 BabelPreamble
18180 \end_layout
18181
18182 \end_inset
18183
18184  Preamble for changing language commands; see 
18185 \begin_inset CommandInset ref
18186 LatexCommand ref
18187 reference "subsec:I18n"
18188
18189 \end_inset
18190
18191 .
18192 \end_layout
18193
18194 \begin_layout Description
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 BgColor
18200 \end_layout
18201
18202 \end_inset
18203
18204  [
18205 \begin_inset Flex Code
18206 status collapsed
18207
18208 \begin_layout Plain Layout
18209 <name>
18210 \end_layout
18211
18212 \end_inset
18213
18214 ] The color for the inset's background.
18215  See 
18216 \begin_inset CommandInset ref
18217 LatexCommand ref
18218 reference "chap:Names-of-colors"
18219
18220 \end_inset
18221
18222  for a list of the available color names.
18223 \end_layout
18224
18225 \begin_layout Description
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 ContentAsLabel
18231 \end_layout
18232
18233 \end_inset
18234
18235  [
18236 \begin_inset Flex Code
18237 status collapsed
18238
18239 \begin_layout Plain Layout
18240
18241 \emph on
18242 0
18243 \end_layout
18244
18245 \end_inset
18246
18247 ,
18248 \begin_inset space \thinspace{}
18249 \end_inset
18250
18251
18252 \begin_inset Flex Code
18253 status collapsed
18254
18255 \begin_layout Plain Layout
18256 1
18257 \end_layout
18258
18259 \end_inset
18260
18261 ] Whether to use the content of the inset as the label, when the inset is
18262  closed.
18263  Default is false.
18264 \end_layout
18265
18266 \begin_layout Description
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 CopyStyle
18272 \end_layout
18273
18274 \end_inset
18275
18276  [
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 <type>
18282 \end_layout
18283
18284 \end_inset
18285
18286 ] As with paragraph styles, see 
18287 \begin_inset CommandInset ref
18288 LatexCommand ref
18289 reference "subsec:Paragraph-Styles"
18290
18291 \end_inset
18292
18293 .
18294  Note that you need to specify the complete type, e.
18295 \begin_inset space \thinspace{}
18296 \end_inset
18297
18298 g.
18299 \begin_inset space ~
18300 \end_inset
18301
18302
18303 \begin_inset Flex Code
18304 status collapsed
18305
18306 \begin_layout Plain Layout
18307 CopyStyle Flex:<name>
18308 \end_layout
18309
18310 \end_inset
18311
18312 .
18313 \end_layout
18314
18315 \begin_layout Description
18316 \begin_inset Flex Code
18317 status collapsed
18318
18319 \begin_layout Plain Layout
18320 CustomPars
18321 \end_layout
18322
18323 \end_inset
18324
18325  [
18326 \begin_inset Flex Code
18327 status collapsed
18328
18329 \begin_layout Plain Layout
18330
18331 \emph on
18332 0
18333 \end_layout
18334
18335 \end_inset
18336
18337 ,
18338 \begin_inset space \thinspace{}
18339 \end_inset
18340
18341
18342 \begin_inset Flex Code
18343 status collapsed
18344
18345 \begin_layout Plain Layout
18346 1
18347 \end_layout
18348
18349 \end_inset
18350
18351 ] Indicates whether the user may employ the Paragraph Settings dialog to
18352  customize the paragraph.
18353 \end_layout
18354
18355 \begin_layout Description
18356 \begin_inset Flex Code
18357 status collapsed
18358
18359 \begin_layout Plain Layout
18360 Decoration
18361 \end_layout
18362
18363 \end_inset
18364
18365  can be 
18366 \begin_inset Flex Code
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370 Classic
18371 \end_layout
18372
18373 \end_inset
18374
18375
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 Minimalistic
18381 \end_layout
18382
18383 \end_inset
18384
18385 , or 
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390 Conglomerate
18391 \end_layout
18392
18393 \end_inset
18394
18395 , describing the rendering style used for the inset's frame and buttons.
18396  Footnotes generally use 
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 Classic
18402 \end_layout
18403
18404 \end_inset
18405
18406 , ERT insets generally 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 Minimalistic
18412 \end_layout
18413
18414 \end_inset
18415
18416 , and character styles 
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 Conglomerate
18422 \end_layout
18423
18424 \end_inset
18425
18426 .
18427 \end_layout
18428
18429 \begin_layout Description
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434 Display
18435 \end_layout
18436
18437 \end_inset
18438
18439  [
18440 \begin_inset Flex Code
18441 status collapsed
18442
18443 \begin_layout Plain Layout
18444 0
18445 \end_layout
18446
18447 \end_inset
18448
18449 ,
18450 \emph on
18451
18452 \begin_inset space \thinspace{}
18453 \end_inset
18454
18455
18456 \emph default
18457
18458 \begin_inset Flex Code
18459 status collapsed
18460
18461 \begin_layout Plain Layout
18462
18463 \emph on
18464 1
18465 \end_layout
18466
18467 \end_inset
18468
18469 ] Only useful if 
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 LatexType
18475 \end_layout
18476
18477 \end_inset
18478
18479  is 
18480 \begin_inset Flex Code
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484 Environment
18485 \end_layout
18486
18487 \end_inset
18488
18489 .
18490  Indicates whether the environment will stand on its own in the output or
18491  will appear inline with the surrounding text.
18492  If set to false, it is supposed that the \SpecialChar LaTeX
18493  environment ignores white space
18494  (including one newline character) after the 
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499
18500 \backslash
18501 begin{
18502 \emph on
18503 LatexName
18504 \emph default
18505 }
18506 \end_layout
18507
18508 \end_inset
18509
18510  and 
18511 \begin_inset Flex Code
18512 status collapsed
18513
18514 \begin_layout Plain Layout
18515
18516 \backslash
18517 end{
18518 \emph on
18519 LatexName
18520 \emph default
18521 }
18522 \end_layout
18523
18524 \end_inset
18525
18526  tags.
18527  Default is true.
18528 \end_layout
18529
18530 \begin_layout Description
18531 \begin_inset Flex Code
18532 status collapsed
18533
18534 \begin_layout Plain Layout
18535 End
18536 \end_layout
18537
18538 \end_inset
18539
18540  Required at the end of the 
18541 \begin_inset Flex Code
18542 status collapsed
18543
18544 \begin_layout Plain Layout
18545 InsetLayout
18546 \end_layout
18547
18548 \end_inset
18549
18550  declarations.
18551 \end_layout
18552
18553 \begin_layout Description
18554 \begin_inset Flex Code
18555 status collapsed
18556
18557 \begin_layout Plain Layout
18558 Font
18559 \end_layout
18560
18561 \end_inset
18562
18563  The font used for both the text body 
18564 \emph on
18565 and
18566 \emph default
18567  the label.
18568  See 
18569 \begin_inset CommandInset ref
18570 LatexCommand ref
18571 reference "subsec:Font-description"
18572
18573 \end_inset
18574
18575 .
18576  Note that defining this font automatically defines the 
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 LabelFont
18582 \end_layout
18583
18584 \end_inset
18585
18586  to the same value, so define this first and define 
18587 \begin_inset Flex Code
18588 status collapsed
18589
18590 \begin_layout Plain Layout
18591 LabelFont
18592 \end_layout
18593
18594 \end_inset
18595
18596  later if you want them to be different.
18597 \end_layout
18598
18599 \begin_layout Description
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604 FixedWidthPreambleEncoding
18605 \end_layout
18606
18607 \end_inset
18608
18609  [
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614
18615 \emph on
18616 0
18617 \end_layout
18618
18619 \end_inset
18620
18621 ,
18622 \begin_inset space \thinspace{}
18623 \end_inset
18624
18625
18626 \begin_inset Flex Code
18627 status collapsed
18628
18629 \begin_layout Plain Layout
18630 1
18631 \end_layout
18632
18633 \end_inset
18634
18635 ] Force a fixed width encoding for the translated contents of 
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 BabelPreamble
18641 \end_layout
18642
18643 \end_inset
18644
18645  and 
18646 \begin_inset Flex Code
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650 LangPreamble
18651 \end_layout
18652
18653 \end_inset
18654
18655  code generated by this layout.
18656  This is needed for special \SpecialChar LaTeX
18657 -packages like 
18658 \family typewriter
18659 listings
18660 \family default
18661  that do not work with variable width encodings such as 
18662 \family sans
18663 utf8
18664 \family default
18665 .
18666  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18667  backends such as Xe\SpecialChar TeX
18668  or
18669  Lua\SpecialChar TeX
18670  are used.
18671 \end_layout
18672
18673 \begin_layout Description
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678 ForceLocalFontSwitch
18679 \end_layout
18680
18681 \end_inset
18682
18683  [
18684 \begin_inset Flex Code
18685 status collapsed
18686
18687 \begin_layout Plain Layout
18688
18689 \emph on
18690 0
18691 \end_layout
18692
18693 \end_inset
18694
18695 ,
18696 \begin_inset space \thinspace{}
18697 \end_inset
18698
18699
18700 \begin_inset Flex Code
18701 status collapsed
18702
18703 \begin_layout Plain Layout
18704 1
18705 \end_layout
18706
18707 \end_inset
18708
18709 ] When using babel, always use a local font switch (
18710 \begin_inset Flex Code
18711 status collapsed
18712
18713 \begin_layout Plain Layout
18714
18715 \backslash
18716 foreignlanguage
18717 \end_layout
18718
18719 \end_inset
18720
18721 ), never a global one (such as 
18722 \begin_inset Flex Code
18723 status collapsed
18724
18725 \begin_layout Plain Layout
18726
18727 \backslash
18728 selectlanguage
18729 \end_layout
18730
18731 \end_inset
18732
18733 ).
18734 \end_layout
18735
18736 \begin_layout Description
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741 ForceLTR
18742 \end_layout
18743
18744 \end_inset
18745
18746  [
18747 \begin_inset Flex Code
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751
18752 \emph on
18753 0
18754 \end_layout
18755
18756 \end_inset
18757
18758 ,
18759 \begin_inset space \thinspace{}
18760 \end_inset
18761
18762
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 1
18768 \end_layout
18769
18770 \end_inset
18771
18772 ] Force the 
18773 \begin_inset Quotes eld
18774 \end_inset
18775
18776 latex
18777 \begin_inset Quotes erd
18778 \end_inset
18779
18780  language, leading to Left-to-Right (Latin) output, e.
18781 \begin_inset space \thinspace{}
18782 \end_inset
18783
18784 g.
18785 \begin_inset space \space{}
18786 \end_inset
18787
18788 in \SpecialChar TeX
18789  code or URL.
18790  A kludge.
18791 \end_layout
18792
18793 \begin_layout Description
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 ForceOwnlines
18799 \end_layout
18800
18801 \end_inset
18802
18803  [
18804 \begin_inset Flex Code
18805 status collapsed
18806
18807 \begin_layout Plain Layout
18808
18809 \emph on
18810 0
18811 \end_layout
18812
18813 \end_inset
18814
18815 ,
18816 \begin_inset space \thinspace{}
18817 \end_inset
18818
18819
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 1
18825 \end_layout
18826
18827 \end_inset
18828
18829 ] Force a a line break in the \SpecialChar LaTeX
18830  output before the inset starts and after
18831  the inset ends.
18832  This assures the inset itself is output on its own lines, for parsing purposes.
18833 \end_layout
18834
18835 \begin_layout Description
18836 \begin_inset Flex Code
18837 status collapsed
18838
18839 \begin_layout Plain Layout
18840 ForcePlain
18841 \end_layout
18842
18843 \end_inset
18844
18845  [
18846 \begin_inset Flex Code
18847 status collapsed
18848
18849 \begin_layout Plain Layout
18850
18851 \emph on
18852 0
18853 \end_layout
18854
18855 \end_inset
18856
18857 ,
18858 \begin_inset space \thinspace{}
18859 \end_inset
18860
18861
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 1
18867 \end_layout
18868
18869 \end_inset
18870
18871 ] Indicates whether the 
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876 PlainLayout
18877 \end_layout
18878
18879 \end_inset
18880
18881  should be used or, instead, the user can change the paragraph style used
18882  in the inset.
18883  Default is false.
18884 \end_layout
18885
18886 \begin_layout Description
18887 \begin_inset Flex Code
18888 status collapsed
18889
18890 \begin_layout Plain Layout
18891 FreeSpacing
18892 \end_layout
18893
18894 \end_inset
18895
18896  [
18897 \begin_inset Flex Code
18898 status collapsed
18899
18900 \begin_layout Plain Layout
18901
18902 \emph on
18903 0
18904 \end_layout
18905
18906 \end_inset
18907
18908 ,
18909 \begin_inset space \thinspace{}
18910 \end_inset
18911
18912
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 1
18918 \end_layout
18919
18920 \end_inset
18921
18922 ] As with paragraph styles, see 
18923 \begin_inset CommandInset ref
18924 LatexCommand ref
18925 reference "subsec:Paragraph-Styles"
18926
18927 \end_inset
18928
18929 .
18930 \end_layout
18931
18932 \begin_layout Description
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 HTML*
18938 \end_layout
18939
18940 \end_inset
18941
18942  These tags control the XHTML output.
18943  See 
18944 \begin_inset CommandInset ref
18945 LatexCommand ref
18946 reference "sec:Tags-for-XHTML"
18947
18948 \end_inset
18949
18950 .
18951 \end_layout
18952
18953 \begin_layout Description
18954 \begin_inset Flex Code
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958 InToc
18959 \end_layout
18960
18961 \end_inset
18962
18963  [
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968
18969 \emph on
18970 0
18971 \end_layout
18972
18973 \end_inset
18974
18975 ,
18976 \begin_inset space \thinspace{}
18977 \end_inset
18978
18979
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 1
18985 \end_layout
18986
18987 \end_inset
18988
18989 ] Whether to include the contents of this inset in the strings generated
18990  for the `Outline' pane
18991 \change_inserted 2047637253 1483900773
18992  for all table of contents, regardless of the AddToToc setting
18993 \change_unchanged
18994 .
18995  One would not, for example, want the content of a footnote in a section
18996  header to be included in the TOC displayed in the outline, but one would
18997  normally want the content of a character style displayed.
18998  Default is false: not to include.
18999 \change_inserted 2047637253 1483900609
19000
19001 \end_layout
19002
19003 \begin_layout Description
19004
19005 \change_inserted 2047637253 1483901257
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010
19011 \change_inserted 2047637253 1483900725
19012 IsTocCaption
19013 \end_layout
19014
19015 \end_inset
19016
19017  [
19018 \begin_inset Flex Code
19019 status collapsed
19020
19021 \begin_layout Plain Layout
19022
19023 \change_inserted 2047637253 1483900620
19024
19025 \emph on
19026 0
19027 \end_layout
19028
19029 \end_inset
19030
19031 ,
19032 \begin_inset space \thinspace{}
19033 \end_inset
19034
19035
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040
19041 \change_inserted 2047637253 1483900620
19042 1
19043 \end_layout
19044
19045 \end_inset
19046
19047 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19048  of its contents in its item in the table of contents.
19049  Otherwise, only the label appears.
19050 \change_unchanged
19051
19052 \end_layout
19053
19054 \begin_layout Description
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 KeepEmpty
19060 \end_layout
19061
19062 \end_inset
19063
19064  [
19065 \emph on
19066
19067 \begin_inset Flex Code
19068 status collapsed
19069
19070 \begin_layout Plain Layout
19071 0
19072 \end_layout
19073
19074 \end_inset
19075
19076
19077 \emph default
19078 ,
19079 \begin_inset space \thinspace{}
19080 \end_inset
19081
19082
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 1
19088 \end_layout
19089
19090 \end_inset
19091
19092 ] As with paragraph styles, see 
19093 \begin_inset CommandInset ref
19094 LatexCommand ref
19095 reference "subsec:Paragraph-Styles"
19096
19097 \end_inset
19098
19099 .
19100 \end_layout
19101
19102 \begin_layout Description
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 LabelFont
19108 \end_layout
19109
19110 \end_inset
19111
19112  The font used for the label.
19113  See 
19114 \begin_inset CommandInset ref
19115 LatexCommand ref
19116 reference "subsec:Font-description"
19117
19118 \end_inset
19119
19120 .
19121  Note that this definition can never appear before 
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 Font
19127 \end_layout
19128
19129 \end_inset
19130
19131 , lest it be ineffective.
19132 \end_layout
19133
19134 \begin_layout Description
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 LabelString
19140 \end_layout
19141
19142 \end_inset
19143
19144  [
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 string
19150 \end_layout
19151
19152 \end_inset
19153
19154 =
19155 \begin_inset Quotes erd
19156 \end_inset
19157
19158
19159 \begin_inset Quotes erd
19160 \end_inset
19161
19162 ] What will be displayed on the button or elsewhere as the inset label.
19163  Some inset types (
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 \SpecialChar TeX
19169  code
19170 \end_layout
19171
19172 \end_inset
19173
19174  and 
19175 \begin_inset Flex Code
19176 status collapsed
19177
19178 \begin_layout Plain Layout
19179 Branch
19180 \end_layout
19181
19182 \end_inset
19183
19184 ) modify this label on the fly.
19185 \end_layout
19186
19187 \begin_layout Description
19188 \begin_inset Flex Code
19189 status collapsed
19190
19191 \begin_layout Plain Layout
19192 LangPreamble
19193 \end_layout
19194
19195 \end_inset
19196
19197  Language dependent preamble; see 
19198 \begin_inset CommandInset ref
19199 LatexCommand ref
19200 reference "subsec:I18n"
19201
19202 \end_inset
19203
19204 .
19205 \end_layout
19206
19207 \begin_layout Description
19208 \begin_inset Flex Code
19209 status collapsed
19210
19211 \begin_layout Plain Layout
19212 LatexName
19213 \end_layout
19214
19215 \end_inset
19216
19217  [
19218 \begin_inset Flex Code
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 <name>
19223 \end_layout
19224
19225 \end_inset
19226
19227 ] The name of the corresponding \SpecialChar LaTeX
19228  stuff.
19229  Either the environment or command name.
19230 \end_layout
19231
19232 \begin_layout Description
19233 \begin_inset Flex Code
19234 status collapsed
19235
19236 \begin_layout Plain Layout
19237 LatexParam
19238 \end_layout
19239
19240 \end_inset
19241
19242  [
19243 \begin_inset Flex Code
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247 <parameter>
19248 \end_layout
19249
19250 \end_inset
19251
19252 ] The optional parameter for the corresponding 
19253 \begin_inset Flex Code
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257 LatexName
19258 \end_layout
19259
19260 \end_inset
19261
19262  stuff, including possible bracket pairs like 
19263 \begin_inset Flex Code
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 []
19268 \end_layout
19269
19270 \end_inset
19271
19272 .
19273  This parameter cannot be changed from within \SpecialChar LyX
19274  (use 
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 Argument
19280 \end_layout
19281
19282 \end_inset
19283
19284  for customizable parameters).
19285  It will be output as is after all \SpecialChar LaTeX
19286  
19287 \begin_inset Flex Code
19288 status collapsed
19289
19290 \begin_layout Plain Layout
19291 Argument
19292 \end_layout
19293
19294 \end_inset
19295
19296 s.
19297 \end_layout
19298
19299 \begin_layout Description
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 LatexType
19305 \end_layout
19306
19307 \end_inset
19308
19309  [
19310 \begin_inset Flex Code
19311 status collapsed
19312
19313 \begin_layout Plain Layout
19314 Command, Environment, None
19315 \end_layout
19316
19317 \end_inset
19318
19319 ] How the style should be translated into \SpecialChar LaTeX
19320 .
19321 \begin_inset Foot
19322 status collapsed
19323
19324 \begin_layout Plain Layout
19325 \begin_inset Flex Code
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329 LatexType
19330 \end_layout
19331
19332 \end_inset
19333
19334  is perhaps a bit misleading, since these rules apply to SGML classes too.
19335  Visit the SGML class files for specific examples.
19336 \end_layout
19337
19338 \end_inset
19339
19340
19341 \end_layout
19342
19343 \begin_deeper
19344 \begin_layout Description
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 None
19350 \end_layout
19351
19352 \end_inset
19353
19354  means nothing special
19355 \end_layout
19356
19357 \begin_layout Description
19358 \begin_inset Flex Code
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362 Command
19363 \end_layout
19364
19365 \end_inset
19366
19367  means 
19368 \begin_inset Flex Code
19369 status collapsed
19370
19371 \begin_layout Plain Layout
19372
19373 \backslash
19374
19375 \emph on
19376 LatexName
19377 \emph default
19378 {\SpecialChar ldots
19379 }
19380 \end_layout
19381
19382 \end_inset
19383
19384
19385 \end_layout
19386
19387 \begin_layout Description
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 Environment
19393 \end_layout
19394
19395 \end_inset
19396
19397  means 
19398 \begin_inset Flex Code
19399 status collapsed
19400
19401 \begin_layout Plain Layout
19402
19403 \backslash
19404 begin{
19405 \emph on
19406 LatexName
19407 \emph default
19408 }\SpecialChar ldots
19409
19410 \backslash
19411 end{
19412 \emph on
19413 LatexName
19414 \emph default
19415 }
19416 \end_layout
19417
19418 \end_inset
19419
19420
19421 \end_layout
19422
19423 \begin_layout Standard
19424 Putting the last few things together, the \SpecialChar LaTeX
19425  output will be either: 
19426 \end_layout
19427
19428 \begin_layout LyX-Code
19429
19430 \backslash
19431 LatexName[LatexParam]{\SpecialChar ldots
19432 }
19433 \end_layout
19434
19435 \begin_layout Standard
19436 or: 
19437 \end_layout
19438
19439 \begin_layout LyX-Code
19440
19441 \backslash
19442 begin{LatexName}[LatexParam] \SpecialChar ldots
19443  
19444 \backslash
19445 end{LatexName}
19446 \end_layout
19447
19448 \begin_layout Standard
19449 depending upon the \SpecialChar LaTeX
19450  type.
19451 \end_layout
19452
19453 \end_deeper
19454 \begin_layout Description
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459 LeftDelim
19460 \end_layout
19461
19462 \end_inset
19463
19464  [
19465 \begin_inset Flex Code
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 string
19470 \end_layout
19471
19472 \end_inset
19473
19474 ] A string that is put at the beginning of the layout content.
19475  A line break in the output can be indicated by 
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 <br/>
19481 \end_layout
19482
19483 \end_inset
19484
19485 .
19486 \end_layout
19487
19488 \begin_layout Description
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 LyxType
19494 \end_layout
19495
19496 \end_inset
19497
19498  Can be 
19499 \begin_inset Flex Code
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 charstyle
19504 \end_layout
19505
19506 \end_inset
19507
19508
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 custom
19514 \end_layout
19515
19516 \end_inset
19517
19518
19519 \begin_inset Flex Code
19520 status collapsed
19521
19522 \begin_layout Plain Layout
19523 element
19524 \end_layout
19525
19526 \end_inset
19527
19528  or 
19529 \begin_inset Flex Code
19530 status collapsed
19531
19532 \begin_layout Plain Layout
19533 end
19534 \end_layout
19535
19536 \end_inset
19537
19538  (indicating a dummy definition ending definitions of charstyles, etc).
19539  This entry is required in and is only meaningful for Flex insets.
19540  Among other things, it determines on which menu this inset will appear.
19541  Setting 
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 LyxType
19547 \end_layout
19548
19549 \end_inset
19550
19551  to 
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 charstyle
19557 \end_layout
19558
19559 \end_inset
19560
19561  will automatically set 
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 MultiPar
19567 \end_layout
19568
19569 \end_inset
19570
19571  to false and 
19572 \begin_inset Flex Code
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576 ForcePlain
19577 \end_layout
19578
19579 \end_inset
19580
19581  to true.
19582  
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 MultiPar
19588 \end_layout
19589
19590 \end_inset
19591
19592  can be set to true, or 
19593 \begin_inset Flex Code
19594 status collapsed
19595
19596 \begin_layout Plain Layout
19597 ForcePlain
19598 \end_layout
19599
19600 \end_inset
19601
19602  to false, for 
19603 \begin_inset Flex Code
19604 status collapsed
19605
19606 \begin_layout Plain Layout
19607 charstyle
19608 \end_layout
19609
19610 \end_inset
19611
19612  insets by setting it 
19613 \emph on
19614 after
19615 \emph default
19616  you set the 
19617 \begin_inset Flex Code
19618 status collapsed
19619
19620 \begin_layout Plain Layout
19621 LyxType
19622 \end_layout
19623
19624 \end_inset
19625
19626 .
19627 \end_layout
19628
19629 \begin_layout Description
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 MultiPar
19635 \end_layout
19636
19637 \end_inset
19638
19639  [
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644
19645 \emph on
19646 0
19647 \end_layout
19648
19649 \end_inset
19650
19651 ,
19652 \begin_inset space \thinspace{}
19653 \end_inset
19654
19655
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 1
19661 \end_layout
19662
19663 \end_inset
19664
19665 ] Whether multiple paragraphs are permitted in this inset.
19666  This will also set 
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671 CustomPars
19672 \end_layout
19673
19674 \end_inset
19675
19676  to the same value and 
19677 \begin_inset Flex Code
19678 status collapsed
19679
19680 \begin_layout Plain Layout
19681 ForcePlain
19682 \end_layout
19683
19684 \end_inset
19685
19686  to the opposite value.
19687  These can be reset to other values, if they are used 
19688 \emph on
19689 after
19690 \emph default
19691  
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 MultiPar
19697 \end_layout
19698
19699 \end_inset
19700
19701 .
19702  Default is true.
19703 \end_layout
19704
19705 \begin_layout Description
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 NeedProtect
19711 \end_layout
19712
19713 \end_inset
19714
19715  [
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720
19721 \emph on
19722 0
19723 \end_layout
19724
19725 \end_inset
19726
19727 ,
19728 \begin_inset space \thinspace{}
19729 \end_inset
19730
19731
19732 \begin_inset Flex Code
19733 status collapsed
19734
19735 \begin_layout Plain Layout
19736 1
19737 \end_layout
19738
19739 \end_inset
19740
19741 ] Whether fragile commands in this inset should be 
19742 \begin_inset Flex Code
19743 status collapsed
19744
19745 \begin_layout Plain Layout
19746
19747 \backslash
19748 protect
19749 \end_layout
19750
19751 \end_inset
19752
19753 'ed.
19754  (Note: This is 
19755 \emph on
19756 not
19757 \emph default
19758  whether the command should itself be protected.) Default is false.
19759 \end_layout
19760
19761 \begin_layout Description
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 NoInsetLayout
19767 \end_layout
19768
19769 \end_inset
19770
19771  [
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 <layout>
19777 \end_layout
19778
19779 \end_inset
19780
19781 ] Deletes an existing 
19782 \begin_inset Flex Code
19783 status collapsed
19784
19785 \begin_layout Plain Layout
19786 InsetLayout
19787 \end_layout
19788
19789 \end_inset
19790
19791 .
19792 \end_layout
19793
19794 \begin_layout Description
19795 \begin_inset Flex Code
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 ObsoletedBy
19800 \end_layout
19801
19802 \end_inset
19803
19804  [
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 <layout>
19810 \end_layout
19811
19812 \end_inset
19813
19814 ] Name of an 
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 InsetLayout
19820 \end_layout
19821
19822 \end_inset
19823
19824  that has replaced this 
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 InsetLayout
19830 \end_layout
19831
19832 \end_inset
19833
19834 .
19835  This is used to rename an 
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840 InsetLayout
19841 \end_layout
19842
19843 \end_inset
19844
19845 , while keeping backward compatibility.
19846 \end_layout
19847
19848 \begin_layout Description
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 ParbreakIsNewline
19854 \end_layout
19855
19856 \end_inset
19857
19858  [
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863
19864 \emph on
19865 0
19866 \end_layout
19867
19868 \end_inset
19869
19870 ,
19871 \begin_inset space \thinspace{}
19872 \end_inset
19873
19874
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 1
19880 \end_layout
19881
19882 \end_inset
19883
19884 ] As with paragraph styles, see 
19885 \begin_inset CommandInset ref
19886 LatexCommand ref
19887 reference "subsec:Paragraph-Styles"
19888
19889 \end_inset
19890
19891 .
19892  Default is false.
19893 \end_layout
19894
19895 \begin_layout Description
19896 \begin_inset Flex Code
19897 status collapsed
19898
19899 \begin_layout Plain Layout
19900 PassThru
19901 \end_layout
19902
19903 \end_inset
19904
19905  [
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910
19911 \emph on
19912 0
19913 \end_layout
19914
19915 \end_inset
19916
19917 ,
19918 \begin_inset space \thinspace{}
19919 \end_inset
19920
19921
19922 \begin_inset Flex Code
19923 status collapsed
19924
19925 \begin_layout Plain Layout
19926 1
19927 \end_layout
19928
19929 \end_inset
19930
19931 ] As with paragraph styles, see 
19932 \begin_inset CommandInset ref
19933 LatexCommand ref
19934 reference "subsec:Paragraph-Styles"
19935
19936 \end_inset
19937
19938 .
19939  Default is false.
19940 \end_layout
19941
19942 \begin_layout Description
19943 \begin_inset Flex Code
19944 status collapsed
19945
19946 \begin_layout Plain Layout
19947 Preamble
19948 \end_layout
19949
19950 \end_inset
19951
19952  As with paragraph styles, see 
19953 \begin_inset CommandInset ref
19954 LatexCommand ref
19955 reference "subsec:Paragraph-Styles"
19956
19957 \end_inset
19958
19959 .
19960 \end_layout
19961
19962 \begin_layout Description
19963 \begin_inset Flex Code
19964 status collapsed
19965
19966 \begin_layout Plain Layout
19967 RefPrefix
19968 \end_layout
19969
19970 \end_inset
19971
19972  [
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 string
19978 \end_layout
19979
19980 \end_inset
19981
19982 ] The prefix to use when creating labels referring to insets of this type.
19983  This allows the use of formatted references.
19984 \end_layout
19985
19986 \begin_layout Description
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 Requires
19992 \end_layout
19993
19994 \end_inset
19995
19996  [
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 string
20002 \end_layout
20003
20004 \end_inset
20005
20006 ] As with paragraph styles, see 
20007 \begin_inset CommandInset ref
20008 LatexCommand ref
20009 reference "subsec:Paragraph-Styles"
20010
20011 \end_inset
20012
20013 .
20014 \end_layout
20015
20016 \begin_layout Description
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 ResetArgs
20022 \end_layout
20023
20024 \end_inset
20025
20026  [
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031
20032 \emph on
20033 0
20034 \end_layout
20035
20036 \end_inset
20037
20038 ,
20039 \begin_inset space \thinspace{}
20040 \end_inset
20041
20042
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 1
20048 \end_layout
20049
20050 \end_inset
20051
20052 ] Resets the \SpecialChar LaTeX
20053  arguments of this layout (as defined via the 
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 Argument
20059 \end_layout
20060
20061 \end_inset
20062
20063  tag).
20064  This is useful if you have copied a style via 
20065 \begin_inset Flex Code
20066 status collapsed
20067
20068 \begin_layout Plain Layout
20069 CopyStyle
20070 \end_layout
20071
20072 \end_inset
20073
20074 , but you do not want to inherit its (required and optional) arguments.
20075 \end_layout
20076
20077 \begin_layout Description
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 ResetsFont
20083 \end_layout
20084
20085 \end_inset
20086
20087  [
20088 \begin_inset Flex Code
20089 status collapsed
20090
20091 \begin_layout Plain Layout
20092 0
20093 \end_layout
20094
20095 \end_inset
20096
20097 ,
20098 \begin_inset space \thinspace{}
20099 \end_inset
20100
20101
20102 \begin_inset Flex Code
20103 status collapsed
20104
20105 \begin_layout Plain Layout
20106
20107 \emph on
20108 1
20109 \end_layout
20110
20111 \end_inset
20112
20113 ] Whether this inset should use the font of its surrounding environment
20114  or uses its own.
20115  Default is false: use the font of the surrounding environment.
20116 \end_layout
20117
20118 \begin_layout Description
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 RightDelim
20124 \end_layout
20125
20126 \end_inset
20127
20128  [
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 string
20134 \end_layout
20135
20136 \end_inset
20137
20138 ] A string that is put at the end of the layout content.
20139  A line break in the output can be indicated by 
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 <br/>
20145 \end_layout
20146
20147 \end_inset
20148
20149 .
20150 \end_layout
20151
20152 \begin_layout Description
20153 \begin_inset Flex Code
20154 status collapsed
20155
20156 \begin_layout Plain Layout
20157 Spellcheck
20158 \end_layout
20159
20160 \end_inset
20161
20162  [
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 0
20168 \end_layout
20169
20170 \end_inset
20171
20172 ,
20173 \begin_inset space \thinspace{}
20174 \end_inset
20175
20176
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181
20182 \emph on
20183 1
20184 \end_layout
20185
20186 \end_inset
20187
20188 ] Allow spell-checking the contents of this inset.
20189  Default is true.
20190 \end_layout
20191
20192 \begin_layout Subsection
20193 Counters
20194 \begin_inset CommandInset label
20195 LatexCommand label
20196 name "subsec:Counters"
20197
20198 \end_inset
20199
20200
20201 \end_layout
20202
20203 \begin_layout Standard
20204 It is necessary to define the counters (
20205 \begin_inset Flex Noun
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 chapter
20210 \end_layout
20211
20212 \end_inset
20213
20214
20215 \begin_inset Flex Noun
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 figure
20220 \end_layout
20221
20222 \end_inset
20223
20224 , \SpecialChar ldots
20225 ) in the text class itself.
20226  The standard counters are defined in the file 
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 stdcounters.inc
20232 \end_layout
20233
20234 \end_inset
20235
20236 , so you may have to do no more than add
20237 \end_layout
20238
20239 \begin_layout LyX-Code
20240 Input stdcounters.inc
20241 \end_layout
20242
20243 \begin_layout Standard
20244 to your layout file to get them to work.
20245  But if you want to define custom counters, then you can do so.
20246  The counter declaration must begin with:
20247 \end_layout
20248
20249 \begin_layout LyX-Code
20250 Counter CounterName
20251 \end_layout
20252
20253 \begin_layout Standard
20254 where of course `
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 CounterName
20260 \end_layout
20261
20262 \end_inset
20263
20264 ' is replaced by the name of the counter.
20265  And it must end with 
20266 \begin_inset Quotes eld
20267 \end_inset
20268
20269
20270 \begin_inset Flex Code
20271 status collapsed
20272
20273 \begin_layout Plain Layout
20274 End
20275 \end_layout
20276
20277 \end_inset
20278
20279
20280 \begin_inset Quotes erd
20281 \end_inset
20282
20283 .
20284  The following parameters can also be used:
20285 \end_layout
20286
20287 \begin_layout Description
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 InitialValue
20293 \end_layout
20294
20295 \end_inset
20296
20297  [
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 int=1
20303 \end_layout
20304
20305 \end_inset
20306
20307 ] Sets the initial value for the counter, to which it will be reset whenever
20308  that happens.
20309  Normally, one will want the default, 1.
20310 \end_layout
20311
20312 \begin_layout Description
20313 \begin_inset Flex Code
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317 LabelString
20318 \end_layout
20319
20320 \end_inset
20321
20322  [
20323 \begin_inset Flex Code
20324 status collapsed
20325
20326 \begin_layout Plain Layout
20327 string
20328 \end_layout
20329
20330 \end_inset
20331
20332 =
20333 \begin_inset Quotes erd
20334 \end_inset
20335
20336
20337 \begin_inset Quotes erd
20338 \end_inset
20339
20340 ] When defined, this string defines how the counter is displayed.
20341  Setting this value sets 
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346 LabelStringAppendix
20347 \end_layout
20348
20349 \end_inset
20350
20351  to the same value.
20352  The following special constructs can be used in the string:
20353 \end_layout
20354
20355 \begin_deeper
20356 \begin_layout Itemize
20357 \begin_inset Flex Code
20358 status collapsed
20359
20360 \begin_layout Plain Layout
20361
20362 \backslash
20363 thecounter
20364 \end_layout
20365
20366 \end_inset
20367
20368  will be replaced by the expansion of the 
20369 \begin_inset Flex Code
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373 LabelString
20374 \end_layout
20375
20376 \end_inset
20377
20378  (or 
20379 \begin_inset Flex Code
20380 status collapsed
20381
20382 \begin_layout Plain Layout
20383 LabelStringAppendix
20384 \end_layout
20385
20386 \end_inset
20387
20388 ) of the counter 
20389 \begin_inset Flex Code
20390 status collapsed
20391
20392 \begin_layout Plain Layout
20393 counter
20394 \end_layout
20395
20396 \end_inset
20397
20398 .
20399  
20400 \end_layout
20401
20402 \begin_layout Itemize
20403 counter values can be expressed using \SpecialChar LaTeX
20404 -like macros
20405 \begin_inset Newline newline
20406 \end_inset
20407
20408
20409 \begin_inset Flex Code
20410 status collapsed
20411
20412 \begin_layout Plain Layout
20413
20414 \backslash
20415
20416 \emph on
20417 numbertype
20418 \emph default
20419 {
20420 \emph on
20421 counter
20422 \emph default
20423 }
20424 \end_layout
20425
20426 \end_inset
20427
20428 , where 
20429 \begin_inset Flex Code
20430 status collapsed
20431
20432 \begin_layout Plain Layout
20433
20434 \emph on
20435 numbertype
20436 \end_layout
20437
20438 \end_inset
20439
20440  can be:
20441 \begin_inset Foot
20442 status collapsed
20443
20444 \begin_layout Plain Layout
20445
20446 \family roman
20447 \series medium
20448 \shape up
20449 \size normal
20450 \emph off
20451 \bar no
20452 \noun off
20453 \color none
20454 Actually, the situation is a bit more complicated: any
20455 \family default
20456 \series default
20457 \shape default
20458 \emph default
20459 \bar default
20460  
20461 \size default
20462 \emph on
20463 \noun default
20464 \color inherit
20465 numbertype
20466 \family roman
20467 \series medium
20468 \shape up
20469 \size normal
20470 \emph off
20471 \bar no
20472 \noun off
20473  other than those described below will produce arabic numerals.
20474  It would not be surprising to see this change in the future.
20475 \end_layout
20476
20477 \end_inset
20478
20479  
20480 \begin_inset Flex Code
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 arabic
20485 \end_layout
20486
20487 \end_inset
20488
20489 : 1, 2, 3,\SpecialChar ldots
20490
20491 \begin_inset Flex Code
20492 status collapsed
20493
20494 \begin_layout Plain Layout
20495 alph
20496 \end_layout
20497
20498 \end_inset
20499
20500  for lower-case letters: a, b, c, \SpecialChar ldots
20501
20502 \begin_inset Flex Code
20503 status collapsed
20504
20505 \begin_layout Plain Layout
20506 Alph
20507 \end_layout
20508
20509 \end_inset
20510
20511  for upper-case letters: A, B, C, \SpecialChar ldots
20512
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 roman
20518 \end_layout
20519
20520 \end_inset
20521
20522  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20523
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 Roman
20529 \end_layout
20530
20531 \end_inset
20532
20533  for upper-case roman numerals: I, II, III\SpecialChar ldots
20534
20535 \begin_inset Flex Code
20536 status collapsed
20537
20538 \begin_layout Plain Layout
20539 hebrew
20540 \end_layout
20541
20542 \end_inset
20543
20544  for hebrew numerals.
20545 \end_layout
20546
20547 \end_deeper
20548 \begin_layout Standard
20549 If LabelString is not defined, a default value is constructed as follows:
20550  if the counter has a master counter 
20551 \begin_inset Flex Code
20552 status collapsed
20553
20554 \begin_layout Plain Layout
20555 master
20556 \end_layout
20557
20558 \end_inset
20559
20560  (defined via 
20561 \begin_inset Flex Code
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565 Within
20566 \end_layout
20567
20568 \end_inset
20569
20570 ), the string
20571 \begin_inset Newline newline
20572 \end_inset
20573
20574
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579
20580 \backslash
20581 themaster.
20582 \backslash
20583 arabic{counter}
20584 \end_layout
20585
20586 \end_inset
20587
20588  is used; otherwise the string 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593
20594 \backslash
20595 arabic{counter}
20596 \end_layout
20597
20598 \end_inset
20599
20600  is used.
20601 \end_layout
20602
20603 \begin_layout Description
20604 \begin_inset Flex Code
20605 status collapsed
20606
20607 \begin_layout Plain Layout
20608 LabelStringAppendix
20609 \end_layout
20610
20611 \end_inset
20612
20613  [
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 string
20619 \end_layout
20620
20621 \end_inset
20622
20623 =
20624 \begin_inset Quotes erd
20625 \end_inset
20626
20627
20628 \begin_inset Quotes erd
20629 \end_inset
20630
20631 ] Same as 
20632 \begin_inset Flex Code
20633 status collapsed
20634
20635 \begin_layout Plain Layout
20636 LabelString
20637 \end_layout
20638
20639 \end_inset
20640
20641 , but for use in the Appendix.
20642 \end_layout
20643
20644 \begin_layout Description
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 PrettyFormat
20650 \end_layout
20651
20652 \end_inset
20653
20654  [
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 string
20660 \end_layout
20661
20662 \end_inset
20663
20664 =
20665 \begin_inset Quotes erd
20666 \end_inset
20667
20668
20669 \begin_inset Quotes erd
20670 \end_inset
20671
20672 ] A format for use with formatted references to this counter.
20673  For example, one might want to have references to section numbers appear
20674  as 
20675 \begin_inset Quotes eld
20676 \end_inset
20677
20678 Section 2.4
20679 \begin_inset Quotes erd
20680 \end_inset
20681
20682 .
20683  The string should contain 
20684 \begin_inset Quotes eld
20685 \end_inset
20686
20687 ##
20688 \begin_inset Quotes erd
20689 \end_inset
20690
20691 .
20692  This will be replaced by the counter number itself.
20693  So, for sections, it would be: Section ##.
20694 \end_layout
20695
20696 \begin_layout Description
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 Within
20702 \end_layout
20703
20704 \end_inset
20705
20706  [
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 string
20712 \end_layout
20713
20714 \end_inset
20715
20716 =
20717 \begin_inset Quotes erd
20718 \end_inset
20719
20720
20721 \begin_inset Quotes erd
20722 \end_inset
20723
20724 ] If this is set to the name of another counter, the present counter will
20725  be reset every time the other one is increased.
20726  For example, 
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 subsection
20732 \end_layout
20733
20734 \end_inset
20735
20736  is numbered inside 
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 section
20742 \end_layout
20743
20744 \end_inset
20745
20746 .
20747 \end_layout
20748
20749 \begin_layout Subsection
20750 Font description
20751 \begin_inset CommandInset label
20752 LatexCommand label
20753 name "subsec:Font-description"
20754
20755 \end_inset
20756
20757
20758 \end_layout
20759
20760 \begin_layout Standard
20761 A font description looks like this:
20762 \end_layout
20763
20764 \begin_layout LyX-Code
20765 Font 
20766 \family roman
20767 \emph on
20768 or
20769 \family default
20770 \emph default
20771  LabelFont
20772 \emph on
20773  or
20774 \emph default
20775  DefaultFont
20776 \end_layout
20777
20778 \begin_layout LyX-Code
20779  ...
20780 \end_layout
20781
20782 \begin_layout LyX-Code
20783 EndFont
20784 \end_layout
20785
20786 \begin_layout Standard
20787 The following commands are available:
20788 \end_layout
20789
20790 \begin_layout Description
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 Color
20796 \end_layout
20797
20798 \end_inset
20799
20800  [
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805
20806 \emph on
20807 none
20808 \end_layout
20809
20810 \end_inset
20811
20812
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 black
20818 \end_layout
20819
20820 \end_inset
20821
20822
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 white
20828 \end_layout
20829
20830 \end_inset
20831
20832
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 red
20838 \end_layout
20839
20840 \end_inset
20841
20842
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 green
20848 \end_layout
20849
20850 \end_inset
20851
20852
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 blue
20858 \end_layout
20859
20860 \end_inset
20861
20862
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 cyan
20868 \end_layout
20869
20870 \end_inset
20871
20872
20873 \begin_inset Flex Code
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877 magenta
20878 \end_layout
20879
20880 \end_inset
20881
20882
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 yellow
20888 \end_layout
20889
20890 \end_inset
20891
20892
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 brown
20898 \end_layout
20899
20900 \end_inset
20901
20902
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 darkgray
20908 \end_layout
20909
20910 \end_inset
20911
20912
20913 \begin_inset Flex Code
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917 gray
20918 \end_layout
20919
20920 \end_inset
20921
20922
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927 lightgray
20928 \end_layout
20929
20930 \end_inset
20931
20932
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 lime
20938 \end_layout
20939
20940 \end_inset
20941
20942
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 orange
20948 \end_layout
20949
20950 \end_inset
20951
20952
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 olive
20958 \end_layout
20959
20960 \end_inset
20961
20962
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 pink
20968 \end_layout
20969
20970 \end_inset
20971
20972
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 purple
20978 \end_layout
20979
20980 \end_inset
20981
20982
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 teal
20988 \end_layout
20989
20990 \end_inset
20991
20992
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 violet
20998 \end_layout
20999
21000 \end_inset
21001
21002 ]
21003 \end_layout
21004
21005 \begin_layout Description
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010 Family
21011 \end_layout
21012
21013 \end_inset
21014
21015  [
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020
21021 \emph on
21022 Roman
21023 \end_layout
21024
21025 \end_inset
21026
21027
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 Sans
21033 \end_layout
21034
21035 \end_inset
21036
21037
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 Typewriter
21043 \end_layout
21044
21045 \end_inset
21046
21047 ]
21048 \end_layout
21049
21050 \begin_layout Description
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 Misc
21056 \end_layout
21057
21058 \end_inset
21059
21060  [
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 string
21066 \end_layout
21067
21068 \end_inset
21069
21070 ] Valid arguments are: 
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 emph
21076 \end_layout
21077
21078 \end_inset
21079
21080
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 noun
21086 \end_layout
21087
21088 \end_inset
21089
21090
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 strikeout
21096 \end_layout
21097
21098 \end_inset
21099
21100
21101 \begin_inset Flex Code
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105 underbar
21106 \end_layout
21107
21108 \end_inset
21109
21110
21111 \begin_inset Flex Code
21112 status collapsed
21113
21114 \begin_layout Plain Layout
21115 uuline
21116 \end_layout
21117
21118 \end_inset
21119
21120
21121 \begin_inset Flex Code
21122 status collapsed
21123
21124 \begin_layout Plain Layout
21125 uwave
21126 \end_layout
21127
21128 \end_inset
21129
21130
21131 \begin_inset Flex Code
21132 status collapsed
21133
21134 \begin_layout Plain Layout
21135 no_emph
21136 \end_layout
21137
21138 \end_inset
21139
21140
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 no_noun
21146 \end_layout
21147
21148 \end_inset
21149
21150
21151 \begin_inset Flex Code
21152 status collapsed
21153
21154 \begin_layout Plain Layout
21155 no_strikeout
21156 \end_layout
21157
21158 \end_inset
21159
21160
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 no_bar
21166 \end_layout
21167
21168 \end_inset
21169
21170
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 no_uuline
21176 \end_layout
21177
21178 \end_inset
21179
21180  and 
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 no_uwave
21186 \end_layout
21187
21188 \end_inset
21189
21190 .
21191  Each of these turns on or off the corresponding attribute.
21192  For example, 
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 emph
21198 \end_layout
21199
21200 \end_inset
21201
21202  turns on emphasis, and 
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 no_emph
21208 \end_layout
21209
21210 \end_inset
21211
21212  turns it off.
21213  
21214 \begin_inset Newline newline
21215 \end_inset
21216
21217 If the latter seems puzzling, remember that the font settings for the present
21218  context are generally inherited from the surrounding context.
21219  So 
21220 \begin_inset Flex Code
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224 no_emph
21225 \end_layout
21226
21227 \end_inset
21228
21229  would turn off the emphasis that was anyway in effect, say, in a theorem
21230  environment.
21231 \end_layout
21232
21233 \begin_layout Description
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 Series
21239 \end_layout
21240
21241 \end_inset
21242
21243  [
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248
21249 \emph on
21250 Medium
21251 \end_layout
21252
21253 \end_inset
21254
21255
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 Bold
21261 \end_layout
21262
21263 \end_inset
21264
21265
21266 \end_layout
21267
21268 \begin_layout Description
21269 \begin_inset Flex Code
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273 Shape
21274 \end_layout
21275
21276 \end_inset
21277
21278  [
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283
21284 \emph on
21285 Up
21286 \end_layout
21287
21288 \end_inset
21289
21290
21291 \begin_inset Flex Code
21292 status collapsed
21293
21294 \begin_layout Plain Layout
21295 Italic
21296 \end_layout
21297
21298 \end_inset
21299
21300
21301 \begin_inset Flex Code
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305 SmallCaps
21306 \end_layout
21307
21308 \end_inset
21309
21310
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 Slanted
21316 \end_layout
21317
21318 \end_inset
21319
21320
21321 \end_layout
21322
21323 \begin_layout Description
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 Size
21329 \end_layout
21330
21331 \end_inset
21332
21333  [
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 tiny
21339 \end_layout
21340
21341 \end_inset
21342
21343
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348 small
21349 \end_layout
21350
21351 \end_inset
21352
21353
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358
21359 \emph on
21360 normal
21361 \end_layout
21362
21363 \end_inset
21364
21365
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 large
21371 \end_layout
21372
21373 \end_inset
21374
21375
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 larger
21381 \end_layout
21382
21383 \end_inset
21384
21385
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390 largest
21391 \end_layout
21392
21393 \end_inset
21394
21395
21396 \begin_inset Flex Code
21397 status collapsed
21398
21399 \begin_layout Plain Layout
21400 huge
21401 \end_layout
21402
21403 \end_inset
21404
21405
21406 \begin_inset Flex Code
21407 status collapsed
21408
21409 \begin_layout Plain Layout
21410 giant
21411 \end_layout
21412
21413 \end_inset
21414
21415 ]
21416 \end_layout
21417
21418 \begin_layout Subsection
21419
21420 \change_inserted -712698321 1483869872
21421 \begin_inset CommandInset label
21422 LatexCommand label
21423 name "subsec:Citation-engine-description"
21424
21425 \end_inset
21426
21427 Citation engine description
21428 \end_layout
21429
21430 \begin_layout Standard
21431
21432 \change_inserted -712698321 1483875281
21433 The 
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438
21439 \change_inserted -712698321 1483869913
21440 CiteEngine
21441 \change_unchanged
21442
21443 \end_layout
21444
21445 \end_inset
21446
21447  blocks, as used mainly in cite engine files (see 
21448 \begin_inset CommandInset ref
21449 LatexCommand ref
21450 reference "subsec:Cite-Engine-Files"
21451 plural "false"
21452 caps "false"
21453 noprefix "false"
21454
21455 \end_inset
21456
21457 ), define the citation commands provided by a specific 
21458 \begin_inset Quotes eld
21459 \end_inset
21460
21461 cite engine
21462 \begin_inset Quotes erd
21463 \end_inset
21464
21465 .
21466  A cite engine, in \SpecialChar LyX
21467  terms, is way specific way to format citations, using
21468  numbers, author names and/or years.
21469  Currently, \SpecialChar LyX
21470  supports three such engine types, namely:
21471 \end_layout
21472
21473 \begin_layout Enumerate
21474
21475 \change_inserted -712698321 1483875764
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480
21481 \change_inserted -712698321 1483870430
21482 default
21483 \change_unchanged
21484
21485 \end_layout
21486
21487 \end_inset
21488
21489 : the default Bib\SpecialChar TeX
21490  way to format citations, a simple numeric style (e.
21491 \begin_inset space \thinspace{}
21492 \end_inset
21493
21494 g., 
21495 \begin_inset Quotes eld
21496 \end_inset
21497
21498 [1]
21499 \begin_inset Quotes erd
21500 \end_inset
21501
21502 )
21503 \end_layout
21504
21505 \begin_layout Enumerate
21506
21507 \change_inserted -712698321 1483875766
21508 \begin_inset Flex Code
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512
21513 \change_inserted -712698321 1483870434
21514 authoryear
21515 \change_unchanged
21516
21517 \end_layout
21518
21519 \end_inset
21520
21521 : Harvard-styled citations using author names and publication year (e.
21522 \begin_inset space \thinspace{}
21523 \end_inset
21524
21525 g., 
21526 \begin_inset Quotes eld
21527 \end_inset
21528
21529 Smith and Miller (2017b)
21530 \begin_inset Quotes erd
21531 \end_inset
21532
21533 )
21534 \end_layout
21535
21536 \begin_layout Enumerate
21537
21538 \change_inserted -712698321 1483875769
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543
21544 \change_inserted -712698321 1483870457
21545 numerical
21546 \change_unchanged
21547
21548 \end_layout
21549
21550 \end_inset
21551
21552 : extended numerical citations that also allow for author or title next
21553  to the number (e.
21554 \begin_inset space \thinspace{}
21555 \end_inset
21556
21557 g., 
21558 \begin_inset Quotes eld
21559 \end_inset
21560
21561 Smith and Miller [1]
21562 \begin_inset Quotes erd
21563 \end_inset
21564
21565 )
21566 \end_layout
21567
21568 \begin_layout Standard
21569
21570 \change_inserted -712698321 1483870566
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575
21576 \change_inserted -712698321 1483870552
21577 CiteEngine
21578 \end_layout
21579
21580 \end_inset
21581
21582  blocks look like this:
21583 \end_layout
21584
21585 \begin_layout LyX-Code
21586
21587 \change_inserted -712698321 1483870590
21588 CiteEngine default
21589 \end_layout
21590
21591 \begin_layout LyX-Code
21592
21593 \change_inserted -712698321 1483870615
21594  cite
21595 \end_layout
21596
21597 \begin_layout LyX-Code
21598
21599 \change_inserted -712698321 1483870633
21600  Citep*[][]
21601 \end_layout
21602
21603 \begin_layout LyX-Code
21604
21605 \change_inserted -712698321 1483870652
21606  citeyearpar[][]=parencite*
21607 \end_layout
21608
21609 \begin_layout LyX-Code
21610
21611 \change_inserted -712698321 1483870652
21612  ...
21613 \end_layout
21614
21615 \begin_layout LyX-Code
21616
21617 \change_inserted -712698321 1483870668
21618 End
21619 \end_layout
21620
21621 \begin_layout Standard
21622
21623 \change_inserted -712698321 1483871113
21624 The tag following 
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629
21630 \change_inserted -712698321 1483871085
21631 CiteEngine
21632 \end_layout
21633
21634 \end_inset
21635
21636  denotes the engine.
21637  The individual lines respectively define a cite command or cite command
21638  paradigm supported by this engine.
21639  The line can be as simple as a cite command that is used both to name the
21640  respective \SpecialChar LyX
21641  command and the \SpecialChar LaTeX
21642  output or more complex in order to differentiate
21643  things.
21644  
21645 \change_deleted -712698321 1483871114
21646
21647 \end_layout
21648
21649 \begin_layout Standard
21650
21651 \change_inserted -712698321 1483871119
21652 The full syntax is:
21653 \end_layout
21654
21655 \begin_layout LyX-Code
21656
21657 \change_inserted -712698321 1484997816
21658 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21659 \end_layout
21660
21661 \begin_layout Itemize
21662
21663 \change_inserted -712698321 1483871222
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668
21669 \change_inserted -712698321 1483871181
21670 LyXName
21671 \change_unchanged
21672
21673 \end_layout
21674
21675 \end_inset
21676
21677 : The name as used in the 
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682
21683 \change_inserted -712698321 1483871216
21684 *.lyx
21685 \change_unchanged
21686
21687 \end_layout
21688
21689 \end_inset
21690
21691  file.
21692 \end_layout
21693
21694 \begin_deeper
21695 \begin_layout Standard
21696
21697 \change_inserted -712698321 1483871487
21698 For portability reasons, we try to use the same name for same-formatted
21699  commands in different cite packages (thus many names stem from natbib,
21700  and thus we need to differentiate a 
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705
21706 \change_inserted -712698321 1483871402
21707 latexcmd
21708 \end_layout
21709
21710 \end_inset
21711
21712  sometimes, if the \SpecialChar LaTeX
21713  command names differ).
21714 \end_layout
21715
21716 \end_deeper
21717 \begin_layout Itemize
21718
21719 \change_inserted -712698321 1483871583
21720 \begin_inset Flex Code
21721 status collapsed
21722
21723 \begin_layout Plain Layout
21724
21725 \change_inserted -712698321 1483871186
21726 alias
21727 \change_unchanged
21728
21729 \end_layout
21730
21731 \end_inset
21732
21733 : a (comma-separated) list of commands that fall back to the given 
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738
21739 \change_inserted -712698321 1483871257
21740 LyXName
21741 \end_layout
21742
21743 \end_inset
21744
21745  in the current engine.
21746  This eases the switch of citation packages and engines.
21747  The 
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752
21753 \change_inserted -712698321 1483871559
21754 alias
21755 \end_layout
21756
21757 \end_inset
21758
21759  can be compared to 
21760 \begin_inset Flex Code
21761 status collapsed
21762
21763 \begin_layout Plain Layout
21764
21765 \change_inserted -712698321 1483871278
21766 ObsoletedBy
21767 \change_unchanged
21768
21769 \end_layout
21770
21771 \end_inset
21772
21773  in layout definitions.
21774 \end_layout
21775
21776 \begin_layout Itemize
21777
21778 \change_inserted -712698321 1483871307
21779 \begin_inset Flex Code
21780 status collapsed
21781
21782 \begin_layout Plain Layout
21783
21784 \change_inserted -712698321 1483871296
21785 latexcmd
21786 \change_unchanged
21787
21788 \end_layout
21789
21790 \end_inset
21791
21792 : The actual \SpecialChar LaTeX
21793  command that is output.
21794  
21795 \end_layout
21796
21797 \begin_layout Standard
21798
21799 \change_inserted -712698321 1483871348
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804
21805 \change_inserted -712698321 1483871316
21806 Alias
21807 \change_unchanged
21808
21809 \end_layout
21810
21811 \end_inset
21812
21813  and 
21814 \begin_inset Flex Code
21815 status collapsed
21816
21817 \begin_layout Plain Layout
21818
21819 \change_inserted -712698321 1483871321
21820 latexcmd
21821 \change_unchanged
21822
21823 \end_layout
21824
21825 \end_inset
21826
21827  are optional.
21828  If no 
21829 \begin_inset Flex Code
21830 status collapsed
21831
21832 \begin_layout Plain Layout
21833
21834 \change_inserted -712698321 1483871333
21835 latexcmd
21836 \end_layout
21837
21838 \end_inset
21839
21840  is given, the 
21841 \begin_inset Flex Code
21842 status collapsed
21843
21844 \begin_layout Plain Layout
21845
21846 \change_inserted -712698321 1483871340
21847 LyXName
21848 \end_layout
21849
21850 \end_inset
21851
21852  will be output to \SpecialChar LaTeX
21853 .
21854 \end_layout
21855
21856 \begin_layout Standard
21857
21858 \change_inserted -712698321 1483871604
21859 Note further:
21860 \end_layout
21861
21862 \begin_layout Itemize
21863
21864 \change_inserted -712698321 1483871664
21865 Capitalization indicates that the command also has a capitalized form (
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870
21871 \change_inserted -712698321 1483871622
21872
21873 \backslash
21874 Latexcmd
21875 \change_unchanged
21876
21877 \end_layout
21878
21879 \end_inset
21880
21881  vs.
21882  
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887
21888 \change_inserted -712698321 1483871626
21889
21890 \backslash
21891 latexcmd
21892 \change_unchanged
21893
21894 \end_layout
21895
21896 \end_inset
21897
21898 ).
21899  These usually enforce up-casing of name prefixes (
21900 \emph on
21901 von Goethe
21902 \emph default
21903  
21904 \begin_inset Formula $\Rightarrow$
21905 \end_inset
21906
21907  
21908 \emph on
21909 Von Goethe
21910 \emph default
21911 ).
21912 \end_layout
21913
21914 \begin_layout Itemize
21915
21916 \change_inserted -712698321 1483871690
21917 Brackets 
21918 \begin_inset Flex Code
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922
21923 \change_inserted -712698321 1483871670
21924 []
21925 \change_unchanged
21926
21927 \end_layout
21928
21929 \end_inset
21930
21931  indicate the number of optional arguments (there can be 0–2).
21932 \end_layout
21933
21934 \begin_layout Itemize
21935
21936 \change_inserted -712698321 1483871747
21937 A star 
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942
21943 \change_inserted -712698321 1483871698
21944 *
21945 \change_unchanged
21946
21947 \end_layout
21948
21949 \end_inset
21950
21951  indicates there is a starred version of the command (
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956
21957 \change_inserted -712698321 1483871718
21958
21959 \backslash
21960 latexcmd*
21961 \change_unchanged
21962
21963 \end_layout
21964
21965 \end_inset
21966
21967  vs.
21968  
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973
21974 \change_inserted -712698321 1483871724
21975
21976 \backslash
21977 latexcmd
21978 \change_unchanged
21979
21980 \end_layout
21981
21982 \end_inset
21983
21984 ).
21985  
21986 \end_layout
21987
21988 \begin_deeper
21989 \begin_layout Standard
21990
21991 \change_inserted -712698321 1483871864
21992 By default, the starred version means: Output all authors even if it should
21993  be shortened with 
21994 \begin_inset Quotes eld
21995 \end_inset
21996
21997 et al.
21998 \begin_inset Quotes erd
21999 \end_inset
22000
22001  due to the 
22002 \begin_inset Flex Code
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006
22007 \change_inserted -712698321 1483871835
22008 MaxCiteNames
22009 \change_unchanged
22010
22011 \end_layout
22012
22013 \end_inset
22014
22015  threshold.
22016 \end_layout
22017
22018 \begin_layout Standard
22019
22020 \change_inserted -712698321 1483872045
22021 If the star has a different meaning for a given command, it can be specified
22022  in angle brackets: 
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027
22028 \change_inserted -712698321 1483871856
22029 <!_stardesc!_stardesctooltip>
22030 \change_unchanged
22031
22032 \end_layout
22033
22034 \end_inset
22035
22036 .
22037  Maximal two translatable macro keywords, marked by the prefix 
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042
22043 \change_inserted -712698321 1483872014
22044 !_
22045 \change_unchanged
22046
22047 \end_layout
22048
22049 \end_inset
22050
22051 , can be given.
22052  The first points to the string that replaces the 
22053 \begin_inset Quotes eld
22054 \end_inset
22055
22056 Full aut&hor list
22057 \begin_inset Quotes erd
22058 \end_inset
22059
22060  checkbox label in the citation dialog, the second one to an optional tool
22061  tip for this checkbox.
22062  
22063 \end_layout
22064
22065 \begin_layout Standard
22066
22067 \change_inserted -712698321 1483872164
22068 Note that these two macros have to be defined in a 
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073
22074 \change_inserted -712698321 1483871983
22075 CiteFormat
22076 \change_unchanged
22077
22078 \end_layout
22079
22080 \end_inset
22081
22082  (see next section), dropping the 
22083 \begin_inset Flex Code
22084 status collapsed
22085
22086 \begin_layout Plain Layout
22087
22088 \change_inserted -712698321 1483872023
22089 !
22090 \change_unchanged
22091
22092 \end_layout
22093
22094 \end_inset
22095
22096  from the prefix, like this: 
22097 \end_layout
22098
22099 \begin_layout LyX-Code
22100
22101 \change_inserted -712698321 1483872092
22102 _stardesc Sta&rred command label
22103 \end_layout
22104
22105 \begin_layout LyX-Code
22106
22107 \change_inserted -712698321 1484997832
22108 _stardesctooltip Tooltip for the starred command checkbox.
22109 \end_layout
22110
22111 \end_deeper
22112 \begin_layout Itemize
22113
22114 \change_inserted -712698321 1484997948
22115 A dollar sign 
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120
22121 \change_inserted -712698321 1484997871
22122 $
22123 \change_unchanged
22124
22125 \end_layout
22126
22127 \end_inset
22128
22129  indicates that this command features 
22130 \begin_inset Quotes eld
22131 \end_inset
22132
22133 qualified citation lists
22134 \begin_inset Quotes erd
22135 \end_inset
22136
22137 .
22138  This is a 
22139 \family sans
22140 Biblatex
22141 \family default
22142 -specific feature for multi-reference citations where an individual pre-
22143  and postnote can be given to each reference in the list.
22144  Please refer to the 
22145 \family sans
22146 Biblatex
22147 \family default
22148  manual for details.
22149 \end_layout
22150
22151 \begin_layout Subsection
22152 \begin_inset CommandInset label
22153 LatexCommand label
22154 name "subsec:Citation-format-description"
22155
22156 \end_inset
22157
22158 Citation format description
22159 \end_layout
22160
22161 \begin_layout Standard
22162 The 
22163 \begin_inset Flex Code
22164 status collapsed
22165
22166 \begin_layout Plain Layout
22167 CiteFormat
22168 \end_layout
22169
22170 \end_inset
22171
22172  blocks are used to describe how bibliographic information should be displayed,
22173  both within \SpecialChar LyX
22174  itself (in the citation dialog and in tooltips, for example)
22175  and in XHTML output.
22176  Such a block might look like this:
22177 \end_layout
22178
22179 \begin_layout LyX-Code
22180 CiteFormat
22181 \end_layout
22182
22183 \begin_layout LyX-Code
22184  article ...
22185 \end_layout
22186
22187 \begin_layout LyX-Code
22188  book ...
22189 \end_layout
22190
22191 \begin_layout LyX-Code
22192 End
22193 \change_inserted -712698321 1483867197
22194
22195 \end_layout
22196
22197 \begin_layout Standard
22198
22199 \change_inserted -712698321 1483867200
22200 or
22201 \end_layout
22202
22203 \begin_layout LyX-Code
22204
22205 \change_inserted -712698321 1483867195
22206 CiteFormat
22207 \end_layout
22208
22209 \begin_layout LyX-Code
22210
22211 \change_inserted -712698321 1483867204
22212  cite ...
22213 \end_layout
22214
22215 \begin_layout LyX-Code
22216
22217 \change_inserted -712698321 1483867359
22218  citet*[][] ...
22219 \end_layout
22220
22221 \begin_layout LyX-Code
22222
22223 \change_inserted -712698321 1483867195
22224 End
22225 \change_unchanged
22226
22227 \end_layout
22228
22229 \begin_layout Standard
22230
22231 \change_inserted -712698321 1483867269
22232 In the first case, 
22233 \change_deleted -712698321 1483867270
22234 T
22235 \change_inserted -712698321 1483867270
22236 t
22237 \change_unchanged
22238 he individual lines define how the bibliographic information associated
22239  with an article or book, respectively, is to be displayed, and such a definitio
22240 n can be given for any 
22241 \change_deleted -712698321 1483867550
22242 `
22243 \change_inserted -712698321 1483867550
22244
22245 \begin_inset Quotes els
22246 \end_inset
22247
22248
22249 \change_unchanged
22250 entry type
22251 \change_deleted -712698321 1483867552
22252 '
22253 \change_inserted -712698321 1483867552
22254
22255 \begin_inset Quotes ers
22256 \end_inset
22257
22258
22259 \change_unchanged
22260  that might be present in a Bib\SpecialChar TeX
22261  file.
22262  \SpecialChar LyX
22263  defines a default format in the source code that will be used if no specific
22264  definition has been given.
22265  \SpecialChar LyX
22266  predefines several formats in the file 
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 stdciteformats.inc
22272 \end_layout
22273
22274 \end_inset
22275
22276 , which is included in most of \SpecialChar LyX
22277 's document classes.
22278 \change_inserted -712698321 1483867288
22279
22280 \end_layout
22281
22282 \begin_layout Standard
22283
22284 \change_inserted -712698321 1483875512
22285 In the second case, the lines define how a specific citation command (in
22286  the example 
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291
22292 \change_inserted -712698321 1483867674
22293
22294 \backslash
22295 cite
22296 \change_unchanged
22297
22298 \end_layout
22299
22300 \end_inset
22301
22302
22303 \begin_inset Flex Code
22304 status collapsed
22305
22306 \begin_layout Plain Layout
22307
22308 \change_inserted -712698321 1483867679
22309
22310 \backslash
22311 citet
22312 \change_unchanged
22313
22314 \end_layout
22315
22316 \end_inset
22317
22318 ) is to be displayed on the citation inset label, in the citation dialog,
22319  menu or XHTML output.
22320  \SpecialChar LyX
22321  defines such formats for the citation style variants it supports via 
22322 \family sans
22323 Document\SpecialChar menuseparator
22324 Setting\SpecialChar menuseparator
22325 Bibliography\SpecialChar ldots
22326
22327 \family default
22328  in specific 
22329 \begin_inset Flex Code
22330 status collapsed
22331
22332 \begin_layout Plain Layout
22333
22334 \change_inserted -712698321 1483875503
22335 *.citeengine
22336 \end_layout
22337
22338 \end_inset
22339
22340  files that are shipped with \SpecialChar LyX
22341  (see 
22342 \begin_inset CommandInset ref
22343 LatexCommand ref
22344 reference "subsec:Cite-Engine-Files"
22345 plural "false"
22346 caps "false"
22347 noprefix "false"
22348
22349 \end_inset
22350
22351 ).
22352 \change_unchanged
22353
22354 \end_layout
22355
22356 \begin_layout Standard
22357 The definitions use a simple language that allows Bib\SpecialChar TeX
22358  keys to be replaced
22359  with their values.
22360  Keys should be enclosed in 
22361 \begin_inset Flex Code
22362 status collapsed
22363
22364 \begin_layout Plain Layout
22365 %
22366 \end_layout
22367
22368 \end_inset
22369
22370  signs, e.g.: 
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 %author%
22376 \end_layout
22377
22378 \end_inset
22379
22380 .
22381  So a simple definition might look like this:
22382 \end_layout
22383
22384 \begin_layout LyX-Code
22385 misc %author%, 
22386 \begin_inset Quotes eld
22387 \end_inset
22388
22389 %title%
22390 \begin_inset Quotes erd
22391 \end_inset
22392
22393 .
22394 \end_layout
22395
22396 \begin_layout Standard
22397 This would print the author, followed by a comma, followed by the title,
22398  in quotes, followed by a period.
22399 \end_layout
22400
22401 \begin_layout Standard
22402 Of course, sometimes you may want to print a key only if it exists.
22403  This can be done by using a conditional construction, such as: 
22404 \begin_inset Flex Code
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 {%volume%[[vol.
22409 \begin_inset space ~
22410 \end_inset
22411
22412 %volume%]]}
22413 \end_layout
22414
22415 \end_inset
22416
22417 .
22418  This says: If the 
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 volume
22424 \end_layout
22425
22426 \end_inset
22427
22428  key exists, then print 
22429 \begin_inset Quotes eld
22430 \end_inset
22431
22432 vol.
22433 \begin_inset space ~
22434 \end_inset
22435
22436
22437 \begin_inset Quotes erd
22438 \end_inset
22439
22440  followed by the volume key.
22441  It is also possible to have an else clause in the conditional, such as:
22442 \begin_inset Newline newline
22443 \end_inset
22444
22445
22446 \begin_inset Flex Code
22447 status collapsed
22448
22449 \begin_layout Plain Layout
22450 {%author%[[%author%]][[%editor%, ed.]]}
22451 \end_layout
22452
22453 \end_inset
22454
22455 .
22456 \begin_inset Newline newline
22457 \end_inset
22458
22459 Here, the 
22460 \begin_inset Flex Code
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464 author
22465 \end_layout
22466
22467 \end_inset
22468
22469  key is printed if it exists; otherwise, the editor key is printed, followed
22470  by 
22471 \begin_inset Quotes eld
22472 \end_inset
22473
22474 ,
22475 \begin_inset space ~
22476 \end_inset
22477
22478 ed.
22479 \begin_inset Quotes erd
22480 \end_inset
22481
22482  Note that the key is again enclosed in 
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 %
22488 \end_layout
22489
22490 \end_inset
22491
22492  signs; the entire conditional is enclosed in braces; and the if and else
22493  clauses are enclosed in double brackets, 
22494 \begin_inset Quotes eld
22495 \end_inset
22496
22497
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 [[
22503 \end_layout
22504
22505 \end_inset
22506
22507
22508 \begin_inset Quotes eld
22509 \end_inset
22510
22511  and 
22512 \begin_inset Quotes eld
22513 \end_inset
22514
22515
22516 \begin_inset Flex Code
22517 status collapsed
22518
22519 \begin_layout Plain Layout
22520 ]]
22521 \end_layout
22522
22523 \end_inset
22524
22525
22526 \begin_inset Quotes erd
22527 \end_inset
22528
22529 .
22530  There must be no space between any of these.
22531 \change_inserted -712698321 1483867855
22532
22533 \end_layout
22534
22535 \begin_layout Standard
22536
22537 \change_inserted -712698321 1483867910
22538 Next to the entry keys, there are some special keys that can be used for
22539  these conditionals:
22540 \end_layout
22541
22542 \begin_layout Itemize
22543
22544 \change_inserted -712698321 1483868049
22545 \begin_inset Flex Code
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549
22550 \change_inserted -712698321 1483867962
22551 {%dialog%[[true]][[false]]}
22552 \change_unchanged
22553
22554 \end_layout
22555
22556 \end_inset
22557
22558 : process the 
22559 \begin_inset Quotes eld
22560 \end_inset
22561
22562 true
22563 \begin_inset Quotes erd
22564 \end_inset
22565
22566  part for dialogs and menus, the 
22567 \begin_inset Quotes eld
22568 \end_inset
22569
22570 false
22571 \begin_inset Quotes erd
22572 \end_inset
22573
22574  part for other contexts (workarea, export)
22575 \end_layout
22576
22577 \begin_layout Itemize
22578
22579 \change_inserted -712698321 1483868068
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584
22585 \change_inserted -712698321 1483868052
22586 {%export%[[true]][[false]]}
22587 \end_layout
22588
22589 \end_inset
22590
22591 : process the 
22592 \begin_inset Quotes eld
22593 \end_inset
22594
22595 true
22596 \begin_inset Quotes erd
22597 \end_inset
22598
22599  part for export and menus, the 
22600 \begin_inset Quotes eld
22601 \end_inset
22602
22603 false
22604 \begin_inset Quotes erd
22605 \end_inset
22606
22607  part for other contexts (workarea, dialog)
22608 \end_layout
22609
22610 \begin_layout Itemize
22611
22612 \change_inserted -712698321 1483868138
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617
22618 \change_inserted -712698321 1483868076
22619 {%next%[[true]]}
22620 \end_layout
22621
22622 \end_inset
22623
22624 : process the 
22625 \begin_inset Quotes eld
22626 \end_inset
22627
22628 true
22629 \begin_inset Quotes erd
22630 \end_inset
22631
22632  part if another item follows (e.
22633 \begin_inset space \thinspace{}
22634 \end_inset
22635
22636 g., in a citation with multiple keys)
22637 \end_layout
22638
22639 \begin_layout Itemize
22640
22641 \change_inserted -712698321 1483868174
22642 \begin_inset Flex Code
22643 status collapsed
22644
22645 \begin_layout Plain Layout
22646
22647 \change_inserted -712698321 1483868144
22648 {%second%[[true]][[false]]}
22649 \end_layout
22650
22651 \end_inset
22652
22653 : process the 
22654 \begin_inset Quotes eld
22655 \end_inset
22656
22657 true
22658 \begin_inset Quotes erd
22659 \end_inset
22660
22661  if this is the second of multiple items, else the 
22662 \begin_inset Quotes eld
22663 \end_inset
22664
22665 false
22666 \begin_inset Quotes erd
22667 \end_inset
22668
22669  part
22670 \end_layout
22671
22672 \begin_layout Itemize
22673
22674 \change_inserted -712698321 1483868321
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679
22680 \change_inserted -712698321 1483868259
22681 {%ifstar%[[true]][[false]]}
22682 \end_layout
22683
22684 \end_inset
22685
22686 : process the 
22687 \begin_inset Quotes eld
22688 \end_inset
22689
22690 true
22691 \begin_inset Quotes erd
22692 \end_inset
22693
22694  part for starred citation commands (such as 
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699
22700 \change_inserted -712698321 1483868310
22701
22702 \backslash
22703 cite*
22704 \change_unchanged
22705
22706 \end_layout
22707
22708 \end_inset
22709
22710 ), the false part for unstarred
22711 \end_layout
22712
22713 \begin_layout Itemize
22714
22715 \change_inserted -712698321 1483978485
22716 \begin_inset Flex Code
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720
22721 \change_inserted -712698321 1483868330
22722 {%ifentrytype:<type>%[[true]][[false]]}
22723 \end_layout
22724
22725 \end_inset
22726
22727 : process the 
22728 \begin_inset Quotes eld
22729 \end_inset
22730
22731 true
22732 \begin_inset Quotes erd
22733 \end_inset
22734
22735  if the current entry type matches 
22736 \begin_inset Flex Code
22737 status collapsed
22738
22739 \begin_layout Plain Layout
22740
22741 \change_inserted -712698321 1483868364
22742 <type>
22743 \change_unchanged
22744
22745 \end_layout
22746
22747 \end_inset
22748
22749 , else the false part (e.g., in a citation definition: 
22750 \begin_inset Flex Code
22751 status collapsed
22752
22753 \begin_layout Plain Layout
22754
22755 \change_inserted -712698321 1483868420
22756 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22757 \change_unchanged
22758
22759 \end_layout
22760
22761 \end_inset
22762
22763 )
22764 \end_layout
22765
22766 \begin_layout Itemize
22767
22768 \change_inserted -712698321 1484997600
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773
22774 \change_inserted -712698321 1483978499
22775 {%ifmultiple:<authortype>%[[true]][[false]]}
22776 \end_layout
22777
22778 \end_inset
22779
22780 : process the 
22781 \begin_inset Quotes eld
22782 \end_inset
22783
22784 true
22785 \begin_inset Quotes erd
22786 \end_inset
22787
22788  if the current author type (author, editor etc.) has multiple authors, else
22789  the false part (e.g., in a bibliography definition: 
22790 \begin_inset Flex Code
22791 status collapsed
22792
22793 \begin_layout Plain Layout
22794
22795 \change_inserted -712698321 1483978571
22796 {%ifmultiple:editor%[[eds.]][[ed.]]}
22797 \end_layout
22798
22799 \end_inset
22800
22801 )
22802 \end_layout
22803
22804 \begin_layout Itemize
22805
22806 \change_inserted -712698321 1484997681
22807 \begin_inset Flex Code
22808 status collapsed
22809
22810 \begin_layout Plain Layout
22811
22812 \change_inserted -712698321 1484997608
22813 {%ifqualified%[[true]][[false]]}
22814 \end_layout
22815
22816 \end_inset
22817
22818 : process the 
22819 \begin_inset Quotes eld
22820 \end_inset
22821
22822 true
22823 \begin_inset Quotes erd
22824 \end_inset
22825
22826  part if the current citation is a qualified citation list (a specific 
22827 \family sans
22828 Biblatex
22829 \family default
22830  format for multi-reference citations), the false part if this is not the
22831  case.
22832 \change_unchanged
22833
22834 \end_layout
22835
22836 \begin_layout Standard
22837
22838 \change_inserted -712698321 1483978958
22839 We said that 
22840 \begin_inset Flex Code
22841 status collapsed
22842
22843 \begin_layout Plain Layout
22844
22845 \change_inserted -712698321 1483978693
22846 %author%
22847 \end_layout
22848
22849 \end_inset
22850
22851  prints the author key as it is recorded in the bibliography file.
22852  This might not be what you want, since it will result in a string such
22853  as 
22854 \begin_inset Quotes eld
22855 \end_inset
22856
22857 Miller, Peter and Smith, Mary and White, Jane
22858 \begin_inset Quotes erd
22859 \end_inset
22860
22861  (since 
22862 \begin_inset Quotes eld
22863 \end_inset
22864
22865 and
22866 \begin_inset Quotes erd
22867 \end_inset
22868
22869  is used by Bib\SpecialChar TeX
22870  to delimit authors).
22871  \SpecialChar LyX
22872  therefore provides some methods to get properly formatted name lists (which
22873  will also get translated).
22874  The following keys are provided:
22875 \end_layout
22876
22877 \begin_layout Enumerate
22878
22879 \change_inserted -712698321 1483979807
22880 For name lists with pre- and surname, suitable for the main authors/editors
22881  of a bibliography item.
22882  The 
22883 \begin_inset Flex Code
22884 status collapsed
22885
22886 \begin_layout Plain Layout
22887
22888 \change_inserted -712698321 1483979800
22889 <nametype>
22890 \change_unchanged
22891
22892 \end_layout
22893
22894 \end_inset
22895
22896  part denotes the kind of list that is requested (e.g.
22897  
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902
22903 \change_inserted -712698321 1483979807
22904 <nametype:author>
22905 \change_unchanged
22906
22907 \end_layout
22908
22909 \end_inset
22910
22911 ):
22912 \end_layout
22913
22914 \begin_deeper
22915 \begin_layout Itemize
22916
22917 \change_inserted -712698321 1483979186
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922
22923 \change_inserted -712698321 1483979743
22924 %abbrvnames:<nametype>%
22925 \change_unchanged
22926
22927 \end_layout
22928
22929 \end_inset
22930
22931 : Provides a name list which is abbreviated (with 
22932 \begin_inset Quotes eld
22933 \end_inset
22934
22935 et al.
22936 \begin_inset Quotes erd
22937 \end_inset
22938
22939 ) when 
22940 \begin_inset Flex Code
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944
22945 \change_inserted -712698321 1483979186
22946 MaxCiteNames
22947 \change_unchanged
22948
22949 \end_layout
22950
22951 \end_inset
22952
22953  is reached.
22954 \end_layout
22955
22956 \begin_layout Itemize
22957
22958 \change_inserted -712698321 1483979527
22959 \begin_inset Flex Code
22960 status collapsed
22961
22962 \begin_layout Plain Layout
22963
22964 \change_inserted -712698321 1483979748
22965 %fullnames:<nametype>%
22966 \change_unchanged
22967
22968 \end_layout
22969
22970 \end_inset
22971
22972 : Provides a full name list (never abbreviated with 
22973 \begin_inset Quotes eld
22974 \end_inset
22975
22976 et al.
22977 \begin_inset Quotes erd
22978 \end_inset
22979
22980 ).
22981 \end_layout
22982
22983 \begin_layout Itemize
22984
22985 \change_inserted -712698321 1483979553
22986 \begin_inset Flex Code
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990
22991 \change_inserted -712698321 1483980138
22992 %forceabbrvnames:<nametype>%
22993 \change_unchanged
22994
22995 \end_layout
22996
22997 \end_inset
22998
22999 : Provides a name list which is always abbreviated (with 
23000 \begin_inset Quotes eld
23001 \end_inset
23002
23003 et al.
23004 \begin_inset Quotes erd
23005 \end_inset
23006
23007 ) irrespective of 
23008 \begin_inset Flex Code
23009 status collapsed
23010
23011 \begin_layout Plain Layout
23012
23013 \change_inserted -712698321 1483979535
23014 MaxCiteNames
23015 \end_layout
23016
23017 \end_inset
23018
23019 .
23020 \change_unchanged
23021
23022 \end_layout
23023
23024 \end_deeper
23025 \begin_layout Enumerate
23026
23027 \change_inserted -712698321 1483979413
23028 Alternative name lists with pre- and surname, if the order of pre- and surname
23029  inside the bibliography item differs (as in: 
23030 \begin_inset Quotes eld
23031 \end_inset
23032
23033 Miller, John: Some text, in: Mary Smith, ed.: A volume
23034 \begin_inset Quotes erd
23035 \end_inset
23036
23037 ):
23038 \change_unchanged
23039
23040 \end_layout
23041
23042 \begin_deeper
23043 \begin_layout Itemize
23044
23045 \change_inserted -712698321 1483979565
23046 \begin_inset Flex Code
23047 status collapsed
23048
23049 \begin_layout Plain Layout
23050
23051 \change_inserted -712698321 1483979751
23052 %abbrvbynames:<nametype>%
23053 \change_unchanged
23054
23055 \end_layout
23056
23057 \end_inset
23058
23059 : Provides a name list which is abbreviated (with 
23060 \begin_inset Quotes eld
23061 \end_inset
23062
23063 et al.
23064 \begin_inset Quotes erd
23065 \end_inset
23066
23067 ) when 
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072
23073 \change_inserted -712698321 1483979565
23074 MaxCiteNames
23075 \end_layout
23076
23077 \end_inset
23078
23079  is reached.
23080 \change_unchanged
23081
23082 \end_layout
23083
23084 \begin_layout Itemize
23085
23086 \change_inserted -712698321 1483979570
23087 \begin_inset Flex Code
23088 status collapsed
23089
23090 \begin_layout Plain Layout
23091
23092 \change_inserted -712698321 1483979753
23093 %fullbynames:<nametype>%
23094 \change_unchanged
23095
23096 \end_layout
23097
23098 \end_inset
23099
23100 : Provides a full name list (never abbreviated with 
23101 \begin_inset Quotes eld
23102 \end_inset
23103
23104 et al.
23105 \begin_inset Quotes erd
23106 \end_inset
23107
23108 ).
23109 \change_unchanged
23110
23111 \end_layout
23112
23113 \begin_layout Itemize
23114
23115 \change_inserted -712698321 1483979576
23116 \begin_inset Flex Code
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120
23121 \change_inserted -712698321 1483980143
23122 %forceabbrvbynames:<nametype>%
23123 \change_unchanged
23124
23125 \end_layout
23126
23127 \end_inset
23128
23129 : Provides a name list which is always abbreviated (with 
23130 \begin_inset Quotes eld
23131 \end_inset
23132
23133 et al.
23134 \begin_inset Quotes erd
23135 \end_inset
23136
23137 ) irrespective of 
23138 \begin_inset Flex Code
23139 status collapsed
23140
23141 \begin_layout Plain Layout
23142
23143 \change_inserted -712698321 1483979574
23144 MaxCiteNames
23145 \end_layout
23146
23147 \end_inset
23148
23149 .
23150 \end_layout
23151
23152 \end_deeper
23153 \begin_layout Enumerate
23154
23155 \change_inserted -712698321 1483980219
23156 And finally name lists which consist of family names only, as used in author-yea
23157 r citation labels.
23158  these do not take a 
23159 \begin_inset Flex Code
23160 status collapsed
23161
23162 \begin_layout Plain Layout
23163
23164 \change_inserted -712698321 1483979871
23165 <nametype>
23166 \change_unchanged
23167
23168 \end_layout
23169
23170 \end_inset
23171
23172  part, but always return either an author list or, if this does not exist,
23173  an editor list (as common in author-year labels):
23174 \change_unchanged
23175
23176 \end_layout
23177
23178 \begin_deeper
23179 \begin_layout Itemize
23180
23181 \change_inserted -712698321 1483979715
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186
23187 \change_inserted -712698321 1483979700
23188 %abbrvciteauthor%
23189 \change_unchanged
23190
23191 \end_layout
23192
23193 \end_inset
23194
23195 : Provides a name list which is abbreviated (with 
23196 \begin_inset Quotes eld
23197 \end_inset
23198
23199 et al.
23200 \begin_inset Quotes erd
23201 \end_inset
23202
23203 ) when 
23204 \begin_inset Flex Code
23205 status collapsed
23206
23207 \begin_layout Plain Layout
23208
23209 \change_inserted -712698321 1483979715
23210 MaxCiteNames
23211 \end_layout
23212
23213 \end_inset
23214
23215  is reached.
23216 \change_unchanged
23217
23218 \end_layout
23219
23220 \begin_layout Itemize
23221
23222 \change_inserted -712698321 1483979721
23223 \begin_inset Flex Code
23224 status collapsed
23225
23226 \begin_layout Plain Layout
23227
23228 \change_inserted -712698321 1483979703
23229 %fullciteauthor%
23230 \change_unchanged
23231
23232 \end_layout
23233
23234 \end_inset
23235
23236 : Provides a full name list (never abbreviated with 
23237 \begin_inset Quotes eld
23238 \end_inset
23239
23240 et al.
23241 \begin_inset Quotes erd
23242 \end_inset
23243
23244 ).
23245 \change_unchanged
23246
23247 \end_layout
23248
23249 \begin_layout Itemize
23250
23251 \change_inserted -712698321 1483980272
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256
23257 \change_inserted -712698321 1483979705
23258 %forceabbrvciteauthor%
23259 \change_unchanged
23260
23261 \end_layout
23262
23263 \end_inset
23264
23265 : Provides a name list which is always abbreviated (with 
23266 \begin_inset Quotes eld
23267 \end_inset
23268
23269 et al.
23270 \begin_inset Quotes erd
23271 \end_inset
23272
23273 ) irrespective of 
23274 \begin_inset Flex Code
23275 status collapsed
23276
23277 \begin_layout Plain Layout
23278
23279 \change_inserted -712698321 1483979726
23280 MaxCiteNames
23281 \end_layout
23282
23283 \end_inset
23284
23285 .
23286 \end_layout
23287
23288 \end_deeper
23289 \begin_layout Standard
23290
23291 \change_inserted -712698321 1483980314
23292 The order of pre- and surname in the former two lists can be adjusted by
23293  these macros:
23294 \end_layout
23295
23296 \begin_layout Itemize
23297
23298 \change_inserted -712698321 1483980535
23299 \begin_inset Flex Code
23300 status collapsed
23301
23302 \begin_layout Plain Layout
23303
23304 \change_inserted -712698321 1483980354
23305 !firstnameform %surname%, %prename%
23306 \change_unchanged
23307
23308 \end_layout
23309
23310 \end_inset
23311
23312  (first author in lists of type 1)
23313 \end_layout
23314
23315 \begin_layout Itemize
23316
23317 \change_inserted -712698321 1483980557
23318 \begin_inset Flex Code
23319 status collapsed
23320
23321 \begin_layout Plain Layout
23322
23323 \change_inserted -712698321 1483980367
23324 !othernameform %surname%, %prename%
23325 \change_unchanged
23326
23327 \end_layout
23328
23329 \end_inset
23330
23331  (other authors in lists of type 1)
23332 \change_unchanged
23333
23334 \end_layout
23335
23336 \begin_layout Itemize
23337
23338 \change_inserted -712698321 1483980550
23339 \begin_inset Flex Code
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343
23344 \change_inserted -712698321 1483980373
23345 !firstbynameform %prename% %surname%
23346 \change_unchanged
23347
23348 \end_layout
23349
23350 \end_inset
23351
23352  (first author in lists of type 2)
23353 \end_layout
23354
23355 \begin_layout Itemize
23356
23357 \change_inserted -712698321 1483980570
23358 \begin_inset Flex Code
23359 status collapsed
23360
23361 \begin_layout Plain Layout
23362
23363 \change_inserted -712698321 1483980381
23364 !otherbynameform %prename% %surname%
23365 \change_unchanged
23366
23367 \end_layout
23368
23369 \end_inset
23370
23371  (other authors in lists of type 2)
23372 \end_layout
23373
23374 \begin_layout Standard
23375
23376 \change_inserted -712698321 1483980643
23377 This allows you to configure namings like 
23378 \begin_inset Quotes eld
23379 \end_inset
23380
23381 Miller, Peter and Mary Smith: \SpecialChar ldots
23382 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23383
23384 \begin_inset Quotes erd
23385 \end_inset
23386
23387 .
23388 \change_unchanged
23389
23390 \end_layout
23391
23392 \begin_layout Standard
23393 There is one other piece of syntax available in definitions, which looks
23394  like this: 
23395 \begin_inset Flex Code
23396 status collapsed
23397
23398 \begin_layout Plain Layout
23399 {!<i>!}
23400 \end_layout
23401
23402 \end_inset
23403
23404 .
23405  This defines a piece of formatting information that is to be used when
23406  creating 
23407 \begin_inset Quotes eld
23408 \end_inset
23409
23410 rich text
23411 \begin_inset Quotes erd
23412 \end_inset
23413
23414 .
23415  Obviously, we do not want to output HTML tags when writing plain text,
23416  so they should be wrapped in 
23417 \begin_inset Quotes eld
23418 \end_inset
23419
23420 {!
23421 \begin_inset Quotes erd
23422 \end_inset
23423
23424  and 
23425 \begin_inset Quotes eld
23426 \end_inset
23427
23428 !}
23429 \begin_inset Quotes erd
23430 \end_inset
23431
23432 .
23433 \end_layout
23434
23435 \begin_layout Standard
23436 Two special sorts of definitions are also possible in a 
23437 \begin_inset Flex Code
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 CiteFormat
23442 \end_layout
23443
23444 \end_inset
23445
23446  block.
23447  An example of the first would be:
23448 \end_layout
23449
23450 \begin_layout LyX-Code
23451 !quotetitle 
23452 \begin_inset Quotes eld
23453 \end_inset
23454
23455 %title%
23456 \begin_inset Quotes erd
23457 \end_inset
23458
23459
23460 \end_layout
23461
23462 \begin_layout Standard
23463 This is an abbreviation, or macro, and it can be used by treating it as
23464  if it were a key: 
23465 \begin_inset Flex Code
23466 status collapsed
23467
23468 \begin_layout Plain Layout
23469 %!quotetitle%
23470 \end_layout
23471
23472 \end_inset
23473
23474 .
23475  \SpecialChar LyX
23476  will treat 
23477 \begin_inset Flex Code
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 %!quotetitle%
23482 \end_layout
23483
23484 \end_inset
23485
23486  exactly as it would treat its definition.
23487  So, let us issue the obvious 
23488 \emph on
23489 warning
23490 \emph default
23491 .
23492  Do not do this:
23493 \end_layout
23494
23495 \begin_layout LyX-Code
23496 !funfun %funfun%
23497 \end_layout
23498
23499 \begin_layout Standard
23500 or anything like it.
23501  \SpecialChar LyX
23502  shouldn't go into an infinite loop, but it may go into a long one before
23503  it gives up.
23504 \end_layout
23505
23506 \begin_layout Standard
23507 The second sort of special definition might look like this:
23508 \end_layout
23509
23510 \begin_layout LyX-Code
23511 _pptext pp.
23512 \end_layout
23513
23514 \begin_layout Standard
23515 This defines a translatable piece of text, which allows relevant parts of
23516  the bibliography 
23517 \change_inserted -712698321 1483868477
23518 or citation 
23519 \change_unchanged
23520 to be translated.
23521  It can be included in a definition by treating it as a key: 
23522 \begin_inset Flex Code
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526 %_pptext%
23527 \end_layout
23528
23529 \end_inset
23530
23531 .
23532  Several of these are predefined in 
23533 \begin_inset Flex Code
23534 status collapsed
23535
23536 \begin_layout Plain Layout
23537 stdciteformats.inc
23538 \end_layout
23539
23540 \end_inset
23541
23542
23543 \change_inserted -712698321 1483868503
23544  and the diverse 
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549
23550 \change_inserted -712698321 1483868503
23551 *.citeengine
23552 \change_unchanged
23553
23554 \end_layout
23555
23556 \end_inset
23557
23558  files
23559 \change_unchanged
23560 .
23561  Note that these are not macros, in the sense just defined.
23562  They will not be expanded.
23563 \end_layout
23564
23565 \begin_layout Standard
23566 So here then is an example that use all these features:
23567 \begin_inset VSpace defskip
23568 \end_inset
23569
23570
23571 \end_layout
23572
23573 \begin_layout Standard
23574 \noindent
23575
23576 \family typewriter
23577 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
23578 \end_layout
23579
23580 \begin_layout Standard
23581 \begin_inset VSpace defskip
23582 \end_inset
23583
23584 This defines a macro that prints the author, followed by a comma, if the
23585  
23586 \begin_inset Flex Code
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590 author
23591 \end_layout
23592
23593 \end_inset
23594
23595  key is defined, or else prints the name of the editor, followed by the
23596  
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 _edtext
23602 \end_layout
23603
23604 \end_inset
23605
23606  or its translation (it is by default 
23607 \begin_inset Quotes eld
23608 \end_inset
23609
23610 ed.
23611 \begin_inset Quotes erd
23612 \end_inset
23613
23614 ), if the 
23615 \begin_inset Flex Code
23616 status collapsed
23617
23618 \begin_layout Plain Layout
23619 editor
23620 \end_layout
23621
23622 \end_inset
23623
23624  key is defined.
23625  Note that this is in fact defined in 
23626 \begin_inset Flex Code
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630 stdciteformats.inc
23631 \end_layout
23632
23633 \end_inset
23634
23635 , so you can use it in your own definitions, or re-definitions, if you load
23636  that file first.
23637 \end_layout
23638
23639 \begin_layout Section
23640 \begin_inset CommandInset label
23641 LatexCommand label
23642 name "sec:Tags-for-XHTML"
23643
23644 \end_inset
23645
23646 Tags for XHTML output
23647 \end_layout
23648
23649 \begin_layout Standard
23650 As with \SpecialChar LaTeX
23651  or DocBook, the format of \SpecialChar LyX
23652 's XHTML output is also controlled by
23653  layout information.
23654  In general, \SpecialChar LyX
23655  provides sensible defaults and, as mentioned earlier, it will
23656  even construct default CSS style rules from the other layout tags.
23657  For example, \SpecialChar LyX
23658  will attempt to use the information provided in the 
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 Font
23664 \end_layout
23665
23666 \end_inset
23667
23668  declaration for the Chapter style to write CSS that will appropriately
23669  format chapter headings.
23670 \end_layout
23671
23672 \begin_layout Standard
23673 In many cases, then, you may not have to do anything at all to get acceptable
23674  XHTML output for your own environments, custom insets, and so forth.
23675  But in some cases you will, and so \SpecialChar LyX
23676  provides a number of layout tags that
23677  can be used to customize the XHTML and CSS that are generated.
23678 \end_layout
23679
23680 \begin_layout Standard
23681 Note that there are two tags, 
23682 \begin_inset Flex Code
23683 status collapsed
23684
23685 \begin_layout Plain Layout
23686 HTMLPreamble
23687 \end_layout
23688
23689 \end_inset
23690
23691  and 
23692 \begin_inset Flex Code
23693 status collapsed
23694
23695 \begin_layout Plain Layout
23696 AddToHTMLPreamble
23697 \end_layout
23698
23699 \end_inset
23700
23701  that may appear outside style and inset declarations.
23702  See 
23703 \begin_inset CommandInset ref
23704 LatexCommand ref
23705 reference "subsec:General-text-class"
23706
23707 \end_inset
23708
23709  for details on these.
23710 \end_layout
23711
23712 \begin_layout Subsection
23713 \begin_inset CommandInset label
23714 LatexCommand label
23715 name "subsec:Paragraph-Style-XHTML"
23716
23717 \end_inset
23718
23719 Paragraph styles
23720 \end_layout
23721
23722 \begin_layout Standard
23723 The sort of XHTML \SpecialChar LyX
23724  outputs for a paragraph depends upon whether we are dealing
23725  with a normal paragraph, a command, or an environment, where this is itself
23726  determined by the contents of the corresponding 
23727 \begin_inset Flex Code
23728 status collapsed
23729
23730 \begin_layout Plain Layout
23731 \SpecialChar LaTeX
23732 Type
23733 \end_layout
23734
23735 \end_inset
23736
23737  tag.
23738  
23739 \end_layout
23740
23741 \begin_layout Standard
23742 For a command or normal paragraph, the output XHTML has the following form:
23743 \end_layout
23744
23745 \begin_layout LyX-Code
23746 <tag attr=
23747 \begin_inset Quotes erd
23748 \end_inset
23749
23750 value
23751 \begin_inset Quotes erd
23752 \end_inset
23753
23754 >
23755 \end_layout
23756
23757 \begin_layout LyX-Code
23758 <labeltag attr=
23759 \begin_inset Quotes erd
23760 \end_inset
23761
23762 value
23763 \begin_inset Quotes erd
23764 \end_inset
23765
23766 >Label</labeltag>
23767 \end_layout
23768
23769 \begin_layout LyX-Code
23770 Contents of the paragraph.
23771 \end_layout
23772
23773 \begin_layout LyX-Code
23774 </tag>
23775 \end_layout
23776
23777 \begin_layout Standard
23778 The label tags are of course omitted if the paragraph does not have a label.
23779 \end_layout
23780
23781 \begin_layout Standard
23782 For an environment that is not some sort of list, the XHTML takes this form:
23783 \end_layout
23784
23785 \begin_layout LyX-Code
23786 <tag attr=
23787 \begin_inset Quotes erd
23788 \end_inset
23789
23790 value
23791 \begin_inset Quotes erd
23792 \end_inset
23793
23794 >
23795 \end_layout
23796
23797 \begin_layout LyX-Code
23798 <itemtag attr=
23799 \begin_inset Quotes erd
23800 \end_inset
23801
23802 value
23803 \begin_inset Quotes erd
23804 \end_inset
23805
23806 ><labeltag attr=
23807 \begin_inset Quotes erd
23808 \end_inset
23809
23810 value
23811 \begin_inset Quotes erd
23812 \end_inset
23813
23814 >Environment Label</labeltag>First paragraph.</itemtag>
23815 \end_layout
23816
23817 \begin_layout LyX-Code
23818 <itemtag>Second paragraph.</itemtag>
23819 \end_layout
23820
23821 \begin_layout LyX-Code
23822 </tag>
23823 \end_layout
23824
23825 \begin_layout Standard
23826 Note that the label is output only for the first paragraph, as it should
23827  be for a theorem, for example.
23828  
23829 \end_layout
23830
23831 \begin_layout Standard
23832 For a list, we have one of these forms:
23833 \end_layout
23834
23835 \begin_layout LyX-Code
23836 <tag attr=
23837 \begin_inset Quotes erd
23838 \end_inset
23839
23840 value
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844 >
23845 \end_layout
23846
23847 \begin_layout LyX-Code
23848 <itemtag attr=
23849 \begin_inset Quotes erd
23850 \end_inset
23851
23852 value
23853 \begin_inset Quotes erd
23854 \end_inset
23855
23856 ><labeltag attr=
23857 \begin_inset Quotes erd
23858 \end_inset
23859
23860 value
23861 \begin_inset Quotes erd
23862 \end_inset
23863
23864 >List Label</labeltag>First item.</itemtag>
23865 \end_layout
23866
23867 \begin_layout LyX-Code
23868 <itemtag attr=
23869 \begin_inset Quotes erd
23870 \end_inset
23871
23872 value
23873 \begin_inset Quotes erd
23874 \end_inset
23875
23876 ><labeltag attr=
23877 \begin_inset Quotes erd
23878 \end_inset
23879
23880 value
23881 \begin_inset Quotes erd
23882 \end_inset
23883
23884 >List Label</labeltag>Second item.</itemtag>
23885 \end_layout
23886
23887 \begin_layout LyX-Code
23888 </tag>
23889 \end_layout
23890
23891 \begin_layout LyX-Code
23892
23893 \end_layout
23894
23895 \begin_layout LyX-Code
23896 <tag attr=
23897 \begin_inset Quotes erd
23898 \end_inset
23899
23900 value
23901 \begin_inset Quotes erd
23902 \end_inset
23903
23904 >
23905 \end_layout
23906
23907 \begin_layout LyX-Code
23908 <labeltag attr=
23909 \begin_inset Quotes erd
23910 \end_inset
23911
23912 value
23913 \begin_inset Quotes erd
23914 \end_inset
23915
23916 >List Label</labeltag><itemtag attr=
23917 \begin_inset Quotes erd
23918 \end_inset
23919
23920 value
23921 \begin_inset Quotes erd
23922 \end_inset
23923
23924 >First item.</itemtag>
23925 \end_layout
23926
23927 \begin_layout LyX-Code
23928 <labeltag attr=
23929 \begin_inset Quotes erd
23930 \end_inset
23931
23932 value
23933 \begin_inset Quotes erd
23934 \end_inset
23935
23936 >List Label</labeltag><itemtag attr=
23937 \begin_inset Quotes erd
23938 \end_inset
23939
23940 value
23941 \begin_inset Quotes erd
23942 \end_inset
23943
23944 >Second item.</itemtag>
23945 \end_layout
23946
23947 \begin_layout LyX-Code
23948 </tag>
23949 \end_layout
23950
23951 \begin_layout Standard
23952 Note the different orders of 
23953 \begin_inset Flex Code
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957 labeltag
23958 \end_layout
23959
23960 \end_inset
23961
23962  and 
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 itemtag
23968 \end_layout
23969
23970 \end_inset
23971
23972 .
23973  Which order we get depends upon the setting of 
23974 \begin_inset Flex Code
23975 status collapsed
23976
23977 \begin_layout Plain Layout
23978 HTMLLabelFirst
23979 \end_layout
23980
23981 \end_inset
23982
23983 : If 
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988 HTMLLabelFirst
23989 \end_layout
23990
23991 \end_inset
23992
23993  is false (the default), you get the first of these, with the label within
23994  the item; if true, you get the second, with the label outside the item.
23995 \end_layout
23996
23997 \begin_layout Standard
23998 The specific tags and attributes output for each paragraph type can be controlle
23999 d by means of the layout tags we are about to describe.
24000  As mentioned earlier, however, \SpecialChar LyX
24001  uses sensible defaults for many of these,
24002  so you often may not need to do very much to get good XHTML output.
24003  Think of the available tags as there so you can tweak things to your liking.
24004 \end_layout
24005
24006 \begin_layout Description
24007 \begin_inset Flex Code
24008 status collapsed
24009
24010 \begin_layout Plain Layout
24011 HTMLAttr
24012 \end_layout
24013
24014 \end_inset
24015
24016  [
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021 string
24022 \end_layout
24023
24024 \end_inset
24025
24026 ] Specifies attribute information to be output with the main tag.
24027  For example, 
24028 \begin_inset Quotes eld
24029 \end_inset
24030
24031
24032 \begin_inset Flex Code
24033 status collapsed
24034
24035 \begin_layout Plain Layout
24036 class=`mydiv'
24037 \end_layout
24038
24039 \end_inset
24040
24041
24042 \begin_inset Quotes erd
24043 \end_inset
24044
24045 .
24046  By default, \SpecialChar LyX
24047  will output 
24048 \begin_inset Quotes eld
24049 \end_inset
24050
24051
24052 \begin_inset Flex Code
24053 status collapsed
24054
24055 \begin_layout Plain Layout
24056 class=`layoutname'
24057 \end_layout
24058
24059 \end_inset
24060
24061
24062 \begin_inset Quotes erd
24063 \end_inset
24064
24065 , where 
24066 \begin_inset Flex Code
24067 status collapsed
24068
24069 \begin_layout Plain Layout
24070 layoutname
24071 \end_layout
24072
24073 \end_inset
24074
24075  is the \SpecialChar LyX
24076  name of the layout, made lowercase, for example: chapter.
24077  This should 
24078 \emph on
24079 not
24080 \emph default
24081  contain any style information.
24082  Use 
24083 \begin_inset Flex Code
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087 HTMLStyle
24088 \end_layout
24089
24090 \end_inset
24091
24092  for that purpose.
24093 \end_layout
24094
24095 \begin_layout Description
24096 \begin_inset Flex Code
24097 status collapsed
24098
24099 \begin_layout Plain Layout
24100 HTMLForceCSS
24101 \end_layout
24102
24103 \end_inset
24104
24105  [
24106 \begin_inset Flex Code
24107 status collapsed
24108
24109 \begin_layout Plain Layout
24110
24111 \emph on
24112 0
24113 \emph default
24114 ,1
24115 \end_layout
24116
24117 \end_inset
24118
24119 ] Whether to output the default CSS information \SpecialChar LyX
24120  generates for this layout,
24121  even if additional information is explicitly provided via 
24122 \begin_inset Flex Code
24123 status collapsed
24124
24125 \begin_layout Plain Layout
24126 HTMLStyle
24127 \end_layout
24128
24129 \end_inset
24130
24131 .
24132  Setting this to 
24133 \begin_inset Flex Code
24134 status collapsed
24135
24136 \begin_layout Plain Layout
24137 1
24138 \end_layout
24139
24140 \end_inset
24141
24142  allows you to alter or augment the generated CSS, rather than to override
24143  it completely.
24144  Default is 
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 0
24150 \end_layout
24151
24152 \end_inset
24153
24154 .
24155 \end_layout
24156
24157 \begin_layout Description
24158 \begin_inset Flex Code
24159 status collapsed
24160
24161 \begin_layout Plain Layout
24162 HTMLItem
24163 \end_layout
24164
24165 \end_inset
24166
24167  [
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 string
24173 \end_layout
24174
24175 \end_inset
24176
24177 ] The tag to be used for individual paragraphs of environments, replacing
24178  
24179 \begin_inset Flex Code
24180 status collapsed
24181
24182 \begin_layout Plain Layout
24183 itemtag
24184 \end_layout
24185
24186 \end_inset
24187
24188  in the examples above.
24189  Defaults to 
24190 \begin_inset Flex Code
24191 status collapsed
24192
24193 \begin_layout Plain Layout
24194 div
24195 \end_layout
24196
24197 \end_inset
24198
24199 .
24200 \end_layout
24201
24202 \begin_layout Description
24203 \begin_inset Flex Code
24204 status collapsed
24205
24206 \begin_layout Plain Layout
24207 HTMLItemAttr
24208 \end_layout
24209
24210 \end_inset
24211
24212  [
24213 \begin_inset Flex Code
24214 status collapsed
24215
24216 \begin_layout Plain Layout
24217 string
24218 \end_layout
24219
24220 \end_inset
24221
24222 ] Attributes for the item tag.
24223  Defaults to 
24224 \begin_inset Quotes eld
24225 \end_inset
24226
24227
24228 \begin_inset Flex Code
24229 status collapsed
24230
24231 \begin_layout Plain Layout
24232 class=`layoutname_item'
24233 \end_layout
24234
24235 \end_inset
24236
24237
24238 \begin_inset Quotes erd
24239 \end_inset
24240
24241 .
24242  This should 
24243 \emph on
24244 not
24245 \emph default
24246  contain any style information.
24247  Use 
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252 HTMLStyle
24253 \end_layout
24254
24255 \end_inset
24256
24257  for that purpose.
24258 \end_layout
24259
24260 \begin_layout Description
24261 \begin_inset Flex Code
24262 status collapsed
24263
24264 \begin_layout Plain Layout
24265 HTMLLabel
24266 \end_layout
24267
24268 \end_inset
24269
24270  [
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 string
24276 \end_layout
24277
24278 \end_inset
24279
24280 ] The tag to be used for paragraph and item labels, replacing 
24281 \begin_inset Flex Code
24282 status collapsed
24283
24284 \begin_layout Plain Layout
24285 labeltag
24286 \end_layout
24287
24288 \end_inset
24289
24290  in the examples above.
24291  Defaults to 
24292 \begin_inset Flex Code
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 span
24297 \end_layout
24298
24299 \end_inset
24300
24301 , unless 
24302 \begin_inset Flex Code
24303 status collapsed
24304
24305 \begin_layout Plain Layout
24306 LabelType
24307 \end_layout
24308
24309 \end_inset
24310
24311  is either 
24312 \begin_inset Flex Code
24313 status collapsed
24314
24315 \begin_layout Plain Layout
24316 Top_Environment
24317 \end_layout
24318
24319 \end_inset
24320
24321  or 
24322 \begin_inset Flex Code
24323 status collapsed
24324
24325 \begin_layout Plain Layout
24326 Centered_Top_Environment
24327 \end_layout
24328
24329 \end_inset
24330
24331 , in which case it defaults to 
24332 \begin_inset Flex Code
24333 status collapsed
24334
24335 \begin_layout Plain Layout
24336 div
24337 \end_layout
24338
24339 \end_inset
24340
24341 .
24342 \end_layout
24343
24344 \begin_layout Description
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 HTMLLabelAttr
24350 \end_layout
24351
24352 \end_inset
24353
24354  [
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359 string
24360 \end_layout
24361
24362 \end_inset
24363
24364 ] Attributes for the label tag.
24365  Defaults to 
24366 \begin_inset Quotes eld
24367 \end_inset
24368
24369
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374 class=`layoutname_label'
24375 \end_layout
24376
24377 \end_inset
24378
24379
24380 \begin_inset Quotes erd
24381 \end_inset
24382
24383 .
24384  This should 
24385 \emph on
24386 not
24387 \emph default
24388  contain any style information.
24389  Use 
24390 \begin_inset Flex Code
24391 status collapsed
24392
24393 \begin_layout Plain Layout
24394 HTMLStyle
24395 \end_layout
24396
24397 \end_inset
24398
24399  for that purpose.
24400 \end_layout
24401
24402 \begin_layout Description
24403 \begin_inset Flex Code
24404 status collapsed
24405
24406 \begin_layout Plain Layout
24407 HTMLLabelFirst
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 ] Meaningful only for list-like environments, this tag controls whether
24427  the label tag is output before or inside the item tag.
24428  This is used, for example, in the description environment, where we want
24429  `
24430 \begin_inset Flex Code
24431 status collapsed
24432
24433 \begin_layout Plain Layout
24434 <dt>\SpecialChar ldots
24435 </dt><dd>\SpecialChar ldots
24436 </dd>
24437 \end_layout
24438
24439 \end_inset
24440
24441 .
24442  Default is 
24443 \begin_inset Flex Code
24444 status collapsed
24445
24446 \begin_layout Plain Layout
24447 0
24448 \end_layout
24449
24450 \end_inset
24451
24452 : The label tag is output inside the item tag.
24453 \end_layout
24454
24455 \begin_layout Description
24456 \begin_inset Flex Code
24457 status collapsed
24458
24459 \begin_layout Plain Layout
24460 HTMLPreamble
24461 \end_layout
24462
24463 \end_inset
24464
24465  Information to be output in the 
24466 \begin_inset Flex Code
24467 status collapsed
24468
24469 \begin_layout Plain Layout
24470 <head>
24471 \end_layout
24472
24473 \end_inset
24474
24475  section when this style is used.
24476  This might, for example, be used to include a 
24477 \begin_inset Flex Code
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481 <script>
24482 \end_layout
24483
24484 \end_inset
24485
24486  block defining an 
24487 \begin_inset Flex Code
24488 status collapsed
24489
24490 \begin_layout Plain Layout
24491 onclick
24492 \end_layout
24493
24494 \end_inset
24495
24496  handler.
24497 \end_layout
24498
24499 \begin_layout Description
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 HTMLStyle
24505 \end_layout
24506
24507 \end_inset
24508
24509  CSS style information to be included when this style is used.
24510  Note that this will automatically be wrapped in a layout-generated 
24511 \begin_inset Flex Code
24512 status collapsed
24513
24514 \begin_layout Plain Layout
24515 <style>
24516 \end_layout
24517
24518 \end_inset
24519
24520  block, so only the CSS itself need be included.
24521  Must end with 
24522 \begin_inset Flex Code
24523 status collapsed
24524
24525 \begin_layout Plain Layout
24526 EndHTMLStyle
24527 \end_layout
24528
24529 \end_inset
24530
24531 .
24532 \end_layout
24533
24534 \begin_layout Description
24535 \begin_inset Flex Code
24536 status collapsed
24537
24538 \begin_layout Plain Layout
24539 HTMLTag
24540 \end_layout
24541
24542 \end_inset
24543
24544  [
24545 \begin_inset Flex Code
24546 status collapsed
24547
24548 \begin_layout Plain Layout
24549 string
24550 \end_layout
24551
24552 \end_inset
24553
24554 ] The tag to be used for the main label, replacing 
24555 \begin_inset Flex Code
24556 status collapsed
24557
24558 \begin_layout Plain Layout
24559 tag
24560 \end_layout
24561
24562 \end_inset
24563
24564  in the examples above.
24565  Defaults to 
24566 \begin_inset Flex Code
24567 status collapsed
24568
24569 \begin_layout Plain Layout
24570 div
24571 \end_layout
24572
24573 \end_inset
24574
24575 .
24576 \end_layout
24577
24578 \begin_layout Description
24579 \begin_inset Flex Code
24580 status collapsed
24581
24582 \begin_layout Plain Layout
24583 HTMLTitle
24584 \end_layout
24585
24586 \end_inset
24587
24588  [
24589 \begin_inset Flex Code
24590 status collapsed
24591
24592 \begin_layout Plain Layout
24593
24594 \emph on
24595 0
24596 \emph default
24597 ,1
24598 \end_layout
24599
24600 \end_inset
24601
24602 ] Marks this style as the one to be used to generate the 
24603 \begin_inset Flex Code
24604 status collapsed
24605
24606 \begin_layout Plain Layout
24607 <title>
24608 \end_layout
24609
24610 \end_inset
24611
24612  tag for the XHTML file.
24613  By default, it is false.
24614  The 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 stdtitle.inc
24620 \end_layout
24621
24622 \end_inset
24623
24624  file sets it to true for the 
24625 \begin_inset Flex Code
24626 status collapsed
24627
24628 \begin_layout Plain Layout
24629 title
24630 \end_layout
24631
24632 \end_inset
24633
24634  environment.
24635  
24636 \end_layout
24637
24638 \begin_layout Subsection
24639 InsetLayout XHTML
24640 \end_layout
24641
24642 \begin_layout Standard
24643 The XHTML output of insets can also be controlled by information in layout
24644  files.
24645 \begin_inset Foot
24646 status collapsed
24647
24648 \begin_layout Plain Layout
24649 At present, this is true only for 
24650 \begin_inset Quotes eld
24651 \end_inset
24652
24653 text
24654 \begin_inset Quotes erd
24655 \end_inset
24656
24657  insets (insets you can type into) and is not true for 
24658 \begin_inset Quotes eld
24659 \end_inset
24660
24661 command
24662 \begin_inset Quotes erd
24663 \end_inset
24664
24665  insets (insets that are associated with dialog boxes).
24666 \end_layout
24667
24668 \end_inset
24669
24670  Here, too, \SpecialChar LyX
24671  tries to provide sensible defaults, and it constructs default
24672  CSS style rules.
24673  But everything can be customized.
24674 \end_layout
24675
24676 \begin_layout Standard
24677 The XHTML \SpecialChar LyX
24678  outputs for an inset has the following form:
24679 \end_layout
24680
24681 \begin_layout LyX-Code
24682 <tag attr=
24683 \begin_inset Quotes erd
24684 \end_inset
24685
24686 value
24687 \begin_inset Quotes erd
24688 \end_inset
24689
24690 >
24691 \end_layout
24692
24693 \begin_layout LyX-Code
24694 <labeltag>Label</labeltag>
24695 \end_layout
24696
24697 \begin_layout LyX-Code
24698 <innertag attr=
24699 \begin_inset Quotes erd
24700 \end_inset
24701
24702 value
24703 \begin_inset Quotes erd
24704 \end_inset
24705
24706 >Contents of the inset.</innertag>
24707 \end_layout
24708
24709 \begin_layout LyX-Code
24710 </tag>
24711 \end_layout
24712
24713 \begin_layout Standard
24714 If the inset permits multiple paragraphs—that is, if 
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 MultiPar
24720 \end_layout
24721
24722 \end_inset
24723
24724  is true—then the contents of the inset will itself be output as paragraphs
24725  formatted according to the styles used for those paragraphs (standard,
24726  quote, and the like).
24727  The label tag is of course omitted if the paragraph does not have a label
24728  and, at present, is always 
24729 \begin_inset Flex Code
24730 status collapsed
24731
24732 \begin_layout Plain Layout
24733 span
24734 \end_layout
24735
24736 \end_inset
24737
24738 .
24739  The inner tag is optional and, by default, does not appear.
24740 \end_layout
24741
24742 \begin_layout Standard
24743 The specific tags and attributes output for each inset can be controlled
24744  by means of the following layout tags.
24745 \end_layout
24746
24747 \begin_layout Description
24748 \begin_inset Flex Code
24749 status collapsed
24750
24751 \begin_layout Plain Layout
24752 HTMLAttr
24753 \end_layout
24754
24755 \end_inset
24756
24757  [
24758 \begin_inset Flex Code
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762 string
24763 \end_layout
24764
24765 \end_inset
24766
24767 ] Specifies attribute information to be output with the main tag.
24768  For example, 
24769 \begin_inset Quotes eld
24770 \end_inset
24771
24772
24773 \begin_inset Flex Code
24774 status collapsed
24775
24776 \begin_layout Plain Layout
24777 class=`myinset' onclick=`\SpecialChar ldots
24778 '
24779 \end_layout
24780
24781 \end_inset
24782
24783
24784 \begin_inset Quotes erd
24785 \end_inset
24786
24787 .
24788  By default, \SpecialChar LyX
24789  will output 
24790 \begin_inset Quotes eld
24791 \end_inset
24792
24793
24794 \begin_inset Flex Code
24795 status collapsed
24796
24797 \begin_layout Plain Layout
24798 class=`insetname'
24799 \end_layout
24800
24801 \end_inset
24802
24803
24804 \begin_inset Quotes erd
24805 \end_inset
24806
24807 , where 
24808 \begin_inset Flex Code
24809 status collapsed
24810
24811 \begin_layout Plain Layout
24812 insetname
24813 \end_layout
24814
24815 \end_inset
24816
24817  is the \SpecialChar LyX
24818  name of the inset, made lowercase and with non-alphanumeric characters
24819  converted to underscores, for example: footnote.
24820 \end_layout
24821
24822 \begin_layout Description
24823 \begin_inset Flex Code
24824 status collapsed
24825
24826 \begin_layout Plain Layout
24827 HTMLForceCSS
24828 \end_layout
24829
24830 \end_inset
24831
24832  [
24833 \begin_inset Flex Code
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837
24838 \emph on
24839 0
24840 \emph default
24841 ,1
24842 \end_layout
24843
24844 \end_inset
24845
24846 ] Whether to output the default CSS information \SpecialChar LyX
24847  generates for this layout,
24848  even if additional information is explicitly provided via 
24849 \begin_inset Flex Code
24850 status collapsed
24851
24852 \begin_layout Plain Layout
24853 HTMLStyle
24854 \end_layout
24855
24856 \end_inset
24857
24858 .
24859  Setting this to 
24860 \begin_inset Flex Code
24861 status collapsed
24862
24863 \begin_layout Plain Layout
24864 1
24865 \end_layout
24866
24867 \end_inset
24868
24869  allows you to alter or augment the generated CSS, rather than to override
24870  it completely.
24871  Default is 0.
24872 \end_layout
24873
24874 \begin_layout Description
24875 \begin_inset Flex Code
24876 status collapsed
24877
24878 \begin_layout Plain Layout
24879 HTMLInnerAttr
24880 \end_layout
24881
24882 \end_inset
24883
24884  [
24885 \begin_inset Flex Code
24886 status collapsed
24887
24888 \begin_layout Plain Layout
24889 string
24890 \end_layout
24891
24892 \end_inset
24893
24894 ] Attributes for the inner tag.
24895  Defaults to 
24896 \begin_inset Quotes eld
24897 \end_inset
24898
24899
24900 \begin_inset Flex Code
24901 status collapsed
24902
24903 \begin_layout Plain Layout
24904 class=`insetname_inner'
24905 \end_layout
24906
24907 \end_inset
24908
24909
24910 \begin_inset Quotes erd
24911 \end_inset
24912
24913 .
24914 \end_layout
24915
24916 \begin_layout Description
24917 \begin_inset Flex Code
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921 HTMLInnerTag
24922 \end_layout
24923
24924 \end_inset
24925
24926  [
24927 \begin_inset Flex Code
24928 status collapsed
24929
24930 \begin_layout Plain Layout
24931 string
24932 \end_layout
24933
24934 \end_inset
24935
24936 ] The inner tag, replacing 
24937 \begin_inset Flex Code
24938 status collapsed
24939
24940 \begin_layout Plain Layout
24941 innertag
24942 \end_layout
24943
24944 \end_inset
24945
24946  in the examples above.
24947  By default, there is none.
24948 \end_layout
24949
24950 \begin_layout Description
24951 \begin_inset Flex Code
24952 status collapsed
24953
24954 \begin_layout Plain Layout
24955 HTMLIsBlock
24956 \end_layout
24957
24958 \end_inset
24959
24960  [
24961 \begin_inset Flex Code
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965 0,
24966 \emph on
24967 1
24968 \end_layout
24969
24970 \end_inset
24971
24972 ] Whether this inset represents a standalone block of text (such as a footnote)
24973  or instead represents material that is included in the surrounding text
24974  (such as a branch).
24975  Defaults to 1.
24976 \end_layout
24977
24978 \begin_layout Description
24979 \begin_inset Flex Code
24980 status collapsed
24981
24982 \begin_layout Plain Layout
24983 HTMLLabel
24984 \end_layout
24985
24986 \end_inset
24987
24988  [
24989 \begin_inset Flex Code
24990 status collapsed
24991
24992 \begin_layout Plain Layout
24993 string
24994 \end_layout
24995
24996 \end_inset
24997
24998 ] A label for this inset, possibly including a reference to a counter.
24999  For example, for footnote, it might be: 
25000 \begin_inset Flex Code
25001 status collapsed
25002
25003 \begin_layout Plain Layout
25004
25005 \backslash
25006 arabic{footnote}
25007 \end_layout
25008
25009 \end_inset
25010
25011 .
25012  This is optional, and there is no default.
25013 \end_layout
25014
25015 \begin_layout Description
25016 \begin_inset Flex Code
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020 HTMLPreamble
25021 \end_layout
25022
25023 \end_inset
25024
25025  Information to be output in the 
25026 \begin_inset Flex Code
25027 status collapsed
25028
25029 \begin_layout Plain Layout
25030 <head>
25031 \end_layout
25032
25033 \end_inset
25034
25035  section when this style is used.
25036  This might, for example, be used to include a 
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041 <script>
25042 \end_layout
25043
25044 \end_inset
25045
25046  block defining an 
25047 \begin_inset Flex Code
25048 status collapsed
25049
25050 \begin_layout Plain Layout
25051 onclick
25052 \end_layout
25053
25054 \end_inset
25055
25056  handler.
25057 \end_layout
25058
25059 \begin_layout Description
25060 \begin_inset Flex Code
25061 status collapsed
25062
25063 \begin_layout Plain Layout
25064 HTMLStyle
25065 \end_layout
25066
25067 \end_inset
25068
25069  CSS style information to be included when this style is used.
25070  Note that this will automatically be wrapped in a layout-generated 
25071 \begin_inset Flex Code
25072 status collapsed
25073
25074 \begin_layout Plain Layout
25075 <style>
25076 \end_layout
25077
25078 \end_inset
25079
25080  block, so only the CSS itself need be included.
25081 \end_layout
25082
25083 \begin_layout Description
25084 \begin_inset Flex Code
25085 status collapsed
25086
25087 \begin_layout Plain Layout
25088 HTMLTag
25089 \end_layout
25090
25091 \end_inset
25092
25093  [
25094 \begin_inset Flex Code
25095 status collapsed
25096
25097 \begin_layout Plain Layout
25098 string
25099 \end_layout
25100
25101 \end_inset
25102
25103 ] The tag to be used for the main label, replacing 
25104 \begin_inset Flex Code
25105 status collapsed
25106
25107 \begin_layout Plain Layout
25108 tag
25109 \end_layout
25110
25111 \end_inset
25112
25113  in the examples above.
25114  The default depends upon the setting of 
25115 \begin_inset Flex Code
25116 status collapsed
25117
25118 \begin_layout Plain Layout
25119 MultiPar
25120 \end_layout
25121
25122 \end_inset
25123
25124 : If 
25125 \begin_inset Flex Code
25126 status collapsed
25127
25128 \begin_layout Plain Layout
25129 MultiPar
25130 \end_layout
25131
25132 \end_inset
25133
25134  is true, the default is 
25135 \begin_inset Flex Code
25136 status collapsed
25137
25138 \begin_layout Plain Layout
25139 div
25140 \end_layout
25141
25142 \end_inset
25143
25144 ; if it is false, the default is 
25145 \begin_inset Flex Code
25146 status collapsed
25147
25148 \begin_layout Plain Layout
25149 span
25150 \end_layout
25151
25152 \end_inset
25153
25154 .
25155 \end_layout
25156
25157 \begin_layout Subsection
25158 Float XHTML
25159 \end_layout
25160
25161 \begin_layout Standard
25162 The XHTML output for floats too can be controlled by layout information.
25163  The output has the following form:
25164 \end_layout
25165
25166 \begin_layout LyX-Code
25167 <tag attr=
25168 \begin_inset Quotes erd
25169 \end_inset
25170
25171 value
25172 \begin_inset Quotes erd
25173 \end_inset
25174
25175 >
25176 \end_layout
25177
25178 \begin_layout LyX-Code
25179 Contents of the float.
25180 \end_layout
25181
25182 \begin_layout LyX-Code
25183 </tag>
25184 \end_layout
25185
25186 \begin_layout Standard
25187 The caption, if there is one, is a separate inset and will be output as
25188  such.
25189  Its appearance can be controlled via the InsetLayout for caption insets.
25190  
25191 \end_layout
25192
25193 \begin_layout Description
25194 \begin_inset Flex Code
25195 status collapsed
25196
25197 \begin_layout Plain Layout
25198 HTMLAttr
25199 \end_layout
25200
25201 \end_inset
25202
25203  [
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208 string
25209 \end_layout
25210
25211 \end_inset
25212
25213 ] Specifies attribute information to be output with the main tag.
25214  For example, 
25215 \begin_inset Quotes eld
25216 \end_inset
25217
25218
25219 \begin_inset Flex Code
25220 status collapsed
25221
25222 \begin_layout Plain Layout
25223 class=`myfloat' onclick=`\SpecialChar ldots
25224 '
25225 \end_layout
25226
25227 \end_inset
25228
25229
25230 \begin_inset Quotes erd
25231 \end_inset
25232
25233 .
25234  By default, \SpecialChar LyX
25235  will output 
25236 \begin_inset Quotes eld
25237 \end_inset
25238
25239
25240 \begin_inset Flex Code
25241 status collapsed
25242
25243 \begin_layout Plain Layout
25244 class=`float float-floattype'
25245 \end_layout
25246
25247 \end_inset
25248
25249
25250 \begin_inset Quotes erd
25251 \end_inset
25252
25253 , where 
25254 \begin_inset Flex Code
25255 status collapsed
25256
25257 \begin_layout Plain Layout
25258 floattype
25259 \end_layout
25260
25261 \end_inset
25262
25263  is \SpecialChar LyX
25264 's name for this type of float, as determined by the float declaration
25265  (see 
25266 \begin_inset CommandInset ref
25267 LatexCommand ref
25268 reference "subsec:Floats"
25269
25270 \end_inset
25271
25272 ), though made lowercase and with non-alphanumeric characters converted
25273  to underscores, for example: float-table.
25274 \end_layout
25275
25276 \begin_layout Description
25277 \begin_inset Flex Code
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281 HTMLStyle
25282 \end_layout
25283
25284 \end_inset
25285
25286  CSS style information to be included when this float is used.
25287  Note that this will automatically be wrapped in a layout-generated 
25288 \begin_inset Flex Code
25289 status collapsed
25290
25291 \begin_layout Plain Layout
25292 <style>
25293 \end_layout
25294
25295 \end_inset
25296
25297  block, so only the CSS itself need be included.
25298 \end_layout
25299
25300 \begin_layout Description
25301 \begin_inset Flex Code
25302 status collapsed
25303
25304 \begin_layout Plain Layout
25305 HTMLTag
25306 \end_layout
25307
25308 \end_inset
25309
25310  [
25311 \begin_inset Flex Code
25312 status collapsed
25313
25314 \begin_layout Plain Layout
25315 string
25316 \end_layout
25317
25318 \end_inset
25319
25320 ] The tag to be used for this float, replacing 
25321 \begin_inset Quotes eld
25322 \end_inset
25323
25324
25325 \begin_inset Flex Code
25326 status collapsed
25327
25328 \begin_layout Plain Layout
25329 tag
25330 \end_layout
25331
25332 \end_inset
25333
25334
25335 \begin_inset Quotes erd
25336 \end_inset
25337
25338  in the example above.
25339  The default is 
25340 \begin_inset Flex Code
25341 status collapsed
25342
25343 \begin_layout Plain Layout
25344 div
25345 \end_layout
25346
25347 \end_inset
25348
25349  and will rarely need changing.
25350 \end_layout
25351
25352 \begin_layout Subsection
25353 Bibliography formatting
25354 \end_layout
25355
25356 \begin_layout Standard
25357 The bibliography can be formatted using 
25358 \begin_inset Flex Code
25359 status collapsed
25360
25361 \begin_layout Plain Layout
25362 CiteFormat
25363 \end_layout
25364
25365 \end_inset
25366
25367  blocks.
25368  See 
25369 \begin_inset CommandInset ref
25370 LatexCommand ref
25371 reference "subsec:Citation-format-description"
25372
25373 \end_inset
25374
25375  for the details.
25376 \end_layout
25377
25378 \begin_layout Subsection
25379 \SpecialChar LyX
25380 -generated CSS
25381 \end_layout
25382
25383 \begin_layout Standard
25384 We have several times mentioned that \SpecialChar LyX
25385  will generate default CSS style rules
25386  for both insets and paragraph styles, based upon the other layout information
25387  that is provided.
25388  In this section, we shall say a word about which layout information \SpecialChar LyX
25389  uses
25390  and how.
25391 \end_layout
25392
25393 \begin_layout Standard
25394 At present, \SpecialChar LyX
25395  auto-generates CSS only for font information, making use of
25396  the 
25397 \begin_inset Flex Code
25398 status collapsed
25399
25400 \begin_layout Plain Layout
25401 Family
25402 \end_layout
25403
25404 \end_inset
25405
25406
25407 \begin_inset Flex Code
25408 status collapsed
25409
25410 \begin_layout Plain Layout
25411 Series
25412 \end_layout
25413
25414 \end_inset
25415
25416
25417 \begin_inset Flex Code
25418 status collapsed
25419
25420 \begin_layout Plain Layout
25421 Shape
25422 \end_layout
25423
25424 \end_inset
25425
25426 , and 
25427 \begin_inset Flex Code
25428 status collapsed
25429
25430 \begin_layout Plain Layout
25431 Size
25432 \end_layout
25433
25434 \end_inset
25435
25436  specified in the 
25437 \begin_inset Flex Code
25438 status collapsed
25439
25440 \begin_layout Plain Layout
25441 Font
25442 \end_layout
25443
25444 \end_inset
25445
25446  declaration (see 
25447 \begin_inset CommandInset ref
25448 LatexCommand ref
25449 reference "subsec:Font-description"
25450
25451 \end_inset
25452
25453 ).
25454  The translation is mostly straightforward and obvious.
25455  For example, 
25456 \begin_inset Quotes eld
25457 \end_inset
25458
25459
25460 \begin_inset Flex Code
25461 status collapsed
25462
25463 \begin_layout Plain Layout
25464 Family Sans
25465 \end_layout
25466
25467 \end_inset
25468
25469
25470 \begin_inset Quotes erd
25471 \end_inset
25472
25473  becomes 
25474 \begin_inset Quotes eld
25475 \end_inset
25476
25477
25478 \begin_inset Flex Code
25479 status collapsed
25480
25481 \begin_layout Plain Layout
25482 font-family: sans-serif;
25483 \end_layout
25484
25485 \end_inset
25486
25487
25488 \begin_inset Quotes erd
25489 \end_inset
25490
25491 .
25492  The correspondence of \SpecialChar LyX
25493  sizes and CSS sizes is a little less obvious but
25494  nonetheless intuitive.
25495  See the 
25496 \begin_inset Flex Code
25497 status collapsed
25498
25499 \begin_layout Plain Layout
25500 getSizeCSS()
25501 \end_layout
25502
25503 \end_inset
25504
25505  function in 
25506 \begin_inset Flex URL
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510
25511 src/FontInfo.cpp
25512 \end_layout
25513
25514 \end_inset
25515
25516  for the details.
25517 \end_layout
25518
25519 \begin_layout Chapter
25520 Including External Material
25521 \begin_inset CommandInset label
25522 LatexCommand label
25523 name "chap:Including-External-Material"
25524
25525 \end_inset
25526
25527
25528 \end_layout
25529
25530 \begin_layout Standard
25531 \begin_inset Box Shadowbox
25532 position "t"
25533 hor_pos "c"
25534 has_inner_box 1
25535 inner_pos "t"
25536 use_parbox 0
25537 use_makebox 0
25538 width "100col%"
25539 special "none"
25540 height "1in"
25541 height_special "totalheight"
25542 thickness "0.4pt"
25543 separation "3pt"
25544 shadowsize "4pt"
25545 framecolor "black"
25546 backgroundcolor "none"
25547 status open
25548
25549 \begin_layout Plain Layout
25550 WARNING: This portion of the documentation has not been updated for some
25551  time.
25552  We certainly hope that it is still accurate, but there are no guarantees.
25553 \end_layout
25554
25555 \end_inset
25556
25557
25558 \end_layout
25559
25560 \begin_layout Standard
25561 The use of material from sources external to \SpecialChar LyX
25562  is covered in detail in the
25563  
25564 \emph on
25565 Embedded Objects
25566 \emph default
25567  manual.
25568  This part of the manual covers what needs to happen behind the scenes for
25569  new sorts of material to be included.
25570 \end_layout
25571
25572 \begin_layout Section
25573 How does it work?
25574 \end_layout
25575
25576 \begin_layout Standard
25577 The external material feature is based on the concept of a 
25578 \emph on
25579 template
25580 \emph default
25581 .
25582  A template is a specification of how \SpecialChar LyX
25583  should interface with a certain kind
25584  of material.
25585  As bundled, \SpecialChar LyX
25586  comes with predefined templates for Xfig figures, various
25587  raster format images, chess diagrams, and LilyPond music notation.
25588  You can check the actual list by using the menu 
25589 \begin_inset Flex Noun
25590 status collapsed
25591
25592 \begin_layout Plain Layout
25593 Insert\SpecialChar menuseparator
25594 File\SpecialChar menuseparator
25595 External Material
25596 \end_layout
25597
25598 \end_inset
25599
25600 .
25601  Furthermore, it is possible to roll your own template to support a specific
25602  kind of material.
25603  Later we'll describe in more detail what is involved, and hopefully you
25604  will submit all the templates you create so we can include them in a later
25605  \SpecialChar LyX
25606  version.
25607 \end_layout
25608
25609 \begin_layout Standard
25610 Another basic idea of the external material feature is to distinguish between
25611  the original file that serves as a base for final material and the produced
25612  file that is included in your exported or printed document.
25613  For example, consider the case of a figure produced with 
25614 \begin_inset Flex Code
25615 status collapsed
25616
25617 \begin_layout Plain Layout
25618 Xfig
25619 \end_layout
25620
25621 \end_inset
25622
25623 .
25624  The Xfig application itself works on an original file with the 
25625 \begin_inset Flex Code
25626 status collapsed
25627
25628 \begin_layout Plain Layout
25629 .fig
25630 \end_layout
25631
25632 \end_inset
25633
25634  extension.
25635  Within Xfig, you create and change your figure, and when you are done,
25636  you save the 
25637 \begin_inset Flex Code
25638 status collapsed
25639
25640 \begin_layout Plain Layout
25641 fig
25642 \end_layout
25643
25644 \end_inset
25645
25646 -file.
25647  When you want to include the figure in your document, you invoke 
25648 \begin_inset Flex Code
25649 status collapsed
25650
25651 \begin_layout Plain Layout
25652 transfig
25653 \end_layout
25654
25655 \end_inset
25656
25657  in order to create a PostScript file that can readily be included in your
25658  \SpecialChar LaTeX
25659  file.
25660  In this case, the 
25661 \begin_inset Flex Code
25662 status collapsed
25663
25664 \begin_layout Plain Layout
25665 .fig
25666 \end_layout
25667
25668 \end_inset
25669
25670  file is the original file, and the PostScript file is the produced file.
25671 \end_layout
25672
25673 \begin_layout Standard
25674 This distinction is important in order to allow updating of the material
25675  while you are in the process of writing the document.
25676  Furthermore, it provides us with the flexibility that is needed to support
25677  multiple export formats.
25678  For instance, in the case of a plain text file, it is not exactly an award-winn
25679 ing idea to include the figure as raw PostScript.
25680  Instead, you would either prefer to just include a reference to the figure
25681  or try to invoke some graphics to ASCII converter to make the final result
25682  look similar to the real graphics.
25683  The external material management allows you to do this, because it is parametri
25684 zed on the different export formats that \SpecialChar LyX
25685  supports.
25686 \end_layout
25687
25688 \begin_layout Standard
25689 Besides supporting the production of different products according to the
25690  exported format, it supports tight integration with editing and viewing
25691  applications.
25692  In the case of an Xfig figure, you are able to invoke Xfig on the original
25693  file with a single click from within the external material dialog in \SpecialChar LyX
25694 ,
25695  and also preview the produced PostScript file with Ghostview with another
25696  click.
25697  No more fiddling around with the command line and/or file browsers to locate
25698  and manipulate the original or produced files.
25699  In this way, you are finally able to take full advantage of the many different
25700  applications that are relevant to use when you write your documents, and
25701  ultimately be more productive.
25702 \end_layout
25703
25704 \begin_layout Section
25705 The external template configuration file
25706 \change_inserted -712698321 1490533960
25707 s
25708 \change_unchanged
25709
25710 \end_layout
25711
25712 \begin_layout Standard
25713 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25714 .
25715  However, be aware that doing this in an careless manner most probably 
25716 \emph on
25717 will
25718 \emph default
25719  introduce an easily exploitable security hole.
25720  So before you do this, please read the discussion about security in 
25721 \begin_inset CommandInset ref
25722 LatexCommand ref
25723 reference "sec:Security-discussion"
25724
25725 \end_inset
25726
25727 .
25728 \end_layout
25729
25730 \begin_layout Standard
25731 Having said that, we encourage you to submit any interesting templates that
25732  you create.
25733  
25734 \end_layout
25735
25736 \begin_layout Standard
25737 The external templates are defined in the
25738 \change_inserted -712698321 1490534022
25739  
25740 \begin_inset Flex Code
25741 status collapsed
25742
25743 \begin_layout Plain Layout
25744
25745 \change_inserted -712698321 1490533996
25746 *.xtemplate
25747 \end_layout
25748
25749 \end_inset
25750
25751  files that are stored in the
25752 \change_unchanged
25753  
25754 \begin_inset Flex Code
25755 status collapsed
25756
25757 \begin_layout Plain Layout
25758 LyXDir/lib/
25759 \change_deleted -712698321 1490533984
25760 external_
25761 \change_inserted -712698321 1490533984
25762 x
25763 \change_unchanged
25764 templates
25765 \change_inserted -712698321 1490534077
25766 /
25767 \change_unchanged
25768
25769 \end_layout
25770
25771 \end_inset
25772
25773  
25774 \change_deleted -712698321 1490534025
25775 file
25776 \change_inserted -712698321 1490534028
25777 directory
25778 \change_unchanged
25779 .
25780  
25781 \change_inserted -712698321 1490534233
25782 Each template is defined in a file of its own.
25783  
25784 \change_unchanged
25785 You can place your own 
25786 \change_deleted -712698321 1490534089
25787 version
25788 \change_inserted -712698321 1490534090
25789 templates
25790 \change_unchanged
25791  in 
25792 \begin_inset Flex Code
25793 status collapsed
25794
25795 \begin_layout Plain Layout
25796 UserDir/
25797 \change_deleted -712698321 1490534069
25798 external_
25799 \change_inserted -712698321 1490534069
25800 x
25801 \change_unchanged
25802 templates
25803 \change_inserted -712698321 1490534080
25804 /
25805 \change_unchanged
25806
25807 \end_layout
25808
25809 \end_inset
25810
25811
25812 \change_inserted -712698321 1490534112
25813  or copy existing templates to that directory in order to modify them
25814 \change_unchanged
25815 .
25816 \end_layout
25817
25818 \begin_layout Standard
25819 A typical template looks like this:
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823 Template XFig
25824 \end_layout
25825
25826 \begin_layout LyX-Code
25827 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25828 \end_layout
25829
25830 \begin_layout LyX-Code
25831 HelpText
25832 \end_layout
25833
25834 \begin_layout LyX-Code
25835 An XFig figure.
25836 \end_layout
25837
25838 \begin_layout LyX-Code
25839 HelpTextEnd
25840 \end_layout
25841
25842 \begin_layout LyX-Code
25843 InputFormat fig
25844 \end_layout
25845
25846 \begin_layout LyX-Code
25847 FileFilter "*.fig"
25848 \end_layout
25849
25850 \begin_layout LyX-Code
25851 AutomaticProduction true
25852 \end_layout
25853
25854 \begin_layout LyX-Code
25855 Transform Rotate
25856 \end_layout
25857
25858 \begin_layout LyX-Code
25859 Transform Resize
25860 \end_layout
25861
25862 \begin_layout LyX-Code
25863 Format LaTeX
25864 \end_layout
25865
25866 \begin_layout LyX-Code
25867 TransformCommand Rotate RotationLatexCommand
25868 \end_layout
25869
25870 \begin_layout LyX-Code
25871 TransformCommand Resize ResizeLatexCommand
25872 \end_layout
25873
25874 \begin_layout LyX-Code
25875 Product "$$RotateFront$$ResizeFront
25876 \end_layout
25877
25878 \begin_layout LyX-Code
25879          
25880 \backslash
25881
25882 \backslash
25883 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25884 \end_layout
25885
25886 \begin_layout LyX-Code
25887          $$ResizeBack$$RotateBack"
25888 \end_layout
25889
25890 \begin_layout LyX-Code
25891 UpdateFormat pstex
25892 \end_layout
25893
25894 \begin_layout LyX-Code
25895 UpdateResult "$$AbsPath$$Basename.pstex_t"
25896 \end_layout
25897
25898 \begin_layout LyX-Code
25899 Requirement "graphicx"
25900 \end_layout
25901
25902 \begin_layout LyX-Code
25903 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25904 \end_layout
25905
25906 \begin_layout LyX-Code
25907 ReferencedFile latex "$$AbsPath$$Basename.eps"
25908 \end_layout
25909
25910 \begin_layout LyX-Code
25911 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25912 \end_layout
25913
25914 \begin_layout LyX-Code
25915 FormatEnd
25916 \end_layout
25917
25918 \begin_layout LyX-Code
25919 Format PDFLaTeX
25920 \end_layout
25921
25922 \begin_layout LyX-Code
25923 TransformCommand Rotate RotationLatexCommand
25924 \end_layout
25925
25926 \begin_layout LyX-Code
25927 TransformCommand Resize ResizeLatexCommand
25928 \end_layout
25929
25930 \begin_layout LyX-Code
25931 Product "$$RotateFront$$ResizeFront
25932 \end_layout
25933
25934 \begin_layout LyX-Code
25935          
25936 \backslash
25937
25938 \backslash
25939 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25940 \end_layout
25941
25942 \begin_layout LyX-Code
25943          $$ResizeBack$$RotateBack"
25944 \end_layout
25945
25946 \begin_layout LyX-Code
25947 UpdateFormat pdftex
25948 \end_layout
25949
25950 \begin_layout LyX-Code
25951 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25952 \end_layout
25953
25954 \begin_layout LyX-Code
25955 Requirement "graphicx"
25956 \end_layout
25957
25958 \begin_layout LyX-Code
25959 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25960 \end_layout
25961
25962 \begin_layout LyX-Code
25963 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25964 \end_layout
25965
25966 \begin_layout LyX-Code
25967 FormatEnd
25968 \end_layout
25969
25970 \begin_layout LyX-Code
25971 Format Ascii
25972 \end_layout
25973
25974 \begin_layout LyX-Code
25975 Product "[XFig: $$FName]"
25976 \end_layout
25977
25978 \begin_layout LyX-Code
25979 FormatEnd
25980 \end_layout
25981
25982 \begin_layout LyX-Code
25983 Format DocBook
25984 \end_layout
25985
25986 \begin_layout LyX-Code
25987 Product "<graphic fileref=
25988 \backslash
25989 "$$AbsOrRelPathMaster$$Basename.eps
25990 \backslash
25991 ">
25992 \end_layout
25993
25994 \begin_layout LyX-Code
25995          </graphic>"
25996 \end_layout
25997
25998 \begin_layout LyX-Code
25999 UpdateFormat eps
26000 \end_layout
26001
26002 \begin_layout LyX-Code
26003 UpdateResult "$$AbsPath$$Basename.eps"
26004 \end_layout
26005
26006 \begin_layout LyX-Code
26007 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26008 \end_layout
26009
26010 \begin_layout LyX-Code
26011 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26012 \end_layout
26013
26014 \begin_layout LyX-Code
26015 FormatEnd
26016 \end_layout
26017
26018 \begin_layout LyX-Code
26019 TemplateEnd
26020 \end_layout
26021
26022 \begin_layout Standard
26023 As you can see, the template is enclosed in 
26024 \begin_inset Flex Code
26025 status collapsed
26026
26027 \begin_layout Plain Layout
26028 Template
26029 \end_layout
26030
26031 \end_inset
26032
26033  \SpecialChar ldots
26034  
26035 \begin_inset Flex Code
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 TemplateEnd
26040 \end_layout
26041
26042 \end_inset
26043
26044 .
26045  It contains a header specifying some general settings and, for each supported
26046  primary document file format, a section 
26047 \begin_inset Flex Code
26048 status collapsed
26049
26050 \begin_layout Plain Layout
26051 Format
26052 \end_layout
26053
26054 \end_inset
26055
26056  \SpecialChar ldots
26057  
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062 FormatEnd
26063 \end_layout
26064
26065 \end_inset
26066
26067 .
26068 \end_layout
26069
26070 \begin_layout Subsection
26071 The template header
26072 \end_layout
26073
26074 \begin_layout Description
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 AutomaticProduction
26080 \begin_inset space ~
26081 \end_inset
26082
26083 true|false
26084 \end_layout
26085
26086 \end_inset
26087
26088  Whether the file represented by the template must be generated by \SpecialChar LyX
26089 .
26090  This command must occur exactly once.
26091 \end_layout
26092
26093 \begin_layout Description
26094 \begin_inset Flex Code
26095 status collapsed
26096
26097 \begin_layout Plain Layout
26098 FileFilter
26099 \begin_inset space ~
26100 \end_inset
26101
26102 <pattern>
26103 \end_layout
26104
26105 \end_inset
26106
26107  A glob pattern that is used in the file dialog to filter out the desired
26108  files.
26109  If there is more than one possible file extension (e.
26110 \begin_inset space \thinspace{}
26111 \end_inset
26112
26113 g.
26114 \begin_inset space \space{}
26115 \end_inset
26116
26117 tgif has 
26118 \begin_inset Flex Code
26119 status collapsed
26120
26121 \begin_layout Plain Layout
26122 .obj
26123 \end_layout
26124
26125 \end_inset
26126
26127  and 
26128 \begin_inset Flex Code
26129 status collapsed
26130
26131 \begin_layout Plain Layout
26132 .tgo
26133 \end_layout
26134
26135 \end_inset
26136
26137 ), use something like 
26138 \begin_inset Flex Code
26139 status collapsed
26140
26141 \begin_layout Plain Layout
26142 "*.{obj,tgo}"
26143 \end_layout
26144
26145 \end_inset
26146
26147 .
26148  This command must occur exactly once.
26149 \end_layout
26150
26151 \begin_layout Description
26152 \begin_inset Flex Code
26153 status collapsed
26154
26155 \begin_layout Plain Layout
26156 GuiName
26157 \begin_inset space ~
26158 \end_inset
26159
26160 <guiname>
26161 \end_layout
26162
26163 \end_inset
26164
26165  The text that is displayed on the button.
26166  This command must occur exactly once.
26167 \end_layout
26168
26169 \begin_layout Description
26170 \begin_inset Flex Code
26171 status collapsed
26172
26173 \begin_layout Plain Layout
26174 HelpText
26175 \begin_inset space ~
26176 \end_inset
26177
26178 <text>
26179 \begin_inset space ~
26180 \end_inset
26181
26182 HelpTextEnd
26183 \end_layout
26184
26185 \end_inset
26186
26187  The help text that is used in the External dialog.
26188  Provide enough information to explain to the user just what the template
26189  can provide him with.
26190  This command must occur exactly once.
26191 \end_layout
26192
26193 \begin_layout Description
26194 \begin_inset Flex Code
26195 status collapsed
26196
26197 \begin_layout Plain Layout
26198 InputFormat
26199 \begin_inset space ~
26200 \end_inset
26201
26202 <format>
26203 \end_layout
26204
26205 \end_inset
26206
26207  The file format of the original file.
26208  This must be the name of a format that is known to \SpecialChar LyX
26209  (see 
26210 \begin_inset CommandInset ref
26211 LatexCommand ref
26212 reference "sec:Formats"
26213
26214 \end_inset
26215
26216 ).
26217  Use 
26218 \begin_inset Quotes eld
26219 \end_inset
26220
26221
26222 \begin_inset Flex Code
26223 status collapsed
26224
26225 \begin_layout Plain Layout
26226 *
26227 \end_layout
26228
26229 \end_inset
26230
26231
26232 \begin_inset Quotes erd
26233 \end_inset
26234
26235  if the template can handle original files of more than one format.
26236  \SpecialChar LyX
26237  will attempt to interrogate the file itself in order to deduce its format
26238  in this case.
26239  This command must occur exactly once.
26240 \end_layout
26241
26242 \begin_layout Description
26243 \begin_inset Flex Code
26244 status collapsed
26245
26246 \begin_layout Plain Layout
26247 Template
26248 \begin_inset space ~
26249 \end_inset
26250
26251 <id>
26252 \end_layout
26253
26254 \end_inset
26255
26256  A unique name for the template.
26257  It must not contain substitution macros (see below).
26258 \end_layout
26259
26260 \begin_layout Description
26261 \begin_inset Flex Code
26262 status collapsed
26263
26264 \begin_layout Plain Layout
26265 Transform
26266 \begin_inset space ~
26267 \end_inset
26268
26269 Rotate|Resize|Clip|Extra
26270 \end_layout
26271
26272 \end_inset
26273
26274  This command specifies which transformations are supported by this template.
26275  It may occur zero or more times.
26276  This command enables the corresponding tabs in the external dialog.
26277  Each 
26278 \begin_inset Flex Code
26279 status collapsed
26280
26281 \begin_layout Plain Layout
26282 Transform
26283 \end_layout
26284
26285 \end_inset
26286
26287  command must have either a corresponding 
26288 \begin_inset Flex Code
26289 status collapsed
26290
26291 \begin_layout Plain Layout
26292 TransformCommand
26293 \end_layout
26294
26295 \end_inset
26296
26297  or a 
26298 \begin_inset Flex Code
26299 status collapsed
26300
26301 \begin_layout Plain Layout
26302 TransformOption
26303 \end_layout
26304
26305 \end_inset
26306
26307  command in the 
26308 \begin_inset Flex Code
26309 status collapsed
26310
26311 \begin_layout Plain Layout
26312 Format
26313 \end_layout
26314
26315 \end_inset
26316
26317  section.
26318  Otherwise the transformation will not be supported by that format.
26319 \end_layout
26320
26321 \begin_layout Subsection
26322 The Format section
26323 \end_layout
26324
26325 \begin_layout Description
26326 \begin_inset Flex Code
26327 status collapsed
26328
26329 \begin_layout Plain Layout
26330 Format
26331 \begin_inset space ~
26332 \end_inset
26333
26334 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26335 \end_layout
26336
26337 \end_inset
26338
26339  The primary document file format that this format definition is for.
26340  Not every template has a sensible representation in all document file formats.
26341  Please define nevertheless a 
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 Format
26347 \end_layout
26348
26349 \end_inset
26350
26351  section for all templates.
26352  Use a dummy text when no representation is available.
26353  Then you can at least see a reference to the external material in the exported
26354  document.
26355 \end_layout
26356
26357 \begin_layout Description
26358 \begin_inset Flex Code
26359 status collapsed
26360
26361 \begin_layout Plain Layout
26362 Option
26363 \begin_inset space ~
26364 \end_inset
26365
26366 <name>
26367 \begin_inset space ~
26368 \end_inset
26369
26370 <value>
26371 \end_layout
26372
26373 \end_inset
26374
26375  This command defines an additional macro 
26376 \begin_inset Flex Code
26377 status collapsed
26378
26379 \begin_layout Plain Layout
26380 $$<name>
26381 \end_layout
26382
26383 \end_inset
26384
26385  for substitution in 
26386 \begin_inset Flex Code
26387 status collapsed
26388
26389 \begin_layout Plain Layout
26390 Product
26391 \end_layout
26392
26393 \end_inset
26394
26395 .
26396  
26397 \begin_inset Flex Code
26398 status collapsed
26399
26400 \begin_layout Plain Layout
26401 <value>
26402 \end_layout
26403
26404 \end_inset
26405
26406  itself may contain substitution macros.
26407  The advantage over using 
26408 \begin_inset Flex Code
26409 status collapsed
26410
26411 \begin_layout Plain Layout
26412 <value>
26413 \end_layout
26414
26415 \end_inset
26416
26417  directly in 
26418 \begin_inset Flex Code
26419 status collapsed
26420
26421 \begin_layout Plain Layout
26422 Product
26423 \end_layout
26424
26425 \end_inset
26426
26427  is that the substituted value of 
26428 \begin_inset Flex Code
26429 status collapsed
26430
26431 \begin_layout Plain Layout
26432 $$<name>
26433 \end_layout
26434
26435 \end_inset
26436
26437  is sanitized so that it is a valid optional argument in the document format.
26438  This command may occur zero or more times.
26439 \end_layout
26440
26441 \begin_layout Description
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 Product
26447 \begin_inset space ~
26448 \end_inset
26449
26450 <text>
26451 \end_layout
26452
26453 \end_inset
26454
26455  The text that is inserted in the exported document.
26456  This is actually the most important command and can be quite complex.
26457  This command must occur exactly once.
26458 \end_layout
26459
26460 \begin_layout Description
26461 \begin_inset Flex Code
26462 status collapsed
26463
26464 \begin_layout Plain Layout
26465 Preamble
26466 \begin_inset space ~
26467 \end_inset
26468
26469 <name>
26470 \end_layout
26471
26472 \end_inset
26473
26474  This command specifies a preamble snippet that will be included in the
26475  \SpecialChar LaTeX
26476  preamble.
26477  It has to be defined using 
26478 \begin_inset Flex Code
26479 status collapsed
26480
26481 \begin_layout Plain Layout
26482 PreambleDef
26483 \end_layout
26484
26485 \end_inset
26486
26487  \SpecialChar ldots
26488  
26489 \begin_inset Flex Code
26490 status collapsed
26491
26492 \begin_layout Plain Layout
26493 PreambleDefEnd
26494 \end_layout
26495
26496 \end_inset
26497
26498 .
26499  This command may occur zero or more times.
26500 \end_layout
26501
26502 \begin_layout Description
26503 \begin_inset Flex Code
26504 status collapsed
26505
26506 \begin_layout Plain Layout
26507 ReferencedFile
26508 \begin_inset space ~
26509 \end_inset
26510
26511 <format>
26512 \begin_inset space ~
26513 \end_inset
26514
26515 <filename>
26516 \end_layout
26517
26518 \end_inset
26519
26520  This command denotes files that are created by the conversion process and
26521  are needed for a particular export format.
26522  If the filename is relative, it is interpreted relative to the master document.
26523  This command may be given zero or more times.
26524 \end_layout
26525
26526 \begin_layout Description
26527 \begin_inset Flex Code
26528 status collapsed
26529
26530 \begin_layout Plain Layout
26531 Requirement
26532 \begin_inset space ~
26533 \end_inset
26534
26535 <package>
26536 \end_layout
26537
26538 \end_inset
26539
26540  The name of a required \SpecialChar LaTeX
26541  package.
26542  The package is included via 
26543 \begin_inset Flex Code
26544 status collapsed
26545
26546 \begin_layout Plain Layout
26547
26548 \backslash
26549 usepackage{}
26550 \end_layout
26551
26552 \end_inset
26553
26554  in the \SpecialChar LaTeX
26555  preamble.
26556  This command may occur zero or more times.
26557 \end_layout
26558
26559 \begin_layout Description
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 TransformCommand
26565 \begin_inset space ~
26566 \end_inset
26567
26568 Rotate
26569 \begin_inset space ~
26570 \end_inset
26571
26572 RotationLatexCommand
26573 \end_layout
26574
26575 \end_inset
26576
26577  This command specifies that the built in \SpecialChar LaTeX
26578  command should be used for rotation.
26579  This command may occur once or not at all.
26580 \end_layout
26581
26582 \begin_layout Description
26583 \begin_inset Flex Code
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 TransformCommand
26588 \begin_inset space ~
26589 \end_inset
26590
26591 Resize
26592 \begin_inset space ~
26593 \end_inset
26594
26595 ResizeLatexCommand
26596 \end_layout
26597
26598 \end_inset
26599
26600  This command specifies that the built in \SpecialChar LaTeX
26601  command should be used for resizing.
26602  This command may occur once or not at all.
26603 \end_layout
26604
26605 \begin_layout Description
26606 \begin_inset Flex Code
26607 status collapsed
26608
26609 \begin_layout Plain Layout
26610 TransformOption
26611 \begin_inset space ~
26612 \end_inset
26613
26614 Rotate
26615 \begin_inset space ~
26616 \end_inset
26617
26618 RotationLatexOption
26619 \end_layout
26620
26621 \end_inset
26622
26623  This command specifies that rotation is done via an optional argument.
26624  This command may occur once or not at all.
26625 \end_layout
26626
26627 \begin_layout Description
26628 \begin_inset Flex Code
26629 status collapsed
26630
26631 \begin_layout Plain Layout
26632 TransformOption
26633 \begin_inset space ~
26634 \end_inset
26635
26636 Resize
26637 \begin_inset space ~
26638 \end_inset
26639
26640 ResizeLatexOption
26641 \end_layout
26642
26643 \end_inset
26644
26645  This command specifies that resizing is done via an optional argument.
26646  This command may occur once or not at all.
26647 \end_layout
26648
26649 \begin_layout Description
26650 \begin_inset Flex Code
26651 status collapsed
26652
26653 \begin_layout Plain Layout
26654 TransformOption
26655 \begin_inset space ~
26656 \end_inset
26657
26658 Clip
26659 \begin_inset space ~
26660 \end_inset
26661
26662 ClipLatexOption
26663 \end_layout
26664
26665 \end_inset
26666
26667  This command specifies that clipping is done via an optional argument.
26668  This command may occur once or not at all.
26669 \end_layout
26670
26671 \begin_layout Description
26672 \begin_inset Flex Code
26673 status collapsed
26674
26675 \begin_layout Plain Layout
26676 TransformOption
26677 \begin_inset space ~
26678 \end_inset
26679
26680 Extra
26681 \begin_inset space ~
26682 \end_inset
26683
26684 ExtraLatexOption
26685 \end_layout
26686
26687 \end_inset
26688
26689  This command specifies that an extra optional argument is used.
26690  This command may occur once or not at all.
26691 \end_layout
26692
26693 \begin_layout Description
26694 \begin_inset Flex Code
26695 status collapsed
26696
26697 \begin_layout Plain Layout
26698 UpdateFormat
26699 \begin_inset space ~
26700 \end_inset
26701
26702 <format>
26703 \end_layout
26704
26705 \end_inset
26706
26707  The file format of the converted file.
26708  This must be the name of a format that is known to \SpecialChar LyX
26709  (see the 
26710 \begin_inset Flex Noun
26711 status collapsed
26712
26713 \begin_layout Plain Layout
26714 Tools\SpecialChar menuseparator
26715 Preferences\SpecialChar menuseparator
26716 File Handling\SpecialChar menuseparator
26717 File Format
26718 \end_layout
26719
26720 \end_inset
26721
26722  dialog).
26723  This command must occur exactly once.
26724  If the resulting file format is PDF, you need to specify the format 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 pdf6
26730 \end_layout
26731
26732 \end_inset
26733
26734 .
26735  This is the PDF format used for including graphics.
26736  The other defined PDF formats are for document export.
26737 \end_layout
26738
26739 \begin_layout Description
26740 \begin_inset Flex Code
26741 status collapsed
26742
26743 \begin_layout Plain Layout
26744 UpdateResult
26745 \begin_inset space ~
26746 \end_inset
26747
26748 <filename>
26749 \end_layout
26750
26751 \end_inset
26752
26753  The file name of the converted file.
26754  The file name must be absolute.
26755  This command must occur exactly once.
26756 \end_layout
26757
26758 \begin_layout Subsection
26759 Preamble definitions
26760 \end_layout
26761
26762 \begin_layout Standard
26763 The external template configuration file may contain additional preamble
26764  definitions enclosed by 
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 PreambleDef
26770 \end_layout
26771
26772 \end_inset
26773
26774  \SpecialChar ldots
26775  
26776 \begin_inset Flex Code
26777 status collapsed
26778
26779 \begin_layout Plain Layout
26780 PreambleDefEnd
26781 \end_layout
26782
26783 \end_inset
26784
26785 .
26786  They can be used by the templates in the 
26787 \begin_inset Flex Code
26788 status collapsed
26789
26790 \begin_layout Plain Layout
26791 Format
26792 \end_layout
26793
26794 \end_inset
26795
26796  section.
26797 \end_layout
26798
26799 \begin_layout Section
26800 The substitution mechanism
26801 \end_layout
26802
26803 \begin_layout Standard
26804 When the external material facility invokes an external program, it is done
26805  on the basis of a command defined in the template configuration file.
26806  These commands can contain various macros that are expanded before execution.
26807  Execution always take place in the directory of the containing document.
26808 \end_layout
26809
26810 \begin_layout Standard
26811 Also, whenever external material is to be displayed, the name will be produced
26812  by the substitution mechanism, and most other commands in the template
26813  definition support substitution as well.
26814 \end_layout
26815
26816 \begin_layout Standard
26817 The available macros are the following:
26818 \end_layout
26819
26820 \begin_layout Description
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  The file path, absolute or relative to the master \SpecialChar LyX
26831  document.
26832 \end_layout
26833
26834 \begin_layout Description
26835 \begin_inset Flex Code
26836 status collapsed
26837
26838 \begin_layout Plain Layout
26839 $$AbsOrRelPathParent
26840 \end_layout
26841
26842 \end_inset
26843
26844  The file path, absolute or relative to the \SpecialChar LyX
26845  document.
26846 \end_layout
26847
26848 \begin_layout Description
26849 \begin_inset Flex Code
26850 status collapsed
26851
26852 \begin_layout Plain Layout
26853 $$AbsPath
26854 \end_layout
26855
26856 \end_inset
26857
26858  The absolute file path.
26859 \end_layout
26860
26861 \begin_layout Description
26862 \begin_inset Flex Code
26863 status collapsed
26864
26865 \begin_layout Plain Layout
26866 $$Basename
26867 \end_layout
26868
26869 \end_inset
26870
26871  The filename without path and without the extension.
26872 \end_layout
26873
26874 \begin_layout Description
26875 \begin_inset Flex Code
26876 status collapsed
26877
26878 \begin_layout Plain Layout
26879 $$Contents(
26880 \begin_inset Quotes eld
26881 \end_inset
26882
26883 filename.ext
26884 \begin_inset Quotes erd
26885 \end_inset
26886
26887 )
26888 \end_layout
26889
26890 \end_inset
26891
26892  This macro will expand to the contents of the file with the name 
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 filename.ext
26898 \end_layout
26899
26900 \end_inset
26901
26902 .
26903 \end_layout
26904
26905 \begin_layout Description
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 $$Extension
26911 \end_layout
26912
26913 \end_inset
26914
26915  The file extension (including the dot).
26916 \end_layout
26917
26918 \begin_layout Description
26919 \begin_inset Flex Code
26920 status collapsed
26921
26922 \begin_layout Plain Layout
26923 $$pngOrjpg
26924 \end_layout
26925
26926 \end_inset
26927
26928  This will be the string 
26929 \begin_inset Quotes eld
26930 \end_inset
26931
26932 jpg
26933 \begin_inset Quotes erd
26934 \end_inset
26935
26936  if the file is in JPEG format, otherwise it will be the string 
26937 \begin_inset Quotes eld
26938 \end_inset
26939
26940 png
26941 \begin_inset Quotes erd
26942 \end_inset
26943
26944 .
26945  This is useful to avoid uneeded conversions for output formats that support
26946  both PNG and JPEG fomats.
26947  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26948  output
26949  format.
26950 \end_layout
26951
26952 \begin_layout Description
26953 \begin_inset Flex Code
26954 status collapsed
26955
26956 \begin_layout Plain Layout
26957 $$FName
26958 \end_layout
26959
26960 \end_inset
26961
26962  The filename of the file specified in the external material dialog.
26963  This is either an absolute name, or it is relative to the \SpecialChar LyX
26964  document.
26965 \end_layout
26966
26967 \begin_layout Description
26968 \begin_inset Flex Code
26969 status collapsed
26970
26971 \begin_layout Plain Layout
26972 $$FPath
26973 \end_layout
26974
26975 \end_inset
26976
26977  The path part of 
26978 \begin_inset Flex Code
26979 status collapsed
26980
26981 \begin_layout Plain Layout
26982 $$FName
26983 \end_layout
26984
26985 \end_inset
26986
26987  (absolute name or relative to the \SpecialChar LyX
26988  document).
26989 \end_layout
26990
26991 \begin_layout Description
26992 \begin_inset Flex Code
26993 status collapsed
26994
26995 \begin_layout Plain Layout
26996 $$RelPathMaster
26997 \end_layout
26998
26999 \end_inset
27000
27001  The file path, relative to the master \SpecialChar LyX
27002  document.
27003 \end_layout
27004
27005 \begin_layout Description
27006 \begin_inset Flex Code
27007 status collapsed
27008
27009 \begin_layout Plain Layout
27010 $$RelPathParent
27011 \end_layout
27012
27013 \end_inset
27014
27015  The file path, relative to the \SpecialChar LyX
27016  document.
27017 \end_layout
27018
27019 \begin_layout Description
27020 \begin_inset Flex Code
27021 status collapsed
27022
27023 \begin_layout Plain Layout
27024 $$Sysdir
27025 \end_layout
27026
27027 \end_inset
27028
27029  This macro will expand to the absolute path of the system directory.
27030  This is typically used to point to the various helper scripts that are
27031  bundled with \SpecialChar LyX
27032 .
27033 \end_layout
27034
27035 \begin_layout Description
27036 \begin_inset Flex Code
27037 status collapsed
27038
27039 \begin_layout Plain Layout
27040 $$Tempname
27041 \end_layout
27042
27043 \end_inset
27044
27045  A name and full path to a temporary file which will be automatically deleted
27046  whenever the containing document is closed, or the external material insertion
27047  deleted.
27048 \end_layout
27049
27050 \begin_layout Standard
27051 All path macros contain a trailing directory separator, so you can construct
27052  e.
27053 \begin_inset space \thinspace{}
27054 \end_inset
27055
27056 g.
27057 \begin_inset space \space{}
27058 \end_inset
27059
27060 the absolute filename with 
27061 \begin_inset Flex Code
27062 status collapsed
27063
27064 \begin_layout Plain Layout
27065 $$AbsPath$$Basename$$Extension
27066 \end_layout
27067
27068 \end_inset
27069
27070 .
27071 \end_layout
27072
27073 \begin_layout Standard
27074 The macros above are substituted in all commands unless otherwise noted.
27075  The command 
27076 \begin_inset Flex Code
27077 status collapsed
27078
27079 \begin_layout Plain Layout
27080 Product
27081 \end_layout
27082
27083 \end_inset
27084
27085  supports additionally the following substitutions if they are enabled by
27086  the 
27087 \begin_inset Flex Code
27088 status collapsed
27089
27090 \begin_layout Plain Layout
27091 Transform
27092 \end_layout
27093
27094 \end_inset
27095
27096  and 
27097 \begin_inset Flex Code
27098 status collapsed
27099
27100 \begin_layout Plain Layout
27101 TransformCommand
27102 \end_layout
27103
27104 \end_inset
27105
27106  commands:
27107 \end_layout
27108
27109 \begin_layout Description
27110 \begin_inset Flex Code
27111 status collapsed
27112
27113 \begin_layout Plain Layout
27114 $$ResizeFront
27115 \end_layout
27116
27117 \end_inset
27118
27119  The front part of the resize command.
27120 \end_layout
27121
27122 \begin_layout Description
27123 \begin_inset Flex Code
27124 status collapsed
27125
27126 \begin_layout Plain Layout
27127 $$ResizeBack
27128 \end_layout
27129
27130 \end_inset
27131
27132  The back part of the resize command.
27133 \end_layout
27134
27135 \begin_layout Description
27136 \begin_inset Flex Code
27137 status collapsed
27138
27139 \begin_layout Plain Layout
27140 $$RotateFront
27141 \end_layout
27142
27143 \end_inset
27144
27145  The front part of the rotation command.
27146 \end_layout
27147
27148 \begin_layout Description
27149 \begin_inset Flex Code
27150 status collapsed
27151
27152 \begin_layout Plain Layout
27153 $$RotateBack
27154 \end_layout
27155
27156 \end_inset
27157
27158  The back part of the rotation command.
27159 \end_layout
27160
27161 \begin_layout Standard
27162 The value string of the 
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 Option
27168 \end_layout
27169
27170 \end_inset
27171
27172  command supports additionally the following substitutions if they are enabled
27173  by the 
27174 \begin_inset Flex Code
27175 status collapsed
27176
27177 \begin_layout Plain Layout
27178 Transform
27179 \end_layout
27180
27181 \end_inset
27182
27183  and 
27184 \begin_inset Flex Code
27185 status collapsed
27186
27187 \begin_layout Plain Layout
27188 TransformOption
27189 \end_layout
27190
27191 \end_inset
27192
27193  commands:
27194 \end_layout
27195
27196 \begin_layout Description
27197 \begin_inset Flex Code
27198 status collapsed
27199
27200 \begin_layout Plain Layout
27201 $$Clip
27202 \end_layout
27203
27204 \end_inset
27205
27206  The clip option.
27207 \end_layout
27208
27209 \begin_layout Description
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214 $$Extra
27215 \end_layout
27216
27217 \end_inset
27218
27219  The extra option.
27220 \end_layout
27221
27222 \begin_layout Description
27223 \begin_inset Flex Code
27224 status collapsed
27225
27226 \begin_layout Plain Layout
27227 $$Resize
27228 \end_layout
27229
27230 \end_inset
27231
27232  The resize option.
27233 \end_layout
27234
27235 \begin_layout Description
27236 \begin_inset Flex Code
27237 status collapsed
27238
27239 \begin_layout Plain Layout
27240 $$Rotate
27241 \end_layout
27242
27243 \end_inset
27244
27245  The rotation option.
27246 \end_layout
27247
27248 \begin_layout Standard
27249 You may ask why there are so many path macros.
27250  There are mainly two reasons:
27251 \end_layout
27252
27253 \begin_layout Enumerate
27254 Relative and absolute file names should remain relative or absolute, respectivel
27255 y.
27256  Users may have reasons to prefer either form.
27257  Relative names are useful for portable documents that should work on different
27258  machines, for example.
27259  Absolute names may be required by some programs.
27260 \end_layout
27261
27262 \begin_layout Enumerate
27263 \SpecialChar LaTeX
27264  treats relative file names differently than \SpecialChar LyX
27265  and other programs in nested
27266  included files.
27267  For \SpecialChar LyX
27268 , a relative file name is always relative to the document that contains
27269  the file name.
27270  For \SpecialChar LaTeX
27271 , it is always relative to the master document.
27272  These two definitions are identical if you have only one document, but
27273  differ if you have a master document that includes part documents.
27274  That means that relative filenames must be transformed when presented to
27275  \SpecialChar LaTeX
27276 .
27277  Fortunately \SpecialChar LyX
27278  does this automatically for you if you choose the right macros.
27279 \end_layout
27280
27281 \begin_layout Standard
27282 So which path macro should be used in new template definitions? The rule
27283  is not difficult:
27284 \end_layout
27285
27286 \begin_layout Itemize
27287 Use 
27288 \begin_inset Flex Code
27289 status collapsed
27290
27291 \begin_layout Plain Layout
27292 $$AbsPath
27293 \end_layout
27294
27295 \end_inset
27296
27297  if an absolute path is required.
27298 \end_layout
27299
27300 \begin_layout Itemize
27301 Use 
27302 \begin_inset Flex Code
27303 status collapsed
27304
27305 \begin_layout Plain Layout
27306 $$AbsOrRelPathMaster
27307 \end_layout
27308
27309 \end_inset
27310
27311  if the substituted string is some kind of \SpecialChar LaTeX
27312  input.
27313 \end_layout
27314
27315 \begin_layout Itemize
27316 Else use 
27317 \begin_inset Flex Code
27318 status collapsed
27319
27320 \begin_layout Plain Layout
27321 $$AbsOrRelPathParent
27322 \end_layout
27323
27324 \end_inset
27325
27326  in order to preserve the user's choice.
27327 \end_layout
27328
27329 \begin_layout Standard
27330 There are special cases where this rule does not work and e.
27331 \begin_inset space \thinspace{}
27332 \end_inset
27333
27334 g.
27335 \begin_inset space \space{}
27336 \end_inset
27337
27338 relative names are needed, but normally it will work just fine.
27339  One example for such a case is the command 
27340 \begin_inset Flex Code
27341 status collapsed
27342
27343 \begin_layout Plain Layout
27344 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27345 \end_layout
27346
27347 \end_inset
27348
27349  in the XFig template above: We can't use the absolute name because the
27350  copier for 
27351 \begin_inset Flex Code
27352 status collapsed
27353
27354 \begin_layout Plain Layout
27355 .pstex_t
27356 \end_layout
27357
27358 \end_inset
27359
27360  files needs the relative name in order to rewrite the file content.
27361 \end_layout
27362
27363 \begin_layout Section
27364 Security discussion
27365 \begin_inset CommandInset label
27366 LatexCommand label
27367 name "sec:Security-discussion"
27368
27369 \end_inset
27370
27371
27372 \end_layout
27373
27374 \begin_layout Standard
27375 The external material feature interfaces with a lot of external programs
27376  and does so automatically, so we have to consider the security implications
27377  of this.
27378  In particular, since you have the option of including your own filenames
27379  and/or parameter strings and those are expanded into a command, it seems
27380  that it would be possible to create a malicious document which executes
27381  arbitrary commands when a user views or prints the document.
27382  This is something we definitely want to avoid.
27383 \end_layout
27384
27385 \begin_layout Standard
27386 However, since the external program commands are specified in the template
27387  configuration file only, there are no security issues if \SpecialChar LyX
27388  is properly configure
27389 d with safe templates only.
27390  This is so because the external programs are invoked with the 
27391 \begin_inset Flex Code
27392 status collapsed
27393
27394 \begin_layout Plain Layout
27395 execvp
27396 \end_layout
27397
27398 \end_inset
27399
27400 -system call rather than the 
27401 \begin_inset Flex Code
27402 status collapsed
27403
27404 \begin_layout Plain Layout
27405 system
27406 \end_layout
27407
27408 \end_inset
27409
27410  system-call, so it's not possible to execute arbitrary commands from the
27411  filename or parameter section via the shell.
27412 \end_layout
27413
27414 \begin_layout Standard
27415 This also implies that you are restricted in what command strings you can
27416  use in the external material templates.
27417  In particular, pipes and redirection are not readily available.
27418  This has to be so if \SpecialChar LyX
27419  should remain safe.
27420  If you want to use some of the shell features, you should write a safe
27421  script to do this in a controlled manner, and then invoke the script from
27422  the command string.
27423  
27424 \end_layout
27425
27426 \begin_layout Standard
27427 It is possible to design a template that interacts directly with the shell,
27428  but since this would allow a malicious user to execute arbitrary commands
27429  by writing clever filenames and/or parameters, we generally recommend that
27430  you only use safe scripts that work with the 
27431 \begin_inset Flex Code
27432 status collapsed
27433
27434 \begin_layout Plain Layout
27435 execvp
27436 \end_layout
27437
27438 \end_inset
27439
27440  system call in a controlled manner.
27441  Of course, for use in a controlled environment, it can be tempting to just
27442  fall back to use ordinary shell scripts.
27443  If you do so, be aware that you 
27444 \emph on
27445 will
27446 \emph default
27447  provide an easily exploitable security hole in your system.
27448  Of course it stands to reason that such unsafe templates will never be
27449  included in the standard \SpecialChar LyX
27450  distribution, although we do encourage people
27451  to submit new templates in the open source tradition.
27452  But \SpecialChar LyX
27453  as shipped from the official distribution channels will never have
27454  unsafe templates.
27455 \end_layout
27456
27457 \begin_layout Standard
27458 Including external material provides a lot of power, and you have to be
27459  careful not to introduce security hazards with this power.
27460  A subtle error in a single line in an innocent looking script can open
27461  the door to huge security problems.
27462  So if you do not fully understand the issues, we recommend that you consult
27463  a knowledgeable security professional or the \SpecialChar LyX
27464  development team if you have
27465  any questions about whether a given template is safe or not.
27466  And do this before you use it in an uncontrolled environment.
27467 \end_layout
27468
27469 \begin_layout Chapter
27470 \start_of_appendix
27471 List of supported \SpecialChar LyX
27472  functions to be used in layouts
27473 \begin_inset CommandInset label
27474 LatexCommand label
27475 name "chap:List-of-functions"
27476
27477 \end_inset
27478
27479
27480 \end_layout
27481
27482 \begin_layout Standard
27483 \align center
27484 \begin_inset Tabular
27485 <lyxtabular version="3" rows="11" columns="8">
27486 <features tabularvalignment="middle">
27487 <column alignment="left" valignment="top">
27488 <column alignment="left" valignment="top">
27489 <column alignment="left" valignment="top">
27490 <column alignment="left" valignment="top">
27491 <column alignment="left" valignment="top">
27492 <column alignment="left" valignment="top">
27493 <column alignment="left" valignment="top">
27494 <column alignment="left" valignment="top">
27495 <row>
27496 <cell alignment="left" valignment="top" usebox="none">
27497 \begin_inset Text
27498
27499 \begin_layout Plain Layout
27500 accents
27501 \end_layout
27502
27503 \end_inset
27504 </cell>
27505 <cell alignment="left" valignment="top" usebox="none">
27506 \begin_inset Text
27507
27508 \begin_layout Plain Layout
27509 booktabs
27510 \end_layout
27511
27512 \end_inset
27513 </cell>
27514 <cell alignment="left" valignment="top" usebox="none">
27515 \begin_inset Text
27516
27517 \begin_layout Plain Layout
27518 feyn
27519 \end_layout
27520
27521 \end_inset
27522 </cell>
27523 <cell alignment="left" valignment="top" usebox="none">
27524 \begin_inset Text
27525
27526 \begin_layout Plain Layout
27527 listings
27528 \end_layout
27529
27530 \end_inset
27531 </cell>
27532 <cell alignment="center" valignment="top" usebox="none">
27533 \begin_inset Text
27534
27535 \begin_layout Plain Layout
27536 natbib
27537 \end_layout
27538
27539 \end_inset
27540 </cell>
27541 <cell alignment="center" valignment="top" usebox="none">
27542 \begin_inset Text
27543
27544 \begin_layout Plain Layout
27545 rotfloat
27546 \end_layout
27547
27548 \end_inset
27549 </cell>
27550 <cell alignment="center" valignment="top" usebox="none">
27551 \begin_inset Text
27552
27553 \begin_layout Plain Layout
27554 tfrupee
27555 \end_layout
27556
27557 \end_inset
27558 </cell>
27559 <cell alignment="center" valignment="top" usebox="none">
27560 \begin_inset Text
27561
27562 \begin_layout Plain Layout
27563 wasysym
27564 \end_layout
27565
27566 \end_inset
27567 </cell>
27568 </row>
27569 <row>
27570 <cell alignment="left" valignment="top" usebox="none">
27571 \begin_inset Text
27572
27573 \begin_layout Plain Layout
27574 amsbsy
27575 \end_layout
27576
27577 \end_inset
27578 </cell>
27579 <cell alignment="left" valignment="top" usebox="none">
27580 \begin_inset Text
27581
27582 \begin_layout Plain Layout
27583 calc
27584 \end_layout
27585
27586 \end_inset
27587 </cell>
27588 <cell alignment="left" valignment="top" usebox="none">
27589 \begin_inset Text
27590
27591 \begin_layout Plain Layout
27592 fixltx2e
27593 \end_layout
27594
27595 \end_inset
27596 </cell>
27597 <cell alignment="left" valignment="top" usebox="none">
27598 \begin_inset Text
27599
27600 \begin_layout Plain Layout
27601 longtable
27602 \end_layout
27603
27604 \end_inset
27605 </cell>
27606 <cell alignment="center" valignment="top" usebox="none">
27607 \begin_inset Text
27608
27609 \begin_layout Plain Layout
27610 nomencl
27611 \end_layout
27612
27613 \end_inset
27614 </cell>
27615 <cell alignment="center" valignment="top" usebox="none">
27616 \begin_inset Text
27617
27618 \begin_layout Plain Layout
27619 rsphrase
27620 \end_layout
27621
27622 \end_inset
27623 </cell>
27624 <cell alignment="center" valignment="top" usebox="none">
27625 \begin_inset Text
27626
27627 \begin_layout Plain Layout
27628 tipa
27629 \end_layout
27630
27631 \end_inset
27632 </cell>
27633 <cell alignment="center" valignment="top" usebox="none">
27634 \begin_inset Text
27635
27636 \begin_layout Plain Layout
27637 wrapfig
27638 \end_layout
27639
27640 \end_inset
27641 </cell>
27642 </row>
27643 <row>
27644 <cell alignment="left" valignment="top" usebox="none">
27645 \begin_inset Text
27646
27647 \begin_layout Plain Layout
27648 amscd
27649 \end_layout
27650
27651 \end_inset
27652 </cell>
27653 <cell alignment="left" valignment="top" usebox="none">
27654 \begin_inset Text
27655
27656 \begin_layout Plain Layout
27657 CJK
27658 \end_layout
27659
27660 \end_inset
27661 </cell>
27662 <cell alignment="left" valignment="top" usebox="none">
27663 \begin_inset Text
27664
27665 \begin_layout Plain Layout
27666 float
27667 \end_layout
27668
27669 \end_inset
27670 </cell>
27671 <cell alignment="left" valignment="top" usebox="none">
27672 \begin_inset Text
27673
27674 \begin_layout Plain Layout
27675 lyxskak
27676 \end_layout
27677
27678 \end_inset
27679 </cell>
27680 <cell alignment="center" valignment="top" usebox="none">
27681 \begin_inset Text
27682
27683 \begin_layout Plain Layout
27684 pdfcolmk
27685 \end_layout
27686
27687 \end_inset
27688 </cell>
27689 <cell alignment="center" valignment="top" usebox="none">
27690 \begin_inset Text
27691
27692 \begin_layout Plain Layout
27693 setspace
27694 \end_layout
27695
27696 \end_inset
27697 </cell>
27698 <cell alignment="center" valignment="top" usebox="none">
27699 \begin_inset Text
27700
27701 \begin_layout Plain Layout
27702 tipx
27703 \end_layout
27704
27705 \end_inset
27706 </cell>
27707 <cell alignment="center" valignment="top" usebox="none">
27708 \begin_inset Text
27709
27710 \begin_layout Plain Layout
27711 xargs
27712 \end_layout
27713
27714 \end_inset
27715 </cell>
27716 </row>
27717 <row>
27718 <cell alignment="left" valignment="top" usebox="none">
27719 \begin_inset Text
27720
27721 \begin_layout Plain Layout
27722 amsmath
27723 \end_layout
27724
27725 \end_inset
27726 </cell>
27727 <cell alignment="left" valignment="top" usebox="none">
27728 \begin_inset Text
27729
27730 \begin_layout Plain Layout
27731 color
27732 \end_layout
27733
27734 \end_inset
27735 </cell>
27736 <cell alignment="left" valignment="top" usebox="none">
27737 \begin_inset Text
27738
27739 \begin_layout Plain Layout
27740 framed
27741 \end_layout
27742
27743 \end_inset
27744 </cell>
27745 <cell alignment="left" valignment="top" usebox="none">
27746 \begin_inset Text
27747
27748 \begin_layout Plain Layout
27749 makeidx
27750 \end_layout
27751
27752 \end_inset
27753 </cell>
27754 <cell alignment="center" valignment="top" usebox="none">
27755 \begin_inset Text
27756
27757 \begin_layout Plain Layout
27758 pdfpages
27759 \end_layout
27760
27761 \end_inset
27762 </cell>
27763 <cell alignment="center" valignment="top" usebox="none">
27764 \begin_inset Text
27765
27766 \begin_layout Plain Layout
27767 shapepar
27768 \end_layout
27769
27770 \end_inset
27771 </cell>
27772 <cell alignment="center" valignment="top" usebox="none">
27773 \begin_inset Text
27774
27775 \begin_layout Plain Layout
27776 tone
27777 \end_layout
27778
27779 \end_inset
27780 </cell>
27781 <cell alignment="center" valignment="top" usebox="none">
27782 \begin_inset Text
27783
27784 \begin_layout Plain Layout
27785 xcolor
27786 \end_layout
27787
27788 \end_inset
27789 </cell>
27790 </row>
27791 <row>
27792 <cell alignment="left" valignment="top" usebox="none">
27793 \begin_inset Text
27794
27795 \begin_layout Plain Layout
27796 amssymb
27797 \end_layout
27798
27799 \end_inset
27800 </cell>
27801 <cell alignment="left" valignment="top" usebox="none">
27802 \begin_inset Text
27803
27804 \begin_layout Plain Layout
27805 covington
27806 \end_layout
27807
27808 \end_inset
27809 </cell>
27810 <cell alignment="left" valignment="top" usebox="none">
27811 \begin_inset Text
27812
27813 \begin_layout Plain Layout
27814 graphicx
27815 \end_layout
27816
27817 \end_inset
27818 </cell>
27819 <cell alignment="left" valignment="top" usebox="none">
27820 \begin_inset Text
27821
27822 \begin_layout Plain Layout
27823 marvosym
27824 \end_layout
27825
27826 \end_inset
27827 </cell>
27828 <cell alignment="center" valignment="top" usebox="none">
27829 \begin_inset Text
27830
27831 \begin_layout Plain Layout
27832 pifont
27833 \end_layout
27834
27835 \end_inset
27836 </cell>
27837 <cell alignment="center" valignment="top" usebox="none">
27838 \begin_inset Text
27839
27840 \begin_layout Plain Layout
27841 slashed
27842 \end_layout
27843
27844 \end_inset
27845 </cell>
27846 <cell alignment="center" valignment="top" usebox="none">
27847 \begin_inset Text
27848
27849 \begin_layout Plain Layout
27850 txfonts
27851 \end_layout
27852
27853 \end_inset
27854 </cell>
27855 <cell alignment="center" valignment="top" usebox="none">
27856 \begin_inset Text
27857
27858 \begin_layout Plain Layout
27859 xy
27860 \end_layout
27861
27862 \end_inset
27863 </cell>
27864 </row>
27865 <row>
27866 <cell alignment="left" valignment="top" usebox="none">
27867 \begin_inset Text
27868
27869 \begin_layout Plain Layout
27870 amstext
27871 \end_layout
27872
27873 \end_inset
27874 </cell>
27875 <cell alignment="left" valignment="top" usebox="none">
27876 \begin_inset Text
27877
27878 \begin_layout Plain Layout
27879 csquotes
27880 \end_layout
27881
27882 \end_inset
27883 </cell>
27884 <cell alignment="left" valignment="top" usebox="none">
27885 \begin_inset Text
27886
27887 \begin_layout Plain Layout
27888 hhline
27889 \end_layout
27890
27891 \end_inset
27892 </cell>
27893 <cell alignment="left" valignment="top" usebox="none">
27894 \begin_inset Text
27895
27896 \begin_layout Plain Layout
27897 mathdesign
27898 \end_layout
27899
27900 \end_inset
27901 </cell>
27902 <cell alignment="center" valignment="top" usebox="none">
27903 \begin_inset Text
27904
27905 \begin_layout Plain Layout
27906 pmboxdraw
27907 \end_layout
27908
27909 \end_inset
27910 </cell>
27911 <cell alignment="center" valignment="top" usebox="none">
27912 \begin_inset Text
27913
27914 \begin_layout Plain Layout
27915 soul
27916 \end_layout
27917
27918 \end_inset
27919 </cell>
27920 <cell alignment="center" valignment="top" usebox="none">
27921 \begin_inset Text
27922
27923 \begin_layout Plain Layout
27924 ulem
27925 \end_layout
27926
27927 \end_inset
27928 </cell>
27929 <cell alignment="center" valignment="top" usebox="none">
27930 \begin_inset Text
27931
27932 \begin_layout Plain Layout
27933 yhmath
27934 \end_layout
27935
27936 \end_inset
27937 </cell>
27938 </row>
27939 <row>
27940 <cell alignment="left" valignment="top" usebox="none">
27941 \begin_inset Text
27942
27943 \begin_layout Plain Layout
27944 amsthm
27945 \end_layout
27946
27947 \end_inset
27948 </cell>
27949 <cell alignment="left" valignment="top" usebox="none">
27950 \begin_inset Text
27951
27952 \begin_layout Plain Layout
27953 dvipost
27954 \end_layout
27955
27956 \end_inset
27957 </cell>
27958 <cell alignment="left" valignment="top" usebox="none">
27959 \begin_inset Text
27960
27961 \begin_layout Plain Layout
27962 hyperref
27963 \end_layout
27964
27965 \end_inset
27966 </cell>
27967 <cell alignment="left" valignment="top" usebox="none">
27968 \begin_inset Text
27969
27970 \begin_layout Plain Layout
27971 mathdots
27972 \end_layout
27973
27974 \end_inset
27975 </cell>
27976 <cell alignment="center" valignment="top" usebox="none">
27977 \begin_inset Text
27978
27979 \begin_layout Plain Layout
27980 polyglossia
27981 \end_layout
27982
27983 \end_inset
27984 </cell>
27985 <cell alignment="center" valignment="top" usebox="none">
27986 \begin_inset Text
27987
27988 \begin_layout Plain Layout
27989 splitidx
27990 \end_layout
27991
27992 \end_inset
27993 </cell>
27994 <cell alignment="center" valignment="top" usebox="none">
27995 \begin_inset Text
27996
27997 \begin_layout Plain Layout
27998 undertilde
27999 \end_layout
28000
28001 \end_inset
28002 </cell>
28003 <cell alignment="center" valignment="top" usebox="none">
28004 \begin_inset Text
28005
28006 \begin_layout Plain Layout
28007
28008 \end_layout
28009
28010 \end_inset
28011 </cell>
28012 </row>
28013 <row>
28014 <cell alignment="left" valignment="top" usebox="none">
28015 \begin_inset Text
28016
28017 \begin_layout Plain Layout
28018 array
28019 \end_layout
28020
28021 \end_inset
28022 </cell>
28023 <cell alignment="left" valignment="top" usebox="none">
28024 \begin_inset Text
28025
28026 \begin_layout Plain Layout
28027 endnotes
28028 \end_layout
28029
28030 \end_inset
28031 </cell>
28032 <cell alignment="left" valignment="top" usebox="none">
28033 \begin_inset Text
28034
28035 \begin_layout Plain Layout
28036 ifsym
28037 \end_layout
28038
28039 \end_inset
28040 </cell>
28041 <cell alignment="left" valignment="top" usebox="none">
28042 \begin_inset Text
28043
28044 \begin_layout Plain Layout
28045 mathrsfs
28046 \end_layout
28047
28048 \end_inset
28049 </cell>
28050 <cell alignment="center" valignment="top" usebox="none">
28051 \begin_inset Text
28052
28053 \begin_layout Plain Layout
28054 prettyref
28055 \end_layout
28056
28057 \end_inset
28058 </cell>
28059 <cell alignment="center" valignment="top" usebox="none">
28060 \begin_inset Text
28061
28062 \begin_layout Plain Layout
28063 subfig
28064 \end_layout
28065
28066 \end_inset
28067 </cell>
28068 <cell alignment="center" valignment="top" usebox="none">
28069 \begin_inset Text
28070
28071 \begin_layout Plain Layout
28072 units
28073 \end_layout
28074
28075 \end_inset
28076 </cell>
28077 <cell alignment="center" valignment="top" usebox="none">
28078 \begin_inset Text
28079
28080 \begin_layout Plain Layout
28081
28082 \end_layout
28083
28084 \end_inset
28085 </cell>
28086 </row>
28087 <row>
28088 <cell alignment="left" valignment="top" usebox="none">
28089 \begin_inset Text
28090
28091 \begin_layout Plain Layout
28092 ascii
28093 \end_layout
28094
28095 \end_inset
28096 </cell>
28097 <cell alignment="left" valignment="top" usebox="none">
28098 \begin_inset Text
28099
28100 \begin_layout Plain Layout
28101 enumitem
28102 \end_layout
28103
28104 \end_inset
28105 </cell>
28106 <cell alignment="left" valignment="top" usebox="none">
28107 \begin_inset Text
28108
28109 \begin_layout Plain Layout
28110 ifthen
28111 \end_layout
28112
28113 \end_inset
28114 </cell>
28115 <cell alignment="left" valignment="top" usebox="none">
28116 \begin_inset Text
28117
28118 \begin_layout Plain Layout
28119 mhchem
28120 \end_layout
28121
28122 \end_inset
28123 </cell>
28124 <cell alignment="center" valignment="top" usebox="none">
28125 \begin_inset Text
28126
28127 \begin_layout Plain Layout
28128 pxfonts
28129 \end_layout
28130
28131 \end_inset
28132 </cell>
28133 <cell alignment="center" valignment="top" usebox="none">
28134 \begin_inset Text
28135
28136 \begin_layout Plain Layout
28137 subscript
28138 \end_layout
28139
28140 \end_inset
28141 </cell>
28142 <cell alignment="center" valignment="top" usebox="none">
28143 \begin_inset Text
28144
28145 \begin_layout Plain Layout
28146 url
28147 \end_layout
28148
28149 \end_inset
28150 </cell>
28151 <cell alignment="center" valignment="top" usebox="none">
28152 \begin_inset Text
28153
28154 \begin_layout Plain Layout
28155
28156 \end_layout
28157
28158 \end_inset
28159 </cell>
28160 </row>
28161 <row>
28162 <cell alignment="left" valignment="top" usebox="none">
28163 \begin_inset Text
28164
28165 \begin_layout Plain Layout
28166 bbding
28167 \end_layout
28168
28169 \end_inset
28170 </cell>
28171 <cell alignment="left" valignment="top" usebox="none">
28172 \begin_inset Text
28173
28174 \begin_layout Plain Layout
28175 esint
28176 \end_layout
28177
28178 \end_inset
28179 </cell>
28180 <cell alignment="left" valignment="top" usebox="none">
28181 \begin_inset Text
28182
28183 \begin_layout Plain Layout
28184 jurabib
28185 \end_layout
28186
28187 \end_inset
28188 </cell>
28189 <cell alignment="left" valignment="top" usebox="none">
28190 \begin_inset Text
28191
28192 \begin_layout Plain Layout
28193 multicol
28194 \end_layout
28195
28196 \end_inset
28197 </cell>
28198 <cell alignment="center" valignment="top" usebox="none">
28199 \begin_inset Text
28200
28201 \begin_layout Plain Layout
28202 refstyle
28203 \end_layout
28204
28205 \end_inset
28206 </cell>
28207 <cell alignment="center" valignment="top" usebox="none">
28208 \begin_inset Text
28209
28210 \begin_layout Plain Layout
28211 textcomp
28212 \end_layout
28213
28214 \end_inset
28215 </cell>
28216 <cell alignment="center" valignment="top" usebox="none">
28217 \begin_inset Text
28218
28219 \begin_layout Plain Layout
28220 varioref
28221 \end_layout
28222
28223 \end_inset
28224 </cell>
28225 <cell alignment="center" valignment="top" usebox="none">
28226 \begin_inset Text
28227
28228 \begin_layout Plain Layout
28229
28230 \end_layout
28231
28232 \end_inset
28233 </cell>
28234 </row>
28235 <row>
28236 <cell alignment="center" valignment="top" usebox="none">
28237 \begin_inset Text
28238
28239 \begin_layout Plain Layout
28240 bm
28241 \end_layout
28242
28243 \end_inset
28244 </cell>
28245 <cell alignment="center" valignment="top" usebox="none">
28246 \begin_inset Text
28247
28248 \begin_layout Plain Layout
28249 fancybox
28250 \end_layout
28251
28252 \end_inset
28253 </cell>
28254 <cell alignment="center" valignment="top" usebox="none">
28255 \begin_inset Text
28256
28257 \begin_layout Plain Layout
28258 latexsym
28259 \end_layout
28260
28261 \end_inset
28262 </cell>
28263 <cell alignment="center" valignment="top" usebox="none">
28264 \begin_inset Text
28265
28266 \begin_layout Plain Layout
28267 multirow
28268 \end_layout
28269
28270 \end_inset
28271 </cell>
28272 <cell alignment="center" valignment="top" usebox="none">
28273 \begin_inset Text
28274
28275 \begin_layout Plain Layout
28276 rotating
28277 \end_layout
28278
28279 \end_inset
28280 </cell>
28281 <cell alignment="center" valignment="top" usebox="none">
28282 \begin_inset Text
28283
28284 \begin_layout Plain Layout
28285 textgreek
28286 \end_layout
28287
28288 \end_inset
28289 </cell>
28290 <cell alignment="center" valignment="top" usebox="none">
28291 \begin_inset Text
28292
28293 \begin_layout Plain Layout
28294 verbatim
28295 \end_layout
28296
28297 \end_inset
28298 </cell>
28299 <cell alignment="center" valignment="top" usebox="none">
28300 \begin_inset Text
28301
28302 \begin_layout Plain Layout
28303
28304 \end_layout
28305
28306 \end_inset
28307 </cell>
28308 </row>
28309 </lyxtabular>
28310
28311 \end_inset
28312
28313
28314 \end_layout
28315
28316 \begin_layout Chapter
28317 Names of available colors to be used in layouts
28318 \begin_inset CommandInset label
28319 LatexCommand label
28320 name "chap:Names-of-colors"
28321
28322 \end_inset
28323
28324
28325 \end_layout
28326
28327 \begin_layout Standard
28328 The colors listed here are the standard colors and the those that you can
28329  adjust in the \SpecialChar LyX
28330  preferences.
28331 \end_layout
28332
28333 \begin_layout Description
28334 none
28335 \family roman
28336 \series medium
28337 \shape up
28338 \size normal
28339 \emph off
28340 \bar no
28341 \strikeout off
28342 \uuline off
28343 \uwave off
28344 \noun off
28345 \color none
28346  No particular color – clear or default
28347 \end_layout
28348
28349 \begin_layout Description
28350 black
28351 \end_layout
28352
28353 \begin_layout Description
28354 white
28355 \end_layout
28356
28357 \begin_layout Description
28358 red
28359 \end_layout
28360
28361 \begin_layout Description
28362 green
28363 \end_layout
28364
28365 \begin_layout Description
28366 blue
28367 \end_layout
28368
28369 \begin_layout Description
28370 cyan
28371 \end_layout
28372
28373 \begin_layout Description
28374 magenta
28375 \end_layout
28376
28377 \begin_layout Description
28378 yellow
28379 \end_layout
28380
28381 \begin_layout Description
28382 added_space Added space marker color
28383 \end_layout
28384
28385 \begin_layout Description
28386 addedtext Added text color
28387 \end_layout
28388
28389 \begin_layout Description
28390 appendix Appendix marker color
28391 \end_layout
28392
28393 \begin_layout Description
28394 background Background color
28395 \end_layout
28396
28397 \begin_layout Description
28398 bottomarea Bottom area color
28399 \end_layout
28400
28401 \begin_layout Description
28402 branchlabel Label color for branches
28403 \end_layout
28404
28405 \begin_layout Description
28406 buttonbg Color used for button background
28407 \end_layout
28408
28409 \begin_layout Description
28410 buttonhoverbg Color used for button background under focus
28411 \end_layout
28412
28413 \begin_layout Description
28414 buttonframe Color for inset button frames
28415 \end_layout
28416
28417 \begin_layout Description
28418 changebar Changebar color
28419 \end_layout
28420
28421 \begin_layout Description
28422 changedtextauthor1 Changed text color author 1
28423 \end_layout
28424
28425 \begin_layout Description
28426 changedtextauthor2 Changed text color author 2
28427 \end_layout
28428
28429 \begin_layout Description
28430 changedtextauthor3 Changed text color author 3
28431 \end_layout
28432
28433 \begin_layout Description
28434 changedtextauthor4 Changed text color author 4
28435 \end_layout
28436
28437 \begin_layout Description
28438 changedtextauthor5 Changed text color author 5
28439 \end_layout
28440
28441 \begin_layout Description
28442 collapsable_inset_frame Collapsable insets framecolor
28443 \end_layout
28444
28445 \begin_layout Description
28446 collapsable_inset_text Collapsable insets text color
28447 \end_layout
28448
28449 \begin_layout Description
28450 command Text color for command insets
28451 \end_layout
28452
28453 \begin_layout Description
28454 commandbg Background color for command insets
28455 \end_layout
28456
28457 \begin_layout Description
28458 commandframe Frame color for command insets
28459 \end_layout
28460
28461 \begin_layout Description
28462 comment color for comments
28463 \end_layout
28464
28465 \begin_layout Description
28466 commentbg Background color of comments
28467 \end_layout
28468
28469 \begin_layout Description
28470 cursor Cursor color
28471 \end_layout
28472
28473 \begin_layout Description
28474 deletedtext Deleted text color
28475 \end_layout
28476
28477 \begin_layout Description
28478 deletedtextmodifier Deleted text modifying color
28479 \end_layout
28480
28481 \begin_layout Description
28482 depthbar Color for the depth bars in the margin
28483 \end_layout
28484
28485 \begin_layout Description
28486 eolmarker End of line marker color
28487 \end_layout
28488
28489 \begin_layout Description
28490 error Color of the \SpecialChar LaTeX
28491  error box
28492 \end_layout
28493
28494 \begin_layout Description
28495 footlabel Label color for footnotes
28496 \end_layout
28497
28498 \begin_layout Description
28499 graphicsbg Graphics inset background color
28500 \end_layout
28501
28502 \begin_layout Description
28503 greyedout Label color for greyedout insets
28504 \end_layout
28505
28506 \begin_layout Description
28507 greyedoutbg Background color of greyedout inset
28508 \end_layout
28509
28510 \begin_layout Description
28511 greyedouttext Color for greyedout inset text
28512 \end_layout
28513
28514 \begin_layout Description
28515 indexlabel Label color for index insets
28516 \end_layout
28517
28518 \begin_layout Description
28519 ignore The color is ignored
28520 \end_layout
28521
28522 \begin_layout Description
28523 inherit The color is inherited
28524 \end_layout
28525
28526 \begin_layout Description
28527 inlinecompletion Inline completion color
28528 \end_layout
28529
28530 \begin_layout Description
28531 insetbg Inset marker background color
28532 \end_layout
28533
28534 \begin_layout Description
28535 insetframe Inset marker frame color
28536 \end_layout
28537
28538 \begin_layout Description
28539 language Color for marking foreign language words
28540 \end_layout
28541
28542 \begin_layout Description
28543 latex Text color in \SpecialChar LaTeX
28544  mode
28545 \end_layout
28546
28547 \begin_layout Description
28548 listingsbg Background color of listings inset
28549 \end_layout
28550
28551 \begin_layout Description
28552 marginlabel Label color for margin notes
28553 \end_layout
28554
28555 \begin_layout Description
28556 math Math inset text color
28557 \end_layout
28558
28559 \begin_layout Description
28560 mathbg Math inset background color
28561 \end_layout
28562
28563 \begin_layout Description
28564 mathcorners Math inset frame color not under focus
28565 \end_layout
28566
28567 \begin_layout Description
28568 mathframe Math inset frame color under focus
28569 \end_layout
28570
28571 \begin_layout Description
28572 mathline Math line color
28573 \end_layout
28574
28575 \begin_layout Description
28576 mathmacrobg Macro math inset background color
28577 \end_layout
28578
28579 \begin_layout Description
28580 mathmacroblend Macro math blended color
28581 \end_layout
28582
28583 \begin_layout Description
28584 mathmacroframe Macro math frame color
28585 \end_layout
28586
28587 \begin_layout Description
28588 mathmacrohoverbg Macro math inset background color hovered
28589 \end_layout
28590
28591 \begin_layout Description
28592 mathmacrolabel Macro math label color
28593 \end_layout
28594
28595 \begin_layout Description
28596 mathmacronewarg Macro template color for new parameters
28597 \end_layout
28598
28599 \begin_layout Description
28600 mathmacrooldarg Macro template color for old parameters
28601 \end_layout
28602
28603 \begin_layout Description
28604 newpage New page color
28605 \end_layout
28606
28607 \begin_layout Description
28608 nonunique_inlinecompletion Inline completion color for the non-unique part
28609 \end_layout
28610
28611 \begin_layout Description
28612 notebg Background color of notes
28613 \end_layout
28614
28615 \begin_layout Description
28616 notelabel Label color for notes
28617 \end_layout
28618
28619 \begin_layout Description
28620 pagebreak Page break/line break color
28621 \end_layout
28622
28623 \begin_layout Description
28624 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28625 \end_layout
28626
28627 \begin_layout Description
28628 phantomtext Text color for phantom insets
28629 \end_layout
28630
28631 \begin_layout Description
28632 preview The color used for previews
28633 \end_layout
28634
28635 \begin_layout Description
28636 previewframe Preview frame color
28637 \end_layout
28638
28639 \begin_layout Description
28640 regexpframe Color for regexp frame
28641 \end_layout
28642
28643 \begin_layout Description
28644 selection Background color of selected text
28645 \end_layout
28646
28647 \begin_layout Description
28648 selectiontext Foreground color of selected text
28649 \end_layout
28650
28651 \begin_layout Description
28652 shadedbg Background color of shaded box
28653 \end_layout
28654
28655 \begin_layout Description
28656 special Special chars text color
28657 \end_layout
28658
28659 \begin_layout Description
28660 tabularline Table line color
28661 \end_layout
28662
28663 \begin_layout Description
28664 tabularonoffline Table line color
28665 \end_layout
28666
28667 \begin_layout Description
28668 urllabel Label color for URL insets
28669 \end_layout
28670
28671 \begin_layout Description
28672 urltext Color for URL inset text
28673 \end_layout
28674
28675 \end_body
28676 \end_document