]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Merge branch 'master' into biblatex2
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 528
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \graphics default
61 \default_output_format pdf2
62 \output_sync 0
63 \bibtex_command default
64 \index_command default
65 \paperfontsize 12
66 \spacing single
67 \use_hyperref true
68 \pdf_title "LyX Configuration Manual"
69 \pdf_author "LyX Team"
70 \pdf_subject "LyX-documentation Customization"
71 \pdf_keywords "LyX, documentation, customization"
72 \pdf_bookmarks true
73 \pdf_bookmarksnumbered true
74 \pdf_bookmarksopen true
75 \pdf_bookmarksopenlevel 1
76 \pdf_breaklinks false
77 \pdf_pdfborder false
78 \pdf_colorlinks true
79 \pdf_backref false
80 \pdf_pdfusetitle false
81 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
82 \papersize default
83 \use_geometry false
84 \use_package amsmath 0
85 \use_package amssymb 0
86 \use_package cancel 0
87 \use_package esint 0
88 \use_package mathdots 1
89 \use_package mathtools 0
90 \use_package mhchem 0
91 \use_package stackrel 0
92 \use_package stmaryrd 0
93 \use_package undertilde 0
94 \cite_engine basic
95 \cite_engine_type default
96 \biblio_style plain
97 \use_bibtopic false
98 \use_indices false
99 \paperorientation portrait
100 \suppress_date false
101 \justification true
102 \use_refstyle 0
103 \notefontcolor #0000ff
104 \branch OutDated
105 \selected 0
106 \filename_suffix 0
107 \color #f5fae7
108 \end_branch
109 \index Index
110 \shortcut idx
111 \color #008000
112 \end_index
113 \secnumdepth 3
114 \tocdepth 3
115 \paragraph_separation indent
116 \paragraph_indentation default
117 \quotes_style english
118 \dynamic_quotes 0
119 \papercolumns 1
120 \papersides 2
121 \paperpagestyle headings
122 \tracking_changes true
123 \output_changes false
124 \html_math_output 0
125 \html_css_as_file 0
126 \html_be_strict true
127 \author -712698321 "Jürgen Spitzmüller"
128 \author 2047637253 "Guillaume Munch"
129 \author 2089657418 "Usti"
130 \end_header
131
132 \begin_body
133
134 \begin_layout Title
135 Customizing \SpecialChar LyX
136 : Features for the Advanced User
137 \end_layout
138
139 \begin_layout Author
140 by the \SpecialChar LyX
141  Team
142 \begin_inset Foot
143 status collapsed
144
145 \begin_layout Plain Layout
146 \noindent
147 If you have comments or error corrections, please send them to the \SpecialChar LyX
148  Documentatio
149 n mailing list, 
150 \begin_inset CommandInset href
151 LatexCommand href
152 target "lyx-docs@lists.lyx.org"
153 type "mailto:"
154
155 \end_inset
156
157 .
158  Include 
159 \begin_inset Quotes eld
160 \end_inset
161
162 [Customization]
163 \begin_inset Quotes erd
164 \end_inset
165
166  in the subject header, and please cc the current maintainer of this file,
167  Richard Heck <rgheck@comcast.net>.
168 \end_layout
169
170 \end_inset
171
172
173 \begin_inset Newline newline
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180 Version 2.2.x 
181 \end_layout
182
183 \begin_layout Standard
184 \begin_inset CommandInset toc
185 LatexCommand tableofcontents
186
187 \end_inset
188
189
190 \end_layout
191
192 \begin_layout Standard
193 \begin_inset Note Note
194 status open
195
196 \begin_layout Plain Layout
197 Please use change tracking when modifying this document.
198  This makes it easier for our translators to recognize things that have
199  been changed, and it helps the maintainer keep up-to-date with what's been
200  done.
201 \end_layout
202
203 \end_inset
204
205
206 \end_layout
207
208 \begin_layout Chapter
209 Introduction
210 \end_layout
211
212 \begin_layout Standard
213 This manual covers the customization features present in \SpecialChar LyX
214 .
215  In it, we discuss issues like keyboard shortcuts, screen previewing options,
216  printer options, sending commands to \SpecialChar LyX
217  via the \SpecialChar LyX
218  Server, internationalization,
219  installing new \SpecialChar LaTeX
220  classes and \SpecialChar LyX
221  layouts, etc.
222  We can't possibly hope to touch on everything you can change—our developers
223  add new features faster than we can document them—but we will explain the
224  most common customizations and hopefully point you in the right direction
225  for some of the more obscure ones.
226 \end_layout
227
228 \begin_layout Standard
229 \begin_inset Branch OutDated
230 inverted 0
231 status collapsed
232
233 \begin_layout Standard
234 Information from previous versions of this document that now seems to be
235  outdated is contained in the OutDated branch of this document.
236  By default, this information will not appear in the \SpecialChar LaTeX
237  output.
238 \end_layout
239
240 \end_inset
241
242
243 \end_layout
244
245 \begin_layout Chapter
246 \SpecialChar LyX
247  configuration files
248 \end_layout
249
250 \begin_layout Standard
251 This chapter aims to help you to find your way through the \SpecialChar LyX
252  configuration
253  files.
254  Before continuing to read this chapter, you should find out where your
255  \SpecialChar LyX
256  library and user directories are by using 
257 \begin_inset Flex Noun
258 status collapsed
259
260 \begin_layout Plain Layout
261 Help\SpecialChar menuseparator
262 About
263 \begin_inset space ~
264 \end_inset
265
266 LyX
267 \end_layout
268
269 \end_inset
270
271 .
272  The library directory is the place where \SpecialChar LyX
273  places its system-wide configuration
274  files; the user directory is where you can place your modified versions.
275  We will call the former 
276 \begin_inset Flex Code
277 status collapsed
278
279 \begin_layout Plain Layout
280 LyXDir
281 \end_layout
282
283 \end_inset
284
285  and the latter 
286 \begin_inset Flex Noun
287 status collapsed
288
289 \begin_layout Plain Layout
290 UserDir
291 \end_layout
292
293 \end_inset
294
295  in the remainder of this document.
296  
297 \end_layout
298
299 \begin_layout Section
300 What's in 
301 \begin_inset Flex Code
302 status collapsed
303
304 \begin_layout Plain Layout
305 LyXDir
306 \end_layout
307
308 \end_inset
309
310 ?
311 \end_layout
312
313 \begin_layout Standard
314 \begin_inset Flex Code
315 status collapsed
316
317 \begin_layout Plain Layout
318 LyXDir
319 \end_layout
320
321 \end_inset
322
323  and its sub-directories contain a number of files and that can be used
324  to customize \SpecialChar LyX
325 's behavior.
326  You can change many of these files from within \SpecialChar LyX
327  itself through the 
328 \begin_inset Flex Noun
329 status collapsed
330
331 \begin_layout Plain Layout
332 Tools\SpecialChar menuseparator
333 Preferences
334 \end_layout
335
336 \end_inset
337
338  dialog.
339  Most customization that you will want to do in \SpecialChar LyX
340  is possible through this
341  dialog.
342  However, many other inner aspects of \SpecialChar LyX
343  can be customized by modifying the
344  files in 
345 \begin_inset Flex Code
346 status collapsed
347
348 \begin_layout Plain Layout
349 LyXDir
350 \end_layout
351
352 \end_inset
353
354 .
355  These files fall in different categories, described in the following subsection
356 s.
357 \end_layout
358
359 \begin_layout Subsection
360 Automatically generated files
361 \end_layout
362
363 \begin_layout Standard
364 The files, which are to be found in 
365 \begin_inset Flex Noun
366 status collapsed
367
368 \begin_layout Plain Layout
369 UserDir
370 \end_layout
371
372 \end_inset
373
374 , are generated when you configure \SpecialChar LyX
375 .
376  They contain various default values that are guessed by inspection.
377  In general, it is not a good idea to modify them, since they might be overwritt
378 en at any time.
379 \end_layout
380
381 \begin_layout Labeling
382 \labelwidthstring 00.00.0000
383 \begin_inset Flex Code
384 status collapsed
385
386 \begin_layout Plain Layout
387 lyxrc.defaults
388 \end_layout
389
390 \end_inset
391
392  contains defaults for various commands.
393 \end_layout
394
395 \begin_layout Labeling
396 \labelwidthstring 00.00.0000
397 \begin_inset Flex Code
398 status collapsed
399
400 \begin_layout Plain Layout
401 packages.lst
402 \end_layout
403
404 \end_inset
405
406  contains the list of packages that have been recognized by \SpecialChar LyX
407 .
408  It is currently unused by the \SpecialChar LyX
409  program itself, but the information extracted,
410  and more, is made available with 
411 \begin_inset Flex Noun
412 status collapsed
413
414 \begin_layout Plain Layout
415 Help\SpecialChar menuseparator
416 \SpecialChar LaTeX
417
418 \begin_inset space ~
419 \end_inset
420
421 Configuration
422 \end_layout
423
424 \end_inset
425
426 .
427 \end_layout
428
429 \begin_layout Labeling
430 \labelwidthstring 00.00.0000
431 \begin_inset Flex Code
432 status collapsed
433
434 \begin_layout Plain Layout
435 textclass.lst
436 \end_layout
437
438 \end_inset
439
440  the list of text classes that have been found in your 
441 \begin_inset Flex Code
442 status collapsed
443
444 \begin_layout Plain Layout
445 layout/
446 \end_layout
447
448 \end_inset
449
450  directories, along with the associated \SpecialChar LaTeX
451  document class and their description.
452 \end_layout
453
454 \begin_layout Labeling
455 \labelwidthstring 00.00.0000
456 \begin_inset Flex Code
457 status collapsed
458
459 \begin_layout Plain Layout
460 lyxmodules.lst
461 \end_layout
462
463 \end_inset
464
465  the list of layout modules found in your 
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 layout/
471 \end_layout
472
473 \end_inset
474
475  directories
476 \end_layout
477
478 \begin_layout Labeling
479 \labelwidthstring 00.00.0000
480 \begin_inset Flex Code
481 status collapsed
482
483 \begin_layout Plain Layout
484 *files.lst
485 \end_layout
486
487 \end_inset
488
489  lists of various sorts of \SpecialChar LaTeX
490 -related files found on your system
491 \end_layout
492
493 \begin_layout Labeling
494 \labelwidthstring 00.00.0000
495 \begin_inset Flex Code
496 status collapsed
497
498 \begin_layout Plain Layout
499 doc/\SpecialChar LaTeX
500 Config.lyx
501 \end_layout
502
503 \end_inset
504
505  is automatically generated during configuration from the file 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 \SpecialChar LaTeX
511 Config.lyx.in
512 \end_layout
513
514 \end_inset
515
516 .
517  It contains information on your \SpecialChar LaTeX
518  configuration.
519 \end_layout
520
521 \begin_layout Subsection
522 Directories
523 \end_layout
524
525 \begin_layout Standard
526 These directories are duplicated between 
527 \begin_inset Flex Code
528 status collapsed
529
530 \begin_layout Plain Layout
531 LyXDir
532 \end_layout
533
534 \end_inset
535
536  and 
537 \begin_inset Flex Code
538 status collapsed
539
540 \begin_layout Plain Layout
541 UserDir
542 \end_layout
543
544 \end_inset
545
546 .
547  If a particular files exists in both places, the one in 
548 \begin_inset Flex Code
549 status collapsed
550
551 \begin_layout Plain Layout
552 UserDir
553 \end_layout
554
555 \end_inset
556
557  will be used.
558 \end_layout
559
560 \begin_layout Labeling
561 \labelwidthstring 00.00.0000
562 \begin_inset Flex Code
563 status collapsed
564
565 \begin_layout Plain Layout
566 bind/
567 \end_layout
568
569 \end_inset
570
571  this directory contains files with the extension 
572 \begin_inset Flex Code
573 status collapsed
574
575 \begin_layout Plain Layout
576 .bind
577 \end_layout
578
579 \end_inset
580
581  that define the keybindings used in \SpecialChar LyX
582 .
583  If there exists an internationalized version of the bind file named 
584 \begin_inset Flex Code
585 status collapsed
586
587 \begin_layout Plain Layout
588 $LANG_xxx.bind
589 \end_layout
590
591 \end_inset
592
593 , that will be used first.
594 \change_inserted -712698321 1483535138
595
596 \end_layout
597
598 \begin_layout Labeling
599 \labelwidthstring 00.00.0000
600
601 \change_inserted -712698321 1483874001
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606
607 \change_inserted -712698321 1483535144
608 citeengines/
609 \end_layout
610
611 \end_inset
612
613  contains files with the extension 
614 \begin_inset Flex Code
615 status collapsed
616
617 \begin_layout Plain Layout
618
619 \change_inserted -712698321 1483869840
620 .citeengine
621 \change_unchanged
622
623 \end_layout
624
625 \end_inset
626
627  which define the diverse citation possibilities (natbib, biblatex etc.).
628  See 
629 \begin_inset CommandInset ref
630 LatexCommand ref
631 reference "subsec:Cite-Engine-Files"
632 plural "false"
633 caps "false"
634 noprefix "false"
635
636 \end_inset
637
638  for details.
639 \change_unchanged
640
641 \end_layout
642
643 \begin_layout Labeling
644 \labelwidthstring 00.00.0000
645 \begin_inset Flex Code
646 status collapsed
647
648 \begin_layout Plain Layout
649 clipart/
650 \end_layout
651
652 \end_inset
653
654  contains graphics files that can be included in documents.
655  
656 \end_layout
657
658 \begin_layout Labeling
659 \labelwidthstring 00.00.0000
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664 doc/
665 \end_layout
666
667 \end_inset
668
669  contains \SpecialChar LyX
670  documentation files (including the one you are currently reading).
671  The file 
672 \begin_inset Flex Code
673 status collapsed
674
675 \begin_layout Plain Layout
676 \SpecialChar LaTeX
677 Config.lyx
678 \end_layout
679
680 \end_inset
681
682  deserves special attention, as noted above.
683  The internationalized help docs are in subdirectories 
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 doc/xx
689 \end_layout
690
691 \end_inset
692
693  where 
694 \begin_inset Quotes eld
695 \end_inset
696
697 xx
698 \begin_inset Quotes erd
699 \end_inset
700
701  is the ISO language code.
702  See 
703 \begin_inset CommandInset ref
704 LatexCommand ref
705 reference "cha:Internationalizing-LyX"
706
707 \end_inset
708
709  for details.
710 \end_layout
711
712 \begin_layout Labeling
713 \labelwidthstring 00.00.0000
714 \begin_inset Flex Code
715 status collapsed
716
717 \begin_layout Plain Layout
718 examples/
719 \end_layout
720
721 \end_inset
722
723  contains example files that explain how to use some features.
724  In the file browser, press the 
725 \begin_inset Flex Noun
726 status collapsed
727
728 \begin_layout Plain Layout
729 Examples
730 \end_layout
731
732 \end_inset
733
734  button to get there.
735 \end_layout
736
737 \begin_layout Labeling
738 \labelwidthstring 00.00.0000
739 \begin_inset Flex Code
740 status collapsed
741
742 \begin_layout Plain Layout
743 images/
744 \end_layout
745
746 \end_inset
747
748  contains image files that are used by the 
749 \begin_inset Flex Noun
750 status collapsed
751
752 \begin_layout Plain Layout
753 Document
754 \end_layout
755
756 \end_inset
757
758  dialog.
759  In addition, it also contains the individual icons used in the toolbar
760  and the banners that can be shown when \SpecialChar LyX
761  is launched.
762 \end_layout
763
764 \begin_layout Labeling
765 \labelwidthstring 00.00.0000
766 \begin_inset Flex Code
767 status collapsed
768
769 \begin_layout Plain Layout
770 kbd/
771 \end_layout
772
773 \end_inset
774
775  contains keyboard keymapping files.
776  See 
777 \begin_inset CommandInset ref
778 LatexCommand ref
779 reference "sec:International-Keymap-Stuff"
780
781 \end_inset
782
783  for details.
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 layouts/
793 \end_layout
794
795 \end_inset
796
797  contains the text class and module files described in 
798 \begin_inset CommandInset ref
799 LatexCommand ref
800 reference "cha:Installing-New-Document"
801
802 \end_inset
803
804 .
805 \end_layout
806
807 \begin_layout Labeling
808 \labelwidthstring 00.00.0000
809 \begin_inset Flex Code
810 status collapsed
811
812 \begin_layout Plain Layout
813 lyx2lyx
814 \end_layout
815
816 \end_inset
817
818  contains the 
819 \begin_inset Flex Code
820 status collapsed
821
822 \begin_layout Plain Layout
823 lyx2lyx
824 \end_layout
825
826 \end_inset
827
828  Python scripts used to convert between \SpecialChar LyX
829  versions.
830  These can be run from the command line if, say, you want to batch-convert
831  files.
832 \end_layout
833
834 \begin_layout Labeling
835 \labelwidthstring 00.00.0000
836 \begin_inset Flex Code
837 status collapsed
838
839 \begin_layout Plain Layout
840 scripts/
841 \end_layout
842
843 \end_inset
844
845  contains some files that demonstrate the capabilities of the 
846 \begin_inset Flex Noun
847 status collapsed
848
849 \begin_layout Plain Layout
850 External
851 \begin_inset space ~
852 \end_inset
853
854 Template
855 \end_layout
856
857 \end_inset
858
859  feature.
860  Also contains some scripts used by \SpecialChar LyX
861  itself.
862 \end_layout
863
864 \begin_layout Labeling
865 \labelwidthstring 00.00.0000
866 \begin_inset Flex Code
867 status collapsed
868
869 \begin_layout Plain Layout
870 templates/
871 \end_layout
872
873 \end_inset
874
875  contains the standard \SpecialChar LyX
876  template files described in 
877 \begin_inset CommandInset ref
878 LatexCommand ref
879 reference "subsec:Creating-Templates"
880
881 \end_inset
882
883 .
884 \end_layout
885
886 \begin_layout Labeling
887 \labelwidthstring 00.00.0000
888 \begin_inset Flex Code
889 status collapsed
890
891 \begin_layout Plain Layout
892 ui/
893 \end_layout
894
895 \end_inset
896
897  contains files with the extension 
898 \begin_inset Flex Code
899 status collapsed
900
901 \begin_layout Plain Layout
902 .ui
903 \end_layout
904
905 \end_inset
906
907  that define the user interface to \SpecialChar LyX
908 .
909  That is, the files define which items appear in which menus and the items
910  appearing on the toolbar.
911 \end_layout
912
913 \begin_layout Subsection
914 Files you don't want to modify
915 \end_layout
916
917 \begin_layout Standard
918 These files are used internally by \SpecialChar LyX
919  and you generally do not need to modify
920  them unless you are a developer.
921 \end_layout
922
923 \begin_layout Labeling
924 \labelwidthstring 00.00.0000
925 \begin_inset Flex Code
926 status collapsed
927
928 \begin_layout Plain Layout
929 CREDITS
930 \end_layout
931
932 \end_inset
933
934  this file contains the list of \SpecialChar LyX
935  developers.
936  The contents are displayed with the menu entry 
937 \begin_inset Flex Noun
938 status collapsed
939
940 \begin_layout Plain Layout
941 Help\SpecialChar menuseparator
942 About
943 \begin_inset space ~
944 \end_inset
945
946 LyX
947 \end_layout
948
949 \end_inset
950
951 .
952 \end_layout
953
954 \begin_layout Labeling
955 \labelwidthstring 00.00.0000
956 \begin_inset Flex Code
957 status collapsed
958
959 \begin_layout Plain Layout
960 chkconfig.ltx
961 \end_layout
962
963 \end_inset
964
965  this is a \SpecialChar LaTeX
966  script used during the configuration process.
967  Do not run directly.
968 \end_layout
969
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 configure.py
977 \end_layout
978
979 \end_inset
980
981  this is a Python script that is used to re-configure \SpecialChar LyX
982 .
983  It creates configuration files in the directory it was run from.
984 \end_layout
985
986 \begin_layout Subsection
987 Other files needing a line or two
988 \end_layout
989
990 \begin_layout Labeling
991 \labelwidthstring 00.00.0000
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996 encodings
997 \end_layout
998
999 \end_inset
1000
1001  this contains tables describing how different character encodings can be
1002  mapped to Unicode
1003 \end_layout
1004
1005 \begin_layout Labeling
1006 \labelwidthstring 00.00.0000
1007 \begin_inset Flex Code
1008 status collapsed
1009
1010 \begin_layout Plain Layout
1011 external_templates
1012 \end_layout
1013
1014 \end_inset
1015
1016  this file contains the templates available to the new 
1017 \begin_inset Flex Noun
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 External
1022 \begin_inset space ~
1023 \end_inset
1024
1025 Template
1026 \end_layout
1027
1028 \end_inset
1029
1030  feature, see 
1031 \begin_inset CommandInset ref
1032 LatexCommand ref
1033 reference "chap:Including-External-Material"
1034
1035 \end_inset
1036
1037 .
1038 \end_layout
1039
1040 \begin_layout Labeling
1041 \labelwidthstring 00.00.0000
1042 \begin_inset Flex Code
1043 status collapsed
1044
1045 \begin_layout Plain Layout
1046 languages
1047 \end_layout
1048
1049 \end_inset
1050
1051  this file contains a list of all the languages currently supported by \SpecialChar LyX
1052 .
1053 \end_layout
1054
1055 \begin_layout Labeling
1056 \labelwidthstring 00.00.0000
1057 \begin_inset Flex Code
1058 status collapsed
1059
1060 \begin_layout Plain Layout
1061 latexfonts
1062 \end_layout
1063
1064 \end_inset
1065
1066  contains information about the supported fonts.
1067 \end_layout
1068
1069 \begin_layout Labeling
1070 \labelwidthstring 00.00.0000
1071 \begin_inset Flex Code
1072 status collapsed
1073
1074 \begin_layout Plain Layout
1075 layouttranslations
1076 \end_layout
1077
1078 \end_inset
1079
1080  this file contains translations for internationalized paragraph styles
1081  (see 
1082 \begin_inset CommandInset ref
1083 LatexCommand ref
1084 reference "subsec:I18n"
1085
1086 \end_inset
1087
1088 ).
1089 \end_layout
1090
1091 \begin_layout Labeling
1092 \labelwidthstring 00.00.0000
1093 \begin_inset Flex Code
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097 unicodesymbols
1098 \end_layout
1099
1100 \end_inset
1101
1102  this file contains information about unicode-encoded glyphs and the way
1103  they are supported by \SpecialChar LyX
1104  via \SpecialChar LaTeX
1105 .
1106 \end_layout
1107
1108 \begin_layout Section
1109 Your local configuration directory
1110 \end_layout
1111
1112 \begin_layout Standard
1113 Even if you are using \SpecialChar LyX
1114  as an unprivileged user, you might want to change
1115  \SpecialChar LyX
1116  configuration for your own use.
1117  The 
1118 \begin_inset Flex Code
1119 status collapsed
1120
1121 \begin_layout Plain Layout
1122 UserDir
1123 \end_layout
1124
1125 \end_inset
1126
1127  directory contains all your personal configuration files.
1128  This is the directory described as 
1129 \begin_inset Quotes eld
1130 \end_inset
1131
1132 user directory
1133 \begin_inset Quotes erd
1134 \end_inset
1135
1136  in 
1137 \begin_inset Flex Noun
1138 status collapsed
1139
1140 \begin_layout Plain Layout
1141 Help\SpecialChar menuseparator
1142 About
1143 \begin_inset space ~
1144 \end_inset
1145
1146 LyX
1147 \end_layout
1148
1149 \end_inset
1150
1151 .
1152  This directory is used as a mirror of 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 LyXDir
1158 \end_layout
1159
1160 \end_inset
1161
1162 , which means that every file in 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 UserDir
1168 \end_layout
1169
1170 \end_inset
1171
1172  is a replacement for the corresponding file in 
1173 \begin_inset Flex Code
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 LyXDir
1178 \end_layout
1179
1180 \end_inset
1181
1182 .
1183  Any configuration file described in the above sections can be placed either
1184  in the system-wide directory, in which case it will affect all users, or
1185  in your local directory for your own use.
1186 \end_layout
1187
1188 \begin_layout Standard
1189 To make things clearer, let's provide a few examples:
1190 \end_layout
1191
1192 \begin_layout Itemize
1193 The preferences set in the 
1194 \begin_inset Flex Noun
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 Tools\SpecialChar menuseparator
1199 Preferences
1200 \end_layout
1201
1202 \end_inset
1203
1204  dialog are saved to a file 
1205 \begin_inset Flex Code
1206 status collapsed
1207
1208 \begin_layout Plain Layout
1209 preferences
1210 \end_layout
1211
1212 \end_inset
1213
1214  in 
1215 \begin_inset Flex Code
1216 status collapsed
1217
1218 \begin_layout Plain Layout
1219 UserDir
1220 \end_layout
1221
1222 \end_inset
1223
1224 .
1225 \end_layout
1226
1227 \begin_layout Itemize
1228 When you reconfigure using 
1229 \begin_inset Flex Noun
1230 status collapsed
1231
1232 \begin_layout Plain Layout
1233 Tools\SpecialChar menuseparator
1234 Reconfigure
1235 \end_layout
1236
1237 \end_inset
1238
1239 , \SpecialChar LyX
1240  runs the 
1241 \begin_inset Flex Code
1242 status collapsed
1243
1244 \begin_layout Plain Layout
1245 configure.py
1246 \end_layout
1247
1248 \end_inset
1249
1250  script, and the resulting files are written in your local configuration
1251  directory.
1252  This means that any additional text class file that you might have added
1253  in 
1254 \begin_inset Flex Code
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 UserDir/layouts
1259 \end_layout
1260
1261 \end_inset
1262
1263  will be added to the list of classes in the 
1264 \begin_inset Flex Noun
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 Document\SpecialChar menuseparator
1269 Settings
1270 \end_layout
1271
1272 \end_inset
1273
1274  dialog.
1275 \end_layout
1276
1277 \begin_layout Itemize
1278 If you get some updated documentation from \SpecialChar LyX
1279  ftp site and cannot install
1280  it because you do not have sysadmin rights on your system, you can just
1281  copy the files in 
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 UserDir/doc/
1287 \end_layout
1288
1289 \end_inset
1290
1291  and the items in the 
1292 \begin_inset Flex Noun
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 Help
1297 \end_layout
1298
1299 \end_inset
1300
1301  menu will open them!
1302 \end_layout
1303
1304 \begin_layout Section
1305 Running \SpecialChar LyX
1306  with multiple configurations
1307 \end_layout
1308
1309 \begin_layout Standard
1310 The configuration freedom of the local configuration directory may not suffice
1311  if you want to have more than one configuration at your disposal.
1312  For example, you may want to be use different key bindings or printer settings
1313  at different times.
1314  You can achieve this by having several such directories.
1315  You then specify which directory to use at run-time.
1316 \end_layout
1317
1318 \begin_layout Standard
1319 Invoking \SpecialChar LyX
1320  with the command line switch 
1321 \begin_inset Flex Code
1322 status collapsed
1323
1324 \begin_layout Plain Layout
1325 -userdir
1326 \end_layout
1327
1328 \end_inset
1329
1330  
1331 \emph on
1332 <some directory>
1333 \emph default
1334  instructs the program to read the configuration from that directory, and
1335  not from the default directory.
1336  (You can determine the default directory by running \SpecialChar LyX
1337  without the 
1338 \begin_inset Flex Code
1339 status collapsed
1340
1341 \begin_layout Plain Layout
1342 -userdir
1343 \end_layout
1344
1345 \end_inset
1346
1347  switch.) If the specified directory does not exist, \SpecialChar LyX
1348  offers to create it
1349  for you, just like it does for the default directory on the first time
1350  you run the program.
1351  You can modify the configuration options in this additional user directory
1352  exactly as you would for the default directory.
1353  These directories are completely independent (but read on).
1354  Note that setting the environment variable 
1355 \begin_inset Flex Code
1356 status collapsed
1357
1358 \begin_layout Plain Layout
1359 LYX_USERDIR_VER
1360 \end_layout
1361
1362 \end_inset
1363
1364  to some value has exactly the same effect.
1365 \end_layout
1366
1367 \begin_layout Standard
1368 Having several configurations also requires more maintenance: if you want
1369  to add a new layout to 
1370 \begin_inset Flex Code
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374 NewUserDir/layouts
1375 \end_layout
1376
1377 \end_inset
1378
1379  which you want available from all your configurations, you must add it
1380  to each directory separately.
1381  You can avoid this with the following trick: after \SpecialChar LyX
1382  creates the additional
1383  directory, most of the subdirectories (see above) are empty.
1384  If you want the new configuration to mirror an existing one, replace the
1385  empty subdirectory with a symbolic link to the matching subdirectory in
1386  the existing configuration.
1387  Take care with the 
1388 \begin_inset Flex Code
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 doc/
1393 \end_layout
1394
1395 \end_inset
1396
1397  subdirectory, however, since it contains a file written by the configuration
1398  script (also accessible through 
1399 \begin_inset Flex Noun
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 Tools\SpecialChar menuseparator
1404 Reconfigure
1405 \end_layout
1406
1407 \end_inset
1408
1409 ) which is configuration-specific.
1410 \end_layout
1411
1412 \begin_layout Chapter
1413 The Preferences dialog
1414 \end_layout
1415
1416 \begin_layout Standard
1417 All options of the preferences dialog are described in the Appendix 
1418 \emph on
1419 The Preferences Dialog
1420 \emph default
1421  in the 
1422 \emph on
1423 User's Guide
1424 \emph default
1425 .
1426  For some options you might find here more details.
1427 \end_layout
1428
1429 \begin_layout Section
1430 Formats
1431 \begin_inset CommandInset label
1432 LatexCommand label
1433 name "sec:Formats"
1434
1435 \end_inset
1436
1437
1438 \end_layout
1439
1440 \begin_layout Standard
1441 The first step is to define your file formats if they are not already defined.
1442  To do so, open the 
1443 \begin_inset Flex Noun
1444 status collapsed
1445
1446 \begin_layout Plain Layout
1447 Tools\SpecialChar menuseparator
1448 Preferences
1449 \end_layout
1450
1451 \end_inset
1452
1453  dialog.
1454  Under 
1455 \begin_inset Flex Noun
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 File Handling\SpecialChar menuseparator
1460 File formats
1461 \end_layout
1462
1463 \end_inset
1464
1465  press the 
1466 \begin_inset Flex Noun
1467 status collapsed
1468
1469 \begin_layout Plain Layout
1470 New
1471 \end_layout
1472
1473 \end_inset
1474
1475  button to define your new format.
1476  The 
1477 \begin_inset Flex Noun
1478 status collapsed
1479
1480 \begin_layout Plain Layout
1481 Format
1482 \end_layout
1483
1484 \end_inset
1485
1486  field contains the name used to identify the format in the GUI.
1487  The 
1488 \begin_inset Flex Noun
1489 status collapsed
1490
1491 \begin_layout Plain Layout
1492 Short Name
1493 \end_layout
1494
1495 \end_inset
1496
1497  is used to identify the format internally.
1498  You will also need to enter a file extension.
1499  These are all required.
1500  The optional 
1501 \begin_inset Flex Noun
1502 status collapsed
1503
1504 \begin_layout Plain Layout
1505 Shortcut
1506 \end_layout
1507
1508 \end_inset
1509
1510  field is used to provide a keyboard shortcut on the menus.
1511  (For example, pressing 
1512 \begin_inset Flex Noun
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 Ctrl+D
1517 \end_layout
1518
1519 \end_inset
1520
1521  will 
1522 \begin_inset Flex Noun
1523 status collapsed
1524
1525 \begin_layout Plain Layout
1526 Document\SpecialChar menuseparator
1527 View (Other Formats)\SpecialChar menuseparator
1528 DVI
1529 \end_layout
1530
1531 \end_inset
1532
1533 .) 
1534 \end_layout
1535
1536 \begin_layout Standard
1537 A Format can have a 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Viewer
1543 \end_layout
1544
1545 \end_inset
1546
1547  and an 
1548 \begin_inset Flex Noun
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552 Editor
1553 \end_layout
1554
1555 \end_inset
1556
1557  associated with it.
1558  For example, you might want to use 
1559 \begin_inset Flex Noun
1560 status collapsed
1561
1562 \begin_layout Plain Layout
1563 Ghostview
1564 \end_layout
1565
1566 \end_inset
1567
1568  to view PostScript files.
1569  You can enter the command needed to start the program in the corresponding
1570  fields.
1571  In defining this command, you can use the four variables listed in the
1572  next section.
1573  The viewer is launched when you view an image in \SpecialChar LyX
1574  or use the 
1575 \begin_inset Flex Noun
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 Document\SpecialChar menuseparator
1580 View
1581 \end_layout
1582
1583 \end_inset
1584
1585  menu.
1586  The editor is for example launched when you right-click on an image and
1587  choose 
1588 \begin_inset Flex Noun
1589 status collapsed
1590
1591 \begin_layout Plain Layout
1592 Edit externally
1593 \end_layout
1594
1595 \end_inset
1596
1597  in the appearing context menu.
1598 \end_layout
1599
1600 \begin_layout Standard
1601 The 
1602 \begin_inset Flex Noun
1603 status collapsed
1604
1605 \begin_layout Plain Layout
1606 MIME
1607 \end_layout
1608
1609 \end_inset
1610
1611  type of a format is optional, but if it is specified, it must be unique
1612  across all formats.
1613  It is used to detect files of this format from the file contents.
1614  For some important file formats there is no MIME type officially registered
1615  with the 
1616 \begin_inset CommandInset href
1617 LatexCommand href
1618 name "IANA"
1619 target "http://www.iana.org/assignments/media-types/"
1620
1621 \end_inset
1622
1623 .
1624  Therefore \SpecialChar LyX
1625  uses the extended list of MIME types as specified by 
1626 \begin_inset CommandInset href
1627 LatexCommand href
1628 name "freedesktop.org"
1629 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1630
1631 \end_inset
1632
1633 .
1634 \end_layout
1635
1636 \begin_layout Standard
1637 The 
1638 \begin_inset Flex Noun
1639 status collapsed
1640
1641 \begin_layout Plain Layout
1642 Document format
1643 \end_layout
1644
1645 \end_inset
1646
1647  option tells \SpecialChar LyX
1648  that a format is suitable for document export.
1649  If this is set and if a suitable conversion route exists (see 
1650 \begin_inset CommandInset ref
1651 LatexCommand ref
1652 reference "sec:Converters"
1653
1654 \end_inset
1655
1656 ), the format will appear in the 
1657 \begin_inset Flex Noun
1658 status collapsed
1659
1660 \begin_layout Plain Layout
1661 File\SpecialChar menuseparator
1662 Export
1663 \end_layout
1664
1665 \end_inset
1666
1667  menu.
1668  The format will also appear in the 
1669 \begin_inset Flex Noun
1670 status collapsed
1671
1672 \begin_layout Plain Layout
1673 Document\SpecialChar menuseparator
1674 View
1675 \end_layout
1676
1677 \end_inset
1678
1679  menu if a viewer is specified for the format.
1680  Pure image formats, such as 
1681 \begin_inset Flex Code
1682 status collapsed
1683
1684 \begin_layout Plain Layout
1685 png
1686 \end_layout
1687
1688 \end_inset
1689
1690 , should not use this option.
1691  Formats that can both represent vector graphics and documents like 
1692 \begin_inset Flex Code
1693 status collapsed
1694
1695 \begin_layout Plain Layout
1696 pdf
1697 \end_layout
1698
1699 \end_inset
1700
1701  should use it.
1702 \end_layout
1703
1704 \begin_layout Standard
1705 The option 
1706 \begin_inset Flex Noun
1707 status collapsed
1708
1709 \begin_layout Plain Layout
1710 Vector graphics format
1711 \end_layout
1712
1713 \end_inset
1714
1715  tells \SpecialChar LyX
1716  that a format can contain vector graphics.
1717  This information is used to determine the target format of included graphics
1718  for 
1719 \begin_inset Flex Noun
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 pdflatex
1724 \end_layout
1725
1726 \end_inset
1727
1728  export.
1729  Included graphics may need to be converted to either 
1730 \begin_inset Flex Noun
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 pdf
1735 \end_layout
1736
1737 \end_inset
1738
1739
1740 \begin_inset Flex Noun
1741 status collapsed
1742
1743 \begin_layout Plain Layout
1744 png
1745 \end_layout
1746
1747 \end_inset
1748
1749 , or 
1750 \begin_inset Flex Noun
1751 status collapsed
1752
1753 \begin_layout Plain Layout
1754 jpg
1755 \end_layout
1756
1757 \end_inset
1758
1759 , since 
1760 \begin_inset Flex Noun
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 pdflatex
1765 \end_layout
1766
1767 \end_inset
1768
1769  cannot handle other image formats.
1770  If an included graphic is not already in 
1771 \begin_inset Flex Noun
1772 status collapsed
1773
1774 \begin_layout Plain Layout
1775 pdf
1776 \end_layout
1777
1778 \end_inset
1779
1780
1781 \begin_inset Flex Noun
1782 status collapsed
1783
1784 \begin_layout Plain Layout
1785 png
1786 \end_layout
1787
1788 \end_inset
1789
1790 , or 
1791 \begin_inset Flex Noun
1792 status collapsed
1793
1794 \begin_layout Plain Layout
1795 jpg
1796 \end_layout
1797
1798 \end_inset
1799
1800  format, it is converted to 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 pdf
1806 \end_layout
1807
1808 \end_inset
1809
1810  if the vector format option is set, and otherwise to 
1811 \begin_inset Flex Noun
1812 status collapsed
1813
1814 \begin_layout Plain Layout
1815 png
1816 \end_layout
1817
1818 \end_inset
1819
1820 .
1821 \end_layout
1822
1823 \begin_layout Section
1824 Copiers
1825 \end_layout
1826
1827 \begin_layout Standard
1828 Since all conversions from one format to another take place in \SpecialChar LyX
1829 's temporary
1830  directory, it is sometimes necessary to modify a file before copying it
1831  to the temporary directory in order that the conversion may be performed.
1832 \begin_inset Foot
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836 For example, the file may refer to other files—images, for example—using
1837  relative file names, and these may become invalid when the file is copied
1838  to the temporary directory.
1839 \end_layout
1840
1841 \end_inset
1842
1843  This is done by a Copier: It copies a file to (or from) the temporary directory
1844  and may modify it in the process.
1845 \end_layout
1846
1847 \begin_layout Standard
1848 The definitions of the copiers may use eight variables:
1849 \end_layout
1850
1851 \begin_layout Labeling
1852 \labelwidthstring 00.00.0000
1853 \begin_inset Flex Code
1854 status collapsed
1855
1856 \begin_layout Plain Layout
1857 $$s
1858 \end_layout
1859
1860 \end_inset
1861
1862  The \SpecialChar LyX
1863  system directory (e.
1864 \begin_inset space \thinspace{}
1865 \end_inset
1866
1867 g.
1868 \begin_inset space \space{}
1869 \end_inset
1870
1871
1872 \begin_inset Flex Noun
1873 status collapsed
1874
1875 \begin_layout Plain Layout
1876 /usr/share/lyx
1877 \end_layout
1878
1879 \end_inset
1880
1881 ).
1882 \end_layout
1883
1884 \begin_layout Labeling
1885 \labelwidthstring 00.00.0000
1886 \begin_inset Flex Code
1887 status collapsed
1888
1889 \begin_layout Plain Layout
1890 $$i
1891 \end_layout
1892
1893 \end_inset
1894
1895  The input file
1896 \end_layout
1897
1898 \begin_layout Labeling
1899 \labelwidthstring 00.00.0000
1900 \begin_inset Flex Code
1901 status collapsed
1902
1903 \begin_layout Plain Layout
1904 $$o
1905 \end_layout
1906
1907 \end_inset
1908
1909  The output file
1910 \end_layout
1911
1912 \begin_layout Labeling
1913 \labelwidthstring 00.00.0000
1914 \begin_inset Flex Code
1915 status collapsed
1916
1917 \begin_layout Plain Layout
1918 $$b
1919 \end_layout
1920
1921 \end_inset
1922
1923  The base name (without filename extension) in the \SpecialChar LyX
1924  temporary directory
1925 \end_layout
1926
1927 \begin_layout Labeling
1928 \labelwidthstring 00.00.0000
1929 \begin_inset Flex Code
1930 status collapsed
1931
1932 \begin_layout Plain Layout
1933 $$p
1934 \end_layout
1935
1936 \end_inset
1937
1938  The full directory path of the \SpecialChar LyX
1939  temporary directory
1940 \end_layout
1941
1942 \begin_layout Labeling
1943 \labelwidthstring 00.00.0000
1944 \begin_inset Flex Code
1945 status collapsed
1946
1947 \begin_layout Plain Layout
1948 $$r
1949 \end_layout
1950
1951 \end_inset
1952
1953  The full pathname to the original \SpecialChar LyX
1954  file being processed
1955 \end_layout
1956
1957 \begin_layout Labeling
1958 \labelwidthstring 00.00.0000
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963 $$f
1964 \end_layout
1965
1966 \end_inset
1967
1968  The filename (without any directory path) of the \SpecialChar LyX
1969  file.
1970 \end_layout
1971
1972 \begin_layout Labeling
1973 \labelwidthstring 00.00.0000
1974 \begin_inset Flex Code
1975 status collapsed
1976
1977 \begin_layout Plain Layout
1978 $$l
1979 \end_layout
1980
1981 \end_inset
1982
1983  The `\SpecialChar LaTeX
1984  name'
1985 \end_layout
1986
1987 \begin_layout Standard
1988 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1989 's 
1990 \series bold
1991
1992 \backslash
1993 include
1994 \series default
1995  command.
1996  It is relevant only when exporting files suitable for such inclusion.
1997 \end_layout
1998
1999 \begin_layout Standard
2000 Copiers can be used to do almost anything with output files.
2001  For example, suppose you want generated pdf files to be copied to a special
2002  directory, 
2003 \begin_inset Flex Code
2004 status collapsed
2005
2006 \begin_layout Plain Layout
2007 /home/you/pdf/
2008 \end_layout
2009
2010 \end_inset
2011
2012 .
2013  Then you could write a shell script such as this one:
2014 \end_layout
2015
2016 \begin_layout Standard
2017 \begin_inset listings
2018 inline false
2019 status open
2020
2021 \begin_layout Plain Layout
2022
2023 #!/bin/bash
2024 \end_layout
2025
2026 \begin_layout Plain Layout
2027
2028 FROMFILE=$1
2029 \end_layout
2030
2031 \begin_layout Plain Layout
2032
2033 TOFILE=`basename $2`
2034 \end_layout
2035
2036 \begin_layout Plain Layout
2037
2038 cp $FROMFILE /home/you/pdf/$TOFILE
2039 \end_layout
2040
2041 \end_inset
2042
2043 Save it in your local \SpecialChar LyX
2044  directory—say, 
2045 \begin_inset Flex Code
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049 /home/you/.lyx/scripts/pdfcopier.sh
2050 \end_layout
2051
2052 \end_inset
2053
2054 —and make it executable, if you need to do so on your platform.
2055  Then, in the 
2056 \begin_inset Flex Noun
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060 Tools\SpecialChar menuseparator
2061 Preferences
2062 \end_layout
2063
2064 \end_inset
2065
2066  dialog, select under 
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 File Handling\SpecialChar menuseparator
2072 File formats
2073 \end_layout
2074
2075 \end_inset
2076
2077  the 
2078 \begin_inset Flex Noun
2079 status collapsed
2080
2081 \begin_layout Plain Layout
2082 PDF(pdflatex)
2083 \end_layout
2084
2085 \end_inset
2086
2087  format—or one of the other pdf formats—and enter 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 pdfcopier.sh $$i $$o
2093 \end_layout
2094
2095 \end_inset
2096
2097  into the 
2098 \begin_inset Flex Noun
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 Copier
2103 \end_layout
2104
2105 \end_inset
2106
2107  field.
2108  
2109 \end_layout
2110
2111 \begin_layout Standard
2112 Copiers are used by \SpecialChar LyX
2113  in various of its own conversions.
2114  For example, if appropriate programs are found, \SpecialChar LyX
2115  will automatically install
2116  copiers for the 
2117 \begin_inset Flex Noun
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121 HTML
2122 \end_layout
2123
2124 \end_inset
2125
2126  and 
2127 \begin_inset Flex Noun
2128 status collapsed
2129
2130 \begin_layout Plain Layout
2131 HTML
2132 \begin_inset space ~
2133 \end_inset
2134
2135 (MS Word)
2136 \end_layout
2137
2138 \end_inset
2139
2140  formats.
2141  When these formats are exported, the copier sees that not just the main
2142  HTML file but various associated files (style files, images, etc.) are also
2143  copied.
2144  All these files are written to a subdirectory of the directory in which
2145  the original \SpecialChar LyX
2146  file was found.
2147 \begin_inset Foot
2148 status collapsed
2149
2150 \begin_layout Plain Layout
2151 This copier can be customized.
2152  The optional 
2153 \begin_inset Quotes eld
2154 \end_inset
2155
2156 -e
2157 \begin_inset Quotes erd
2158 \end_inset
2159
2160  argument takes a comma-separated list of extensions to be copied; if it
2161  is omitted, all files will be copied.
2162  The 
2163 \begin_inset Quotes eld
2164 \end_inset
2165
2166 -t
2167 \begin_inset Quotes erd
2168 \end_inset
2169
2170  argument determines the extension added to the generated directory.
2171  By default, it is 
2172 \begin_inset Quotes eld
2173 \end_inset
2174
2175
2176 \begin_inset Flex Noun
2177 status collapsed
2178
2179 \begin_layout Plain Layout
2180 LyXconv
2181 \end_layout
2182
2183 \end_inset
2184
2185
2186 \begin_inset Quotes erd
2187 \end_inset
2188
2189 , so HTML generated from 
2190 \begin_inset Flex Noun
2191 status collapsed
2192
2193 \begin_layout Plain Layout
2194 /path/to/filename.lyx
2195 \end_layout
2196
2197 \end_inset
2198
2199  will end up in 
2200 \begin_inset Flex Noun
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 /path/to/filename.html.LyXconv
2205 \end_layout
2206
2207 \end_inset
2208
2209 .
2210  
2211 \end_layout
2212
2213 \end_inset
2214
2215
2216 \end_layout
2217
2218 \begin_layout Section
2219 Converters
2220 \begin_inset CommandInset label
2221 LatexCommand label
2222 name "sec:Converters"
2223
2224 \end_inset
2225
2226
2227 \end_layout
2228
2229 \begin_layout Standard
2230 You can define your own Converters to convert files between different formats.
2231  This is done in the 
2232 \begin_inset Flex Noun
2233 status collapsed
2234
2235 \begin_layout Plain Layout
2236 Tools\SpecialChar menuseparator
2237 Preferences\SpecialChar menuseparator
2238 File Handling\SpecialChar menuseparator
2239 Converters
2240 \end_layout
2241
2242 \end_inset
2243
2244  dialog.
2245 \end_layout
2246
2247 \begin_layout Standard
2248 To define a new converter, select the 
2249 \begin_inset Flex Noun
2250 status collapsed
2251
2252 \begin_layout Plain Layout
2253 From
2254 \begin_inset space ~
2255 \end_inset
2256
2257 format
2258 \end_layout
2259
2260 \end_inset
2261
2262  and 
2263 \begin_inset Flex Noun
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 To
2268 \begin_inset space ~
2269 \end_inset
2270
2271 format
2272 \end_layout
2273
2274 \end_inset
2275
2276  from the drop-down lists, enter the command needed for the conversion,
2277  and then press the 
2278 \begin_inset Flex Noun
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 Add
2283 \end_layout
2284
2285 \end_inset
2286
2287  button.
2288  Several variables can be used in the definition of converters:
2289 \end_layout
2290
2291 \begin_layout Labeling
2292 \labelwidthstring 00.00.0000
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 $$s
2298 \end_layout
2299
2300 \end_inset
2301
2302  The \SpecialChar LyX
2303  system directory
2304 \end_layout
2305
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312 $$i
2313 \end_layout
2314
2315 \end_inset
2316
2317  The input file
2318 \end_layout
2319
2320 \begin_layout Labeling
2321 \labelwidthstring 00.00.0000
2322 \begin_inset Flex Code
2323 status collapsed
2324
2325 \begin_layout Plain Layout
2326 $$o
2327 \end_layout
2328
2329 \end_inset
2330
2331  The output file
2332 \end_layout
2333
2334 \begin_layout Labeling
2335 \labelwidthstring 00.00.0000
2336 \begin_inset Flex Code
2337 status collapsed
2338
2339 \begin_layout Plain Layout
2340 $$b
2341 \end_layout
2342
2343 \end_inset
2344
2345  The base filename of the input file (i.
2346 \begin_inset space \thinspace{}
2347 \end_inset
2348
2349 g., without the extension)
2350 \end_layout
2351
2352 \begin_layout Labeling
2353 \labelwidthstring 00.00.0000
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 $$p
2359 \end_layout
2360
2361 \end_inset
2362
2363  The path to the input file
2364 \end_layout
2365
2366 \begin_layout Labeling
2367 \labelwidthstring 00.00.0000
2368 \begin_inset Flex Code
2369 status collapsed
2370
2371 \begin_layout Plain Layout
2372 $$r
2373 \end_layout
2374
2375 \end_inset
2376
2377  The path to the original input file (this is different from $$p when a
2378  chain of converters is called)
2379 \end_layout
2380
2381 \begin_layout Labeling
2382 \labelwidthstring 00.00.0000
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 $$e
2388 \end_layout
2389
2390 \end_inset
2391
2392  The iconv name for the encoding of the document.
2393 \end_layout
2394
2395 \begin_layout Standard
2396 In the 
2397 \begin_inset Flex Noun
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 Extra
2402 \begin_inset space ~
2403 \end_inset
2404
2405 Flag
2406 \end_layout
2407
2408 \end_inset
2409
2410  field you can enter the following flags, separated by commas:
2411 \end_layout
2412
2413 \begin_layout Labeling
2414 \labelwidthstring 00.00.0000
2415 \begin_inset Flex Code
2416 status collapsed
2417
2418 \begin_layout Plain Layout
2419 latex
2420 \end_layout
2421
2422 \end_inset
2423
2424  This converter runs some form of \SpecialChar LaTeX
2425 .
2426  This will make \SpecialChar LyX
2427 's \SpecialChar LaTeX
2428  error logs available.
2429 \end_layout
2430
2431 \begin_layout Labeling
2432 \labelwidthstring 00.00.0000
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 needaux
2438 \end_layout
2439
2440 \end_inset
2441
2442  Needs the \SpecialChar LaTeX
2443  
2444 \begin_inset Flex Noun
2445 status collapsed
2446
2447 \begin_layout Plain Layout
2448 .aux
2449 \end_layout
2450
2451 \end_inset
2452
2453  file for the conversion.
2454 \end_layout
2455
2456 \begin_layout Labeling
2457 \labelwidthstring 00.00.0000
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 nice
2463 \end_layout
2464
2465 \end_inset
2466
2467  Needs a 
2468 \begin_inset Quotes eld
2469 \end_inset
2470
2471 nice
2472 \begin_inset Quotes erd
2473 \end_inset
2474
2475  file from the backend, which in practice means a \SpecialChar LaTeX
2476  file like the one we
2477  would export, without 
2478 \begin_inset Flex Code
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482 input@path
2483 \end_layout
2484
2485 \end_inset
2486
2487 .
2488 \end_layout
2489
2490 \begin_layout Labeling
2491 \labelwidthstring 00.00.0000
2492 \begin_inset Flex Code
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 xml
2497 \end_layout
2498
2499 \end_inset
2500
2501  Output is XML.
2502 \end_layout
2503
2504 \begin_layout Standard
2505 The following three flags are not really flags at all because they take
2506  an argument in the 
2507 \begin_inset Flex Noun
2508 status collapsed
2509
2510 \begin_layout Plain Layout
2511 key
2512 \begin_inset space ~
2513 \end_inset
2514
2515 =
2516 \begin_inset space ~
2517 \end_inset
2518
2519 value
2520 \end_layout
2521
2522 \end_inset
2523
2524  format:
2525 \end_layout
2526
2527 \begin_layout Labeling
2528 \labelwidthstring 00.00.0000
2529 \begin_inset Flex Code
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 parselog
2534 \end_layout
2535
2536 \end_inset
2537
2538  If set, the converter's standard error will be redirected to a file 
2539 \begin_inset Flex Code
2540 status collapsed
2541
2542 \begin_layout Plain Layout
2543 infile.out
2544 \end_layout
2545
2546 \end_inset
2547
2548 , and the script given as argument will be run as: 
2549 \begin_inset Flex Code
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 script < infile.out > infile.log
2554 \end_layout
2555
2556 \end_inset
2557
2558 .
2559  The argument may contain 
2560 \begin_inset Flex Code
2561 status collapsed
2562
2563 \begin_layout Plain Layout
2564 $$s
2565 \end_layout
2566
2567 \end_inset
2568
2569 .
2570 \end_layout
2571
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 resultdir
2579 \end_layout
2580
2581 \end_inset
2582
2583  The name of the directory in which the converter will dump the generated
2584  files.
2585  \SpecialChar LyX
2586  will not create this directory, and it does not copy anything into it,
2587  though it will copy this directory to the destination.
2588  The argument may contain 
2589 \begin_inset Flex Code
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 $$b
2594 \end_layout
2595
2596 \end_inset
2597
2598 , which will be replaced by the base name of the input and output files,
2599  respectively, when the directory is copied.
2600 \begin_inset Newline newline
2601 \end_inset
2602
2603 Note that resultdir and usetempdir make no sense together.
2604  The latter will be ignored if the former is given.
2605 \end_layout
2606
2607 \begin_layout Labeling
2608 \labelwidthstring 00.00.0000
2609 \begin_inset Flex Code
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 resultfile
2614 \end_layout
2615
2616 \end_inset
2617
2618  Determines the output file name and may, contain 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 $$b
2624 \end_layout
2625
2626 \end_inset
2627
2628 .
2629  Sensible only with resultdir and optional even then; if not given, it defaults
2630  to `index'.
2631 \end_layout
2632
2633 \begin_layout Standard
2634 None of these last three are presently used in any of the converters that
2635  are installed with \SpecialChar LyX
2636 .
2637  
2638 \end_layout
2639
2640 \begin_layout Standard
2641 You do not have to define converters for all formats between which you want
2642  to convert.
2643  For example, you will note that there is no `\SpecialChar LyX
2644  to PostScript' converter,
2645  but \SpecialChar LyX
2646  will export PostScript.
2647  It does so by first creating a \SpecialChar LaTeX
2648  file (no converter needs to be defined
2649  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2650  to DVI' converter,
2651  and finally converting the resulting DVI file to PostScript.
2652  \SpecialChar LyX
2653  finds such `chains' of converters automatically, and it will always choose
2654  the shortest possible chain.
2655  You can, though, still define multiple conversion methods between file
2656  formats.
2657  For example, the standard \SpecialChar LyX
2658  configuration provides five ways to convert
2659  \SpecialChar LaTeX
2660  to PDF:
2661 \end_layout
2662
2663 \begin_layout Enumerate
2664 Directly, using 
2665 \begin_inset Flex Noun
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 pdflatex
2670 \end_layout
2671
2672 \end_inset
2673
2674
2675 \end_layout
2676
2677 \begin_layout Enumerate
2678 via (DVI and) PostScript, using 
2679 \begin_inset Flex Noun
2680 status collapsed
2681
2682 \begin_layout Plain Layout
2683 ps2pdf
2684 \end_layout
2685
2686 \end_inset
2687
2688
2689 \end_layout
2690
2691 \begin_layout Enumerate
2692 via DVI, using 
2693 \begin_inset Flex Noun
2694 status collapsed
2695
2696 \begin_layout Plain Layout
2697 dvipdfm
2698 \end_layout
2699
2700 \end_inset
2701
2702
2703 \end_layout
2704
2705 \begin_layout Enumerate
2706 directly using 
2707 \begin_inset Flex Noun
2708 status collapsed
2709
2710 \begin_layout Plain Layout
2711 Xe\SpecialChar TeX
2712
2713 \end_layout
2714
2715 \end_inset
2716
2717
2718 \end_layout
2719
2720 \begin_layout Enumerate
2721 directly using 
2722 \begin_inset Flex Noun
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 Lua\SpecialChar TeX
2727
2728 \end_layout
2729
2730 \end_inset
2731
2732
2733 \end_layout
2734
2735 \begin_layout Standard
2736 To define such alternate chains, you must define multiple target `file formats',
2737  as described in 
2738 \begin_inset CommandInset ref
2739 LatexCommand ref
2740 reference "sec:Formats"
2741
2742 \end_inset
2743
2744 .
2745  For example, in the standard configuration, the formats named 
2746 \begin_inset Flex Noun
2747 status collapsed
2748
2749 \begin_layout Plain Layout
2750 pdf
2751 \end_layout
2752
2753 \end_inset
2754
2755  (for 
2756 \begin_inset Flex Noun
2757 status collapsed
2758
2759 \begin_layout Plain Layout
2760 ps2pdf
2761 \end_layout
2762
2763 \end_inset
2764
2765 ), 
2766 \begin_inset Flex Noun
2767 status collapsed
2768
2769 \begin_layout Plain Layout
2770 pdf2
2771 \end_layout
2772
2773 \end_inset
2774
2775  (for 
2776 \begin_inset Flex Noun
2777 status collapsed
2778
2779 \begin_layout Plain Layout
2780 pdflatex
2781 \end_layout
2782
2783 \end_inset
2784
2785 ), 
2786 \begin_inset Flex Noun
2787 status collapsed
2788
2789 \begin_layout Plain Layout
2790 pdf3
2791 \end_layout
2792
2793 \end_inset
2794
2795  (for 
2796 \begin_inset Flex Noun
2797 status collapsed
2798
2799 \begin_layout Plain Layout
2800 dvipdfm
2801 \end_layout
2802
2803 \end_inset
2804
2805 ), 
2806 \begin_inset Flex Noun
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 pdf4
2811 \end_layout
2812
2813 \end_inset
2814
2815  (for 
2816 \begin_inset Flex Noun
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 Xe\SpecialChar TeX
2821
2822 \end_layout
2823
2824 \end_inset
2825
2826 ), and 
2827 \begin_inset Flex Noun
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 pdf5
2832 \end_layout
2833
2834 \end_inset
2835
2836  (for 
2837 \begin_inset Flex Noun
2838 status collapsed
2839
2840 \begin_layout Plain Layout
2841 Lua\SpecialChar TeX
2842
2843 \end_layout
2844
2845 \end_inset
2846
2847 ) are defined, all of which share the extension 
2848 \begin_inset Flex Noun
2849 status collapsed
2850
2851 \begin_layout Plain Layout
2852 .pdf
2853 \end_layout
2854
2855 \end_inset
2856
2857 , and which correspond to the conversion methods just mentioned.
2858 \end_layout
2859
2860 \begin_layout Chapter
2861 Internationalizing \SpecialChar LyX
2862
2863 \begin_inset CommandInset label
2864 LatexCommand label
2865 name "cha:Internationalizing-LyX"
2866
2867 \end_inset
2868
2869
2870 \end_layout
2871
2872 \begin_layout Standard
2873 \SpecialChar LyX
2874  supports using a translated interface.
2875  Last time we checked, \SpecialChar LyX
2876  provided text in thirty languages.
2877  The language of choice is called your 
2878 \emph on
2879 locale
2880 \emph default
2881 .
2882  (For further reading on locale settings, see also the documentation for
2883  locale that comes with your operating system.
2884  For Linux, the manual page for 
2885 \begin_inset Flex Code
2886 status collapsed
2887
2888 \begin_layout Plain Layout
2889 locale(5)
2890 \end_layout
2891
2892 \end_inset
2893
2894  could be a good place to start).
2895 \end_layout
2896
2897 \begin_layout Standard
2898 Notice that these translations will work, but do contain a few flaws.
2899  In particular, all dialogs have been designed with the English text in
2900  mind, which means that some of the translated text will be too large to
2901  fit within the space allocated.
2902  This is only a display problem and will not cause any harm.
2903  Also, you will find that some of the translations do not define shortcut
2904  keys for everything.
2905  Sometimes, there are simply not enough free letters to do it.
2906  Other times, the translator just hasn't got around to doing it yet.
2907  Our localization team, which you may wish to join,
2908 \begin_inset Foot
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 If you are a fluent speaker of a language other than English, joining these
2913  teams is a great way to give back to the \SpecialChar LyX
2914  community!
2915 \end_layout
2916
2917 \end_inset
2918
2919  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2920 .
2921 \end_layout
2922
2923 \begin_layout Section
2924 Translating \SpecialChar LyX
2925
2926 \end_layout
2927
2928 \begin_layout Subsection
2929 Translating the graphical user interface (text messages).
2930 \end_layout
2931
2932 \begin_layout Standard
2933 \SpecialChar LyX
2934  uses the GNU 
2935 \begin_inset Flex Code
2936 status collapsed
2937
2938 \begin_layout Plain Layout
2939 gettext
2940 \end_layout
2941
2942 \end_inset
2943
2944  library to handle the internationalization of the interface.
2945  To have \SpecialChar LyX
2946  speak your favorite language in all menus and dialogs, you need
2947  a 
2948 \begin_inset Flex Code
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 po
2953 \end_layout
2954
2955 \end_inset
2956
2957 -file for that language.
2958  When this is available, you'll have to generate a 
2959 \begin_inset Flex Code
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 mo
2964 \end_layout
2965
2966 \end_inset
2967
2968 -file from it and install the 
2969 \begin_inset Flex Code
2970 status collapsed
2971
2972 \begin_layout Plain Layout
2973 mo
2974 \end_layout
2975
2976 \end_inset
2977
2978 -file.
2979  The process of doing all of this is explained in the documentation for
2980  GNU 
2981 \begin_inset Flex Code
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 gettext
2986 \end_layout
2987
2988 \end_inset
2989
2990 .
2991  It is possible to do this just for yourself, but if you're going to do
2992  it, you might as well share the results of your labors with the rest of
2993  the \SpecialChar LyX
2994  community.
2995  Send a message to the \SpecialChar LyX
2996  developers' list for more information about how
2997  to proceed.
2998 \end_layout
2999
3000 \begin_layout Standard
3001 In short, this is what you should do (xx denotes the language code):
3002 \end_layout
3003
3004 \begin_layout Itemize
3005 Check out the \SpecialChar LyX
3006  source code.
3007  (See the 
3008 \begin_inset CommandInset href
3009 LatexCommand href
3010 name "information on the web"
3011 target "http://www.lyx.org/HowToUseGIT"
3012
3013 \end_inset
3014
3015 .)
3016 \end_layout
3017
3018 \begin_layout Itemize
3019 Copy the file 
3020 \begin_inset Flex Code
3021 status collapsed
3022
3023 \begin_layout Plain Layout
3024 lyx.pot
3025 \end_layout
3026
3027 \end_inset
3028
3029  to the folder of the 
3030 \begin_inset Flex Code
3031 status collapsed
3032
3033 \begin_layout Plain Layout
3034 **.po
3035 \end_layout
3036
3037 \end_inset
3038
3039  files.
3040  Then rename it to 
3041 \begin_inset Flex Code
3042 status collapsed
3043
3044 \begin_layout Plain Layout
3045 xx.po
3046 \end_layout
3047
3048 \end_inset
3049
3050 .
3051  (If 
3052 \begin_inset Flex Code
3053 status collapsed
3054
3055 \begin_layout Plain Layout
3056 lyx.pot
3057 \end_layout
3058
3059 \end_inset
3060
3061  doesn't exist anywhere, it can be remade with the console command 
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 make lyx.pot
3067 \end_layout
3068
3069 \end_inset
3070
3071  in that directory, or you can use an existing po-file for some other language
3072  as a template).
3073 \end_layout
3074
3075 \begin_layout Itemize
3076 Edit 
3077 \begin_inset Flex Code
3078 status collapsed
3079
3080 \begin_layout Plain Layout
3081 xx.po
3082 \end_layout
3083
3084 \end_inset
3085
3086 .
3087 \begin_inset Foot
3088 status collapsed
3089
3090 \begin_layout Plain Layout
3091 This is just a text file, so it can be edited in any text editor.
3092  But there are also specialized programs that support such editing, such
3093  as 
3094 \family typewriter
3095 Poedit
3096 \family default
3097  (for all platforms) or 
3098 \family typewriter
3099 KBabel
3100 \family default
3101  (for KDE).
3102  
3103 \family typewriter
3104 Emacs
3105 \family default
3106  contains a `mode' for editing 
3107 \begin_inset Flex Code
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111 po
3112 \end_layout
3113
3114 \end_inset
3115
3116  files, as well, see 
3117 \begin_inset Flex URL
3118 status open
3119
3120 \begin_layout Plain Layout
3121
3122 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3123 \backslash
3124 #PO-Mode
3125 \end_layout
3126
3127 \end_inset
3128
3129 .
3130 \end_layout
3131
3132 \end_inset
3133
3134  For some menu- and widget-labels, there are also shortcut keys that should
3135  be translated.
3136  Those keys are marked after a `|', and should be translated according to
3137  the words and phrases of the language.
3138  You should also fill also out the information at the beginning of the new
3139  
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 po
3145 \end_layout
3146
3147 \end_inset
3148
3149 -file with your email-address, etc., so people know where to reach you with
3150  suggestions and entertaining flames.
3151 \end_layout
3152
3153 \begin_layout Standard
3154 If you are just doing this on your own, then:
3155 \end_layout
3156
3157 \begin_layout Itemize
3158 Generate 
3159 \begin_inset Flex Code
3160 status collapsed
3161
3162 \begin_layout Plain Layout
3163 xx.mo
3164 \end_layout
3165
3166 \end_inset
3167
3168 .
3169  This can be done with 
3170 \begin_inset Flex Code
3171 status collapsed
3172
3173 \begin_layout Plain Layout
3174 msgfmt -o xx.mo < xx.po
3175 \end_layout
3176
3177 \end_inset
3178
3179 .
3180 \end_layout
3181
3182 \begin_layout Itemize
3183 Copy the 
3184 \begin_inset Flex Code
3185 status collapsed
3186
3187 \begin_layout Plain Layout
3188 mo
3189 \end_layout
3190
3191 \end_inset
3192
3193 -file to your locale-tree, at the correct directory for application messages
3194  for the language
3195 \series bold
3196  
3197 \series default
3198 xx, and under the name 
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 lyx.mo
3204 \end_layout
3205
3206 \end_inset
3207
3208  (e.
3209 \begin_inset space \thinspace{}
3210 \end_inset
3211
3212 g.
3213 \begin_inset space \space{}
3214 \end_inset
3215
3216
3217 \begin_inset Flex Code
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3222 \end_layout
3223
3224 \end_inset
3225
3226
3227 \series bold
3228 .
3229 \end_layout
3230
3231 \begin_layout Standard
3232 As said, however, it would be best if the new 
3233 \begin_inset Flex Code
3234 status collapsed
3235
3236 \begin_layout Plain Layout
3237 po
3238 \end_layout
3239
3240 \end_inset
3241
3242  file could be added to the \SpecialChar LyX
3243  distribution, so others can use it.
3244  Adding it involves making additional changes to \SpecialChar LyX
3245 .
3246  So send an email to the developers' mailing list if you're interested in
3247  doing that.
3248 \end_layout
3249
3250 \begin_layout Subsubsection
3251 Ambiguous messages
3252 \end_layout
3253
3254 \begin_layout Standard
3255 Sometimes it turns out that one English message needs to be translated into
3256  different messages in the target language.
3257  One example is the message 
3258 \begin_inset Flex Code
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 To
3263 \end_layout
3264
3265 \end_inset
3266
3267  which has the German translation 
3268 \lang german
3269 Nach
3270 \lang english
3271  or 
3272 \lang german
3273 Bis
3274 \lang english
3275 , depending upon exactly what the English 
3276 \begin_inset Quotes eld
3277 \end_inset
3278
3279 to
3280 \begin_inset Quotes erd
3281 \end_inset
3282
3283  means.
3284  GNU 
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289 gettext
3290 \end_layout
3291
3292 \end_inset
3293
3294  does not handle such ambiguous translations.
3295  Therefore you have to add some context information to the message: Instead
3296  of 
3297 \begin_inset Flex Code
3298 status collapsed
3299
3300 \begin_layout Plain Layout
3301 To
3302 \end_layout
3303
3304 \end_inset
3305
3306  it becomes 
3307 \begin_inset Flex Code
3308 status collapsed
3309
3310 \begin_layout Plain Layout
3311 To[[as in 'From format x to format y']]
3312 \end_layout
3313
3314 \end_inset
3315
3316  and 
3317 \begin_inset Flex Code
3318 status collapsed
3319
3320 \begin_layout Plain Layout
3321 To[[as in 'From page x to page y']].
3322 \end_layout
3323
3324 \end_inset
3325
3326  Now the two occurrences of 
3327 \begin_inset Flex Code
3328 status collapsed
3329
3330 \begin_layout Plain Layout
3331 To
3332 \end_layout
3333
3334 \end_inset
3335
3336  are different for 
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  and can be translated correctly to 
3347 \lang german
3348 Nach
3349 \lang english
3350  and 
3351 \lang german
3352 Bis
3353 \lang english
3354 , respectively.
3355 \end_layout
3356
3357 \begin_layout Standard
3358 Of course the context information needs to be stripped off the original
3359  message when no translation is used.
3360  Therefore you have to put it in double square brackets at the end of the
3361  message (see the example above).
3362  The translation mechanism of \SpecialChar LyX
3363  ensures that everything in double square
3364  brackets at the end of messages is removed before displaying the message.
3365 \end_layout
3366
3367 \begin_layout Subsection
3368 Translating the documentation.
3369 \end_layout
3370
3371 \begin_layout Standard
3372 The online documentation (in the 
3373 \begin_inset Flex Noun
3374 status collapsed
3375
3376 \begin_layout Plain Layout
3377 Help
3378 \end_layout
3379
3380 \end_inset
3381
3382 -menu) can (and should!) be translated.
3383  If there are translated versions of the documentation available
3384 \begin_inset Foot
3385 status collapsed
3386
3387 \begin_layout Plain Layout
3388 As of March 2008, at least some of the documents have been translated into
3389  fourteen languages, with the Tutorial available in a few more.
3390 \end_layout
3391
3392 \end_inset
3393
3394  and the locale is set accordingly, these will be used automagically by
3395  \SpecialChar LyX
3396 .
3397  \SpecialChar LyX
3398  looks for translated versions as 
3399 \begin_inset Flex Code
3400 status collapsed
3401
3402 \begin_layout Plain Layout
3403 LyXDir/doc/xx/DocName.lyx
3404 \end_layout
3405
3406 \end_inset
3407
3408 , where 
3409 \begin_inset Flex Code
3410 status collapsed
3411
3412 \begin_layout Plain Layout
3413 xx
3414 \end_layout
3415
3416 \end_inset
3417
3418  is the code for the language currently in use.
3419  If there are no translated documents, the default English versions will
3420  be displayed.
3421  Note that the translated versions must have the same filenames (
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 DocName
3427 \end_layout
3428
3429 \end_inset
3430
3431  above) as the original.
3432  If you feel up to translating the documentation (an excellent way to proof-read
3433  the original documentation by the way!), there are a few things you should
3434  do right away:
3435 \end_layout
3436
3437 \begin_layout Itemize
3438 Check out the documentation translation web page at 
3439 \begin_inset CommandInset href
3440 LatexCommand href
3441 name "http://www.lyx.org/Translation"
3442 target "http://www.lyx.org/Translation"
3443
3444 \end_inset
3445
3446 .
3447  That way, you can find out which (if any) documents have already been translate
3448 d into your language.
3449  You can also find out who (if anyone) is organizing the effort to translate
3450  the documentation into your language.
3451  If no one is organizing the effort, please let us know that you're interested.
3452 \end_layout
3453
3454 \begin_layout Standard
3455 Once you get to actually translating, here's a few hints for you that may
3456  save you trouble:
3457 \end_layout
3458
3459 \begin_layout Itemize
3460 Join the documentation team! There is information on how to do that in 
3461 \begin_inset Flex Code
3462 status collapsed
3463
3464 \begin_layout Plain Layout
3465 Intro.lyx
3466 \end_layout
3467
3468 \end_inset
3469
3470  (
3471 \begin_inset Flex Noun
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 Help\SpecialChar menuseparator
3476 Introduction
3477 \end_layout
3478
3479 \end_inset
3480
3481 ), which by the way is the first document you should translate.
3482 \end_layout
3483
3484 \begin_layout Itemize
3485 Learn the typographic conventions for the language you are translating to.
3486  Typography is an ancient art and over the centuries, a great variety of
3487  conventions have developed throughout different parts of the world.
3488  Also study the professional terminology amongst typographers in your country.
3489  Inventing your own terminology will only confuse the users.
3490  
3491 \emph on
3492 (Warning! Typography is addictive!)
3493 \end_layout
3494
3495 \begin_layout Itemize
3496 Make a copy of the document.
3497  This will be your working copy.
3498  You can use this as your personal translated help-file by placing it in
3499  your 
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504 UserDir/doc/xx/
3505 \end_layout
3506
3507 \end_inset
3508
3509  directory.
3510 \begin_inset Note Greyedout
3511 status open
3512
3513 \begin_layout Plain Layout
3514
3515 \series bold
3516 Note:
3517 \series default
3518  For a complex document with external material (images, etc.), if you make
3519  a copy e.
3520 \begin_inset space \thinspace{}
3521 \end_inset
3522
3523 g.
3524 \begin_inset space \space{}
3525 \end_inset
3526
3527 in a temp dir, beware that the links to external material may be broken
3528  when the document is moved to a different place.
3529  The best way is to retrieve the \SpecialChar LyX
3530  tree from git (see 
3531 \begin_inset Flex URL
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535
3536 http://www.lyx.org/HowToUseGIT
3537 \end_layout
3538
3539 \end_inset
3540
3541 ) and to edit the doc file in place.
3542 \end_layout
3543
3544 \end_inset
3545
3546
3547 \end_layout
3548
3549 \begin_layout Itemize
3550 Sometimes the original document (from the \SpecialChar LyX
3551  team) will be updated.
3552  Use the source viewer at 
3553 \begin_inset CommandInset href
3554 LatexCommand href
3555 name "http://www.lyx.org/trac/timeline"
3556 target "http://www.lyx.org/trac/timeline"
3557
3558 \end_inset
3559
3560  to see what has been changed.
3561  That way you can easily see which parts of the translated document need
3562  to be updated.
3563 \end_layout
3564
3565 \begin_layout Standard
3566 If you ever find an error in the original document, fix it and notify the
3567  rest of the documentation team of the changes! (You didn't forget to join
3568  the documentation team, did you?)
3569 \end_layout
3570
3571 \begin_layout Standard
3572 \begin_inset Branch OutDated
3573 inverted 0
3574 status collapsed
3575
3576 \begin_layout Section
3577 International Keyboard Support
3578 \end_layout
3579
3580 \begin_layout Standard
3581
3582 \emph on
3583 [Editor's Note: The following section is by
3584 \emph default
3585  
3586 \shape smallcaps
3587 \emph on
3588 Ivan Schreter
3589 \shape default
3590 .
3591  It needs to be fixed to conform to the new Documentation Style sheet and
3592  to make use of the new v1.0 features.
3593  The whole thing also needs to be merged with the section following it.-jw
3594  It may also be badly out of date.-rh (2008)]
3595 \end_layout
3596
3597 \begin_layout Subsection
3598 Defining Own Keymaps: Keymap File Format
3599 \end_layout
3600
3601 \begin_layout Standard
3602 Let's look at a keyboard definition file a little closer.
3603  It is a plain text file defining
3604 \end_layout
3605
3606 \begin_layout Itemize
3607 key-to-key or key-to-string translations
3608 \end_layout
3609
3610 \begin_layout Itemize
3611 dead keys
3612 \end_layout
3613
3614 \begin_layout Itemize
3615 dead keys exceptions
3616 \end_layout
3617
3618 \begin_layout Standard
3619 To define key-to-key or key-to-string translation, use this command:
3620 \end_layout
3621
3622 \begin_layout Quotation
3623 \begin_inset Flex Code
3624 status collapsed
3625
3626 \begin_layout Plain Layout
3627
3628 \backslash
3629 kmap
3630 \end_layout
3631
3632 \end_inset
3633
3634  
3635 \begin_inset Flex Code
3636 status collapsed
3637
3638 \begin_layout Plain Layout
3639 key
3640 \end_layout
3641
3642 \end_inset
3643
3644  outstring 
3645 \end_layout
3646
3647 \begin_layout Standard
3648 where 
3649 \begin_inset Flex Code
3650 status collapsed
3651
3652 \begin_layout Plain Layout
3653 key
3654 \end_layout
3655
3656 \end_inset
3657
3658  is the key to be translated and 
3659 \begin_inset Flex Code
3660 status collapsed
3661
3662 \begin_layout Plain Layout
3663 outstring
3664 \end_layout
3665
3666 \end_inset
3667
3668  is the string to be inserted into the document.
3669  To define dead keys, use:
3670 \end_layout
3671
3672 \begin_layout Quotation
3673 \begin_inset Flex Code
3674 status collapsed
3675
3676 \begin_layout Plain Layout
3677
3678 \backslash
3679 kmod
3680 \end_layout
3681
3682 \end_inset
3683
3684  
3685 \begin_inset Flex Code
3686 status collapsed
3687
3688 \begin_layout Plain Layout
3689 key
3690 \end_layout
3691
3692 \end_inset
3693
3694  deadkey
3695 \end_layout
3696
3697 \begin_layout Standard
3698 where 
3699 \begin_inset Flex Code
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703 key
3704 \end_layout
3705
3706 \end_inset
3707
3708  is a keyboard key and 
3709 \begin_inset Flex Code
3710 status collapsed
3711
3712 \begin_layout Plain Layout
3713 deadkey
3714 \end_layout
3715
3716 \end_inset
3717
3718  is dead key name.
3719  The following dead keys are supported (shortcut name is in parentheses):
3720 \end_layout
3721
3722 \begin_layout Quotation
3723
3724 \emph on
3725 Name
3726 \begin_inset space \hfill{}
3727 \end_inset
3728
3729 Example
3730 \end_layout
3731
3732 \begin_layout Quotation
3733 acute (acu)
3734 \begin_inset space \hfill{}
3735 \end_inset
3736
3737 áéíóú
3738 \end_layout
3739
3740 \begin_layout Quotation
3741 grave (gra)
3742 \begin_inset space \hfill{}
3743 \end_inset
3744
3745 àèìòù
3746 \end_layout
3747
3748 \begin_layout Quotation
3749 macron (mac)
3750 \begin_inset space \hfill{}
3751 \end_inset
3752
3753  ō
3754 \end_layout
3755
3756 \begin_layout Quotation
3757 tilde (til)
3758 \begin_inset space \hfill{}
3759 \end_inset
3760
3761 ñÑ
3762 \end_layout
3763
3764 \begin_layout Quotation
3765 underbar (underb)
3766 \begin_inset space \hfill{}
3767 \end_inset
3768
3769
3770 \begin_inset ERT
3771 status open
3772
3773 \begin_layout Plain Layout
3774
3775
3776 \backslash
3777 b o
3778 \end_layout
3779
3780 \end_inset
3781
3782
3783 \end_layout
3784
3785 \begin_layout Quotation
3786 cedilla (ced)
3787 \begin_inset space \hfill{}
3788 \end_inset
3789
3790 çÇ
3791 \end_layout
3792
3793 \begin_layout Quotation
3794 underdot (underd)
3795 \begin_inset space \hfill{}
3796 \end_inset
3797
3798
3799 \begin_inset ERT
3800 status open
3801
3802 \begin_layout Plain Layout
3803
3804
3805 \backslash
3806 d o
3807 \end_layout
3808
3809 \end_inset
3810
3811
3812 \end_layout
3813
3814 \begin_layout Quotation
3815 circumflex (circu)
3816 \begin_inset space \hfill{}
3817 \end_inset
3818
3819 âêîôû
3820 \end_layout
3821
3822 \begin_layout Quotation
3823 circle (circl)
3824 \begin_inset space \hfill{}
3825 \end_inset
3826
3827 ÅůŮ
3828 \end_layout
3829
3830 \begin_layout Quotation
3831 tie (tie)
3832 \begin_inset space \hfill{}
3833 \end_inset
3834
3835
3836 \begin_inset ERT
3837 status open
3838
3839 \begin_layout Plain Layout
3840
3841
3842 \backslash
3843 t o
3844 \end_layout
3845
3846 \end_inset
3847
3848
3849 \end_layout
3850
3851 \begin_layout Quotation
3852 breve (bre)
3853 \begin_inset space \hfill{}
3854 \end_inset
3855
3856 ă
3857 \begin_inset ERT
3858 status open
3859
3860 \begin_layout Plain Layout
3861
3862
3863 \backslash
3864 u o
3865 \end_layout
3866
3867 \end_inset
3868
3869
3870 \end_layout
3871
3872 \begin_layout Quotation
3873 caron (car)
3874 \begin_inset space \hfill{}
3875 \end_inset
3876
3877 čšž
3878 \end_layout
3879
3880 \begin_layout Quotation
3881 hungarian umlaut (hug)
3882 \begin_inset space \hfill{}
3883 \end_inset
3884
3885 őű
3886 \end_layout
3887
3888 \begin_layout Quotation
3889 umlaut (uml)
3890 \begin_inset space \hfill{}
3891 \end_inset
3892
3893 äöü
3894 \end_layout
3895
3896 \begin_layout Quotation
3897 dot (dot)
3898 \begin_inset space \hfill{}
3899 \end_inset
3900
3901 ż
3902 \begin_inset ERT
3903 status open
3904
3905 \begin_layout Plain Layout
3906
3907
3908 \backslash
3909 .s
3910 \end_layout
3911
3912 \end_inset
3913
3914
3915 \end_layout
3916
3917 \begin_layout Standard
3918 Since in many international keyboards there are exceptions to what some
3919  dead keys should do, you can define them using
3920 \end_layout
3921
3922 \begin_layout Quotation
3923 \begin_inset Flex Code
3924 status collapsed
3925
3926 \begin_layout Plain Layout
3927
3928 \backslash
3929 kxmod
3930 \end_layout
3931
3932 \end_inset
3933
3934  deadkey key outstring
3935 \end_layout
3936
3937 \begin_layout Standard
3938 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3939 , so you put in
3940 \end_layout
3941
3942 \begin_layout Quotation
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947
3948 \backslash
3949 kxmod
3950 \end_layout
3951
3952 \end_inset
3953
3954  caron o "
3955 \backslash
3956 ^o"
3957 \end_layout
3958
3959 \begin_layout Standard
3960 to make it work correctly.
3961  Also, you have to define as exceptions dead keys over i and j, to remove
3962  the dot from them before inserting an accent mark.
3963  I will change this when the time comes, but so far I haven't had time.
3964 \end_layout
3965
3966 \begin_layout Standard
3967 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3968  double backslash.
3969  Also, quotes and 
3970 \begin_inset Flex Code
3971 status collapsed
3972
3973 \begin_layout Plain Layout
3974 #
3975 \end_layout
3976
3977 \end_inset
3978
3979  have different meaning.
3980  
3981 \begin_inset Flex Code
3982 status collapsed
3983
3984 \begin_layout Plain Layout
3985 #
3986 \end_layout
3987
3988 \end_inset
3989
3990  marks comments, quotes start and end \SpecialChar LaTeX
3991 -style commands.
3992  To enter quote, you'll need to use 
3993 \begin_inset Flex Code
3994 status collapsed
3995
3996 \begin_layout Plain Layout
3997
3998 \backslash
3999 "
4000 \end_layout
4001
4002 \end_inset
4003
4004 , to enter 
4005 \begin_inset Flex Code
4006 status collapsed
4007
4008 \begin_layout Plain Layout
4009 #
4010 \end_layout
4011
4012 \end_inset
4013
4014 , use 
4015 \begin_inset Flex Code
4016 status collapsed
4017
4018 \begin_layout Plain Layout
4019
4020 \backslash
4021 #
4022 \end_layout
4023
4024 \end_inset
4025
4026 .
4027 \end_layout
4028
4029 \begin_layout Standard
4030 If you make a keyboard description file that works for your language, please
4031  mail it to me, so I can include it in the next keymap distribution.
4032 \end_layout
4033
4034 \begin_layout Standard
4035 More keywords will be supported in keymap configuration file in future,
4036  like
4037 \end_layout
4038
4039 \begin_layout Itemize
4040 \begin_inset Flex Code
4041 status collapsed
4042
4043 \begin_layout Plain Layout
4044
4045 \backslash
4046 kinclude filename
4047 \end_layout
4048
4049 \end_inset
4050
4051
4052 \emph on
4053
4054 \begin_inset space \hfill{}
4055 \end_inset
4056
4057
4058 \begin_inset Flex Code
4059 status collapsed
4060
4061 \begin_layout Plain Layout
4062 include
4063 \end_layout
4064
4065 \end_inset
4066
4067  another file
4068 \end_layout
4069
4070 \begin_layout Itemize
4071 \begin_inset Flex Code
4072 status collapsed
4073
4074 \begin_layout Plain Layout
4075
4076 \backslash
4077 kprog program
4078 \end_layout
4079
4080 \end_inset
4081
4082
4083 \emph on
4084
4085 \begin_inset space \hfill{}
4086 \end_inset
4087
4088
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 define
4094 \end_layout
4095
4096 \end_inset
4097
4098  an external keymap translation program 
4099 \end_layout
4100
4101 \begin_layout Standard
4102 Also, it should look into 
4103 \begin_inset Flex Code
4104 status collapsed
4105
4106 \begin_layout Plain Layout
4107 lyxrc
4108 \end_layout
4109
4110 \end_inset
4111
4112  file for defaults, too (for example, a 
4113 \begin_inset Flex Code
4114 status collapsed
4115
4116 \begin_layout Plain Layout
4117
4118 \backslash
4119 kinclude
4120 \end_layout
4121
4122 \end_inset
4123
4124  option to include default keyboard).
4125 \end_layout
4126
4127 \end_inset
4128
4129
4130 \end_layout
4131
4132 \begin_layout Section
4133 International Keymap Stuff
4134 \begin_inset CommandInset label
4135 LatexCommand label
4136 name "sec:International-Keymap-Stuff"
4137
4138 \end_inset
4139
4140
4141 \end_layout
4142
4143 \begin_layout Standard
4144 \begin_inset Note Note
4145 status open
4146
4147 \begin_layout Plain Layout
4148 In doing the revisions on this document in March 2008, I did not look over
4149  this stuff, as I do not understand it.
4150  It would be good if someone else could do so.
4151  (RH)
4152 \end_layout
4153
4154 \end_inset
4155
4156
4157 \end_layout
4158
4159 \begin_layout Standard
4160 The next two sections describe the 
4161 \begin_inset Flex Code
4162 status collapsed
4163
4164 \begin_layout Plain Layout
4165
4166 \shape up
4167 .kmap
4168 \end_layout
4169
4170 \end_inset
4171
4172  and 
4173 \begin_inset Flex Code
4174 status collapsed
4175
4176 \begin_layout Plain Layout
4177
4178 \shape up
4179 .cdef
4180 \end_layout
4181
4182 \end_inset
4183
4184  file syntax in detail.
4185  These sections should help you design your own key map if the ones provided
4186  do not meet your needs.
4187 \end_layout
4188
4189 \begin_layout Subsection
4190 The .kmap File
4191 \end_layout
4192
4193 \begin_layout Standard
4194
4195 \shape up
4196 .
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 kmap
4202 \end_layout
4203
4204 \end_inset
4205
4206  file maps keystrokes to characters or strings.
4207  As the name suggests, it sets a keyboard mapping.
4208  The 
4209 \begin_inset Flex Code
4210 status collapsed
4211
4212 \begin_layout Plain Layout
4213 .kmap
4214 \end_layout
4215
4216 \end_inset
4217
4218
4219 \shape default
4220  file keywords 
4221 \shape up
4222
4223 \begin_inset Flex Code
4224 status collapsed
4225
4226 \begin_layout Plain Layout
4227
4228 \shape up
4229 kmap
4230 \end_layout
4231
4232 \end_inset
4233
4234
4235 \shape default
4236 ,
4237 \shape up
4238  
4239 \shape default
4240
4241 \begin_inset Flex Code
4242 status collapsed
4243
4244 \begin_layout Plain Layout
4245
4246 \shape up
4247 kmod
4248 \end_layout
4249
4250 \end_inset
4251
4252 ,
4253 \shape up
4254  
4255 \shape default
4256
4257 \begin_inset Flex Code
4258 status collapsed
4259
4260 \begin_layout Plain Layout
4261
4262 \shape up
4263 kxmod
4264 \end_layout
4265
4266 \end_inset
4267
4268 , and 
4269 \begin_inset Flex Code
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273
4274 \shape up
4275 kcomb
4276 \end_layout
4277
4278 \end_inset
4279
4280  are described in this section.
4281 \end_layout
4282
4283 \begin_layout Labeling
4284 \labelwidthstring 00.00.0000
4285 \begin_inset Flex Code
4286 status collapsed
4287
4288 \begin_layout Plain Layout
4289
4290 \shape up
4291 kmap
4292 \end_layout
4293
4294 \end_inset
4295
4296  Map a character to a string
4297 \end_layout
4298
4299 \begin_layout LyX-Code
4300
4301 \backslash
4302 kmap 
4303 \family roman
4304 \emph on
4305 char
4306 \family default
4307 \emph default
4308  
4309 \family roman
4310 \emph on
4311 string
4312 \end_layout
4313
4314 \begin_layout Standard
4315 This will ma
4316 \family roman
4317 p
4318 \family default
4319  
4320 \family roman
4321 \emph on
4322 char
4323 \family default
4324 \emph default
4325  
4326 \family roman
4327 to
4328 \family default
4329  
4330 \family roman
4331 \emph on
4332 string
4333 \emph default
4334 .
4335  Note that in
4336 \family default
4337  
4338 \family roman
4339 \emph on
4340 string
4341 \emph default
4342 ,
4343 \family default
4344  
4345 \family roman
4346 \shape up
4347 the double-quote (")
4348 \family default
4349 \shape default
4350  
4351 \family roman
4352 and
4353 \family default
4354  
4355 \family roman
4356 \shape up
4357 the backslash (
4358 \backslash
4359 )
4360 \family default
4361 \shape default
4362  
4363 \family roman
4364 must be escaped with a preceding backslash (
4365 \shape up
4366
4367 \backslash
4368
4369 \shape default
4370 )
4371 \family default
4372 .
4373 \end_layout
4374
4375 \begin_layout Standard
4376 An example of a 
4377 \begin_inset Flex Noun
4378 status collapsed
4379
4380 \begin_layout Plain Layout
4381
4382 \shape up
4383 kmap
4384 \end_layout
4385
4386 \end_inset
4387
4388  statement to cause the symbol 
4389 \begin_inset Flex Noun
4390 status collapsed
4391
4392 \begin_layout Plain Layout
4393
4394 \shape up
4395 /
4396 \end_layout
4397
4398 \end_inset
4399
4400  to be output for the keystroke 
4401 \begin_inset Flex Noun
4402 status collapsed
4403
4404 \begin_layout Plain Layout
4405
4406 \shape up
4407 &
4408 \end_layout
4409
4410 \end_inset
4411
4412  is:
4413 \end_layout
4414
4415 \begin_layout LyX-Code
4416
4417 \backslash
4418 kmap & /
4419 \end_layout
4420
4421 \begin_layout Labeling
4422 \labelwidthstring 00.00.0000
4423 \begin_inset Flex Code
4424 status collapsed
4425
4426 \begin_layout Plain Layout
4427
4428 \shape up
4429 kmod
4430 \end_layout
4431
4432 \end_inset
4433
4434  Specify an accent character
4435 \end_layout
4436
4437 \begin_layout LyX-Code
4438
4439 \backslash
4440 kmod 
4441 \family roman
4442 \emph on
4443 char accent allowed
4444 \end_layout
4445
4446 \begin_layout Standard
4447 This will make the cha
4448 \family roman
4449 racter
4450 \family default
4451  
4452 \family roman
4453 \emph on
4454 char
4455 \family default
4456 \emph default
4457  
4458 \family roman
4459 \shape up
4460 \emph on
4461 be an accent
4462 \family default
4463 \shape default
4464 \emph default
4465  
4466 \family roman
4467 \shape up
4468 on the
4469 \family default
4470 \shape default
4471  
4472 \family roman
4473 \shape up
4474 \emph on
4475 allowed
4476 \family default
4477 \shape default
4478 \emph default
4479  
4480 \family roman
4481 \shape up
4482 cha
4483 \family default
4484 racter(s).
4485  This is the dead key
4486 \begin_inset Foot
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490 The term 
4491 \family roman
4492 \emph on
4493 dead key
4494 \family default
4495 \emph default
4496  refers to a key that does not produce a character by itself, but when followed
4497  with another key, produces the desired accent character.
4498  For example, a German characte
4499 \family roman
4500 r with an umlaut like
4501 \family default
4502  
4503 \family roman
4504 \emph on
4505 ä
4506 \family default
4507 \emph default
4508  
4509 \family roman
4510 can be produced in this manner.
4511 \end_layout
4512
4513 \end_inset
4514
4515  mechanism.
4516  
4517 \end_layout
4518
4519 \begin_layout Standard
4520 If you 
4521 \family roman
4522 hit
4523 \family default
4524  
4525 \family roman
4526 \emph on
4527 char
4528 \family default
4529 \emph default
4530  
4531 \family roman
4532 and then another key not in
4533 \family default
4534  
4535 \family roman
4536 \emph on
4537 allowed
4538 \emph default
4539 , you will get a
4540 \family default
4541  
4542 \family roman
4543 \emph on
4544 char
4545 \family default
4546 \emph default
4547  
4548 \family roman
4549 followed by the other, not allowed key, as output.
4550
4551 \family default
4552  Note that a 
4553 \begin_inset Flex Noun
4554 status collapsed
4555
4556 \begin_layout Plain Layout
4557
4558 \shape up
4559 Backspace
4560 \end_layout
4561
4562 \end_inset
4563
4564  cancels a dead key, so if 
4565 \family roman
4566 you hit
4567 \family default
4568  
4569 \family roman
4570 \emph on
4571 char
4572 \family default
4573 \emph default
4574  
4575 \begin_inset Flex Noun
4576 status collapsed
4577
4578 \begin_layout Plain Layout
4579
4580 \shape up
4581 \emph on
4582 Backspace
4583 \end_layout
4584
4585 \end_inset
4586
4587 , the cursor will not go one position backwards but will instead cancel
4588  the effect t
4589 \family roman
4590 hat
4591 \family default
4592  
4593 \family roman
4594 \shape up
4595 \emph on
4596 char
4597 \family default
4598 \shape default
4599 \emph default
4600  
4601 \family roman
4602 \shape up
4603 might have had on the next keystroke.
4604  
4605 \end_layout
4606
4607 \begin_layout Standard
4608 The following example specifies that the character ' is to be an acute accent,
4609  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4610 \end_layout
4611
4612 \begin_layout LyX-Code
4613
4614 \backslash
4615 kmod ' acute aeiouAEIOU
4616 \end_layout
4617
4618 \begin_layout Labeling
4619 \labelwidthstring 00.00.0000
4620 \begin_inset Flex Code
4621 status collapsed
4622
4623 \begin_layout Plain Layout
4624 kxmod
4625 \end_layout
4626
4627 \end_inset
4628
4629  Specify an exception to the accent character
4630 \end_layout
4631
4632 \begin_layout LyX-Code
4633
4634 \backslash
4635 kxmod  
4636 \family roman
4637 \emph on
4638 accent char result
4639 \end_layout
4640
4641 \begin_layout Standard
4642 This defines an exce
4643 \family roman
4644 ption for
4645 \family default
4646  
4647 \family roman
4648 \emph on
4649 accent
4650 \family default
4651 \emph default
4652  
4653 \family roman
4654 on
4655 \family default
4656  
4657 \family roman
4658 \emph on
4659 char
4660 \emph default
4661 .
4662  T
4663 \shape up
4664 he
4665 \family default
4666 \shape default
4667  
4668 \family roman
4669 \shape up
4670 \emph on
4671 accent
4672 \family default
4673 \shape default
4674 \emph default
4675  
4676 \family roman
4677 \shape up
4678 must
4679 \family default
4680 \shape default
4681  
4682 \shape up
4683 have been assigned a keystroke with a previous
4684 \shape default
4685  
4686 \begin_inset Flex Code
4687 status collapsed
4688
4689 \begin_layout Plain Layout
4690
4691 \shape up
4692
4693 \backslash
4694 kmo
4695 \shape default
4696 d
4697 \end_layout
4698
4699 \end_inset
4700
4701  declar
4702 \family roman
4703 ation and
4704 \family default
4705  
4706 \family roman
4707 \emph on
4708 char
4709 \family default
4710 \emph default
4711  
4712 \family roman
4713 must not belong in the
4714 \family default
4715  
4716 \family roman
4717 \emph on
4718 allowed
4719 \family default
4720 \emph default
4721  
4722 \family roman
4723 set of
4724 \family default
4725  
4726 \family roman
4727 \emph on
4728 accent
4729 \emph default
4730 .
4731  When
4732 \family default
4733  
4734 \family roman
4735 \shape up
4736 you enter the
4737 \family default
4738 \shape default
4739  
4740 \family roman
4741 \shape up
4742 \emph on
4743 accent char
4744 \family default
4745 \shape default
4746 \emph default
4747  
4748 \family roman
4749 \shape up
4750 sequence,
4751 \family default
4752 \shape default
4753  
4754 \family roman
4755 \shape up
4756 \emph on
4757 result
4758 \emph default
4759  is produced.
4760  If such a declaration does not exist in
4761 \family default
4762 \shape default
4763  
4764 \shape up
4765 the
4766 \shape default
4767  
4768 \begin_inset Flex Code
4769 status collapsed
4770
4771 \begin_layout Plain Layout
4772
4773 \shape up
4774 .kmap
4775 \end_layout
4776
4777 \end_inset
4778
4779  file and yo
4780 \family roman
4781 u enter
4782 \family default
4783  
4784 \family roman
4785 \emph on
4786 accent char
4787 \emph default
4788 , you get
4789 \family default
4790  
4791 \family roman
4792 \emph on
4793 accent_key char
4794 \emph default
4795  where
4796 \family default
4797  
4798 \family roman
4799 \emph on
4800 accent_key
4801 \emph default
4802  is the first arg
4803 \family default
4804 ument of the 
4805 \begin_inset Flex Code
4806 status collapsed
4807
4808 \begin_layout Plain Layout
4809
4810 \shape up
4811
4812 \backslash
4813 kmod
4814 \end_layout
4815
4816 \end_inset
4817
4818  declaration.
4819  
4820 \end_layout
4821
4822 \begin_layout Standard
4823 The following command produces causes äi to be produced when you enter acute-i
4824  ('i):
4825 \end_layout
4826
4827 \begin_layout LyX-Code
4828
4829 \backslash
4830 kxmod acute i "
4831 \backslash
4832
4833 \backslash
4834 '{
4835 \backslash
4836
4837 \backslash
4838 i}"
4839 \end_layout
4840
4841 \begin_layout Labeling
4842 \labelwidthstring 00.00.0000
4843 \begin_inset Flex Code
4844 status collapsed
4845
4846 \begin_layout Plain Layout
4847 kcomb
4848 \end_layout
4849
4850 \end_inset
4851
4852  Combine two accent characters
4853 \end_layout
4854
4855 \begin_layout LyX-Code
4856
4857 \backslash
4858 kcomb 
4859 \family roman
4860 \emph on
4861 accent1 accent2 allowed
4862 \end_layout
4863
4864 \begin_layout Standard
4865 This one is getting pretty esoteric.
4866  It allows you to combine the effect 
4867 \family roman
4868 of
4869 \family default
4870  
4871 \family roman
4872 \emph on
4873 accent1
4874 \family default
4875 \emph default
4876  
4877 \family roman
4878 and
4879 \family default
4880  
4881 \family roman
4882 \emph on
4883 accent2
4884 \family default
4885 \emph default
4886  
4887 \family roman
4888 (in that order!) on
4889 \family default
4890  
4891 \family roman
4892 \emph on
4893 allowed
4894 \family default
4895 \emph default
4896  
4897 \family roman
4898 chars.
4899  The keystrokes for
4900 \family default
4901  
4902 \family roman
4903 \emph on
4904 accent1
4905 \family default
4906 \emph default
4907  
4908 \family roman
4909 and
4910 \family default
4911  
4912 \family roman
4913 \emph on
4914 accent2
4915 \family default
4916 \emph default
4917  
4918 \family roman
4919 must have be
4920 \family default
4921 en set with a 
4922 \begin_inset Flex Code
4923 status collapsed
4924
4925 \begin_layout Plain Layout
4926
4927 \shape up
4928
4929 \backslash
4930 kmod
4931 \end_layout
4932
4933 \end_inset
4934
4935  command at 
4936 \family roman
4937 a
4938 \family default
4939  
4940 \family roman
4941 \emph on
4942 previous
4943 \family default
4944 \emph default
4945  
4946 \family roman
4947 point in the
4948 \family default
4949  file.
4950  
4951 \end_layout
4952
4953 \begin_layout Standard
4954 Consider this example from the 
4955 \begin_inset Flex Code
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959
4960 \shape up
4961 greek.kmap
4962 \end_layout
4963
4964 \end_inset
4965
4966  file:
4967 \end_layout
4968
4969 \begin_layout LyX-Code
4970
4971 \backslash
4972 kmod ; acute aeioyvhAEIOYVH 
4973 \backslash
4974 kmod : umlaut iyIY 
4975 \backslash
4976 kcomb acute umlaut iyIY
4977 \end_layout
4978
4979 \begin_layout Standard
4980 This allows you to press 
4981 \begin_inset Flex Noun
4982 status collapsed
4983
4984 \begin_layout Plain Layout
4985
4986 \shape up
4987 ;:i
4988 \end_layout
4989
4990 \end_inset
4991
4992  and get the effect of 
4993 \begin_inset Flex Code
4994 status collapsed
4995
4996 \begin_layout Plain Layout
4997
4998 \shape up
4999
5000 \backslash
5001 '{
5002 \backslash
5003 "{i}}
5004 \end_layout
5005
5006 \end_inset
5007
5008 .
5009  
5010 \family roman
5011 \shape up
5012 A backspace
5013 \family default
5014 \shape default
5015  in this case cancels the last dead key, so if you press 
5016 \begin_inset Flex Noun
5017 status collapsed
5018
5019 \begin_layout Plain Layout
5020
5021 \shape up
5022 ;: Backspace i
5023 \end_layout
5024
5025 \end_inset
5026
5027  you get 
5028 \begin_inset Flex Code
5029 status collapsed
5030
5031 \begin_layout Plain Layout
5032
5033 \shape up
5034
5035 \backslash
5036 '{i}
5037 \end_layout
5038
5039 \end_inset
5040
5041 .
5042 \end_layout
5043
5044 \begin_layout Subsection
5045 The .cdef File
5046 \end_layout
5047
5048 \begin_layout Standard
5049 After the 
5050 \begin_inset Flex Code
5051 status collapsed
5052
5053 \begin_layout Plain Layout
5054
5055 \shape up
5056 .kmap
5057 \end_layout
5058
5059 \end_inset
5060
5061  mapping is performed, a 
5062 \begin_inset Flex Code
5063 status collapsed
5064
5065 \begin_layout Plain Layout
5066
5067 \shape up
5068 .cde
5069 \shape default
5070 f
5071 \end_layout
5072
5073 \end_inset
5074
5075  file maps the strings that the symbols generate to characters in the current
5076  font.
5077  The \SpecialChar LyX
5078  distribution currently includes at least the 
5079 \begin_inset Flex Code
5080 status collapsed
5081
5082 \begin_layout Plain Layout
5083
5084 \shape up
5085 iso8859-1.cdef
5086 \end_layout
5087
5088 \end_inset
5089
5090  and 
5091 \begin_inset Flex Code
5092 status collapsed
5093
5094 \begin_layout Plain Layout
5095
5096 \shape up
5097 iso8859-2.cdef
5098 \end_layout
5099
5100 \end_inset
5101
5102  files.
5103 \end_layout
5104
5105 \begin_layout Standard
5106 In general the 
5107 \begin_inset Flex Code
5108 status collapsed
5109
5110 \begin_layout Plain Layout
5111
5112 \shape up
5113 .cdef
5114 \end_layout
5115
5116 \end_inset
5117
5118  file is a sequence of declarations of the form
5119 \end_layout
5120
5121 \begin_layout LyX-Code
5122
5123 \family roman
5124 \emph on
5125 char_index_in_set
5126 \family default
5127 \emph default
5128  
5129 \family roman
5130 \emph on
5131  string
5132 \end_layout
5133
5134 \begin_layout Standard
5135 For example, in order to map 
5136 \begin_inset Flex Noun
5137 status collapsed
5138
5139 \begin_layout Plain Layout
5140
5141 \shape up
5142
5143 \backslash
5144 '{e}
5145 \end_layout
5146
5147 \end_inset
5148
5149  to the corresponding character in the iso-8859-1 set (233), the following
5150  declaration is used
5151 \end_layout
5152
5153 \begin_layout LyX-Code
5154 233 "
5155 \backslash
5156
5157 \backslash
5158 '{e}"
5159 \end_layout
5160
5161 \begin_layout Standard
5162 with 
5163 \begin_inset Flex Code
5164 status collapsed
5165
5166 \begin_layout Plain Layout
5167
5168 \backslash
5169
5170 \end_layout
5171
5172 \end_inset
5173
5174  and 
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179 "
5180 \end_layout
5181
5182 \end_inset
5183
5184  being escap
5185 \family roman
5186 ed in
5187 \family default
5188  
5189 \family roman
5190 \emph on
5191 string
5192 \emph default
5193 .
5194  Note that
5195 \family default
5196  the same character can apply to more than one string.
5197  In the 
5198 \begin_inset Flex Code
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 i
5203 \shape up
5204 so-8859-7.cdef
5205 \end_layout
5206
5207 \end_inset
5208
5209  file you have
5210 \end_layout
5211
5212 \begin_layout LyX-Code
5213 192 "
5214 \backslash
5215
5216 \backslash
5217 '{
5218 \backslash
5219
5220 \backslash
5221
5222 \backslash
5223 "{i}}"
5224 \begin_inset Newline newline
5225 \end_inset
5226
5227 192 "
5228 \backslash
5229
5230 \backslash
5231
5232 \backslash
5233 "{
5234 \backslash
5235
5236 \backslash
5237 '{i}}"
5238 \end_layout
5239
5240 \begin_layout Standard
5241 If \SpecialChar LyX
5242  cannot find a mapping for the string produced by the keystroke or a
5243  deadkey sequence, it will check if it looks like an accented char and try
5244  to draw an accent over the character on screen.
5245 \end_layout
5246
5247 \begin_layout Subsection
5248 Dead Keys
5249 \end_layout
5250
5251 \begin_layout Standard
5252 There is a second way to add support for international characters through
5253  so-called dead-keys.
5254  A dead-key works in combination with a letter to produce an accented character.
5255  Here, we'll explain how to create a really simple dead-key to illustrate
5256  how they work.
5257 \end_layout
5258
5259 \begin_layout Standard
5260 Suppose you happen to need the circumflex character, 
5261 \begin_inset Quotes eld
5262 \end_inset
5263
5264  ̂
5265 \begin_inset Quotes erd
5266 \end_inset
5267
5268 .
5269  You could bind the 
5270 \begin_inset Flex Noun
5271 status collapsed
5272
5273 \begin_layout Plain Layout
5274 ^
5275 \end_layout
5276
5277 \end_inset
5278
5279 -key [a.k.a.
5280 \begin_inset space ~
5281 \end_inset
5282
5283
5284 \begin_inset Flex Noun
5285 status collapsed
5286
5287 \begin_layout Plain Layout
5288 Shift-6
5289 \end_layout
5290
5291 \end_inset
5292
5293 ] to the \SpecialChar LyX
5294  command 
5295 \begin_inset Flex Code
5296 status collapsed
5297
5298 \begin_layout Plain Layout
5299 accent-circumflex
5300 \end_layout
5301
5302 \end_inset
5303
5304  in your 
5305 \begin_inset Flex Code
5306 status collapsed
5307
5308 \begin_layout Plain Layout
5309 lyxrc
5310 \end_layout
5311
5312 \end_inset
5313
5314  file.
5315  Now, whenever you type the 
5316 \begin_inset Flex Noun
5317 status collapsed
5318
5319 \begin_layout Plain Layout
5320 ^
5321 \end_layout
5322
5323 \end_inset
5324
5325 -key followed by a letter, that letter will have a circumflex accent on
5326  it.
5327  For example, the sequence 
5328 \begin_inset Quotes eld
5329 \end_inset
5330
5331
5332 \begin_inset Flex Noun
5333 status collapsed
5334
5335 \begin_layout Plain Layout
5336 ^e
5337 \end_layout
5338
5339 \end_inset
5340
5341
5342 \begin_inset Quotes erd
5343 \end_inset
5344
5345  produces the letter: 
5346 \begin_inset Quotes eld
5347 \end_inset
5348
5349 ê
5350 \begin_inset Quotes erd
5351 \end_inset
5352
5353 .
5354  If you tried to type 
5355 \begin_inset Quotes eld
5356 \end_inset
5357
5358
5359 \begin_inset Flex Noun
5360 status collapsed
5361
5362 \begin_layout Plain Layout
5363 ^t
5364 \end_layout
5365
5366 \end_inset
5367
5368
5369 \begin_inset Quotes erd
5370 \end_inset
5371
5372 , however, \SpecialChar LyX
5373  will complain with a beep, since a 
5374 \begin_inset Quotes eld
5375 \end_inset
5376
5377
5378 \begin_inset Flex Noun
5379 status collapsed
5380
5381 \begin_layout Plain Layout
5382 t
5383 \end_layout
5384
5385 \end_inset
5386
5387
5388 \begin_inset Quotes erd
5389 \end_inset
5390
5391  never takes a circumflex accent.
5392  Hitting 
5393 \begin_inset Flex Noun
5394 status collapsed
5395
5396 \begin_layout Plain Layout
5397 Space
5398 \end_layout
5399
5400 \end_inset
5401
5402  after a dead-key produces the bare-accent.
5403  Please note this last point! If you bind a key to a dead-key, you'll need
5404  to rebind the character on that key to yet another key.
5405  Binding the 
5406 \begin_inset Flex Noun
5407 status collapsed
5408
5409 \begin_layout Plain Layout
5410 ,-key
5411 \end_layout
5412
5413 \end_inset
5414
5415  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5416 \end_layout
5417
5418 \begin_layout Standard
5419 One common way to bind dead-keys is to use 
5420 \begin_inset Flex Noun
5421 status collapsed
5422
5423 \begin_layout Plain Layout
5424 Meta-
5425 \end_layout
5426
5427 \end_inset
5428
5429
5430 \begin_inset Flex Noun
5431 status collapsed
5432
5433 \begin_layout Plain Layout
5434 Ctrl-
5435 \end_layout
5436
5437 \end_inset
5438
5439 , and 
5440 \begin_inset Flex Noun
5441 status collapsed
5442
5443 \begin_layout Plain Layout
5444 Shift-
5445 \end_layout
5446
5447 \end_inset
5448
5449  in combination with an accent, like 
5450 \begin_inset Quotes eld
5451 \end_inset
5452
5453
5454 \begin_inset Flex Noun
5455 status collapsed
5456
5457 \begin_layout Plain Layout
5458 ~
5459 \end_layout
5460
5461 \end_inset
5462
5463
5464 \begin_inset Quotes erd
5465 \end_inset
5466
5467  or 
5468 \begin_inset Quotes eld
5469 \end_inset
5470
5471
5472 \begin_inset Flex Noun
5473 status collapsed
5474
5475 \begin_layout Plain Layout
5476 ,
5477 \end_layout
5478
5479 \end_inset
5480
5481
5482 \begin_inset Quotes erd
5483 \end_inset
5484
5485  or 
5486 \begin_inset Quotes eld
5487 \end_inset
5488
5489
5490 \begin_inset Flex Noun
5491 status collapsed
5492
5493 \begin_layout Plain Layout
5494 ^
5495 \end_layout
5496
5497 \end_inset
5498
5499
5500 \begin_inset Quotes erd
5501 \end_inset
5502
5503 .
5504  Another way involves using 
5505 \begin_inset Flex Code
5506 status collapsed
5507
5508 \begin_layout Plain Layout
5509 xmodmap
5510 \end_layout
5511
5512 \end_inset
5513
5514  and 
5515 \begin_inset Flex Code
5516 status collapsed
5517
5518 \begin_layout Plain Layout
5519 xkeycaps
5520 \end_layout
5521
5522 \end_inset
5523
5524  to set up the special 
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529 Mode_Switch
5530 \end_layout
5531
5532 \end_inset
5533
5534  key.
5535  The 
5536 \begin_inset Flex Code
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540 Mode_Switch
5541 \end_layout
5542
5543 \end_inset
5544
5545  acts in some ways just like 
5546 \begin_inset Flex Noun
5547 status collapsed
5548
5549 \begin_layout Plain Layout
5550 Shift
5551 \end_layout
5552
5553 \end_inset
5554
5555  and permits you to bind keys to accented characters.
5556  You can also turn keys into dead-keys by binding them to something like
5557  
5558 \begin_inset Flex Code
5559 status collapsed
5560
5561 \begin_layout Plain Layout
5562 usldead_cedilla
5563 \end_layout
5564
5565 \end_inset
5566
5567  and then binding this symbolic key to the corresponding \SpecialChar LyX
5568  command.
5569 \begin_inset Foot
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 Note from 
5574 \noun on
5575 John Weiss
5576 \noun default
5577 : This is exactly what I do in my 
5578 \begin_inset Flex Code
5579 status collapsed
5580
5581 \begin_layout Plain Layout
5582 ~/.lyx/lyxrc
5583 \end_layout
5584
5585 \end_inset
5586
5587  and my 
5588 \begin_inset Flex Code
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 ~/.xmodmap
5593 \end_layout
5594
5595 \end_inset
5596
5597  files.
5598  I have my 
5599 \begin_inset Flex Noun
5600 status collapsed
5601
5602 \begin_layout Plain Layout
5603 Scroll
5604 \begin_inset space ~
5605 \end_inset
5606
5607 Lock
5608 \end_layout
5609
5610 \end_inset
5611
5612  key set up as 
5613 \begin_inset Flex Code
5614 status collapsed
5615
5616 \begin_layout Plain Layout
5617 Mode_Shift
5618 \end_layout
5619
5620 \end_inset
5621
5622  and a bunch of these 
5623 \begin_inset Quotes eld
5624 \end_inset
5625
5626
5627 \begin_inset Flex Code
5628 status collapsed
5629
5630 \begin_layout Plain Layout
5631 usldead_*
5632 \end_layout
5633
5634 \end_inset
5635
5636
5637 \begin_inset Quotes erd
5638 \end_inset
5639
5640  symbolic keys bound such things as 
5641 \begin_inset Flex Noun
5642 status collapsed
5643
5644 \begin_layout Plain Layout
5645 Scroll
5646 \begin_inset space ~
5647 \end_inset
5648
5649 Lock-^
5650 \end_layout
5651
5652 \end_inset
5653
5654  and 
5655 \begin_inset Flex Noun
5656 status collapsed
5657
5658 \begin_layout Plain Layout
5659 Scroll
5660 \begin_inset space ~
5661 \end_inset
5662
5663 Lock-~
5664 \end_layout
5665
5666 \end_inset
5667
5668 .
5669  This is how I produce my accented characters.
5670 \end_layout
5671
5672 \end_inset
5673
5674  You can make just about anything into the 
5675 \begin_inset Flex Code
5676 status collapsed
5677
5678 \begin_layout Plain Layout
5679 Mode_Switch
5680 \end_layout
5681
5682 \end_inset
5683
5684  key: One of the 
5685 \begin_inset Flex Noun
5686 status collapsed
5687
5688 \begin_layout Plain Layout
5689 Ctrl-
5690 \end_layout
5691
5692 \end_inset
5693
5694  keys, a spare function key, etc.
5695  As for the \SpecialChar LyX
5696  commands that produce accents, check the entry for 
5697 \begin_inset Flex Code
5698 status collapsed
5699
5700 \begin_layout Plain Layout
5701 accent-acute
5702 \end_layout
5703
5704 \end_inset
5705
5706  in the 
5707 \emph on
5708 Reference Manual
5709 \emph default
5710 .
5711  You'll find the complete list there.
5712 \end_layout
5713
5714 \begin_layout Subsection
5715 Saving your Language Configuration
5716 \end_layout
5717
5718 \begin_layout Standard
5719 You can edit your preferences so that your desired language environment
5720  is automatically configured when \SpecialChar LyX
5721  starts up, via the 
5722 \begin_inset Flex Noun
5723 status collapsed
5724
5725 \begin_layout Plain Layout
5726 Edit\SpecialChar menuseparator
5727 Preferences
5728 \end_layout
5729
5730 \end_inset
5731
5732  dialog.
5733 \end_layout
5734
5735 \begin_layout Chapter
5736 Installing New Document Classes, Layouts, and Templates
5737 \begin_inset CommandInset label
5738 LatexCommand label
5739 name "cha:Installing-New-Document"
5740
5741 \end_inset
5742
5743
5744 \begin_inset Argument 1
5745 status collapsed
5746
5747 \begin_layout Plain Layout
5748 Installing New Document Classes
5749 \end_layout
5750
5751 \end_inset
5752
5753
5754 \end_layout
5755
5756 \begin_layout Standard
5757 In this chapter, we describe the procedures for creating and installing
5758  new \SpecialChar LyX
5759  layout and template files, as well as offer a refresher on correctly
5760  installing new \SpecialChar LaTeX
5761  document classes.
5762  
5763 \end_layout
5764
5765 \begin_layout Standard
5766 First, let us a say a few words about how one ought to think about the relation
5767  between \SpecialChar LyX
5768  and \SpecialChar LaTeX
5769 .
5770  The thing to understand is that, in a certain sense, \SpecialChar LyX
5771  doesn't know anything
5772  about \SpecialChar LaTeX
5773 .
5774  Indeed, from \SpecialChar LyX
5775 's point of view, \SpecialChar LaTeX
5776  is just one of several 
5777 \begin_inset Quotes eld
5778 \end_inset
5779
5780 backend formats
5781 \begin_inset Quotes erd
5782 \end_inset
5783
5784  in which it is capable of producing output.
5785  Other such formats are DocBook, plaintext, and XHTML.
5786  \SpecialChar LaTeX
5787  is, of course, a particularly important format, but very little of the
5788  information \SpecialChar LyX
5789  has about \SpecialChar LaTeX
5790  is actually contained in the program itself.
5791 \begin_inset Foot
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795 Some commands are sufficiently complex that they are 
5796 \begin_inset Quotes eld
5797 \end_inset
5798
5799 hardcoded
5800 \begin_inset Quotes erd
5801 \end_inset
5802
5803  into \SpecialChar LyX
5804 .
5805  But the developers generally regard this as a Bad Thing.
5806 \end_layout
5807
5808 \end_inset
5809
5810  Rather, that information, even for the standard classes like 
5811 \begin_inset Flex Code
5812 status collapsed
5813
5814 \begin_layout Plain Layout
5815 article.cls
5816 \end_layout
5817
5818 \end_inset
5819
5820 , is contained in `layout files'.
5821  Similarly, \SpecialChar LyX
5822  itself does not know much about DocBook or XHTML.
5823  What it knows is contained in layout files.
5824 \end_layout
5825
5826 \begin_layout Standard
5827 You can think of the layout file for a given document class as a translation
5828  manual between \SpecialChar LyX
5829  constructs—paragraphs with their corresponding styles,
5830  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5831 , DocBook, or XHTML
5832  constructs.
5833  Almost everything \SpecialChar LyX
5834  knows about 
5835 \begin_inset Flex Code
5836 status collapsed
5837
5838 \begin_layout Plain Layout
5839 article.cls
5840 \end_layout
5841
5842 \end_inset
5843
5844 , for example, is contained in the file 
5845 \begin_inset Flex Code
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 article.layout
5850 \end_layout
5851
5852 \end_inset
5853
5854  and in various other files it includes.
5855  For this reason, anyone intending to write layout files should plan to
5856  study the existing files.
5857  A good place to start is with 
5858 \begin_inset Flex Code
5859 status collapsed
5860
5861 \begin_layout Plain Layout
5862 stdsections.inc
5863 \end_layout
5864
5865 \end_inset
5866
5867 , which is included in 
5868 \begin_inset Flex Code
5869 status collapsed
5870
5871 \begin_layout Plain Layout
5872 article.layout
5873 \end_layout
5874
5875 \end_inset
5876
5877
5878 \begin_inset Flex Code
5879 status collapsed
5880
5881 \begin_layout Plain Layout
5882 book.layout
5883 \end_layout
5884
5885 \end_inset
5886
5887 , and many of the other layout files for document classes.
5888  This file is where sections and the like are defined: 
5889 \begin_inset Flex Code
5890 status collapsed
5891
5892 \begin_layout Plain Layout
5893 stdsections.inc
5894 \end_layout
5895
5896 \end_inset
5897
5898  tells \SpecialChar LyX
5899  how paragraphs that are marked with the Section, Subsection, etc,
5900  styles can be translated into corresponding \SpecialChar LaTeX
5901 , DocBook, and XHTML commands
5902  and tags.
5903  The 
5904 \begin_inset Flex Code
5905 status collapsed
5906
5907 \begin_layout Plain Layout
5908 article.layout
5909 \end_layout
5910
5911 \end_inset
5912
5913  file basically just includes several of these 
5914 \begin_inset Flex Code
5915 status collapsed
5916
5917 \begin_layout Plain Layout
5918 std*.inc
5919 \end_layout
5920
5921 \end_inset
5922
5923  files.
5924 \end_layout
5925
5926 \begin_layout Standard
5927 Defining the \SpecialChar LyX
5928 –\SpecialChar LaTeX
5929  correspondence is not the only thing layout files do, though.
5930  Their other job is to define how the \SpecialChar LyX
5931  constructs themselves will appear
5932  on-screen.
5933  The fact that layout files have these two jobs is often a source of confusion,
5934  because they are completely separate.
5935  Telling \SpecialChar LyX
5936  how to translate a certain paragraph style into \SpecialChar LaTeX
5937  does not tell
5938  \SpecialChar LyX
5939  how to display it; conversely, telling \SpecialChar LyX
5940  how to display a certain paragraph
5941  style does not tell \SpecialChar LyX
5942  how to translate it into \SpecialChar LaTeX
5943  (let alone tell \SpecialChar LaTeX
5944  how to
5945  display it).
5946  So, in general, when you define a new \SpecialChar LyX
5947  construct, you must always do two
5948  quite separate things: (i)
5949 \begin_inset space ~
5950 \end_inset
5951
5952 tell \SpecialChar LyX
5953  how to translate it into \SpecialChar LaTeX
5954  and (ii)
5955 \begin_inset space ~
5956 \end_inset
5957
5958 tell \SpecialChar LyX
5959  how to display it.
5960 \end_layout
5961
5962 \begin_layout Standard
5963 Much the same is true, of course, as regards \SpecialChar LyX
5964 's other backend formats, though
5965  XHTML is in some ways different, because in that case \SpecialChar LyX
5966  
5967 \emph on
5968 is
5969 \emph default
5970  able, to some extent, to use information about how it should display a
5971  paragraph on the screen to output information (in the form of CSS) about
5972  how the paragraph should be displayed in a browser.
5973  Even in this case, however, the distinction between what \SpecialChar LyX
5974  does internally
5975  and how things are rendered externally remains in force, and the two can
5976  be controlled separately.
5977  See 
5978 \begin_inset CommandInset ref
5979 LatexCommand ref
5980 reference "sec:Tags-for-XHTML"
5981
5982 \end_inset
5983
5984  for the details.
5985 \end_layout
5986
5987 \begin_layout Section
5988 Installing new \SpecialChar LaTeX
5989  files
5990 \end_layout
5991
5992 \begin_layout Standard
5993 Some installations may not include a \SpecialChar LaTeX
5994  package or class file that you would
5995  like to use within \SpecialChar LyX
5996 .
5997  For example, you might need Foil\SpecialChar TeX
5998 , a package for preparing slides for overhead
5999  projectors.
6000  Modern \SpecialChar LaTeX
6001  distributions like \SpecialChar TeX
6002 Live (2008 or newer) or MiK\SpecialChar TeX
6003  provide a user interface
6004  for installing such packages.
6005  For example, with MiK\SpecialChar TeX
6006 , you start the program 
6007 \begin_inset Quotes eld
6008 \end_inset
6009
6010 Package
6011 \begin_inset space ~
6012 \end_inset
6013
6014 Manager
6015 \begin_inset Quotes erd
6016 \end_inset
6017
6018  to get a list of available packages.
6019  To install one of them, right click on it or use the corresponding toolbar
6020  button.
6021 \end_layout
6022
6023 \begin_layout Standard
6024 If your \SpecialChar LaTeX
6025  distribution does not provide such a `package manager', or if the
6026  package is not available from your distribution, then follow these steps
6027  to install it manually:
6028 \end_layout
6029
6030 \begin_layout Enumerate
6031 Get the package from 
6032 \begin_inset CommandInset href
6033 LatexCommand href
6034 name "CTAN"
6035 target "http://www.ctan.org/"
6036
6037 \end_inset
6038
6039  or wherever.
6040 \end_layout
6041
6042 \begin_layout Enumerate
6043 If the package contains a file with the ending 
6044 \begin_inset Quotes eld
6045 \end_inset
6046
6047
6048 \begin_inset Flex Code
6049 status collapsed
6050
6051 \begin_layout Plain Layout
6052 .ins
6053 \end_layout
6054
6055 \end_inset
6056
6057
6058 \begin_inset Quotes erd
6059 \end_inset
6060
6061  (is the case for Foil\SpecialChar TeX
6062 ) then open a console, change to the folder of this
6063  file and execute the command 
6064 \begin_inset Flex Code
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 latex foiltex.ins
6069 \end_layout
6070
6071 \end_inset
6072
6073 .
6074  You have now unpacked the package and have all files to install it.
6075  Most \SpecialChar LaTeX
6076 -packages are not packed and you can skip this step.
6077 \end_layout
6078
6079 \begin_layout Enumerate
6080 Now you need to decide if the package should be available for all users
6081  or only for you.
6082 \end_layout
6083
6084 \begin_deeper
6085 \begin_layout Enumerate
6086 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6087  for all users on your system, then install it in your `local' \SpecialChar TeX
6088  tree, otherwise
6089  install it in your own `user' \SpecialChar TeX
6090  tree.
6091  Where these trees should be created, if they do not already exist, depends
6092  on your system.
6093  To find this out, look in the file 
6094 \begin_inset Flex Code
6095 status collapsed
6096
6097 \begin_layout Plain Layout
6098 texmf.cnf
6099 \end_layout
6100
6101 \end_inset
6102
6103 .
6104 \begin_inset Foot
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 This is usually in the directory 
6109 \begin_inset Flex Code
6110 status collapsed
6111
6112 \begin_layout Plain Layout
6113 $TEXMF/web2c
6114 \end_layout
6115
6116 \end_inset
6117
6118 , though you can execute the command 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 kpsewhich texmf.cnf
6124 \end_layout
6125
6126 \end_inset
6127
6128  to locate it.
6129 \end_layout
6130
6131 \end_inset
6132
6133  The location of the `local' \SpecialChar TeX
6134  tree is defined by the 
6135 \begin_inset Flex Code
6136 status collapsed
6137
6138 \begin_layout Plain Layout
6139 TEXMFLOCAL
6140 \end_layout
6141
6142 \end_inset
6143
6144  variable; this is usually somewhere like 
6145 \begin_inset Flex Code
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 /usr/local/share/texmf
6150 \end_layout
6151
6152 \end_inset
6153
6154  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6155 Live
6156  distribution.
6157  The location of the `user' \SpecialChar TeX
6158  tree is defined by 
6159 \begin_inset Flex Code
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 TEXMFHOME
6164 \end_layout
6165
6166 \end_inset
6167
6168  and is commonly 
6169 \begin_inset Flex Code
6170 status collapsed
6171
6172 \begin_layout Plain Layout
6173 $HOME/texmf
6174 \end_layout
6175
6176 \end_inset
6177
6178  or 
6179 \begin_inset Flex Code
6180 status collapsed
6181
6182 \begin_layout Plain Layout
6183
6184 \family sans
6185 \lang french
6186 $HOME/.texliveXXXX
6187 \end_layout
6188
6189 \end_inset
6190
6191 .
6192  (If these variables are not predefined, you have to define them.) You'll
6193  probably need root permissions to create or modify the `local' tree, but
6194  not for your `user' tree.
6195 \begin_inset Newline newline
6196 \end_inset
6197
6198 In general, it is recommended to install in the user tree because your user
6199  will not be modified or even overwritten when you upgrade your system.
6200  It will typically also be backed up together with everything else when
6201  you backup your home directory (which, of course, you do on a regular basis).
6202 \end_layout
6203
6204 \begin_layout Enumerate
6205 On Windows, if you want the new package to be available for all users on
6206  your system, change to the folder where \SpecialChar LaTeX
6207  is installed and then change to
6208  the subfolder 
6209 \begin_inset Flex Code
6210 status collapsed
6211
6212 \begin_layout Plain Layout
6213 ~
6214 \backslash
6215 tex
6216 \backslash
6217 latex
6218 \end_layout
6219
6220 \end_inset
6221
6222 .
6223  (For MiK\SpecialChar TeX
6224 , this would be by default the folder 
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 ~:
6230 \backslash
6231 Programs
6232 \backslash
6233 MiKTeX
6234 \backslash
6235 tex
6236 \backslash
6237 latex
6238 \end_layout
6239
6240 \end_inset
6241
6242 .)
6243 \begin_inset Foot
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247 Note that this will be the correct path only on English installations.
6248  On a German one, it would be 
6249 \begin_inset Flex Code
6250 status collapsed
6251
6252 \begin_layout Plain Layout
6253 ~:
6254 \backslash
6255 Programme
6256 \backslash
6257 MiKTeX
6258 \backslash
6259 tex
6260 \backslash
6261 latex
6262 \end_layout
6263
6264 \end_inset
6265
6266 , and similarly for other languages.
6267 \end_layout
6268
6269 \end_inset
6270
6271  Create there a new folder 
6272 \begin_inset Flex Code
6273 status collapsed
6274
6275 \begin_layout Plain Layout
6276 foiltex
6277 \end_layout
6278
6279 \end_inset
6280
6281  and copy all files of the package into it.
6282  
6283 \begin_inset Newline newline
6284 \end_inset
6285
6286 If the package should only available for you or you don't have admin permissions
6287 , do the same, but in the local \SpecialChar LaTeX
6288  folder.
6289  E.
6290 \begin_inset space \thinspace{}
6291 \end_inset
6292
6293 g., for MiK\SpecialChar TeX
6294
6295 \begin_inset space ~
6296 \end_inset
6297
6298 2.8 under Windows XP, this would be the folder:
6299 \begin_inset Newline newline
6300 \end_inset
6301
6302
6303 \family sans
6304
6305 \begin_inset Flex Code
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 ~:
6310 \backslash
6311 Documents and Settings
6312 \backslash
6313 <username>
6314 \backslash
6315 Application Data
6316 \backslash
6317
6318 \end_layout
6319
6320 \end_inset
6321
6322
6323 \begin_inset Newline newline
6324 \end_inset
6325
6326
6327 \family default
6328
6329 \begin_inset Phantom HPhantom
6330 status open
6331
6332 \begin_layout Plain Layout
6333
6334 \family sans
6335 ~:
6336 \backslash
6337
6338 \end_layout
6339
6340 \end_inset
6341
6342
6343 \begin_inset Flex Code
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347 MiKTeX
6348 \backslash
6349 2.8
6350 \backslash
6351 tex
6352 \backslash
6353 latex
6354 \end_layout
6355
6356 \end_inset
6357
6358
6359 \begin_inset Newline newline
6360 \end_inset
6361
6362 On Vista, it would be:
6363 \begin_inset Newline newline
6364 \end_inset
6365
6366
6367 \begin_inset Flex Code
6368 status collapsed
6369
6370 \begin_layout Plain Layout
6371 ~:
6372 \backslash
6373 Users
6374 \backslash
6375 <username>
6376 \backslash
6377 AppData
6378 \backslash
6379 Roaming
6380 \backslash
6381 2.8
6382 \backslash
6383 MiKTeX
6384 \backslash
6385 tex
6386 \backslash
6387 latex
6388 \end_layout
6389
6390 \end_inset
6391
6392
6393 \end_layout
6394
6395 \end_deeper
6396 \begin_layout Enumerate
6397 Now one only need to tell \SpecialChar LaTeX
6398  that there are new files.
6399  This depends on the used \SpecialChar LaTeX
6400 -Distribution:
6401 \end_layout
6402
6403 \begin_deeper
6404 \begin_layout Enumerate
6405 For \SpecialChar TeX
6406 Live execute the command 
6407 \begin_inset Flex Code
6408 status collapsed
6409
6410 \begin_layout Plain Layout
6411 texhash
6412 \end_layout
6413
6414 \end_inset
6415
6416  from a console.
6417  If you installed the package for all users, then you will probably need
6418  to have root permissions for that.
6419 \end_layout
6420
6421 \begin_layout Enumerate
6422 For MiK\SpecialChar TeX
6423 , if you have installed the package for all users, start the program
6424  
6425 \begin_inset Quotes eld
6426 \end_inset
6427
6428 Settings
6429 \begin_inset space ~
6430 \end_inset
6431
6432 (Admin)
6433 \begin_inset Quotes erd
6434 \end_inset
6435
6436  and press the button marked 
6437 \begin_inset Quotes eld
6438 \end_inset
6439
6440 Refresh FNDB
6441 \begin_inset Quotes erd
6442 \end_inset
6443
6444 .
6445  Otherwise start the program 
6446 \begin_inset Quotes eld
6447 \end_inset
6448
6449 Settings
6450 \begin_inset Quotes erd
6451 \end_inset
6452
6453  and do the same.
6454 \end_layout
6455
6456 \end_deeper
6457 \begin_layout Enumerate
6458 Finally, you need to tell \SpecialChar LyX
6459  that there are new packages available.
6460  So, in \SpecialChar LyX
6461 , use the menu 
6462 \begin_inset Flex Noun
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 Tools
6467 \family sans
6468 \SpecialChar menuseparator
6469 Reconfigure
6470 \end_layout
6471
6472 \end_inset
6473
6474  and then restart \SpecialChar LyX
6475 .
6476 \end_layout
6477
6478 \begin_layout Standard
6479 Now the package is installed.
6480  In our example, the document class 
6481 \begin_inset Flex Code
6482 status collapsed
6483
6484 \begin_layout Plain Layout
6485 Slides
6486 \begin_inset space ~
6487 \end_inset
6488
6489 (FoilTex)
6490 \end_layout
6491
6492 \end_inset
6493
6494  will now be available under 
6495 \begin_inset Flex Noun
6496 status collapsed
6497
6498 \begin_layout Plain Layout
6499 Document\SpecialChar menuseparator
6500 Settings\SpecialChar menuseparator
6501 Document Class
6502 \end_layout
6503
6504 \end_inset
6505
6506 .
6507  
6508 \end_layout
6509
6510 \begin_layout Standard
6511 If you would like to use a \SpecialChar LaTeX
6512  document class that is not even listed in the
6513  menu 
6514 \begin_inset Flex Noun
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 Document\SpecialChar menuseparator
6519 Settings\SpecialChar menuseparator
6520 Document Class
6521 \end_layout
6522
6523 \end_inset
6524
6525 , then you need to create a `layout' file for it.
6526  That is the topic of the next section.
6527 \end_layout
6528
6529 \begin_layout Section
6530 Types of layout files
6531 \end_layout
6532
6533 \begin_layout Standard
6534 This section describes the various sorts of \SpecialChar LyX
6535  files that contain layout informati
6536 on.
6537  These files describe various paragraph and character styles, determining
6538  how \SpecialChar LyX
6539  should display them and how they should be translated into \SpecialChar LaTeX
6540 , DocBook,
6541  XHTML, or whatever output format is being used.
6542  
6543 \end_layout
6544
6545 \begin_layout Standard
6546 We shall try to provide a thorough description of the process of writing
6547  layout files here.
6548  However, there are so many different types of documents supported even
6549  by just \SpecialChar LaTeX
6550  that we can't hope to cover every different possibility or problem
6551  you might encounter.
6552  The \SpecialChar LyX
6553  users' list is frequented by people with lots of experience with layout
6554  design who are willing to share what they've learned, so please feel free
6555  to ask questions there.
6556 \end_layout
6557
6558 \begin_layout Standard
6559 As you prepare to write a new layout, it is extremely helpful to look at
6560  the layouts distributed with \SpecialChar LyX
6561 .
6562  If you write a \SpecialChar LyX
6563  layout for a \SpecialChar LaTeX
6564  document class that might also be used by
6565  others, or write a module that might be useful to others, then you should
6566  consider posting your layout to the 
6567 \begin_inset CommandInset href
6568 LatexCommand href
6569 name "layout section on the LyX wiki"
6570 target "http://wiki.lyx.org/Layouts/Layouts"
6571
6572 \end_inset
6573
6574  or even to the \SpecialChar LyX
6575  developers' list, so that it might be included in \SpecialChar LyX
6576  itself.
6577 \begin_inset Foot
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 Note that \SpecialChar LyX
6582  is licensed under the General Public License, so any material
6583  that is contributed to \SpecialChar LyX
6584  must be similarly licensed.
6585 \end_layout
6586
6587 \end_inset
6588
6589
6590 \end_layout
6591
6592 \begin_layout Subsection
6593 Layout modules
6594 \begin_inset CommandInset label
6595 LatexCommand label
6596 name "subsec:Layout-modules"
6597
6598 \end_inset
6599
6600
6601 \end_layout
6602
6603 \begin_layout Standard
6604 We have spoken to this point about `layout files'.
6605  But there are different sorts of files that contain layout information.
6606  Layout files, strictly so called, have the 
6607 \begin_inset Flex Code
6608 status collapsed
6609
6610 \begin_layout Plain Layout
6611 .layout
6612 \end_layout
6613
6614 \end_inset
6615
6616  extension and provide \SpecialChar LyX
6617  with information about document classes.
6618  Since \SpecialChar LyX
6619  1.6 layout information can also be contained in layout 
6620 \emph on
6621 modules
6622 \emph default
6623 , which have the 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 .module
6629 \end_layout
6630
6631 \end_inset
6632
6633  extension.
6634  Modules are to \SpecialChar LaTeX
6635  packages much as layouts are to \SpecialChar LaTeX
6636  classes, and some modules—such
6637  as the 
6638 \begin_inset Flex Code
6639 status collapsed
6640
6641 \begin_layout Plain Layout
6642 endnotes
6643 \end_layout
6644
6645 \end_inset
6646
6647  module—specifically provide support for one package.
6648  In a sense, layout modules are similar to included
6649 \begin_inset Foot
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 These can have any extension, but by convention have the 
6654 \begin_inset Flex Code
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 .inc
6659 \end_layout
6660
6661 \end_inset
6662
6663  extension.
6664 \end_layout
6665
6666 \end_inset
6667
6668  files—files like 
6669 \begin_inset Flex Code
6670 status collapsed
6671
6672 \begin_layout Plain Layout
6673 stdsections.inc
6674 \end_layout
6675
6676 \end_inset
6677
6678 —in that modules are not specific to a given document class but may be used
6679  with many different classes.
6680  The difference is that using an included file with 
6681 \begin_inset Flex Code
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 article.cls
6686 \end_layout
6687
6688 \end_inset
6689
6690  requires editing that file.
6691  Modules, by contrast, are selected in the 
6692 \begin_inset Flex Noun
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 Document\SpecialChar menuseparator
6697 Settings
6698 \end_layout
6699
6700 \end_inset
6701
6702  dialog.
6703 \end_layout
6704
6705 \begin_layout Standard
6706 Building modules is the easiest way to get started with layout editing,
6707  since it can be as simple as adding a single new paragraph style or flex
6708  inset.
6709  But modules may, in principle, contain anything a layout file can contain.
6710 \end_layout
6711
6712 \begin_layout Standard
6713 After creating a new module and copying it to the 
6714 \begin_inset Flex Code
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 layouts/
6719 \end_layout
6720
6721 \end_inset
6722
6723  folder, you will need to reconfigure and then restart \SpecialChar LyX
6724  for the module to
6725  appear in the menu.
6726  However, changes you make to the module will be seen immediately, if you
6727  open 
6728 \begin_inset Flex Noun
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732 Document\SpecialChar menuseparator
6733 Settings
6734 \end_layout
6735
6736 \end_inset
6737
6738 , highlight something, and then hit 
6739 \begin_inset Quotes eld
6740 \end_inset
6741
6742 OK
6743 \begin_inset Quotes erd
6744 \end_inset
6745
6746 .
6747  
6748 \emph on
6749 It is strongly recommended that you save your work before doing this
6750 \emph default
6751 .
6752  In fact, 
6753 \emph on
6754 it is strongly recommended that you not attempt to edit modules while simultaneo
6755 usly working on actual documents
6756 \emph default
6757 .
6758  Though of course the developers strive to keep \SpecialChar LyX
6759  stable in such situations,
6760  syntax errors and the like in your module file could cause strange behavior.
6761 \end_layout
6762
6763 \begin_layout Subsubsection
6764 Local Layout
6765 \end_layout
6766
6767 \begin_layout Standard
6768 Modules are to \SpecialChar LyX
6769  as packages are to \SpecialChar LaTeX
6770 .
6771  Sometimes, however, you find yourself wanting a specific inset or character
6772  style just for one document and writing a module that will also be available
6773  to other documents makes little sense.
6774  What you need is \SpecialChar LyX
6775 's 
6776 \begin_inset Quotes eld
6777 \end_inset
6778
6779 Local Layout
6780 \begin_inset Quotes erd
6781 \end_inset
6782
6783 .
6784 \end_layout
6785
6786 \begin_layout Standard
6787 You will find it under 
6788 \family sans
6789 Document\SpecialChar menuseparator
6790 Settings\SpecialChar menuseparator
6791 Local Layout
6792 \family default
6793 .
6794  The large text box allows you to enter anything that you might enter in
6795  a layout file or module.
6796  You can think of a document's local layout, in fact, as a module that belongs
6797  just to it.
6798  So, in particular, you must enter a 
6799 \begin_inset Flex Code
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803 Format
6804 \end_layout
6805
6806 \end_inset
6807
6808  tag.
6809  Any format is acceptable, but one would normally use the format current
6810  at the time.
6811  (In \SpecialChar LyX
6812  2.2, the current layout format is 60.)
6813 \end_layout
6814
6815 \begin_layout Standard
6816 When you have entered something in the 
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 Local Layout
6822 \end_layout
6823
6824 \end_inset
6825
6826  pane, \SpecialChar LyX
6827  will enable the 
6828 \begin_inset Quotes eld
6829 \end_inset
6830
6831 Validate
6832 \begin_inset Quotes erd
6833 \end_inset
6834
6835  button at the bottom.
6836  Clicking this button will cause \SpecialChar LyX
6837  to determine whether what you have entered
6838  is valid layout information for the chosen format.
6839  \SpecialChar LyX
6840  will report the result but, unfortunately, will not tell you what errors
6841  there might have been.
6842  These will be written to the terminal, however, if \SpecialChar LyX
6843  is started from a terminal.
6844  You will not be permitted to save your local layout until you have entered
6845  something valid.
6846 \end_layout
6847
6848 \begin_layout Standard
6849 The warnings at the end of the previous section apply here, too.
6850  Do not play with local layout while you are actually working, especially
6851  if you have not saved your document.
6852  That said, using local layout with a test document can be a very convenient
6853  way to try out layout ideas, or even to start developing a module.
6854 \end_layout
6855
6856 \begin_layout Subsection
6857 Layout for 
6858 \begin_inset Flex Noun
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 .sty
6863 \end_layout
6864
6865 \end_inset
6866
6867  files
6868 \end_layout
6869
6870 \begin_layout Standard
6871 There are two situations you are likely to encounter when wanting to support
6872  a new \SpecialChar LaTeX
6873  document class, involving style (
6874 \begin_inset Flex Code
6875 status collapsed
6876
6877 \begin_layout Plain Layout
6878 .sty
6879 \end_layout
6880
6881 \end_inset
6882
6883 ) files and \SpecialChar LaTeX2e
6884  class (
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 .cls
6890 \end_layout
6891
6892 \end_inset
6893
6894 ) .
6895  Supporting a style file is usually fairly easy.
6896  Supporting a new class file is a bit harder.
6897  We'll discuss the former in this section and the latter in the next.
6898  Similar remarks apply, of course, if you want to support a new DocBook
6899  DTD.
6900 \end_layout
6901
6902 \begin_layout Standard
6903 The easier case is the one in which your new document class is provided
6904  as a style file that is to be used in conjunction with an already supported
6905  document class.
6906  For the sake of the example, we'll assume that the style file is called
6907  
6908 \begin_inset Flex Noun
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912 myclass.sty
6913 \end_layout
6914
6915 \end_inset
6916
6917  and that it is meant to be used with 
6918 \begin_inset Flex Noun
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 report.cls
6923 \end_layout
6924
6925 \end_inset
6926
6927 , which is a standard class.
6928  
6929 \end_layout
6930
6931 \begin_layout Standard
6932 Start by copying the existing class's layout file into your local directory:
6933 \begin_inset Foot
6934 status collapsed
6935
6936 \begin_layout Plain Layout
6937 Of course, which directory is your local directory will vary by platform,
6938  and \SpecialChar LyX
6939  allows you to specify your local directory on startup, too, using
6940  the 
6941 \begin_inset Flex Code
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 -userdir
6946 \end_layout
6947
6948 \end_inset
6949
6950  option.
6951 \end_layout
6952
6953 \end_inset
6954
6955
6956 \end_layout
6957
6958 \begin_layout LyX-Code
6959 cp report.layout ~/.lyx/layouts/myclass.layout
6960 \end_layout
6961
6962 \begin_layout Standard
6963 Then edit 
6964 \begin_inset Flex Code
6965 status collapsed
6966
6967 \begin_layout Plain Layout
6968 myclass.layout
6969 \end_layout
6970
6971 \end_inset
6972
6973  and change the line: 
6974 \end_layout
6975
6976 \begin_layout LyX-Code
6977
6978 \backslash
6979 DeclareLaTeXClass{report}
6980 \end_layout
6981
6982 \begin_layout Standard
6983 to read
6984 \end_layout
6985
6986 \begin_layout LyX-Code
6987
6988 \backslash
6989 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6990 \end_layout
6991
6992 \begin_layout Standard
6993 Then add:
6994 \end_layout
6995
6996 \begin_layout LyX-Code
6997 Preamble 
6998 \begin_inset Newline newline
6999 \end_inset
7000
7001     
7002 \backslash
7003 usepackage{myclass}
7004 \begin_inset Newline newline
7005 \end_inset
7006
7007 EndPreamble
7008 \end_layout
7009
7010 \begin_layout Standard
7011 near the top of the file.
7012 \end_layout
7013
7014 \begin_layout Standard
7015 Start \SpecialChar LyX
7016  and select 
7017 \begin_inset Flex Noun
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021 Tools\SpecialChar menuseparator
7022 Reconfigure
7023 \end_layout
7024
7025 \end_inset
7026
7027 .
7028  Then restart \SpecialChar LyX
7029  and try creating a new document.
7030  You should see "
7031 \begin_inset Flex Noun
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 report (myclass)
7036 \end_layout
7037
7038 \end_inset
7039
7040 " as a document class option in the 
7041 \begin_inset Flex Noun
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 Document\SpecialChar menuseparator
7046 Settings
7047 \end_layout
7048
7049 \end_inset
7050
7051  dialog.
7052  It is likely that some of the sectioning commands and such in your new
7053  class will work differently from how they worked in the base class—
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 report
7059 \end_layout
7060
7061 \end_inset
7062
7063  in this example—so you can fiddle around with the settings for the different
7064  sections if you wish.
7065  The layout information for sections is contained in 
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 stdsections.inc
7071 \end_layout
7072
7073 \end_inset
7074
7075 , but you do not need to copy and change this file.
7076  Instead, you can simply add your changes to your layout file, after the
7077  line 
7078 \begin_inset Flex Code
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 Input stdclass.inc
7083 \end_layout
7084
7085 \end_inset
7086
7087 , which itself includes 
7088 \begin_inset Flex Code
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 stdsections.inc
7093 \end_layout
7094
7095 \end_inset
7096
7097 .
7098  For example, you might add these lines:
7099 \end_layout
7100
7101 \begin_layout LyX-Code
7102 Style Chapter
7103 \end_layout
7104
7105 \begin_layout LyX-Code
7106     Font
7107 \end_layout
7108
7109 \begin_layout LyX-Code
7110         Family Sans
7111 \end_layout
7112
7113 \begin_layout LyX-Code
7114     EndFont
7115 \end_layout
7116
7117 \begin_layout LyX-Code
7118 End
7119 \end_layout
7120
7121 \begin_layout Standard
7122 to change the font for chapter headings to sans-serif.
7123  This will override (or, in this case, add to) the existing declaration
7124  for the Chapter style.
7125  
7126 \end_layout
7127
7128 \begin_layout Standard
7129 Your new package may also provide commands or environments not present in
7130  the base class.
7131  In this case, you will want to add these to the layout file.
7132  See 
7133 \begin_inset CommandInset ref
7134 LatexCommand ref
7135 reference "sec:TextClass"
7136
7137 \end_inset
7138
7139  for information on how to do so.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 If 
7144 \begin_inset Flex Noun
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 myclass.sty
7149 \end_layout
7150
7151 \end_inset
7152
7153  can be used with several different document classes, and even if it cannot,
7154  you might find it easiest just to write a module that you can load with
7155  the base class.
7156  The simplest possible such module would be:
7157 \end_layout
7158
7159 \begin_layout LyX-Code
7160 #
7161 \backslash
7162 DeclareLyXModule{My Package} 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166 #DescriptionBegin 
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170 #Support for mypkg.sty.
7171 \end_layout
7172
7173 \begin_layout LyX-Code
7174 #DescriptionEnd
7175 \begin_inset Newline newline
7176 \end_inset
7177
7178
7179 \end_layout
7180
7181 \begin_layout LyX-Code
7182 Format 60
7183 \begin_inset Newline newline
7184 \end_inset
7185
7186
7187 \end_layout
7188
7189 \begin_layout LyX-Code
7190 Preamble
7191 \begin_inset Newline newline
7192 \end_inset
7193
7194     
7195 \backslash
7196 usepackage{mypkg}
7197 \begin_inset Newline newline
7198 \end_inset
7199
7200 EndPreamble
7201 \end_layout
7202
7203 \begin_layout Standard
7204 A more complex module might modify the behavior of some existing constructs
7205  or define some new ones.
7206  Again, see 
7207 \begin_inset CommandInset ref
7208 LatexCommand ref
7209 reference "sec:TextClass"
7210
7211 \end_inset
7212
7213  for discussion.
7214 \end_layout
7215
7216 \begin_layout Subsection
7217 Layout for 
7218 \begin_inset Flex Noun
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 .cls
7223 \end_layout
7224
7225 \end_inset
7226
7227  files
7228 \end_layout
7229
7230 \begin_layout Standard
7231 There are two possibilities here.
7232  One is that the class file is itself based upon an existing document class.
7233  For example, many thesis classes are based upon 
7234 \begin_inset Flex Noun
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 book.cls
7239 \end_layout
7240
7241 \end_inset
7242
7243 .
7244  To see whether yours is, look for a line like
7245 \end_layout
7246
7247 \begin_layout LyX-Code
7248
7249 \backslash
7250 LoadClass{book}
7251 \end_layout
7252
7253 \begin_layout Standard
7254 in the file.
7255  If so, then you may proceed largely as in the previous section, though
7256  the 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 Declare\SpecialChar LaTeX
7262 Class
7263 \end_layout
7264
7265 \end_inset
7266
7267  line will be different.
7268  If your new class is 
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 thesis
7274 \end_layout
7275
7276 \end_inset
7277
7278  and it is based upon 
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 book
7284 \end_layout
7285
7286 \end_inset
7287
7288 , then the line should read:
7289 \begin_inset Foot
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 And it will be easiest if you save the file to 
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 thesis.layout
7299 \end_layout
7300
7301 \end_inset
7302
7303 : \SpecialChar LyX
7304  assumes that the document class has the same name as the layout file.
7305  
7306 \end_layout
7307
7308 \end_inset
7309
7310
7311 \end_layout
7312
7313 \begin_layout LyX-Code
7314
7315 \backslash
7316 DeclareLaTeXClass[thesis,book]{thesis}
7317 \end_layout
7318
7319 \begin_layout Standard
7320 If, on the other hand, the new class is not based upon an existing class,
7321  you will probably have to 
7322 \begin_inset Quotes eld
7323 \end_inset
7324
7325 roll your own
7326 \begin_inset Quotes erd
7327 \end_inset
7328
7329  layout.
7330  We strongly suggest copying an existing layout file which uses a similar
7331  \SpecialChar LaTeX
7332  class and then modifying it, if you can do so.
7333  At least use an existing file as a starting point so you can find out what
7334  items you need to worry about.
7335  Again, the specifics are covered below.
7336 \end_layout
7337
7338 \begin_layout Subsection
7339 Creating templates
7340 \begin_inset CommandInset label
7341 LatexCommand label
7342 name "subsec:Creating-Templates"
7343
7344 \end_inset
7345
7346
7347 \end_layout
7348
7349 \begin_layout Standard
7350 Once you have written a layout file for a new document class, you might
7351  want to consider writing a 
7352 \emph on
7353 template
7354 \emph default
7355  for it, too.
7356  A template acts as a kind of tutorial for your layout, showing how it might
7357  be used, though containing dummy content.
7358  You can of course look at the various templates included with \SpecialChar LyX
7359  for ideas.
7360 \end_layout
7361
7362 \begin_layout Standard
7363 Templates are created just like usual documents: using \SpecialChar LyX
7364 .
7365  The only difference is that usual documents contain all possible settings,
7366  including the font scheme and the paper size.
7367  Usually a user doesn't want a template to overwrite his preferred settings
7368  for such parameters.
7369  For that reason, the designer of a template should remove the corresponding
7370  commands like 
7371 \begin_inset Flex Code
7372 status collapsed
7373
7374 \begin_layout Plain Layout
7375
7376 \backslash
7377 font_roman
7378 \end_layout
7379
7380 \end_inset
7381
7382  or 
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387
7388 \backslash
7389 papersize
7390 \end_layout
7391
7392 \end_inset
7393
7394  from the template \SpecialChar LyX
7395  file.
7396  This can be done with any simple text-editor, for example 
7397 \begin_inset Flex Code
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 vi
7402 \end_layout
7403
7404 \end_inset
7405
7406  or 
7407 \begin_inset Flex Code
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 notepad
7412 \end_layout
7413
7414 \end_inset
7415
7416 .
7417 \end_layout
7418
7419 \begin_layout Standard
7420 Put the edited template files you create in 
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 UserDir/templates/
7426 \end_layout
7427
7428 \end_inset
7429
7430 , copy the ones you use from the global template directory in 
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 LyXDir/templates/
7436 \end_layout
7437
7438 \end_inset
7439
7440  to the same place, and redefine the template path in the 
7441 \begin_inset Flex Noun
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 Tools\SpecialChar menuseparator
7446 Preferences\SpecialChar menuseparator
7447 Paths
7448 \end_layout
7449
7450 \end_inset
7451
7452  dialog.
7453 \end_layout
7454
7455 \begin_layout Standard
7456 Note, by the way, that there is a template which has a particular meaning:
7457  
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 defaults.lyx
7463 \end_layout
7464
7465 \end_inset
7466
7467 .
7468  This template is loaded every time you create a new document with 
7469 \begin_inset Flex Noun
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 File\SpecialChar menuseparator
7474 New
7475 \end_layout
7476
7477 \end_inset
7478
7479  in order to provide useful defaults.
7480  To create this template from inside \SpecialChar LyX
7481 , all you have to do is to open a document
7482  with the correct settings, and use the 
7483 \begin_inset Flex Noun
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 Save as Document Defaults
7488 \end_layout
7489
7490 \end_inset
7491
7492  button.
7493 \end_layout
7494
7495 \begin_layout Subsection
7496 Upgrading old layout files
7497 \end_layout
7498
7499 \begin_layout Standard
7500 The format of layout files changes with each \SpecialChar LyX
7501  release, so old layout files
7502  need to be converted to the new format.
7503  If \SpecialChar LyX
7504  reads a layout file in an older format, it automatically calls the
7505  script 
7506 \begin_inset Flex Code
7507 status collapsed
7508
7509 \begin_layout Plain Layout
7510 layout2layout.py
7511 \end_layout
7512
7513 \end_inset
7514
7515  to convert it to a temporary file in current format.
7516  The original file is left untouched.
7517  If you use the layout file often, then, you may want to convert it permanently,
7518  so that \SpecialChar LyX
7519  does not have to do so itself every time.
7520  To do this, you can call the converter manually:
7521 \end_layout
7522
7523 \begin_layout Enumerate
7524 rename the file 
7525 \begin_inset Flex Code
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 myclass.layout
7530 \end_layout
7531
7532 \end_inset
7533
7534  to 
7535 \begin_inset Flex Code
7536 status collapsed
7537
7538 \begin_layout Plain Layout
7539 myclass.old
7540 \end_layout
7541
7542 \end_inset
7543
7544
7545 \end_layout
7546
7547 \begin_layout Enumerate
7548 Call the command
7549 \begin_inset Newline newline
7550 \end_inset
7551
7552
7553 \begin_inset Flex Code
7554 status collapsed
7555
7556 \begin_layout Plain Layout
7557 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7558 \end_layout
7559
7560 \end_inset
7561
7562
7563 \begin_inset Newline newline
7564 \end_inset
7565
7566 where 
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571 LyXDir
7572 \end_layout
7573
7574 \end_inset
7575
7576  is the name of your \SpecialChar LyX
7577  system directory.
7578 \end_layout
7579
7580 \begin_layout Standard
7581 Note that manual conversion does not affect included files, so these will
7582  have to be converted separately.
7583 \change_inserted -712698321 1483873435
7584
7585 \end_layout
7586
7587 \begin_layout Subsection
7588
7589 \change_inserted -712698321 1483875083
7590 \begin_inset CommandInset label
7591 LatexCommand label
7592 name "subsec:Cite-Engine-Files"
7593
7594 \end_inset
7595
7596 Cite engine files
7597 \end_layout
7598
7599 \begin_layout Standard
7600
7601 \change_inserted -712698321 1483874213
7602 A specific form of layout files are the so-called 
7603 \begin_inset Flex Code
7604 status collapsed
7605
7606 \begin_layout Plain Layout
7607
7608 \change_inserted -712698321 1483873546
7609 *.citeengine
7610 \end_layout
7611
7612 \end_inset
7613
7614  files that are located in the 
7615 \begin_inset Flex Code
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619
7620 \change_inserted -712698321 1483873546
7621 citeengines/
7622 \end_layout
7623
7624 \end_inset
7625
7626  sub-directory.
7627  Their purpose is to define the specifics of \SpecialChar LaTeX
7628  packages aimed at bibliography
7629  generation, such as 
7630 \family sans
7631 natbib
7632 \family default
7633 ,
7634 \family sans
7635  jurabib
7636 \family default
7637  or 
7638 \family sans
7639 biblatex
7640 \family default
7641 , but also the way how normal Bib\SpecialChar TeX
7642  citations (without additional packages)
7643  are handled in \SpecialChar LyX
7644  is defined in such a file.
7645  
7646 \end_layout
7647
7648 \begin_layout Standard
7649
7650 \change_inserted -712698321 1483874969
7651 More specifically, it is defined which packages \SpecialChar LyX
7652  needs to load, which citation
7653  commands are available, how these are to be displayed in \SpecialChar LyX
7654  (in the workarea,
7655  the dialogs, the context menus) as well as in the XHTML and plain text
7656  output.
7657  Furthermore, the files specify available style variants (author-year, numerical
7658 , etc.) and their specifics.
7659  The cite engine files are also used to generate the options that are available
7660  in 
7661 \family sans
7662 Document\SpecialChar menuseparator
7663 Settings\SpecialChar ldots
7664 \SpecialChar menuseparator
7665 Bibliography\SpecialChar menuseparator
7666 Style engine
7667 \family default
7668 .
7669 \end_layout
7670
7671 \begin_layout Standard
7672
7673 \change_inserted -712698321 1483875180
7674 Even though a cite engine file is essentially a normal layout file that
7675  could theoretically include any layout information, it usually primarily
7676  includes some specific parameters such as 
7677 \begin_inset Flex Code
7678 status collapsed
7679
7680 \begin_layout Plain Layout
7681
7682 \change_inserted -712698321 1483874688
7683 MaxCiteNames
7684 \change_unchanged
7685
7686 \end_layout
7687
7688 \end_inset
7689
7690
7691 \begin_inset Flex Code
7692 status collapsed
7693
7694 \begin_layout Plain Layout
7695
7696 \change_inserted -712698321 1483875180
7697 CiteFramework
7698 \change_unchanged
7699
7700 \end_layout
7701
7702 \end_inset
7703
7704
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709
7710 \change_inserted -712698321 1483874477
7711 CiteEngine
7712 \change_unchanged
7713
7714 \end_layout
7715
7716 \end_inset
7717
7718  and 
7719 \begin_inset Flex Code
7720 status collapsed
7721
7722 \begin_layout Plain Layout
7723
7724 \change_inserted -712698321 1483874482
7725 CiteFormat
7726 \change_unchanged
7727
7728 \end_layout
7729
7730 \end_inset
7731
7732  blocks.
7733  The syntax of the latter two is described in 
7734 \begin_inset CommandInset ref
7735 LatexCommand ref
7736 reference "subsec:Citation-engine-description"
7737 plural "false"
7738 caps "false"
7739 noprefix "false"
7740
7741 \end_inset
7742
7743  and 
7744 \begin_inset CommandInset ref
7745 LatexCommand ref
7746 reference "subsec:Citation-format-description"
7747
7748 \end_inset
7749
7750 , as well as in the files themselves.
7751 \change_unchanged
7752
7753 \end_layout
7754
7755 \begin_layout Section
7756 \begin_inset CommandInset label
7757 LatexCommand label
7758 name "sec:TextClass"
7759
7760 \end_inset
7761
7762 The layout file format
7763 \end_layout
7764
7765 \begin_layout Standard
7766 The following sections describe how layout files are structured and written.
7767  Our advice is to go slowly, save and test often.
7768  It is really not that hard, except that the multitude of options can become
7769  overwhelming, especially if you try to check out too many at once.
7770  It becomes easier if you use existing layouts of \SpecialChar LyX
7771  as examples/reference
7772  or if you modify an existing layout to your needs.
7773 \end_layout
7774
7775 \begin_layout Standard
7776 Note that all the tags used in layout files are case-insensitive.
7777  This means that 
7778 \begin_inset Flex Code
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782 Style
7783 \end_layout
7784
7785 \end_inset
7786
7787
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792 style
7793 \end_layout
7794
7795 \end_inset
7796
7797  and 
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 StYlE
7803 \end_layout
7804
7805 \end_inset
7806
7807  are really the same tag.
7808  The possible arguments are printed in brackets after the tag's name.
7809  The default argument is typeset 
7810 \begin_inset Flex Code
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814
7815 \emph on
7816 emphasized
7817 \end_layout
7818
7819 \end_inset
7820
7821 .
7822  If the argument has a data type like 
7823 \begin_inset Quotes eld
7824 \end_inset
7825
7826 string
7827 \begin_inset Quotes erd
7828 \end_inset
7829
7830  or 
7831 \begin_inset Quotes eld
7832 \end_inset
7833
7834 float
7835 \begin_inset Quotes erd
7836 \end_inset
7837
7838 , the default is shown like this: 
7839 \begin_inset Flex Code
7840 status collapsed
7841
7842 \begin_layout Plain Layout
7843 float=
7844 \emph on
7845 default
7846 \end_layout
7847
7848 \end_inset
7849
7850 .
7851 \end_layout
7852
7853 \begin_layout Subsection
7854 The document class declaration and classification
7855 \end_layout
7856
7857 \begin_layout Standard
7858 Lines in a layout file which begin with 
7859 \begin_inset Flex Code
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 #
7864 \end_layout
7865
7866 \end_inset
7867
7868  are comments.
7869  There is one exception to this rule.
7870  All 
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 *.layout
7876 \end_layout
7877
7878 \end_inset
7879
7880  files should begin with lines like:
7881 \end_layout
7882
7883 \begin_layout LyX-Code
7884
7885 \size small
7886 #% Do not delete the line below; configure depends on this 
7887 \end_layout
7888
7889 \begin_layout LyX-Code
7890
7891 \size small
7892 #  
7893 \backslash
7894 DeclareLaTeXClass{Article (Standard Class)}
7895 \end_layout
7896
7897 \begin_layout LyX-Code
7898
7899 \size small
7900 #  
7901 \backslash
7902 DeclareCategory{Articles}
7903 \end_layout
7904
7905 \begin_layout Standard
7906 The second and third lines are used when you (re)configure \SpecialChar LyX
7907 .
7908  The layout file is read by the \SpecialChar LaTeX
7909  script 
7910 \begin_inset Flex Code
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914 chkconfig.ltx
7915 \end_layout
7916
7917 \end_inset
7918
7919 , in a special mode where 
7920 \begin_inset Flex Code
7921 status collapsed
7922
7923 \begin_layout Plain Layout
7924 #
7925 \end_layout
7926
7927 \end_inset
7928
7929  is ignored.
7930  The first line is just a \SpecialChar LaTeX
7931  comment, the second one contains the mandatory
7932  declaration of the text class and the third line contains the optional
7933  classification of the class.
7934  If these lines appear in a file named 
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 article.layout
7940 \end_layout
7941
7942 \end_inset
7943
7944 , then they define a text class of name 
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 article
7950 \end_layout
7951
7952 \end_inset
7953
7954  (the name of the layout file) which uses the \SpecialChar LaTeX
7955  document class 
7956 \begin_inset Flex Code
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 article.cls
7961 \end_layout
7962
7963 \end_inset
7964
7965  (the default is to use the same name as the layout).
7966  The string 
7967 \begin_inset Quotes eld
7968 \end_inset
7969
7970 Article (Standard Class)
7971 \begin_inset Quotes erd
7972 \end_inset
7973
7974  that appears above is used as a description of the text class in the 
7975 \begin_inset Flex Noun
7976 status collapsed
7977
7978 \begin_layout Plain Layout
7979 Document\SpecialChar menuseparator
7980 Settings
7981 \end_layout
7982
7983 \end_inset
7984
7985  dialog.
7986  The category (
7987 \begin_inset Quotes eld
7988 \end_inset
7989
7990 Articles
7991 \begin_inset Quotes erd
7992 \end_inset
7993
7994  in the example) is also used in the 
7995 \begin_inset Flex Noun
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 Document\SpecialChar menuseparator
8000 Settings
8001 \end_layout
8002
8003 \end_inset
8004
8005  dialog: the text classes are grouped by these categories (which are usually
8006  genres, so typical categories are 
8007 \begin_inset Quotes eld
8008 \end_inset
8009
8010 Articles
8011 \begin_inset Quotes erd
8012 \end_inset
8013
8014
8015 \begin_inset Quotes eld
8016 \end_inset
8017
8018 Books
8019 \begin_inset Quotes erd
8020 \end_inset
8021
8022
8023 \begin_inset Quotes eld
8024 \end_inset
8025
8026 Reports
8027 \begin_inset Quotes erd
8028 \end_inset
8029
8030
8031 \begin_inset Quotes eld
8032 \end_inset
8033
8034 Letters
8035 \begin_inset Quotes erd
8036 \end_inset
8037
8038
8039 \begin_inset Quotes eld
8040 \end_inset
8041
8042 Presentations
8043 \begin_inset Quotes erd
8044 \end_inset
8045
8046
8047 \begin_inset Quotes eld
8048 \end_inset
8049
8050 Curricula Vitae
8051 \begin_inset Quotes erd
8052 \end_inset
8053
8054  etc.).
8055  If no category has been declared, the class will be put in the 
8056 \begin_inset Quotes eld
8057 \end_inset
8058
8059 Uncategorized
8060 \begin_inset Quotes erd
8061 \end_inset
8062
8063  group.
8064 \end_layout
8065
8066 \begin_layout Standard
8067 Let's assume that you wrote your own text class that uses the 
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 article.cls
8073 \end_layout
8074
8075 \end_inset
8076
8077  document class, but where you changed the appearance of the section headings.
8078  If you put it in a file 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 myarticle.layout
8084 \end_layout
8085
8086 \end_inset
8087
8088 , the header of this file should be:
8089 \end_layout
8090
8091 \begin_layout LyX-Code
8092
8093 \size small
8094 #% Do not delete the line below; configure depends on this 
8095 \end_layout
8096
8097 \begin_layout LyX-Code
8098
8099 \size small
8100 #  
8101 \backslash
8102 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8103 \end_layout
8104
8105 \begin_layout LyX-Code
8106
8107 \size small
8108 #  
8109 \backslash
8110 DeclareCategory{Articles}
8111 \end_layout
8112
8113 \begin_layout Standard
8114 This declares a text class 
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 myarticle
8120 \end_layout
8121
8122 \end_inset
8123
8124 , associated with the \SpecialChar LaTeX
8125  document class 
8126 \begin_inset Flex Code
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 article.cls
8131 \end_layout
8132
8133 \end_inset
8134
8135  and described as 
8136 \begin_inset Quotes eld
8137 \end_inset
8138
8139 Article (with My Own Headings)
8140 \begin_inset Quotes erd
8141 \end_inset
8142
8143 .
8144  If your text class depends on several packages, you can declare it as:
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,foo.sty]{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 indicates that your text class uses the 
8171 \begin_inset Flex Code
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 foo.sty
8176 \end_layout
8177
8178 \end_inset
8179
8180  package.
8181  Finally, it is also possible to declare classes for DocBook code.
8182  Typical declarations will look like:
8183 \end_layout
8184
8185 \begin_layout LyX-Code
8186
8187 \size small
8188 #% Do not delete the line below; configure depends on this 
8189 \end_layout
8190
8191 \begin_layout LyX-Code
8192
8193 \size small
8194
8195 \backslash
8196 DeclareDocBookClass[article]{SGML (DocBook Article)}
8197 \end_layout
8198
8199 \begin_layout LyX-Code
8200
8201 \size small
8202
8203 \backslash
8204 DeclareCategory{Articles (DocBook)}
8205 \end_layout
8206
8207 \begin_layout Standard
8208 Note that these declarations can also be given an optional parameter declaring
8209  the name of the document class (but not a list).
8210 \end_layout
8211
8212 \begin_layout Standard
8213 So, to be as explicit as possible, the form of the layout declaration is:
8214 \end_layout
8215
8216 \begin_layout LyX-Code
8217
8218 \size small
8219 #  
8220 \backslash
8221 DeclareLaTeXClass[class,package.sty]{layout description}
8222 \end_layout
8223
8224 \begin_layout LyX-Code
8225
8226 \size small
8227 #  
8228 \backslash
8229 DeclareCategory{category}
8230 \end_layout
8231
8232 \begin_layout Standard
8233 The class need only be specified if the name of the \SpecialChar LaTeX
8234  class file and the
8235  name of the layout file are different or if there are packages to load.
8236  If the name of the class file is not specified, then \SpecialChar LyX
8237  will simply assume
8238  that it is the same as the name of the layout file.
8239 \end_layout
8240
8241 \begin_layout Standard
8242 When the text class has been modified to your taste, all you have to do
8243  is to copy it either to 
8244 \begin_inset Flex Code
8245 status collapsed
8246
8247 \begin_layout Plain Layout
8248 LyXDir/layouts/
8249 \end_layout
8250
8251 \end_inset
8252
8253  or to 
8254 \begin_inset Flex Code
8255 status collapsed
8256
8257 \begin_layout Plain Layout
8258 UserDir/layouts
8259 \end_layout
8260
8261 \end_inset
8262
8263 , run 
8264 \begin_inset Flex Noun
8265 status collapsed
8266
8267 \begin_layout Plain Layout
8268 Tools\SpecialChar menuseparator
8269 Reconfigure
8270 \end_layout
8271
8272 \end_inset
8273
8274 , exit \SpecialChar LyX
8275  and restart.
8276  Then your new text class should be available along with the others.
8277 \end_layout
8278
8279 \begin_layout Standard
8280 Once the layout file is installed, you can edit it and see your changes
8281  without having to reconfigure or to restart \SpecialChar LyX
8282 .
8283  
8284 \begin_inset Foot
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 In versions of \SpecialChar LyX
8289  prior to 1.6, this was not true.
8290  As a result, editing layout files was very time consuming, since you had
8291  constantly to restart \SpecialChar LyX
8292  to see changes.
8293 \end_layout
8294
8295 \end_inset
8296
8297  You can force a reload of the current layout by using the \SpecialChar LyX
8298  function 
8299 \begin_inset Flex Noun
8300 status collapsed
8301
8302 \begin_layout Plain Layout
8303 layout-reload
8304 \end_layout
8305
8306 \end_inset
8307
8308 .
8309  There is no default binding for this function—though, of course, you can
8310  bind it to a key yourself.
8311  But you will normally use this function simply by entering it in the mini-buffe
8312 r.
8313  
8314 \end_layout
8315
8316 \begin_layout Standard
8317
8318 \emph on
8319 Warning
8320 \emph default
8321
8322 \begin_inset Flex Noun
8323 status collapsed
8324
8325 \begin_layout Plain Layout
8326 layout-reload
8327 \end_layout
8328
8329 \end_inset
8330
8331  is very much an `advanced feature'.
8332  It is 
8333 \emph on
8334 strongly
8335 \emph default
8336  recommended that you save your work before using this function.
8337  In fact, it is 
8338 \emph on
8339 strongly
8340 \emph default
8341  recommended that you not attempt to edit layout information while simultaneousl
8342 y working on a document that you care about.
8343  Use a test document.
8344  Syntax errors and the like in your layout file could cause peculiar behavior.
8345  In particular, such errors could cause \SpecialChar LyX
8346  to regard the current layout as
8347  invalid and to attempt to switch to some other layout.
8348 \begin_inset Foot
8349 status collapsed
8350
8351 \begin_layout Plain Layout
8352 Really bad syntax errors may even caused \SpecialChar LyX
8353  to exit.
8354  This is because certain sorts of errors may make \SpecialChar LyX
8355  unable to read 
8356 \emph on
8357 any
8358 \emph default
8359  layout information.
8360  Please be careful.
8361 \end_layout
8362
8363 \end_inset
8364
8365  The \SpecialChar LyX
8366  team strives to keep \SpecialChar LyX
8367  stable in such situations, but safe is better
8368  than sorry.
8369 \begin_inset Foot
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373 While we're giving advice: make regular backups.
8374  And be nice to your mother.
8375 \end_layout
8376
8377 \end_inset
8378
8379
8380 \end_layout
8381
8382 \begin_layout Subsection
8383 The Module declaration
8384 \end_layout
8385
8386 \begin_layout Standard
8387 A module must begin with a line like the following:
8388 \end_layout
8389
8390 \begin_layout LyX-Code
8391 #
8392 \backslash
8393 DeclareLyXModule[endnotes.sty]{Endnotes} 
8394 \end_layout
8395
8396 \begin_layout Standard
8397 The mandatory argument, in curly brackets, is the name of the module, as
8398  it should appear in 
8399 \begin_inset Flex Noun
8400 status collapsed
8401
8402 \begin_layout Plain Layout
8403 Document\SpecialChar menuseparator
8404 Settings\SpecialChar menuseparator
8405 Modules
8406 \end_layout
8407
8408 \end_inset
8409
8410 .
8411  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8412  packages
8413  on which the module depends.
8414  It is also possible to use the form 
8415 \begin_inset Flex Noun
8416 status collapsed
8417
8418 \begin_layout Plain Layout
8419 from->to
8420 \end_layout
8421
8422 \end_inset
8423
8424  as an optional argument, which declares that the module can only be used
8425  when there exists a conversion chain between the formats `
8426 \begin_inset Flex Code
8427 status collapsed
8428
8429 \begin_layout Plain Layout
8430 from
8431 \end_layout
8432
8433 \end_inset
8434
8435 ' and `
8436 \begin_inset Flex Code
8437 status collapsed
8438
8439 \begin_layout Plain Layout
8440 to
8441 \end_layout
8442
8443 \end_inset
8444
8445 '.
8446 \end_layout
8447
8448 \begin_layout Standard
8449 The module declaration should then be followed by lines like the following
8450 \begin_inset Foot
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454 Preferably in English if the module should be published with \SpecialChar LyX
8455 .
8456  This description will appear in the list of messages to be translated and
8457  will be thus translated with the next interface update.
8458 \end_layout
8459
8460 \end_inset
8461
8462 :
8463 \end_layout
8464
8465 \begin_layout LyX-Code
8466 #DescriptionBegin 
8467 \end_layout
8468
8469 \begin_layout LyX-Code
8470 #Adds an endnote command, in addition to footnotes.
8471  
8472 \end_layout
8473
8474 \begin_layout LyX-Code
8475 #You will need to add  
8476 \backslash
8477 theendnotes in TeX code where you 
8478 \end_layout
8479
8480 \begin_layout LyX-Code
8481 #want the endnotes to appear.
8482  
8483 \end_layout
8484
8485 \begin_layout LyX-Code
8486 #DescriptionEnd 
8487 \end_layout
8488
8489 \begin_layout LyX-Code
8490 #Requires: somemodule | othermodule
8491 \end_layout
8492
8493 \begin_layout LyX-Code
8494 #Excludes: badmodule
8495 \end_layout
8496
8497 \begin_layout Standard
8498 The description is used in 
8499 \begin_inset Flex Noun
8500 status collapsed
8501
8502 \begin_layout Plain Layout
8503 Document\SpecialChar menuseparator
8504 Settings\SpecialChar menuseparator
8505 Modules
8506 \end_layout
8507
8508 \end_inset
8509
8510  to provide the user with information about what the module does.
8511  The 
8512 \begin_inset Flex Code
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 Requires
8517 \end_layout
8518
8519 \end_inset
8520
8521  line is used to identify other modules with which this one must be used;
8522  the 
8523 \begin_inset Flex Code
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 Excludes
8528 \end_layout
8529
8530 \end_inset
8531
8532  line is used to identify modules with which this one may not be used.
8533  Both are optional, and, as shown, multiple modules should be separated
8534  with the pipe symbol: |.
8535  Note that the required modules are treated disjunctively: 
8536 \emph on
8537 at least one
8538 \emph default
8539  of the required modules must be used.
8540  Similarly, 
8541 \emph on
8542 no
8543 \emph default
8544  excluded module may be used.
8545  Note that modules are identified here by their filenames without the 
8546 \begin_inset Flex Code
8547 status collapsed
8548
8549 \begin_layout Plain Layout
8550 .module
8551 \end_layout
8552
8553 \end_inset
8554
8555  extension.
8556  So 
8557 \begin_inset Flex Code
8558 status collapsed
8559
8560 \begin_layout Plain Layout
8561 somemodule
8562 \end_layout
8563
8564 \end_inset
8565
8566  is really 
8567 \begin_inset Flex Code
8568 status collapsed
8569
8570 \begin_layout Plain Layout
8571 somemodule.module
8572 \end_layout
8573
8574 \end_inset
8575
8576 .
8577 \change_inserted -712698321 1483873000
8578
8579 \end_layout
8580
8581 \begin_layout Subsection
8582
8583 \change_inserted -712698321 1483873010
8584 The CiteEngine file declaration
8585 \end_layout
8586
8587 \begin_layout Standard
8588
8589 \change_inserted -712698321 1483873022
8590 A cite engine file must begin with a line like the following:
8591 \end_layout
8592
8593 \begin_layout LyX-Code
8594
8595 \change_inserted -712698321 1483873047
8596 #
8597 \backslash
8598 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8599 \end_layout
8600
8601 \begin_layout Standard
8602
8603 \change_inserted -712698321 1483873077
8604 The mandatory argument, in curly brackets, is the name of the module, as
8605  it should appear in 
8606 \begin_inset Flex Noun
8607 status collapsed
8608
8609 \begin_layout Plain Layout
8610
8611 \change_inserted -712698321 1483873068
8612 Document\SpecialChar menuseparator
8613 Settings\SpecialChar menuseparator
8614 Bibliography
8615 \end_layout
8616
8617 \end_inset
8618
8619 .
8620  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8621  packages
8622  on which the cite engine depends.
8623 \end_layout
8624
8625 \begin_layout Standard
8626
8627 \change_inserted -712698321 1483873102
8628 The cite engine declaration should then be followed by lines like the following
8629 \begin_inset Foot
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633
8634 \change_inserted -712698321 1483873000
8635 Preferably in English if the module should be published with \SpecialChar LyX
8636 .
8637  This description will appear in the list of messages to be translated and
8638  will be thus translated with the next interface update.
8639 \end_layout
8640
8641 \end_inset
8642
8643 :
8644 \end_layout
8645
8646 \begin_layout LyX-Code
8647
8648 \change_inserted -712698321 1483873128
8649 # DescriptionBegin
8650 \end_layout
8651
8652 \begin_layout LyX-Code
8653
8654 \change_inserted -712698321 1483873140
8655 #   Biblatex supports many author-year and numerical styles.
8656 \end_layout
8657
8658 \begin_layout LyX-Code
8659
8660 \change_inserted -712698321 1483873152
8661 #   It is mainly aimed at the Humanities.
8662  It is highly
8663 \end_layout
8664
8665 \begin_layout LyX-Code
8666
8667 \change_inserted -712698321 1483873160
8668 #   customizable, fully localized and provides many features
8669 \end_layout
8670
8671 \begin_layout LyX-Code
8672
8673 \change_inserted -712698321 1483873170
8674 #   that are not possible with BibTeX.
8675  The use of 'biber' as
8676 \end_layout
8677
8678 \begin_layout LyX-Code
8679
8680 \change_inserted -712698321 1483873174
8681 #   bibliography processor is advised.
8682 \end_layout
8683
8684 \begin_layout LyX-Code
8685
8686 \change_inserted -712698321 1483873224
8687 # DescriptionEnd
8688 \end_layout
8689
8690 \begin_layout Standard
8691
8692 \change_inserted -712698321 1483873207
8693 The description is used in 
8694 \begin_inset Flex Noun
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698
8699 \change_inserted -712698321 1483873194
8700 Document\SpecialChar menuseparator
8701 Settings\SpecialChar menuseparator
8702 Bibliography
8703 \end_layout
8704
8705 \end_inset
8706
8707  to provide the user with information about the cite engine.
8708 \change_unchanged
8709
8710 \end_layout
8711
8712 \begin_layout Subsection
8713 Format number
8714 \end_layout
8715
8716 \begin_layout Standard
8717 The first non-comment line of any layout file, included file, or module
8718  
8719 \emph on
8720 must
8721 \emph default
8722  contain the file format number:
8723 \end_layout
8724
8725 \begin_layout Description
8726 \begin_inset Flex Code
8727 status collapsed
8728
8729 \begin_layout Plain Layout
8730 Format
8731 \end_layout
8732
8733 \end_inset
8734
8735  [
8736 \begin_inset Flex Code
8737 status collapsed
8738
8739 \begin_layout Plain Layout
8740 int
8741 \end_layout
8742
8743 \end_inset
8744
8745 ] The format number of the layout file.
8746 \end_layout
8747
8748 \begin_layout Standard
8749 This tag was introduced with \SpecialChar LyX
8750
8751 \begin_inset space ~
8752 \end_inset
8753
8754 1.4.0.
8755  Layout files from older \SpecialChar LyX
8756  versions do not have an explicit file format and
8757  are considered to have 
8758 \begin_inset Flex Code
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 Format
8763 \begin_inset space ~
8764 \end_inset
8765
8766 1
8767 \end_layout
8768
8769 \end_inset
8770
8771 .
8772  The format for the present version of \SpecialChar LyX
8773  is format 60.
8774  But each version of \SpecialChar LyX
8775  is capable of reading earlier versions' layout files,
8776  just as they are capable of reading files produced by earlier versions
8777  of \SpecialChar LyX
8778 .
8779  There is, however, no provision for converting to earlier formats.
8780 \end_layout
8781
8782 \begin_layout Subsection
8783 \begin_inset CommandInset label
8784 LatexCommand label
8785 name "subsec:General-text-class"
8786
8787 \end_inset
8788
8789 General text class parameters
8790 \end_layout
8791
8792 \begin_layout Standard
8793 These are general parameters that govern the behavior of an entire document
8794  class.
8795  (This does 
8796 \emph on
8797 not
8798 \emph default
8799  mean that they must appear in 
8800 \begin_inset Flex Code
8801 status collapsed
8802
8803 \begin_layout Plain Layout
8804 .layout
8805 \end_layout
8806
8807 \end_inset
8808
8809  files rather than in modules.
8810  A module can contain any layout tag.)
8811 \end_layout
8812
8813 \begin_layout Description
8814 \begin_inset Flex Code
8815 status collapsed
8816
8817 \begin_layout Plain Layout
8818 AddToHTMLPreamble
8819 \end_layout
8820
8821 \end_inset
8822
8823  Adds information that will be output in the 
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 <head>
8829 \end_layout
8830
8831 \end_inset
8832
8833  block when the document is output to XHTML.
8834  Typically, this would be used to output CSS style information, but it can
8835  be used for anything that can appear in 
8836 \begin_inset Flex Code
8837 status collapsed
8838
8839 \begin_layout Plain Layout
8840 <head>
8841 \end_layout
8842
8843 \end_inset
8844
8845 .
8846  Must end with 
8847 \begin_inset Quotes eld
8848 \end_inset
8849
8850
8851 \begin_inset Flex Code
8852 status collapsed
8853
8854 \begin_layout Plain Layout
8855 EndPreamble
8856 \end_layout
8857
8858 \end_inset
8859
8860
8861 \begin_inset Quotes erd
8862 \end_inset
8863
8864 .
8865 \end_layout
8866
8867 \begin_layout Description
8868 \begin_inset Flex Code
8869 status collapsed
8870
8871 \begin_layout Plain Layout
8872 AddToPreamble
8873 \end_layout
8874
8875 \end_inset
8876
8877  Adds information to the document preamble.
8878  Must end with
8879 \begin_inset Newline newline
8880 \end_inset
8881
8882
8883 \begin_inset Quotes eld
8884 \end_inset
8885
8886
8887 \begin_inset Flex Code
8888 status collapsed
8889
8890 \begin_layout Plain Layout
8891 EndPreamble
8892 \end_layout
8893
8894 \end_inset
8895
8896
8897 \begin_inset Quotes erd
8898 \end_inset
8899
8900 .
8901 \change_inserted -712698321 1483872509
8902
8903 \end_layout
8904
8905 \begin_layout Description
8906
8907 \change_inserted -712698321 1483874560
8908 \begin_inset Flex Code
8909 status collapsed
8910
8911 \begin_layout Plain Layout
8912
8913 \change_inserted -712698321 1483872558
8914 CiteEngine <engine>
8915 \end_layout
8916
8917 \end_inset
8918
8919  Defines the possibilities for displaying citation references.
8920  See 
8921 \begin_inset CommandInset ref
8922 LatexCommand ref
8923 reference "subsec:Citation-engine-description"
8924 plural "false"
8925 caps "false"
8926 noprefix "false"
8927
8928 \end_inset
8929
8930  for details.
8931  Must end with 
8932 \begin_inset Quotes eld
8933 \end_inset
8934
8935
8936 \begin_inset Flex Code
8937 status collapsed
8938
8939 \begin_layout Plain Layout
8940
8941 \change_inserted -712698321 1483872548
8942 End
8943 \end_layout
8944
8945 \end_inset
8946
8947
8948 \begin_inset Quotes erd
8949 \end_inset
8950
8951 .
8952  Primarily used in cite engine files (see 
8953 \begin_inset CommandInset ref
8954 LatexCommand ref
8955 reference "subsec:Cite-Engine-Files"
8956 plural "false"
8957 caps "false"
8958 noprefix "false"
8959
8960 \end_inset
8961
8962 ).
8963 \change_unchanged
8964
8965 \end_layout
8966
8967 \begin_layout Description
8968 \begin_inset Flex Code
8969 status collapsed
8970
8971 \begin_layout Plain Layout
8972 CiteFormat
8973 \end_layout
8974
8975 \end_inset
8976
8977  Defines formats for use in the display of bibliographic information.
8978  See 
8979 \begin_inset CommandInset ref
8980 LatexCommand ref
8981 reference "subsec:Citation-format-description"
8982
8983 \end_inset
8984
8985  for details.
8986  Must end with 
8987 \begin_inset Quotes eld
8988 \end_inset
8989
8990
8991 \begin_inset Flex Code
8992 status collapsed
8993
8994 \begin_layout Plain Layout
8995 End
8996 \end_layout
8997
8998 \end_inset
8999
9000
9001 \begin_inset Quotes erd
9002 \end_inset
9003
9004 .
9005
9006 \change_inserted -712698321 1483875199
9007  Primarily used in cite engine files (see 
9008 \begin_inset CommandInset ref
9009 LatexCommand ref
9010 reference "subsec:Cite-Engine-Files"
9011 plural "false"
9012 caps "false"
9013 noprefix "false"
9014
9015 \end_inset
9016
9017 ).
9018 \change_unchanged
9019
9020 \end_layout
9021
9022 \begin_layout Description
9023
9024 \change_inserted -712698321 1483874578
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029
9030 \change_inserted -712698321 1483872820
9031 CiteFramework
9032 \end_layout
9033
9034 \end_inset
9035
9036  [
9037 \begin_inset Flex Code
9038 status collapsed
9039
9040 \begin_layout Plain Layout
9041
9042 \change_inserted -712698321 1483872852
9043
9044 \emph on
9045 bibtex
9046 \change_unchanged
9047
9048 \end_layout
9049
9050 \end_inset
9051
9052 ,
9053 \begin_inset Flex Code
9054 status collapsed
9055
9056 \begin_layout Plain Layout
9057
9058 \change_inserted -712698321 1483872857
9059 biblatex
9060 \change_unchanged
9061
9062 \end_layout
9063
9064 \end_inset
9065
9066 ] Determines whether 
9067 \family sans
9068 Biblatex
9069 \family default
9070  or Bib\SpecialChar TeX
9071  is used to generate a Bibliography.
9072  Primarily used in cite engine files (see 
9073 \begin_inset CommandInset ref
9074 LatexCommand ref
9075 reference "subsec:Cite-Engine-Files"
9076 plural "false"
9077 caps "false"
9078 noprefix "false"
9079
9080 \end_inset
9081
9082 ).
9083 \change_unchanged
9084
9085 \end_layout
9086
9087 \begin_layout Description
9088 \begin_inset Flex Code
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 ClassOptions
9093 \end_layout
9094
9095 \end_inset
9096
9097  Describes various global options supported by the document class.
9098  See 
9099 \begin_inset CommandInset ref
9100 LatexCommand ref
9101 reference "subsec:ClassOptions"
9102
9103 \end_inset
9104
9105  for a description.
9106  Must end with 
9107 \begin_inset Quotes eld
9108 \end_inset
9109
9110
9111 \begin_inset Flex Code
9112 status collapsed
9113
9114 \begin_layout Plain Layout
9115 End
9116 \end_layout
9117
9118 \end_inset
9119
9120
9121 \begin_inset Quotes erd
9122 \end_inset
9123
9124 .
9125 \end_layout
9126
9127 \begin_layout Description
9128 \begin_inset Flex Code
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 Columns
9133 \end_layout
9134
9135 \end_inset
9136
9137  [
9138 \begin_inset Flex Code
9139 status collapsed
9140
9141 \begin_layout Plain Layout
9142
9143 \emph on
9144 1
9145 \end_layout
9146
9147 \end_inset
9148
9149 ,
9150 \begin_inset space \thinspace{}
9151 \end_inset
9152
9153
9154 \begin_inset Flex Code
9155 status collapsed
9156
9157 \begin_layout Plain Layout
9158 2
9159 \end_layout
9160
9161 \end_inset
9162
9163 ] Whether the class should 
9164 \emph on
9165 default
9166 \emph default
9167  to having one or two columns.
9168  Can be changed in the 
9169 \begin_inset Flex Noun
9170 status collapsed
9171
9172 \begin_layout Plain Layout
9173 Document\SpecialChar menuseparator
9174 Settings
9175 \end_layout
9176
9177 \end_inset
9178
9179  dialog.
9180 \end_layout
9181
9182 \begin_layout Description
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 Counter
9188 \end_layout
9189
9190 \end_inset
9191
9192  [
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197 string
9198 \end_layout
9199
9200 \end_inset
9201
9202 ] This sequence defines the properties for a counter.
9203  If the counter does not yet exist, it is created; if it does exist, it
9204  is modified.
9205  Must end with 
9206 \begin_inset Quotes eld
9207 \end_inset
9208
9209
9210 \begin_inset Flex Code
9211 status collapsed
9212
9213 \begin_layout Plain Layout
9214 End
9215 \end_layout
9216
9217 \end_inset
9218
9219
9220 \begin_inset Quotes erd
9221 \end_inset
9222
9223 .
9224 \begin_inset Newline newline
9225 \end_inset
9226
9227 See 
9228 \begin_inset CommandInset ref
9229 LatexCommand ref
9230 reference "subsec:Counters"
9231
9232 \end_inset
9233
9234  for details on counters.
9235 \end_layout
9236
9237 \begin_layout Description
9238 \begin_inset Flex Code
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 DefaultFont
9243 \end_layout
9244
9245 \end_inset
9246
9247  Sets the default font used to display the document.
9248  See 
9249 \begin_inset CommandInset ref
9250 LatexCommand ref
9251 reference "subsec:Font-description"
9252
9253 \end_inset
9254
9255  for how to declare fonts.
9256  Must end with 
9257 \begin_inset Quotes eld
9258 \end_inset
9259
9260
9261 \begin_inset Flex Code
9262 status collapsed
9263
9264 \begin_layout Plain Layout
9265 EndFont
9266 \end_layout
9267
9268 \end_inset
9269
9270
9271 \begin_inset Quotes erd
9272 \end_inset
9273
9274 .
9275 \end_layout
9276
9277 \begin_layout Description
9278 \begin_inset Flex Code
9279 status collapsed
9280
9281 \begin_layout Plain Layout
9282 DefaultModule
9283 \end_layout
9284
9285 \end_inset
9286
9287  [
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 <module>
9293 \end_layout
9294
9295 \end_inset
9296
9297 ] Specifies a module to be included by default with this document class.
9298  The module is specified as filename without the 
9299 \begin_inset Flex Code
9300 status collapsed
9301
9302 \begin_layout Plain Layout
9303 .module
9304 \end_layout
9305
9306 \end_inset
9307
9308  extension.
9309  The user can still remove the module, but it will be active at the outset.
9310  (This applies only when new files are created, or when this class is chosen
9311  for an existing document.)
9312 \end_layout
9313
9314 \begin_layout Description
9315 \begin_inset Flex Code
9316 status collapsed
9317
9318 \begin_layout Plain Layout
9319 DefaultStyle
9320 \end_layout
9321
9322 \end_inset
9323
9324  [
9325 \begin_inset Flex Code
9326 status collapsed
9327
9328 \begin_layout Plain Layout
9329 <style>
9330 \end_layout
9331
9332 \end_inset
9333
9334 ] This is the style that will be assigned to new paragraphs, usually 
9335 \begin_inset Flex Noun
9336 status collapsed
9337
9338 \begin_layout Plain Layout
9339 Standard
9340 \end_layout
9341
9342 \end_inset
9343
9344 .
9345  This will default to the first defined style if not given, but you are
9346  encouraged to use this directive.
9347 \end_layout
9348
9349 \begin_layout Description
9350 \begin_inset Flex Code
9351 status collapsed
9352
9353 \begin_layout Plain Layout
9354 ExcludesModule
9355 \end_layout
9356
9357 \end_inset
9358
9359  [
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 <module>
9365 \end_layout
9366
9367 \end_inset
9368
9369 ] This tag indicates that the module (which is specified by filename without
9370  the 
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 .module
9376 \end_layout
9377
9378 \end_inset
9379
9380  extension) cannot be used with this document class.
9381  This might be used in a journal-specific layout file to prevent, say, the
9382  use of the 
9383 \begin_inset Flex Code
9384 status collapsed
9385
9386 \begin_layout Plain Layout
9387 theorems-sec
9388 \end_layout
9389
9390 \end_inset
9391
9392  module that numbers theorems by section.
9393  This tag may 
9394 \emph on
9395 not
9396 \emph default
9397  be used in a module.
9398  Modules have their own way of excluding other modules (see 
9399 \begin_inset CommandInset ref
9400 LatexCommand ref
9401 reference "subsec:Layout-modules"
9402
9403 \end_inset
9404
9405 ).
9406 \end_layout
9407
9408 \begin_layout Description
9409 \begin_inset Flex Code
9410 status collapsed
9411
9412 \begin_layout Plain Layout
9413 Float
9414 \end_layout
9415
9416 \end_inset
9417
9418  Defines a new float.
9419  See 
9420 \begin_inset CommandInset ref
9421 LatexCommand ref
9422 reference "subsec:Floats"
9423
9424 \end_inset
9425
9426  for details.
9427  Must end with 
9428 \begin_inset Quotes eld
9429 \end_inset
9430
9431
9432 \begin_inset Flex Code
9433 status collapsed
9434
9435 \begin_layout Plain Layout
9436 End
9437 \end_layout
9438
9439 \end_inset
9440
9441
9442 \begin_inset Quotes erd
9443 \end_inset
9444
9445 .
9446 \end_layout
9447
9448 \begin_layout Description
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 HTMLPreamble
9454 \end_layout
9455
9456 \end_inset
9457
9458  Sets the information that will be output in the 
9459 \begin_inset Flex Code
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 <head>
9464 \end_layout
9465
9466 \end_inset
9467
9468  block when this document class is output to XHTML.
9469  Note that this will completely override any prior 
9470 \begin_inset Flex Code
9471 status collapsed
9472
9473 \begin_layout Plain Layout
9474 HTMLPreamble
9475 \end_layout
9476
9477 \end_inset
9478
9479  or 
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484 AddToHTMLPreamble
9485 \end_layout
9486
9487 \end_inset
9488
9489  declarations.
9490  (Use
9491 \begin_inset Newline newline
9492 \end_inset
9493
9494
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 AddToHTMLPreamble
9500 \end_layout
9501
9502 \end_inset
9503
9504  if you just want to add material to the preamble.) Must end with 
9505 \begin_inset Quotes eld
9506 \end_inset
9507
9508
9509 \begin_inset Flex Code
9510 status collapsed
9511
9512 \begin_layout Plain Layout
9513 EndPreamble
9514 \end_layout
9515
9516 \end_inset
9517
9518
9519 \begin_inset Quotes erd
9520 \end_inset
9521
9522 .
9523 \end_layout
9524
9525 \begin_layout Description
9526 \begin_inset Flex Code
9527 status collapsed
9528
9529 \begin_layout Plain Layout
9530 HTMLTOCSection
9531 \end_layout
9532
9533 \end_inset
9534
9535  [
9536 \begin_inset Flex Code
9537 status collapsed
9538
9539 \begin_layout Plain Layout
9540 <style>
9541 \end_layout
9542
9543 \end_inset
9544
9545 ] The style to use for the table of contents, bibliography, and so forth,
9546  when the document is output to HTML.
9547  For articles, this should normally be 
9548 \begin_inset Flex Code
9549 status collapsed
9550
9551 \begin_layout Plain Layout
9552 Section
9553 \end_layout
9554
9555 \end_inset
9556
9557 ; for books 
9558 \begin_inset Flex Code
9559 status collapsed
9560
9561 \begin_layout Plain Layout
9562 Chapter
9563 \end_layout
9564
9565 \end_inset
9566
9567 .
9568  If it is not given, then \SpecialChar LyX
9569  will attempt to figure out which layout to use.
9570 \end_layout
9571
9572 \begin_layout Description
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 IfCounter
9578 \end_layout
9579
9580 \end_inset
9581
9582  [
9583 \begin_inset Flex Code
9584 status collapsed
9585
9586 \begin_layout Plain Layout
9587 <counter>
9588 \end_layout
9589
9590 \end_inset
9591
9592 ] Modifies the properties of the given counter.
9593  If the counter does not exist, the statement is ignored.
9594  Must end with 
9595 \begin_inset Quotes eld
9596 \end_inset
9597
9598
9599 \begin_inset Flex Code
9600 status collapsed
9601
9602 \begin_layout Plain Layout
9603 End
9604 \end_layout
9605
9606 \end_inset
9607
9608
9609 \begin_inset Quotes erd
9610 \end_inset
9611
9612 .
9613 \begin_inset Newline newline
9614 \end_inset
9615
9616 See 
9617 \begin_inset CommandInset ref
9618 LatexCommand ref
9619 reference "subsec:Counters"
9620
9621 \end_inset
9622
9623  for details on counters.
9624 \end_layout
9625
9626 \begin_layout Description
9627 \begin_inset Flex Code
9628 status collapsed
9629
9630 \begin_layout Plain Layout
9631 Input
9632 \end_layout
9633
9634 \end_inset
9635
9636  [
9637 \begin_inset Flex Code
9638 status collapsed
9639
9640 \begin_layout Plain Layout
9641 <filename>
9642 \end_layout
9643
9644 \end_inset
9645
9646 ] This allows you to include another layout definition file within yours
9647  to avoid duplicating commands.
9648  Common examples are the standard layout files, for example, 
9649 \begin_inset Flex Code
9650 status collapsed
9651
9652 \begin_layout Plain Layout
9653 stdclass.inc
9654 \end_layout
9655
9656 \end_inset
9657
9658 , which contains most of the basic layouts.
9659 \end_layout
9660
9661 \begin_layout Description
9662 \begin_inset Flex Code
9663 status collapsed
9664
9665 \begin_layout Plain Layout
9666 InsetLayout
9667 \end_layout
9668
9669 \end_inset
9670
9671  [
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676 <type>
9677 \end_layout
9678
9679 \end_inset
9680
9681 ] This section (re-)defines the layout of an inset.
9682  It can be applied to an existing inset or to a new, user-defined inset,
9683  e.g., a new character style.
9684  Must end with 
9685 \begin_inset Quotes eld
9686 \end_inset
9687
9688
9689 \begin_inset Flex Code
9690 status collapsed
9691
9692 \begin_layout Plain Layout
9693 End
9694 \end_layout
9695
9696 \end_inset
9697
9698
9699 \begin_inset Quotes erd
9700 \end_inset
9701
9702 .
9703 \begin_inset Newline newline
9704 \end_inset
9705
9706 See 
9707 \begin_inset CommandInset ref
9708 LatexCommand ref
9709 reference "subsec:Flex-insets-and"
9710
9711 \end_inset
9712
9713  for more information.
9714  
9715 \end_layout
9716
9717 \begin_layout Description
9718 \begin_inset Flex Code
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 LeftMargin
9723 \end_layout
9724
9725 \end_inset
9726
9727  [
9728 \begin_inset Flex Code
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732 string
9733 \end_layout
9734
9735 \end_inset
9736
9737 ] A string that indicates the width of the left margin on the screen, for
9738  example, 
9739 \begin_inset Quotes eld
9740 \end_inset
9741
9742
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 MMMMM
9748 \end_layout
9749
9750 \end_inset
9751
9752
9753 \begin_inset Quotes erd
9754 \end_inset
9755
9756 .
9757  (Note that this is not a `length', like 
9758 \begin_inset Quotes eld
9759 \end_inset
9760
9761 2ex
9762 \begin_inset Quotes erd
9763 \end_inset
9764
9765 .)
9766 \change_inserted -712698321 1483872681
9767
9768 \end_layout
9769
9770 \begin_layout Description
9771
9772 \change_inserted -712698321 1483874598
9773 \begin_inset Flex Code
9774 status collapsed
9775
9776 \begin_layout Plain Layout
9777
9778 \change_inserted -712698321 1483872687
9779 MaxCiteNames
9780 \end_layout
9781
9782 \end_inset
9783
9784  [
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789
9790 \change_inserted -712698321 1483872692
9791 integer
9792 \end_layout
9793
9794 \end_inset
9795
9796 ] An integer that determines the maximal number of names displayed in an
9797  author-year citation before the citation switches to 
9798 \begin_inset Quotes eld
9799 \end_inset
9800
9801 FirstAuthor et al.
9802 \begin_inset Quotes erd
9803 \end_inset
9804
9805 .
9806  Primarily used in cite engine files (see 
9807 \begin_inset CommandInset ref
9808 LatexCommand ref
9809 reference "subsec:Cite-Engine-Files"
9810 plural "false"
9811 caps "false"
9812 noprefix "false"
9813
9814 \end_inset
9815
9816 ).
9817 \change_unchanged
9818
9819 \end_layout
9820
9821 \begin_layout Description
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 ModifyStyle
9827 \end_layout
9828
9829 \end_inset
9830
9831  [
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 <style>
9837 \end_layout
9838
9839 \end_inset
9840
9841 ] Modifies the properties of the given paragraph style.
9842  If the style does not exist, this section is ignored.
9843  Must end with 
9844 \begin_inset Quotes eld
9845 \end_inset
9846
9847
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 End
9853 \end_layout
9854
9855 \end_inset
9856
9857
9858 \begin_inset Quotes erd
9859 \end_inset
9860
9861 .
9862 \end_layout
9863
9864 \begin_layout Description
9865 \begin_inset Flex Code
9866 status collapsed
9867
9868 \begin_layout Plain Layout
9869 NoCounter
9870 \end_layout
9871
9872 \end_inset
9873
9874  [
9875 \begin_inset Flex Code
9876 status collapsed
9877
9878 \begin_layout Plain Layout
9879 <counter>
9880 \end_layout
9881
9882 \end_inset
9883
9884 ] Deletes an existing counter, usually one defined in an included file.
9885 \end_layout
9886
9887 \begin_layout Description
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 NoFloat
9893 \end_layout
9894
9895 \end_inset
9896
9897  [
9898 \begin_inset Flex Code
9899 status collapsed
9900
9901 \begin_layout Plain Layout
9902 <float>
9903 \end_layout
9904
9905 \end_inset
9906
9907 ] Deletes an existing float.
9908  This is particularly useful when you want to suppress a float that has
9909  been defined in an input file.
9910 \end_layout
9911
9912 \begin_layout Description
9913 \begin_inset Flex Code
9914 status collapsed
9915
9916 \begin_layout Plain Layout
9917 NoStyle
9918 \end_layout
9919
9920 \end_inset
9921
9922  [
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 <style>
9928 \end_layout
9929
9930 \end_inset
9931
9932 ] Deletes an existing style.
9933 \change_inserted 2047637253 1483900342
9934
9935 \end_layout
9936
9937 \begin_layout Description
9938
9939 \change_inserted 2047637253 1483900479
9940 \begin_inset Flex Code
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944
9945 \change_inserted 2047637253 1483900346
9946 OutlinerName
9947 \end_layout
9948
9949 \end_inset
9950
9951  [
9952 \begin_inset Flex Code
9953 status collapsed
9954
9955 \begin_layout Plain Layout
9956
9957 \change_inserted 2047637253 1483900369
9958 <type>
9959 \end_layout
9960
9961 \end_inset
9962
9963 ] [
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968
9969 \change_inserted 2047637253 1483900418
9970 <string>
9971 \end_layout
9972
9973 \end_inset
9974
9975 ] Define a new table of contents with type 
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980
9981 \change_inserted 2047637253 1483900414
9982 <type>
9983 \end_layout
9984
9985 \end_inset
9986
9987  and name 
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992
9993 \change_inserted 2047637253 1483900419
9994 <string>
9995 \end_layout
9996
9997 \end_inset
9998
9999 .
10000  See also the AddToToc commands.
10001 \change_unchanged
10002
10003 \end_layout
10004
10005 \begin_layout Description
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 OutputFormat
10011 \end_layout
10012
10013 \end_inset
10014
10015  [
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020 <format>
10021 \end_layout
10022
10023 \end_inset
10024
10025 ] The file format (as defined in the \SpecialChar LyX
10026  preferences) produced by this document
10027  class.
10028  It is mainly useful when 
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 OutputType
10034 \end_layout
10035
10036 \end_inset
10037
10038  is 
10039 \begin_inset Flex Code
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 literate
10044 \end_layout
10045
10046 \end_inset
10047
10048  and one wants to define a new type of literate document.
10049  The format is reset to 
10050 \begin_inset Quotes eld
10051 \end_inset
10052
10053
10054 \begin_inset Flex Code
10055 status collapsed
10056
10057 \begin_layout Plain Layout
10058 docbook
10059 \end_layout
10060
10061 \end_inset
10062
10063
10064 \begin_inset Quotes erd
10065 \end_inset
10066
10067  or 
10068 \begin_inset Quotes eld
10069 \end_inset
10070
10071
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 latex
10077 \end_layout
10078
10079 \end_inset
10080
10081
10082 \begin_inset Quotes erd
10083 \end_inset
10084
10085  when the corresponding 
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 OutputType
10091 \end_layout
10092
10093 \end_inset
10094
10095  parameter is encountered.
10096 \end_layout
10097
10098 \begin_layout Description
10099 \begin_inset Flex Code
10100 status collapsed
10101
10102 \begin_layout Plain Layout
10103 OutputType
10104 \end_layout
10105
10106 \end_inset
10107
10108  [
10109 \begin_inset Flex Code
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113
10114 \emph on
10115 lat
10116 \emph default
10117 ex
10118 \end_layout
10119
10120 \end_inset
10121
10122
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 docbook
10128 \end_layout
10129
10130 \end_inset
10131
10132
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 literate
10138 \end_layout
10139
10140 \end_inset
10141
10142 ] Specifies what sort of output documents using this class will produce.
10143 \end_layout
10144
10145 \begin_layout Description
10146 \begin_inset Flex Code
10147 status collapsed
10148
10149 \begin_layout Plain Layout
10150 PackageOptions
10151 \end_layout
10152
10153 \end_inset
10154
10155  [
10156 \begin_inset Flex Code
10157 status collapsed
10158
10159 \begin_layout Plain Layout
10160 string
10161 \end_layout
10162
10163 \end_inset
10164
10165  
10166 \begin_inset Flex Code
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170 string
10171 \end_layout
10172
10173 \end_inset
10174
10175 ] Specifies options, given in the second string, for the package named by
10176  the first string.
10177  For example, 
10178 \begin_inset Quotes eld
10179 \end_inset
10180
10181
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 PackageOptions natbib square
10187 \end_layout
10188
10189 \end_inset
10190
10191
10192 \begin_inset Quotes erd
10193 \end_inset
10194
10195  will cause 
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 natbib
10201 \end_layout
10202
10203 \end_inset
10204
10205  to be loaded with the 
10206 \begin_inset Flex Code
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 square
10211 \end_layout
10212
10213 \end_inset
10214
10215  option.
10216  (For \SpecialChar TeX
10217 perts, this causes \SpecialChar LyX
10218  to output: 
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223
10224 \backslash
10225 PassOptionsToPackage{natbib}{square}
10226 \end_layout
10227
10228 \end_inset
10229
10230  prior to loading 
10231 \begin_inset Flex Code
10232 status collapsed
10233
10234 \begin_layout Plain Layout
10235 natbib
10236 \end_layout
10237
10238 \end_inset
10239
10240 .)
10241 \end_layout
10242
10243 \begin_layout Description
10244 \begin_inset Flex Code
10245 status collapsed
10246
10247 \begin_layout Plain Layout
10248 PageStyle
10249 \end_layout
10250
10251 \end_inset
10252
10253  [
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258
10259 \emph on
10260 plain
10261 \end_layout
10262
10263 \end_inset
10264
10265
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 empty
10271 \end_layout
10272
10273 \end_inset
10274
10275
10276 \begin_inset Flex Code
10277 status collapsed
10278
10279 \begin_layout Plain Layout
10280 headings
10281 \end_layout
10282
10283 \end_inset
10284
10285 ] The default pagestyle.
10286  Can be changed in the 
10287 \begin_inset Flex Noun
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 Document\SpecialChar menuseparator
10292 Settings
10293 \end_layout
10294
10295 \end_inset
10296
10297  dialog.
10298 \end_layout
10299
10300 \begin_layout Description
10301 \begin_inset Flex Code
10302 status collapsed
10303
10304 \begin_layout Plain Layout
10305 Preamble
10306 \end_layout
10307
10308 \end_inset
10309
10310  Sets the preamble for the \SpecialChar LaTeX
10311  document.
10312  Note that this will completely override any prior 
10313 \begin_inset Flex Code
10314 status collapsed
10315
10316 \begin_layout Plain Layout
10317 Preamble
10318 \end_layout
10319
10320 \end_inset
10321
10322  or 
10323 \begin_inset Flex Code
10324 status collapsed
10325
10326 \begin_layout Plain Layout
10327 AddToPreamble
10328 \end_layout
10329
10330 \end_inset
10331
10332  declarations.
10333  (Use 
10334 \begin_inset Flex Code
10335 status collapsed
10336
10337 \begin_layout Plain Layout
10338 AddToPreamble
10339 \end_layout
10340
10341 \end_inset
10342
10343  if you just want to add material to the preamble.) Must end with 
10344 \begin_inset Quotes eld
10345 \end_inset
10346
10347
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 EndPreamble
10353 \end_layout
10354
10355 \end_inset
10356
10357
10358 \begin_inset Quotes erd
10359 \end_inset
10360
10361 .
10362 \end_layout
10363
10364 \begin_layout Description
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 Provides
10370 \end_layout
10371
10372 \end_inset
10373
10374  [
10375 \begin_inset Flex Code
10376 status collapsed
10377
10378 \begin_layout Plain Layout
10379 string
10380 \end_layout
10381
10382 \end_inset
10383
10384 ] [
10385 \begin_inset Flex Code
10386 status collapsed
10387
10388 \begin_layout Plain Layout
10389
10390 \emph on
10391 0
10392 \end_layout
10393
10394 \end_inset
10395
10396 ,
10397 \begin_inset space \thinspace{}
10398 \end_inset
10399
10400
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 1
10406 \end_layout
10407
10408 \end_inset
10409
10410 ] Whether the class already provides the feature 
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 string
10416 \end_layout
10417
10418 \end_inset
10419
10420 .
10421  A feature is in general the name of a package (e.
10422 \begin_inset space \thinspace{}
10423 \end_inset
10424
10425 g.
10426 \begin_inset space \space{}
10427 \end_inset
10428
10429
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434 amsmath
10435 \end_layout
10436
10437 \end_inset
10438
10439  or 
10440 \begin_inset Flex Code
10441 status collapsed
10442
10443 \begin_layout Plain Layout
10444 makeidx
10445 \end_layout
10446
10447 \end_inset
10448
10449 ) or a macro (e.
10450 \begin_inset space \thinspace{}
10451 \end_inset
10452
10453 g.
10454 \begin_inset space \space{}
10455 \end_inset
10456
10457
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 url
10463 \end_layout
10464
10465 \end_inset
10466
10467  or 
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 boldsymbol
10473 \end_layout
10474
10475 \end_inset
10476
10477 ).
10478  See 
10479 \begin_inset CommandInset ref
10480 LatexCommand ref
10481 reference "chap:List-of-functions"
10482
10483 \end_inset
10484
10485  for the list of features.
10486 \end_layout
10487
10488 \begin_layout Description
10489 \begin_inset Flex Code
10490 status collapsed
10491
10492 \begin_layout Plain Layout
10493 ProvidesModule
10494 \end_layout
10495
10496 \end_inset
10497
10498  [
10499 \begin_inset Flex Code
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 string
10504 \end_layout
10505
10506 \end_inset
10507
10508 ] Indicates that this layout provides the functionality of the module mentioned,
10509  which should be specified by the filename without the 
10510 \begin_inset Flex Code
10511 status collapsed
10512
10513 \begin_layout Plain Layout
10514 .module
10515 \end_layout
10516
10517 \end_inset
10518
10519  extension.
10520  This will typically be used if the layout includes the module directly,
10521  rather than using the 
10522 \begin_inset Flex Code
10523 status collapsed
10524
10525 \begin_layout Plain Layout
10526 DefaultModule
10527 \end_layout
10528
10529 \end_inset
10530
10531  tag to indicate that it ought to be used.
10532  It could also be used in a module that provided an alternate implementation
10533  of the same functionality.
10534 \end_layout
10535
10536 \begin_layout Description
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 ProvideStyle
10542 \end_layout
10543
10544 \end_inset
10545
10546  [
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 <style>
10552 \end_layout
10553
10554 \end_inset
10555
10556 ] Creates a new paragraph style if it does not already exist.
10557  If the style does exist, this section is ignored.
10558  Must end with 
10559 \begin_inset Quotes eld
10560 \end_inset
10561
10562
10563 \begin_inset Flex Code
10564 status collapsed
10565
10566 \begin_layout Plain Layout
10567 End
10568 \end_layout
10569
10570 \end_inset
10571
10572
10573 \begin_inset Quotes erd
10574 \end_inset
10575
10576 .
10577 \end_layout
10578
10579 \begin_layout Description
10580 \begin_inset Flex Code
10581 status collapsed
10582
10583 \begin_layout Plain Layout
10584 Requires
10585 \end_layout
10586
10587 \end_inset
10588
10589  [
10590 \begin_inset Flex Code
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 string
10595 \end_layout
10596
10597 \end_inset
10598
10599 ] Whether the class requires the feature 
10600 \begin_inset Flex Code
10601 status collapsed
10602
10603 \begin_layout Plain Layout
10604 string
10605 \end_layout
10606
10607 \end_inset
10608
10609 .
10610  Multiple features must be separated by commas.
10611  Note that you can only request supported features.
10612  (See 
10613 \begin_inset CommandInset ref
10614 LatexCommand ref
10615 reference "chap:List-of-functions"
10616
10617 \end_inset
10618
10619  for the list of features.).
10620  If you require a package with specific options, you can additionally use
10621  
10622 \begin_inset Flex Code
10623 status collapsed
10624
10625 \begin_layout Plain Layout
10626 PackageOptions
10627 \end_layout
10628
10629 \end_inset
10630
10631 .
10632 \end_layout
10633
10634 \begin_layout Description
10635 \begin_inset Flex Code
10636 status collapsed
10637
10638 \begin_layout Plain Layout
10639 RightMargin
10640 \end_layout
10641
10642 \end_inset
10643
10644  [
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 string
10650 \end_layout
10651
10652 \end_inset
10653
10654 ] A string that indicates the width of the right margin on the screen, for
10655  example, 
10656 \begin_inset Quotes eld
10657 \end_inset
10658
10659
10660 \begin_inset Flex Code
10661 status collapsed
10662
10663 \begin_layout Plain Layout
10664 MMMMM
10665 \end_layout
10666
10667 \end_inset
10668
10669
10670 \begin_inset Quotes erd
10671 \end_inset
10672
10673 .
10674 \end_layout
10675
10676 \begin_layout Description
10677 \begin_inset Flex Code
10678 status collapsed
10679
10680 \begin_layout Plain Layout
10681 SecNumDepth
10682 \end_layout
10683
10684 \end_inset
10685
10686  [
10687 \begin_inset Flex Code
10688 status collapsed
10689
10690 \begin_layout Plain Layout
10691 int=3
10692 \end_layout
10693
10694 \end_inset
10695
10696 ] Sets which divisions get numbered.
10697  Corresponds to the
10698 \begin_inset Newline newline
10699 \end_inset
10700
10701
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 secnumdepth
10707 \end_layout
10708
10709 \end_inset
10710
10711  counter in \SpecialChar LaTeX
10712 .
10713 \end_layout
10714
10715 \begin_layout Description
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 Sides
10721 \end_layout
10722
10723 \end_inset
10724
10725  [
10726 \begin_inset Flex Code
10727 status collapsed
10728
10729 \begin_layout Plain Layout
10730
10731 \emph on
10732 1
10733 \end_layout
10734
10735 \end_inset
10736
10737 ,
10738 \begin_inset space \thinspace{}
10739 \end_inset
10740
10741
10742 \begin_inset Flex Code
10743 status collapsed
10744
10745 \begin_layout Plain Layout
10746 2
10747 \end_layout
10748
10749 \end_inset
10750
10751 ] Whether the class-default should be printing on one or both sides of the
10752  paper.
10753  Can be changed in the 
10754 \begin_inset Flex Noun
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 Document\SpecialChar menuseparator
10759 Settings
10760 \end_layout
10761
10762 \end_inset
10763
10764  dialog.
10765 \end_layout
10766
10767 \begin_layout Description
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 Style
10773 \end_layout
10774
10775 \end_inset
10776
10777  [
10778 \begin_inset Flex Code
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 <name>
10783 \end_layout
10784
10785 \end_inset
10786
10787 ] This sequence defines a paragraph style.
10788  If the style does not yet exist, it is created; if it does exist, its parameter
10789 s are modified.
10790  Must end with 
10791 \begin_inset Quotes eld
10792 \end_inset
10793
10794
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 End
10800 \end_layout
10801
10802 \end_inset
10803
10804
10805 \begin_inset Quotes erd
10806 \end_inset
10807
10808 .
10809 \begin_inset Newline newline
10810 \end_inset
10811
10812 See 
10813 \begin_inset CommandInset ref
10814 LatexCommand ref
10815 reference "subsec:Paragraph-Styles"
10816
10817 \end_inset
10818
10819  for details on paragraph styles.
10820 \end_layout
10821
10822 \begin_layout Description
10823 \begin_inset Flex Code
10824 status collapsed
10825
10826 \begin_layout Plain Layout
10827 TitleLatexName
10828 \end_layout
10829
10830 \end_inset
10831
10832  [
10833 \begin_inset Flex Code
10834 status collapsed
10835
10836 \begin_layout Plain Layout
10837 string="maketitle"
10838 \end_layout
10839
10840 \end_inset
10841
10842 ] The name of the command or environment to be used with 
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 TitleLatexType
10848 \end_layout
10849
10850 \end_inset
10851
10852 .
10853 \end_layout
10854
10855 \begin_layout Description
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 TitleLatexType
10861 \end_layout
10862
10863 \end_inset
10864
10865  [
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870
10871 \emph on
10872 CommandAfter
10873 \end_layout
10874
10875 \end_inset
10876
10877
10878 \begin_inset Flex Code
10879 status collapsed
10880
10881 \begin_layout Plain Layout
10882 Environment
10883 \end_layout
10884
10885 \end_inset
10886
10887 ] Indicates what kind of markup is used to define the title of a document.
10888  
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 CommandAfter
10894 \end_layout
10895
10896 \end_inset
10897
10898  means that the macro with name 
10899 \begin_inset Flex Code
10900 status collapsed
10901
10902 \begin_layout Plain Layout
10903 TitleLatexName
10904 \end_layout
10905
10906 \end_inset
10907
10908  will be inserted after the last layout which has 
10909 \begin_inset Quotes eld
10910 \end_inset
10911
10912
10913 \begin_inset Flex Code
10914 status collapsed
10915
10916 \begin_layout Plain Layout
10917 InTitle
10918 \begin_inset space ~
10919 \end_inset
10920
10921 1
10922 \end_layout
10923
10924 \end_inset
10925
10926
10927 \begin_inset Quotes erd
10928 \end_inset
10929
10930 .
10931  
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 Environment
10937 \end_layout
10938
10939 \end_inset
10940
10941  corresponds to the case where all layouts which have 
10942 \begin_inset Quotes eld
10943 \end_inset
10944
10945
10946 \begin_inset Flex Code
10947 status collapsed
10948
10949 \begin_layout Plain Layout
10950 InTitle
10951 \begin_inset space ~
10952 \end_inset
10953
10954 1
10955 \end_layout
10956
10957 \end_inset
10958
10959
10960 \begin_inset Quotes erd
10961 \end_inset
10962
10963  should be enclosed into the 
10964 \begin_inset Flex Code
10965 status collapsed
10966
10967 \begin_layout Plain Layout
10968 TitleLatexName
10969 \end_layout
10970
10971 \end_inset
10972
10973  environment.
10974 \end_layout
10975
10976 \begin_layout Description
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 TocDepth
10982 \end_layout
10983
10984 \end_inset
10985
10986  [
10987 \begin_inset Flex Code
10988 status collapsed
10989
10990 \begin_layout Plain Layout
10991 int=3
10992 \end_layout
10993
10994 \end_inset
10995
10996 ] Sets which divisions are included in the table of contents.
10997  Corresponds to the 
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002 tocdepth
11003 \end_layout
11004
11005 \end_inset
11006
11007  counter in \SpecialChar LaTeX
11008 .
11009 \end_layout
11010
11011 \begin_layout Subsection
11012 \begin_inset Flex Code
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016 ClassOptions
11017 \end_layout
11018
11019 \end_inset
11020
11021  section
11022 \begin_inset CommandInset label
11023 LatexCommand label
11024 name "subsec:ClassOptions"
11025
11026 \end_inset
11027
11028
11029 \end_layout
11030
11031 \begin_layout Standard
11032 The 
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 ClassOptions
11038 \end_layout
11039
11040 \end_inset
11041
11042  section can contain the following entries:
11043 \end_layout
11044
11045 \begin_layout Description
11046 \begin_inset Flex Code
11047 status collapsed
11048
11049 \begin_layout Plain Layout
11050 FontSize
11051 \end_layout
11052
11053 \end_inset
11054
11055  [
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060 string="10|11|12"
11061 \end_layout
11062
11063 \end_inset
11064
11065 ] The list of available font sizes for the document's main font, separated
11066  by 
11067 \begin_inset Quotes eld
11068 \end_inset
11069
11070
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 |
11076 \end_layout
11077
11078 \end_inset
11079
11080
11081 \begin_inset Quotes erd
11082 \end_inset
11083
11084 .
11085 \end_layout
11086
11087 \begin_layout Description
11088 \begin_inset Flex Code
11089 status collapsed
11090
11091 \begin_layout Plain Layout
11092 Header
11093 \end_layout
11094
11095 \end_inset
11096
11097  Used to set the DTD line with XML-based output classes.
11098  E.
11099 \begin_inset space \thinspace{}
11100 \end_inset
11101
11102 g.: PUBLIC 
11103 \begin_inset Quotes eld
11104 \end_inset
11105
11106 -//OASIS//DTD DocBook V4.2//EN
11107 \begin_inset Quotes erd
11108 \end_inset
11109
11110 .
11111 \end_layout
11112
11113 \begin_layout Description
11114 \begin_inset Flex Code
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118 PageStyle
11119 \end_layout
11120
11121 \end_inset
11122
11123  [
11124 \begin_inset Flex Code
11125 status collapsed
11126
11127 \begin_layout Plain Layout
11128 string="empty|plain|headings|fancy"
11129 \end_layout
11130
11131 \end_inset
11132
11133 ] The list of available page sty\SpecialChar softhyphen
11134 les, separated by 
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138
11139 \begin_inset Flex Code
11140 status collapsed
11141
11142 \begin_layout Plain Layout
11143 |
11144 \end_layout
11145
11146 \end_inset
11147
11148
11149 \begin_inset Quotes erd
11150 \end_inset
11151
11152 .
11153 \end_layout
11154
11155 \begin_layout Description
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 Other
11161 \end_layout
11162
11163 \end_inset
11164
11165  [
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 string=""
11171 \end_layout
11172
11173 \end_inset
11174
11175 ] Some document class options, separated by a comma, that will be added
11176  to the optional part of the 
11177 \begin_inset Flex Code
11178 status collapsed
11179
11180 \begin_layout Plain Layout
11181
11182 \backslash
11183 documentclass
11184 \end_layout
11185
11186 \end_inset
11187
11188  command.
11189 \end_layout
11190
11191 \begin_layout Standard
11192 The 
11193 \begin_inset Flex Code
11194 status collapsed
11195
11196 \begin_layout Plain Layout
11197 ClassOptions
11198 \end_layout
11199
11200 \end_inset
11201
11202  section must end with 
11203 \begin_inset Quotes eld
11204 \end_inset
11205
11206
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211 End
11212 \end_layout
11213
11214 \end_inset
11215
11216
11217 \begin_inset Quotes erd
11218 \end_inset
11219
11220 .
11221 \end_layout
11222
11223 \begin_layout Subsection
11224 Paragraph styles
11225 \begin_inset CommandInset label
11226 LatexCommand label
11227 name "subsec:Paragraph-Styles"
11228
11229 \end_inset
11230
11231
11232 \end_layout
11233
11234 \begin_layout Standard
11235 A paragraph style description looks like this:
11236 \begin_inset Foot
11237 status collapsed
11238
11239 \begin_layout Plain Layout
11240 Note that this will either define a new style or modify an existing one.
11241 \end_layout
11242
11243 \end_inset
11244
11245
11246 \end_layout
11247
11248 \begin_layout LyX-Code
11249 Style 
11250 \family roman
11251 \emph on
11252 name
11253 \end_layout
11254
11255 \begin_layout LyX-Code
11256  ...
11257 \end_layout
11258
11259 \begin_layout LyX-Code
11260 End
11261 \end_layout
11262
11263 \begin_layout Standard
11264 where the following commands are allowed:
11265 \end_layout
11266
11267 \begin_layout Description
11268
11269 \change_inserted 2047637253 1483963019
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274
11275 \change_inserted 2047637253 1483901753
11276 AddToToc
11277 \end_layout
11278
11279 \end_inset
11280
11281  [
11282 \begin_inset Flex Code
11283 status collapsed
11284
11285 \begin_layout Plain Layout
11286
11287 \change_inserted 2047637253 1483963007
11288 string
11289 \end_layout
11290
11291 \end_inset
11292
11293 =""] This paragraph will appear in the table of contents of the given type.
11294  An empty string disables.
11295  See also the OutlinerName and the IsTocCaption commands.
11296  Default: disabled.
11297 \end_layout
11298
11299 \begin_layout Description
11300 \begin_inset Flex Code
11301 status collapsed
11302
11303 \begin_layout Plain Layout
11304 Align
11305 \end_layout
11306
11307 \end_inset
11308
11309  [
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314
11315 \emph on
11316 block
11317 \emph default
11318 , left, right, center
11319 \end_layout
11320
11321 \end_inset
11322
11323 ] Paragraph alignment.
11324 \end_layout
11325
11326 \begin_layout Description
11327 \begin_inset Flex Code
11328 status collapsed
11329
11330 \begin_layout Plain Layout
11331 AlignPossible
11332 \end_layout
11333
11334 \end_inset
11335
11336  [
11337 \begin_inset Flex Code
11338 status collapsed
11339
11340 \begin_layout Plain Layout
11341
11342 \emph on
11343 block
11344 \emph default
11345 , left, right, center
11346 \end_layout
11347
11348 \end_inset
11349
11350 ] A comma separated list of permitted alignments.
11351  (Some \SpecialChar LaTeX
11352  styles prohibit certain alignments, since those wouldn't make sense.
11353  For example a right-aligned or centered enumeration isn't possible.)
11354 \end_layout
11355
11356 \begin_layout Description
11357 \begin_inset Flex Code
11358 status collapsed
11359
11360 \begin_layout Plain Layout
11361 Argument
11362 \end_layout
11363
11364 \end_inset
11365
11366  [
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371 int
11372 \end_layout
11373
11374 \end_inset
11375
11376 ] Defines argument number <int> of a command\SpecialChar breakableslash
11377 environment associated with
11378  the current style.
11379  This is useful for things like section headings, and only makes sense with
11380  \SpecialChar LaTeX
11381 .
11382  Every (optional or required) argument of a command or environment – except
11383  for the required argument that is associated with the content of the paragraph
11384  itself – has a separate definition, where the number specifies the order
11385  of the arguments.
11386  The definition must end with 
11387 \begin_inset Flex Code
11388 status collapsed
11389
11390 \begin_layout Plain Layout
11391 EndArgument
11392 \end_layout
11393
11394 \end_inset
11395
11396 .
11397  So a command with two optional arguments has:
11398 \end_layout
11399
11400 \begin_deeper
11401 \begin_layout Quote
11402
11403 \family typewriter
11404 Argument 1
11405 \end_layout
11406
11407 \begin_layout Quote
11408
11409 \family typewriter
11410 ...
11411 \end_layout
11412
11413 \begin_layout Quote
11414
11415 \family typewriter
11416 EndArgument
11417 \end_layout
11418
11419 \begin_layout Quote
11420
11421 \family typewriter
11422 Argument 2
11423 \end_layout
11424
11425 \begin_layout Quote
11426
11427 \family typewriter
11428 ...
11429 \end_layout
11430
11431 \begin_layout Quote
11432
11433 \family typewriter
11434 EndArgument
11435 \end_layout
11436
11437 \begin_layout Standard
11438 Inside the 
11439 \begin_inset Flex Code
11440 status collapsed
11441
11442 \begin_layout Plain Layout
11443 Argument
11444 \end_layout
11445
11446 \end_inset
11447
11448  definition, the following specifications are possible:
11449 \end_layout
11450
11451 \begin_layout Itemize
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 LabelString
11457 \end_layout
11458
11459 \end_inset
11460
11461  
11462 \begin_inset Flex Code
11463 status collapsed
11464
11465 \begin_layout Plain Layout
11466 [string]
11467 \end_layout
11468
11469 \end_inset
11470
11471  The string that will appear both in the menu (to insert this argument)
11472  and on the argument inset button (unless you also specify a separate 
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477 MenuString
11478 \end_layout
11479
11480 \end_inset
11481
11482 ).
11483  For the menu, you can define an accelerator by appending the respective
11484  character to the string, divided by 
11485 \begin_inset Quotes eld
11486 \end_inset
11487
11488 |
11489 \begin_inset Quotes erd
11490 \end_inset
11491
11492  (e.
11493 \begin_inset space \thinspace{}
11494 \end_inset
11495
11496 g.
11497 \begin_inset space \space{}
11498 \end_inset
11499
11500
11501 \begin_inset Quotes eld
11502 \end_inset
11503
11504
11505 \begin_inset Flex Code
11506 status collapsed
11507
11508 \begin_layout Plain Layout
11509 Short Title|S
11510 \end_layout
11511
11512 \end_inset
11513
11514
11515 \begin_inset Quotes erd
11516 \end_inset
11517
11518 ).
11519 \end_layout
11520
11521 \begin_layout Itemize
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 MenuString
11527 \end_layout
11528
11529 \end_inset
11530
11531  
11532 \begin_inset Flex Code
11533 status collapsed
11534
11535 \begin_layout Plain Layout
11536 [string]
11537 \end_layout
11538
11539 \end_inset
11540
11541  A separate string for the menu.
11542  You can define an accelerator by appending the respective character to
11543  the string, divided by 
11544 \begin_inset Quotes eld
11545 \end_inset
11546
11547 |
11548 \begin_inset Quotes erd
11549 \end_inset
11550
11551  (e.
11552 \begin_inset space \thinspace{}
11553 \end_inset
11554
11555 g.
11556 \begin_inset space \space{}
11557 \end_inset
11558
11559
11560 \begin_inset Quotes eld
11561 \end_inset
11562
11563
11564 \begin_inset Flex Code
11565 status collapsed
11566
11567 \begin_layout Plain Layout
11568 Short Title|S
11569 \end_layout
11570
11571 \end_inset
11572
11573
11574 \begin_inset Quotes erd
11575 \end_inset
11576
11577 ).
11578  This specification is optional.
11579  If it is not given the 
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 LabelString
11585 \end_layout
11586
11587 \end_inset
11588
11589  will be used instead for the menu.
11590 \end_layout
11591
11592 \begin_layout Itemize
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597 Tooltip
11598 \end_layout
11599
11600 \end_inset
11601
11602  
11603 \begin_inset Flex Code
11604 status collapsed
11605
11606 \begin_layout Plain Layout
11607 [string]
11608 \end_layout
11609
11610 \end_inset
11611
11612  A longer explanatory text that appears in the tooltip when hovering over
11613  the argument inset.
11614 \end_layout
11615
11616 \begin_layout Itemize
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 Mandatory
11622 \end_layout
11623
11624 \end_inset
11625
11626  [
11627 \begin_inset Flex Code
11628 status collapsed
11629
11630 \begin_layout Plain Layout
11631
11632 \emph on
11633 0
11634 \end_layout
11635
11636 \end_inset
11637
11638 ,
11639 \begin_inset space \thinspace{}
11640 \end_inset
11641
11642
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647 1
11648 \end_layout
11649
11650 \end_inset
11651
11652 ] Declare if this is a mandatory (1) or an optional (0) argument.
11653  Mandatory arguments will be output empty if not given, while optional arguments
11654  will not be output at all.
11655  By default, mandatory arguments are delimited by 
11656 \begin_inset Flex Code
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660 {...}
11661 \end_layout
11662
11663 \end_inset
11664
11665 , while optional arguments are delimited by 
11666 \begin_inset Flex Code
11667 status collapsed
11668
11669 \begin_layout Plain Layout
11670 [...]
11671 \end_layout
11672
11673 \end_inset
11674
11675
11676 \end_layout
11677
11678 \begin_layout Itemize
11679 \begin_inset Flex Code
11680 status collapsed
11681
11682 \begin_layout Plain Layout
11683 Requires
11684 \end_layout
11685
11686 \end_inset
11687
11688  
11689 \begin_inset Flex Code
11690 status collapsed
11691
11692 \begin_layout Plain Layout
11693 [int=0]
11694 \end_layout
11695
11696 \end_inset
11697
11698  defines another argument (by its number) which this argument requires to
11699  be output if it is itself output.
11700  E.
11701 \begin_inset space \thinspace{}
11702 \end_inset
11703
11704 g., in \SpecialChar LaTeX
11705  commands, optional arguments often require previous optional arguments
11706  to be output (at least empty), as in 
11707 \begin_inset Flex Code
11708 status collapsed
11709
11710 \begin_layout Plain Layout
11711
11712 \backslash
11713 command[][argument]{text}
11714 \end_layout
11715
11716 \end_inset
11717
11718 .
11719  This can be achieved by the statement 
11720 \begin_inset Flex Code
11721 status collapsed
11722
11723 \begin_layout Plain Layout
11724 Requires 1
11725 \end_layout
11726
11727 \end_inset
11728
11729  within 
11730 \begin_inset Flex Code
11731 status collapsed
11732
11733 \begin_layout Plain Layout
11734 Argument 2
11735 \end_layout
11736
11737 \end_inset
11738
11739 .
11740 \end_layout
11741
11742 \begin_layout Itemize
11743 \begin_inset Flex Code
11744 status collapsed
11745
11746 \begin_layout Plain Layout
11747 LeftDelim
11748 \end_layout
11749
11750 \end_inset
11751
11752  
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757 [string]
11758 \end_layout
11759
11760 \end_inset
11761
11762  defines a custom left delimiter (instead of 
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 {
11768 \end_layout
11769
11770 \end_inset
11771
11772  or 
11773 \begin_inset Flex Code
11774 status collapsed
11775
11776 \begin_layout Plain Layout
11777 [
11778 \end_layout
11779
11780 \end_inset
11781
11782 ).
11783  A line break in the output can be indicated by 
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 <br/>
11789 \end_layout
11790
11791 \end_inset
11792
11793 .
11794 \end_layout
11795
11796 \begin_layout Itemize
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801 RightDelim
11802 \end_layout
11803
11804 \end_inset
11805
11806  
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 [string]
11812 \end_layout
11813
11814 \end_inset
11815
11816  defines a custom right delimiter (instead of 
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821 }
11822 \end_layout
11823
11824 \end_inset
11825
11826  or 
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 ]
11832 \end_layout
11833
11834 \end_inset
11835
11836 ).
11837  A line break in the output can be indicated by 
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 <br/>
11843 \end_layout
11844
11845 \end_inset
11846
11847 .
11848 \end_layout
11849
11850 \begin_layout Itemize
11851 \begin_inset Flex Code
11852 status collapsed
11853
11854 \begin_layout Plain Layout
11855 DefaultArg
11856 \end_layout
11857
11858 \end_inset
11859
11860  
11861 \begin_inset Flex Code
11862 status collapsed
11863
11864 \begin_layout Plain Layout
11865 [string]
11866 \end_layout
11867
11868 \end_inset
11869
11870  defines an argument that is inserted if and only if no user-specified arguments
11871  were given, i.
11872 \begin_inset space \thinspace{}
11873 \end_inset
11874
11875 e.
11876 \begin_inset space \space{}
11877 \end_inset
11878
11879 if no argument inset has been inserted (note that also an empty argument
11880  inset omits the DefaultArg).
11881  Multiple arguments need to be separated by comma.
11882 \end_layout
11883
11884 \begin_layout Itemize
11885 \begin_inset Flex Code
11886 status collapsed
11887
11888 \begin_layout Plain Layout
11889 PresetArg
11890 \end_layout
11891
11892 \end_inset
11893
11894  
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899 [string]
11900 \end_layout
11901
11902 \end_inset
11903
11904  defines an argument that is inserted in any case (alone or in addition
11905  to user-specified arguments).
11906  Multiple arguments need to be separated by comma.
11907 \end_layout
11908
11909 \begin_layout Itemize
11910 \begin_inset Flex Code
11911 status collapsed
11912
11913 \begin_layout Plain Layout
11914 Font
11915 \end_layout
11916
11917 \end_inset
11918
11919  The font used for the argument content, see 
11920 \begin_inset CommandInset ref
11921 LatexCommand ref
11922 reference "subsec:Font-description"
11923
11924 \end_inset
11925
11926 .
11927 \end_layout
11928
11929 \begin_layout Itemize
11930 \begin_inset Flex Code
11931 status collapsed
11932
11933 \begin_layout Plain Layout
11934 LabelFont
11935 \end_layout
11936
11937 \end_inset
11938
11939  The font used for the label; see 
11940 \begin_inset CommandInset ref
11941 LatexCommand ref
11942 reference "subsec:Font-description"
11943
11944 \end_inset
11945
11946 .
11947 \end_layout
11948
11949 \begin_layout Itemize
11950 \begin_inset Flex Code
11951 status collapsed
11952
11953 \begin_layout Plain Layout
11954 Decoration
11955 \end_layout
11956
11957 \end_inset
11958
11959  [
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964
11965 \emph on
11966 Classic
11967 \emph default
11968 , Minimalistic, Conglomerate
11969 \end_layout
11970
11971 \end_inset
11972
11973 ] describes the rendering style used for the inset's frame and buttons.
11974 \end_layout
11975
11976 \begin_layout Itemize
11977 \begin_inset Flex Code
11978 status collapsed
11979
11980 \begin_layout Plain Layout
11981 AutoInsert
11982 \end_layout
11983
11984 \end_inset
11985
11986  
11987 \begin_inset Flex Code
11988 status collapsed
11989
11990 \begin_layout Plain Layout
11991 [int=0]
11992 \end_layout
11993
11994 \end_inset
11995
11996  If this is set to 
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 1
12002 \end_layout
12003
12004 \end_inset
12005
12006 , this argument is automatically inserted when the respective style is selected.
12007  Currently, only one argument per style\SpecialChar breakableslash
12008 layout can be automatically inserted.
12009 \end_layout
12010
12011 \begin_layout Itemize
12012 \begin_inset Flex Code
12013 status collapsed
12014
12015 \begin_layout Plain Layout
12016 InsertCotext
12017 \end_layout
12018
12019 \end_inset
12020
12021  
12022 \begin_inset Flex Code
12023 status collapsed
12024
12025 \begin_layout Plain Layout
12026 [int=0]
12027 \end_layout
12028
12029 \end_inset
12030
12031  If this is set to 
12032 \begin_inset Flex Code
12033 status collapsed
12034
12035 \begin_layout Plain Layout
12036 1
12037 \end_layout
12038
12039 \end_inset
12040
12041 , this argument will be inserted with a copy of the co-text (either selected
12042  text or the whole paragraph) as content.
12043 \change_inserted -712698321 1477038290
12044
12045 \end_layout
12046
12047 \begin_layout Itemize
12048
12049 \change_inserted -712698321 1477038425
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054
12055 \change_inserted -712698321 1477038295
12056 PassThru
12057 \end_layout
12058
12059 \end_inset
12060
12061  [
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066
12067 \change_inserted -712698321 1477038311
12068
12069 \emph on
12070 inherited
12071 \emph default
12072 , true, false
12073 \end_layout
12074
12075 \end_inset
12076
12077 ] Whether the contents of this argument should be output in raw form, meaning
12078  without special translations that \SpecialChar LaTeX
12079  would require.
12080  By default, the 
12081 \begin_inset Flex Code
12082 status collapsed
12083
12084 \begin_layout Plain Layout
12085
12086 \change_inserted -712698321 1477038356
12087 PassThru
12088 \end_layout
12089
12090 \end_inset
12091
12092  status is inherited by the inset or paragraph layout the argument belongs
12093  to, true and false change the status for the given argument only.
12094 \change_unchanged
12095
12096 \end_layout
12097
12098 \begin_layout Itemize
12099 \begin_inset Flex Code
12100 status collapsed
12101
12102 \begin_layout Plain Layout
12103 PassThruChars
12104 \end_layout
12105
12106 \end_inset
12107
12108  [
12109 \begin_inset Flex Code
12110 status collapsed
12111
12112 \begin_layout Plain Layout
12113 string of characters
12114 \end_layout
12115
12116 \end_inset
12117
12118 ]
12119 \family typewriter
12120  
12121 \family default
12122 Defines individual characters that should be output in raw form, meaning
12123  without special translations that \SpecialChar LaTeX
12124  would require.
12125  Note that, contrary to PassThru, this needs to be explicitly defined for
12126  arguments.
12127  That is, arguments do not inherit PassThruChars from their parent inset
12128  or layout.
12129 \change_inserted 2047637253 1483899840
12130
12131 \end_layout
12132
12133 \begin_layout Itemize
12134
12135 \change_inserted 2047637253 1483900841
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140
12141 \change_inserted 2047637253 1483900841
12142 IsTocCaption
12143 \end_layout
12144
12145 \end_inset
12146
12147  [
12148 \begin_inset Flex Code
12149 status collapsed
12150
12151 \begin_layout Plain Layout
12152
12153 \change_inserted 2047637253 1483900841
12154
12155 \emph on
12156 0
12157 \end_layout
12158
12159 \end_inset
12160
12161 ,
12162 \begin_inset space \thinspace{}
12163 \end_inset
12164
12165
12166 \begin_inset Flex Code
12167 status collapsed
12168
12169 \begin_layout Plain Layout
12170
12171 \change_inserted 2047637253 1483900841
12172 1
12173 \end_layout
12174
12175 \end_inset
12176
12177 ] If this is set to 1, the argument will output its content in the corresponding
12178  item in the table of contents.
12179  See AddToToc.
12180 \change_unchanged
12181
12182 \end_layout
12183
12184 \begin_layout Standard
12185 By default, the text entered in the \SpecialChar LyX
12186  workarea in the respective layout is
12187  the last (mandatory) argument of a command if the 
12188 \begin_inset Flex Code
12189 status collapsed
12190
12191 \begin_layout Plain Layout
12192 LatexType
12193 \end_layout
12194
12195 \end_inset
12196
12197  is 
12198 \begin_inset Flex Code
12199 status collapsed
12200
12201 \begin_layout Plain Layout
12202 Command
12203 \end_layout
12204
12205 \end_inset
12206
12207 .
12208  However, arguments with the prefix 
12209 \begin_inset Flex Code
12210 status collapsed
12211
12212 \begin_layout Plain Layout
12213 post:
12214 \end_layout
12215
12216 \end_inset
12217
12218  are output after this workarea argument.
12219  Note that post-argument numbering restarts at 1, so the first argument
12220  following the workarea argument is 
12221 \begin_inset Flex Code
12222 status collapsed
12223
12224 \begin_layout Plain Layout
12225 post:1
12226 \end_layout
12227
12228 \end_inset
12229
12230 .
12231  Post-arguments are ignored in any other 
12232 \begin_inset Flex Code
12233 status collapsed
12234
12235 \begin_layout Plain Layout
12236 LatexType
12237 \end_layout
12238
12239 \end_inset
12240
12241  than 
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 Command
12247 \end_layout
12248
12249 \end_inset
12250
12251 .
12252 \end_layout
12253
12254 \begin_layout Standard
12255 Arguments for list 
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260
12261 \backslash
12262 item
12263 \end_layout
12264
12265 \end_inset
12266
12267 s (as in 
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272
12273 \backslash
12274 item[foo]
12275 \end_layout
12276
12277 \end_inset
12278
12279 ) have the prefix 
12280 \begin_inset Flex Code
12281 status collapsed
12282
12283 \begin_layout Plain Layout
12284 item:
12285 \end_layout
12286
12287 \end_inset
12288
12289  followed by the number (e.
12290 \begin_inset space \thinspace{}
12291 \end_inset
12292
12293 g.
12294 \begin_inset space \space{}
12295 \end_inset
12296
12297
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 Argument item:1
12303 \end_layout
12304
12305 \end_inset
12306
12307 ).
12308 \end_layout
12309
12310 \end_deeper
12311 \begin_layout Description
12312 \begin_inset Flex Code
12313 status collapsed
12314
12315 \begin_layout Plain Layout
12316 BabelPreamble
12317 \end_layout
12318
12319 \end_inset
12320
12321  Note that this will completely override any prior 
12322 \begin_inset Flex Code
12323 status collapsed
12324
12325 \begin_layout Plain Layout
12326 BabelPreamble
12327 \end_layout
12328
12329 \end_inset
12330
12331  declaration for this style.
12332  Must end with 
12333 \begin_inset Quotes eld
12334 \end_inset
12335
12336
12337 \begin_inset Flex Code
12338 status collapsed
12339
12340 \begin_layout Plain Layout
12341 EndBabelPreamble
12342 \end_layout
12343
12344 \end_inset
12345
12346
12347 \begin_inset Quotes erd
12348 \end_inset
12349
12350 .
12351  See 
12352 \begin_inset CommandInset ref
12353 LatexCommand ref
12354 reference "subsec:I18n"
12355
12356 \end_inset
12357
12358  for details on its use.
12359 \end_layout
12360
12361 \begin_layout Description
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 BottomSep
12367 \end_layout
12368
12369 \end_inset
12370
12371  [
12372 \begin_inset Flex Code
12373 status collapsed
12374
12375 \begin_layout Plain Layout
12376 float=0
12377 \end_layout
12378
12379 \end_inset
12380
12381 ]
12382 \begin_inset Foot
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 Note that a `float' here is a real number, such as: 1.5.
12387 \end_layout
12388
12389 \end_inset
12390
12391  The vertical space with which the last of a chain of paragraphs with this
12392  style is separated from the following paragraph.
12393  If the next paragraph has another style, the separations are not simply
12394  added, but the maximum is taken.
12395 \end_layout
12396
12397 \begin_layout Description
12398 \begin_inset Flex Code
12399 status collapsed
12400
12401 \begin_layout Plain Layout
12402 Category
12403 \end_layout
12404
12405 \end_inset
12406
12407  [
12408 \begin_inset Flex Code
12409 status collapsed
12410
12411 \begin_layout Plain Layout
12412 string
12413 \end_layout
12414
12415 \end_inset
12416
12417 ] The category for this style.
12418  This is used to group related styles in the style combobox on the toolbar.
12419  Any string can be used, but you may want to use existing categories with
12420  your own styles.
12421  
12422 \end_layout
12423
12424 \begin_layout Description
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 CommandDepth
12430 \end_layout
12431
12432 \end_inset
12433
12434  Depth of XML command.
12435  Used only with XML-type formats.
12436 \end_layout
12437
12438 \begin_layout Description
12439 \begin_inset Flex Code
12440 status collapsed
12441
12442 \begin_layout Plain Layout
12443 CopyStyle
12444 \end_layout
12445
12446 \end_inset
12447
12448  [
12449 \begin_inset Flex Code
12450 status collapsed
12451
12452 \begin_layout Plain Layout
12453 string
12454 \end_layout
12455
12456 \end_inset
12457
12458 ] Copies all the features of an existing style into the current one.
12459  
12460 \end_layout
12461
12462 \begin_layout Description
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 DependsOn
12468 \end_layout
12469
12470 \end_inset
12471
12472  [
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 <name>
12478 \end_layout
12479
12480 \end_inset
12481
12482 ] The name of a style whose preamble should be output 
12483 \emph on
12484 before
12485 \emph default
12486  this one.
12487  This allows to ensure some ordering of the preamble snippets when macros
12488  definitions depend on one another.
12489 \begin_inset Foot
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 Note that, besides that functionality, there is no way to ensure any ordering
12494  of preambles.
12495  The ordering that you see in a given version of \SpecialChar LyX
12496  may change without warning
12497  in later versions.
12498 \end_layout
12499
12500 \end_inset
12501
12502
12503 \end_layout
12504
12505 \begin_layout Description
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510 EndLabeltype
12511 \end_layout
12512
12513 \end_inset
12514
12515  [
12516 \begin_inset Flex Code
12517 status collapsed
12518
12519 \begin_layout Plain Layout
12520
12521 \emph on
12522 No_Label
12523 \emph default
12524 , Box, Filled_Box, Static
12525 \end_layout
12526
12527 \end_inset
12528
12529 ] The type of label that stands at the end of the paragraph (or sequence
12530  of paragraphs if 
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535 LatexType
12536 \end_layout
12537
12538 \end_inset
12539
12540  is
12541 \begin_inset Newline newline
12542 \end_inset
12543
12544
12545 \begin_inset Flex Code
12546 status collapsed
12547
12548 \begin_layout Plain Layout
12549 Environment
12550 \end_layout
12551
12552 \end_inset
12553
12554
12555 \begin_inset Flex Code
12556 status collapsed
12557
12558 \begin_layout Plain Layout
12559 Item_Environment
12560 \end_layout
12561
12562 \end_inset
12563
12564  or 
12565 \begin_inset Flex Code
12566 status collapsed
12567
12568 \begin_layout Plain Layout
12569 List_Environment
12570 \end_layout
12571
12572 \end_inset
12573
12574 ).
12575  
12576 \begin_inset Flex Code
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580 No_Label
12581 \end_layout
12582
12583 \end_inset
12584
12585  means 
12586 \begin_inset Quotes eld
12587 \end_inset
12588
12589 nothing
12590 \begin_inset Quotes erd
12591 \end_inset
12592
12593
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 Box
12599 \end_layout
12600
12601 \end_inset
12602
12603  (resp.
12604 \begin_inset space \space{}
12605 \end_inset
12606
12607
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 Filled_Box
12613 \end_layout
12614
12615 \end_inset
12616
12617 ) is a white (resp.
12618 \begin_inset space ~
12619 \end_inset
12620
12621 black) square suitable for end of proof markers, 
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626 Static
12627 \end_layout
12628
12629 \end_inset
12630
12631  is an explicit text string.
12632 \end_layout
12633
12634 \begin_layout Description
12635 \begin_inset Flex Code
12636 status collapsed
12637
12638 \begin_layout Plain Layout
12639 EndLabelString
12640 \end_layout
12641
12642 \end_inset
12643
12644  [
12645 \begin_inset Flex Code
12646 status collapsed
12647
12648 \begin_layout Plain Layout
12649 string=""
12650 \end_layout
12651
12652 \end_inset
12653
12654 ] The string used for a label with a 
12655 \begin_inset Flex Code
12656 status collapsed
12657
12658 \begin_layout Plain Layout
12659 Static
12660 \end_layout
12661
12662 \end_inset
12663
12664
12665 \begin_inset Newline newline
12666 \end_inset
12667
12668
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 EndLabelType
12674 \end_layout
12675
12676 \end_inset
12677
12678 .
12679  
12680 \end_layout
12681
12682 \begin_layout Description
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 Font
12688 \end_layout
12689
12690 \end_inset
12691
12692  The font used for both the text body 
12693 \emph on
12694 and
12695 \emph default
12696  the label.
12697  See 
12698 \begin_inset CommandInset ref
12699 LatexCommand ref
12700 reference "subsec:Font-description"
12701
12702 \end_inset
12703
12704 .
12705  Note that defining this font automatically defines the 
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710 LabelFont
12711 \end_layout
12712
12713 \end_inset
12714
12715  to the same value.
12716  So you should define this one first if you also want to define 
12717 \begin_inset Flex Code
12718 status collapsed
12719
12720 \begin_layout Plain Layout
12721 LabelFont
12722 \end_layout
12723
12724 \end_inset
12725
12726 .
12727 \end_layout
12728
12729 \begin_layout Description
12730 \begin_inset Flex Code
12731 status collapsed
12732
12733 \begin_layout Plain Layout
12734 ForceLocal
12735 \end_layout
12736
12737 \end_inset
12738
12739  [
12740 \begin_inset Flex Code
12741 status collapsed
12742
12743 \begin_layout Plain Layout
12744 int=0
12745 \end_layout
12746
12747 \end_inset
12748
12749 ] Used for backporting new styles to stable \SpecialChar LyX
12750  versions.
12751  The first stable version that supports this tag is \SpecialChar LyX
12752  2.1.0.
12753  The argument is a number which may either be 0, -1 or any value greater
12754  than zero.
12755  If the 
12756 \begin_inset Flex Code
12757 status collapsed
12758
12759 \begin_layout Plain Layout
12760 ForceLocal
12761 \end_layout
12762
12763 \end_inset
12764
12765  flag of a style is greater than zero, it will always be written to the
12766  document header.
12767  If a .lyx file is read, the style definitions from the document header are
12768  added to the document class.
12769  Therefore even older \SpecialChar LyX
12770  versions can handle the style.
12771  The argument of 
12772 \begin_inset Flex Code
12773 status collapsed
12774
12775 \begin_layout Plain Layout
12776 ForceLocal
12777 \end_layout
12778
12779 \end_inset
12780
12781  is a version number: if the style is read, and the version number is less
12782  than the version number of the already existing style in the document class,
12783  the new style is ignored.
12784  If the version number is greater, the new style replaces the existing style.
12785  A value of -1 means an infinite version number, i.
12786 \begin_inset space \thinspace{}
12787 \end_inset
12788
12789 e.
12790 \begin_inset space \space{}
12791 \end_inset
12792
12793 the style is always used.
12794 \end_layout
12795
12796 \begin_layout Description
12797 \begin_inset Flex Code
12798 status collapsed
12799
12800 \begin_layout Plain Layout
12801 FreeSpacing
12802 \end_layout
12803
12804 \end_inset
12805
12806  [
12807 \begin_inset Flex Code
12808 status collapsed
12809
12810 \begin_layout Plain Layout
12811
12812 \emph on
12813 0
12814 \end_layout
12815
12816 \end_inset
12817
12818 ,
12819 \begin_inset space \thinspace{}
12820 \end_inset
12821
12822
12823 \begin_inset Flex Code
12824 status collapsed
12825
12826 \begin_layout Plain Layout
12827 1
12828 \end_layout
12829
12830 \end_inset
12831
12832 ] Usually \SpecialChar LyX
12833  does not allow you to insert more than one space between words,
12834  since a space is considered as the separation between two words, not a
12835  character or symbol of its own.
12836  This is a very fine thing but sometimes annoying, for example, when typing
12837  program code or plain \SpecialChar LaTeX
12838  code.
12839  For this reason, 
12840 \begin_inset Flex Code
12841 status collapsed
12842
12843 \begin_layout Plain Layout
12844 FreeSpacing
12845 \end_layout
12846
12847 \end_inset
12848
12849  can be enabled.
12850  Note that \SpecialChar LyX
12851  will create protected blanks for the additional blanks when
12852  in another mode than \SpecialChar LaTeX
12853 -mode.
12854 \end_layout
12855
12856 \begin_layout Description
12857 \begin_inset Flex Code
12858 status collapsed
12859
12860 \begin_layout Plain Layout
12861 HTML*
12862 \end_layout
12863
12864 \end_inset
12865
12866  These tags are used with XHTML output.
12867  See 
12868 \begin_inset CommandInset ref
12869 LatexCommand ref
12870 reference "subsec:Paragraph-Style-XHTML"
12871
12872 \end_inset
12873
12874 .
12875 \end_layout
12876
12877 \begin_layout Description
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882 InnerTag
12883 \end_layout
12884
12885 \end_inset
12886
12887  [FIXME] (Used only with XML-type formats.)
12888 \end_layout
12889
12890 \begin_layout Description
12891 \begin_inset Flex Code
12892 status collapsed
12893
12894 \begin_layout Plain Layout
12895 InPreamble
12896 \end_layout
12897
12898 \end_inset
12899
12900  [
12901 \begin_inset Flex Code
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905
12906 \emph on
12907 0
12908 \end_layout
12909
12910 \end_inset
12911
12912 ,
12913 \begin_inset space \thinspace{}
12914 \end_inset
12915
12916
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 1
12922 \end_layout
12923
12924 \end_inset
12925
12926 ] If 
12927 \begin_inset Flex Code
12928 status collapsed
12929
12930 \begin_layout Plain Layout
12931 1
12932 \end_layout
12933
12934 \end_inset
12935
12936 , marks the style as to be included in the document preamble and not in
12937  the document body.
12938  This is useful for document classes that want such information as the title
12939  and author to appear in the preamble.
12940  Note that this works only for styles for which the 
12941 \begin_inset Flex Code
12942 status collapsed
12943
12944 \begin_layout Plain Layout
12945 LatexType
12946 \end_layout
12947
12948 \end_inset
12949
12950  is 
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 Command
12956 \end_layout
12957
12958 \end_inset
12959
12960  or 
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 Paragraph
12966 \end_layout
12967
12968 \end_inset
12969
12970 .
12971 \end_layout
12972
12973 \begin_layout Description
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 InTitle
12979 \end_layout
12980
12981 \end_inset
12982
12983  [
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988
12989 \emph on
12990 0
12991 \end_layout
12992
12993 \end_inset
12994
12995 ,
12996 \begin_inset space \thinspace{}
12997 \end_inset
12998
12999
13000 \begin_inset Flex Code
13001 status collapsed
13002
13003 \begin_layout Plain Layout
13004 1
13005 \end_layout
13006
13007 \end_inset
13008
13009 ] If 
13010 \begin_inset Flex Code
13011 status collapsed
13012
13013 \begin_layout Plain Layout
13014 1
13015 \end_layout
13016
13017 \end_inset
13018
13019 , marks the style as being part of a title block (see also the 
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 TitleLatexType
13025 \end_layout
13026
13027 \end_inset
13028
13029  and 
13030 \begin_inset Flex Code
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 TitleLatexName
13035 \end_layout
13036
13037 \end_inset
13038
13039  global entries).
13040 \end_layout
13041
13042 \begin_layout Description
13043
13044 \change_inserted 2047637253 1483902824
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049
13050 \change_inserted 2047637253 1483902211
13051 IsTocCaption
13052 \end_layout
13053
13054 \end_inset
13055
13056  [
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061
13062 \change_inserted 2047637253 1483902211
13063
13064 \emph on
13065 0
13066 \end_layout
13067
13068 \end_inset
13069
13070 ,
13071 \begin_inset space \thinspace{}
13072 \end_inset
13073
13074
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079
13080 \change_inserted 2047637253 1483902211
13081 1
13082 \end_layout
13083
13084 \end_inset
13085
13086 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13087  of its contents in its item in the table of contents.
13088  Otherwise, only the label, if it exists, appears.
13089 \end_layout
13090
13091 \begin_layout Description
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096 ItemCommand
13097 \end_layout
13098
13099 \end_inset
13100
13101  [
13102 \begin_inset Flex Code
13103 status collapsed
13104
13105 \begin_layout Plain Layout
13106 string="item"
13107 \end_layout
13108
13109 \end_inset
13110
13111 ] The \SpecialChar LaTeX
13112  command sequence declaring an item in a list.
13113  The command is to be defined without the preceding backslash (the default
13114  is 
13115 \begin_inset Quotes eld
13116 \end_inset
13117
13118 item
13119 \begin_inset Quotes erd
13120 \end_inset
13121
13122 , resulting in 
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127
13128 \backslash
13129 item
13130 \end_layout
13131
13132 \end_inset
13133
13134  in the \SpecialChar LaTeX
13135  output).
13136 \end_layout
13137
13138 \begin_layout Description
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 ItemSep
13144 \end_layout
13145
13146 \end_inset
13147
13148  [
13149 \begin_inset Flex Code
13150 status collapsed
13151
13152 \begin_layout Plain Layout
13153 float=0
13154 \end_layout
13155
13156 \end_inset
13157
13158 ] This provides extra space between paragraphs that have the same style.
13159  If you put other styles into an environment, each is separated with the
13160  environment's 
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165 ParSep
13166 \end_layout
13167
13168 \end_inset
13169
13170 .
13171  But the whole items of the environment are additionally separated with
13172  this 
13173 \begin_inset Flex Code
13174 status collapsed
13175
13176 \begin_layout Plain Layout
13177 ItemSep
13178 \end_layout
13179
13180 \end_inset
13181
13182 .
13183  Note that this is a
13184 \emph on
13185  multiplier.
13186 \end_layout
13187
13188 \begin_layout Description
13189 \begin_inset Flex Code
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193 ItemTag
13194 \end_layout
13195
13196 \end_inset
13197
13198  [FIXME] (Used only with XML-type formats.)
13199 \end_layout
13200
13201 \begin_layout Description
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206 KeepEmpty
13207 \end_layout
13208
13209 \end_inset
13210
13211  [
13212 \begin_inset Flex Code
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216
13217 \emph on
13218 0
13219 \end_layout
13220
13221 \end_inset
13222
13223 ,
13224 \begin_inset space \thinspace{}
13225 \end_inset
13226
13227
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 1
13233 \end_layout
13234
13235 \end_inset
13236
13237 ] Usually \SpecialChar LyX
13238  does not allow you to leave a paragraph empty, since it would
13239  lead to empty \SpecialChar LaTeX
13240  output.
13241  There are some cases where this could be desirable however: in a letter
13242  template, the required fields can be provided as empty fields, so that
13243  people do not forget them; in some special classes, a style can be used
13244  as some kind of break, which does not contain actual text.
13245 \end_layout
13246
13247 \begin_layout Description
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 LabelBottomsep
13253 \end_layout
13254
13255 \end_inset
13256
13257  [
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262 float=0
13263 \end_layout
13264
13265 \end_inset
13266
13267 ] The vertical space between the label and the text body.
13268  Only used for labels that are above the text body (
13269 \begin_inset Flex Code
13270 status collapsed
13271
13272 \begin_layout Plain Layout
13273 Top_Environment
13274 \end_layout
13275
13276 \end_inset
13277
13278  and
13279 \begin_inset Newline newline
13280 \end_inset
13281
13282
13283 \begin_inset Flex Code
13284 status collapsed
13285
13286 \begin_layout Plain Layout
13287 Centered_Top_Environment
13288 \end_layout
13289
13290 \end_inset
13291
13292 ).
13293 \end_layout
13294
13295 \begin_layout Description
13296 \begin_inset Flex Code
13297 status collapsed
13298
13299 \begin_layout Plain Layout
13300 LabelCounter
13301 \end_layout
13302
13303 \end_inset
13304
13305  [
13306 \begin_inset Flex Code
13307 status collapsed
13308
13309 \begin_layout Plain Layout
13310 string=""
13311 \end_layout
13312
13313 \end_inset
13314
13315 ] The name of the counter for automatic numbering.
13316  In order to have the counter appear with your label, you will need to reference
13317  it in the 
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322
13323 \family typewriter
13324 LabelString
13325 \end_layout
13326
13327 \end_inset
13328
13329 .
13330  This will work with 
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 LabelType
13336 \end_layout
13337
13338 \end_inset
13339
13340 s, 
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 Static
13346 \end_layout
13347
13348 \end_inset
13349
13350
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 Above
13356 \end_layout
13357
13358 \end_inset
13359
13360  and 
13361 \begin_inset Flex Code
13362 status collapsed
13363
13364 \begin_layout Plain Layout
13365 Centered
13366 \end_layout
13367
13368 \end_inset
13369
13370 , at least.
13371 \begin_inset Newline newline
13372 \end_inset
13373
13374 This 
13375 \emph on
13376 may
13377 \emph default
13378  also be given if 
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 LabelType
13384 \end_layout
13385
13386 \end_inset
13387
13388  is 
13389 \begin_inset Flex Code
13390 status collapsed
13391
13392 \begin_layout Plain Layout
13393 Enumerate
13394 \end_layout
13395
13396 \end_inset
13397
13398 , though this case is a bit complicated.
13399  Suppose you declare 
13400 \begin_inset Quotes eld
13401 \end_inset
13402
13403
13404 \begin_inset Flex Code
13405 status collapsed
13406
13407 \begin_layout Plain Layout
13408 LabelCounter myenum
13409 \end_layout
13410
13411 \end_inset
13412
13413
13414 \begin_inset Quotes erd
13415 \end_inset
13416
13417 .
13418  Then the actual counters used are 
13419 \begin_inset Flex Code
13420 status collapsed
13421
13422 \begin_layout Plain Layout
13423 myenumi
13424 \end_layout
13425
13426 \end_inset
13427
13428
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433 myenumii
13434 \end_layout
13435
13436 \end_inset
13437
13438
13439 \begin_inset Flex Code
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443 myenumiii
13444 \end_layout
13445
13446 \end_inset
13447
13448  and 
13449 \begin_inset Flex Code
13450 status collapsed
13451
13452 \begin_layout Plain Layout
13453 myenumiv
13454 \end_layout
13455
13456 \end_inset
13457
13458 , much as in \SpecialChar LaTeX
13459 .
13460  These counters must all be declared separately.
13461 \begin_inset Newline newline
13462 \end_inset
13463
13464 See 
13465 \begin_inset CommandInset ref
13466 LatexCommand ref
13467 reference "subsec:Counters"
13468
13469 \end_inset
13470
13471  for details on counters.
13472 \end_layout
13473
13474 \begin_layout Description
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479 LabelFont
13480 \end_layout
13481
13482 \end_inset
13483
13484  The font used for the label.
13485  See 
13486 \begin_inset CommandInset ref
13487 LatexCommand ref
13488 reference "subsec:Font-description"
13489
13490 \end_inset
13491
13492 .
13493 \end_layout
13494
13495 \begin_layout Description
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 LabelIndent
13501 \end_layout
13502
13503 \end_inset
13504
13505  [
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 string=""
13511 \end_layout
13512
13513 \end_inset
13514
13515 ] Text that indicates how far a label should be indented.
13516 \end_layout
13517
13518 \begin_layout Description
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 LabelSep
13524 \end_layout
13525
13526 \end_inset
13527
13528  [
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 string=""
13534 \end_layout
13535
13536 \end_inset
13537
13538 ] Text that indicates the amount of horizontal space between the label and
13539  the text body.
13540  Only used for labels that are not above the text body.
13541 \end_layout
13542
13543 \begin_layout Description
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548 LabelString
13549 \end_layout
13550
13551 \end_inset
13552
13553  [
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558 string=""
13559 \end_layout
13560
13561 \end_inset
13562
13563 ] The string used for the label.
13564  When 
13565 \begin_inset Flex Code
13566 status collapsed
13567
13568 \begin_layout Plain Layout
13569 LabelCounter
13570 \end_layout
13571
13572 \end_inset
13573
13574  is set, this string can be contain the special formatting commands described
13575  in 
13576 \begin_inset CommandInset ref
13577 LatexCommand ref
13578 reference "subsec:Counters"
13579
13580 \end_inset
13581
13582 .
13583 \end_layout
13584
13585 \begin_layout Description
13586 \begin_inset Flex Code
13587 status collapsed
13588
13589 \begin_layout Plain Layout
13590 LabelStringAppendix
13591 \end_layout
13592
13593 \end_inset
13594
13595  [
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 string=""
13601 \end_layout
13602
13603 \end_inset
13604
13605 ] This is used inside the appendix instead of
13606 \begin_inset Newline newline
13607 \end_inset
13608
13609
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614 LabelString
13615 \end_layout
13616
13617 \end_inset
13618
13619 .
13620  Note that every 
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 LabelString
13626 \end_layout
13627
13628 \end_inset
13629
13630  statement resets
13631 \begin_inset Newline newline
13632 \end_inset
13633
13634
13635 \begin_inset Flex Code
13636 status collapsed
13637
13638 \begin_layout Plain Layout
13639 LabelStringAppendix
13640 \end_layout
13641
13642 \end_inset
13643
13644  too.
13645 \end_layout
13646
13647 \begin_layout Description
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652 LabelTag
13653 \end_layout
13654
13655 \end_inset
13656
13657  [FIXME] (Used only with XML-type formats.)
13658 \end_layout
13659
13660 \begin_layout Description
13661 \begin_inset Flex Code
13662 status collapsed
13663
13664 \begin_layout Plain Layout
13665 LabelType
13666 \end_layout
13667
13668 \end_inset
13669
13670  [
13671 \begin_inset Flex Code
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675
13676 \emph on
13677 No_Label
13678 \emph default
13679 , Manual, Static, Above, 
13680 \begin_inset Newline newline
13681 \end_inset
13682
13683 Centered, Sensitive, Enumerate,
13684 \begin_inset Newline newline
13685 \end_inset
13686
13687 Itemize, Bibliography
13688 \end_layout
13689
13690 \end_inset
13691
13692 ]
13693 \end_layout
13694
13695 \begin_deeper
13696 \begin_layout Description
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 Manual
13702 \end_layout
13703
13704 \end_inset
13705
13706  means the label is the very first word (up to the first real blank).
13707  Use protected spaces if you want more than one word as the label.
13708  
13709 \end_layout
13710
13711 \begin_layout Description
13712 \begin_inset Flex Code
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 Static
13717 \end_layout
13718
13719 \end_inset
13720
13721  means the label is simply what is declared as 
13722 \begin_inset Flex Code
13723 status collapsed
13724
13725 \begin_layout Plain Layout
13726 LabelString
13727 \end_layout
13728
13729 \end_inset
13730
13731 .
13732  This will be displayed 
13733 \begin_inset Quotes eld
13734 \end_inset
13735
13736 inline
13737 \begin_inset Quotes erd
13738 \end_inset
13739
13740 , at the beginning of the paragraph.
13741  If the 
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 LatexType
13747 \end_layout
13748
13749 \end_inset
13750
13751  is 
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 Environment
13757 \end_layout
13758
13759 \end_inset
13760
13761 , then it will be displayed only in the first paragraph of any sequence
13762  of paragraphs with the same 
13763 \begin_inset Flex Code
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 Style
13768 \end_layout
13769
13770 \end_inset
13771
13772 .
13773 \end_layout
13774
13775 \begin_layout Description
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 Above
13781 \end_layout
13782
13783 \end_inset
13784
13785
13786 \begin_inset space ~
13787 \end_inset
13788
13789 and
13790 \begin_inset space ~
13791 \end_inset
13792
13793
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 Centered
13799 \end_layout
13800
13801 \end_inset
13802
13803  are special cases of 
13804 \begin_inset Flex Code
13805 status collapsed
13806
13807 \begin_layout Plain Layout
13808 Static
13809 \end_layout
13810
13811 \end_inset
13812
13813 .
13814  The label will be printed above the paragraph either at the beginning of
13815  the line or centered.
13816 \end_layout
13817
13818 \begin_layout Description
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 Sensitive
13824 \end_layout
13825
13826 \end_inset
13827
13828  is a special case for the caption-labels 
13829 \begin_inset Quotes eld
13830 \end_inset
13831
13832 Figure
13833 \begin_inset Quotes erd
13834 \end_inset
13835
13836  and 
13837 \begin_inset Quotes eld
13838 \end_inset
13839
13840 Table
13841 \begin_inset Quotes erd
13842 \end_inset
13843
13844 .
13845 \begin_inset Newline newline
13846 \end_inset
13847
13848
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853 Sensitive
13854 \end_layout
13855
13856 \end_inset
13857
13858  means the (hardcoded) label string depends on the kind of float: It is
13859  hardcoded to be `FloatType N', where N is the value of the counter associated
13860  with the float.
13861  For the case that a caption is inserted outside of a float the 
13862 \begin_inset Flex Code
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 LabelString
13867 \end_layout
13868
13869 \end_inset
13870
13871  will appear as 
13872 \begin_inset Quotes eld
13873 \end_inset
13874
13875 Senseless!
13876 \begin_inset Quotes erd
13877 \end_inset
13878
13879 .
13880 \end_layout
13881
13882 \begin_layout Description
13883 \begin_inset Flex Code
13884 status collapsed
13885
13886 \begin_layout Plain Layout
13887 Enumerate
13888 \end_layout
13889
13890 \end_inset
13891
13892  produces the usual sort of enumeration labels.
13893  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13894  small Roman numerals, and uppercase letters for the four possible depths.
13895 \end_layout
13896
13897 \begin_layout Description
13898 \begin_inset Flex Code
13899 status collapsed
13900
13901 \begin_layout Plain Layout
13902 Itemize
13903 \end_layout
13904
13905 \end_inset
13906
13907  produces various bullets at the different levels.
13908  It is also hardcoded.
13909 \end_layout
13910
13911 \begin_layout Description
13912 \begin_inset Flex Code
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916 Bibliography
13917 \end_layout
13918
13919 \end_inset
13920
13921  should be used only with 
13922 \begin_inset Flex Code
13923 status collapsed
13924
13925 \begin_layout Plain Layout
13926 LatexType BibEnvironment
13927 \end_layout
13928
13929 \end_inset
13930
13931 .
13932 \end_layout
13933
13934 \end_deeper
13935 \begin_layout Description
13936 \begin_inset Flex Code
13937 status collapsed
13938
13939 \begin_layout Plain Layout
13940 LangPreamble
13941 \end_layout
13942
13943 \end_inset
13944
13945  Note that this will completely override any prior 
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950 LangPreamble
13951 \end_layout
13952
13953 \end_inset
13954
13955  declaration for this style.
13956  Must end with 
13957 \begin_inset Quotes eld
13958 \end_inset
13959
13960
13961 \begin_inset Flex Code
13962 status collapsed
13963
13964 \begin_layout Plain Layout
13965 EndLangPreamble
13966 \end_layout
13967
13968 \end_inset
13969
13970
13971 \begin_inset Quotes erd
13972 \end_inset
13973
13974 .
13975  See 
13976 \begin_inset CommandInset ref
13977 LatexCommand ref
13978 reference "subsec:I18n"
13979
13980 \end_inset
13981
13982  for details on its use.
13983 \end_layout
13984
13985 \begin_layout Description
13986 \begin_inset Flex Code
13987 status collapsed
13988
13989 \begin_layout Plain Layout
13990 LatexName
13991 \end_layout
13992
13993 \end_inset
13994
13995  [
13996 \begin_inset Flex Code
13997 status collapsed
13998
13999 \begin_layout Plain Layout
14000 <name>
14001 \end_layout
14002
14003 \end_inset
14004
14005 ] The name of the corresponding \SpecialChar LaTeX
14006  stuff.
14007  Either the environment or command name.
14008 \end_layout
14009
14010 \begin_layout Description
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 LatexParam
14016 \end_layout
14017
14018 \end_inset
14019
14020  [
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 <parameter>
14026 \end_layout
14027
14028 \end_inset
14029
14030 ] An optional parameter for the corresponding 
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 LatexName
14036 \end_layout
14037
14038 \end_inset
14039
14040  stuff.
14041  This parameter cannot be changed from within \SpecialChar LyX
14042  (use 
14043 \begin_inset Flex Code
14044 status collapsed
14045
14046 \begin_layout Plain Layout
14047 Argument
14048 \end_layout
14049
14050 \end_inset
14051
14052  for customizable parameters).
14053  This will be output as is after all \SpecialChar LaTeX
14054  
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 Argument
14060 \end_layout
14061
14062 \end_inset
14063
14064 s.
14065 \end_layout
14066
14067 \begin_layout Description
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 LatexType
14073 \end_layout
14074
14075 \end_inset
14076
14077  [
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082
14083 \emph on
14084 Paragraph
14085 \emph default
14086 , Command, Environment, Item_Environment,
14087 \begin_inset Newline newline
14088 \end_inset
14089
14090 List_Environment, Bib_Environment
14091 \end_layout
14092
14093 \end_inset
14094
14095 ] How the style should be translated into \SpecialChar LaTeX
14096 .
14097 \begin_inset Foot
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 \begin_inset Flex Code
14102 status collapsed
14103
14104 \begin_layout Plain Layout
14105 LatexType
14106 \end_layout
14107
14108 \end_inset
14109
14110  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14111  Visit the SGML class files for specific examples.
14112 \end_layout
14113
14114 \end_inset
14115
14116
14117 \end_layout
14118
14119 \begin_deeper
14120 \begin_layout Description
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 Paragraph
14126 \end_layout
14127
14128 \end_inset
14129
14130  means nothing special.
14131 \end_layout
14132
14133 \begin_layout Description
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 Command
14139 \end_layout
14140
14141 \end_inset
14142
14143  means 
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148
14149 \backslash
14150
14151 \emph on
14152 LatexName
14153 \emph default
14154 {\SpecialChar ldots
14155 }
14156 \end_layout
14157
14158 \end_inset
14159
14160 .
14161 \end_layout
14162
14163 \begin_layout Description
14164 \begin_inset Flex Code
14165 status collapsed
14166
14167 \begin_layout Plain Layout
14168 Environment
14169 \end_layout
14170
14171 \end_inset
14172
14173  means 
14174 \begin_inset Flex Code
14175 status collapsed
14176
14177 \begin_layout Plain Layout
14178
14179 \backslash
14180 begin{
14181 \emph on
14182 LatexName
14183 \emph default
14184 }\SpecialChar ldots
14185
14186 \backslash
14187 end{
14188 \emph on
14189 LatexName
14190 \emph default
14191 }
14192 \end_layout
14193
14194 \end_inset
14195
14196 .
14197  
14198 \end_layout
14199
14200 \begin_layout Description
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 Item_Environment
14206 \end_layout
14207
14208 \end_inset
14209
14210  is the same as 
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 Environment
14216 \end_layout
14217
14218 \end_inset
14219
14220 , except that an 
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225
14226 \backslash
14227 item
14228 \end_layout
14229
14230 \end_inset
14231
14232  is generated for each paragraph of this environment.
14233  
14234 \end_layout
14235
14236 \begin_layout Description
14237 \begin_inset Flex Code
14238 status collapsed
14239
14240 \begin_layout Plain Layout
14241 List_Environment
14242 \end_layout
14243
14244 \end_inset
14245
14246  is the same as 
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 Item_Environment
14252 \end_layout
14253
14254 \end_inset
14255
14256 , except that
14257 \begin_inset Newline newline
14258 \end_inset
14259
14260
14261 \begin_inset Flex Code
14262 status collapsed
14263
14264 \begin_layout Plain Layout
14265 LabelWidthString
14266 \end_layout
14267
14268 \end_inset
14269
14270  is passed as an argument to the environment.
14271 \begin_inset Newline newline
14272 \end_inset
14273
14274
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 LabelWidthString
14280 \end_layout
14281
14282 \end_inset
14283
14284  can be defined in the 
14285 \begin_inset Flex Noun
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 Edit\SpecialChar menuseparator
14290 Paragraph
14291 \begin_inset space ~
14292 \end_inset
14293
14294 settings
14295 \end_layout
14296
14297 \end_inset
14298
14299  dialog.
14300 \end_layout
14301
14302 \begin_layout Description
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 Bib_Environment
14308 \end_layout
14309
14310 \end_inset
14311
14312  is like 
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 Environment
14318 \end_layout
14319
14320 \end_inset
14321
14322  but adds the necessary mandatory argument (the longest label) to the begin
14323  statement of the bibliography environment:
14324 \begin_inset Newline newline
14325 \end_inset
14326
14327
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332
14333 \backslash
14334 begin{thebibliography}{99}
14335 \end_layout
14336
14337 \end_inset
14338
14339 .
14340  It is therefore only useful for bibliography environments.
14341  The default longest label 
14342 \begin_inset Quotes eld
14343 \end_inset
14344
14345 99
14346 \begin_inset Quotes erd
14347 \end_inset
14348
14349  can be changed by the user in the paragraph settings of a bibliography
14350  item.
14351 \end_layout
14352
14353 \begin_layout Standard
14354 Putting the last few things together, the \SpecialChar LaTeX
14355  output will be either: 
14356 \end_layout
14357
14358 \begin_layout LyX-Code
14359
14360 \backslash
14361 LatexName[LatexParam]{\SpecialChar ldots
14362 }
14363 \end_layout
14364
14365 \begin_layout Standard
14366 or: 
14367 \end_layout
14368
14369 \begin_layout LyX-Code
14370
14371 \backslash
14372 begin{LatexName}[LatexParam] \SpecialChar ldots
14373  
14374 \backslash
14375 end{LatexName}.
14376 \end_layout
14377
14378 \begin_layout Standard
14379 depending upon the \SpecialChar LaTeX
14380  type.
14381 \end_layout
14382
14383 \end_deeper
14384 \begin_layout Description
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 LeftDelim
14390 \end_layout
14391
14392 \end_inset
14393
14394  [
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399 string
14400 \end_layout
14401
14402 \end_inset
14403
14404 ] A string that is put at the beginning of the style content.
14405  A line break in the output can be indicated by 
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 <br/>
14411 \end_layout
14412
14413 \end_inset
14414
14415 .
14416 \end_layout
14417
14418 \begin_layout Description
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 LeftMargin
14424 \end_layout
14425
14426 \end_inset
14427
14428  [
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 string=""
14434 \end_layout
14435
14436 \end_inset
14437
14438 ] If you put styles into environments, the different 
14439 \begin_inset Flex Code
14440 status collapsed
14441
14442 \begin_layout Plain Layout
14443 LeftMargin
14444 \end_layout
14445
14446 \end_inset
14447
14448  are not simply added, but added with a factor 
14449 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14450 \end_inset
14451
14452 .
14453  Note that this parameter is also used when 
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 Margin
14459 \end_layout
14460
14461 \end_inset
14462
14463  is defined as 
14464 \begin_inset Flex Code
14465 status collapsed
14466
14467 \begin_layout Plain Layout
14468 Manual
14469 \end_layout
14470
14471 \end_inset
14472
14473  or 
14474 \begin_inset Flex Code
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478 Dynamic
14479 \end_layout
14480
14481 \end_inset
14482
14483 .
14484  Then it is added to the manual or dynamic margin.
14485 \begin_inset Newline newline
14486 \end_inset
14487
14488 For example 
14489 \begin_inset Quotes eld
14490 \end_inset
14491
14492
14493 \begin_inset Flex Code
14494 status collapsed
14495
14496 \begin_layout Plain Layout
14497 MM
14498 \end_layout
14499
14500 \end_inset
14501
14502
14503 \begin_inset Quotes erd
14504 \end_inset
14505
14506  means that the paragraph is indented with the width of 
14507 \begin_inset Quotes eld
14508 \end_inset
14509
14510
14511 \begin_inset Flex Code
14512 status collapsed
14513
14514 \begin_layout Plain Layout
14515 MM
14516 \end_layout
14517
14518 \end_inset
14519
14520
14521 \begin_inset Quotes erd
14522 \end_inset
14523
14524  in the normal font.
14525  You can get a negative width by prefixing the string with 
14526 \begin_inset Quotes eld
14527 \end_inset
14528
14529
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 -
14535 \end_layout
14536
14537 \end_inset
14538
14539
14540 \begin_inset Quotes erd
14541 \end_inset
14542
14543 .
14544  This way was chosen so that the look is the same with each used screen
14545  font.
14546 \end_layout
14547
14548 \begin_layout Description
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 Margin
14554 \end_layout
14555
14556 \end_inset
14557
14558  [
14559 \begin_inset Flex Code
14560 status collapsed
14561
14562 \begin_layout Plain Layout
14563
14564 \emph on
14565 Static
14566 \emph default
14567 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14568 \end_layout
14569
14570 \end_inset
14571
14572
14573 \begin_inset Newline newline
14574 \end_inset
14575
14576 The kind of margin that the style has on the left side.
14577 \end_layout
14578
14579 \begin_deeper
14580 \begin_layout Description
14581 \begin_inset Flex Code
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585 Static
14586 \end_layout
14587
14588 \end_inset
14589
14590  just means a fixed margin.
14591 \end_layout
14592
14593 \begin_layout Description
14594 \begin_inset Flex Code
14595 status collapsed
14596
14597 \begin_layout Plain Layout
14598 Manual
14599 \end_layout
14600
14601 \end_inset
14602
14603  means that the left margin depends on the string entered in the 
14604 \begin_inset Flex Noun
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Edit\SpecialChar menuseparator
14609 Paragraph
14610 \begin_inset space ~
14611 \end_inset
14612
14613 Settings
14614 \end_layout
14615
14616 \end_inset
14617
14618  dialog.
14619  This is used to typeset nice lists without tabulators.
14620 \end_layout
14621
14622 \begin_layout Description
14623 \begin_inset Flex Code
14624 status collapsed
14625
14626 \begin_layout Plain Layout
14627 Dynamic
14628 \end_layout
14629
14630 \end_inset
14631
14632  means that the margin depends on the size of the label.
14633  This is used for automatic enumerated headlines.
14634  It is obvious that the headline 
14635 \begin_inset Quotes eld
14636 \end_inset
14637
14638 5.4.3.2.1 Very long headline
14639 \begin_inset Quotes erd
14640 \end_inset
14641
14642  must have a wider left margin (as wide as 
14643 \begin_inset Quotes eld
14644 \end_inset
14645
14646 5.4.3.2.1
14647 \begin_inset Quotes erd
14648 \end_inset
14649
14650  plus the space) than 
14651 \begin_inset Quotes eld
14652 \end_inset
14653
14654 3.2 Very long headline
14655 \begin_inset Quotes erd
14656 \end_inset
14657
14658 , even if standard 
14659 \begin_inset Quotes eld
14660 \end_inset
14661
14662 word processors
14663 \begin_inset Quotes erd
14664 \end_inset
14665
14666  are not able to do this.
14667 \end_layout
14668
14669 \begin_layout Description
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 First_Dynamic
14675 \end_layout
14676
14677 \end_inset
14678
14679  is similar, but only the very first row of the paragraph is dynamic, while
14680  the others are static; this is used, for example, for descriptions.
14681 \end_layout
14682
14683 \begin_layout Description
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 Right_Address_Box
14689 \end_layout
14690
14691 \end_inset
14692
14693  means the margin is chosen in a way that the longest row of this paragraph
14694  fits to the right margin.
14695  This is used to typeset an address on the right edge of the page.
14696 \end_layout
14697
14698 \end_deeper
14699 \begin_layout Description
14700 \begin_inset Flex Code
14701 status collapsed
14702
14703 \begin_layout Plain Layout
14704 NeedProtect
14705 \end_layout
14706
14707 \end_inset
14708
14709  [
14710 \begin_inset Flex Code
14711 status collapsed
14712
14713 \begin_layout Plain Layout
14714
14715 \emph on
14716 0
14717 \end_layout
14718
14719 \end_inset
14720
14721 ,
14722 \begin_inset space \thinspace{}
14723 \end_inset
14724
14725
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 1
14731 \end_layout
14732
14733 \end_inset
14734
14735 ] Whether fragile commands in this style should be 
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740
14741 \backslash
14742 protect
14743 \end_layout
14744
14745 \end_inset
14746
14747 'ed.
14748  (Note: This is 
14749 \emph on
14750 not
14751 \emph default
14752  whether this command should itself be protected.)
14753 \end_layout
14754
14755 \begin_layout Description
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Newline
14761 \end_layout
14762
14763 \end_inset
14764
14765  [
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 0
14771 \end_layout
14772
14773 \end_inset
14774
14775 ,
14776 \begin_inset space \thinspace{}
14777 \end_inset
14778
14779
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784
14785 \emph on
14786 1
14787 \end_layout
14788
14789 \end_inset
14790
14791 ] Whether newlines are translated into \SpecialChar LaTeX
14792  newlines (
14793 \begin_inset Flex Code
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797
14798 \backslash
14799
14800 \backslash
14801
14802 \end_layout
14803
14804 \end_inset
14805
14806 ) or not.
14807  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14808  editing
14809  inside \SpecialChar LyX
14810 .
14811 \end_layout
14812
14813 \begin_layout Description
14814 \begin_inset Flex Code
14815 status collapsed
14816
14817 \begin_layout Plain Layout
14818 NextNoIndent
14819 \end_layout
14820
14821 \end_inset
14822
14823  [
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828
14829 \emph on
14830 0
14831 \end_layout
14832
14833 \end_inset
14834
14835 ,
14836 \begin_inset space \thinspace{}
14837 \end_inset
14838
14839
14840 \begin_inset Flex Code
14841 status collapsed
14842
14843 \begin_layout Plain Layout
14844 1
14845 \end_layout
14846
14847 \end_inset
14848
14849 ] If set to true, and if 
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 DefaultStyle
14855 \end_layout
14856
14857 \end_inset
14858
14859  (usually 
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864 Standard
14865 \end_layout
14866
14867 \end_inset
14868
14869 ) paragraphs are being indented, then the indentation of such a paragraph
14870  following one of this type will be suppressed.
14871  (So this will not affect the display of non-default paragraphs.)
14872 \end_layout
14873
14874 \begin_layout Description
14875 \begin_inset Flex Code
14876 status collapsed
14877
14878 \begin_layout Plain Layout
14879 ObsoletedBy
14880 \end_layout
14881
14882 \end_inset
14883
14884  [
14885 \begin_inset Flex Code
14886 status collapsed
14887
14888 \begin_layout Plain Layout
14889 <name>
14890 \end_layout
14891
14892 \end_inset
14893
14894 ] Name of a style that has replaced this style.
14895  This is used to rename a style, while keeping backward compatibility.
14896 \end_layout
14897
14898 \begin_layout Description
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903 ParagraphGroup
14904 \end_layout
14905
14906 \end_inset
14907
14908  [
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 0
14914 \end_layout
14915
14916 \end_inset
14917
14918 ,
14919 \begin_inset space \thinspace{}
14920 \end_inset
14921
14922
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 1
14928 \end_layout
14929
14930 \end_inset
14931
14932 ] Determines whether consecutive pragraphs of the same type are treated
14933  as belonging together.
14934  This has the effect that the 
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 GuiLabel
14940 \end_layout
14941
14942 \end_inset
14943
14944  is only printed once before such a group.
14945  By default, this is true for 
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 LaTeXType
14951 \end_layout
14952
14953 \end_inset
14954
14955  
14956 \begin_inset Flex Code
14957 status collapsed
14958
14959 \begin_layout Plain Layout
14960 Environment
14961 \end_layout
14962
14963 \end_inset
14964
14965  and 
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 Bib_Environment
14971 \end_layout
14972
14973 \end_inset
14974
14975  and false for all other types.
14976 \end_layout
14977
14978 \begin_layout Description
14979 \begin_inset Flex Code
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983 ParbreakIsNewline
14984 \end_layout
14985
14986 \end_inset
14987
14988  [
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993
14994 \emph on
14995 0
14996 \end_layout
14997
14998 \end_inset
14999
15000 ,
15001 \begin_inset space \thinspace{}
15002 \end_inset
15003
15004
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009 1
15010 \end_layout
15011
15012 \end_inset
15013
15014 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15015  output,
15016  but only by a line break; together with 
15017 \begin_inset Flex Code
15018 status collapsed
15019
15020 \begin_layout Plain Layout
15021 PassThru 1
15022 \end_layout
15023
15024 \end_inset
15025
15026 , this allows to emulate a plain text editor (like the ERT inset).
15027 \end_layout
15028
15029 \begin_layout Description
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 ParIndent
15035 \end_layout
15036
15037 \end_inset
15038
15039  [
15040 \begin_inset Flex Code
15041 status collapsed
15042
15043 \begin_layout Plain Layout
15044 string=""
15045 \end_layout
15046
15047 \end_inset
15048
15049 ] The indent of the very first line of a paragraph.
15050  The
15051 \begin_inset Newline newline
15052 \end_inset
15053
15054
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 Parindent
15060 \end_layout
15061
15062 \end_inset
15063
15064  will be fixed for a certain style.
15065  The exception is the default style, since the indentation for these paragraphs
15066  can be prohibited with 
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 NextNoIndent
15072 \end_layout
15073
15074 \end_inset
15075
15076 .
15077  Also, 
15078 \begin_inset Flex Code
15079 status collapsed
15080
15081 \begin_layout Plain Layout
15082 Standard
15083 \end_layout
15084
15085 \end_inset
15086
15087  style paragraphs inside environments use the 
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 Parindent
15093 \end_layout
15094
15095 \end_inset
15096
15097  of the environment, not their native one.
15098  For example, 
15099 \begin_inset Flex Code
15100 status collapsed
15101
15102 \begin_layout Plain Layout
15103 Standard
15104 \end_layout
15105
15106 \end_inset
15107
15108  paragraphs inside an enumeration are not indented.
15109 \end_layout
15110
15111 \begin_layout Description
15112 \begin_inset Flex Code
15113 status collapsed
15114
15115 \begin_layout Plain Layout
15116 ParSep
15117 \end_layout
15118
15119 \end_inset
15120
15121  [
15122 \begin_inset Flex Code
15123 status collapsed
15124
15125 \begin_layout Plain Layout
15126 float=0
15127 \end_layout
15128
15129 \end_inset
15130
15131 ] The vertical space between two paragraphs of this style.
15132 \end_layout
15133
15134 \begin_layout Description
15135 \begin_inset Flex Code
15136 status collapsed
15137
15138 \begin_layout Plain Layout
15139 Parskip
15140 \end_layout
15141
15142 \end_inset
15143
15144  [
15145 \begin_inset Flex Code
15146 status collapsed
15147
15148 \begin_layout Plain Layout
15149 float=0
15150 \end_layout
15151
15152 \end_inset
15153
15154 ] \SpecialChar LyX
15155  allows the user to choose either 
15156 \begin_inset Quotes eld
15157 \end_inset
15158
15159 indent
15160 \begin_inset Quotes erd
15161 \end_inset
15162
15163  or 
15164 \begin_inset Quotes eld
15165 \end_inset
15166
15167 skip
15168 \begin_inset Quotes erd
15169 \end_inset
15170
15171  to separate paragraphs.
15172  When 
15173 \begin_inset Quotes eld
15174 \end_inset
15175
15176 indent
15177 \begin_inset Quotes erd
15178 \end_inset
15179
15180  is chosen, 
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 Parskip
15186 \end_layout
15187
15188 \end_inset
15189
15190  is ignored.
15191  When 
15192 \begin_inset Quotes eld
15193 \end_inset
15194
15195 skip
15196 \begin_inset Quotes erd
15197 \end_inset
15198
15199  is chosen, 
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 ParIndent
15205 \end_layout
15206
15207 \end_inset
15208
15209  is ignored and all paragraphs are separated by the 
15210 \begin_inset Flex Code
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214 Parskip
15215 \end_layout
15216
15217 \end_inset
15218
15219  argument.
15220  The vertical space is calculated with 
15221 \begin_inset Flex Code
15222 status collapsed
15223
15224 \begin_layout Plain Layout
15225 Parskip
15226 \begin_inset space ~
15227 \end_inset
15228
15229 * DefaultHeight
15230 \end_layout
15231
15232 \end_inset
15233
15234  where 
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239 DefaultHeight
15240 \end_layout
15241
15242 \end_inset
15243
15244  is the height of a row with the normal font.
15245  This way, the look stays the same with different screen fonts.
15246 \end_layout
15247
15248 \begin_layout Description
15249 \begin_inset Flex Code
15250 status collapsed
15251
15252 \begin_layout Plain Layout
15253 PassThru
15254 \end_layout
15255
15256 \end_inset
15257
15258  [
15259 \begin_inset Flex Code
15260 status collapsed
15261
15262 \begin_layout Plain Layout
15263
15264 \emph on
15265 0
15266 \end_layout
15267
15268 \end_inset
15269
15270 ,
15271 \begin_inset space \thinspace{}
15272 \end_inset
15273
15274
15275 \begin_inset Flex Code
15276 status collapsed
15277
15278 \begin_layout Plain Layout
15279 1
15280 \end_layout
15281
15282 \end_inset
15283
15284 ] Whether the contents of this paragraph should be output in raw form, meaning
15285  without special translations that \SpecialChar LaTeX
15286  would require.
15287 \end_layout
15288
15289 \begin_layout Description
15290 \begin_inset Flex Code
15291 status collapsed
15292
15293 \begin_layout Plain Layout
15294 PassThruChars
15295 \end_layout
15296
15297 \end_inset
15298
15299  [
15300 \begin_inset Flex Code
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304 string
15305 \end_layout
15306
15307 \end_inset
15308
15309 ]
15310 \family typewriter
15311  
15312 \family default
15313 Defines individual characters that should be output in raw form, meaning
15314  without special translations that \SpecialChar LaTeX
15315  would require.
15316 \end_layout
15317
15318 \begin_layout Description
15319 \begin_inset Flex Code
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323 Preamble
15324 \end_layout
15325
15326 \end_inset
15327
15328  Information to be included in the \SpecialChar LaTeX
15329  preamble when this style is used.
15330  Used to define macros, load packages, etc., required by this particular
15331  style.
15332  Must end with 
15333 \begin_inset Quotes eld
15334 \end_inset
15335
15336
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 EndPreamble
15342 \end_layout
15343
15344 \end_inset
15345
15346
15347 \begin_inset Quotes erd
15348 \end_inset
15349
15350 .
15351 \end_layout
15352
15353 \begin_layout Description
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358 RefPrefix
15359 \end_layout
15360
15361 \end_inset
15362
15363  [
15364 \begin_inset Flex Code
15365 status collapsed
15366
15367 \begin_layout Plain Layout
15368 string
15369 \end_layout
15370
15371 \end_inset
15372
15373 ] The prefix to use when creating labels referring to paragraphs of this
15374  type.
15375  This allows the use of formatted references.
15376 \end_layout
15377
15378 \begin_layout Description
15379 \begin_inset Flex Code
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 Requires 
15384 \end_layout
15385
15386 \end_inset
15387
15388  [
15389 \begin_inset Flex Code
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 string
15394 \end_layout
15395
15396 \end_inset
15397
15398 ] Whether the style requires the feature 
15399 \begin_inset Flex Code
15400 status collapsed
15401
15402 \begin_layout Plain Layout
15403 string
15404 \end_layout
15405
15406 \end_inset
15407
15408  (see 
15409 \begin_inset CommandInset ref
15410 LatexCommand ref
15411 reference "chap:List-of-functions"
15412
15413 \end_inset
15414
15415  for the list of features).
15416  If you require a package with specific options, you can additionally use
15417  
15418 \begin_inset Flex Code
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422 PackageOptions
15423 \end_layout
15424
15425 \end_inset
15426
15427  as a general text class parameter (see 
15428 \begin_inset CommandInset ref
15429 LatexCommand ref
15430 reference "subsec:General-text-class"
15431
15432 \end_inset
15433
15434 ).
15435 \end_layout
15436
15437 \begin_layout Description
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 ResetArgs
15443 \end_layout
15444
15445 \end_inset
15446
15447  [
15448 \begin_inset Flex Code
15449 status collapsed
15450
15451 \begin_layout Plain Layout
15452
15453 \emph on
15454 0
15455 \end_layout
15456
15457 \end_inset
15458
15459 ,
15460 \begin_inset Flex Code
15461 status collapsed
15462
15463 \begin_layout Plain Layout
15464 1
15465 \end_layout
15466
15467 \end_inset
15468
15469 ] Resets the \SpecialChar LaTeX
15470  arguments of this style (as defined via the 
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 Argument
15476 \end_layout
15477
15478 \end_inset
15479
15480  tag).
15481  This is useful if you have copied a style via 
15482 \begin_inset Flex Code
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486 CopyStyle
15487 \end_layout
15488
15489 \end_inset
15490
15491 , but you do not want to inherit its (required and optional) arguments.
15492 \change_inserted 2089657418 1476488475
15493
15494 \end_layout
15495
15496 \begin_layout Description
15497
15498 \change_inserted 2089657418 1476488475
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503
15504 \change_inserted 2089657418 1476488475
15505 ResumeCounter
15506 \end_layout
15507
15508 \end_inset
15509
15510  [
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515
15516 \change_inserted 2089657418 1476488475
15517
15518 \emph on
15519 0
15520 \end_layout
15521
15522 \end_inset
15523
15524 ,
15525 \begin_inset Flex Code
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529
15530 \change_inserted 2089657418 1476488475
15531 1
15532 \end_layout
15533
15534 \end_inset
15535
15536 ] Resumes a counter that is usually reset at each new sequence of layouts.
15537  This is currently only useful when 
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542
15543 \change_inserted 2089657418 1476488475
15544 LabelType
15545 \end_layout
15546
15547 \end_inset
15548
15549  is 
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554
15555 \change_inserted 2089657418 1476488475
15556 Enumerate
15557 \end_layout
15558
15559 \end_inset
15560
15561 .
15562 \change_unchanged
15563
15564 \end_layout
15565
15566 \begin_layout Description
15567 \begin_inset Flex Code
15568 status collapsed
15569
15570 \begin_layout Plain Layout
15571 RightDelim
15572 \end_layout
15573
15574 \end_inset
15575
15576  [
15577 \begin_inset Flex Code
15578 status collapsed
15579
15580 \begin_layout Plain Layout
15581 string
15582 \end_layout
15583
15584 \end_inset
15585
15586 ] A string that is put at the end of the layout content.
15587  A line break in the output can be indicated by 
15588 \begin_inset Flex Code
15589 status collapsed
15590
15591 \begin_layout Plain Layout
15592 <br/>
15593 \end_layout
15594
15595 \end_inset
15596
15597 .
15598 \end_layout
15599
15600 \begin_layout Description
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 RightMargin
15606 \end_layout
15607
15608 \end_inset
15609
15610  [
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615 string=""
15616 \end_layout
15617
15618 \end_inset
15619
15620 ] Similar to 
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 LeftMargin
15626 \end_layout
15627
15628 \end_inset
15629
15630 .
15631 \end_layout
15632
15633 \begin_layout Description
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638 Spacing
15639 \end_layout
15640
15641 \end_inset
15642
15643  [
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648
15649 \emph on
15650 single
15651 \end_layout
15652
15653 \end_inset
15654
15655
15656 \begin_inset Flex Code
15657 status collapsed
15658
15659 \begin_layout Plain Layout
15660 onehalf
15661 \end_layout
15662
15663 \end_inset
15664
15665
15666 \begin_inset Flex Code
15667 status collapsed
15668
15669 \begin_layout Plain Layout
15670 double
15671 \end_layout
15672
15673 \end_inset
15674
15675
15676 \begin_inset Flex Code
15677 status collapsed
15678
15679 \begin_layout Plain Layout
15680 other
15681 \begin_inset space ~
15682 \end_inset
15683
15684 <value>
15685 \end_layout
15686
15687 \end_inset
15688
15689 ] This defines what the default spacing should be in the style.
15690  The arguments 
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 single
15696 \end_layout
15697
15698 \end_inset
15699
15700
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 onehalf
15706 \end_layout
15707
15708 \end_inset
15709
15710  and 
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 double
15716 \end_layout
15717
15718 \end_inset
15719
15720  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15721  If you specify the argument 
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 other
15727 \end_layout
15728
15729 \end_inset
15730
15731 , then you must also provide a value argument which will be the actual multiplie
15732 r value.
15733  Note that, contrary to other parameters, 
15734 \begin_inset Flex Code
15735 status collapsed
15736
15737 \begin_layout Plain Layout
15738 Spacing
15739 \end_layout
15740
15741 \end_inset
15742
15743  implies the generation of specific \SpecialChar LaTeX
15744  code, using the \SpecialChar LaTeX
15745  package 
15746 \family roman
15747
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 setspace
15753 \end_layout
15754
15755 \end_inset
15756
15757 .
15758 \end_layout
15759
15760 \begin_layout Description
15761 \begin_inset Flex Code
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765 Spellcheck
15766 \end_layout
15767
15768 \end_inset
15769
15770  [
15771 \begin_inset Flex Code
15772 status collapsed
15773
15774 \begin_layout Plain Layout
15775 0
15776 \end_layout
15777
15778 \end_inset
15779
15780 ,
15781 \begin_inset space \thinspace{}
15782 \end_inset
15783
15784
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789
15790 \emph on
15791 1
15792 \end_layout
15793
15794 \end_inset
15795
15796 ] Allow spell-checking paragraphs of this style.
15797  Default is true.
15798 \change_inserted 2089657418 1476488264
15799
15800 \end_layout
15801
15802 \begin_layout Description
15803
15804 \change_inserted 2089657418 1476488264
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809
15810 \change_inserted 2089657418 1476488264
15811 StepMasterCounter
15812 \end_layout
15813
15814 \end_inset
15815
15816  [
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821
15822 \change_inserted 2089657418 1476488264
15823
15824 \emph on
15825 0
15826 \end_layout
15827
15828 \end_inset
15829
15830 ,
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835
15836 \change_inserted 2089657418 1476488264
15837 1
15838 \end_layout
15839
15840 \end_inset
15841
15842 ] Steps the master counter of a given counter at the beginning of a new
15843  sequence of layouts.
15844  This is currently only useful when 
15845 \begin_inset Flex Code
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849
15850 \change_inserted 2089657418 1476488264
15851 LabelType
15852 \end_layout
15853
15854 \end_inset
15855
15856  is 
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861
15862 \change_inserted 2089657418 1476488264
15863 Enumerate
15864 \end_layout
15865
15866 \end_inset
15867
15868 .
15869 \change_unchanged
15870
15871 \end_layout
15872
15873 \begin_layout Description
15874 \begin_inset Flex Code
15875 status collapsed
15876
15877 \begin_layout Plain Layout
15878 TextFont
15879 \end_layout
15880
15881 \end_inset
15882
15883  The font used for the text body .
15884  See 
15885 \begin_inset CommandInset ref
15886 LatexCommand ref
15887 reference "subsec:Font-description"
15888
15889 \end_inset
15890
15891 .
15892 \end_layout
15893
15894 \begin_layout Description
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899 TocLevel
15900 \end_layout
15901
15902 \end_inset
15903
15904
15905 \series medium
15906  [
15907 \begin_inset Flex Code
15908 status collapsed
15909
15910 \begin_layout Plain Layout
15911
15912 \series medium
15913 int=3
15914 \end_layout
15915
15916 \end_inset
15917
15918 ]
15919 \series default
15920  The level of the style in the table of contents.
15921  This is used for automatic numbering of section headings.
15922 \end_layout
15923
15924 \begin_layout Description
15925 \begin_inset Flex Code
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929 ToggleIndent
15930 \end_layout
15931
15932 \end_inset
15933
15934  [
15935 \emph on
15936
15937 \begin_inset Flex Code
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941
15942 \emph on
15943 default
15944 \end_layout
15945
15946 \end_inset
15947
15948
15949 \emph default
15950
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 always
15956 \end_layout
15957
15958 \end_inset
15959
15960
15961 \begin_inset Flex Code
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965 never
15966 \end_layout
15967
15968 \end_inset
15969
15970 ] This tag determines whether the first line indentation of this paragraph
15971  can be toggled via the Paragraph settings dialog.
15972  If 
15973 \emph on
15974
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979
15980 \emph off
15981 default
15982 \end_layout
15983
15984 \end_inset
15985
15986
15987 \emph default
15988  is set, indentation can be toggled if the document settings use 
15989 \begin_inset Quotes eld
15990 \end_inset
15991
15992 indent
15993 \begin_inset Quotes erd
15994 \end_inset
15995
15996  paragraph style, with 
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 always
16002 \end_layout
16003
16004 \end_inset
16005
16006 , indentation can always be toggled, notwithstanding the document settings,
16007  with 
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 never
16013 \end_layout
16014
16015 \end_inset
16016
16017 , indentation can never be toggled.
16018 \end_layout
16019
16020 \begin_layout Description
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 TopSep
16026 \end_layout
16027
16028 \end_inset
16029
16030  [
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 float=0
16036 \end_layout
16037
16038 \end_inset
16039
16040 ] The vertical space with which the very first of a chain of paragraphs
16041  with this style is separated from the previous paragraph.
16042  If the previous paragraph has another style, the separations are not simply
16043  added, but the maximum is taken.
16044 \end_layout
16045
16046 \begin_layout Subsection
16047 \begin_inset CommandInset label
16048 LatexCommand label
16049 name "subsec:I18n"
16050
16051 \end_inset
16052
16053 Internationalization of Paragraph Styles
16054 \end_layout
16055
16056 \begin_layout Standard
16057 \SpecialChar LyX
16058  has long supported internationalization of layout information, but, until
16059  version 2.0, this applied only to the user interface and not to, say, PDF
16060  output.
16061  Thus, French authors were forced to resort to ugly hacks if they wanted
16062  `
16063 \lang french
16064 Théorème
16065 \lang english
16066  1' instead of `Theorem 1'.
16067  Thanks to Georg Baum, that is no longer the case.
16068 \end_layout
16069
16070 \begin_layout Standard
16071 If a 
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 Style
16077 \end_layout
16078
16079 \end_inset
16080
16081  defines text that is to appear in the typeset document, it may use 
16082 \begin_inset Flex Code
16083 status collapsed
16084
16085 \begin_layout Plain Layout
16086 LangPreamble
16087 \end_layout
16088
16089 \end_inset
16090
16091  and 
16092 \begin_inset Flex Code
16093 status collapsed
16094
16095 \begin_layout Plain Layout
16096 BabelPreamble
16097 \end_layout
16098
16099 \end_inset
16100
16101  to support non-English and even multi-language documents correctly.
16102  The following excerpt (from the 
16103 \begin_inset Flex Code
16104 status collapsed
16105
16106 \begin_layout Plain Layout
16107 theorems-ams.inc
16108 \end_layout
16109
16110 \end_inset
16111
16112  file) shows how this works:
16113 \end_layout
16114
16115 \begin_layout LyX-Code
16116 Preamble
16117 \end_layout
16118
16119 \begin_deeper
16120 \begin_layout LyX-Code
16121   
16122 \backslash
16123 theoremstyle{remark}
16124 \end_layout
16125
16126 \begin_layout LyX-Code
16127   
16128 \backslash
16129 newtheorem{claim}[thm]{
16130 \backslash
16131 protect
16132 \backslash
16133 claimname}
16134 \end_layout
16135
16136 \begin_layout LyX-Code
16137 EndPreamble
16138 \end_layout
16139
16140 \begin_layout LyX-Code
16141 LangPreamble
16142 \end_layout
16143
16144 \begin_layout LyX-Code
16145   
16146 \backslash
16147 providecommand{
16148 \backslash
16149 claimname}{_(Claim)}
16150 \end_layout
16151
16152 \begin_layout LyX-Code
16153 EndLangPreamble
16154 \end_layout
16155
16156 \begin_layout LyX-Code
16157 BabelPreamble
16158 \end_layout
16159
16160 \begin_layout LyX-Code
16161     
16162 \backslash
16163 addto
16164 \backslash
16165 captions$$lang{
16166 \backslash
16167 renewcommand{
16168 \backslash
16169 claimname}{_(Claim)}}
16170 \end_layout
16171
16172 \begin_layout LyX-Code
16173 EndBabelPreamble
16174 \end_layout
16175
16176 \end_deeper
16177 \begin_layout Standard
16178 In principle, any legal \SpecialChar LaTeX
16179  may appear in the 
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 LangPreamble
16185 \end_layout
16186
16187 \end_inset
16188
16189  and 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 BabelPreamble
16195 \end_layout
16196
16197 \end_inset
16198
16199  tags, but in practice they will typically look as they do here.
16200  The key to correct translation of the typeset text is the definition of
16201  the \SpecialChar LaTeX
16202  command 
16203 \begin_inset Flex Code
16204 status collapsed
16205
16206 \begin_layout Plain Layout
16207
16208 \backslash
16209 claimname
16210 \end_layout
16211
16212 \end_inset
16213
16214  and its use in 
16215 \begin_inset Flex Code
16216 status collapsed
16217
16218 \begin_layout Plain Layout
16219
16220 \backslash
16221 newtheorem
16222 \end_layout
16223
16224 \end_inset
16225
16226 .
16227  
16228 \end_layout
16229
16230 \begin_layout Standard
16231 The 
16232 \begin_inset Flex Code
16233 status collapsed
16234
16235 \begin_layout Plain Layout
16236 LangPreamble
16237 \end_layout
16238
16239 \end_inset
16240
16241  tag provides for internationalization based upon the overall language of
16242  the document.
16243  The contents of the tag will be included in the preamble, just as with
16244  the 
16245 \begin_inset Flex Code
16246 status collapsed
16247
16248 \begin_layout Plain Layout
16249 Preamble
16250 \end_layout
16251
16252 \end_inset
16253
16254  tag.
16255  What makes it special is the use of the 
16256 \begin_inset Quotes eld
16257 \end_inset
16258
16259 function
16260 \begin_inset Quotes erd
16261 \end_inset
16262
16263  
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 _()
16269 \end_layout
16270
16271 \end_inset
16272
16273 , which will be replaced, when \SpecialChar LyX
16274  produces \SpecialChar LaTeX
16275  output, with the translation of
16276  its argument into the document language.
16277 \end_layout
16278
16279 \begin_layout Standard
16280 The 
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 BabelPreamble
16286 \end_layout
16287
16288 \end_inset
16289
16290  tag is more complex, since it is meant to provide support for multi-language
16291  documents and so offers an interface to the 
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 babel
16297 \end_layout
16298
16299 \end_inset
16300
16301  package.
16302  Its contents will be added to the preamble once for each language that
16303  appears in the document.
16304  In this case, the argument to 
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309 _()
16310 \end_layout
16311
16312 \end_inset
16313
16314  will be replaced with its translation into the language in question; the
16315  expression 
16316 \begin_inset Flex Code
16317 status collapsed
16318
16319 \begin_layout Plain Layout
16320 $$lang
16321 \end_layout
16322
16323 \end_inset
16324
16325  is replaced by the language name (as used by the babel package).
16326 \end_layout
16327
16328 \begin_layout Standard
16329 A German document that also included a French section would thus have the
16330  following in the preamble:
16331 \end_layout
16332
16333 \begin_layout LyX-Code
16334
16335 \backslash
16336 addto
16337 \backslash
16338 captionsfrench{
16339 \backslash
16340 renewcommand{
16341 \backslash
16342 claimname}{Affirmation}}
16343 \begin_inset Newline newline
16344 \end_inset
16345
16346
16347 \backslash
16348 addto
16349 \backslash
16350 captionsngerman{
16351 \backslash
16352 renewcommand{
16353 \backslash
16354 claimname}{Behauptung}}
16355 \begin_inset Newline newline
16356 \end_inset
16357
16358
16359 \backslash
16360 providecommand{
16361 \backslash
16362 claimname}{Behauptung}
16363 \end_layout
16364
16365 \begin_layout Standard
16366 \SpecialChar LaTeX
16367  and 
16368 \begin_inset Flex Code
16369 status collapsed
16370
16371 \begin_layout Plain Layout
16372 babel
16373 \end_layout
16374
16375 \end_inset
16376
16377  will then conspire to produce the correct text in the output.
16378 \end_layout
16379
16380 \begin_layout Standard
16381 One important point to note here is that the translations are provided by
16382  \SpecialChar LyX
16383  itself, through the file 
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 layouttranslations
16389 \end_layout
16390
16391 \end_inset
16392
16393 .
16394  This means, in effect, that 
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399 LangPreamble
16400 \end_layout
16401
16402 \end_inset
16403
16404  and 
16405 \begin_inset Flex Code
16406 status collapsed
16407
16408 \begin_layout Plain Layout
16409 BabelPreamble
16410 \end_layout
16411
16412 \end_inset
16413
16414  are really only of use in layout files that are provided with \SpecialChar LyX
16415 , since text
16416  entered in user-created layout files will not be seen by \SpecialChar LyX
16417 's internationalizatio
16418 n routines unless the 
16419 \begin_inset Flex Code
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 layouttranslations
16424 \end_layout
16425
16426 \end_inset
16427
16428  file is modified accordingly.
16429  That said, however, any layout created with the intention that it will
16430  be included with \SpecialChar LyX
16431  should use these tags where appropriate.
16432  Please note that the paragraph style translations provided by \SpecialChar LyX
16433  will never
16434  change with a minor update (e.
16435 \begin_inset space \thinspace{}
16436 \end_inset
16437
16438 g.
16439 \begin_inset space \space{}
16440 \end_inset
16441
16442 from version 2.1.x to 2.1.y).
16443  It is however quite likely that a major update (e.
16444 \begin_inset space \thinspace{}
16445 \end_inset
16446
16447 g.
16448 \begin_inset space \space{}
16449 \end_inset
16450
16451 from 2.0.x to 2.1.y) will introduce new translations or corrections.
16452 \end_layout
16453
16454 \begin_layout Subsection
16455 Floats
16456 \begin_inset CommandInset label
16457 LatexCommand label
16458 name "subsec:Floats"
16459
16460 \end_inset
16461
16462
16463 \end_layout
16464
16465 \begin_layout Standard
16466 It is necessary to define the floats (
16467 \begin_inset Flex Noun
16468 status collapsed
16469
16470 \begin_layout Plain Layout
16471 figure
16472 \end_layout
16473
16474 \end_inset
16475
16476
16477 \begin_inset Flex Noun
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481 table
16482 \end_layout
16483
16484 \end_inset
16485
16486 , \SpecialChar ldots
16487 ) in the text class itself.
16488  Standard floats are included in the file 
16489 \begin_inset Flex Code
16490 status collapsed
16491
16492 \begin_layout Plain Layout
16493 stdfloats.inc
16494 \end_layout
16495
16496 \end_inset
16497
16498 , so you may have to do no more than add
16499 \end_layout
16500
16501 \begin_layout LyX-Code
16502 Input stdfloats.inc
16503 \end_layout
16504
16505 \begin_layout Standard
16506 to your layout file.
16507  If you want to implement a text class that proposes some other float types
16508  (like the AGU class bundled with \SpecialChar LyX
16509 ), the information below will hopefully
16510  help you:
16511 \end_layout
16512
16513 \begin_layout Description
16514 \begin_inset Flex Code
16515 status collapsed
16516
16517 \begin_layout Plain Layout
16518 AllowedPlacement
16519 \end_layout
16520
16521 \end_inset
16522
16523  [
16524 \begin_inset Flex Code
16525 status collapsed
16526
16527 \begin_layout Plain Layout
16528 string
16529 \end_layout
16530
16531 \end_inset
16532
16533 =!htbpH] Allowed placement options for this float type.
16534  The value is a string of placement characters.
16535  Possible characters include: 
16536 \emph on
16537 h
16538 \emph default
16539  (
16540 \begin_inset Quotes eld
16541 \end_inset
16542
16543 here if possible
16544 \begin_inset Quotes erd
16545 \end_inset
16546
16547 ), 
16548 \emph on
16549 t
16550 \emph default
16551  (
16552 \begin_inset Quotes eld
16553 \end_inset
16554
16555 top of page
16556 \begin_inset Quotes erd
16557 \end_inset
16558
16559 ), 
16560 \emph on
16561 b
16562 \emph default
16563  (
16564 \begin_inset Quotes eld
16565 \end_inset
16566
16567 bottom of page
16568 \begin_inset Quotes erd
16569 \end_inset
16570
16571 ), 
16572 \emph on
16573 p
16574 \emph default
16575  (
16576 \begin_inset Quotes eld
16577 \end_inset
16578
16579 page of floats
16580 \begin_inset Quotes erd
16581 \end_inset
16582
16583 ), 
16584 \emph on
16585 H
16586 \emph default
16587  (
16588 \begin_inset Quotes eld
16589 \end_inset
16590
16591 here definitely
16592 \begin_inset Quotes erd
16593 \end_inset
16594
16595 ) and 
16596 \emph on
16597 !
16598 \emph default
16599  (
16600 \begin_inset Quotes eld
16601 \end_inset
16602
16603 ignore LaTeX rules
16604 \begin_inset Quotes erd
16605 \end_inset
16606
16607 ).
16608  The order of the characters in the string does not matter.
16609  If no placement options are allowed, use the string 
16610 \emph on
16611 none
16612 \emph default
16613 .
16614 \end_layout
16615
16616 \begin_layout Description
16617 \begin_inset Flex Code
16618 status collapsed
16619
16620 \begin_layout Plain Layout
16621 AllowsSideways
16622 \end_layout
16623
16624 \end_inset
16625
16626  [
16627 \begin_inset Flex Code
16628 status collapsed
16629
16630 \begin_layout Plain Layout
16631
16632 \emph off
16633 0
16634 \end_layout
16635
16636 \end_inset
16637
16638 ,
16639 \begin_inset space \thinspace{}
16640 \end_inset
16641
16642
16643 \emph on
16644
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649
16650 \emph on
16651 1
16652 \end_layout
16653
16654 \end_inset
16655
16656
16657 \emph default
16658 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16659 -package 
16660 \family typewriter
16661 rotfloat
16662 \family default
16663  (sidewaysfloat).
16664  Set to 
16665 \begin_inset Flex Code
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669 0
16670 \end_layout
16671
16672 \end_inset
16673
16674  if the float does not support this feature.
16675 \end_layout
16676
16677 \begin_layout Description
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 AllowsWide
16683 \end_layout
16684
16685 \end_inset
16686
16687  [
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692
16693 \emph off
16694 0
16695 \end_layout
16696
16697 \end_inset
16698
16699 ,
16700 \begin_inset space \thinspace{}
16701 \end_inset
16702
16703
16704 \emph on
16705
16706 \begin_inset Flex Code
16707 status collapsed
16708
16709 \begin_layout Plain Layout
16710
16711 \emph on
16712 1
16713 \end_layout
16714
16715 \end_inset
16716
16717
16718 \emph default
16719 ] Defines whether the float has a starred variant that spans columns in
16720  a two column paragraph.
16721  Set to 
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 0
16727 \end_layout
16728
16729 \end_inset
16730
16731  if the float does not support this feature.
16732 \end_layout
16733
16734 \begin_layout Description
16735 \begin_inset Flex Code
16736 status collapsed
16737
16738 \begin_layout Plain Layout
16739 Extension
16740 \end_layout
16741
16742 \end_inset
16743
16744  [
16745 \begin_inset Flex Code
16746 status collapsed
16747
16748 \begin_layout Plain Layout
16749 string
16750 \end_layout
16751
16752 \end_inset
16753
16754 =
16755 \begin_inset Quotes erd
16756 \end_inset
16757
16758
16759 \begin_inset Quotes erd
16760 \end_inset
16761
16762 ] The file name extension of an auxiliary file for the list of figures (or
16763  whatever).
16764  \SpecialChar LaTeX
16765  writes the captions to this file.
16766 \end_layout
16767
16768 \begin_layout Description
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 GuiName
16774 \end_layout
16775
16776 \end_inset
16777
16778  [
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783 string
16784 \end_layout
16785
16786 \end_inset
16787
16788 =
16789 \begin_inset Quotes erd
16790 \end_inset
16791
16792
16793 \begin_inset Quotes erd
16794 \end_inset
16795
16796 ] The string that will be used in the menus and also for the caption.
16797  This is translated to the current language if babel is used.
16798 \end_layout
16799
16800 \begin_layout Description
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 HTML*
16806 \end_layout
16807
16808 \end_inset
16809
16810  These tags control the XHTML output.
16811  See 
16812 \begin_inset CommandInset ref
16813 LatexCommand ref
16814 reference "sec:Tags-for-XHTML"
16815
16816 \end_inset
16817
16818 .
16819 \end_layout
16820
16821 \begin_layout Description
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 IsPredefined
16827 \end_layout
16828
16829 \end_inset
16830
16831  [
16832 \emph on
16833
16834 \begin_inset Flex Code
16835 status collapsed
16836
16837 \begin_layout Plain Layout
16838 0
16839 \end_layout
16840
16841 \end_inset
16842
16843
16844 \emph default
16845 ,
16846 \begin_inset space \thinspace{}
16847 \end_inset
16848
16849
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 1
16855 \end_layout
16856
16857 \end_inset
16858
16859 ] Indicates whether the float is already defined in the document class or
16860  if instead the \SpecialChar LaTeX
16861  package 
16862 \begin_inset Flex Code
16863 status collapsed
16864
16865 \begin_layout Plain Layout
16866 float
16867 \end_layout
16868
16869 \end_inset
16870
16871  needs to be loaded to define it on-the-fly.
16872  The default is 
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 0
16878 \end_layout
16879
16880 \end_inset
16881
16882 , which means: 
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 float
16888 \end_layout
16889
16890 \end_inset
16891
16892  is used.
16893  It should be set to 
16894 \begin_inset Flex Code
16895 status collapsed
16896
16897 \begin_layout Plain Layout
16898 1
16899 \end_layout
16900
16901 \end_inset
16902
16903  if the float is already defined by the \SpecialChar LaTeX
16904  document class.
16905 \end_layout
16906
16907 \begin_layout Description
16908 \begin_inset Flex Code
16909 status collapsed
16910
16911 \begin_layout Plain Layout
16912 ListCommand
16913 \end_layout
16914
16915 \end_inset
16916
16917  [
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922 string
16923 \end_layout
16924
16925 \end_inset
16926
16927 =
16928 \begin_inset Quotes erd
16929 \end_inset
16930
16931
16932 \begin_inset Quotes erd
16933 \end_inset
16934
16935 ] The command used to generate a list of floats of this type; the leading
16936  `
16937 \backslash
16938 ' must be omitted.
16939  This 
16940 \emph on
16941 must
16942 \emph default
16943  be given if 
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 UsesFloatPkg
16949 \end_layout
16950
16951 \end_inset
16952
16953  is false, since there is no standard way to generate this command.
16954  It is ignored if 
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 UsesFloatPkg
16960 \end_layout
16961
16962 \end_inset
16963
16964  is true, since in that case there is a standard way to define the command.
16965 \end_layout
16966
16967 \begin_layout Description
16968 \begin_inset Flex Code
16969 status collapsed
16970
16971 \begin_layout Plain Layout
16972 ListName
16973 \end_layout
16974
16975 \end_inset
16976
16977  [
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982 string
16983 \end_layout
16984
16985 \end_inset
16986
16987 =
16988 \begin_inset Quotes erd
16989 \end_inset
16990
16991
16992 \begin_inset Quotes erd
16993 \end_inset
16994
16995 ] A title for a list of floats of this kind (list of figures, tables, or
16996  whatever).
16997  It is used for the screen label within \SpecialChar LyX
16998 , it is used by \SpecialChar LaTeX
16999  for the title and
17000  it is used as the title in the XHTML output.
17001  It will be translated to the document language.
17002 \end_layout
17003
17004 \begin_layout Description
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 NumberWithin
17010 \end_layout
17011
17012 \end_inset
17013
17014  [
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 string
17020 \end_layout
17021
17022 \end_inset
17023
17024 =
17025 \begin_inset Quotes erd
17026 \end_inset
17027
17028
17029 \begin_inset Quotes erd
17030 \end_inset
17031
17032 ] This (optional) argument determines whether floats of this class will
17033  be numbered within some sectional unit of the document.
17034  For example, if 
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 NumberWithin
17040 \end_layout
17041
17042 \end_inset
17043
17044  is set to 
17045 \begin_inset Quotes eld
17046 \end_inset
17047
17048
17049 \begin_inset Flex Code
17050 status collapsed
17051
17052 \begin_layout Plain Layout
17053 chapter
17054 \end_layout
17055
17056 \end_inset
17057
17058
17059 \begin_inset Quotes erd
17060 \end_inset
17061
17062 , the floats will be numbered within chapters.
17063  
17064 \end_layout
17065
17066 \begin_layout Description
17067 \begin_inset Flex Code
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071 Placement
17072 \end_layout
17073
17074 \end_inset
17075
17076  [
17077 \begin_inset Flex Code
17078 status collapsed
17079
17080 \begin_layout Plain Layout
17081 string
17082 \end_layout
17083
17084 \end_inset
17085
17086 =
17087 \begin_inset Quotes erd
17088 \end_inset
17089
17090
17091 \begin_inset Quotes erd
17092 \end_inset
17093
17094 ] The default placement for the given class of floats.
17095  The string should be as in standard \SpecialChar LaTeX
17096
17097 \begin_inset Flex Code
17098 status collapsed
17099
17100 \begin_layout Plain Layout
17101 t
17102 \end_layout
17103
17104 \end_inset
17105
17106
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111 b
17112 \end_layout
17113
17114 \end_inset
17115
17116
17117 \begin_inset Flex Code
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121 p
17122 \end_layout
17123
17124 \end_inset
17125
17126  and 
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 h
17132 \end_layout
17133
17134 \end_inset
17135
17136  for top, bottom, page, and here, respectively.
17137 \begin_inset Foot
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 Note that the order of these letters in the string is irrelevant, like in
17142  \SpecialChar LaTeX
17143 .
17144 \end_layout
17145
17146 \end_inset
17147
17148  On top of that there is a new type, 
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 H
17154 \end_layout
17155
17156 \end_inset
17157
17158 , which does not really correspond to a float, since it means: put it 
17159 \begin_inset Quotes eld
17160 \end_inset
17161
17162 here
17163 \begin_inset Quotes erd
17164 \end_inset
17165
17166  and nowhere else.
17167  Note however that the 
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 H
17173 \end_layout
17174
17175 \end_inset
17176
17177  specifier is special and, because of implementation details, cannot be
17178  used in non-built in float types.
17179  If you do not understand what this means, just use 
17180 \begin_inset Quotes eld
17181 \end_inset
17182
17183
17184 \begin_inset Flex Code
17185 status collapsed
17186
17187 \begin_layout Plain Layout
17188 tbp
17189 \end_layout
17190
17191 \end_inset
17192
17193
17194 \begin_inset Quotes erd
17195 \end_inset
17196
17197 .
17198 \end_layout
17199
17200 \begin_layout Description
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 RefPrefix
17206 \end_layout
17207
17208 \end_inset
17209
17210  [
17211 \begin_inset Flex Code
17212 status collapsed
17213
17214 \begin_layout Plain Layout
17215 string
17216 \end_layout
17217
17218 \end_inset
17219
17220 ] The prefix to use when creating labels referring to floats of this type.
17221  This allows the use of formatted references.
17222  Note that you can remove any 
17223 \begin_inset Flex Code
17224 status collapsed
17225
17226 \begin_layout Plain Layout
17227 RefPrefix
17228 \end_layout
17229
17230 \end_inset
17231
17232  set by a copied style by using the special value 
17233 \begin_inset Quotes eld
17234 \end_inset
17235
17236 OFF
17237 \begin_inset Quotes erd
17238 \end_inset
17239
17240 , which must be all caps.
17241 \end_layout
17242
17243 \begin_layout Description
17244 \begin_inset Flex Code
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248 Style
17249 \end_layout
17250
17251 \end_inset
17252
17253  [
17254 \begin_inset Flex Code
17255 status collapsed
17256
17257 \begin_layout Plain Layout
17258 string
17259 \end_layout
17260
17261 \end_inset
17262
17263 =
17264 \begin_inset Quotes erd
17265 \end_inset
17266
17267
17268 \begin_inset Quotes erd
17269 \end_inset
17270
17271 ] The style used when defining the float using 
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276
17277 \backslash
17278 newfloat
17279 \end_layout
17280
17281 \end_inset
17282
17283 .
17284 \end_layout
17285
17286 \begin_layout Description
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 Type
17292 \end_layout
17293
17294 \end_inset
17295
17296  [
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 string
17302 \end_layout
17303
17304 \end_inset
17305
17306 =
17307 \begin_inset Quotes erd
17308 \end_inset
17309
17310
17311 \begin_inset Quotes erd
17312 \end_inset
17313
17314 ] The 
17315 \begin_inset Quotes eld
17316 \end_inset
17317
17318 type
17319 \begin_inset Quotes erd
17320 \end_inset
17321
17322  of the new class of floats, like program or algorithm.
17323  After the appropriate 
17324 \begin_inset Flex Code
17325 status collapsed
17326
17327 \begin_layout Plain Layout
17328
17329 \backslash
17330 newfloat
17331 \end_layout
17332
17333 \end_inset
17334
17335 , commands such as 
17336 \begin_inset Flex Code
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340
17341 \backslash
17342 begin{program}
17343 \end_layout
17344
17345 \end_inset
17346
17347  or 
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352
17353 \backslash
17354 end{algorithm*}
17355 \end_layout
17356
17357 \end_inset
17358
17359  will be available.
17360 \end_layout
17361
17362 \begin_layout Description
17363 \begin_inset Flex Code
17364 status collapsed
17365
17366 \begin_layout Plain Layout
17367 UsesFloatPkg
17368 \end_layout
17369
17370 \end_inset
17371
17372  [
17373 \begin_inset Flex Code
17374 status collapsed
17375
17376 \begin_layout Plain Layout
17377 0
17378 \end_layout
17379
17380 \end_inset
17381
17382 ,
17383 \begin_inset space \thinspace{}
17384 \end_inset
17385
17386
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391
17392 \emph on
17393 1
17394 \end_layout
17395
17396 \end_inset
17397
17398 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17399  package 
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 float
17405 \end_layout
17406
17407 \end_inset
17408
17409 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17410  itself.
17411 \end_layout
17412
17413 \begin_layout Standard
17414 Note that defining a float with type 
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419
17420 \emph on
17421 type
17422 \end_layout
17423
17424 \end_inset
17425
17426  automatically defines the corresponding counter with name 
17427 \begin_inset Flex Code
17428 status collapsed
17429
17430 \begin_layout Plain Layout
17431
17432 \emph on
17433 type
17434 \end_layout
17435
17436 \end_inset
17437
17438 .
17439 \end_layout
17440
17441 \begin_layout Subsection
17442 Flex insets and InsetLayout
17443 \begin_inset CommandInset label
17444 LatexCommand label
17445 name "subsec:Flex-insets-and"
17446
17447 \end_inset
17448
17449
17450 \end_layout
17451
17452 \begin_layout Standard
17453 Flex insets come in three different kinds: 
17454 \end_layout
17455
17456 \begin_layout Itemize
17457 character style (
17458 \begin_inset Flex Code
17459 status collapsed
17460
17461 \begin_layout Plain Layout
17462 CharStyle
17463 \end_layout
17464
17465 \end_inset
17466
17467 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17468  commands as 
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473
17474 \backslash
17475 noun
17476 \end_layout
17477
17478 \end_inset
17479
17480  and 
17481 \begin_inset Flex Code
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485
17486 \backslash
17487 code
17488 \end_layout
17489
17490 \end_inset
17491
17492 .
17493 \end_layout
17494
17495 \begin_layout Itemize
17496 user custom (
17497 \begin_inset Flex Code
17498 status collapsed
17499
17500 \begin_layout Plain Layout
17501 Custom
17502 \end_layout
17503
17504 \end_inset
17505
17506 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17507  code,
17508  footnote, and the like.
17509  An obvious example is an endnote inset, which is defined in the 
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 endnote
17515 \end_layout
17516
17517 \end_inset
17518
17519  module.
17520 \end_layout
17521
17522 \begin_layout Itemize
17523 XML elements (
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 Element
17529 \end_layout
17530
17531 \end_inset
17532
17533 ): For use with DocBook classes.
17534 \end_layout
17535
17536 \begin_layout Standard
17537 Flex insets are defined using the 
17538 \begin_inset Flex Code
17539 status collapsed
17540
17541 \begin_layout Plain Layout
17542 InsetLayout
17543 \end_layout
17544
17545 \end_inset
17546
17547  tag, which shall be explained in a moment.
17548 \end_layout
17549
17550 \begin_layout Standard
17551 The 
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 InsetLayout
17557 \end_layout
17558
17559 \end_inset
17560
17561  tag also serves another function: It can be used to customize the general
17562  layout of many different types of insets.
17563  Currently, 
17564 \begin_inset Flex Code
17565 status collapsed
17566
17567 \begin_layout Plain Layout
17568 InsetLayout
17569 \end_layout
17570
17571 \end_inset
17572
17573  can be used to customize the layout parameters for footnotes, marginal
17574  notes, note insets, \SpecialChar TeX
17575  code (ERT) insets, branches, listings, indexes, boxes,
17576  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17577 \end_layout
17578
17579 \begin_layout Standard
17580 The 
17581 \begin_inset Flex Code
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 InsetLayout
17586 \end_layout
17587
17588 \end_inset
17589
17590  definition must begin with a line of the form:
17591 \end_layout
17592
17593 \begin_layout LyX-Code
17594 InsetLayout <type>
17595 \end_layout
17596
17597 \begin_layout Standard
17598 Here 
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 <Type>
17604 \end_layout
17605
17606 \end_inset
17607
17608  indicates the inset whose layout is being defined, and here there are four
17609  cases.
17610 \end_layout
17611
17612 \begin_layout Enumerate
17613 The layout for a pre-existing inset is being modified.
17614  In this case, can be 
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619 <Type>
17620 \end_layout
17621
17622 \end_inset
17623
17624  any one of the following: 
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 Algorithm
17630 \end_layout
17631
17632 \end_inset
17633
17634
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 Branch
17640 \end_layout
17641
17642 \end_inset
17643
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 Box
17650 \end_layout
17651
17652 \end_inset
17653
17654
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 Box:shaded
17660 \end_layout
17661
17662 \end_inset
17663
17664
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 Caption:Standard
17670 \end_layout
17671
17672 \end_inset
17673
17674
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 ERT
17680 \end_layout
17681
17682 \end_inset
17683
17684
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 Figure
17690 \end_layout
17691
17692 \end_inset
17693
17694
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 Foot
17700 \end_layout
17701
17702 \end_inset
17703
17704
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 Index
17710 \end_layout
17711
17712 \end_inset
17713
17714
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 Info
17720 \end_layout
17721
17722 \end_inset
17723
17724
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 Info:menu
17730 \end_layout
17731
17732 \end_inset
17733
17734
17735 \begin_inset Flex Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 Info:shortcut
17740 \end_layout
17741
17742 \end_inset
17743
17744
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 Info:shortcuts
17750 \end_layout
17751
17752 \end_inset
17753
17754
17755 \begin_inset Flex Code
17756 status collapsed
17757
17758 \begin_layout Plain Layout
17759 Listings
17760 \end_layout
17761
17762 \end_inset
17763
17764
17765 \begin_inset Flex Code
17766 status collapsed
17767
17768 \begin_layout Plain Layout
17769 Marginal
17770 \end_layout
17771
17772 \end_inset
17773
17774
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 Note:Comment
17780 \end_layout
17781
17782 \end_inset
17783
17784
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 Note:Note
17790 \end_layout
17791
17792 \end_inset
17793
17794
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 Note:Greyedout
17800 \end_layout
17801
17802 \end_inset
17803
17804
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 Table
17810 \end_layout
17811
17812 \end_inset
17813
17814 , or 
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 URL
17820 \end_layout
17821
17822 \end_inset
17823
17824 .
17825 \end_layout
17826
17827 \begin_layout Enumerate
17828 The layout for a Flex inset is being defined.
17829  In this case, 
17830 \begin_inset Flex Code
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 <Type>
17835 \end_layout
17836
17837 \end_inset
17838
17839  must be of the form 
17840 \begin_inset Quotes eld
17841 \end_inset
17842
17843
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 Flex:<name>
17849 \end_layout
17850
17851 \end_inset
17852
17853
17854 \begin_inset Quotes erd
17855 \end_inset
17856
17857 , where 
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 name
17863 \end_layout
17864
17865 \end_inset
17866
17867  may be be any valid identifier not used by a pre-existing Flex inset.
17868  The identifier may include spaces, but in that case the whole thing must
17869  be wrapped in quotes.
17870  Note that the definition of a flex inset 
17871 \emph on
17872 must 
17873 \emph default
17874 also include a 
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 LyXType
17880 \end_layout
17881
17882 \end_inset
17883
17884  entry, declaring which type of inset it defines.
17885 \end_layout
17886
17887 \begin_layout Enumerate
17888 The layout for user specific branch is being defined.
17889  In this case, 
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 <Type>
17895 \end_layout
17896
17897 \end_inset
17898
17899  must be of the form 
17900 \begin_inset Quotes eld
17901 \end_inset
17902
17903
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908 Branch:<name>
17909 \end_layout
17910
17911 \end_inset
17912
17913
17914 \begin_inset Quotes erd
17915 \end_inset
17916
17917 , where 
17918 \begin_inset Flex Code
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 name
17923 \end_layout
17924
17925 \end_inset
17926
17927  may be be any valid identifier of branch defined in user's document.
17928  The identifier may include spaces, but in that case the whole thing must
17929  be wrapped in quotes.
17930  The main purpose of this feature is to allow \SpecialChar LaTeX
17931  wrapping around specific
17932  branches as user needs.
17933 \end_layout
17934
17935 \begin_layout Enumerate
17936 The layout of a user (or class) specific caption is being defined.
17937  In this case, 
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 <Type>
17943 \end_layout
17944
17945 \end_inset
17946
17947  must be of the form 
17948 \begin_inset Quotes eld
17949 \end_inset
17950
17951
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956 Caption:<name>
17957 \end_layout
17958
17959 \end_inset
17960
17961
17962 \begin_inset Quotes erd
17963 \end_inset
17964
17965 , where 
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 name
17971 \end_layout
17972
17973 \end_inset
17974
17975  specifies the name of the caption as it appears in the menu.
17976  Have a look at the standard caption (
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 Caption:Standard
17982 \end_layout
17983
17984 \end_inset
17985
17986 ), the specific captions of the KOMA-Script classes (
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 Caption:Above
17992 \end_layout
17993
17994 \end_inset
17995
17996
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001 Caption:Below
18002 \end_layout
18003
18004 \end_inset
18005
18006 ) or the module 
18007 \family sans
18008 Multilingual
18009 \begin_inset space ~
18010 \end_inset
18011
18012 Captions 
18013 \family default
18014 (
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 Caption:Bicaption
18020 \end_layout
18021
18022 \end_inset
18023
18024 ) for applications.
18025 \end_layout
18026
18027 \begin_layout Standard
18028 The 
18029 \begin_inset Flex Code
18030 status collapsed
18031
18032 \begin_layout Plain Layout
18033 InsetLayout
18034 \end_layout
18035
18036 \end_inset
18037
18038  definition can contain the following entries:
18039 \end_layout
18040
18041 \begin_layout Description
18042
18043 \change_inserted 2047637253 1483963036
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048
18049 \change_inserted 2047637253 1483900123
18050 AddToToc
18051 \end_layout
18052
18053 \end_inset
18054
18055  [
18056 \begin_inset Flex Code
18057 status collapsed
18058
18059 \begin_layout Plain Layout
18060
18061 \change_inserted 2047637253 1483962897
18062 string
18063 \end_layout
18064
18065 \end_inset
18066
18067 =""] This inset will appear in the table of contents of the given type.
18068  An empty string disables.
18069  See also the OutlinerName and the IsTocCaption commands.
18070  This is only implemented for Flex insets.
18071  Default: disabled.
18072 \end_layout
18073
18074 \begin_layout Description
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 Argument
18080 \end_layout
18081
18082 \end_inset
18083
18084  [
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 int
18090 \end_layout
18091
18092 \end_inset
18093
18094 ] Defines argument number of a command\SpecialChar breakableslash
18095 environment associated with the current
18096  layout.
18097  The definition must end with 
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 EndArgument
18103 \end_layout
18104
18105 \end_inset
18106
18107 .
18108  See 
18109 \begin_inset CommandInset ref
18110 LatexCommand ref
18111 reference "subsec:Paragraph-Styles"
18112
18113 \end_inset
18114
18115  for details.
18116 \end_layout
18117
18118 \begin_layout Description
18119 \begin_inset Flex Code
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 BabelPreamble
18124 \end_layout
18125
18126 \end_inset
18127
18128  Preamble for changing language commands; see 
18129 \begin_inset CommandInset ref
18130 LatexCommand ref
18131 reference "subsec:I18n"
18132
18133 \end_inset
18134
18135 .
18136 \end_layout
18137
18138 \begin_layout Description
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 BgColor
18144 \end_layout
18145
18146 \end_inset
18147
18148  [
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 <name>
18154 \end_layout
18155
18156 \end_inset
18157
18158 ] The color for the inset's background.
18159  See 
18160 \begin_inset CommandInset ref
18161 LatexCommand ref
18162 reference "chap:Names-of-colors"
18163
18164 \end_inset
18165
18166  for a list of the available color names.
18167 \end_layout
18168
18169 \begin_layout Description
18170 \begin_inset Flex Code
18171 status collapsed
18172
18173 \begin_layout Plain Layout
18174 ContentAsLabel
18175 \end_layout
18176
18177 \end_inset
18178
18179  [
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184
18185 \emph on
18186 0
18187 \end_layout
18188
18189 \end_inset
18190
18191 ,
18192 \begin_inset space \thinspace{}
18193 \end_inset
18194
18195
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 1
18201 \end_layout
18202
18203 \end_inset
18204
18205 ] Whether to use the content of the inset as the label, when the inset is
18206  closed.
18207  Default is false.
18208 \end_layout
18209
18210 \begin_layout Description
18211 \begin_inset Flex Code
18212 status collapsed
18213
18214 \begin_layout Plain Layout
18215 CopyStyle
18216 \end_layout
18217
18218 \end_inset
18219
18220  [
18221 \begin_inset Flex Code
18222 status collapsed
18223
18224 \begin_layout Plain Layout
18225 <type>
18226 \end_layout
18227
18228 \end_inset
18229
18230 ] As with paragraph styles, see 
18231 \begin_inset CommandInset ref
18232 LatexCommand ref
18233 reference "subsec:Paragraph-Styles"
18234
18235 \end_inset
18236
18237 .
18238  Note that you need to specify the complete type, e.
18239 \begin_inset space \thinspace{}
18240 \end_inset
18241
18242 g.
18243 \begin_inset space ~
18244 \end_inset
18245
18246
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 CopyStyle Flex:<name>
18252 \end_layout
18253
18254 \end_inset
18255
18256 .
18257 \end_layout
18258
18259 \begin_layout Description
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264 CustomPars
18265 \end_layout
18266
18267 \end_inset
18268
18269  [
18270 \begin_inset Flex Code
18271 status collapsed
18272
18273 \begin_layout Plain Layout
18274
18275 \emph on
18276 0
18277 \end_layout
18278
18279 \end_inset
18280
18281 ,
18282 \begin_inset space \thinspace{}
18283 \end_inset
18284
18285
18286 \begin_inset Flex Code
18287 status collapsed
18288
18289 \begin_layout Plain Layout
18290 1
18291 \end_layout
18292
18293 \end_inset
18294
18295 ] Indicates whether the user may employ the Paragraph Settings dialog to
18296  customize the paragraph.
18297 \end_layout
18298
18299 \begin_layout Description
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 Decoration
18305 \end_layout
18306
18307 \end_inset
18308
18309  can be 
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 Classic
18315 \end_layout
18316
18317 \end_inset
18318
18319
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324 Minimalistic
18325 \end_layout
18326
18327 \end_inset
18328
18329 , or 
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 Conglomerate
18335 \end_layout
18336
18337 \end_inset
18338
18339 , describing the rendering style used for the inset's frame and buttons.
18340  Footnotes generally use 
18341 \begin_inset Flex Code
18342 status collapsed
18343
18344 \begin_layout Plain Layout
18345 Classic
18346 \end_layout
18347
18348 \end_inset
18349
18350 , ERT insets generally 
18351 \begin_inset Flex Code
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355 Minimalistic
18356 \end_layout
18357
18358 \end_inset
18359
18360 , and character styles 
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 Conglomerate
18366 \end_layout
18367
18368 \end_inset
18369
18370 .
18371 \end_layout
18372
18373 \begin_layout Description
18374 \begin_inset Flex Code
18375 status collapsed
18376
18377 \begin_layout Plain Layout
18378 Display
18379 \end_layout
18380
18381 \end_inset
18382
18383  [
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388 0
18389 \end_layout
18390
18391 \end_inset
18392
18393 ,
18394 \emph on
18395
18396 \begin_inset space \thinspace{}
18397 \end_inset
18398
18399
18400 \emph default
18401
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406
18407 \emph on
18408 1
18409 \end_layout
18410
18411 \end_inset
18412
18413 ] Only useful if 
18414 \begin_inset Flex Code
18415 status collapsed
18416
18417 \begin_layout Plain Layout
18418 LatexType
18419 \end_layout
18420
18421 \end_inset
18422
18423  is 
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 Environment
18429 \end_layout
18430
18431 \end_inset
18432
18433 .
18434  Indicates whether the environment will stand on its own in the output or
18435  will appear inline with the surrounding text.
18436  If set to false, it is supposed that the \SpecialChar LaTeX
18437  environment ignores white space
18438  (including one newline character) after the 
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443
18444 \backslash
18445 begin{
18446 \emph on
18447 LatexName
18448 \emph default
18449 }
18450 \end_layout
18451
18452 \end_inset
18453
18454  and 
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459
18460 \backslash
18461 end{
18462 \emph on
18463 LatexName
18464 \emph default
18465 }
18466 \end_layout
18467
18468 \end_inset
18469
18470  tags.
18471  Default is true.
18472 \end_layout
18473
18474 \begin_layout Description
18475 \begin_inset Flex Code
18476 status collapsed
18477
18478 \begin_layout Plain Layout
18479 End
18480 \end_layout
18481
18482 \end_inset
18483
18484  Required at the end of the 
18485 \begin_inset Flex Code
18486 status collapsed
18487
18488 \begin_layout Plain Layout
18489 InsetLayout
18490 \end_layout
18491
18492 \end_inset
18493
18494  declarations.
18495 \end_layout
18496
18497 \begin_layout Description
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 Font
18503 \end_layout
18504
18505 \end_inset
18506
18507  The font used for both the text body 
18508 \emph on
18509 and
18510 \emph default
18511  the label.
18512  See 
18513 \begin_inset CommandInset ref
18514 LatexCommand ref
18515 reference "subsec:Font-description"
18516
18517 \end_inset
18518
18519 .
18520  Note that defining this font automatically defines the 
18521 \begin_inset Flex Code
18522 status collapsed
18523
18524 \begin_layout Plain Layout
18525 LabelFont
18526 \end_layout
18527
18528 \end_inset
18529
18530  to the same value, so define this first and define 
18531 \begin_inset Flex Code
18532 status collapsed
18533
18534 \begin_layout Plain Layout
18535 LabelFont
18536 \end_layout
18537
18538 \end_inset
18539
18540  later if you want them to be different.
18541 \end_layout
18542
18543 \begin_layout Description
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 FixedWidthPreambleEncoding
18549 \end_layout
18550
18551 \end_inset
18552
18553  [
18554 \begin_inset Flex Code
18555 status collapsed
18556
18557 \begin_layout Plain Layout
18558
18559 \emph on
18560 0
18561 \end_layout
18562
18563 \end_inset
18564
18565 ,
18566 \begin_inset space \thinspace{}
18567 \end_inset
18568
18569
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574 1
18575 \end_layout
18576
18577 \end_inset
18578
18579 ] Force a fixed width encoding for the translated contents of 
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584 BabelPreamble
18585 \end_layout
18586
18587 \end_inset
18588
18589  and 
18590 \begin_inset Flex Code
18591 status collapsed
18592
18593 \begin_layout Plain Layout
18594 LangPreamble
18595 \end_layout
18596
18597 \end_inset
18598
18599  code generated by this layout.
18600  This is needed for special \SpecialChar LaTeX
18601 -packages like 
18602 \family typewriter
18603 listings
18604 \family default
18605  that do not work with variable width encodings such as 
18606 \family sans
18607 utf8
18608 \family default
18609 .
18610  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18611  backends such as Xe\SpecialChar TeX
18612  or
18613  Lua\SpecialChar TeX
18614  are used.
18615 \end_layout
18616
18617 \begin_layout Description
18618 \begin_inset Flex Code
18619 status collapsed
18620
18621 \begin_layout Plain Layout
18622 ForceLocalFontSwitch
18623 \end_layout
18624
18625 \end_inset
18626
18627  [
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632
18633 \emph on
18634 0
18635 \end_layout
18636
18637 \end_inset
18638
18639 ,
18640 \begin_inset space \thinspace{}
18641 \end_inset
18642
18643
18644 \begin_inset Flex Code
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648 1
18649 \end_layout
18650
18651 \end_inset
18652
18653 ] When using babel, always use a local font switch (
18654 \begin_inset Flex Code
18655 status collapsed
18656
18657 \begin_layout Plain Layout
18658
18659 \backslash
18660 foreignlanguage
18661 \end_layout
18662
18663 \end_inset
18664
18665 ), never a global one (such as 
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670
18671 \backslash
18672 selectlanguage
18673 \end_layout
18674
18675 \end_inset
18676
18677 ).
18678 \end_layout
18679
18680 \begin_layout Description
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 ForceLTR
18686 \end_layout
18687
18688 \end_inset
18689
18690  [
18691 \begin_inset Flex Code
18692 status collapsed
18693
18694 \begin_layout Plain Layout
18695
18696 \emph on
18697 0
18698 \end_layout
18699
18700 \end_inset
18701
18702 ,
18703 \begin_inset space \thinspace{}
18704 \end_inset
18705
18706
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 1
18712 \end_layout
18713
18714 \end_inset
18715
18716 ] Force the 
18717 \begin_inset Quotes eld
18718 \end_inset
18719
18720 latex
18721 \begin_inset Quotes erd
18722 \end_inset
18723
18724  language, leading to Left-to-Right (Latin) output, e.
18725 \begin_inset space \thinspace{}
18726 \end_inset
18727
18728 g.
18729 \begin_inset space \space{}
18730 \end_inset
18731
18732 in \SpecialChar TeX
18733  code or URL.
18734  A kludge.
18735 \end_layout
18736
18737 \begin_layout Description
18738 \begin_inset Flex Code
18739 status collapsed
18740
18741 \begin_layout Plain Layout
18742 ForceOwnlines
18743 \end_layout
18744
18745 \end_inset
18746
18747  [
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752
18753 \emph on
18754 0
18755 \end_layout
18756
18757 \end_inset
18758
18759 ,
18760 \begin_inset space \thinspace{}
18761 \end_inset
18762
18763
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768 1
18769 \end_layout
18770
18771 \end_inset
18772
18773 ] Force a a line break in the \SpecialChar LaTeX
18774  output before the inset starts and after
18775  the inset ends.
18776  This assures the inset itself is output on its own lines, for parsing purposes.
18777 \end_layout
18778
18779 \begin_layout Description
18780 \begin_inset Flex Code
18781 status collapsed
18782
18783 \begin_layout Plain Layout
18784 ForcePlain
18785 \end_layout
18786
18787 \end_inset
18788
18789  [
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794
18795 \emph on
18796 0
18797 \end_layout
18798
18799 \end_inset
18800
18801 ,
18802 \begin_inset space \thinspace{}
18803 \end_inset
18804
18805
18806 \begin_inset Flex Code
18807 status collapsed
18808
18809 \begin_layout Plain Layout
18810 1
18811 \end_layout
18812
18813 \end_inset
18814
18815 ] Indicates whether the 
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 PlainLayout
18821 \end_layout
18822
18823 \end_inset
18824
18825  should be used or, instead, the user can change the paragraph style used
18826  in the inset.
18827  Default is false.
18828 \end_layout
18829
18830 \begin_layout Description
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 FreeSpacing
18836 \end_layout
18837
18838 \end_inset
18839
18840  [
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845
18846 \emph on
18847 0
18848 \end_layout
18849
18850 \end_inset
18851
18852 ,
18853 \begin_inset space \thinspace{}
18854 \end_inset
18855
18856
18857 \begin_inset Flex Code
18858 status collapsed
18859
18860 \begin_layout Plain Layout
18861 1
18862 \end_layout
18863
18864 \end_inset
18865
18866 ] As with paragraph styles, see 
18867 \begin_inset CommandInset ref
18868 LatexCommand ref
18869 reference "subsec:Paragraph-Styles"
18870
18871 \end_inset
18872
18873 .
18874 \end_layout
18875
18876 \begin_layout Description
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 HTML*
18882 \end_layout
18883
18884 \end_inset
18885
18886  These tags control the XHTML output.
18887  See 
18888 \begin_inset CommandInset ref
18889 LatexCommand ref
18890 reference "sec:Tags-for-XHTML"
18891
18892 \end_inset
18893
18894 .
18895 \end_layout
18896
18897 \begin_layout Description
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902 InToc
18903 \end_layout
18904
18905 \end_inset
18906
18907  [
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912
18913 \emph on
18914 0
18915 \end_layout
18916
18917 \end_inset
18918
18919 ,
18920 \begin_inset space \thinspace{}
18921 \end_inset
18922
18923
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 1
18929 \end_layout
18930
18931 \end_inset
18932
18933 ] Whether to include the contents of this inset in the strings generated
18934  for the `Outline' pane
18935 \change_inserted 2047637253 1483900773
18936  for all table of contents, regardless of the AddToToc setting
18937 \change_unchanged
18938 .
18939  One would not, for example, want the content of a footnote in a section
18940  header to be included in the TOC displayed in the outline, but one would
18941  normally want the content of a character style displayed.
18942  Default is false: not to include.
18943 \change_inserted 2047637253 1483900609
18944
18945 \end_layout
18946
18947 \begin_layout Description
18948
18949 \change_inserted 2047637253 1483901257
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954
18955 \change_inserted 2047637253 1483900725
18956 IsTocCaption
18957 \end_layout
18958
18959 \end_inset
18960
18961  [
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966
18967 \change_inserted 2047637253 1483900620
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
18985 \change_inserted 2047637253 1483900620
18986 1
18987 \end_layout
18988
18989 \end_inset
18990
18991 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18992  of its contents in its item in the table of contents.
18993  Otherwise, only the label appears.
18994 \change_unchanged
18995
18996 \end_layout
18997
18998 \begin_layout Description
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 KeepEmpty
19004 \end_layout
19005
19006 \end_inset
19007
19008  [
19009 \emph on
19010
19011 \begin_inset Flex Code
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 0
19016 \end_layout
19017
19018 \end_inset
19019
19020
19021 \emph default
19022 ,
19023 \begin_inset space \thinspace{}
19024 \end_inset
19025
19026
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 1
19032 \end_layout
19033
19034 \end_inset
19035
19036 ] As with paragraph styles, see 
19037 \begin_inset CommandInset ref
19038 LatexCommand ref
19039 reference "subsec:Paragraph-Styles"
19040
19041 \end_inset
19042
19043 .
19044 \end_layout
19045
19046 \begin_layout Description
19047 \begin_inset Flex Code
19048 status collapsed
19049
19050 \begin_layout Plain Layout
19051 LabelFont
19052 \end_layout
19053
19054 \end_inset
19055
19056  The font used for the label.
19057  See 
19058 \begin_inset CommandInset ref
19059 LatexCommand ref
19060 reference "subsec:Font-description"
19061
19062 \end_inset
19063
19064 .
19065  Note that this definition can never appear before 
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 Font
19071 \end_layout
19072
19073 \end_inset
19074
19075 , lest it be ineffective.
19076 \end_layout
19077
19078 \begin_layout Description
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 LabelString
19084 \end_layout
19085
19086 \end_inset
19087
19088  [
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 string
19094 \end_layout
19095
19096 \end_inset
19097
19098 =
19099 \begin_inset Quotes erd
19100 \end_inset
19101
19102
19103 \begin_inset Quotes erd
19104 \end_inset
19105
19106 ] What will be displayed on the button or elsewhere as the inset label.
19107  Some inset types (
19108 \begin_inset Flex Code
19109 status collapsed
19110
19111 \begin_layout Plain Layout
19112 \SpecialChar TeX
19113  code
19114 \end_layout
19115
19116 \end_inset
19117
19118  and 
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 Branch
19124 \end_layout
19125
19126 \end_inset
19127
19128 ) modify this label on the fly.
19129 \end_layout
19130
19131 \begin_layout Description
19132 \begin_inset Flex Code
19133 status collapsed
19134
19135 \begin_layout Plain Layout
19136 LangPreamble
19137 \end_layout
19138
19139 \end_inset
19140
19141  Language dependent preamble; see 
19142 \begin_inset CommandInset ref
19143 LatexCommand ref
19144 reference "subsec:I18n"
19145
19146 \end_inset
19147
19148 .
19149 \end_layout
19150
19151 \begin_layout Description
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 LatexName
19157 \end_layout
19158
19159 \end_inset
19160
19161  [
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 <name>
19167 \end_layout
19168
19169 \end_inset
19170
19171 ] The name of the corresponding \SpecialChar LaTeX
19172  stuff.
19173  Either the environment or command name.
19174 \end_layout
19175
19176 \begin_layout Description
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 LatexParam
19182 \end_layout
19183
19184 \end_inset
19185
19186  [
19187 \begin_inset Flex Code
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191 <parameter>
19192 \end_layout
19193
19194 \end_inset
19195
19196 ] The optional parameter for the corresponding 
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201 LatexName
19202 \end_layout
19203
19204 \end_inset
19205
19206  stuff, including possible bracket pairs like 
19207 \begin_inset Flex Code
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 []
19212 \end_layout
19213
19214 \end_inset
19215
19216 .
19217  This parameter cannot be changed from within \SpecialChar LyX
19218  (use 
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 Argument
19224 \end_layout
19225
19226 \end_inset
19227
19228  for customizable parameters).
19229  It will be output as is after all \SpecialChar LaTeX
19230  
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 Argument
19236 \end_layout
19237
19238 \end_inset
19239
19240 s.
19241 \end_layout
19242
19243 \begin_layout Description
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 LatexType
19249 \end_layout
19250
19251 \end_inset
19252
19253  [
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 Command, Environment, None
19259 \end_layout
19260
19261 \end_inset
19262
19263 ] How the style should be translated into \SpecialChar LaTeX
19264 .
19265 \begin_inset Foot
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 \begin_inset Flex Code
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 LatexType
19274 \end_layout
19275
19276 \end_inset
19277
19278  is perhaps a bit misleading, since these rules apply to SGML classes too.
19279  Visit the SGML class files for specific examples.
19280 \end_layout
19281
19282 \end_inset
19283
19284
19285 \end_layout
19286
19287 \begin_deeper
19288 \begin_layout Description
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293 None
19294 \end_layout
19295
19296 \end_inset
19297
19298  means nothing special
19299 \end_layout
19300
19301 \begin_layout Description
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 Command
19307 \end_layout
19308
19309 \end_inset
19310
19311  means 
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316
19317 \backslash
19318
19319 \emph on
19320 LatexName
19321 \emph default
19322 {\SpecialChar ldots
19323 }
19324 \end_layout
19325
19326 \end_inset
19327
19328
19329 \end_layout
19330
19331 \begin_layout Description
19332 \begin_inset Flex Code
19333 status collapsed
19334
19335 \begin_layout Plain Layout
19336 Environment
19337 \end_layout
19338
19339 \end_inset
19340
19341  means 
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346
19347 \backslash
19348 begin{
19349 \emph on
19350 LatexName
19351 \emph default
19352 }\SpecialChar ldots
19353
19354 \backslash
19355 end{
19356 \emph on
19357 LatexName
19358 \emph default
19359 }
19360 \end_layout
19361
19362 \end_inset
19363
19364
19365 \end_layout
19366
19367 \begin_layout Standard
19368 Putting the last few things together, the \SpecialChar LaTeX
19369  output will be either: 
19370 \end_layout
19371
19372 \begin_layout LyX-Code
19373
19374 \backslash
19375 LatexName[LatexParam]{\SpecialChar ldots
19376 }
19377 \end_layout
19378
19379 \begin_layout Standard
19380 or: 
19381 \end_layout
19382
19383 \begin_layout LyX-Code
19384
19385 \backslash
19386 begin{LatexName}[LatexParam] \SpecialChar ldots
19387  
19388 \backslash
19389 end{LatexName}
19390 \end_layout
19391
19392 \begin_layout Standard
19393 depending upon the \SpecialChar LaTeX
19394  type.
19395 \end_layout
19396
19397 \end_deeper
19398 \begin_layout Description
19399 \begin_inset Flex Code
19400 status collapsed
19401
19402 \begin_layout Plain Layout
19403 LeftDelim
19404 \end_layout
19405
19406 \end_inset
19407
19408  [
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 string
19414 \end_layout
19415
19416 \end_inset
19417
19418 ] A string that is put at the beginning of the layout content.
19419  A line break in the output can be indicated by 
19420 \begin_inset Flex Code
19421 status collapsed
19422
19423 \begin_layout Plain Layout
19424 <br/>
19425 \end_layout
19426
19427 \end_inset
19428
19429 .
19430 \end_layout
19431
19432 \begin_layout Description
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 LyxType
19438 \end_layout
19439
19440 \end_inset
19441
19442  Can be 
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 charstyle
19448 \end_layout
19449
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 custom
19458 \end_layout
19459
19460 \end_inset
19461
19462
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 element
19468 \end_layout
19469
19470 \end_inset
19471
19472  or 
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 end
19478 \end_layout
19479
19480 \end_inset
19481
19482  (indicating a dummy definition ending definitions of charstyles, etc).
19483  This entry is required in and is only meaningful for Flex insets.
19484  Among other things, it determines on which menu this inset will appear.
19485  Setting 
19486 \begin_inset Flex Code
19487 status collapsed
19488
19489 \begin_layout Plain Layout
19490 LyxType
19491 \end_layout
19492
19493 \end_inset
19494
19495  to 
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 charstyle
19501 \end_layout
19502
19503 \end_inset
19504
19505  will automatically set 
19506 \begin_inset Flex Code
19507 status collapsed
19508
19509 \begin_layout Plain Layout
19510 MultiPar
19511 \end_layout
19512
19513 \end_inset
19514
19515  to false and 
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 ForcePlain
19521 \end_layout
19522
19523 \end_inset
19524
19525  to true.
19526  
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 MultiPar
19532 \end_layout
19533
19534 \end_inset
19535
19536  can be set to true, or 
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 ForcePlain
19542 \end_layout
19543
19544 \end_inset
19545
19546  to false, for 
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 charstyle
19552 \end_layout
19553
19554 \end_inset
19555
19556  insets by setting it 
19557 \emph on
19558 after
19559 \emph default
19560  you set the 
19561 \begin_inset Flex Code
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565 LyxType
19566 \end_layout
19567
19568 \end_inset
19569
19570 .
19571 \end_layout
19572
19573 \begin_layout Description
19574 \begin_inset Flex Code
19575 status collapsed
19576
19577 \begin_layout Plain Layout
19578 MultiPar
19579 \end_layout
19580
19581 \end_inset
19582
19583  [
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588
19589 \emph on
19590 0
19591 \end_layout
19592
19593 \end_inset
19594
19595 ,
19596 \begin_inset space \thinspace{}
19597 \end_inset
19598
19599
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 1
19605 \end_layout
19606
19607 \end_inset
19608
19609 ] Whether multiple paragraphs are permitted in this inset.
19610  This will also set 
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 CustomPars
19616 \end_layout
19617
19618 \end_inset
19619
19620  to the same value and 
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625 ForcePlain
19626 \end_layout
19627
19628 \end_inset
19629
19630  to the opposite value.
19631  These can be reset to other values, if they are used 
19632 \emph on
19633 after
19634 \emph default
19635  
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 MultiPar
19641 \end_layout
19642
19643 \end_inset
19644
19645 .
19646  Default is true.
19647 \end_layout
19648
19649 \begin_layout Description
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 NeedProtect
19655 \end_layout
19656
19657 \end_inset
19658
19659  [
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664
19665 \emph on
19666 0
19667 \end_layout
19668
19669 \end_inset
19670
19671 ,
19672 \begin_inset space \thinspace{}
19673 \end_inset
19674
19675
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 1
19681 \end_layout
19682
19683 \end_inset
19684
19685 ] Whether fragile commands in this inset should be 
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690
19691 \backslash
19692 protect
19693 \end_layout
19694
19695 \end_inset
19696
19697 'ed.
19698  (Note: This is 
19699 \emph on
19700 not
19701 \emph default
19702  whether the command should itself be protected.) Default is false.
19703 \end_layout
19704
19705 \begin_layout Description
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 NoInsetLayout
19711 \end_layout
19712
19713 \end_inset
19714
19715  [
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720 <layout>
19721 \end_layout
19722
19723 \end_inset
19724
19725 ] Deletes an existing 
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 InsetLayout
19731 \end_layout
19732
19733 \end_inset
19734
19735 .
19736 \end_layout
19737
19738 \begin_layout Description
19739 \begin_inset Flex Code
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 ObsoletedBy
19744 \end_layout
19745
19746 \end_inset
19747
19748  [
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 <layout>
19754 \end_layout
19755
19756 \end_inset
19757
19758 ] Name of an 
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 InsetLayout
19764 \end_layout
19765
19766 \end_inset
19767
19768  that has replaced this 
19769 \begin_inset Flex Code
19770 status collapsed
19771
19772 \begin_layout Plain Layout
19773 InsetLayout
19774 \end_layout
19775
19776 \end_inset
19777
19778 .
19779  This is used to rename an 
19780 \begin_inset Flex Code
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 InsetLayout
19785 \end_layout
19786
19787 \end_inset
19788
19789 , while keeping backward compatibility.
19790 \end_layout
19791
19792 \begin_layout Description
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 ParbreakIsNewline
19798 \end_layout
19799
19800 \end_inset
19801
19802  [
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807
19808 \emph on
19809 0
19810 \end_layout
19811
19812 \end_inset
19813
19814 ,
19815 \begin_inset space \thinspace{}
19816 \end_inset
19817
19818
19819 \begin_inset Flex Code
19820 status collapsed
19821
19822 \begin_layout Plain Layout
19823 1
19824 \end_layout
19825
19826 \end_inset
19827
19828 ] As with paragraph styles, see 
19829 \begin_inset CommandInset ref
19830 LatexCommand ref
19831 reference "subsec:Paragraph-Styles"
19832
19833 \end_inset
19834
19835 .
19836  Default is false.
19837 \end_layout
19838
19839 \begin_layout Description
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 PassThru
19845 \end_layout
19846
19847 \end_inset
19848
19849  [
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854
19855 \emph on
19856 0
19857 \end_layout
19858
19859 \end_inset
19860
19861 ,
19862 \begin_inset space \thinspace{}
19863 \end_inset
19864
19865
19866 \begin_inset Flex Code
19867 status collapsed
19868
19869 \begin_layout Plain Layout
19870 1
19871 \end_layout
19872
19873 \end_inset
19874
19875 ] As with paragraph styles, see 
19876 \begin_inset CommandInset ref
19877 LatexCommand ref
19878 reference "subsec:Paragraph-Styles"
19879
19880 \end_inset
19881
19882 .
19883  Default is false.
19884 \end_layout
19885
19886 \begin_layout Description
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 Preamble
19892 \end_layout
19893
19894 \end_inset
19895
19896  As with paragraph styles, see 
19897 \begin_inset CommandInset ref
19898 LatexCommand ref
19899 reference "subsec:Paragraph-Styles"
19900
19901 \end_inset
19902
19903 .
19904 \end_layout
19905
19906 \begin_layout Description
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 RefPrefix
19912 \end_layout
19913
19914 \end_inset
19915
19916  [
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 string
19922 \end_layout
19923
19924 \end_inset
19925
19926 ] The prefix to use when creating labels referring to insets of this type.
19927  This allows the use of formatted references.
19928 \end_layout
19929
19930 \begin_layout Description
19931 \begin_inset Flex Code
19932 status collapsed
19933
19934 \begin_layout Plain Layout
19935 Requires
19936 \end_layout
19937
19938 \end_inset
19939
19940  [
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 string
19946 \end_layout
19947
19948 \end_inset
19949
19950 ] As with paragraph styles, see 
19951 \begin_inset CommandInset ref
19952 LatexCommand ref
19953 reference "subsec:Paragraph-Styles"
19954
19955 \end_inset
19956
19957 .
19958 \end_layout
19959
19960 \begin_layout Description
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 ResetArgs
19966 \end_layout
19967
19968 \end_inset
19969
19970  [
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975
19976 \emph on
19977 0
19978 \end_layout
19979
19980 \end_inset
19981
19982 ,
19983 \begin_inset space \thinspace{}
19984 \end_inset
19985
19986
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 1
19992 \end_layout
19993
19994 \end_inset
19995
19996 ] Resets the \SpecialChar LaTeX
19997  arguments of this layout (as defined via the 
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 Argument
20003 \end_layout
20004
20005 \end_inset
20006
20007  tag).
20008  This is useful if you have copied a style via 
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 CopyStyle
20014 \end_layout
20015
20016 \end_inset
20017
20018 , but you do not want to inherit its (required and optional) arguments.
20019 \end_layout
20020
20021 \begin_layout Description
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 ResetsFont
20027 \end_layout
20028
20029 \end_inset
20030
20031  [
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 0
20037 \end_layout
20038
20039 \end_inset
20040
20041 ,
20042 \begin_inset space \thinspace{}
20043 \end_inset
20044
20045
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050
20051 \emph on
20052 1
20053 \end_layout
20054
20055 \end_inset
20056
20057 ] Whether this inset should use the font of its surrounding environment
20058  or uses its own.
20059  Default is false: use the font of the surrounding environment.
20060 \end_layout
20061
20062 \begin_layout Description
20063 \begin_inset Flex Code
20064 status collapsed
20065
20066 \begin_layout Plain Layout
20067 RightDelim
20068 \end_layout
20069
20070 \end_inset
20071
20072  [
20073 \begin_inset Flex Code
20074 status collapsed
20075
20076 \begin_layout Plain Layout
20077 string
20078 \end_layout
20079
20080 \end_inset
20081
20082 ] A string that is put at the end of the layout content.
20083  A line break in the output can be indicated by 
20084 \begin_inset Flex Code
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088 <br/>
20089 \end_layout
20090
20091 \end_inset
20092
20093 .
20094 \end_layout
20095
20096 \begin_layout Description
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 Spellcheck
20102 \end_layout
20103
20104 \end_inset
20105
20106  [
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 0
20112 \end_layout
20113
20114 \end_inset
20115
20116 ,
20117 \begin_inset space \thinspace{}
20118 \end_inset
20119
20120
20121 \begin_inset Flex Code
20122 status collapsed
20123
20124 \begin_layout Plain Layout
20125
20126 \emph on
20127 1
20128 \end_layout
20129
20130 \end_inset
20131
20132 ] Allow spell-checking the contents of this inset.
20133  Default is true.
20134 \end_layout
20135
20136 \begin_layout Subsection
20137 Counters
20138 \begin_inset CommandInset label
20139 LatexCommand label
20140 name "subsec:Counters"
20141
20142 \end_inset
20143
20144
20145 \end_layout
20146
20147 \begin_layout Standard
20148 It is necessary to define the counters (
20149 \begin_inset Flex Noun
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 chapter
20154 \end_layout
20155
20156 \end_inset
20157
20158
20159 \begin_inset Flex Noun
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 figure
20164 \end_layout
20165
20166 \end_inset
20167
20168 , \SpecialChar ldots
20169 ) in the text class itself.
20170  The standard counters are defined in the file 
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 stdcounters.inc
20176 \end_layout
20177
20178 \end_inset
20179
20180 , so you may have to do no more than add
20181 \end_layout
20182
20183 \begin_layout LyX-Code
20184 Input stdcounters.inc
20185 \end_layout
20186
20187 \begin_layout Standard
20188 to your layout file to get them to work.
20189  But if you want to define custom counters, then you can do so.
20190  The counter declaration must begin with:
20191 \end_layout
20192
20193 \begin_layout LyX-Code
20194 Counter CounterName
20195 \end_layout
20196
20197 \begin_layout Standard
20198 where of course `
20199 \begin_inset Flex Code
20200 status collapsed
20201
20202 \begin_layout Plain Layout
20203 CounterName
20204 \end_layout
20205
20206 \end_inset
20207
20208 ' is replaced by the name of the counter.
20209  And it must end with 
20210 \begin_inset Quotes eld
20211 \end_inset
20212
20213
20214 \begin_inset Flex Code
20215 status collapsed
20216
20217 \begin_layout Plain Layout
20218 End
20219 \end_layout
20220
20221 \end_inset
20222
20223
20224 \begin_inset Quotes erd
20225 \end_inset
20226
20227 .
20228  The following parameters can also be used:
20229 \end_layout
20230
20231 \begin_layout Description
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 InitialValue
20237 \end_layout
20238
20239 \end_inset
20240
20241  [
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 int=1
20247 \end_layout
20248
20249 \end_inset
20250
20251 ] Sets the initial value for the counter, to which it will be reset whenever
20252  that happens.
20253  Normally, one will want the default, 1.
20254 \end_layout
20255
20256 \begin_layout Description
20257 \begin_inset Flex Code
20258 status collapsed
20259
20260 \begin_layout Plain Layout
20261 LabelString
20262 \end_layout
20263
20264 \end_inset
20265
20266  [
20267 \begin_inset Flex Code
20268 status collapsed
20269
20270 \begin_layout Plain Layout
20271 string
20272 \end_layout
20273
20274 \end_inset
20275
20276 =
20277 \begin_inset Quotes erd
20278 \end_inset
20279
20280
20281 \begin_inset Quotes erd
20282 \end_inset
20283
20284 ] When defined, this string defines how the counter is displayed.
20285  Setting this value sets 
20286 \begin_inset Flex Code
20287 status collapsed
20288
20289 \begin_layout Plain Layout
20290 LabelStringAppendix
20291 \end_layout
20292
20293 \end_inset
20294
20295  to the same value.
20296  The following special constructs can be used in the string:
20297 \end_layout
20298
20299 \begin_deeper
20300 \begin_layout Itemize
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305
20306 \backslash
20307 thecounter
20308 \end_layout
20309
20310 \end_inset
20311
20312  will be replaced by the expansion of the 
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  (or 
20323 \begin_inset Flex Code
20324 status collapsed
20325
20326 \begin_layout Plain Layout
20327 LabelStringAppendix
20328 \end_layout
20329
20330 \end_inset
20331
20332 ) of the counter 
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 counter
20338 \end_layout
20339
20340 \end_inset
20341
20342 .
20343  
20344 \end_layout
20345
20346 \begin_layout Itemize
20347 counter values can be expressed using \SpecialChar LaTeX
20348 -like macros
20349 \begin_inset Newline newline
20350 \end_inset
20351
20352
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357
20358 \backslash
20359
20360 \emph on
20361 numbertype
20362 \emph default
20363 {
20364 \emph on
20365 counter
20366 \emph default
20367 }
20368 \end_layout
20369
20370 \end_inset
20371
20372 , where 
20373 \begin_inset Flex Code
20374 status collapsed
20375
20376 \begin_layout Plain Layout
20377
20378 \emph on
20379 numbertype
20380 \end_layout
20381
20382 \end_inset
20383
20384  can be:
20385 \begin_inset Foot
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389
20390 \family roman
20391 \series medium
20392 \shape up
20393 \size normal
20394 \emph off
20395 \bar no
20396 \noun off
20397 \color none
20398 Actually, the situation is a bit more complicated: any
20399 \family default
20400 \series default
20401 \shape default
20402 \emph default
20403 \bar default
20404  
20405 \size default
20406 \emph on
20407 \noun default
20408 \color inherit
20409 numbertype
20410 \family roman
20411 \series medium
20412 \shape up
20413 \size normal
20414 \emph off
20415 \bar no
20416 \noun off
20417  other than those described below will produce arabic numerals.
20418  It would not be surprising to see this change in the future.
20419 \end_layout
20420
20421 \end_inset
20422
20423  
20424 \begin_inset Flex Code
20425 status collapsed
20426
20427 \begin_layout Plain Layout
20428 arabic
20429 \end_layout
20430
20431 \end_inset
20432
20433 : 1, 2, 3,\SpecialChar ldots
20434
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 alph
20440 \end_layout
20441
20442 \end_inset
20443
20444  for lower-case letters: a, b, c, \SpecialChar ldots
20445
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 Alph
20451 \end_layout
20452
20453 \end_inset
20454
20455  for upper-case letters: A, B, C, \SpecialChar ldots
20456
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 roman
20462 \end_layout
20463
20464 \end_inset
20465
20466  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20467
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 Roman
20473 \end_layout
20474
20475 \end_inset
20476
20477  for upper-case roman numerals: I, II, III\SpecialChar ldots
20478
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 hebrew
20484 \end_layout
20485
20486 \end_inset
20487
20488  for hebrew numerals.
20489 \end_layout
20490
20491 \end_deeper
20492 \begin_layout Standard
20493 If LabelString is not defined, a default value is constructed as follows:
20494  if the counter has a master counter 
20495 \begin_inset Flex Code
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 master
20500 \end_layout
20501
20502 \end_inset
20503
20504  (defined via 
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509 Within
20510 \end_layout
20511
20512 \end_inset
20513
20514 ), the string
20515 \begin_inset Newline newline
20516 \end_inset
20517
20518
20519 \begin_inset Flex Code
20520 status collapsed
20521
20522 \begin_layout Plain Layout
20523
20524 \backslash
20525 themaster.
20526 \backslash
20527 arabic{counter}
20528 \end_layout
20529
20530 \end_inset
20531
20532  is used; otherwise the string 
20533 \begin_inset Flex Code
20534 status collapsed
20535
20536 \begin_layout Plain Layout
20537
20538 \backslash
20539 arabic{counter}
20540 \end_layout
20541
20542 \end_inset
20543
20544  is used.
20545 \end_layout
20546
20547 \begin_layout Description
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 LabelStringAppendix
20553 \end_layout
20554
20555 \end_inset
20556
20557  [
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562 string
20563 \end_layout
20564
20565 \end_inset
20566
20567 =
20568 \begin_inset Quotes erd
20569 \end_inset
20570
20571
20572 \begin_inset Quotes erd
20573 \end_inset
20574
20575 ] Same as 
20576 \begin_inset Flex Code
20577 status collapsed
20578
20579 \begin_layout Plain Layout
20580 LabelString
20581 \end_layout
20582
20583 \end_inset
20584
20585 , but for use in the Appendix.
20586 \end_layout
20587
20588 \begin_layout Description
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 PrettyFormat
20594 \end_layout
20595
20596 \end_inset
20597
20598  [
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 string
20604 \end_layout
20605
20606 \end_inset
20607
20608 =
20609 \begin_inset Quotes erd
20610 \end_inset
20611
20612
20613 \begin_inset Quotes erd
20614 \end_inset
20615
20616 ] A format for use with formatted references to this counter.
20617  For example, one might want to have references to section numbers appear
20618  as 
20619 \begin_inset Quotes eld
20620 \end_inset
20621
20622 Section 2.4
20623 \begin_inset Quotes erd
20624 \end_inset
20625
20626 .
20627  The string should contain 
20628 \begin_inset Quotes eld
20629 \end_inset
20630
20631 ##
20632 \begin_inset Quotes erd
20633 \end_inset
20634
20635 .
20636  This will be replaced by the counter number itself.
20637  So, for sections, it would be: Section ##.
20638 \end_layout
20639
20640 \begin_layout Description
20641 \begin_inset Flex Code
20642 status collapsed
20643
20644 \begin_layout Plain Layout
20645 Within
20646 \end_layout
20647
20648 \end_inset
20649
20650  [
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 string
20656 \end_layout
20657
20658 \end_inset
20659
20660 =
20661 \begin_inset Quotes erd
20662 \end_inset
20663
20664
20665 \begin_inset Quotes erd
20666 \end_inset
20667
20668 ] If this is set to the name of another counter, the present counter will
20669  be reset every time the other one is increased.
20670  For example, 
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 subsection
20676 \end_layout
20677
20678 \end_inset
20679
20680  is numbered inside 
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 section
20686 \end_layout
20687
20688 \end_inset
20689
20690 .
20691 \end_layout
20692
20693 \begin_layout Subsection
20694 Font description
20695 \begin_inset CommandInset label
20696 LatexCommand label
20697 name "subsec:Font-description"
20698
20699 \end_inset
20700
20701
20702 \end_layout
20703
20704 \begin_layout Standard
20705 A font description looks like this:
20706 \end_layout
20707
20708 \begin_layout LyX-Code
20709 Font 
20710 \family roman
20711 \emph on
20712 or
20713 \family default
20714 \emph default
20715  LabelFont
20716 \emph on
20717  or
20718 \emph default
20719  DefaultFont
20720 \end_layout
20721
20722 \begin_layout LyX-Code
20723  ...
20724 \end_layout
20725
20726 \begin_layout LyX-Code
20727 EndFont
20728 \end_layout
20729
20730 \begin_layout Standard
20731 The following commands are available:
20732 \end_layout
20733
20734 \begin_layout Description
20735 \begin_inset Flex Code
20736 status collapsed
20737
20738 \begin_layout Plain Layout
20739 Color
20740 \end_layout
20741
20742 \end_inset
20743
20744  [
20745 \begin_inset Flex Code
20746 status collapsed
20747
20748 \begin_layout Plain Layout
20749
20750 \emph on
20751 none
20752 \end_layout
20753
20754 \end_inset
20755
20756
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 black
20762 \end_layout
20763
20764 \end_inset
20765
20766
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 white
20772 \end_layout
20773
20774 \end_inset
20775
20776
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 red
20782 \end_layout
20783
20784 \end_inset
20785
20786
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791 green
20792 \end_layout
20793
20794 \end_inset
20795
20796
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 blue
20802 \end_layout
20803
20804 \end_inset
20805
20806
20807 \begin_inset Flex Code
20808 status collapsed
20809
20810 \begin_layout Plain Layout
20811 cyan
20812 \end_layout
20813
20814 \end_inset
20815
20816
20817 \begin_inset Flex Code
20818 status collapsed
20819
20820 \begin_layout Plain Layout
20821 magenta
20822 \end_layout
20823
20824 \end_inset
20825
20826
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 yellow
20832 \end_layout
20833
20834 \end_inset
20835
20836
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841 brown
20842 \end_layout
20843
20844 \end_inset
20845
20846
20847 \begin_inset Flex Code
20848 status collapsed
20849
20850 \begin_layout Plain Layout
20851 darkgray
20852 \end_layout
20853
20854 \end_inset
20855
20856
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 gray
20862 \end_layout
20863
20864 \end_inset
20865
20866
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 lightgray
20872 \end_layout
20873
20874 \end_inset
20875
20876
20877 \begin_inset Flex Code
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 lime
20882 \end_layout
20883
20884 \end_inset
20885
20886
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 orange
20892 \end_layout
20893
20894 \end_inset
20895
20896
20897 \begin_inset Flex Code
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 olive
20902 \end_layout
20903
20904 \end_inset
20905
20906
20907 \begin_inset Flex Code
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 pink
20912 \end_layout
20913
20914 \end_inset
20915
20916
20917 \begin_inset Flex Code
20918 status collapsed
20919
20920 \begin_layout Plain Layout
20921 purple
20922 \end_layout
20923
20924 \end_inset
20925
20926
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 teal
20932 \end_layout
20933
20934 \end_inset
20935
20936
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 violet
20942 \end_layout
20943
20944 \end_inset
20945
20946 ]
20947 \end_layout
20948
20949 \begin_layout Description
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 Family
20955 \end_layout
20956
20957 \end_inset
20958
20959  [
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964
20965 \emph on
20966 Roman
20967 \end_layout
20968
20969 \end_inset
20970
20971
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 Sans
20977 \end_layout
20978
20979 \end_inset
20980
20981
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 Typewriter
20987 \end_layout
20988
20989 \end_inset
20990
20991 ]
20992 \end_layout
20993
20994 \begin_layout Description
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 Misc
21000 \end_layout
21001
21002 \end_inset
21003
21004  [
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 string
21010 \end_layout
21011
21012 \end_inset
21013
21014 ] Valid arguments are: 
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 emph
21020 \end_layout
21021
21022 \end_inset
21023
21024
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 noun
21030 \end_layout
21031
21032 \end_inset
21033
21034
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 strikeout
21040 \end_layout
21041
21042 \end_inset
21043
21044
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049 underbar
21050 \end_layout
21051
21052 \end_inset
21053
21054
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 uuline
21060 \end_layout
21061
21062 \end_inset
21063
21064
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 uwave
21070 \end_layout
21071
21072 \end_inset
21073
21074
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 no_emph
21080 \end_layout
21081
21082 \end_inset
21083
21084
21085 \begin_inset Flex Code
21086 status collapsed
21087
21088 \begin_layout Plain Layout
21089 no_noun
21090 \end_layout
21091
21092 \end_inset
21093
21094
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 no_strikeout
21100 \end_layout
21101
21102 \end_inset
21103
21104
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 no_bar
21110 \end_layout
21111
21112 \end_inset
21113
21114
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 no_uuline
21120 \end_layout
21121
21122 \end_inset
21123
21124  and 
21125 \begin_inset Flex Code
21126 status collapsed
21127
21128 \begin_layout Plain Layout
21129 no_uwave
21130 \end_layout
21131
21132 \end_inset
21133
21134 .
21135  Each of these turns on or off the corresponding attribute.
21136  For example, 
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 emph
21142 \end_layout
21143
21144 \end_inset
21145
21146  turns on emphasis, and 
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 no_emph
21152 \end_layout
21153
21154 \end_inset
21155
21156  turns it off.
21157  
21158 \begin_inset Newline newline
21159 \end_inset
21160
21161 If the latter seems puzzling, remember that the font settings for the present
21162  context are generally inherited from the surrounding context.
21163  So 
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 no_emph
21169 \end_layout
21170
21171 \end_inset
21172
21173  would turn off the emphasis that was anyway in effect, say, in a theorem
21174  environment.
21175 \end_layout
21176
21177 \begin_layout Description
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 Series
21183 \end_layout
21184
21185 \end_inset
21186
21187  [
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192
21193 \emph on
21194 Medium
21195 \end_layout
21196
21197 \end_inset
21198
21199
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204 Bold
21205 \end_layout
21206
21207 \end_inset
21208
21209
21210 \end_layout
21211
21212 \begin_layout Description
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217 Shape
21218 \end_layout
21219
21220 \end_inset
21221
21222  [
21223 \begin_inset Flex Code
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227
21228 \emph on
21229 Up
21230 \end_layout
21231
21232 \end_inset
21233
21234
21235 \begin_inset Flex Code
21236 status collapsed
21237
21238 \begin_layout Plain Layout
21239 Italic
21240 \end_layout
21241
21242 \end_inset
21243
21244
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 SmallCaps
21250 \end_layout
21251
21252 \end_inset
21253
21254
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 Slanted
21260 \end_layout
21261
21262 \end_inset
21263
21264
21265 \end_layout
21266
21267 \begin_layout Description
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 Size
21273 \end_layout
21274
21275 \end_inset
21276
21277  [
21278 \begin_inset Flex Code
21279 status collapsed
21280
21281 \begin_layout Plain Layout
21282 tiny
21283 \end_layout
21284
21285 \end_inset
21286
21287
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 small
21293 \end_layout
21294
21295 \end_inset
21296
21297
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302
21303 \emph on
21304 normal
21305 \end_layout
21306
21307 \end_inset
21308
21309
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 large
21315 \end_layout
21316
21317 \end_inset
21318
21319
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 larger
21325 \end_layout
21326
21327 \end_inset
21328
21329
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 largest
21335 \end_layout
21336
21337 \end_inset
21338
21339
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344 huge
21345 \end_layout
21346
21347 \end_inset
21348
21349
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354 giant
21355 \end_layout
21356
21357 \end_inset
21358
21359 ]
21360 \end_layout
21361
21362 \begin_layout Subsection
21363
21364 \change_inserted -712698321 1483869872
21365 \begin_inset CommandInset label
21366 LatexCommand label
21367 name "subsec:Citation-engine-description"
21368
21369 \end_inset
21370
21371 Citation engine description
21372 \end_layout
21373
21374 \begin_layout Standard
21375
21376 \change_inserted -712698321 1483875281
21377 The 
21378 \begin_inset Flex Code
21379 status collapsed
21380
21381 \begin_layout Plain Layout
21382
21383 \change_inserted -712698321 1483869913
21384 CiteEngine
21385 \change_unchanged
21386
21387 \end_layout
21388
21389 \end_inset
21390
21391  blocks, as used mainly in cite engine files (see 
21392 \begin_inset CommandInset ref
21393 LatexCommand ref
21394 reference "subsec:Cite-Engine-Files"
21395 plural "false"
21396 caps "false"
21397 noprefix "false"
21398
21399 \end_inset
21400
21401 ), define the citation commands provided by a specific 
21402 \begin_inset Quotes eld
21403 \end_inset
21404
21405 cite engine
21406 \begin_inset Quotes erd
21407 \end_inset
21408
21409 .
21410  A cite engine, in \SpecialChar LyX
21411  terms, is way specific way to format citations, using
21412  numbers, author names and/or years.
21413  Currently, \SpecialChar LyX
21414  supports three such engine types, namely:
21415 \end_layout
21416
21417 \begin_layout Enumerate
21418
21419 \change_inserted -712698321 1483875764
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424
21425 \change_inserted -712698321 1483870430
21426 default
21427 \change_unchanged
21428
21429 \end_layout
21430
21431 \end_inset
21432
21433 : the default Bib\SpecialChar TeX
21434  way to format citations, a simple numeric style (e.
21435 \begin_inset space \thinspace{}
21436 \end_inset
21437
21438 g., 
21439 \begin_inset Quotes eld
21440 \end_inset
21441
21442 [1]
21443 \begin_inset Quotes erd
21444 \end_inset
21445
21446 )
21447 \end_layout
21448
21449 \begin_layout Enumerate
21450
21451 \change_inserted -712698321 1483875766
21452 \begin_inset Flex Code
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456
21457 \change_inserted -712698321 1483870434
21458 authoryear
21459 \change_unchanged
21460
21461 \end_layout
21462
21463 \end_inset
21464
21465 : Harvard-styled citations using author names and publication year (e.
21466 \begin_inset space \thinspace{}
21467 \end_inset
21468
21469 g., 
21470 \begin_inset Quotes eld
21471 \end_inset
21472
21473 Smith and Miller (2017b)
21474 \begin_inset Quotes erd
21475 \end_inset
21476
21477 )
21478 \end_layout
21479
21480 \begin_layout Enumerate
21481
21482 \change_inserted -712698321 1483875769
21483 \begin_inset Flex Code
21484 status collapsed
21485
21486 \begin_layout Plain Layout
21487
21488 \change_inserted -712698321 1483870457
21489 numerical
21490 \change_unchanged
21491
21492 \end_layout
21493
21494 \end_inset
21495
21496 : extended numerical citations that also allow for author or title next
21497  to the number (e.
21498 \begin_inset space \thinspace{}
21499 \end_inset
21500
21501 g., 
21502 \begin_inset Quotes eld
21503 \end_inset
21504
21505 Smith and Miller [1]
21506 \begin_inset Quotes erd
21507 \end_inset
21508
21509 )
21510 \end_layout
21511
21512 \begin_layout Standard
21513
21514 \change_inserted -712698321 1483870566
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519
21520 \change_inserted -712698321 1483870552
21521 CiteEngine
21522 \end_layout
21523
21524 \end_inset
21525
21526  blocks look like this:
21527 \end_layout
21528
21529 \begin_layout LyX-Code
21530
21531 \change_inserted -712698321 1483870590
21532 CiteEngine default
21533 \end_layout
21534
21535 \begin_layout LyX-Code
21536
21537 \change_inserted -712698321 1483870615
21538  cite
21539 \end_layout
21540
21541 \begin_layout LyX-Code
21542
21543 \change_inserted -712698321 1483870633
21544  Citep*[][]
21545 \end_layout
21546
21547 \begin_layout LyX-Code
21548
21549 \change_inserted -712698321 1483870652
21550  citeyearpar[][]=parencite*
21551 \end_layout
21552
21553 \begin_layout LyX-Code
21554
21555 \change_inserted -712698321 1483870652
21556  ...
21557 \end_layout
21558
21559 \begin_layout LyX-Code
21560
21561 \change_inserted -712698321 1483870668
21562 End
21563 \end_layout
21564
21565 \begin_layout Standard
21566
21567 \change_inserted -712698321 1483871113
21568 The tag following 
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573
21574 \change_inserted -712698321 1483871085
21575 CiteEngine
21576 \end_layout
21577
21578 \end_inset
21579
21580  denotes the engine.
21581  The individual lines respectively define a cite command or cite command
21582  paradigm supported by this engine.
21583  The line can be as simple as a cite command that is used both to name the
21584  respective \SpecialChar LyX
21585  command and the \SpecialChar LaTeX
21586  output or more complex in order to differentiate
21587  things.
21588  
21589 \change_deleted -712698321 1483871114
21590
21591 \end_layout
21592
21593 \begin_layout Standard
21594
21595 \change_inserted -712698321 1483871119
21596 The full syntax is:
21597 \end_layout
21598
21599 \begin_layout LyX-Code
21600
21601 \change_inserted -712698321 1483870927
21602 LyXName|alias*<!_stardesc!_stardesctooltip>[][]=latexcmd
21603 \end_layout
21604
21605 \begin_layout Itemize
21606
21607 \change_inserted -712698321 1483871222
21608 \begin_inset Flex Code
21609 status collapsed
21610
21611 \begin_layout Plain Layout
21612
21613 \change_inserted -712698321 1483871181
21614 LyXName
21615 \change_unchanged
21616
21617 \end_layout
21618
21619 \end_inset
21620
21621 : The name as used in the 
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626
21627 \change_inserted -712698321 1483871216
21628 *.lyx
21629 \change_unchanged
21630
21631 \end_layout
21632
21633 \end_inset
21634
21635  file.
21636 \end_layout
21637
21638 \begin_deeper
21639 \begin_layout Standard
21640
21641 \change_inserted -712698321 1483871487
21642 For portability reasons, we try to use the same name for same-formatted
21643  commands in different cite packages (thus many names stem from natbib,
21644  and thus we need to differentiate a 
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649
21650 \change_inserted -712698321 1483871402
21651 latexcmd
21652 \end_layout
21653
21654 \end_inset
21655
21656  sometimes, if the \SpecialChar LaTeX
21657  command names differ).
21658 \end_layout
21659
21660 \end_deeper
21661 \begin_layout Itemize
21662
21663 \change_inserted -712698321 1483871583
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668
21669 \change_inserted -712698321 1483871186
21670 alias
21671 \change_unchanged
21672
21673 \end_layout
21674
21675 \end_inset
21676
21677 : a (comma-separated) list of commands that fall back to the given 
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682
21683 \change_inserted -712698321 1483871257
21684 LyXName
21685 \end_layout
21686
21687 \end_inset
21688
21689  in the current engine.
21690  This eases the switch of citation packages and engines.
21691  The 
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696
21697 \change_inserted -712698321 1483871559
21698 alias
21699 \end_layout
21700
21701 \end_inset
21702
21703  can be compared to 
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708
21709 \change_inserted -712698321 1483871278
21710 ObsoletedBy
21711 \change_unchanged
21712
21713 \end_layout
21714
21715 \end_inset
21716
21717  in layout definitions.
21718 \end_layout
21719
21720 \begin_layout Itemize
21721
21722 \change_inserted -712698321 1483871307
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727
21728 \change_inserted -712698321 1483871296
21729 latexcmd
21730 \change_unchanged
21731
21732 \end_layout
21733
21734 \end_inset
21735
21736 : The actual \SpecialChar LaTeX
21737  command that is output.
21738  
21739 \end_layout
21740
21741 \begin_layout Standard
21742
21743 \change_inserted -712698321 1483871348
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748
21749 \change_inserted -712698321 1483871316
21750 Alias
21751 \change_unchanged
21752
21753 \end_layout
21754
21755 \end_inset
21756
21757  and 
21758 \begin_inset Flex Code
21759 status collapsed
21760
21761 \begin_layout Plain Layout
21762
21763 \change_inserted -712698321 1483871321
21764 latexcmd
21765 \change_unchanged
21766
21767 \end_layout
21768
21769 \end_inset
21770
21771  are optional.
21772  If no 
21773 \begin_inset Flex Code
21774 status collapsed
21775
21776 \begin_layout Plain Layout
21777
21778 \change_inserted -712698321 1483871333
21779 latexcmd
21780 \end_layout
21781
21782 \end_inset
21783
21784  is given, the 
21785 \begin_inset Flex Code
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789
21790 \change_inserted -712698321 1483871340
21791 LyXName
21792 \end_layout
21793
21794 \end_inset
21795
21796  will be output to \SpecialChar LaTeX
21797 .
21798 \end_layout
21799
21800 \begin_layout Standard
21801
21802 \change_inserted -712698321 1483871604
21803 Note further:
21804 \end_layout
21805
21806 \begin_layout Itemize
21807
21808 \change_inserted -712698321 1483871664
21809 Capitalization indicates that the command also has a capitalized form (
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814
21815 \change_inserted -712698321 1483871622
21816
21817 \backslash
21818 Latexcmd
21819 \change_unchanged
21820
21821 \end_layout
21822
21823 \end_inset
21824
21825  vs.
21826  
21827 \begin_inset Flex Code
21828 status collapsed
21829
21830 \begin_layout Plain Layout
21831
21832 \change_inserted -712698321 1483871626
21833
21834 \backslash
21835 latexcmd
21836 \change_unchanged
21837
21838 \end_layout
21839
21840 \end_inset
21841
21842 ).
21843  These usually enforce up-casing of name prefixes (
21844 \emph on
21845 von Goethe
21846 \emph default
21847  
21848 \begin_inset Formula $\Rightarrow$
21849 \end_inset
21850
21851  
21852 \emph on
21853 Von Goethe
21854 \emph default
21855 ).
21856 \end_layout
21857
21858 \begin_layout Itemize
21859
21860 \change_inserted -712698321 1483871690
21861 Brackets 
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866
21867 \change_inserted -712698321 1483871670
21868 []
21869 \change_unchanged
21870
21871 \end_layout
21872
21873 \end_inset
21874
21875  indicate the number of optional arguments (there can be 0–2).
21876 \end_layout
21877
21878 \begin_layout Itemize
21879
21880 \change_inserted -712698321 1483871747
21881 A star 
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886
21887 \change_inserted -712698321 1483871698
21888 *
21889 \change_unchanged
21890
21891 \end_layout
21892
21893 \end_inset
21894
21895  indicates there is a starred version of the command (
21896 \begin_inset Flex Code
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900
21901 \change_inserted -712698321 1483871718
21902
21903 \backslash
21904 latexcmd*
21905 \change_unchanged
21906
21907 \end_layout
21908
21909 \end_inset
21910
21911  vs.
21912  
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917
21918 \change_inserted -712698321 1483871724
21919
21920 \backslash
21921 latexcmd
21922 \change_unchanged
21923
21924 \end_layout
21925
21926 \end_inset
21927
21928 ).
21929  
21930 \end_layout
21931
21932 \begin_deeper
21933 \begin_layout Standard
21934
21935 \change_inserted -712698321 1483871864
21936 By default, the starred version means: Output all authors even if it should
21937  be shortened with 
21938 \begin_inset Quotes eld
21939 \end_inset
21940
21941 et al.
21942 \begin_inset Quotes erd
21943 \end_inset
21944
21945  due to the 
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950
21951 \change_inserted -712698321 1483871835
21952 MaxCiteNames
21953 \change_unchanged
21954
21955 \end_layout
21956
21957 \end_inset
21958
21959  threshold.
21960 \end_layout
21961
21962 \begin_layout Standard
21963
21964 \change_inserted -712698321 1483872045
21965 If the star has a different meaning for a given command, it can be specified
21966  in angle brackets: 
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971
21972 \change_inserted -712698321 1483871856
21973 <!_stardesc!_stardesctooltip>
21974 \change_unchanged
21975
21976 \end_layout
21977
21978 \end_inset
21979
21980 .
21981  Maximal two translatable macro keywords, marked by the prefix 
21982 \begin_inset Flex Code
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986
21987 \change_inserted -712698321 1483872014
21988 !_
21989 \change_unchanged
21990
21991 \end_layout
21992
21993 \end_inset
21994
21995 , can be given.
21996  The first points to the string that replaces the 
21997 \begin_inset Quotes eld
21998 \end_inset
21999
22000 Full aut&hor list
22001 \begin_inset Quotes erd
22002 \end_inset
22003
22004  checkbox label in the citation dialog, the second one to an optional tool
22005  tip for this checkbox.
22006  
22007 \end_layout
22008
22009 \begin_layout Standard
22010
22011 \change_inserted -712698321 1483872164
22012 Note that these two macros have to be defined in a 
22013 \begin_inset Flex Code
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017
22018 \change_inserted -712698321 1483871983
22019 CiteFormat
22020 \change_unchanged
22021
22022 \end_layout
22023
22024 \end_inset
22025
22026  (see next section), dropping the 
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031
22032 \change_inserted -712698321 1483872023
22033 !
22034 \change_unchanged
22035
22036 \end_layout
22037
22038 \end_inset
22039
22040  from the prefix, like this: 
22041 \end_layout
22042
22043 \begin_layout LyX-Code
22044
22045 \change_inserted -712698321 1483872092
22046 _stardesc Sta&rred command label
22047 \end_layout
22048
22049 \begin_layout LyX-Code
22050
22051 \change_inserted -712698321 1483872184
22052 _stardesctooltip Tooltip for the starred command checkbox.
22053 \end_layout
22054
22055 \end_deeper
22056 \begin_layout Subsection
22057 \begin_inset CommandInset label
22058 LatexCommand label
22059 name "subsec:Citation-format-description"
22060
22061 \end_inset
22062
22063 Citation format description
22064 \end_layout
22065
22066 \begin_layout Standard
22067 The 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 CiteFormat
22073 \end_layout
22074
22075 \end_inset
22076
22077  blocks are used to describe how bibliographic information should be displayed,
22078  both within \SpecialChar LyX
22079  itself (in the citation dialog and in tooltips, for example)
22080  and in XHTML output.
22081  Such a block might look like this:
22082 \end_layout
22083
22084 \begin_layout LyX-Code
22085 CiteFormat
22086 \end_layout
22087
22088 \begin_layout LyX-Code
22089  article ...
22090 \end_layout
22091
22092 \begin_layout LyX-Code
22093  book ...
22094 \end_layout
22095
22096 \begin_layout LyX-Code
22097 End
22098 \change_inserted -712698321 1483867197
22099
22100 \end_layout
22101
22102 \begin_layout Standard
22103
22104 \change_inserted -712698321 1483867200
22105 or
22106 \end_layout
22107
22108 \begin_layout LyX-Code
22109
22110 \change_inserted -712698321 1483867195
22111 CiteFormat
22112 \end_layout
22113
22114 \begin_layout LyX-Code
22115
22116 \change_inserted -712698321 1483867204
22117  cite ...
22118 \end_layout
22119
22120 \begin_layout LyX-Code
22121
22122 \change_inserted -712698321 1483867359
22123  citet*[][] ...
22124 \end_layout
22125
22126 \begin_layout LyX-Code
22127
22128 \change_inserted -712698321 1483867195
22129 End
22130 \change_unchanged
22131
22132 \end_layout
22133
22134 \begin_layout Standard
22135
22136 \change_inserted -712698321 1483867269
22137 In the first case, 
22138 \change_deleted -712698321 1483867270
22139 T
22140 \change_inserted -712698321 1483867270
22141 t
22142 \change_unchanged
22143 he individual lines define how the bibliographic information associated
22144  with an article or book, respectively, is to be displayed, and such a definitio
22145 n can be given for any 
22146 \change_deleted -712698321 1483867550
22147 `
22148 \change_inserted -712698321 1483867550
22149
22150 \begin_inset Quotes els
22151 \end_inset
22152
22153
22154 \change_unchanged
22155 entry type
22156 \change_deleted -712698321 1483867552
22157 '
22158 \change_inserted -712698321 1483867552
22159
22160 \begin_inset Quotes ers
22161 \end_inset
22162
22163
22164 \change_unchanged
22165  that might be present in a Bib\SpecialChar TeX
22166  file.
22167  \SpecialChar LyX
22168  defines a default format in the source code that will be used if no specific
22169  definition has been given.
22170  \SpecialChar LyX
22171  predefines several formats in the file 
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 stdciteformats.inc
22177 \end_layout
22178
22179 \end_inset
22180
22181 , which is included in most of \SpecialChar LyX
22182 's document classes.
22183 \change_inserted -712698321 1483867288
22184
22185 \end_layout
22186
22187 \begin_layout Standard
22188
22189 \change_inserted -712698321 1483875512
22190 In the second case, the lines define how a specific citation command (in
22191  the example 
22192 \begin_inset Flex Code
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196
22197 \change_inserted -712698321 1483867674
22198
22199 \backslash
22200 cite
22201 \change_unchanged
22202
22203 \end_layout
22204
22205 \end_inset
22206
22207
22208 \begin_inset Flex Code
22209 status collapsed
22210
22211 \begin_layout Plain Layout
22212
22213 \change_inserted -712698321 1483867679
22214
22215 \backslash
22216 citet
22217 \change_unchanged
22218
22219 \end_layout
22220
22221 \end_inset
22222
22223 ) is to be displayed on the citation inset label, in the citation dialog,
22224  menu or XHTML output.
22225  \SpecialChar LyX
22226  defines such formats for the citation style variants it supports via 
22227 \family sans
22228 Document\SpecialChar menuseparator
22229 Setting\SpecialChar menuseparator
22230 Bibliography\SpecialChar ldots
22231
22232 \family default
22233  in specific 
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238
22239 \change_inserted -712698321 1483875503
22240 *.citeengine
22241 \end_layout
22242
22243 \end_inset
22244
22245  files that are shipped with \SpecialChar LyX
22246  (see 
22247 \begin_inset CommandInset ref
22248 LatexCommand ref
22249 reference "subsec:Cite-Engine-Files"
22250 plural "false"
22251 caps "false"
22252 noprefix "false"
22253
22254 \end_inset
22255
22256 ).
22257 \change_unchanged
22258
22259 \end_layout
22260
22261 \begin_layout Standard
22262 The definitions use a simple language that allows Bib\SpecialChar TeX
22263  keys to be replaced
22264  with their values.
22265  Keys should be enclosed in 
22266 \begin_inset Flex Code
22267 status collapsed
22268
22269 \begin_layout Plain Layout
22270 %
22271 \end_layout
22272
22273 \end_inset
22274
22275  signs, e.g.: 
22276 \begin_inset Flex Code
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280 %author%
22281 \end_layout
22282
22283 \end_inset
22284
22285 .
22286  So a simple definition might look like this:
22287 \end_layout
22288
22289 \begin_layout LyX-Code
22290 misc %author%, 
22291 \begin_inset Quotes eld
22292 \end_inset
22293
22294 %title%
22295 \begin_inset Quotes erd
22296 \end_inset
22297
22298 .
22299 \end_layout
22300
22301 \begin_layout Standard
22302 This would print the author, followed by a comma, followed by the title,
22303  in quotes, followed by a period.
22304 \end_layout
22305
22306 \begin_layout Standard
22307 Of course, sometimes you may want to print a key only if it exists.
22308  This can be done by using a conditional construction, such as: 
22309 \begin_inset Flex Code
22310 status collapsed
22311
22312 \begin_layout Plain Layout
22313 {%volume%[[vol.
22314 \begin_inset space ~
22315 \end_inset
22316
22317 %volume%]]}
22318 \end_layout
22319
22320 \end_inset
22321
22322 .
22323  This says: If the 
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 volume
22329 \end_layout
22330
22331 \end_inset
22332
22333  key exists, then print 
22334 \begin_inset Quotes eld
22335 \end_inset
22336
22337 vol.
22338 \begin_inset space ~
22339 \end_inset
22340
22341
22342 \begin_inset Quotes erd
22343 \end_inset
22344
22345  followed by the volume key.
22346  It is also possible to have an else clause in the conditional, such as:
22347 \begin_inset Newline newline
22348 \end_inset
22349
22350
22351 \begin_inset Flex Code
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 {%author%[[%author%]][[%editor%, ed.]]}
22356 \end_layout
22357
22358 \end_inset
22359
22360 .
22361 \begin_inset Newline newline
22362 \end_inset
22363
22364 Here, the 
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369 author
22370 \end_layout
22371
22372 \end_inset
22373
22374  key is printed if it exists; otherwise, the editor key is printed, followed
22375  by 
22376 \begin_inset Quotes eld
22377 \end_inset
22378
22379 ,
22380 \begin_inset space ~
22381 \end_inset
22382
22383 ed.
22384 \begin_inset Quotes erd
22385 \end_inset
22386
22387  Note that the key is again enclosed in 
22388 \begin_inset Flex Code
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 %
22393 \end_layout
22394
22395 \end_inset
22396
22397  signs; the entire conditional is enclosed in braces; and the if and else
22398  clauses are enclosed in double brackets, 
22399 \begin_inset Quotes eld
22400 \end_inset
22401
22402
22403 \begin_inset Flex Code
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 [[
22408 \end_layout
22409
22410 \end_inset
22411
22412
22413 \begin_inset Quotes eld
22414 \end_inset
22415
22416  and 
22417 \begin_inset Quotes eld
22418 \end_inset
22419
22420
22421 \begin_inset Flex Code
22422 status collapsed
22423
22424 \begin_layout Plain Layout
22425 ]]
22426 \end_layout
22427
22428 \end_inset
22429
22430
22431 \begin_inset Quotes erd
22432 \end_inset
22433
22434 .
22435  There must be no space between any of these.
22436 \change_inserted -712698321 1483867855
22437
22438 \end_layout
22439
22440 \begin_layout Standard
22441
22442 \change_inserted -712698321 1483867910
22443 Next to the entry keys, there are some special keys that can be used for
22444  these conditionals:
22445 \end_layout
22446
22447 \begin_layout Itemize
22448
22449 \change_inserted -712698321 1483868049
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454
22455 \change_inserted -712698321 1483867962
22456 {%dialog%[[true]][[false]]}
22457 \change_unchanged
22458
22459 \end_layout
22460
22461 \end_inset
22462
22463 : process the 
22464 \begin_inset Quotes eld
22465 \end_inset
22466
22467 true
22468 \begin_inset Quotes erd
22469 \end_inset
22470
22471  part for dialogs and menus, the 
22472 \begin_inset Quotes eld
22473 \end_inset
22474
22475 false
22476 \begin_inset Quotes erd
22477 \end_inset
22478
22479  part for other contexts (workarea, export)
22480 \end_layout
22481
22482 \begin_layout Itemize
22483
22484 \change_inserted -712698321 1483868068
22485 \begin_inset Flex Code
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489
22490 \change_inserted -712698321 1483868052
22491 {%export%[[true]][[false]]}
22492 \end_layout
22493
22494 \end_inset
22495
22496 : process the 
22497 \begin_inset Quotes eld
22498 \end_inset
22499
22500 true
22501 \begin_inset Quotes erd
22502 \end_inset
22503
22504  part for export and menus, the 
22505 \begin_inset Quotes eld
22506 \end_inset
22507
22508 false
22509 \begin_inset Quotes erd
22510 \end_inset
22511
22512  part for other contexts (workarea, dialog)
22513 \end_layout
22514
22515 \begin_layout Itemize
22516
22517 \change_inserted -712698321 1483868138
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522
22523 \change_inserted -712698321 1483868076
22524 {%next%[[true]]}
22525 \end_layout
22526
22527 \end_inset
22528
22529 : process the 
22530 \begin_inset Quotes eld
22531 \end_inset
22532
22533 true
22534 \begin_inset Quotes erd
22535 \end_inset
22536
22537  part if another item follows (e.
22538 \begin_inset space \thinspace{}
22539 \end_inset
22540
22541 g., in a citation with multiple keys)
22542 \end_layout
22543
22544 \begin_layout Itemize
22545
22546 \change_inserted -712698321 1483868174
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551
22552 \change_inserted -712698321 1483868144
22553 {%second%[[true]][[false]]}
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  if this is the second of multiple items, else the 
22567 \begin_inset Quotes eld
22568 \end_inset
22569
22570 false
22571 \begin_inset Quotes erd
22572 \end_inset
22573
22574  part
22575 \end_layout
22576
22577 \begin_layout Itemize
22578
22579 \change_inserted -712698321 1483868321
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584
22585 \change_inserted -712698321 1483868259
22586 {%ifstar%[[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 starred citation commands (such as 
22600 \begin_inset Flex Code
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604
22605 \change_inserted -712698321 1483868310
22606
22607 \backslash
22608 cite*
22609 \change_unchanged
22610
22611 \end_layout
22612
22613 \end_inset
22614
22615 ), the false part for unstarred
22616 \end_layout
22617
22618 \begin_layout Itemize
22619
22620 \change_inserted -712698321 1483978485
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625
22626 \change_inserted -712698321 1483868330
22627 {%ifentrytype:<type>%[[true]][[false]]}
22628 \end_layout
22629
22630 \end_inset
22631
22632 : process the 
22633 \begin_inset Quotes eld
22634 \end_inset
22635
22636 true
22637 \begin_inset Quotes erd
22638 \end_inset
22639
22640  if the current entry type matches 
22641 \begin_inset Flex Code
22642 status collapsed
22643
22644 \begin_layout Plain Layout
22645
22646 \change_inserted -712698321 1483868364
22647 <type>
22648 \change_unchanged
22649
22650 \end_layout
22651
22652 \end_inset
22653
22654 , else the false part (e.g., in a citation definition: 
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659
22660 \change_inserted -712698321 1483868420
22661 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22662 \change_unchanged
22663
22664 \end_layout
22665
22666 \end_inset
22667
22668 )
22669 \end_layout
22670
22671 \begin_layout Itemize
22672
22673 \change_inserted -712698321 1483978548
22674 \begin_inset Flex Code
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678
22679 \change_inserted -712698321 1483978499
22680 {%ifmultiple:<authortype>%[[true]][[false]]}
22681 \end_layout
22682
22683 \end_inset
22684
22685 : process the 
22686 \begin_inset Quotes eld
22687 \end_inset
22688
22689 true
22690 \begin_inset Quotes erd
22691 \end_inset
22692
22693  if the current author type (author, editor etc.) has multiple authors, else
22694  the false part (e.g., in a bibliography definition: 
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699
22700 \change_inserted -712698321 1483978571
22701 {%ifmultiple:editor%[[eds.]][[ed.]]}
22702 \end_layout
22703
22704 \end_inset
22705
22706 )
22707 \change_unchanged
22708
22709 \end_layout
22710
22711 \begin_layout Standard
22712
22713 \change_inserted -712698321 1483978958
22714 We said that 
22715 \begin_inset Flex Code
22716 status collapsed
22717
22718 \begin_layout Plain Layout
22719
22720 \change_inserted -712698321 1483978693
22721 %author%
22722 \end_layout
22723
22724 \end_inset
22725
22726  prints the author key as it is recorded in the bibliography file.
22727  This might not be what you want, since it will result in a string such
22728  as 
22729 \begin_inset Quotes eld
22730 \end_inset
22731
22732 Miller, Peter and Smith, Mary and White, Jane
22733 \begin_inset Quotes erd
22734 \end_inset
22735
22736  (since 
22737 \begin_inset Quotes eld
22738 \end_inset
22739
22740 and
22741 \begin_inset Quotes erd
22742 \end_inset
22743
22744  is used by Bib\SpecialChar TeX
22745  to delimit authors).
22746  \SpecialChar LyX
22747  therefore provides some methods to get properly formatted name lists (which
22748  will also get translated).
22749  The following keys are provided:
22750 \end_layout
22751
22752 \begin_layout Enumerate
22753
22754 \change_inserted -712698321 1483979807
22755 For name lists with pre- and surname, suitable for the main authors/editors
22756  of a bibliography item.
22757  The 
22758 \begin_inset Flex Code
22759 status collapsed
22760
22761 \begin_layout Plain Layout
22762
22763 \change_inserted -712698321 1483979800
22764 <nametype>
22765 \change_unchanged
22766
22767 \end_layout
22768
22769 \end_inset
22770
22771  part denotes the kind of list that is requested (e.g.
22772  
22773 \begin_inset Flex Code
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777
22778 \change_inserted -712698321 1483979807
22779 <nametype:author>
22780 \change_unchanged
22781
22782 \end_layout
22783
22784 \end_inset
22785
22786 ):
22787 \end_layout
22788
22789 \begin_deeper
22790 \begin_layout Itemize
22791
22792 \change_inserted -712698321 1483979186
22793 \begin_inset Flex Code
22794 status collapsed
22795
22796 \begin_layout Plain Layout
22797
22798 \change_inserted -712698321 1483979743
22799 %abbrvnames:<nametype>%
22800 \change_unchanged
22801
22802 \end_layout
22803
22804 \end_inset
22805
22806 : Provides a name list which is abbreviated (with 
22807 \begin_inset Quotes eld
22808 \end_inset
22809
22810 et al.
22811 \begin_inset Quotes erd
22812 \end_inset
22813
22814 ) when 
22815 \begin_inset Flex Code
22816 status collapsed
22817
22818 \begin_layout Plain Layout
22819
22820 \change_inserted -712698321 1483979186
22821 MaxCiteNames
22822 \change_unchanged
22823
22824 \end_layout
22825
22826 \end_inset
22827
22828  is reached.
22829 \end_layout
22830
22831 \begin_layout Itemize
22832
22833 \change_inserted -712698321 1483979527
22834 \begin_inset Flex Code
22835 status collapsed
22836
22837 \begin_layout Plain Layout
22838
22839 \change_inserted -712698321 1483979748
22840 %fullnames:<nametype>%
22841 \change_unchanged
22842
22843 \end_layout
22844
22845 \end_inset
22846
22847 : Provides a full name list (never abbreviated with 
22848 \begin_inset Quotes eld
22849 \end_inset
22850
22851 et al.
22852 \begin_inset Quotes erd
22853 \end_inset
22854
22855 ).
22856 \end_layout
22857
22858 \begin_layout Itemize
22859
22860 \change_inserted -712698321 1483979553
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865
22866 \change_inserted -712698321 1483980138
22867 %forceabbrvnames:<nametype>%
22868 \change_unchanged
22869
22870 \end_layout
22871
22872 \end_inset
22873
22874 : Provides a name list which is always abbreviated (with 
22875 \begin_inset Quotes eld
22876 \end_inset
22877
22878 et al.
22879 \begin_inset Quotes erd
22880 \end_inset
22881
22882 ) irrespective of 
22883 \begin_inset Flex Code
22884 status collapsed
22885
22886 \begin_layout Plain Layout
22887
22888 \change_inserted -712698321 1483979535
22889 MaxCiteNames
22890 \end_layout
22891
22892 \end_inset
22893
22894 .
22895 \change_unchanged
22896
22897 \end_layout
22898
22899 \end_deeper
22900 \begin_layout Enumerate
22901
22902 \change_inserted -712698321 1483979413
22903 Alternative name lists with pre- and surname, if the order of pre- and surname
22904  inside the bibliography item differs (as in: 
22905 \begin_inset Quotes eld
22906 \end_inset
22907
22908 Miller, John: Some text, in: Mary Smith, ed.: A volume
22909 \begin_inset Quotes erd
22910 \end_inset
22911
22912 ):
22913 \change_unchanged
22914
22915 \end_layout
22916
22917 \begin_deeper
22918 \begin_layout Itemize
22919
22920 \change_inserted -712698321 1483979565
22921 \begin_inset Flex Code
22922 status collapsed
22923
22924 \begin_layout Plain Layout
22925
22926 \change_inserted -712698321 1483979751
22927 %abbrvbynames:<nametype>%
22928 \change_unchanged
22929
22930 \end_layout
22931
22932 \end_inset
22933
22934 : Provides a name list which is abbreviated (with 
22935 \begin_inset Quotes eld
22936 \end_inset
22937
22938 et al.
22939 \begin_inset Quotes erd
22940 \end_inset
22941
22942 ) when 
22943 \begin_inset Flex Code
22944 status collapsed
22945
22946 \begin_layout Plain Layout
22947
22948 \change_inserted -712698321 1483979565
22949 MaxCiteNames
22950 \end_layout
22951
22952 \end_inset
22953
22954  is reached.
22955 \change_unchanged
22956
22957 \end_layout
22958
22959 \begin_layout Itemize
22960
22961 \change_inserted -712698321 1483979570
22962 \begin_inset Flex Code
22963 status collapsed
22964
22965 \begin_layout Plain Layout
22966
22967 \change_inserted -712698321 1483979753
22968 %fullbynames:<nametype>%
22969 \change_unchanged
22970
22971 \end_layout
22972
22973 \end_inset
22974
22975 : Provides a full name list (never abbreviated with 
22976 \begin_inset Quotes eld
22977 \end_inset
22978
22979 et al.
22980 \begin_inset Quotes erd
22981 \end_inset
22982
22983 ).
22984 \change_unchanged
22985
22986 \end_layout
22987
22988 \begin_layout Itemize
22989
22990 \change_inserted -712698321 1483979576
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995
22996 \change_inserted -712698321 1483980143
22997 %forceabbrvbynames:<nametype>%
22998 \change_unchanged
22999
23000 \end_layout
23001
23002 \end_inset
23003
23004 : Provides a name list which is always abbreviated (with 
23005 \begin_inset Quotes eld
23006 \end_inset
23007
23008 et al.
23009 \begin_inset Quotes erd
23010 \end_inset
23011
23012 ) irrespective of 
23013 \begin_inset Flex Code
23014 status collapsed
23015
23016 \begin_layout Plain Layout
23017
23018 \change_inserted -712698321 1483979574
23019 MaxCiteNames
23020 \end_layout
23021
23022 \end_inset
23023
23024 .
23025 \end_layout
23026
23027 \end_deeper
23028 \begin_layout Enumerate
23029
23030 \change_inserted -712698321 1483980219
23031 And finally name lists which consist of family names only, as used in author-yea
23032 r citation labels.
23033  these do not take a 
23034 \begin_inset Flex Code
23035 status collapsed
23036
23037 \begin_layout Plain Layout
23038
23039 \change_inserted -712698321 1483979871
23040 <nametype>
23041 \change_unchanged
23042
23043 \end_layout
23044
23045 \end_inset
23046
23047  part, but always return either an author list or, if this does not exist,
23048  an editor list (as common in author-year labels):
23049 \change_unchanged
23050
23051 \end_layout
23052
23053 \begin_deeper
23054 \begin_layout Itemize
23055
23056 \change_inserted -712698321 1483979715
23057 \begin_inset Flex Code
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061
23062 \change_inserted -712698321 1483979700
23063 %abbrvciteauthor%
23064 \change_unchanged
23065
23066 \end_layout
23067
23068 \end_inset
23069
23070 : Provides a name list which is abbreviated (with 
23071 \begin_inset Quotes eld
23072 \end_inset
23073
23074 et al.
23075 \begin_inset Quotes erd
23076 \end_inset
23077
23078 ) when 
23079 \begin_inset Flex Code
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083
23084 \change_inserted -712698321 1483979715
23085 MaxCiteNames
23086 \end_layout
23087
23088 \end_inset
23089
23090  is reached.
23091 \change_unchanged
23092
23093 \end_layout
23094
23095 \begin_layout Itemize
23096
23097 \change_inserted -712698321 1483979721
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102
23103 \change_inserted -712698321 1483979703
23104 %fullciteauthor%
23105 \change_unchanged
23106
23107 \end_layout
23108
23109 \end_inset
23110
23111 : Provides a full name list (never abbreviated with 
23112 \begin_inset Quotes eld
23113 \end_inset
23114
23115 et al.
23116 \begin_inset Quotes erd
23117 \end_inset
23118
23119 ).
23120 \change_unchanged
23121
23122 \end_layout
23123
23124 \begin_layout Itemize
23125
23126 \change_inserted -712698321 1483980272
23127 \begin_inset Flex Code
23128 status collapsed
23129
23130 \begin_layout Plain Layout
23131
23132 \change_inserted -712698321 1483979705
23133 %forceabbrvciteauthor%
23134 \change_unchanged
23135
23136 \end_layout
23137
23138 \end_inset
23139
23140 : Provides a name list which is always abbreviated (with 
23141 \begin_inset Quotes eld
23142 \end_inset
23143
23144 et al.
23145 \begin_inset Quotes erd
23146 \end_inset
23147
23148 ) irrespective of 
23149 \begin_inset Flex Code
23150 status collapsed
23151
23152 \begin_layout Plain Layout
23153
23154 \change_inserted -712698321 1483979726
23155 MaxCiteNames
23156 \end_layout
23157
23158 \end_inset
23159
23160 .
23161 \end_layout
23162
23163 \end_deeper
23164 \begin_layout Standard
23165
23166 \change_inserted -712698321 1483980314
23167 The order of pre- and surname in the former two lists can be adjusted by
23168  these macros:
23169 \end_layout
23170
23171 \begin_layout Itemize
23172
23173 \change_inserted -712698321 1483980535
23174 \begin_inset Flex Code
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178
23179 \change_inserted -712698321 1483980354
23180 !firstnameform %surname%, %prename%
23181 \change_unchanged
23182
23183 \end_layout
23184
23185 \end_inset
23186
23187  (first author in lists of type 1)
23188 \end_layout
23189
23190 \begin_layout Itemize
23191
23192 \change_inserted -712698321 1483980557
23193 \begin_inset Flex Code
23194 status collapsed
23195
23196 \begin_layout Plain Layout
23197
23198 \change_inserted -712698321 1483980367
23199 !othernameform %surname%, %prename%
23200 \change_unchanged
23201
23202 \end_layout
23203
23204 \end_inset
23205
23206  (other authors in lists of type 1)
23207 \change_unchanged
23208
23209 \end_layout
23210
23211 \begin_layout Itemize
23212
23213 \change_inserted -712698321 1483980550
23214 \begin_inset Flex Code
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218
23219 \change_inserted -712698321 1483980373
23220 !firstbynameform %prename% %surname%
23221 \change_unchanged
23222
23223 \end_layout
23224
23225 \end_inset
23226
23227  (first author in lists of type 2)
23228 \end_layout
23229
23230 \begin_layout Itemize
23231
23232 \change_inserted -712698321 1483980570
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237
23238 \change_inserted -712698321 1483980381
23239 !otherbynameform %prename% %surname%
23240 \change_unchanged
23241
23242 \end_layout
23243
23244 \end_inset
23245
23246  (other authors in lists of type 2)
23247 \end_layout
23248
23249 \begin_layout Standard
23250
23251 \change_inserted -712698321 1483980643
23252 This allows you to configure namings like 
23253 \begin_inset Quotes eld
23254 \end_inset
23255
23256 Miller, Peter and Mary Smith: \SpecialChar ldots
23257 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23258
23259 \begin_inset Quotes erd
23260 \end_inset
23261
23262 .
23263 \change_unchanged
23264
23265 \end_layout
23266
23267 \begin_layout Standard
23268 There is one other piece of syntax available in definitions, which looks
23269  like this: 
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 {!<i>!}
23275 \end_layout
23276
23277 \end_inset
23278
23279 .
23280  This defines a piece of formatting information that is to be used when
23281  creating 
23282 \begin_inset Quotes eld
23283 \end_inset
23284
23285 rich text
23286 \begin_inset Quotes erd
23287 \end_inset
23288
23289 .
23290  Obviously, we do not want to output HTML tags when writing plain text,
23291  so they should be wrapped in 
23292 \begin_inset Quotes eld
23293 \end_inset
23294
23295 {!
23296 \begin_inset Quotes erd
23297 \end_inset
23298
23299  and 
23300 \begin_inset Quotes eld
23301 \end_inset
23302
23303 !}
23304 \begin_inset Quotes erd
23305 \end_inset
23306
23307 .
23308 \end_layout
23309
23310 \begin_layout Standard
23311 Two special sorts of definitions are also possible in a 
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316 CiteFormat
23317 \end_layout
23318
23319 \end_inset
23320
23321  block.
23322  An example of the first would be:
23323 \end_layout
23324
23325 \begin_layout LyX-Code
23326 !quotetitle 
23327 \begin_inset Quotes eld
23328 \end_inset
23329
23330 %title%
23331 \begin_inset Quotes erd
23332 \end_inset
23333
23334
23335 \end_layout
23336
23337 \begin_layout Standard
23338 This is an abbreviation, or macro, and it can be used by treating it as
23339  if it were a key: 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 %!quotetitle%
23345 \end_layout
23346
23347 \end_inset
23348
23349 .
23350  \SpecialChar LyX
23351  will treat 
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 %!quotetitle%
23357 \end_layout
23358
23359 \end_inset
23360
23361  exactly as it would treat its definition.
23362  So, let us issue the obvious 
23363 \emph on
23364 warning
23365 \emph default
23366 .
23367  Do not do this:
23368 \end_layout
23369
23370 \begin_layout LyX-Code
23371 !funfun %funfun%
23372 \end_layout
23373
23374 \begin_layout Standard
23375 or anything like it.
23376  \SpecialChar LyX
23377  shouldn't go into an infinite loop, but it may go into a long one before
23378  it gives up.
23379 \end_layout
23380
23381 \begin_layout Standard
23382 The second sort of special definition might look like this:
23383 \end_layout
23384
23385 \begin_layout LyX-Code
23386 _pptext pp.
23387 \end_layout
23388
23389 \begin_layout Standard
23390 This defines a translatable piece of text, which allows relevant parts of
23391  the bibliography 
23392 \change_inserted -712698321 1483868477
23393 or citation 
23394 \change_unchanged
23395 to be translated.
23396  It can be included in a definition by treating it as a key: 
23397 \begin_inset Flex Code
23398 status collapsed
23399
23400 \begin_layout Plain Layout
23401 %_pptext%
23402 \end_layout
23403
23404 \end_inset
23405
23406 .
23407  Several of these are predefined in 
23408 \begin_inset Flex Code
23409 status collapsed
23410
23411 \begin_layout Plain Layout
23412 stdciteformats.inc
23413 \end_layout
23414
23415 \end_inset
23416
23417
23418 \change_inserted -712698321 1483868503
23419  and the diverse 
23420 \begin_inset Flex Code
23421 status collapsed
23422
23423 \begin_layout Plain Layout
23424
23425 \change_inserted -712698321 1483868503
23426 *.citeengine
23427 \change_unchanged
23428
23429 \end_layout
23430
23431 \end_inset
23432
23433  files
23434 \change_unchanged
23435 .
23436  Note that these are not macros, in the sense just defined.
23437  They will not be expanded.
23438 \end_layout
23439
23440 \begin_layout Standard
23441 So here then is an example that use all these features:
23442 \begin_inset VSpace defskip
23443 \end_inset
23444
23445
23446 \end_layout
23447
23448 \begin_layout Standard
23449 \noindent
23450
23451 \family typewriter
23452 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
23453 \end_layout
23454
23455 \begin_layout Standard
23456 \begin_inset VSpace defskip
23457 \end_inset
23458
23459 This defines a macro that prints the author, followed by a comma, if the
23460  
23461 \begin_inset Flex Code
23462 status collapsed
23463
23464 \begin_layout Plain Layout
23465 author
23466 \end_layout
23467
23468 \end_inset
23469
23470  key is defined, or else prints the name of the editor, followed by the
23471  
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476 _edtext
23477 \end_layout
23478
23479 \end_inset
23480
23481  or its translation (it is by default 
23482 \begin_inset Quotes eld
23483 \end_inset
23484
23485 ed.
23486 \begin_inset Quotes erd
23487 \end_inset
23488
23489 ), if the 
23490 \begin_inset Flex Code
23491 status collapsed
23492
23493 \begin_layout Plain Layout
23494 editor
23495 \end_layout
23496
23497 \end_inset
23498
23499  key is defined.
23500  Note that this is in fact defined in 
23501 \begin_inset Flex Code
23502 status collapsed
23503
23504 \begin_layout Plain Layout
23505 stdciteformats.inc
23506 \end_layout
23507
23508 \end_inset
23509
23510 , so you can use it in your own definitions, or re-definitions, if you load
23511  that file first.
23512 \end_layout
23513
23514 \begin_layout Section
23515 \begin_inset CommandInset label
23516 LatexCommand label
23517 name "sec:Tags-for-XHTML"
23518
23519 \end_inset
23520
23521 Tags for XHTML output
23522 \end_layout
23523
23524 \begin_layout Standard
23525 As with \SpecialChar LaTeX
23526  or DocBook, the format of \SpecialChar LyX
23527 's XHTML output is also controlled by
23528  layout information.
23529  In general, \SpecialChar LyX
23530  provides sensible defaults and, as mentioned earlier, it will
23531  even construct default CSS style rules from the other layout tags.
23532  For example, \SpecialChar LyX
23533  will attempt to use the information provided in the 
23534 \begin_inset Flex Code
23535 status collapsed
23536
23537 \begin_layout Plain Layout
23538 Font
23539 \end_layout
23540
23541 \end_inset
23542
23543  declaration for the Chapter style to write CSS that will appropriately
23544  format chapter headings.
23545 \end_layout
23546
23547 \begin_layout Standard
23548 In many cases, then, you may not have to do anything at all to get acceptable
23549  XHTML output for your own environments, custom insets, and so forth.
23550  But in some cases you will, and so \SpecialChar LyX
23551  provides a number of layout tags that
23552  can be used to customize the XHTML and CSS that are generated.
23553 \end_layout
23554
23555 \begin_layout Standard
23556 Note that there are two tags, 
23557 \begin_inset Flex Code
23558 status collapsed
23559
23560 \begin_layout Plain Layout
23561 HTMLPreamble
23562 \end_layout
23563
23564 \end_inset
23565
23566  and 
23567 \begin_inset Flex Code
23568 status collapsed
23569
23570 \begin_layout Plain Layout
23571 AddToHTMLPreamble
23572 \end_layout
23573
23574 \end_inset
23575
23576  that may appear outside style and inset declarations.
23577  See 
23578 \begin_inset CommandInset ref
23579 LatexCommand ref
23580 reference "subsec:General-text-class"
23581
23582 \end_inset
23583
23584  for details on these.
23585 \end_layout
23586
23587 \begin_layout Subsection
23588 \begin_inset CommandInset label
23589 LatexCommand label
23590 name "subsec:Paragraph-Style-XHTML"
23591
23592 \end_inset
23593
23594 Paragraph styles
23595 \end_layout
23596
23597 \begin_layout Standard
23598 The sort of XHTML \SpecialChar LyX
23599  outputs for a paragraph depends upon whether we are dealing
23600  with a normal paragraph, a command, or an environment, where this is itself
23601  determined by the contents of the corresponding 
23602 \begin_inset Flex Code
23603 status collapsed
23604
23605 \begin_layout Plain Layout
23606 \SpecialChar LaTeX
23607 Type
23608 \end_layout
23609
23610 \end_inset
23611
23612  tag.
23613  
23614 \end_layout
23615
23616 \begin_layout Standard
23617 For a command or normal paragraph, the output XHTML has the following form:
23618 \end_layout
23619
23620 \begin_layout LyX-Code
23621 <tag attr=
23622 \begin_inset Quotes erd
23623 \end_inset
23624
23625 value
23626 \begin_inset Quotes erd
23627 \end_inset
23628
23629 >
23630 \end_layout
23631
23632 \begin_layout LyX-Code
23633 <labeltag attr=
23634 \begin_inset Quotes erd
23635 \end_inset
23636
23637 value
23638 \begin_inset Quotes erd
23639 \end_inset
23640
23641 >Label</labeltag>
23642 \end_layout
23643
23644 \begin_layout LyX-Code
23645 Contents of the paragraph.
23646 \end_layout
23647
23648 \begin_layout LyX-Code
23649 </tag>
23650 \end_layout
23651
23652 \begin_layout Standard
23653 The label tags are of course omitted if the paragraph does not have a label.
23654 \end_layout
23655
23656 \begin_layout Standard
23657 For an environment that is not some sort of list, the XHTML takes this form:
23658 \end_layout
23659
23660 \begin_layout LyX-Code
23661 <tag attr=
23662 \begin_inset Quotes erd
23663 \end_inset
23664
23665 value
23666 \begin_inset Quotes erd
23667 \end_inset
23668
23669 >
23670 \end_layout
23671
23672 \begin_layout LyX-Code
23673 <itemtag attr=
23674 \begin_inset Quotes erd
23675 \end_inset
23676
23677 value
23678 \begin_inset Quotes erd
23679 \end_inset
23680
23681 ><labeltag attr=
23682 \begin_inset Quotes erd
23683 \end_inset
23684
23685 value
23686 \begin_inset Quotes erd
23687 \end_inset
23688
23689 >Environment Label</labeltag>First paragraph.</itemtag>
23690 \end_layout
23691
23692 \begin_layout LyX-Code
23693 <itemtag>Second paragraph.</itemtag>
23694 \end_layout
23695
23696 \begin_layout LyX-Code
23697 </tag>
23698 \end_layout
23699
23700 \begin_layout Standard
23701 Note that the label is output only for the first paragraph, as it should
23702  be for a theorem, for example.
23703  
23704 \end_layout
23705
23706 \begin_layout Standard
23707 For a list, we have one of these forms:
23708 \end_layout
23709
23710 \begin_layout LyX-Code
23711 <tag attr=
23712 \begin_inset Quotes erd
23713 \end_inset
23714
23715 value
23716 \begin_inset Quotes erd
23717 \end_inset
23718
23719 >
23720 \end_layout
23721
23722 \begin_layout LyX-Code
23723 <itemtag attr=
23724 \begin_inset Quotes erd
23725 \end_inset
23726
23727 value
23728 \begin_inset Quotes erd
23729 \end_inset
23730
23731 ><labeltag attr=
23732 \begin_inset Quotes erd
23733 \end_inset
23734
23735 value
23736 \begin_inset Quotes erd
23737 \end_inset
23738
23739 >List Label</labeltag>First item.</itemtag>
23740 \end_layout
23741
23742 \begin_layout LyX-Code
23743 <itemtag attr=
23744 \begin_inset Quotes erd
23745 \end_inset
23746
23747 value
23748 \begin_inset Quotes erd
23749 \end_inset
23750
23751 ><labeltag attr=
23752 \begin_inset Quotes erd
23753 \end_inset
23754
23755 value
23756 \begin_inset Quotes erd
23757 \end_inset
23758
23759 >List Label</labeltag>Second item.</itemtag>
23760 \end_layout
23761
23762 \begin_layout LyX-Code
23763 </tag>
23764 \end_layout
23765
23766 \begin_layout LyX-Code
23767
23768 \end_layout
23769
23770 \begin_layout LyX-Code
23771 <tag attr=
23772 \begin_inset Quotes erd
23773 \end_inset
23774
23775 value
23776 \begin_inset Quotes erd
23777 \end_inset
23778
23779 >
23780 \end_layout
23781
23782 \begin_layout LyX-Code
23783 <labeltag attr=
23784 \begin_inset Quotes erd
23785 \end_inset
23786
23787 value
23788 \begin_inset Quotes erd
23789 \end_inset
23790
23791 >List Label</labeltag><itemtag attr=
23792 \begin_inset Quotes erd
23793 \end_inset
23794
23795 value
23796 \begin_inset Quotes erd
23797 \end_inset
23798
23799 >First item.</itemtag>
23800 \end_layout
23801
23802 \begin_layout LyX-Code
23803 <labeltag attr=
23804 \begin_inset Quotes erd
23805 \end_inset
23806
23807 value
23808 \begin_inset Quotes erd
23809 \end_inset
23810
23811 >List Label</labeltag><itemtag attr=
23812 \begin_inset Quotes erd
23813 \end_inset
23814
23815 value
23816 \begin_inset Quotes erd
23817 \end_inset
23818
23819 >Second item.</itemtag>
23820 \end_layout
23821
23822 \begin_layout LyX-Code
23823 </tag>
23824 \end_layout
23825
23826 \begin_layout Standard
23827 Note the different orders of 
23828 \begin_inset Flex Code
23829 status collapsed
23830
23831 \begin_layout Plain Layout
23832 labeltag
23833 \end_layout
23834
23835 \end_inset
23836
23837  and 
23838 \begin_inset Flex Code
23839 status collapsed
23840
23841 \begin_layout Plain Layout
23842 itemtag
23843 \end_layout
23844
23845 \end_inset
23846
23847 .
23848  Which order we get depends upon the setting of 
23849 \begin_inset Flex Code
23850 status collapsed
23851
23852 \begin_layout Plain Layout
23853 HTMLLabelFirst
23854 \end_layout
23855
23856 \end_inset
23857
23858 : If 
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863 HTMLLabelFirst
23864 \end_layout
23865
23866 \end_inset
23867
23868  is false (the default), you get the first of these, with the label within
23869  the item; if true, you get the second, with the label outside the item.
23870 \end_layout
23871
23872 \begin_layout Standard
23873 The specific tags and attributes output for each paragraph type can be controlle
23874 d by means of the layout tags we are about to describe.
23875  As mentioned earlier, however, \SpecialChar LyX
23876  uses sensible defaults for many of these,
23877  so you often may not need to do very much to get good XHTML output.
23878  Think of the available tags as there so you can tweak things to your liking.
23879 \end_layout
23880
23881 \begin_layout Description
23882 \begin_inset Flex Code
23883 status collapsed
23884
23885 \begin_layout Plain Layout
23886 HTMLAttr
23887 \end_layout
23888
23889 \end_inset
23890
23891  [
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896 string
23897 \end_layout
23898
23899 \end_inset
23900
23901 ] Specifies attribute information to be output with the main tag.
23902  For example, 
23903 \begin_inset Quotes eld
23904 \end_inset
23905
23906
23907 \begin_inset Flex Code
23908 status collapsed
23909
23910 \begin_layout Plain Layout
23911 class=`mydiv'
23912 \end_layout
23913
23914 \end_inset
23915
23916
23917 \begin_inset Quotes erd
23918 \end_inset
23919
23920 .
23921  By default, \SpecialChar LyX
23922  will output 
23923 \begin_inset Quotes eld
23924 \end_inset
23925
23926
23927 \begin_inset Flex Code
23928 status collapsed
23929
23930 \begin_layout Plain Layout
23931 class=`layoutname'
23932 \end_layout
23933
23934 \end_inset
23935
23936
23937 \begin_inset Quotes erd
23938 \end_inset
23939
23940 , where 
23941 \begin_inset Flex Code
23942 status collapsed
23943
23944 \begin_layout Plain Layout
23945 layoutname
23946 \end_layout
23947
23948 \end_inset
23949
23950  is the \SpecialChar LyX
23951  name of the layout, made lowercase, for example: chapter.
23952  This should 
23953 \emph on
23954 not
23955 \emph default
23956  contain any style information.
23957  Use 
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 HTMLStyle
23963 \end_layout
23964
23965 \end_inset
23966
23967  for that purpose.
23968 \end_layout
23969
23970 \begin_layout Description
23971 \begin_inset Flex Code
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975 HTMLForceCSS
23976 \end_layout
23977
23978 \end_inset
23979
23980  [
23981 \begin_inset Flex Code
23982 status collapsed
23983
23984 \begin_layout Plain Layout
23985
23986 \emph on
23987 0
23988 \emph default
23989 ,1
23990 \end_layout
23991
23992 \end_inset
23993
23994 ] Whether to output the default CSS information \SpecialChar LyX
23995  generates for this layout,
23996  even if additional information is explicitly provided via 
23997 \begin_inset Flex Code
23998 status collapsed
23999
24000 \begin_layout Plain Layout
24001 HTMLStyle
24002 \end_layout
24003
24004 \end_inset
24005
24006 .
24007  Setting this to 
24008 \begin_inset Flex Code
24009 status collapsed
24010
24011 \begin_layout Plain Layout
24012 1
24013 \end_layout
24014
24015 \end_inset
24016
24017  allows you to alter or augment the generated CSS, rather than to override
24018  it completely.
24019  Default is 
24020 \begin_inset Flex Code
24021 status collapsed
24022
24023 \begin_layout Plain Layout
24024 0
24025 \end_layout
24026
24027 \end_inset
24028
24029 .
24030 \end_layout
24031
24032 \begin_layout Description
24033 \begin_inset Flex Code
24034 status collapsed
24035
24036 \begin_layout Plain Layout
24037 HTMLItem
24038 \end_layout
24039
24040 \end_inset
24041
24042  [
24043 \begin_inset Flex Code
24044 status collapsed
24045
24046 \begin_layout Plain Layout
24047 string
24048 \end_layout
24049
24050 \end_inset
24051
24052 ] The tag to be used for individual paragraphs of environments, replacing
24053  
24054 \begin_inset Flex Code
24055 status collapsed
24056
24057 \begin_layout Plain Layout
24058 itemtag
24059 \end_layout
24060
24061 \end_inset
24062
24063  in the examples above.
24064  Defaults to 
24065 \begin_inset Flex Code
24066 status collapsed
24067
24068 \begin_layout Plain Layout
24069 div
24070 \end_layout
24071
24072 \end_inset
24073
24074 .
24075 \end_layout
24076
24077 \begin_layout Description
24078 \begin_inset Flex Code
24079 status collapsed
24080
24081 \begin_layout Plain Layout
24082 HTMLItemAttr
24083 \end_layout
24084
24085 \end_inset
24086
24087  [
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092 string
24093 \end_layout
24094
24095 \end_inset
24096
24097 ] Attributes for the item tag.
24098  Defaults to 
24099 \begin_inset Quotes eld
24100 \end_inset
24101
24102
24103 \begin_inset Flex Code
24104 status collapsed
24105
24106 \begin_layout Plain Layout
24107 class=`layoutname_item'
24108 \end_layout
24109
24110 \end_inset
24111
24112
24113 \begin_inset Quotes erd
24114 \end_inset
24115
24116 .
24117  This should 
24118 \emph on
24119 not
24120 \emph default
24121  contain any style information.
24122  Use 
24123 \begin_inset Flex Code
24124 status collapsed
24125
24126 \begin_layout Plain Layout
24127 HTMLStyle
24128 \end_layout
24129
24130 \end_inset
24131
24132  for that purpose.
24133 \end_layout
24134
24135 \begin_layout Description
24136 \begin_inset Flex Code
24137 status collapsed
24138
24139 \begin_layout Plain Layout
24140 HTMLLabel
24141 \end_layout
24142
24143 \end_inset
24144
24145  [
24146 \begin_inset Flex Code
24147 status collapsed
24148
24149 \begin_layout Plain Layout
24150 string
24151 \end_layout
24152
24153 \end_inset
24154
24155 ] The tag to be used for paragraph and item labels, replacing 
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160 labeltag
24161 \end_layout
24162
24163 \end_inset
24164
24165  in the examples above.
24166  Defaults to 
24167 \begin_inset Flex Code
24168 status collapsed
24169
24170 \begin_layout Plain Layout
24171 span
24172 \end_layout
24173
24174 \end_inset
24175
24176 , unless 
24177 \begin_inset Flex Code
24178 status collapsed
24179
24180 \begin_layout Plain Layout
24181 LabelType
24182 \end_layout
24183
24184 \end_inset
24185
24186  is either 
24187 \begin_inset Flex Code
24188 status collapsed
24189
24190 \begin_layout Plain Layout
24191 Top_Environment
24192 \end_layout
24193
24194 \end_inset
24195
24196  or 
24197 \begin_inset Flex Code
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201 Centered_Top_Environment
24202 \end_layout
24203
24204 \end_inset
24205
24206 , in which case it defaults to 
24207 \begin_inset Flex Code
24208 status collapsed
24209
24210 \begin_layout Plain Layout
24211 div
24212 \end_layout
24213
24214 \end_inset
24215
24216 .
24217 \end_layout
24218
24219 \begin_layout Description
24220 \begin_inset Flex Code
24221 status collapsed
24222
24223 \begin_layout Plain Layout
24224 HTMLLabelAttr
24225 \end_layout
24226
24227 \end_inset
24228
24229  [
24230 \begin_inset Flex Code
24231 status collapsed
24232
24233 \begin_layout Plain Layout
24234 string
24235 \end_layout
24236
24237 \end_inset
24238
24239 ] Attributes for the label tag.
24240  Defaults to 
24241 \begin_inset Quotes eld
24242 \end_inset
24243
24244
24245 \begin_inset Flex Code
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249 class=`layoutname_label'
24250 \end_layout
24251
24252 \end_inset
24253
24254
24255 \begin_inset Quotes erd
24256 \end_inset
24257
24258 .
24259  This should 
24260 \emph on
24261 not
24262 \emph default
24263  contain any style information.
24264  Use 
24265 \begin_inset Flex Code
24266 status collapsed
24267
24268 \begin_layout Plain Layout
24269 HTMLStyle
24270 \end_layout
24271
24272 \end_inset
24273
24274  for that purpose.
24275 \end_layout
24276
24277 \begin_layout Description
24278 \begin_inset Flex Code
24279 status collapsed
24280
24281 \begin_layout Plain Layout
24282 HTMLLabelFirst
24283 \end_layout
24284
24285 \end_inset
24286
24287  [
24288 \begin_inset Flex Code
24289 status collapsed
24290
24291 \begin_layout Plain Layout
24292
24293 \emph on
24294 0
24295 \emph default
24296 ,1
24297 \end_layout
24298
24299 \end_inset
24300
24301 ] Meaningful only for list-like environments, this tag controls whether
24302  the label tag is output before or inside the item tag.
24303  This is used, for example, in the description environment, where we want
24304  `
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309 <dt>\SpecialChar ldots
24310 </dt><dd>\SpecialChar ldots
24311 </dd>
24312 \end_layout
24313
24314 \end_inset
24315
24316 .
24317  Default is 
24318 \begin_inset Flex Code
24319 status collapsed
24320
24321 \begin_layout Plain Layout
24322 0
24323 \end_layout
24324
24325 \end_inset
24326
24327 : The label tag is output inside the item tag.
24328 \end_layout
24329
24330 \begin_layout Description
24331 \begin_inset Flex Code
24332 status collapsed
24333
24334 \begin_layout Plain Layout
24335 HTMLPreamble
24336 \end_layout
24337
24338 \end_inset
24339
24340  Information to be output in the 
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345 <head>
24346 \end_layout
24347
24348 \end_inset
24349
24350  section when this style is used.
24351  This might, for example, be used to include a 
24352 \begin_inset Flex Code
24353 status collapsed
24354
24355 \begin_layout Plain Layout
24356 <script>
24357 \end_layout
24358
24359 \end_inset
24360
24361  block defining an 
24362 \begin_inset Flex Code
24363 status collapsed
24364
24365 \begin_layout Plain Layout
24366 onclick
24367 \end_layout
24368
24369 \end_inset
24370
24371  handler.
24372 \end_layout
24373
24374 \begin_layout Description
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379 HTMLStyle
24380 \end_layout
24381
24382 \end_inset
24383
24384  CSS style information to be included when this style is used.
24385  Note that this will automatically be wrapped in a layout-generated 
24386 \begin_inset Flex Code
24387 status collapsed
24388
24389 \begin_layout Plain Layout
24390 <style>
24391 \end_layout
24392
24393 \end_inset
24394
24395  block, so only the CSS itself need be included.
24396  Must end with 
24397 \begin_inset Flex Code
24398 status collapsed
24399
24400 \begin_layout Plain Layout
24401 EndHTMLStyle
24402 \end_layout
24403
24404 \end_inset
24405
24406 .
24407 \end_layout
24408
24409 \begin_layout Description
24410 \begin_inset Flex Code
24411 status collapsed
24412
24413 \begin_layout Plain Layout
24414 HTMLTag
24415 \end_layout
24416
24417 \end_inset
24418
24419  [
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 string
24425 \end_layout
24426
24427 \end_inset
24428
24429 ] The tag to be used for the main label, replacing 
24430 \begin_inset Flex Code
24431 status collapsed
24432
24433 \begin_layout Plain Layout
24434 tag
24435 \end_layout
24436
24437 \end_inset
24438
24439  in the examples above.
24440  Defaults to 
24441 \begin_inset Flex Code
24442 status collapsed
24443
24444 \begin_layout Plain Layout
24445 div
24446 \end_layout
24447
24448 \end_inset
24449
24450 .
24451 \end_layout
24452
24453 \begin_layout Description
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458 HTMLTitle
24459 \end_layout
24460
24461 \end_inset
24462
24463  [
24464 \begin_inset Flex Code
24465 status collapsed
24466
24467 \begin_layout Plain Layout
24468
24469 \emph on
24470 0
24471 \emph default
24472 ,1
24473 \end_layout
24474
24475 \end_inset
24476
24477 ] Marks this style as the one to be used to generate the 
24478 \begin_inset Flex Code
24479 status collapsed
24480
24481 \begin_layout Plain Layout
24482 <title>
24483 \end_layout
24484
24485 \end_inset
24486
24487  tag for the XHTML file.
24488  By default, it is false.
24489  The 
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 stdtitle.inc
24495 \end_layout
24496
24497 \end_inset
24498
24499  file sets it to true for the 
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 title
24505 \end_layout
24506
24507 \end_inset
24508
24509  environment.
24510  
24511 \end_layout
24512
24513 \begin_layout Subsection
24514 InsetLayout XHTML
24515 \end_layout
24516
24517 \begin_layout Standard
24518 The XHTML output of insets can also be controlled by information in layout
24519  files.
24520 \begin_inset Foot
24521 status collapsed
24522
24523 \begin_layout Plain Layout
24524 At present, this is true only for 
24525 \begin_inset Quotes eld
24526 \end_inset
24527
24528 text
24529 \begin_inset Quotes erd
24530 \end_inset
24531
24532  insets (insets you can type into) and is not true for 
24533 \begin_inset Quotes eld
24534 \end_inset
24535
24536 command
24537 \begin_inset Quotes erd
24538 \end_inset
24539
24540  insets (insets that are associated with dialog boxes).
24541 \end_layout
24542
24543 \end_inset
24544
24545  Here, too, \SpecialChar LyX
24546  tries to provide sensible defaults, and it constructs default
24547  CSS style rules.
24548  But everything can be customized.
24549 \end_layout
24550
24551 \begin_layout Standard
24552 The XHTML \SpecialChar LyX
24553  outputs for an inset has the following form:
24554 \end_layout
24555
24556 \begin_layout LyX-Code
24557 <tag attr=
24558 \begin_inset Quotes erd
24559 \end_inset
24560
24561 value
24562 \begin_inset Quotes erd
24563 \end_inset
24564
24565 >
24566 \end_layout
24567
24568 \begin_layout LyX-Code
24569 <labeltag>Label</labeltag>
24570 \end_layout
24571
24572 \begin_layout LyX-Code
24573 <innertag attr=
24574 \begin_inset Quotes erd
24575 \end_inset
24576
24577 value
24578 \begin_inset Quotes erd
24579 \end_inset
24580
24581 >Contents of the inset.</innertag>
24582 \end_layout
24583
24584 \begin_layout LyX-Code
24585 </tag>
24586 \end_layout
24587
24588 \begin_layout Standard
24589 If the inset permits multiple paragraphs—that is, if 
24590 \begin_inset Flex Code
24591 status collapsed
24592
24593 \begin_layout Plain Layout
24594 MultiPar
24595 \end_layout
24596
24597 \end_inset
24598
24599  is true—then the contents of the inset will itself be output as paragraphs
24600  formatted according to the styles used for those paragraphs (standard,
24601  quote, and the like).
24602  The label tag is of course omitted if the paragraph does not have a label
24603  and, at present, is always 
24604 \begin_inset Flex Code
24605 status collapsed
24606
24607 \begin_layout Plain Layout
24608 span
24609 \end_layout
24610
24611 \end_inset
24612
24613 .
24614  The inner tag is optional and, by default, does not appear.
24615 \end_layout
24616
24617 \begin_layout Standard
24618 The specific tags and attributes output for each inset can be controlled
24619  by means of the following layout tags.
24620 \end_layout
24621
24622 \begin_layout Description
24623 \begin_inset Flex Code
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627 HTMLAttr
24628 \end_layout
24629
24630 \end_inset
24631
24632  [
24633 \begin_inset Flex Code
24634 status collapsed
24635
24636 \begin_layout Plain Layout
24637 string
24638 \end_layout
24639
24640 \end_inset
24641
24642 ] Specifies attribute information to be output with the main tag.
24643  For example, 
24644 \begin_inset Quotes eld
24645 \end_inset
24646
24647
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652 class=`myinset' onclick=`\SpecialChar ldots
24653 '
24654 \end_layout
24655
24656 \end_inset
24657
24658
24659 \begin_inset Quotes erd
24660 \end_inset
24661
24662 .
24663  By default, \SpecialChar LyX
24664  will output 
24665 \begin_inset Quotes eld
24666 \end_inset
24667
24668
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 class=`insetname'
24674 \end_layout
24675
24676 \end_inset
24677
24678
24679 \begin_inset Quotes erd
24680 \end_inset
24681
24682 , where 
24683 \begin_inset Flex Code
24684 status collapsed
24685
24686 \begin_layout Plain Layout
24687 insetname
24688 \end_layout
24689
24690 \end_inset
24691
24692  is the \SpecialChar LyX
24693  name of the inset, made lowercase and with non-alphanumeric characters
24694  converted to underscores, for example: footnote.
24695 \end_layout
24696
24697 \begin_layout Description
24698 \begin_inset Flex Code
24699 status collapsed
24700
24701 \begin_layout Plain Layout
24702 HTMLForceCSS
24703 \end_layout
24704
24705 \end_inset
24706
24707  [
24708 \begin_inset Flex Code
24709 status collapsed
24710
24711 \begin_layout Plain Layout
24712
24713 \emph on
24714 0
24715 \emph default
24716 ,1
24717 \end_layout
24718
24719 \end_inset
24720
24721 ] Whether to output the default CSS information \SpecialChar LyX
24722  generates for this layout,
24723  even if additional information is explicitly provided via 
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728 HTMLStyle
24729 \end_layout
24730
24731 \end_inset
24732
24733 .
24734  Setting this to 
24735 \begin_inset Flex Code
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739 1
24740 \end_layout
24741
24742 \end_inset
24743
24744  allows you to alter or augment the generated CSS, rather than to override
24745  it completely.
24746  Default is 0.
24747 \end_layout
24748
24749 \begin_layout Description
24750 \begin_inset Flex Code
24751 status collapsed
24752
24753 \begin_layout Plain Layout
24754 HTMLInnerAttr
24755 \end_layout
24756
24757 \end_inset
24758
24759  [
24760 \begin_inset Flex Code
24761 status collapsed
24762
24763 \begin_layout Plain Layout
24764 string
24765 \end_layout
24766
24767 \end_inset
24768
24769 ] Attributes for the inner tag.
24770  Defaults to 
24771 \begin_inset Quotes eld
24772 \end_inset
24773
24774
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 class=`insetname_inner'
24780 \end_layout
24781
24782 \end_inset
24783
24784
24785 \begin_inset Quotes erd
24786 \end_inset
24787
24788 .
24789 \end_layout
24790
24791 \begin_layout Description
24792 \begin_inset Flex Code
24793 status collapsed
24794
24795 \begin_layout Plain Layout
24796 HTMLInnerTag
24797 \end_layout
24798
24799 \end_inset
24800
24801  [
24802 \begin_inset Flex Code
24803 status collapsed
24804
24805 \begin_layout Plain Layout
24806 string
24807 \end_layout
24808
24809 \end_inset
24810
24811 ] The inner tag, replacing 
24812 \begin_inset Flex Code
24813 status collapsed
24814
24815 \begin_layout Plain Layout
24816 innertag
24817 \end_layout
24818
24819 \end_inset
24820
24821  in the examples above.
24822  By default, there is none.
24823 \end_layout
24824
24825 \begin_layout Description
24826 \begin_inset Flex Code
24827 status collapsed
24828
24829 \begin_layout Plain Layout
24830 HTMLIsBlock
24831 \end_layout
24832
24833 \end_inset
24834
24835  [
24836 \begin_inset Flex Code
24837 status collapsed
24838
24839 \begin_layout Plain Layout
24840 0,
24841 \emph on
24842 1
24843 \end_layout
24844
24845 \end_inset
24846
24847 ] Whether this inset represents a standalone block of text (such as a footnote)
24848  or instead represents material that is included in the surrounding text
24849  (such as a branch).
24850  Defaults to 1.
24851 \end_layout
24852
24853 \begin_layout Description
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 HTMLLabel
24859 \end_layout
24860
24861 \end_inset
24862
24863  [
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868 string
24869 \end_layout
24870
24871 \end_inset
24872
24873 ] A label for this inset, possibly including a reference to a counter.
24874  For example, for footnote, it might be: 
24875 \begin_inset Flex Code
24876 status collapsed
24877
24878 \begin_layout Plain Layout
24879
24880 \backslash
24881 arabic{footnote}
24882 \end_layout
24883
24884 \end_inset
24885
24886 .
24887  This is optional, and there is no default.
24888 \end_layout
24889
24890 \begin_layout Description
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 HTMLPreamble
24896 \end_layout
24897
24898 \end_inset
24899
24900  Information to be output in the 
24901 \begin_inset Flex Code
24902 status collapsed
24903
24904 \begin_layout Plain Layout
24905 <head>
24906 \end_layout
24907
24908 \end_inset
24909
24910  section when this style is used.
24911  This might, for example, be used to include a 
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 <script>
24917 \end_layout
24918
24919 \end_inset
24920
24921  block defining an 
24922 \begin_inset Flex Code
24923 status collapsed
24924
24925 \begin_layout Plain Layout
24926 onclick
24927 \end_layout
24928
24929 \end_inset
24930
24931  handler.
24932 \end_layout
24933
24934 \begin_layout Description
24935 \begin_inset Flex Code
24936 status collapsed
24937
24938 \begin_layout Plain Layout
24939 HTMLStyle
24940 \end_layout
24941
24942 \end_inset
24943
24944  CSS style information to be included when this style is used.
24945  Note that this will automatically be wrapped in a layout-generated 
24946 \begin_inset Flex Code
24947 status collapsed
24948
24949 \begin_layout Plain Layout
24950 <style>
24951 \end_layout
24952
24953 \end_inset
24954
24955  block, so only the CSS itself need be included.
24956 \end_layout
24957
24958 \begin_layout Description
24959 \begin_inset Flex Code
24960 status collapsed
24961
24962 \begin_layout Plain Layout
24963 HTMLTag
24964 \end_layout
24965
24966 \end_inset
24967
24968  [
24969 \begin_inset Flex Code
24970 status collapsed
24971
24972 \begin_layout Plain Layout
24973 string
24974 \end_layout
24975
24976 \end_inset
24977
24978 ] The tag to be used for the main label, replacing 
24979 \begin_inset Flex Code
24980 status collapsed
24981
24982 \begin_layout Plain Layout
24983 tag
24984 \end_layout
24985
24986 \end_inset
24987
24988  in the examples above.
24989  The default depends upon the setting of 
24990 \begin_inset Flex Code
24991 status collapsed
24992
24993 \begin_layout Plain Layout
24994 MultiPar
24995 \end_layout
24996
24997 \end_inset
24998
24999 : If 
25000 \begin_inset Flex Code
25001 status collapsed
25002
25003 \begin_layout Plain Layout
25004 MultiPar
25005 \end_layout
25006
25007 \end_inset
25008
25009  is true, the default is 
25010 \begin_inset Flex Code
25011 status collapsed
25012
25013 \begin_layout Plain Layout
25014 div
25015 \end_layout
25016
25017 \end_inset
25018
25019 ; if it is false, the default is 
25020 \begin_inset Flex Code
25021 status collapsed
25022
25023 \begin_layout Plain Layout
25024 span
25025 \end_layout
25026
25027 \end_inset
25028
25029 .
25030 \end_layout
25031
25032 \begin_layout Subsection
25033 Float XHTML
25034 \end_layout
25035
25036 \begin_layout Standard
25037 The XHTML output for floats too can be controlled by layout information.
25038  The output has the following form:
25039 \end_layout
25040
25041 \begin_layout LyX-Code
25042 <tag attr=
25043 \begin_inset Quotes erd
25044 \end_inset
25045
25046 value
25047 \begin_inset Quotes erd
25048 \end_inset
25049
25050 >
25051 \end_layout
25052
25053 \begin_layout LyX-Code
25054 Contents of the float.
25055 \end_layout
25056
25057 \begin_layout LyX-Code
25058 </tag>
25059 \end_layout
25060
25061 \begin_layout Standard
25062 The caption, if there is one, is a separate inset and will be output as
25063  such.
25064  Its appearance can be controlled via the InsetLayout for caption insets.
25065  
25066 \end_layout
25067
25068 \begin_layout Description
25069 \begin_inset Flex Code
25070 status collapsed
25071
25072 \begin_layout Plain Layout
25073 HTMLAttr
25074 \end_layout
25075
25076 \end_inset
25077
25078  [
25079 \begin_inset Flex Code
25080 status collapsed
25081
25082 \begin_layout Plain Layout
25083 string
25084 \end_layout
25085
25086 \end_inset
25087
25088 ] Specifies attribute information to be output with the main tag.
25089  For example, 
25090 \begin_inset Quotes eld
25091 \end_inset
25092
25093
25094 \begin_inset Flex Code
25095 status collapsed
25096
25097 \begin_layout Plain Layout
25098 class=`myfloat' onclick=`\SpecialChar ldots
25099 '
25100 \end_layout
25101
25102 \end_inset
25103
25104
25105 \begin_inset Quotes erd
25106 \end_inset
25107
25108 .
25109  By default, \SpecialChar LyX
25110  will output 
25111 \begin_inset Quotes eld
25112 \end_inset
25113
25114
25115 \begin_inset Flex Code
25116 status collapsed
25117
25118 \begin_layout Plain Layout
25119 class=`float float-floattype'
25120 \end_layout
25121
25122 \end_inset
25123
25124
25125 \begin_inset Quotes erd
25126 \end_inset
25127
25128 , where 
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 floattype
25134 \end_layout
25135
25136 \end_inset
25137
25138  is \SpecialChar LyX
25139 's name for this type of float, as determined by the float declaration
25140  (see 
25141 \begin_inset CommandInset ref
25142 LatexCommand ref
25143 reference "subsec:Floats"
25144
25145 \end_inset
25146
25147 ), though made lowercase and with non-alphanumeric characters converted
25148  to underscores, for example: float-table.
25149 \end_layout
25150
25151 \begin_layout Description
25152 \begin_inset Flex Code
25153 status collapsed
25154
25155 \begin_layout Plain Layout
25156 HTMLStyle
25157 \end_layout
25158
25159 \end_inset
25160
25161  CSS style information to be included when this float is used.
25162  Note that this will automatically be wrapped in a layout-generated 
25163 \begin_inset Flex Code
25164 status collapsed
25165
25166 \begin_layout Plain Layout
25167 <style>
25168 \end_layout
25169
25170 \end_inset
25171
25172  block, so only the CSS itself need be included.
25173 \end_layout
25174
25175 \begin_layout Description
25176 \begin_inset Flex Code
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180 HTMLTag
25181 \end_layout
25182
25183 \end_inset
25184
25185  [
25186 \begin_inset Flex Code
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190 string
25191 \end_layout
25192
25193 \end_inset
25194
25195 ] The tag to be used for this float, replacing 
25196 \begin_inset Quotes eld
25197 \end_inset
25198
25199
25200 \begin_inset Flex Code
25201 status collapsed
25202
25203 \begin_layout Plain Layout
25204 tag
25205 \end_layout
25206
25207 \end_inset
25208
25209
25210 \begin_inset Quotes erd
25211 \end_inset
25212
25213  in the example above.
25214  The default is 
25215 \begin_inset Flex Code
25216 status collapsed
25217
25218 \begin_layout Plain Layout
25219 div
25220 \end_layout
25221
25222 \end_inset
25223
25224  and will rarely need changing.
25225 \end_layout
25226
25227 \begin_layout Subsection
25228 Bibliography formatting
25229 \end_layout
25230
25231 \begin_layout Standard
25232 The bibliography can be formatted using 
25233 \begin_inset Flex Code
25234 status collapsed
25235
25236 \begin_layout Plain Layout
25237 CiteFormat
25238 \end_layout
25239
25240 \end_inset
25241
25242  blocks.
25243  See 
25244 \begin_inset CommandInset ref
25245 LatexCommand ref
25246 reference "subsec:Citation-format-description"
25247
25248 \end_inset
25249
25250  for the details.
25251 \end_layout
25252
25253 \begin_layout Subsection
25254 \SpecialChar LyX
25255 -generated CSS
25256 \end_layout
25257
25258 \begin_layout Standard
25259 We have several times mentioned that \SpecialChar LyX
25260  will generate default CSS style rules
25261  for both insets and paragraph styles, based upon the other layout information
25262  that is provided.
25263  In this section, we shall say a word about which layout information \SpecialChar LyX
25264  uses
25265  and how.
25266 \end_layout
25267
25268 \begin_layout Standard
25269 At present, \SpecialChar LyX
25270  auto-generates CSS only for font information, making use of
25271  the 
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 Family
25277 \end_layout
25278
25279 \end_inset
25280
25281
25282 \begin_inset Flex Code
25283 status collapsed
25284
25285 \begin_layout Plain Layout
25286 Series
25287 \end_layout
25288
25289 \end_inset
25290
25291
25292 \begin_inset Flex Code
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 Shape
25297 \end_layout
25298
25299 \end_inset
25300
25301 , and 
25302 \begin_inset Flex Code
25303 status collapsed
25304
25305 \begin_layout Plain Layout
25306 Size
25307 \end_layout
25308
25309 \end_inset
25310
25311  specified in the 
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 Font
25317 \end_layout
25318
25319 \end_inset
25320
25321  declaration (see 
25322 \begin_inset CommandInset ref
25323 LatexCommand ref
25324 reference "subsec:Font-description"
25325
25326 \end_inset
25327
25328 ).
25329  The translation is mostly straightforward and obvious.
25330  For example, 
25331 \begin_inset Quotes eld
25332 \end_inset
25333
25334
25335 \begin_inset Flex Code
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339 Family Sans
25340 \end_layout
25341
25342 \end_inset
25343
25344
25345 \begin_inset Quotes erd
25346 \end_inset
25347
25348  becomes 
25349 \begin_inset Quotes eld
25350 \end_inset
25351
25352
25353 \begin_inset Flex Code
25354 status collapsed
25355
25356 \begin_layout Plain Layout
25357 font-family: sans-serif;
25358 \end_layout
25359
25360 \end_inset
25361
25362
25363 \begin_inset Quotes erd
25364 \end_inset
25365
25366 .
25367  The correspondence of \SpecialChar LyX
25368  sizes and CSS sizes is a little less obvious but
25369  nonetheless intuitive.
25370  See the 
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 getSizeCSS()
25376 \end_layout
25377
25378 \end_inset
25379
25380  function in 
25381 \begin_inset Flex URL
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385
25386 src/FontInfo.cpp
25387 \end_layout
25388
25389 \end_inset
25390
25391  for the details.
25392 \end_layout
25393
25394 \begin_layout Chapter
25395 Including External Material
25396 \begin_inset CommandInset label
25397 LatexCommand label
25398 name "chap:Including-External-Material"
25399
25400 \end_inset
25401
25402
25403 \end_layout
25404
25405 \begin_layout Standard
25406 \begin_inset Box Shadowbox
25407 position "t"
25408 hor_pos "c"
25409 has_inner_box 1
25410 inner_pos "t"
25411 use_parbox 0
25412 use_makebox 0
25413 width "100col%"
25414 special "none"
25415 height "1in"
25416 height_special "totalheight"
25417 thickness "0.4pt"
25418 separation "3pt"
25419 shadowsize "4pt"
25420 framecolor "black"
25421 backgroundcolor "none"
25422 status open
25423
25424 \begin_layout Plain Layout
25425 WARNING: This portion of the documentation has not been updated for some
25426  time.
25427  We certainly hope that it is still accurate, but there are no guarantees.
25428 \end_layout
25429
25430 \end_inset
25431
25432
25433 \end_layout
25434
25435 \begin_layout Standard
25436 The use of material from sources external to \SpecialChar LyX
25437  is covered in detail in the
25438  
25439 \emph on
25440 Embedded Objects
25441 \emph default
25442  manual.
25443  This part of the manual covers what needs to happen behind the scenes for
25444  new sorts of material to be included.
25445 \end_layout
25446
25447 \begin_layout Section
25448 How does it work?
25449 \end_layout
25450
25451 \begin_layout Standard
25452 The external material feature is based on the concept of a 
25453 \emph on
25454 template
25455 \emph default
25456 .
25457  A template is a specification of how \SpecialChar LyX
25458  should interface with a certain kind
25459  of material.
25460  As bundled, \SpecialChar LyX
25461  comes with predefined templates for Xfig figures, various
25462  raster format images, chess diagrams, and LilyPond music notation.
25463  You can check the actual list by using the menu 
25464 \begin_inset Flex Noun
25465 status collapsed
25466
25467 \begin_layout Plain Layout
25468 Insert\SpecialChar menuseparator
25469 File\SpecialChar menuseparator
25470 External Material
25471 \end_layout
25472
25473 \end_inset
25474
25475 .
25476  Furthermore, it is possible to roll your own template to support a specific
25477  kind of material.
25478  Later we'll describe in more detail what is involved, and hopefully you
25479  will submit all the templates you create so we can include them in a later
25480  \SpecialChar LyX
25481  version.
25482 \end_layout
25483
25484 \begin_layout Standard
25485 Another basic idea of the external material feature is to distinguish between
25486  the original file that serves as a base for final material and the produced
25487  file that is included in your exported or printed document.
25488  For example, consider the case of a figure produced with 
25489 \begin_inset Flex Code
25490 status collapsed
25491
25492 \begin_layout Plain Layout
25493 Xfig
25494 \end_layout
25495
25496 \end_inset
25497
25498 .
25499  The Xfig application itself works on an original file with the 
25500 \begin_inset Flex Code
25501 status collapsed
25502
25503 \begin_layout Plain Layout
25504 .fig
25505 \end_layout
25506
25507 \end_inset
25508
25509  extension.
25510  Within Xfig, you create and change your figure, and when you are done,
25511  you save the 
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 fig
25517 \end_layout
25518
25519 \end_inset
25520
25521 -file.
25522  When you want to include the figure in your document, you invoke 
25523 \begin_inset Flex Code
25524 status collapsed
25525
25526 \begin_layout Plain Layout
25527 transfig
25528 \end_layout
25529
25530 \end_inset
25531
25532  in order to create a PostScript file that can readily be included in your
25533  \SpecialChar LaTeX
25534  file.
25535  In this case, the 
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 .fig
25541 \end_layout
25542
25543 \end_inset
25544
25545  file is the original file, and the PostScript file is the produced file.
25546 \end_layout
25547
25548 \begin_layout Standard
25549 This distinction is important in order to allow updating of the material
25550  while you are in the process of writing the document.
25551  Furthermore, it provides us with the flexibility that is needed to support
25552  multiple export formats.
25553  For instance, in the case of a plain text file, it is not exactly an award-winn
25554 ing idea to include the figure as raw PostScript.
25555  Instead, you would either prefer to just include a reference to the figure
25556  or try to invoke some graphics to ASCII converter to make the final result
25557  look similar to the real graphics.
25558  The external material management allows you to do this, because it is parametri
25559 zed on the different export formats that \SpecialChar LyX
25560  supports.
25561 \end_layout
25562
25563 \begin_layout Standard
25564 Besides supporting the production of different products according to the
25565  exported format, it supports tight integration with editing and viewing
25566  applications.
25567  In the case of an Xfig figure, you are able to invoke Xfig on the original
25568  file with a single click from within the external material dialog in \SpecialChar LyX
25569 ,
25570  and also preview the produced PostScript file with Ghostview with another
25571  click.
25572  No more fiddling around with the command line and/or file browsers to locate
25573  and manipulate the original or produced files.
25574  In this way, you are finally able to take full advantage of the many different
25575  applications that are relevant to use when you write your documents, and
25576  ultimately be more productive.
25577 \end_layout
25578
25579 \begin_layout Section
25580 The external template configuration file
25581 \end_layout
25582
25583 \begin_layout Standard
25584 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25585 .
25586  However, be aware that doing this in an careless manner most probably 
25587 \emph on
25588 will
25589 \emph default
25590  introduce an easily exploitable security hole.
25591  So before you do this, please read the discussion about security in 
25592 \begin_inset CommandInset ref
25593 LatexCommand ref
25594 reference "sec:Security-discussion"
25595
25596 \end_inset
25597
25598 .
25599 \end_layout
25600
25601 \begin_layout Standard
25602 Having said that, we encourage you to submit any interesting templates that
25603  you create.
25604  
25605 \end_layout
25606
25607 \begin_layout Standard
25608 The external templates are defined in the 
25609 \begin_inset Flex Code
25610 status collapsed
25611
25612 \begin_layout Plain Layout
25613 LyXDir/lib/external_templates
25614 \end_layout
25615
25616 \end_inset
25617
25618  file.
25619  You can place your own version in 
25620 \begin_inset Flex Code
25621 status collapsed
25622
25623 \begin_layout Plain Layout
25624 UserDir/external_templates
25625 \end_layout
25626
25627 \end_inset
25628
25629 .
25630 \end_layout
25631
25632 \begin_layout Standard
25633 A typical template looks like this:
25634 \end_layout
25635
25636 \begin_layout LyX-Code
25637 Template XFig
25638 \end_layout
25639
25640 \begin_layout LyX-Code
25641 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25642 \end_layout
25643
25644 \begin_layout LyX-Code
25645 HelpText
25646 \end_layout
25647
25648 \begin_layout LyX-Code
25649 An XFig figure.
25650 \end_layout
25651
25652 \begin_layout LyX-Code
25653 HelpTextEnd
25654 \end_layout
25655
25656 \begin_layout LyX-Code
25657 InputFormat fig
25658 \end_layout
25659
25660 \begin_layout LyX-Code
25661 FileFilter "*.fig"
25662 \end_layout
25663
25664 \begin_layout LyX-Code
25665 AutomaticProduction true
25666 \end_layout
25667
25668 \begin_layout LyX-Code
25669 Transform Rotate
25670 \end_layout
25671
25672 \begin_layout LyX-Code
25673 Transform Resize
25674 \end_layout
25675
25676 \begin_layout LyX-Code
25677 Format LaTeX
25678 \end_layout
25679
25680 \begin_layout LyX-Code
25681 TransformCommand Rotate RotationLatexCommand
25682 \end_layout
25683
25684 \begin_layout LyX-Code
25685 TransformCommand Resize ResizeLatexCommand
25686 \end_layout
25687
25688 \begin_layout LyX-Code
25689 Product "$$RotateFront$$ResizeFront
25690 \end_layout
25691
25692 \begin_layout LyX-Code
25693          
25694 \backslash
25695
25696 \backslash
25697 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25698 \end_layout
25699
25700 \begin_layout LyX-Code
25701          $$ResizeBack$$RotateBack"
25702 \end_layout
25703
25704 \begin_layout LyX-Code
25705 UpdateFormat pstex
25706 \end_layout
25707
25708 \begin_layout LyX-Code
25709 UpdateResult "$$AbsPath$$Basename.pstex_t"
25710 \end_layout
25711
25712 \begin_layout LyX-Code
25713 Requirement "graphicx"
25714 \end_layout
25715
25716 \begin_layout LyX-Code
25717 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25718 \end_layout
25719
25720 \begin_layout LyX-Code
25721 ReferencedFile latex "$$AbsPath$$Basename.eps"
25722 \end_layout
25723
25724 \begin_layout LyX-Code
25725 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25726 \end_layout
25727
25728 \begin_layout LyX-Code
25729 FormatEnd
25730 \end_layout
25731
25732 \begin_layout LyX-Code
25733 Format PDFLaTeX
25734 \end_layout
25735
25736 \begin_layout LyX-Code
25737 TransformCommand Rotate RotationLatexCommand
25738 \end_layout
25739
25740 \begin_layout LyX-Code
25741 TransformCommand Resize ResizeLatexCommand
25742 \end_layout
25743
25744 \begin_layout LyX-Code
25745 Product "$$RotateFront$$ResizeFront
25746 \end_layout
25747
25748 \begin_layout LyX-Code
25749          
25750 \backslash
25751
25752 \backslash
25753 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25754 \end_layout
25755
25756 \begin_layout LyX-Code
25757          $$ResizeBack$$RotateBack"
25758 \end_layout
25759
25760 \begin_layout LyX-Code
25761 UpdateFormat pdftex
25762 \end_layout
25763
25764 \begin_layout LyX-Code
25765 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25766 \end_layout
25767
25768 \begin_layout LyX-Code
25769 Requirement "graphicx"
25770 \end_layout
25771
25772 \begin_layout LyX-Code
25773 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25774 \end_layout
25775
25776 \begin_layout LyX-Code
25777 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25778 \end_layout
25779
25780 \begin_layout LyX-Code
25781 FormatEnd
25782 \end_layout
25783
25784 \begin_layout LyX-Code
25785 Format Ascii
25786 \end_layout
25787
25788 \begin_layout LyX-Code
25789 Product "[XFig: $$FName]"
25790 \end_layout
25791
25792 \begin_layout LyX-Code
25793 FormatEnd
25794 \end_layout
25795
25796 \begin_layout LyX-Code
25797 Format DocBook
25798 \end_layout
25799
25800 \begin_layout LyX-Code
25801 Product "<graphic fileref=
25802 \backslash
25803 "$$AbsOrRelPathMaster$$Basename.eps
25804 \backslash
25805 ">
25806 \end_layout
25807
25808 \begin_layout LyX-Code
25809          </graphic>"
25810 \end_layout
25811
25812 \begin_layout LyX-Code
25813 UpdateFormat eps
25814 \end_layout
25815
25816 \begin_layout LyX-Code
25817 UpdateResult "$$AbsPath$$Basename.eps"
25818 \end_layout
25819
25820 \begin_layout LyX-Code
25821 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25822 \end_layout
25823
25824 \begin_layout LyX-Code
25825 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25826 \end_layout
25827
25828 \begin_layout LyX-Code
25829 FormatEnd
25830 \end_layout
25831
25832 \begin_layout LyX-Code
25833 TemplateEnd
25834 \end_layout
25835
25836 \begin_layout Standard
25837 As you can see, the template is enclosed in 
25838 \begin_inset Flex Code
25839 status collapsed
25840
25841 \begin_layout Plain Layout
25842 Template
25843 \end_layout
25844
25845 \end_inset
25846
25847  \SpecialChar ldots
25848  
25849 \begin_inset Flex Code
25850 status collapsed
25851
25852 \begin_layout Plain Layout
25853 TemplateEnd
25854 \end_layout
25855
25856 \end_inset
25857
25858 .
25859  It contains a header specifying some general settings and, for each supported
25860  primary document file format, a section 
25861 \begin_inset Flex Code
25862 status collapsed
25863
25864 \begin_layout Plain Layout
25865 Format
25866 \end_layout
25867
25868 \end_inset
25869
25870  \SpecialChar ldots
25871  
25872 \begin_inset Flex Code
25873 status collapsed
25874
25875 \begin_layout Plain Layout
25876 FormatEnd
25877 \end_layout
25878
25879 \end_inset
25880
25881 .
25882 \end_layout
25883
25884 \begin_layout Subsection
25885 The template header
25886 \end_layout
25887
25888 \begin_layout Description
25889 \begin_inset Flex Code
25890 status collapsed
25891
25892 \begin_layout Plain Layout
25893 AutomaticProduction
25894 \begin_inset space ~
25895 \end_inset
25896
25897 true|false
25898 \end_layout
25899
25900 \end_inset
25901
25902  Whether the file represented by the template must be generated by \SpecialChar LyX
25903 .
25904  This command must occur exactly once.
25905 \end_layout
25906
25907 \begin_layout Description
25908 \begin_inset Flex Code
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 FileFilter
25913 \begin_inset space ~
25914 \end_inset
25915
25916 <pattern>
25917 \end_layout
25918
25919 \end_inset
25920
25921  A glob pattern that is used in the file dialog to filter out the desired
25922  files.
25923  If there is more than one possible file extension (e.
25924 \begin_inset space \thinspace{}
25925 \end_inset
25926
25927 g.
25928 \begin_inset space \space{}
25929 \end_inset
25930
25931 tgif has 
25932 \begin_inset Flex Code
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936 .obj
25937 \end_layout
25938
25939 \end_inset
25940
25941  and 
25942 \begin_inset Flex Code
25943 status collapsed
25944
25945 \begin_layout Plain Layout
25946 .tgo
25947 \end_layout
25948
25949 \end_inset
25950
25951 ), use something like 
25952 \begin_inset Flex Code
25953 status collapsed
25954
25955 \begin_layout Plain Layout
25956 "*.{obj,tgo}"
25957 \end_layout
25958
25959 \end_inset
25960
25961 .
25962  This command must occur exactly once.
25963 \end_layout
25964
25965 \begin_layout Description
25966 \begin_inset Flex Code
25967 status collapsed
25968
25969 \begin_layout Plain Layout
25970 GuiName
25971 \begin_inset space ~
25972 \end_inset
25973
25974 <guiname>
25975 \end_layout
25976
25977 \end_inset
25978
25979  The text that is displayed on the button.
25980  This command must occur exactly once.
25981 \end_layout
25982
25983 \begin_layout Description
25984 \begin_inset Flex Code
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 HelpText
25989 \begin_inset space ~
25990 \end_inset
25991
25992 <text>
25993 \begin_inset space ~
25994 \end_inset
25995
25996 HelpTextEnd
25997 \end_layout
25998
25999 \end_inset
26000
26001  The help text that is used in the External dialog.
26002  Provide enough information to explain to the user just what the template
26003  can provide him with.
26004  This command must occur exactly once.
26005 \end_layout
26006
26007 \begin_layout Description
26008 \begin_inset Flex Code
26009 status collapsed
26010
26011 \begin_layout Plain Layout
26012 InputFormat
26013 \begin_inset space ~
26014 \end_inset
26015
26016 <format>
26017 \end_layout
26018
26019 \end_inset
26020
26021  The file format of the original file.
26022  This must be the name of a format that is known to \SpecialChar LyX
26023  (see 
26024 \begin_inset CommandInset ref
26025 LatexCommand ref
26026 reference "sec:Formats"
26027
26028 \end_inset
26029
26030 ).
26031  Use 
26032 \begin_inset Quotes eld
26033 \end_inset
26034
26035
26036 \begin_inset Flex Code
26037 status collapsed
26038
26039 \begin_layout Plain Layout
26040 *
26041 \end_layout
26042
26043 \end_inset
26044
26045
26046 \begin_inset Quotes erd
26047 \end_inset
26048
26049  if the template can handle original files of more than one format.
26050  \SpecialChar LyX
26051  will attempt to interrogate the file itself in order to deduce its format
26052  in this case.
26053  This command must occur exactly once.
26054 \end_layout
26055
26056 \begin_layout Description
26057 \begin_inset Flex Code
26058 status collapsed
26059
26060 \begin_layout Plain Layout
26061 Template
26062 \begin_inset space ~
26063 \end_inset
26064
26065 <id>
26066 \end_layout
26067
26068 \end_inset
26069
26070  A unique name for the template.
26071  It must not contain substitution macros (see below).
26072 \end_layout
26073
26074 \begin_layout Description
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 Transform
26080 \begin_inset space ~
26081 \end_inset
26082
26083 Rotate|Resize|Clip|Extra
26084 \end_layout
26085
26086 \end_inset
26087
26088  This command specifies which transformations are supported by this template.
26089  It may occur zero or more times.
26090  This command enables the corresponding tabs in the external dialog.
26091  Each 
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 Transform
26097 \end_layout
26098
26099 \end_inset
26100
26101  command must have either a corresponding 
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 TransformCommand
26107 \end_layout
26108
26109 \end_inset
26110
26111  or a 
26112 \begin_inset Flex Code
26113 status collapsed
26114
26115 \begin_layout Plain Layout
26116 TransformOption
26117 \end_layout
26118
26119 \end_inset
26120
26121  command in the 
26122 \begin_inset Flex Code
26123 status collapsed
26124
26125 \begin_layout Plain Layout
26126 Format
26127 \end_layout
26128
26129 \end_inset
26130
26131  section.
26132  Otherwise the transformation will not be supported by that format.
26133 \end_layout
26134
26135 \begin_layout Subsection
26136 The Format section
26137 \end_layout
26138
26139 \begin_layout Description
26140 \begin_inset Flex Code
26141 status collapsed
26142
26143 \begin_layout Plain Layout
26144 Format
26145 \begin_inset space ~
26146 \end_inset
26147
26148 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26149 \end_layout
26150
26151 \end_inset
26152
26153  The primary document file format that this format definition is for.
26154  Not every template has a sensible representation in all document file formats.
26155  Please define nevertheless a 
26156 \begin_inset Flex Code
26157 status collapsed
26158
26159 \begin_layout Plain Layout
26160 Format
26161 \end_layout
26162
26163 \end_inset
26164
26165  section for all templates.
26166  Use a dummy text when no representation is available.
26167  Then you can at least see a reference to the external material in the exported
26168  document.
26169 \end_layout
26170
26171 \begin_layout Description
26172 \begin_inset Flex Code
26173 status collapsed
26174
26175 \begin_layout Plain Layout
26176 Option
26177 \begin_inset space ~
26178 \end_inset
26179
26180 <name>
26181 \begin_inset space ~
26182 \end_inset
26183
26184 <value>
26185 \end_layout
26186
26187 \end_inset
26188
26189  This command defines an additional macro 
26190 \begin_inset Flex Code
26191 status collapsed
26192
26193 \begin_layout Plain Layout
26194 $$<name>
26195 \end_layout
26196
26197 \end_inset
26198
26199  for substitution in 
26200 \begin_inset Flex Code
26201 status collapsed
26202
26203 \begin_layout Plain Layout
26204 Product
26205 \end_layout
26206
26207 \end_inset
26208
26209 .
26210  
26211 \begin_inset Flex Code
26212 status collapsed
26213
26214 \begin_layout Plain Layout
26215 <value>
26216 \end_layout
26217
26218 \end_inset
26219
26220  itself may contain substitution macros.
26221  The advantage over using 
26222 \begin_inset Flex Code
26223 status collapsed
26224
26225 \begin_layout Plain Layout
26226 <value>
26227 \end_layout
26228
26229 \end_inset
26230
26231  directly in 
26232 \begin_inset Flex Code
26233 status collapsed
26234
26235 \begin_layout Plain Layout
26236 Product
26237 \end_layout
26238
26239 \end_inset
26240
26241  is that the substituted value of 
26242 \begin_inset Flex Code
26243 status collapsed
26244
26245 \begin_layout Plain Layout
26246 $$<name>
26247 \end_layout
26248
26249 \end_inset
26250
26251  is sanitized so that it is a valid optional argument in the document format.
26252  This command may occur zero or more times.
26253 \end_layout
26254
26255 \begin_layout Description
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260 Product
26261 \begin_inset space ~
26262 \end_inset
26263
26264 <text>
26265 \end_layout
26266
26267 \end_inset
26268
26269  The text that is inserted in the exported document.
26270  This is actually the most important command and can be quite complex.
26271  This command must occur exactly once.
26272 \end_layout
26273
26274 \begin_layout Description
26275 \begin_inset Flex Code
26276 status collapsed
26277
26278 \begin_layout Plain Layout
26279 Preamble
26280 \begin_inset space ~
26281 \end_inset
26282
26283 <name>
26284 \end_layout
26285
26286 \end_inset
26287
26288  This command specifies a preamble snippet that will be included in the
26289  \SpecialChar LaTeX
26290  preamble.
26291  It has to be defined using 
26292 \begin_inset Flex Code
26293 status collapsed
26294
26295 \begin_layout Plain Layout
26296 PreambleDef
26297 \end_layout
26298
26299 \end_inset
26300
26301  \SpecialChar ldots
26302  
26303 \begin_inset Flex Code
26304 status collapsed
26305
26306 \begin_layout Plain Layout
26307 PreambleDefEnd
26308 \end_layout
26309
26310 \end_inset
26311
26312 .
26313  This command may occur zero or more times.
26314 \end_layout
26315
26316 \begin_layout Description
26317 \begin_inset Flex Code
26318 status collapsed
26319
26320 \begin_layout Plain Layout
26321 ReferencedFile
26322 \begin_inset space ~
26323 \end_inset
26324
26325 <format>
26326 \begin_inset space ~
26327 \end_inset
26328
26329 <filename>
26330 \end_layout
26331
26332 \end_inset
26333
26334  This command denotes files that are created by the conversion process and
26335  are needed for a particular export format.
26336  If the filename is relative, it is interpreted relative to the master document.
26337  This command may be given zero or more times.
26338 \end_layout
26339
26340 \begin_layout Description
26341 \begin_inset Flex Code
26342 status collapsed
26343
26344 \begin_layout Plain Layout
26345 Requirement
26346 \begin_inset space ~
26347 \end_inset
26348
26349 <package>
26350 \end_layout
26351
26352 \end_inset
26353
26354  The name of a required \SpecialChar LaTeX
26355  package.
26356  The package is included via 
26357 \begin_inset Flex Code
26358 status collapsed
26359
26360 \begin_layout Plain Layout
26361
26362 \backslash
26363 usepackage{}
26364 \end_layout
26365
26366 \end_inset
26367
26368  in the \SpecialChar LaTeX
26369  preamble.
26370  This command may occur zero or more times.
26371 \end_layout
26372
26373 \begin_layout Description
26374 \begin_inset Flex Code
26375 status collapsed
26376
26377 \begin_layout Plain Layout
26378 TransformCommand
26379 \begin_inset space ~
26380 \end_inset
26381
26382 Rotate
26383 \begin_inset space ~
26384 \end_inset
26385
26386 RotationLatexCommand
26387 \end_layout
26388
26389 \end_inset
26390
26391  This command specifies that the built in \SpecialChar LaTeX
26392  command should be used for rotation.
26393  This command may occur once or not at all.
26394 \end_layout
26395
26396 \begin_layout Description
26397 \begin_inset Flex Code
26398 status collapsed
26399
26400 \begin_layout Plain Layout
26401 TransformCommand
26402 \begin_inset space ~
26403 \end_inset
26404
26405 Resize
26406 \begin_inset space ~
26407 \end_inset
26408
26409 ResizeLatexCommand
26410 \end_layout
26411
26412 \end_inset
26413
26414  This command specifies that the built in \SpecialChar LaTeX
26415  command should be used for resizing.
26416  This command may occur once or not at all.
26417 \end_layout
26418
26419 \begin_layout Description
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 TransformOption
26425 \begin_inset space ~
26426 \end_inset
26427
26428 Rotate
26429 \begin_inset space ~
26430 \end_inset
26431
26432 RotationLatexOption
26433 \end_layout
26434
26435 \end_inset
26436
26437  This command specifies that rotation is done via an optional argument.
26438  This command may occur once or not at all.
26439 \end_layout
26440
26441 \begin_layout Description
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 TransformOption
26447 \begin_inset space ~
26448 \end_inset
26449
26450 Resize
26451 \begin_inset space ~
26452 \end_inset
26453
26454 ResizeLatexOption
26455 \end_layout
26456
26457 \end_inset
26458
26459  This command specifies that resizing is done via an optional argument.
26460  This command may occur once or not at all.
26461 \end_layout
26462
26463 \begin_layout Description
26464 \begin_inset Flex Code
26465 status collapsed
26466
26467 \begin_layout Plain Layout
26468 TransformOption
26469 \begin_inset space ~
26470 \end_inset
26471
26472 Clip
26473 \begin_inset space ~
26474 \end_inset
26475
26476 ClipLatexOption
26477 \end_layout
26478
26479 \end_inset
26480
26481  This command specifies that clipping is done via an optional argument.
26482  This command may occur once or not at all.
26483 \end_layout
26484
26485 \begin_layout Description
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 TransformOption
26491 \begin_inset space ~
26492 \end_inset
26493
26494 Extra
26495 \begin_inset space ~
26496 \end_inset
26497
26498 ExtraLatexOption
26499 \end_layout
26500
26501 \end_inset
26502
26503  This command specifies that an extra optional argument is used.
26504  This command may occur once or not at all.
26505 \end_layout
26506
26507 \begin_layout Description
26508 \begin_inset Flex Code
26509 status collapsed
26510
26511 \begin_layout Plain Layout
26512 UpdateFormat
26513 \begin_inset space ~
26514 \end_inset
26515
26516 <format>
26517 \end_layout
26518
26519 \end_inset
26520
26521  The file format of the converted file.
26522  This must be the name of a format that is known to \SpecialChar LyX
26523  (see the 
26524 \begin_inset Flex Noun
26525 status collapsed
26526
26527 \begin_layout Plain Layout
26528 Tools\SpecialChar menuseparator
26529 Preferences\SpecialChar menuseparator
26530 File Handling\SpecialChar menuseparator
26531 File Format
26532 \end_layout
26533
26534 \end_inset
26535
26536  dialog).
26537  This command must occur exactly once.
26538  If the resulting file format is PDF, you need to specify the format 
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543 pdf6
26544 \end_layout
26545
26546 \end_inset
26547
26548 .
26549  This is the PDF format used for including graphics.
26550  The other defined PDF formats are for document export.
26551 \end_layout
26552
26553 \begin_layout Description
26554 \begin_inset Flex Code
26555 status collapsed
26556
26557 \begin_layout Plain Layout
26558 UpdateResult
26559 \begin_inset space ~
26560 \end_inset
26561
26562 <filename>
26563 \end_layout
26564
26565 \end_inset
26566
26567  The file name of the converted file.
26568  The file name must be absolute.
26569  This command must occur exactly once.
26570 \end_layout
26571
26572 \begin_layout Subsection
26573 Preamble definitions
26574 \end_layout
26575
26576 \begin_layout Standard
26577 The external template configuration file may contain additional preamble
26578  definitions enclosed by 
26579 \begin_inset Flex Code
26580 status collapsed
26581
26582 \begin_layout Plain Layout
26583 PreambleDef
26584 \end_layout
26585
26586 \end_inset
26587
26588  \SpecialChar ldots
26589  
26590 \begin_inset Flex Code
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594 PreambleDefEnd
26595 \end_layout
26596
26597 \end_inset
26598
26599 .
26600  They can be used by the templates in the 
26601 \begin_inset Flex Code
26602 status collapsed
26603
26604 \begin_layout Plain Layout
26605 Format
26606 \end_layout
26607
26608 \end_inset
26609
26610  section.
26611 \end_layout
26612
26613 \begin_layout Section
26614 The substitution mechanism
26615 \end_layout
26616
26617 \begin_layout Standard
26618 When the external material facility invokes an external program, it is done
26619  on the basis of a command defined in the template configuration file.
26620  These commands can contain various macros that are expanded before execution.
26621  Execution always take place in the directory of the containing document.
26622 \end_layout
26623
26624 \begin_layout Standard
26625 Also, whenever external material is to be displayed, the name will be produced
26626  by the substitution mechanism, and most other commands in the template
26627  definition support substitution as well.
26628 \end_layout
26629
26630 \begin_layout Standard
26631 The available macros are the following:
26632 \end_layout
26633
26634 \begin_layout Description
26635 \begin_inset Flex Code
26636 status collapsed
26637
26638 \begin_layout Plain Layout
26639 $$AbsOrRelPathMaster
26640 \end_layout
26641
26642 \end_inset
26643
26644  The file path, absolute or relative to the master \SpecialChar LyX
26645  document.
26646 \end_layout
26647
26648 \begin_layout Description
26649 \begin_inset Flex Code
26650 status collapsed
26651
26652 \begin_layout Plain Layout
26653 $$AbsOrRelPathParent
26654 \end_layout
26655
26656 \end_inset
26657
26658  The file path, absolute or relative to the \SpecialChar LyX
26659  document.
26660 \end_layout
26661
26662 \begin_layout Description
26663 \begin_inset Flex Code
26664 status collapsed
26665
26666 \begin_layout Plain Layout
26667 $$AbsPath
26668 \end_layout
26669
26670 \end_inset
26671
26672  The absolute file path.
26673 \end_layout
26674
26675 \begin_layout Description
26676 \begin_inset Flex Code
26677 status collapsed
26678
26679 \begin_layout Plain Layout
26680 $$Basename
26681 \end_layout
26682
26683 \end_inset
26684
26685  The filename without path and without the extension.
26686 \end_layout
26687
26688 \begin_layout Description
26689 \begin_inset Flex Code
26690 status collapsed
26691
26692 \begin_layout Plain Layout
26693 $$Contents(
26694 \begin_inset Quotes eld
26695 \end_inset
26696
26697 filename.ext
26698 \begin_inset Quotes erd
26699 \end_inset
26700
26701 )
26702 \end_layout
26703
26704 \end_inset
26705
26706  This macro will expand to the contents of the file with the name 
26707 \begin_inset Flex Code
26708 status collapsed
26709
26710 \begin_layout Plain Layout
26711 filename.ext
26712 \end_layout
26713
26714 \end_inset
26715
26716 .
26717 \end_layout
26718
26719 \begin_layout Description
26720 \begin_inset Flex Code
26721 status collapsed
26722
26723 \begin_layout Plain Layout
26724 $$Extension
26725 \end_layout
26726
26727 \end_inset
26728
26729  The file extension (including the dot).
26730 \end_layout
26731
26732 \begin_layout Description
26733 \begin_inset Flex Code
26734 status collapsed
26735
26736 \begin_layout Plain Layout
26737 $$pngOrjpg
26738 \end_layout
26739
26740 \end_inset
26741
26742  This will be the string 
26743 \begin_inset Quotes eld
26744 \end_inset
26745
26746 jpg
26747 \begin_inset Quotes erd
26748 \end_inset
26749
26750  if the file is in JPEG format, otherwise it will be the string 
26751 \begin_inset Quotes eld
26752 \end_inset
26753
26754 png
26755 \begin_inset Quotes erd
26756 \end_inset
26757
26758 .
26759  This is useful to avoid uneeded conversions for output formats that support
26760  both PNG and JPEG fomats.
26761  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26762  output
26763  format.
26764 \end_layout
26765
26766 \begin_layout Description
26767 \begin_inset Flex Code
26768 status collapsed
26769
26770 \begin_layout Plain Layout
26771 $$FName
26772 \end_layout
26773
26774 \end_inset
26775
26776  The filename of the file specified in the external material dialog.
26777  This is either an absolute name, or it is relative to the \SpecialChar LyX
26778  document.
26779 \end_layout
26780
26781 \begin_layout Description
26782 \begin_inset Flex Code
26783 status collapsed
26784
26785 \begin_layout Plain Layout
26786 $$FPath
26787 \end_layout
26788
26789 \end_inset
26790
26791  The path part of 
26792 \begin_inset Flex Code
26793 status collapsed
26794
26795 \begin_layout Plain Layout
26796 $$FName
26797 \end_layout
26798
26799 \end_inset
26800
26801  (absolute name or relative to the \SpecialChar LyX
26802  document).
26803 \end_layout
26804
26805 \begin_layout Description
26806 \begin_inset Flex Code
26807 status collapsed
26808
26809 \begin_layout Plain Layout
26810 $$RelPathMaster
26811 \end_layout
26812
26813 \end_inset
26814
26815  The file path, relative to the master \SpecialChar LyX
26816  document.
26817 \end_layout
26818
26819 \begin_layout Description
26820 \begin_inset Flex Code
26821 status collapsed
26822
26823 \begin_layout Plain Layout
26824 $$RelPathParent
26825 \end_layout
26826
26827 \end_inset
26828
26829  The file path, relative to the \SpecialChar LyX
26830  document.
26831 \end_layout
26832
26833 \begin_layout Description
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 $$Sysdir
26839 \end_layout
26840
26841 \end_inset
26842
26843  This macro will expand to the absolute path of the system directory.
26844  This is typically used to point to the various helper scripts that are
26845  bundled with \SpecialChar LyX
26846 .
26847 \end_layout
26848
26849 \begin_layout Description
26850 \begin_inset Flex Code
26851 status collapsed
26852
26853 \begin_layout Plain Layout
26854 $$Tempname
26855 \end_layout
26856
26857 \end_inset
26858
26859  A name and full path to a temporary file which will be automatically deleted
26860  whenever the containing document is closed, or the external material insertion
26861  deleted.
26862 \end_layout
26863
26864 \begin_layout Standard
26865 All path macros contain a trailing directory separator, so you can construct
26866  e.
26867 \begin_inset space \thinspace{}
26868 \end_inset
26869
26870 g.
26871 \begin_inset space \space{}
26872 \end_inset
26873
26874 the absolute filename with 
26875 \begin_inset Flex Code
26876 status collapsed
26877
26878 \begin_layout Plain Layout
26879 $$AbsPath$$Basename$$Extension
26880 \end_layout
26881
26882 \end_inset
26883
26884 .
26885 \end_layout
26886
26887 \begin_layout Standard
26888 The macros above are substituted in all commands unless otherwise noted.
26889  The command 
26890 \begin_inset Flex Code
26891 status collapsed
26892
26893 \begin_layout Plain Layout
26894 Product
26895 \end_layout
26896
26897 \end_inset
26898
26899  supports additionally the following substitutions if they are enabled by
26900  the 
26901 \begin_inset Flex Code
26902 status collapsed
26903
26904 \begin_layout Plain Layout
26905 Transform
26906 \end_layout
26907
26908 \end_inset
26909
26910  and 
26911 \begin_inset Flex Code
26912 status collapsed
26913
26914 \begin_layout Plain Layout
26915 TransformCommand
26916 \end_layout
26917
26918 \end_inset
26919
26920  commands:
26921 \end_layout
26922
26923 \begin_layout Description
26924 \begin_inset Flex Code
26925 status collapsed
26926
26927 \begin_layout Plain Layout
26928 $$ResizeFront
26929 \end_layout
26930
26931 \end_inset
26932
26933  The front part of the resize command.
26934 \end_layout
26935
26936 \begin_layout Description
26937 \begin_inset Flex Code
26938 status collapsed
26939
26940 \begin_layout Plain Layout
26941 $$ResizeBack
26942 \end_layout
26943
26944 \end_inset
26945
26946  The back part of the resize command.
26947 \end_layout
26948
26949 \begin_layout Description
26950 \begin_inset Flex Code
26951 status collapsed
26952
26953 \begin_layout Plain Layout
26954 $$RotateFront
26955 \end_layout
26956
26957 \end_inset
26958
26959  The front part of the rotation command.
26960 \end_layout
26961
26962 \begin_layout Description
26963 \begin_inset Flex Code
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 $$RotateBack
26968 \end_layout
26969
26970 \end_inset
26971
26972  The back part of the rotation command.
26973 \end_layout
26974
26975 \begin_layout Standard
26976 The value string of the 
26977 \begin_inset Flex Code
26978 status collapsed
26979
26980 \begin_layout Plain Layout
26981 Option
26982 \end_layout
26983
26984 \end_inset
26985
26986  command supports additionally the following substitutions if they are enabled
26987  by the 
26988 \begin_inset Flex Code
26989 status collapsed
26990
26991 \begin_layout Plain Layout
26992 Transform
26993 \end_layout
26994
26995 \end_inset
26996
26997  and 
26998 \begin_inset Flex Code
26999 status collapsed
27000
27001 \begin_layout Plain Layout
27002 TransformOption
27003 \end_layout
27004
27005 \end_inset
27006
27007  commands:
27008 \end_layout
27009
27010 \begin_layout Description
27011 \begin_inset Flex Code
27012 status collapsed
27013
27014 \begin_layout Plain Layout
27015 $$Clip
27016 \end_layout
27017
27018 \end_inset
27019
27020  The clip option.
27021 \end_layout
27022
27023 \begin_layout Description
27024 \begin_inset Flex Code
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 $$Extra
27029 \end_layout
27030
27031 \end_inset
27032
27033  The extra option.
27034 \end_layout
27035
27036 \begin_layout Description
27037 \begin_inset Flex Code
27038 status collapsed
27039
27040 \begin_layout Plain Layout
27041 $$Resize
27042 \end_layout
27043
27044 \end_inset
27045
27046  The resize option.
27047 \end_layout
27048
27049 \begin_layout Description
27050 \begin_inset Flex Code
27051 status collapsed
27052
27053 \begin_layout Plain Layout
27054 $$Rotate
27055 \end_layout
27056
27057 \end_inset
27058
27059  The rotation option.
27060 \end_layout
27061
27062 \begin_layout Standard
27063 You may ask why there are so many path macros.
27064  There are mainly two reasons:
27065 \end_layout
27066
27067 \begin_layout Enumerate
27068 Relative and absolute file names should remain relative or absolute, respectivel
27069 y.
27070  Users may have reasons to prefer either form.
27071  Relative names are useful for portable documents that should work on different
27072  machines, for example.
27073  Absolute names may be required by some programs.
27074 \end_layout
27075
27076 \begin_layout Enumerate
27077 \SpecialChar LaTeX
27078  treats relative file names differently than \SpecialChar LyX
27079  and other programs in nested
27080  included files.
27081  For \SpecialChar LyX
27082 , a relative file name is always relative to the document that contains
27083  the file name.
27084  For \SpecialChar LaTeX
27085 , it is always relative to the master document.
27086  These two definitions are identical if you have only one document, but
27087  differ if you have a master document that includes part documents.
27088  That means that relative filenames must be transformed when presented to
27089  \SpecialChar LaTeX
27090 .
27091  Fortunately \SpecialChar LyX
27092  does this automatically for you if you choose the right macros.
27093 \end_layout
27094
27095 \begin_layout Standard
27096 So which path macro should be used in new template definitions? The rule
27097  is not difficult:
27098 \end_layout
27099
27100 \begin_layout Itemize
27101 Use 
27102 \begin_inset Flex Code
27103 status collapsed
27104
27105 \begin_layout Plain Layout
27106 $$AbsPath
27107 \end_layout
27108
27109 \end_inset
27110
27111  if an absolute path is required.
27112 \end_layout
27113
27114 \begin_layout Itemize
27115 Use 
27116 \begin_inset Flex Code
27117 status collapsed
27118
27119 \begin_layout Plain Layout
27120 $$AbsOrRelPathMaster
27121 \end_layout
27122
27123 \end_inset
27124
27125  if the substituted string is some kind of \SpecialChar LaTeX
27126  input.
27127 \end_layout
27128
27129 \begin_layout Itemize
27130 Else use 
27131 \begin_inset Flex Code
27132 status collapsed
27133
27134 \begin_layout Plain Layout
27135 $$AbsOrRelPathParent
27136 \end_layout
27137
27138 \end_inset
27139
27140  in order to preserve the user's choice.
27141 \end_layout
27142
27143 \begin_layout Standard
27144 There are special cases where this rule does not work and e.
27145 \begin_inset space \thinspace{}
27146 \end_inset
27147
27148 g.
27149 \begin_inset space \space{}
27150 \end_inset
27151
27152 relative names are needed, but normally it will work just fine.
27153  One example for such a case is the command 
27154 \begin_inset Flex Code
27155 status collapsed
27156
27157 \begin_layout Plain Layout
27158 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27159 \end_layout
27160
27161 \end_inset
27162
27163  in the XFig template above: We can't use the absolute name because the
27164  copier for 
27165 \begin_inset Flex Code
27166 status collapsed
27167
27168 \begin_layout Plain Layout
27169 .pstex_t
27170 \end_layout
27171
27172 \end_inset
27173
27174  files needs the relative name in order to rewrite the file content.
27175 \end_layout
27176
27177 \begin_layout Section
27178 Security discussion
27179 \begin_inset CommandInset label
27180 LatexCommand label
27181 name "sec:Security-discussion"
27182
27183 \end_inset
27184
27185
27186 \end_layout
27187
27188 \begin_layout Standard
27189 The external material feature interfaces with a lot of external programs
27190  and does so automatically, so we have to consider the security implications
27191  of this.
27192  In particular, since you have the option of including your own filenames
27193  and/or parameter strings and those are expanded into a command, it seems
27194  that it would be possible to create a malicious document which executes
27195  arbitrary commands when a user views or prints the document.
27196  This is something we definitely want to avoid.
27197 \end_layout
27198
27199 \begin_layout Standard
27200 However, since the external program commands are specified in the template
27201  configuration file only, there are no security issues if \SpecialChar LyX
27202  is properly configure
27203 d with safe templates only.
27204  This is so because the external programs are invoked with the 
27205 \begin_inset Flex Code
27206 status collapsed
27207
27208 \begin_layout Plain Layout
27209 execvp
27210 \end_layout
27211
27212 \end_inset
27213
27214 -system call rather than the 
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 system
27220 \end_layout
27221
27222 \end_inset
27223
27224  system-call, so it's not possible to execute arbitrary commands from the
27225  filename or parameter section via the shell.
27226 \end_layout
27227
27228 \begin_layout Standard
27229 This also implies that you are restricted in what command strings you can
27230  use in the external material templates.
27231  In particular, pipes and redirection are not readily available.
27232  This has to be so if \SpecialChar LyX
27233  should remain safe.
27234  If you want to use some of the shell features, you should write a safe
27235  script to do this in a controlled manner, and then invoke the script from
27236  the command string.
27237  
27238 \end_layout
27239
27240 \begin_layout Standard
27241 It is possible to design a template that interacts directly with the shell,
27242  but since this would allow a malicious user to execute arbitrary commands
27243  by writing clever filenames and/or parameters, we generally recommend that
27244  you only use safe scripts that work with the 
27245 \begin_inset Flex Code
27246 status collapsed
27247
27248 \begin_layout Plain Layout
27249 execvp
27250 \end_layout
27251
27252 \end_inset
27253
27254  system call in a controlled manner.
27255  Of course, for use in a controlled environment, it can be tempting to just
27256  fall back to use ordinary shell scripts.
27257  If you do so, be aware that you 
27258 \emph on
27259 will
27260 \emph default
27261  provide an easily exploitable security hole in your system.
27262  Of course it stands to reason that such unsafe templates will never be
27263  included in the standard \SpecialChar LyX
27264  distribution, although we do encourage people
27265  to submit new templates in the open source tradition.
27266  But \SpecialChar LyX
27267  as shipped from the official distribution channels will never have
27268  unsafe templates.
27269 \end_layout
27270
27271 \begin_layout Standard
27272 Including external material provides a lot of power, and you have to be
27273  careful not to introduce security hazards with this power.
27274  A subtle error in a single line in an innocent looking script can open
27275  the door to huge security problems.
27276  So if you do not fully understand the issues, we recommend that you consult
27277  a knowledgeable security professional or the \SpecialChar LyX
27278  development team if you have
27279  any questions about whether a given template is safe or not.
27280  And do this before you use it in an uncontrolled environment.
27281 \end_layout
27282
27283 \begin_layout Chapter
27284 \start_of_appendix
27285 List of supported \SpecialChar LyX
27286  functions to be used in layouts
27287 \begin_inset CommandInset label
27288 LatexCommand label
27289 name "chap:List-of-functions"
27290
27291 \end_inset
27292
27293
27294 \end_layout
27295
27296 \begin_layout Standard
27297 \align center
27298 \begin_inset Tabular
27299 <lyxtabular version="3" rows="11" columns="8">
27300 <features tabularvalignment="middle">
27301 <column alignment="left" valignment="top">
27302 <column alignment="left" valignment="top">
27303 <column alignment="left" valignment="top">
27304 <column alignment="left" valignment="top">
27305 <column alignment="left" valignment="top">
27306 <column alignment="left" valignment="top">
27307 <column alignment="left" valignment="top">
27308 <column alignment="left" valignment="top">
27309 <row>
27310 <cell alignment="left" valignment="top" usebox="none">
27311 \begin_inset Text
27312
27313 \begin_layout Plain Layout
27314 accents
27315 \end_layout
27316
27317 \end_inset
27318 </cell>
27319 <cell alignment="left" valignment="top" usebox="none">
27320 \begin_inset Text
27321
27322 \begin_layout Plain Layout
27323 booktabs
27324 \end_layout
27325
27326 \end_inset
27327 </cell>
27328 <cell alignment="left" valignment="top" usebox="none">
27329 \begin_inset Text
27330
27331 \begin_layout Plain Layout
27332 feyn
27333 \end_layout
27334
27335 \end_inset
27336 </cell>
27337 <cell alignment="left" valignment="top" usebox="none">
27338 \begin_inset Text
27339
27340 \begin_layout Plain Layout
27341 listings
27342 \end_layout
27343
27344 \end_inset
27345 </cell>
27346 <cell alignment="center" valignment="top" usebox="none">
27347 \begin_inset Text
27348
27349 \begin_layout Plain Layout
27350 natbib
27351 \end_layout
27352
27353 \end_inset
27354 </cell>
27355 <cell alignment="center" valignment="top" usebox="none">
27356 \begin_inset Text
27357
27358 \begin_layout Plain Layout
27359 rotfloat
27360 \end_layout
27361
27362 \end_inset
27363 </cell>
27364 <cell alignment="center" valignment="top" usebox="none">
27365 \begin_inset Text
27366
27367 \begin_layout Plain Layout
27368 tfrupee
27369 \end_layout
27370
27371 \end_inset
27372 </cell>
27373 <cell alignment="center" valignment="top" usebox="none">
27374 \begin_inset Text
27375
27376 \begin_layout Plain Layout
27377 wasysym
27378 \end_layout
27379
27380 \end_inset
27381 </cell>
27382 </row>
27383 <row>
27384 <cell alignment="left" valignment="top" usebox="none">
27385 \begin_inset Text
27386
27387 \begin_layout Plain Layout
27388 amsbsy
27389 \end_layout
27390
27391 \end_inset
27392 </cell>
27393 <cell alignment="left" valignment="top" usebox="none">
27394 \begin_inset Text
27395
27396 \begin_layout Plain Layout
27397 calc
27398 \end_layout
27399
27400 \end_inset
27401 </cell>
27402 <cell alignment="left" valignment="top" usebox="none">
27403 \begin_inset Text
27404
27405 \begin_layout Plain Layout
27406 fixltx2e
27407 \end_layout
27408
27409 \end_inset
27410 </cell>
27411 <cell alignment="left" valignment="top" usebox="none">
27412 \begin_inset Text
27413
27414 \begin_layout Plain Layout
27415 longtable
27416 \end_layout
27417
27418 \end_inset
27419 </cell>
27420 <cell alignment="center" valignment="top" usebox="none">
27421 \begin_inset Text
27422
27423 \begin_layout Plain Layout
27424 nomencl
27425 \end_layout
27426
27427 \end_inset
27428 </cell>
27429 <cell alignment="center" valignment="top" usebox="none">
27430 \begin_inset Text
27431
27432 \begin_layout Plain Layout
27433 rsphrase
27434 \end_layout
27435
27436 \end_inset
27437 </cell>
27438 <cell alignment="center" valignment="top" usebox="none">
27439 \begin_inset Text
27440
27441 \begin_layout Plain Layout
27442 tipa
27443 \end_layout
27444
27445 \end_inset
27446 </cell>
27447 <cell alignment="center" valignment="top" usebox="none">
27448 \begin_inset Text
27449
27450 \begin_layout Plain Layout
27451 wrapfig
27452 \end_layout
27453
27454 \end_inset
27455 </cell>
27456 </row>
27457 <row>
27458 <cell alignment="left" valignment="top" usebox="none">
27459 \begin_inset Text
27460
27461 \begin_layout Plain Layout
27462 amscd
27463 \end_layout
27464
27465 \end_inset
27466 </cell>
27467 <cell alignment="left" valignment="top" usebox="none">
27468 \begin_inset Text
27469
27470 \begin_layout Plain Layout
27471 CJK
27472 \end_layout
27473
27474 \end_inset
27475 </cell>
27476 <cell alignment="left" valignment="top" usebox="none">
27477 \begin_inset Text
27478
27479 \begin_layout Plain Layout
27480 float
27481 \end_layout
27482
27483 \end_inset
27484 </cell>
27485 <cell alignment="left" valignment="top" usebox="none">
27486 \begin_inset Text
27487
27488 \begin_layout Plain Layout
27489 lyxskak
27490 \end_layout
27491
27492 \end_inset
27493 </cell>
27494 <cell alignment="center" valignment="top" usebox="none">
27495 \begin_inset Text
27496
27497 \begin_layout Plain Layout
27498 pdfcolmk
27499 \end_layout
27500
27501 \end_inset
27502 </cell>
27503 <cell alignment="center" valignment="top" usebox="none">
27504 \begin_inset Text
27505
27506 \begin_layout Plain Layout
27507 setspace
27508 \end_layout
27509
27510 \end_inset
27511 </cell>
27512 <cell alignment="center" valignment="top" usebox="none">
27513 \begin_inset Text
27514
27515 \begin_layout Plain Layout
27516 tipx
27517 \end_layout
27518
27519 \end_inset
27520 </cell>
27521 <cell alignment="center" valignment="top" usebox="none">
27522 \begin_inset Text
27523
27524 \begin_layout Plain Layout
27525 xargs
27526 \end_layout
27527
27528 \end_inset
27529 </cell>
27530 </row>
27531 <row>
27532 <cell alignment="left" valignment="top" usebox="none">
27533 \begin_inset Text
27534
27535 \begin_layout Plain Layout
27536 amsmath
27537 \end_layout
27538
27539 \end_inset
27540 </cell>
27541 <cell alignment="left" valignment="top" usebox="none">
27542 \begin_inset Text
27543
27544 \begin_layout Plain Layout
27545 color
27546 \end_layout
27547
27548 \end_inset
27549 </cell>
27550 <cell alignment="left" valignment="top" usebox="none">
27551 \begin_inset Text
27552
27553 \begin_layout Plain Layout
27554 framed
27555 \end_layout
27556
27557 \end_inset
27558 </cell>
27559 <cell alignment="left" valignment="top" usebox="none">
27560 \begin_inset Text
27561
27562 \begin_layout Plain Layout
27563 makeidx
27564 \end_layout
27565
27566 \end_inset
27567 </cell>
27568 <cell alignment="center" valignment="top" usebox="none">
27569 \begin_inset Text
27570
27571 \begin_layout Plain Layout
27572 pdfpages
27573 \end_layout
27574
27575 \end_inset
27576 </cell>
27577 <cell alignment="center" valignment="top" usebox="none">
27578 \begin_inset Text
27579
27580 \begin_layout Plain Layout
27581 shapepar
27582 \end_layout
27583
27584 \end_inset
27585 </cell>
27586 <cell alignment="center" valignment="top" usebox="none">
27587 \begin_inset Text
27588
27589 \begin_layout Plain Layout
27590 tone
27591 \end_layout
27592
27593 \end_inset
27594 </cell>
27595 <cell alignment="center" valignment="top" usebox="none">
27596 \begin_inset Text
27597
27598 \begin_layout Plain Layout
27599 xcolor
27600 \end_layout
27601
27602 \end_inset
27603 </cell>
27604 </row>
27605 <row>
27606 <cell alignment="left" valignment="top" usebox="none">
27607 \begin_inset Text
27608
27609 \begin_layout Plain Layout
27610 amssymb
27611 \end_layout
27612
27613 \end_inset
27614 </cell>
27615 <cell alignment="left" valignment="top" usebox="none">
27616 \begin_inset Text
27617
27618 \begin_layout Plain Layout
27619 covington
27620 \end_layout
27621
27622 \end_inset
27623 </cell>
27624 <cell alignment="left" valignment="top" usebox="none">
27625 \begin_inset Text
27626
27627 \begin_layout Plain Layout
27628 graphicx
27629 \end_layout
27630
27631 \end_inset
27632 </cell>
27633 <cell alignment="left" valignment="top" usebox="none">
27634 \begin_inset Text
27635
27636 \begin_layout Plain Layout
27637 marvosym
27638 \end_layout
27639
27640 \end_inset
27641 </cell>
27642 <cell alignment="center" valignment="top" usebox="none">
27643 \begin_inset Text
27644
27645 \begin_layout Plain Layout
27646 pifont
27647 \end_layout
27648
27649 \end_inset
27650 </cell>
27651 <cell alignment="center" valignment="top" usebox="none">
27652 \begin_inset Text
27653
27654 \begin_layout Plain Layout
27655 slashed
27656 \end_layout
27657
27658 \end_inset
27659 </cell>
27660 <cell alignment="center" valignment="top" usebox="none">
27661 \begin_inset Text
27662
27663 \begin_layout Plain Layout
27664 txfonts
27665 \end_layout
27666
27667 \end_inset
27668 </cell>
27669 <cell alignment="center" valignment="top" usebox="none">
27670 \begin_inset Text
27671
27672 \begin_layout Plain Layout
27673 xy
27674 \end_layout
27675
27676 \end_inset
27677 </cell>
27678 </row>
27679 <row>
27680 <cell alignment="left" valignment="top" usebox="none">
27681 \begin_inset Text
27682
27683 \begin_layout Plain Layout
27684 amstext
27685 \end_layout
27686
27687 \end_inset
27688 </cell>
27689 <cell alignment="left" valignment="top" usebox="none">
27690 \begin_inset Text
27691
27692 \begin_layout Plain Layout
27693 csquotes
27694 \end_layout
27695
27696 \end_inset
27697 </cell>
27698 <cell alignment="left" valignment="top" usebox="none">
27699 \begin_inset Text
27700
27701 \begin_layout Plain Layout
27702 hhline
27703 \end_layout
27704
27705 \end_inset
27706 </cell>
27707 <cell alignment="left" valignment="top" usebox="none">
27708 \begin_inset Text
27709
27710 \begin_layout Plain Layout
27711 mathdesign
27712 \end_layout
27713
27714 \end_inset
27715 </cell>
27716 <cell alignment="center" valignment="top" usebox="none">
27717 \begin_inset Text
27718
27719 \begin_layout Plain Layout
27720 pmboxdraw
27721 \end_layout
27722
27723 \end_inset
27724 </cell>
27725 <cell alignment="center" valignment="top" usebox="none">
27726 \begin_inset Text
27727
27728 \begin_layout Plain Layout
27729 soul
27730 \end_layout
27731
27732 \end_inset
27733 </cell>
27734 <cell alignment="center" valignment="top" usebox="none">
27735 \begin_inset Text
27736
27737 \begin_layout Plain Layout
27738 ulem
27739 \end_layout
27740
27741 \end_inset
27742 </cell>
27743 <cell alignment="center" valignment="top" usebox="none">
27744 \begin_inset Text
27745
27746 \begin_layout Plain Layout
27747 yhmath
27748 \end_layout
27749
27750 \end_inset
27751 </cell>
27752 </row>
27753 <row>
27754 <cell alignment="left" valignment="top" usebox="none">
27755 \begin_inset Text
27756
27757 \begin_layout Plain Layout
27758 amsthm
27759 \end_layout
27760
27761 \end_inset
27762 </cell>
27763 <cell alignment="left" valignment="top" usebox="none">
27764 \begin_inset Text
27765
27766 \begin_layout Plain Layout
27767 dvipost
27768 \end_layout
27769
27770 \end_inset
27771 </cell>
27772 <cell alignment="left" valignment="top" usebox="none">
27773 \begin_inset Text
27774
27775 \begin_layout Plain Layout
27776 hyperref
27777 \end_layout
27778
27779 \end_inset
27780 </cell>
27781 <cell alignment="left" valignment="top" usebox="none">
27782 \begin_inset Text
27783
27784 \begin_layout Plain Layout
27785 mathdots
27786 \end_layout
27787
27788 \end_inset
27789 </cell>
27790 <cell alignment="center" valignment="top" usebox="none">
27791 \begin_inset Text
27792
27793 \begin_layout Plain Layout
27794 polyglossia
27795 \end_layout
27796
27797 \end_inset
27798 </cell>
27799 <cell alignment="center" valignment="top" usebox="none">
27800 \begin_inset Text
27801
27802 \begin_layout Plain Layout
27803 splitidx
27804 \end_layout
27805
27806 \end_inset
27807 </cell>
27808 <cell alignment="center" valignment="top" usebox="none">
27809 \begin_inset Text
27810
27811 \begin_layout Plain Layout
27812 undertilde
27813 \end_layout
27814
27815 \end_inset
27816 </cell>
27817 <cell alignment="center" valignment="top" usebox="none">
27818 \begin_inset Text
27819
27820 \begin_layout Plain Layout
27821
27822 \end_layout
27823
27824 \end_inset
27825 </cell>
27826 </row>
27827 <row>
27828 <cell alignment="left" valignment="top" usebox="none">
27829 \begin_inset Text
27830
27831 \begin_layout Plain Layout
27832 array
27833 \end_layout
27834
27835 \end_inset
27836 </cell>
27837 <cell alignment="left" valignment="top" usebox="none">
27838 \begin_inset Text
27839
27840 \begin_layout Plain Layout
27841 endnotes
27842 \end_layout
27843
27844 \end_inset
27845 </cell>
27846 <cell alignment="left" valignment="top" usebox="none">
27847 \begin_inset Text
27848
27849 \begin_layout Plain Layout
27850 ifsym
27851 \end_layout
27852
27853 \end_inset
27854 </cell>
27855 <cell alignment="left" valignment="top" usebox="none">
27856 \begin_inset Text
27857
27858 \begin_layout Plain Layout
27859 mathrsfs
27860 \end_layout
27861
27862 \end_inset
27863 </cell>
27864 <cell alignment="center" valignment="top" usebox="none">
27865 \begin_inset Text
27866
27867 \begin_layout Plain Layout
27868 prettyref
27869 \end_layout
27870
27871 \end_inset
27872 </cell>
27873 <cell alignment="center" valignment="top" usebox="none">
27874 \begin_inset Text
27875
27876 \begin_layout Plain Layout
27877 subfig
27878 \end_layout
27879
27880 \end_inset
27881 </cell>
27882 <cell alignment="center" valignment="top" usebox="none">
27883 \begin_inset Text
27884
27885 \begin_layout Plain Layout
27886 units
27887 \end_layout
27888
27889 \end_inset
27890 </cell>
27891 <cell alignment="center" valignment="top" usebox="none">
27892 \begin_inset Text
27893
27894 \begin_layout Plain Layout
27895
27896 \end_layout
27897
27898 \end_inset
27899 </cell>
27900 </row>
27901 <row>
27902 <cell alignment="left" valignment="top" usebox="none">
27903 \begin_inset Text
27904
27905 \begin_layout Plain Layout
27906 ascii
27907 \end_layout
27908
27909 \end_inset
27910 </cell>
27911 <cell alignment="left" valignment="top" usebox="none">
27912 \begin_inset Text
27913
27914 \begin_layout Plain Layout
27915 enumitem
27916 \end_layout
27917
27918 \end_inset
27919 </cell>
27920 <cell alignment="left" valignment="top" usebox="none">
27921 \begin_inset Text
27922
27923 \begin_layout Plain Layout
27924 ifthen
27925 \end_layout
27926
27927 \end_inset
27928 </cell>
27929 <cell alignment="left" valignment="top" usebox="none">
27930 \begin_inset Text
27931
27932 \begin_layout Plain Layout
27933 mhchem
27934 \end_layout
27935
27936 \end_inset
27937 </cell>
27938 <cell alignment="center" valignment="top" usebox="none">
27939 \begin_inset Text
27940
27941 \begin_layout Plain Layout
27942 pxfonts
27943 \end_layout
27944
27945 \end_inset
27946 </cell>
27947 <cell alignment="center" valignment="top" usebox="none">
27948 \begin_inset Text
27949
27950 \begin_layout Plain Layout
27951 subscript
27952 \end_layout
27953
27954 \end_inset
27955 </cell>
27956 <cell alignment="center" valignment="top" usebox="none">
27957 \begin_inset Text
27958
27959 \begin_layout Plain Layout
27960 url
27961 \end_layout
27962
27963 \end_inset
27964 </cell>
27965 <cell alignment="center" valignment="top" usebox="none">
27966 \begin_inset Text
27967
27968 \begin_layout Plain Layout
27969
27970 \end_layout
27971
27972 \end_inset
27973 </cell>
27974 </row>
27975 <row>
27976 <cell alignment="left" valignment="top" usebox="none">
27977 \begin_inset Text
27978
27979 \begin_layout Plain Layout
27980 bbding
27981 \end_layout
27982
27983 \end_inset
27984 </cell>
27985 <cell alignment="left" valignment="top" usebox="none">
27986 \begin_inset Text
27987
27988 \begin_layout Plain Layout
27989 esint
27990 \end_layout
27991
27992 \end_inset
27993 </cell>
27994 <cell alignment="left" valignment="top" usebox="none">
27995 \begin_inset Text
27996
27997 \begin_layout Plain Layout
27998 jurabib
27999 \end_layout
28000
28001 \end_inset
28002 </cell>
28003 <cell alignment="left" valignment="top" usebox="none">
28004 \begin_inset Text
28005
28006 \begin_layout Plain Layout
28007 multicol
28008 \end_layout
28009
28010 \end_inset
28011 </cell>
28012 <cell alignment="center" valignment="top" usebox="none">
28013 \begin_inset Text
28014
28015 \begin_layout Plain Layout
28016 refstyle
28017 \end_layout
28018
28019 \end_inset
28020 </cell>
28021 <cell alignment="center" valignment="top" usebox="none">
28022 \begin_inset Text
28023
28024 \begin_layout Plain Layout
28025 textcomp
28026 \end_layout
28027
28028 \end_inset
28029 </cell>
28030 <cell alignment="center" valignment="top" usebox="none">
28031 \begin_inset Text
28032
28033 \begin_layout Plain Layout
28034 varioref
28035 \end_layout
28036
28037 \end_inset
28038 </cell>
28039 <cell alignment="center" valignment="top" usebox="none">
28040 \begin_inset Text
28041
28042 \begin_layout Plain Layout
28043
28044 \end_layout
28045
28046 \end_inset
28047 </cell>
28048 </row>
28049 <row>
28050 <cell alignment="center" valignment="top" usebox="none">
28051 \begin_inset Text
28052
28053 \begin_layout Plain Layout
28054 bm
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 fancybox
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 latexsym
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 multirow
28082 \end_layout
28083
28084 \end_inset
28085 </cell>
28086 <cell alignment="center" valignment="top" usebox="none">
28087 \begin_inset Text
28088
28089 \begin_layout Plain Layout
28090 rotating
28091 \end_layout
28092
28093 \end_inset
28094 </cell>
28095 <cell alignment="center" valignment="top" usebox="none">
28096 \begin_inset Text
28097
28098 \begin_layout Plain Layout
28099 textgreek
28100 \end_layout
28101
28102 \end_inset
28103 </cell>
28104 <cell alignment="center" valignment="top" usebox="none">
28105 \begin_inset Text
28106
28107 \begin_layout Plain Layout
28108 verbatim
28109 \end_layout
28110
28111 \end_inset
28112 </cell>
28113 <cell alignment="center" valignment="top" usebox="none">
28114 \begin_inset Text
28115
28116 \begin_layout Plain Layout
28117
28118 \end_layout
28119
28120 \end_inset
28121 </cell>
28122 </row>
28123 </lyxtabular>
28124
28125 \end_inset
28126
28127
28128 \end_layout
28129
28130 \begin_layout Chapter
28131 Names of available colors to be used in layouts
28132 \begin_inset CommandInset label
28133 LatexCommand label
28134 name "chap:Names-of-colors"
28135
28136 \end_inset
28137
28138
28139 \end_layout
28140
28141 \begin_layout Standard
28142 The colors listed here are the standard colors and the those that you can
28143  adjust in the \SpecialChar LyX
28144  preferences.
28145 \end_layout
28146
28147 \begin_layout Description
28148 none
28149 \family roman
28150 \series medium
28151 \shape up
28152 \size normal
28153 \emph off
28154 \bar no
28155 \strikeout off
28156 \uuline off
28157 \uwave off
28158 \noun off
28159 \color none
28160  No particular color – clear or default
28161 \end_layout
28162
28163 \begin_layout Description
28164 black
28165 \end_layout
28166
28167 \begin_layout Description
28168 white
28169 \end_layout
28170
28171 \begin_layout Description
28172 red
28173 \end_layout
28174
28175 \begin_layout Description
28176 green
28177 \end_layout
28178
28179 \begin_layout Description
28180 blue
28181 \end_layout
28182
28183 \begin_layout Description
28184 cyan
28185 \end_layout
28186
28187 \begin_layout Description
28188 magenta
28189 \end_layout
28190
28191 \begin_layout Description
28192 yellow
28193 \end_layout
28194
28195 \begin_layout Description
28196 added_space Added space marker color
28197 \end_layout
28198
28199 \begin_layout Description
28200 addedtext Added text color
28201 \end_layout
28202
28203 \begin_layout Description
28204 appendix Appendix marker color
28205 \end_layout
28206
28207 \begin_layout Description
28208 background Background color
28209 \end_layout
28210
28211 \begin_layout Description
28212 bottomarea Bottom area color
28213 \end_layout
28214
28215 \begin_layout Description
28216 branchlabel Label color for branches
28217 \end_layout
28218
28219 \begin_layout Description
28220 buttonbg Color used for button background
28221 \end_layout
28222
28223 \begin_layout Description
28224 buttonhoverbg Color used for button background under focus
28225 \end_layout
28226
28227 \begin_layout Description
28228 buttonframe Color for inset button frames
28229 \end_layout
28230
28231 \begin_layout Description
28232 changebar Changebar color
28233 \end_layout
28234
28235 \begin_layout Description
28236 changedtextauthor1 Changed text color author 1
28237 \end_layout
28238
28239 \begin_layout Description
28240 changedtextauthor2 Changed text color author 2
28241 \end_layout
28242
28243 \begin_layout Description
28244 changedtextauthor3 Changed text color author 3
28245 \end_layout
28246
28247 \begin_layout Description
28248 changedtextauthor4 Changed text color author 4
28249 \end_layout
28250
28251 \begin_layout Description
28252 changedtextauthor5 Changed text color author 5
28253 \end_layout
28254
28255 \begin_layout Description
28256 collapsable_inset_frame Collapsable insets framecolor
28257 \end_layout
28258
28259 \begin_layout Description
28260 collapsable_inset_text Collapsable insets text color
28261 \end_layout
28262
28263 \begin_layout Description
28264 command Text color for command insets
28265 \end_layout
28266
28267 \begin_layout Description
28268 commandbg Background color for command insets
28269 \end_layout
28270
28271 \begin_layout Description
28272 commandframe Frame color for command insets
28273 \end_layout
28274
28275 \begin_layout Description
28276 comment color for comments
28277 \end_layout
28278
28279 \begin_layout Description
28280 commentbg Background color of comments
28281 \end_layout
28282
28283 \begin_layout Description
28284 cursor Cursor color
28285 \end_layout
28286
28287 \begin_layout Description
28288 deletedtext Deleted text color
28289 \end_layout
28290
28291 \begin_layout Description
28292 deletedtextmodifier Deleted text modifying color
28293 \end_layout
28294
28295 \begin_layout Description
28296 depthbar Color for the depth bars in the margin
28297 \end_layout
28298
28299 \begin_layout Description
28300 eolmarker End of line marker color
28301 \end_layout
28302
28303 \begin_layout Description
28304 error Color of the \SpecialChar LaTeX
28305  error box
28306 \end_layout
28307
28308 \begin_layout Description
28309 footlabel Label color for footnotes
28310 \end_layout
28311
28312 \begin_layout Description
28313 graphicsbg Graphics inset background color
28314 \end_layout
28315
28316 \begin_layout Description
28317 greyedout Label color for greyedout insets
28318 \end_layout
28319
28320 \begin_layout Description
28321 greyedoutbg Background color of greyedout inset
28322 \end_layout
28323
28324 \begin_layout Description
28325 greyedouttext Color for greyedout inset text
28326 \end_layout
28327
28328 \begin_layout Description
28329 indexlabel Label color for index insets
28330 \end_layout
28331
28332 \begin_layout Description
28333 ignore The color is ignored
28334 \end_layout
28335
28336 \begin_layout Description
28337 inherit The color is inherited
28338 \end_layout
28339
28340 \begin_layout Description
28341 inlinecompletion Inline completion color
28342 \end_layout
28343
28344 \begin_layout Description
28345 insetbg Inset marker background color
28346 \end_layout
28347
28348 \begin_layout Description
28349 insetframe Inset marker frame color
28350 \end_layout
28351
28352 \begin_layout Description
28353 language Color for marking foreign language words
28354 \end_layout
28355
28356 \begin_layout Description
28357 latex Text color in \SpecialChar LaTeX
28358  mode
28359 \end_layout
28360
28361 \begin_layout Description
28362 listingsbg Background color of listings inset
28363 \end_layout
28364
28365 \begin_layout Description
28366 marginlabel Label color for margin notes
28367 \end_layout
28368
28369 \begin_layout Description
28370 math Math inset text color
28371 \end_layout
28372
28373 \begin_layout Description
28374 mathbg Math inset background color
28375 \end_layout
28376
28377 \begin_layout Description
28378 mathcorners Math inset frame color not under focus
28379 \end_layout
28380
28381 \begin_layout Description
28382 mathframe Math inset frame color under focus
28383 \end_layout
28384
28385 \begin_layout Description
28386 mathline Math line color
28387 \end_layout
28388
28389 \begin_layout Description
28390 mathmacrobg Macro math inset background color
28391 \end_layout
28392
28393 \begin_layout Description
28394 mathmacroblend Macro math blended color
28395 \end_layout
28396
28397 \begin_layout Description
28398 mathmacroframe Macro math frame color
28399 \end_layout
28400
28401 \begin_layout Description
28402 mathmacrohoverbg Macro math inset background color hovered
28403 \end_layout
28404
28405 \begin_layout Description
28406 mathmacrolabel Macro math label color
28407 \end_layout
28408
28409 \begin_layout Description
28410 mathmacronewarg Macro template color for new parameters
28411 \end_layout
28412
28413 \begin_layout Description
28414 mathmacrooldarg Macro template color for old parameters
28415 \end_layout
28416
28417 \begin_layout Description
28418 newpage New page color
28419 \end_layout
28420
28421 \begin_layout Description
28422 nonunique_inlinecompletion Inline completion color for the non-unique part
28423 \end_layout
28424
28425 \begin_layout Description
28426 notebg Background color of notes
28427 \end_layout
28428
28429 \begin_layout Description
28430 notelabel Label color for notes
28431 \end_layout
28432
28433 \begin_layout Description
28434 pagebreak Page break/line break color
28435 \end_layout
28436
28437 \begin_layout Description
28438 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28439 \end_layout
28440
28441 \begin_layout Description
28442 phantomtext Text color for phantom insets
28443 \end_layout
28444
28445 \begin_layout Description
28446 preview The color used for previews
28447 \end_layout
28448
28449 \begin_layout Description
28450 previewframe Preview frame color
28451 \end_layout
28452
28453 \begin_layout Description
28454 regexpframe Color for regexp frame
28455 \end_layout
28456
28457 \begin_layout Description
28458 selection Background color of selected text
28459 \end_layout
28460
28461 \begin_layout Description
28462 selectiontext Foreground color of selected text
28463 \end_layout
28464
28465 \begin_layout Description
28466 shadedbg Background color of shaded box
28467 \end_layout
28468
28469 \begin_layout Description
28470 special Special chars text color
28471 \end_layout
28472
28473 \begin_layout Description
28474 tabularline Table line color
28475 \end_layout
28476
28477 \begin_layout Description
28478 tabularonoffline Table line color
28479 \end_layout
28480
28481 \begin_layout Description
28482 urllabel Label color for URL insets
28483 \end_layout
28484
28485 \begin_layout Description
28486 urltext Color for URL inset text
28487 \end_layout
28488
28489 \end_body
28490 \end_document