]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Implement auto-nesting.
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \end_header
134
135 \begin_body
136
137 \begin_layout Title
138 Customizing \SpecialChar LyX
139 : Features for the Advanced User
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 If you have comments or error corrections, please send them to the \SpecialChar LyX
151  Documentatio
152 n mailing list, 
153 \begin_inset CommandInset href
154 LatexCommand href
155 target "lyx-docs@lists.lyx.org"
156 type "mailto:"
157 literal "false"
158
159 \end_inset
160
161 .
162  Include 
163 \begin_inset Quotes eld
164 \end_inset
165
166 [Customization]
167 \begin_inset Quotes erd
168 \end_inset
169
170  in the subject header, and please cc the current maintainer of this file,
171  Richard Heck <rgheck@comcast.net>.
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184 Version 2.3.x 
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Standard
197 \begin_inset Note Note
198 status open
199
200 \begin_layout Plain Layout
201 Please use change tracking when modifying this document.
202  This makes it easier for our translators to recognize things that have
203  been changed, and it helps the maintainer keep up-to-date with what's been
204  done.
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Chapter
213 Introduction
214 \end_layout
215
216 \begin_layout Standard
217 This manual covers the customization features present in \SpecialChar LyX
218 .
219  In it, we discuss issues like keyboard shortcuts, screen previewing options,
220  printer options, sending commands to \SpecialChar LyX
221  via the \SpecialChar LyX
222  Server, internationalization,
223  installing new \SpecialChar LaTeX
224  classes and \SpecialChar LyX
225  layouts, etc.
226  We can't possibly hope to touch on everything you can change—our developers
227  add new features faster than we can document them—but we will explain the
228  most common customizations and hopefully point you in the right direction
229  for some of the more obscure ones.
230 \end_layout
231
232 \begin_layout Standard
233 \begin_inset Branch OutDated
234 inverted 0
235 status collapsed
236
237 \begin_layout Standard
238 Information from previous versions of this document that now seems to be
239  outdated is contained in the OutDated branch of this document.
240  By default, this information will not appear in the \SpecialChar LaTeX
241  output.
242 \end_layout
243
244 \end_inset
245
246
247 \end_layout
248
249 \begin_layout Chapter
250 \SpecialChar LyX
251  configuration files
252 \end_layout
253
254 \begin_layout Standard
255 This chapter aims to help you to find your way through the \SpecialChar LyX
256  configuration
257  files.
258  Before continuing to read this chapter, you should find out where your
259  \SpecialChar LyX
260  library and user directories are by using 
261 \begin_inset Flex Noun
262 status collapsed
263
264 \begin_layout Plain Layout
265 Help\SpecialChar menuseparator
266 About
267 \begin_inset space ~
268 \end_inset
269
270 LyX
271 \end_layout
272
273 \end_inset
274
275 .
276  The library directory is the place where \SpecialChar LyX
277  places its system-wide configuration
278  files; the user directory is where you can place your modified versions.
279  We will call the former 
280 \begin_inset Flex Code
281 status collapsed
282
283 \begin_layout Plain Layout
284 LyXDir
285 \end_layout
286
287 \end_inset
288
289  and the latter 
290 \begin_inset Flex Noun
291 status collapsed
292
293 \begin_layout Plain Layout
294 UserDir
295 \end_layout
296
297 \end_inset
298
299  in the remainder of this document.
300  
301 \end_layout
302
303 \begin_layout Section
304 What's in 
305 \begin_inset Flex Code
306 status collapsed
307
308 \begin_layout Plain Layout
309 LyXDir
310 \end_layout
311
312 \end_inset
313
314 ?
315 \end_layout
316
317 \begin_layout Standard
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327  and its sub-directories contain a number of files and that can be used
328  to customize \SpecialChar LyX
329 's behavior.
330  You can change many of these files from within \SpecialChar LyX
331  itself through the 
332 \begin_inset Flex Noun
333 status collapsed
334
335 \begin_layout Plain Layout
336 Tools\SpecialChar menuseparator
337 Preferences
338 \end_layout
339
340 \end_inset
341
342  dialog.
343  Most customization that you will want to do in \SpecialChar LyX
344  is possible through this
345  dialog.
346  However, many other inner aspects of \SpecialChar LyX
347  can be customized by modifying the
348  files in 
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358 .
359  These files fall in different categories, described in the following subsection
360 s.
361 \end_layout
362
363 \begin_layout Subsection
364 Automatically generated files
365 \end_layout
366
367 \begin_layout Standard
368 The files, which are to be found in 
369 \begin_inset Flex Noun
370 status collapsed
371
372 \begin_layout Plain Layout
373 UserDir
374 \end_layout
375
376 \end_inset
377
378 , are generated when you configure \SpecialChar LyX
379 .
380  They contain various default values that are guessed by inspection.
381  In general, it is not a good idea to modify them, since they might be overwritt
382 en at any time.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  contains defaults for various commands.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  contains the list of packages that have been recognized by \SpecialChar LyX
411 .
412  It is currently unused by the \SpecialChar LyX
413  program itself, but the information extracted,
414  and more, is made available with 
415 \begin_inset Flex Noun
416 status collapsed
417
418 \begin_layout Plain Layout
419 Help\SpecialChar menuseparator
420 \SpecialChar LaTeX
421
422 \begin_inset space ~
423 \end_inset
424
425 Configuration
426 \end_layout
427
428 \end_inset
429
430 .
431 \end_layout
432
433 \begin_layout Labeling
434 \labelwidthstring 00.00.0000
435 \begin_inset Flex Code
436 status collapsed
437
438 \begin_layout Plain Layout
439 textclass.lst
440 \end_layout
441
442 \end_inset
443
444  the list of text classes that have been found in your 
445 \begin_inset Flex Code
446 status collapsed
447
448 \begin_layout Plain Layout
449 layout/
450 \end_layout
451
452 \end_inset
453
454  directories, along with the associated \SpecialChar LaTeX
455  document class and their description.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 lyxmodules.lst
465 \end_layout
466
467 \end_inset
468
469  the list of layout modules found in your 
470 \begin_inset Flex Code
471 status collapsed
472
473 \begin_layout Plain Layout
474 layout/
475 \end_layout
476
477 \end_inset
478
479  directories
480 \end_layout
481
482 \begin_layout Labeling
483 \labelwidthstring 00.00.0000
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 *files.lst
489 \end_layout
490
491 \end_inset
492
493  lists of various sorts of \SpecialChar LaTeX
494 -related files found on your system
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 doc/\SpecialChar LaTeX
504 Config.lyx
505 \end_layout
506
507 \end_inset
508
509  is automatically generated during configuration from the file 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 \SpecialChar LaTeX
515 Config.lyx.in
516 \end_layout
517
518 \end_inset
519
520 .
521  It contains information on your \SpecialChar LaTeX
522  configuration.
523 \end_layout
524
525 \begin_layout Subsection
526 Directories
527 \end_layout
528
529 \begin_layout Standard
530 These directories are duplicated between 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 LyXDir
536 \end_layout
537
538 \end_inset
539
540  and 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 UserDir
546 \end_layout
547
548 \end_inset
549
550 .
551  If a particular files exists in both places, the one in 
552 \begin_inset Flex Code
553 status collapsed
554
555 \begin_layout Plain Layout
556 UserDir
557 \end_layout
558
559 \end_inset
560
561  will be used.
562 \end_layout
563
564 \begin_layout Labeling
565 \labelwidthstring 00.00.0000
566 \begin_inset Flex Code
567 status collapsed
568
569 \begin_layout Plain Layout
570 bind/
571 \end_layout
572
573 \end_inset
574
575  this directory contains files with the extension 
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 .bind
581 \end_layout
582
583 \end_inset
584
585  that define the keybindings used in \SpecialChar LyX
586 .
587  If there exists an internationalized version of the bind file named 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 $LANG_xxx.bind
593 \end_layout
594
595 \end_inset
596
597 , that will be used first.
598 \end_layout
599
600 \begin_layout Labeling
601 \labelwidthstring 00.00.0000
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 citeengines/
607 \end_layout
608
609 \end_inset
610
611  contains files with the extension 
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 .citeengine
617 \end_layout
618
619 \end_inset
620
621  which define the diverse citation possibilities (natbib, biblatex etc.).
622  See 
623 \begin_inset CommandInset ref
624 LatexCommand ref
625 reference "subsec:Cite-Engine-Files"
626 plural "false"
627 caps "false"
628 noprefix "false"
629
630 \end_inset
631
632  for details.
633 \end_layout
634
635 \begin_layout Labeling
636 \labelwidthstring 00.00.0000
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 clipart/
642 \end_layout
643
644 \end_inset
645
646  contains graphics files that can be included in documents.
647  
648 \end_layout
649
650 \begin_layout Labeling
651 \labelwidthstring 00.00.0000
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656 doc/
657 \end_layout
658
659 \end_inset
660
661  contains \SpecialChar LyX
662  documentation files (including the one you are currently reading).
663  The file 
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 \SpecialChar LaTeX
669 Config.lyx
670 \end_layout
671
672 \end_inset
673
674  deserves special attention, as noted above.
675  The internationalized help docs are in subdirectories 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 doc/xx
681 \end_layout
682
683 \end_inset
684
685  where 
686 \begin_inset Quotes eld
687 \end_inset
688
689 xx
690 \begin_inset Quotes erd
691 \end_inset
692
693  is the ISO language code.
694  See 
695 \begin_inset CommandInset ref
696 LatexCommand ref
697 reference "cha:Internationalizing-LyX"
698
699 \end_inset
700
701  for details.
702 \end_layout
703
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
707 status collapsed
708
709 \begin_layout Plain Layout
710 examples/
711 \end_layout
712
713 \end_inset
714
715  contains example files that explain how to use some features.
716  In the file browser, press the 
717 \begin_inset Flex Noun
718 status collapsed
719
720 \begin_layout Plain Layout
721 Examples
722 \end_layout
723
724 \end_inset
725
726  button to get there.
727 \end_layout
728
729 \begin_layout Labeling
730 \labelwidthstring 00.00.0000
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 images/
736 \end_layout
737
738 \end_inset
739
740  contains image files that are used by the 
741 \begin_inset Flex Noun
742 status collapsed
743
744 \begin_layout Plain Layout
745 Document
746 \end_layout
747
748 \end_inset
749
750  dialog.
751  In addition, it also contains the individual icons used in the toolbar
752  and the banners that can be shown when \SpecialChar LyX
753  is launched.
754 \end_layout
755
756 \begin_layout Labeling
757 \labelwidthstring 00.00.0000
758 \begin_inset Flex Code
759 status collapsed
760
761 \begin_layout Plain Layout
762 kbd/
763 \end_layout
764
765 \end_inset
766
767  contains keyboard keymapping files.
768  See 
769 \begin_inset CommandInset ref
770 LatexCommand ref
771 reference "sec:International-Keymap-Stuff"
772
773 \end_inset
774
775  for details.
776 \end_layout
777
778 \begin_layout Labeling
779 \labelwidthstring 00.00.0000
780 \begin_inset Flex Code
781 status collapsed
782
783 \begin_layout Plain Layout
784 layouts/
785 \end_layout
786
787 \end_inset
788
789  contains the text class and module files described in 
790 \begin_inset CommandInset ref
791 LatexCommand ref
792 reference "cha:Installing-New-Document"
793
794 \end_inset
795
796 .
797 \end_layout
798
799 \begin_layout Labeling
800 \labelwidthstring 00.00.0000
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 lyx2lyx
806 \end_layout
807
808 \end_inset
809
810  contains the 
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 lyx2lyx
816 \end_layout
817
818 \end_inset
819
820  Python scripts used to convert between \SpecialChar LyX
821  versions.
822  These can be run from the command line if, say, you want to batch-convert
823  files.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 scripts/
833 \end_layout
834
835 \end_inset
836
837  contains some files that demonstrate the capabilities of the 
838 \begin_inset Flex Noun
839 status collapsed
840
841 \begin_layout Plain Layout
842 External
843 \begin_inset space ~
844 \end_inset
845
846 Template
847 \end_layout
848
849 \end_inset
850
851  feature.
852  Also contains some scripts used by \SpecialChar LyX
853  itself.
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 templates/
863 \end_layout
864
865 \end_inset
866
867  contains the standard \SpecialChar LyX
868  template files described in 
869 \begin_inset CommandInset ref
870 LatexCommand ref
871 reference "subsec:Creating-Templates"
872
873 \end_inset
874
875 .
876 \end_layout
877
878 \begin_layout Labeling
879 \labelwidthstring 00.00.0000
880 \begin_inset Flex Code
881 status collapsed
882
883 \begin_layout Plain Layout
884 ui/
885 \end_layout
886
887 \end_inset
888
889  contains files with the extension 
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 .ui
895 \end_layout
896
897 \end_inset
898
899  that define the user interface to \SpecialChar LyX
900 .
901  That is, the files define which items appear in which menus and the items
902  appearing on the toolbar.
903 \end_layout
904
905 \begin_layout Labeling
906 \labelwidthstring 00.00.0000
907 \begin_inset Flex Code
908 status collapsed
909
910 \begin_layout Plain Layout
911 xtemplates/
912 \end_layout
913
914 \end_inset
915
916  contains files with the extension 
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 .xtemplate
922 \end_layout
923
924 \end_inset
925
926  which define the templates for the insertion of external material to a
927  \SpecialChar LyX
928  document; see 
929 \begin_inset CommandInset ref
930 LatexCommand ref
931 reference "chap:Including-External-Material"
932
933 \end_inset
934
935 .
936 \end_layout
937
938 \begin_layout Subsection
939 Files you don't want to modify
940 \end_layout
941
942 \begin_layout Standard
943 These files are used internally by \SpecialChar LyX
944  and you generally do not need to modify
945  them unless you are a developer.
946 \end_layout
947
948 \begin_layout Labeling
949 \labelwidthstring 00.00.0000
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954 CREDITS
955 \end_layout
956
957 \end_inset
958
959  this file contains the list of \SpecialChar LyX
960  developers.
961  The contents are displayed with the menu entry 
962 \begin_inset Flex Noun
963 status collapsed
964
965 \begin_layout Plain Layout
966 Help\SpecialChar menuseparator
967 About
968 \begin_inset space ~
969 \end_inset
970
971 LyX
972 \end_layout
973
974 \end_inset
975
976 .
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 chkconfig.ltx
986 \end_layout
987
988 \end_inset
989
990  this is a \SpecialChar LaTeX
991  script used during the configuration process.
992  Do not run directly.
993 \end_layout
994
995 \begin_layout Labeling
996 \labelwidthstring 00.00.0000
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 configure.py
1002 \end_layout
1003
1004 \end_inset
1005
1006  this is a Python script that is used to re-configure \SpecialChar LyX
1007 .
1008  It creates configuration files in the directory it was run from.
1009 \end_layout
1010
1011 \begin_layout Subsection
1012 Other files needing a line or two
1013 \end_layout
1014
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 encodings
1022 \end_layout
1023
1024 \end_inset
1025
1026  this contains tables describing how different character encodings can be
1027  mapped to Unicode
1028 \end_layout
1029
1030 \begin_layout Labeling
1031 \labelwidthstring 00.00.0000
1032 \begin_inset Flex Code
1033 status collapsed
1034
1035 \begin_layout Plain Layout
1036 languages
1037 \end_layout
1038
1039 \end_inset
1040
1041  this file contains a list of all the languages currently supported by \SpecialChar LyX
1042 .
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 latexfonts
1052 \end_layout
1053
1054 \end_inset
1055
1056  contains information about the supported fonts.
1057 \end_layout
1058
1059 \begin_layout Labeling
1060 \labelwidthstring 00.00.0000
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065 layouttranslations
1066 \end_layout
1067
1068 \end_inset
1069
1070  this file contains translations for internationalized paragraph styles
1071  (see 
1072 \begin_inset CommandInset ref
1073 LatexCommand ref
1074 reference "subsec:I18n"
1075
1076 \end_inset
1077
1078 ).
1079 \end_layout
1080
1081 \begin_layout Labeling
1082 \labelwidthstring 00.00.0000
1083 \begin_inset Flex Code
1084 status collapsed
1085
1086 \begin_layout Plain Layout
1087 unicodesymbols
1088 \end_layout
1089
1090 \end_inset
1091
1092  this file contains information about Unicode-encoded glyphs and the way
1093  they are supported by \SpecialChar LyX
1094  via \SpecialChar LaTeX
1095 .
1096 \end_layout
1097
1098 \begin_layout Section
1099 Your local configuration directory
1100 \end_layout
1101
1102 \begin_layout Standard
1103 Even if you are using \SpecialChar LyX
1104  as an unprivileged user, you might want to change
1105  \SpecialChar LyX
1106  configuration for your own use.
1107  The 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 UserDir
1113 \end_layout
1114
1115 \end_inset
1116
1117  directory contains all your personal configuration files.
1118  This is the directory described as 
1119 \begin_inset Quotes eld
1120 \end_inset
1121
1122 user directory
1123 \begin_inset Quotes erd
1124 \end_inset
1125
1126  in 
1127 \begin_inset Flex Noun
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 Help\SpecialChar menuseparator
1132 About
1133 \begin_inset space ~
1134 \end_inset
1135
1136 LyX
1137 \end_layout
1138
1139 \end_inset
1140
1141 .
1142  This directory is used as a mirror of 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 LyXDir
1148 \end_layout
1149
1150 \end_inset
1151
1152 , which means that every file in 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 UserDir
1158 \end_layout
1159
1160 \end_inset
1161
1162  is a replacement for the corresponding file in 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 LyXDir
1168 \end_layout
1169
1170 \end_inset
1171
1172 .
1173  Any configuration file described in the above sections can be placed either
1174  in the system-wide directory, in which case it will affect all users, or
1175  in your local directory for your own use.
1176 \end_layout
1177
1178 \begin_layout Standard
1179 To make things clearer, let's provide a few examples:
1180 \end_layout
1181
1182 \begin_layout Itemize
1183 The preferences set in the 
1184 \begin_inset Flex Noun
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 Tools\SpecialChar menuseparator
1189 Preferences
1190 \end_layout
1191
1192 \end_inset
1193
1194  dialog are saved to a file 
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 preferences
1200 \end_layout
1201
1202 \end_inset
1203
1204  in 
1205 \begin_inset Flex Code
1206 status collapsed
1207
1208 \begin_layout Plain Layout
1209 UserDir
1210 \end_layout
1211
1212 \end_inset
1213
1214 .
1215 \end_layout
1216
1217 \begin_layout Itemize
1218 When you reconfigure using 
1219 \begin_inset Flex Noun
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 Tools\SpecialChar menuseparator
1224 Reconfigure
1225 \end_layout
1226
1227 \end_inset
1228
1229 , \SpecialChar LyX
1230  runs the 
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 configure.py
1236 \end_layout
1237
1238 \end_inset
1239
1240  script, and the resulting files are written in your local configuration
1241  directory.
1242  This means that any additional text class file that you might have added
1243  in 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 UserDir/layouts
1249 \end_layout
1250
1251 \end_inset
1252
1253  will be added to the list of classes in the 
1254 \begin_inset Flex Noun
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 Document\SpecialChar menuseparator
1259 Settings
1260 \end_layout
1261
1262 \end_inset
1263
1264  dialog.
1265 \end_layout
1266
1267 \begin_layout Itemize
1268 If you get some updated documentation from \SpecialChar LyX
1269  ftp site and cannot install
1270  it because you do not have sysadmin rights on your system, you can just
1271  copy the files in 
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 UserDir/doc/
1277 \end_layout
1278
1279 \end_inset
1280
1281  and the items in the 
1282 \begin_inset Flex Noun
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 Help
1287 \end_layout
1288
1289 \end_inset
1290
1291  menu will open them!
1292 \end_layout
1293
1294 \begin_layout Section
1295 Running \SpecialChar LyX
1296  with multiple configurations
1297 \end_layout
1298
1299 \begin_layout Standard
1300 The configuration freedom of the local configuration directory may not suffice
1301  if you want to have more than one configuration at your disposal.
1302  For example, you may want to be use different key bindings or printer settings
1303  at different times.
1304  You can achieve this by having several such directories.
1305  You then specify which directory to use at run-time.
1306 \end_layout
1307
1308 \begin_layout Standard
1309 Invoking \SpecialChar LyX
1310  with the command line switch 
1311 \begin_inset Flex Code
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 -userdir
1316 \end_layout
1317
1318 \end_inset
1319
1320  
1321 \emph on
1322 <some directory>
1323 \emph default
1324  instructs the program to read the configuration from that directory, and
1325  not from the default directory.
1326  (You can determine the default directory by running \SpecialChar LyX
1327  without the 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 -userdir
1333 \end_layout
1334
1335 \end_inset
1336
1337  switch.) If the specified directory does not exist, \SpecialChar LyX
1338  offers to create it
1339  for you, just like it does for the default directory on the first time
1340  you run the program.
1341  You can modify the configuration options in this additional user directory
1342  exactly as you would for the default directory.
1343  These directories are completely independent (but read on).
1344  Note that setting the environment variable 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349 LYX_USERDIR_VER
1350 \end_layout
1351
1352 \end_inset
1353
1354  to some value has exactly the same effect.
1355 \end_layout
1356
1357 \begin_layout Standard
1358 Having several configurations also requires more maintenance: if you want
1359  to add a new layout to 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 NewUserDir/layouts
1365 \end_layout
1366
1367 \end_inset
1368
1369  which you want available from all your configurations, you must add it
1370  to each directory separately.
1371  You can avoid this with the following trick: after \SpecialChar LyX
1372  creates the additional
1373  directory, most of the subdirectories (see above) are empty.
1374  If you want the new configuration to mirror an existing one, replace the
1375  empty subdirectory with a symbolic link to the matching subdirectory in
1376  the existing configuration.
1377  Take care with the 
1378 \begin_inset Flex Code
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 doc/
1383 \end_layout
1384
1385 \end_inset
1386
1387  subdirectory, however, since it contains a file written by the configuration
1388  script (also accessible through 
1389 \begin_inset Flex Noun
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 Tools\SpecialChar menuseparator
1394 Reconfigure
1395 \end_layout
1396
1397 \end_inset
1398
1399 ) which is configuration-specific.
1400 \end_layout
1401
1402 \begin_layout Chapter
1403 The Preferences dialog
1404 \end_layout
1405
1406 \begin_layout Standard
1407 All options of the preferences dialog are described in the Appendix 
1408 \emph on
1409 The Preferences Dialog
1410 \emph default
1411  in the 
1412 \emph on
1413 User's Guide
1414 \emph default
1415 .
1416  For some options you might find here more details.
1417 \end_layout
1418
1419 \begin_layout Section
1420 Formats
1421 \begin_inset CommandInset label
1422 LatexCommand label
1423 name "sec:Formats"
1424
1425 \end_inset
1426
1427
1428 \end_layout
1429
1430 \begin_layout Standard
1431 The first step is to define your file formats if they are not already defined.
1432  To do so, open the 
1433 \begin_inset Flex Noun
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437 Tools\SpecialChar menuseparator
1438 Preferences
1439 \end_layout
1440
1441 \end_inset
1442
1443  dialog.
1444  Under 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 File Handling\SpecialChar menuseparator
1450 File formats
1451 \end_layout
1452
1453 \end_inset
1454
1455  press the 
1456 \begin_inset Flex Noun
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 New
1461 \end_layout
1462
1463 \end_inset
1464
1465  button to define your new format.
1466  The 
1467 \begin_inset Flex Noun
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 Format
1472 \end_layout
1473
1474 \end_inset
1475
1476  field contains the name used to identify the format in the GUI.
1477  The 
1478 \begin_inset Flex Noun
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 Short Name
1483 \end_layout
1484
1485 \end_inset
1486
1487  is used to identify the format internally.
1488  You will also need to enter a file extension.
1489  These are all required.
1490  The optional 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Shortcut
1496 \end_layout
1497
1498 \end_inset
1499
1500  field is used to provide a keyboard shortcut on the menus.
1501  (For example, pressing 
1502 \begin_inset Flex Noun
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 Ctrl+D
1507 \end_layout
1508
1509 \end_inset
1510
1511  will 
1512 \begin_inset Flex Noun
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 Document\SpecialChar menuseparator
1517 View (Other Formats)\SpecialChar menuseparator
1518 DVI
1519 \end_layout
1520
1521 \end_inset
1522
1523 .) 
1524 \end_layout
1525
1526 \begin_layout Standard
1527 A Format can have a 
1528 \begin_inset Flex Noun
1529 status collapsed
1530
1531 \begin_layout Plain Layout
1532 Viewer
1533 \end_layout
1534
1535 \end_inset
1536
1537  and an 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Editor
1543 \end_layout
1544
1545 \end_inset
1546
1547  associated with it.
1548  For example, you might want to use 
1549 \begin_inset Flex Noun
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 Ghostview
1554 \end_layout
1555
1556 \end_inset
1557
1558  to view PostScript files.
1559  You can enter the command needed to start the program in the corresponding
1560  fields.
1561  In defining this command, you can use the four variables listed in the
1562  next section.
1563  The viewer is launched when you view an image in \SpecialChar LyX
1564  or use the 
1565 \begin_inset Flex Noun
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 Document\SpecialChar menuseparator
1570 View
1571 \end_layout
1572
1573 \end_inset
1574
1575  menu.
1576  The editor is for example launched when you right-click on an image and
1577  choose 
1578 \begin_inset Flex Noun
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 Edit externally
1583 \end_layout
1584
1585 \end_inset
1586
1587  in the appearing context menu.
1588 \end_layout
1589
1590 \begin_layout Standard
1591 The 
1592 \begin_inset Flex Noun
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 MIME
1597 \end_layout
1598
1599 \end_inset
1600
1601  type of a format is optional, but if it is specified, it must be unique
1602  across all formats.
1603  It is used to detect files of this format from the file contents.
1604  For some important file formats there is no MIME type officially registered
1605  with the 
1606 \begin_inset CommandInset href
1607 LatexCommand href
1608 name "IANA"
1609 target "http://www.iana.org/assignments/media-types/"
1610 literal "false"
1611
1612 \end_inset
1613
1614 .
1615  Therefore \SpecialChar LyX
1616  uses the extended list of MIME types as specified by 
1617 \begin_inset CommandInset href
1618 LatexCommand href
1619 name "freedesktop.org"
1620 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1621 literal "false"
1622
1623 \end_inset
1624
1625 .
1626 \end_layout
1627
1628 \begin_layout Standard
1629 The 
1630 \begin_inset Flex Noun
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 Document format
1635 \end_layout
1636
1637 \end_inset
1638
1639  option tells \SpecialChar LyX
1640  that a format is suitable for document export.
1641  If this is set and if a suitable conversion route exists (see 
1642 \begin_inset CommandInset ref
1643 LatexCommand ref
1644 reference "sec:Converters"
1645
1646 \end_inset
1647
1648 ), the format will appear in the 
1649 \begin_inset Flex Noun
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 File\SpecialChar menuseparator
1654 Export
1655 \end_layout
1656
1657 \end_inset
1658
1659  menu.
1660  The format will also appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 Document\SpecialChar menuseparator
1666 View
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu if a viewer is specified for the format.
1672  Pure image formats, such as 
1673 \begin_inset Flex Code
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 png
1678 \end_layout
1679
1680 \end_inset
1681
1682 , should not use this option.
1683  Formats that can both represent vector graphics and documents like 
1684 \begin_inset Flex Code
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 pdf
1689 \end_layout
1690
1691 \end_inset
1692
1693  should use it.
1694 \end_layout
1695
1696 \begin_layout Standard
1697 The option 
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Vector graphics format
1703 \end_layout
1704
1705 \end_inset
1706
1707  tells \SpecialChar LyX
1708  that a format can contain vector graphics.
1709  This information is used to determine the target format of included graphics
1710  for 
1711 \begin_inset Flex Noun
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 pdflatex
1716 \end_layout
1717
1718 \end_inset
1719
1720  export.
1721  Included graphics may need to be converted to either 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 pdf
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 png
1737 \end_layout
1738
1739 \end_inset
1740
1741 , or 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 jpg
1747 \end_layout
1748
1749 \end_inset
1750
1751 , since 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 pdflatex
1757 \end_layout
1758
1759 \end_inset
1760
1761  cannot handle other image formats.
1762  If an included graphic is not already in 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 pdf
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Flex Noun
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 png
1778 \end_layout
1779
1780 \end_inset
1781
1782 , or 
1783 \begin_inset Flex Noun
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 jpg
1788 \end_layout
1789
1790 \end_inset
1791
1792  format, it is converted to 
1793 \begin_inset Flex Noun
1794 status collapsed
1795
1796 \begin_layout Plain Layout
1797 pdf
1798 \end_layout
1799
1800 \end_inset
1801
1802  if the vector format option is set, and otherwise to 
1803 \begin_inset Flex Noun
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 png
1808 \end_layout
1809
1810 \end_inset
1811
1812 .
1813 \end_layout
1814
1815 \begin_layout Section
1816 Copiers
1817 \end_layout
1818
1819 \begin_layout Standard
1820 Since all conversions from one format to another take place in \SpecialChar LyX
1821 's temporary
1822  directory, it is sometimes necessary to modify a file before copying it
1823  to the temporary directory in order that the conversion may be performed.
1824 \begin_inset Foot
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 For example, the file may refer to other files—images, for example—using
1829  relative file names, and these may become invalid when the file is copied
1830  to the temporary directory.
1831 \end_layout
1832
1833 \end_inset
1834
1835  This is done by a Copier: It copies a file to (or from) the temporary directory
1836  and may modify it in the process.
1837 \end_layout
1838
1839 \begin_layout Standard
1840 The definitions of the copiers may use eight variables:
1841 \end_layout
1842
1843 \begin_layout Labeling
1844 \labelwidthstring 00.00.0000
1845 \begin_inset Flex Code
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 $$s
1850 \end_layout
1851
1852 \end_inset
1853
1854  The \SpecialChar LyX
1855  system directory (e.
1856 \begin_inset space \thinspace{}
1857 \end_inset
1858
1859 g.
1860 \begin_inset space \space{}
1861 \end_inset
1862
1863
1864 \begin_inset Flex Noun
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 /usr/share/lyx
1869 \end_layout
1870
1871 \end_inset
1872
1873 ).
1874 \end_layout
1875
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 $$i
1883 \end_layout
1884
1885 \end_inset
1886
1887  The input file
1888 \end_layout
1889
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 $$o
1897 \end_layout
1898
1899 \end_inset
1900
1901  The output file
1902 \end_layout
1903
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Flex Code
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 $$b
1911 \end_layout
1912
1913 \end_inset
1914
1915  The base name (without filename extension) in the \SpecialChar LyX
1916  temporary directory
1917 \end_layout
1918
1919 \begin_layout Labeling
1920 \labelwidthstring 00.00.0000
1921 \begin_inset Flex Code
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 $$p
1926 \end_layout
1927
1928 \end_inset
1929
1930  The full directory path of the \SpecialChar LyX
1931  temporary directory
1932 \end_layout
1933
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 $$r
1941 \end_layout
1942
1943 \end_inset
1944
1945  The full pathname to the original \SpecialChar LyX
1946  file being processed
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$f
1956 \end_layout
1957
1958 \end_inset
1959
1960  The filename (without any directory path) of the \SpecialChar LyX
1961  file.
1962 \end_layout
1963
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 $$l
1971 \end_layout
1972
1973 \end_inset
1974
1975  The `\SpecialChar LaTeX
1976  name'
1977 \end_layout
1978
1979 \begin_layout Standard
1980 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1981 's 
1982 \series bold
1983
1984 \backslash
1985 include
1986 \series default
1987  command.
1988  It is relevant only when exporting files suitable for such inclusion.
1989 \end_layout
1990
1991 \begin_layout Standard
1992 Copiers can be used to do almost anything with output files.
1993  For example, suppose you want generated pdf files to be copied to a special
1994  directory, 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 /home/you/pdf/
2000 \end_layout
2001
2002 \end_inset
2003
2004 .
2005  Then you could write a shell script such as this one:
2006 \end_layout
2007
2008 \begin_layout Standard
2009 \begin_inset listings
2010 inline false
2011 status open
2012
2013 \begin_layout Plain Layout
2014
2015 #!/bin/bash
2016 \end_layout
2017
2018 \begin_layout Plain Layout
2019
2020 FROMFILE=$1
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 TOFILE=`basename $2`
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 cp $FROMFILE /home/you/pdf/$TOFILE
2031 \end_layout
2032
2033 \end_inset
2034
2035 Save it in your local \SpecialChar LyX
2036  directory—say, 
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 /home/you/.lyx/scripts/pdfcopier.sh
2042 \end_layout
2043
2044 \end_inset
2045
2046 —and make it executable, if you need to do so on your platform.
2047  Then, in the 
2048 \begin_inset Flex Noun
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Tools\SpecialChar menuseparator
2053 Preferences
2054 \end_layout
2055
2056 \end_inset
2057
2058  dialog, select under 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 File Handling\SpecialChar menuseparator
2064 File formats
2065 \end_layout
2066
2067 \end_inset
2068
2069  the 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 PDF(pdflatex)
2075 \end_layout
2076
2077 \end_inset
2078
2079  format—or one of the other pdf formats—and enter 
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 pdfcopier.sh $$i $$o
2085 \end_layout
2086
2087 \end_inset
2088
2089  into the 
2090 \begin_inset Flex Noun
2091 status collapsed
2092
2093 \begin_layout Plain Layout
2094 Copier
2095 \end_layout
2096
2097 \end_inset
2098
2099  field.
2100  
2101 \end_layout
2102
2103 \begin_layout Standard
2104 Copiers are used by \SpecialChar LyX
2105  in various of its own conversions.
2106  For example, if appropriate programs are found, \SpecialChar LyX
2107  will automatically install
2108  copiers for the 
2109 \begin_inset Flex Noun
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 HTML
2114 \end_layout
2115
2116 \end_inset
2117
2118  and 
2119 \begin_inset Flex Noun
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 HTML
2124 \begin_inset space ~
2125 \end_inset
2126
2127 (MS Word)
2128 \end_layout
2129
2130 \end_inset
2131
2132  formats.
2133  When these formats are exported, the copier sees that not just the main
2134  HTML file but various associated files (style files, images, etc.) are also
2135  copied.
2136  All these files are written to a subdirectory of the directory in which
2137  the original \SpecialChar LyX
2138  file was found.
2139 \begin_inset Foot
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 This copier can be customized.
2144  The optional 
2145 \begin_inset Quotes eld
2146 \end_inset
2147
2148 -e
2149 \begin_inset Quotes erd
2150 \end_inset
2151
2152  argument takes a comma-separated list of extensions to be copied; if it
2153  is omitted, all files will be copied.
2154  The 
2155 \begin_inset Quotes eld
2156 \end_inset
2157
2158 -t
2159 \begin_inset Quotes erd
2160 \end_inset
2161
2162  argument determines the extension added to the generated directory.
2163  By default, it is 
2164 \begin_inset Quotes eld
2165 \end_inset
2166
2167
2168 \begin_inset Flex Noun
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 LyXconv
2173 \end_layout
2174
2175 \end_inset
2176
2177
2178 \begin_inset Quotes erd
2179 \end_inset
2180
2181 , so HTML generated from 
2182 \begin_inset Flex Noun
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 /path/to/filename.lyx
2187 \end_layout
2188
2189 \end_inset
2190
2191  will end up in 
2192 \begin_inset Flex Noun
2193 status collapsed
2194
2195 \begin_layout Plain Layout
2196 /path/to/filename.html.LyXconv
2197 \end_layout
2198
2199 \end_inset
2200
2201 .
2202  
2203 \end_layout
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \begin_layout Section
2211 Converters
2212 \begin_inset CommandInset label
2213 LatexCommand label
2214 name "sec:Converters"
2215
2216 \end_inset
2217
2218
2219 \end_layout
2220
2221 \begin_layout Standard
2222 You can define your own Converters to convert files between different formats.
2223  This is done in the 
2224 \begin_inset Flex Noun
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 Tools\SpecialChar menuseparator
2229 Preferences\SpecialChar menuseparator
2230 File Handling\SpecialChar menuseparator
2231 Converters
2232 \end_layout
2233
2234 \end_inset
2235
2236  dialog.
2237 \end_layout
2238
2239 \begin_layout Standard
2240 To define a new converter, select the 
2241 \begin_inset Flex Noun
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 From
2246 \begin_inset space ~
2247 \end_inset
2248
2249 format
2250 \end_layout
2251
2252 \end_inset
2253
2254  and 
2255 \begin_inset Flex Noun
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 To
2260 \begin_inset space ~
2261 \end_inset
2262
2263 format
2264 \end_layout
2265
2266 \end_inset
2267
2268  from the drop-down lists, enter the command needed for the conversion,
2269  and then press the 
2270 \begin_inset Flex Noun
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 Add
2275 \end_layout
2276
2277 \end_inset
2278
2279  button.
2280  Several variables can be used in the definition of converters:
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$s
2290 \end_layout
2291
2292 \end_inset
2293
2294  The \SpecialChar LyX
2295  system directory
2296 \end_layout
2297
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 $$i
2305 \end_layout
2306
2307 \end_inset
2308
2309  The input file
2310 \end_layout
2311
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 $$o
2319 \end_layout
2320
2321 \end_inset
2322
2323  The output file
2324 \end_layout
2325
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332 $$b
2333 \end_layout
2334
2335 \end_inset
2336
2337  The base filename of the input file (i.
2338 \begin_inset space \thinspace{}
2339 \end_inset
2340
2341 g., without the extension)
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 $$p
2351 \end_layout
2352
2353 \end_inset
2354
2355  The path to the input file
2356 \end_layout
2357
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 $$r
2365 \end_layout
2366
2367 \end_inset
2368
2369  The path to the original input file (this is different from $$p when a
2370  chain of converters is called)
2371 \end_layout
2372
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Flex Code
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379 $$e
2380 \end_layout
2381
2382 \end_inset
2383
2384  The iconv name for the encoding of the document.
2385 \end_layout
2386
2387 \begin_layout Standard
2388 In the 
2389 \begin_inset Flex Noun
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393 Extra
2394 \begin_inset space ~
2395 \end_inset
2396
2397 Flag
2398 \end_layout
2399
2400 \end_inset
2401
2402  field you can enter the following flags, separated by commas:
2403 \end_layout
2404
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 latex
2412 \end_layout
2413
2414 \end_inset
2415
2416  This converter runs some form of \SpecialChar LaTeX
2417 .
2418  This will make \SpecialChar LyX
2419 's \SpecialChar LaTeX
2420  error logs available.
2421 \end_layout
2422
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 needaux
2430 \end_layout
2431
2432 \end_inset
2433
2434  Needs the \SpecialChar LaTeX
2435  
2436 \begin_inset Flex Noun
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 .aux
2441 \end_layout
2442
2443 \end_inset
2444
2445  file for the conversion.
2446 \end_layout
2447
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 nice
2455 \end_layout
2456
2457 \end_inset
2458
2459  Needs a 
2460 \begin_inset Quotes eld
2461 \end_inset
2462
2463 nice
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467  file from the backend, which in practice means a \SpecialChar LaTeX
2468  file like the one we
2469  would export, without 
2470 \begin_inset Flex Code
2471 status collapsed
2472
2473 \begin_layout Plain Layout
2474 input@path
2475 \end_layout
2476
2477 \end_inset
2478
2479 .
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 xml
2489 \end_layout
2490
2491 \end_inset
2492
2493  Output is XML.
2494 \end_layout
2495
2496 \begin_layout Standard
2497 The following three flags are not really flags at all because they take
2498  an argument in the 
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 key
2504 \begin_inset space ~
2505 \end_inset
2506
2507 =
2508 \begin_inset space ~
2509 \end_inset
2510
2511 value
2512 \end_layout
2513
2514 \end_inset
2515
2516  format:
2517 \end_layout
2518
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521 \begin_inset Flex Code
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 parselog
2526 \end_layout
2527
2528 \end_inset
2529
2530  If set, the converter's standard error will be redirected to a file 
2531 \begin_inset Flex Code
2532 status collapsed
2533
2534 \begin_layout Plain Layout
2535 infile.out
2536 \end_layout
2537
2538 \end_inset
2539
2540 , and the script given as argument will be run as: 
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 script < infile.out > infile.log
2546 \end_layout
2547
2548 \end_inset
2549
2550 .
2551  The argument may contain 
2552 \begin_inset Flex Code
2553 status collapsed
2554
2555 \begin_layout Plain Layout
2556 $$s
2557 \end_layout
2558
2559 \end_inset
2560
2561 .
2562 \end_layout
2563
2564 \begin_layout Labeling
2565 \labelwidthstring 00.00.0000
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 resultdir
2571 \end_layout
2572
2573 \end_inset
2574
2575  The name of the directory in which the converter will dump the generated
2576  files.
2577  \SpecialChar LyX
2578  will not create this directory, and it does not copy anything into it,
2579  though it will copy this directory to the destination.
2580  The argument may contain 
2581 \begin_inset Flex Code
2582 status collapsed
2583
2584 \begin_layout Plain Layout
2585 $$b
2586 \end_layout
2587
2588 \end_inset
2589
2590 , which will be replaced by the base name of the input and output files,
2591  respectively, when the directory is copied.
2592 \begin_inset Newline newline
2593 \end_inset
2594
2595 Note that resultdir and usetempdir make no sense together.
2596  The latter will be ignored if the former is given.
2597 \end_layout
2598
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 resultfile
2606 \end_layout
2607
2608 \end_inset
2609
2610  Determines the output file name and may, contain 
2611 \begin_inset Flex Code
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 $$b
2616 \end_layout
2617
2618 \end_inset
2619
2620 .
2621  Sensible only with resultdir and optional even then; if not given, it defaults
2622  to `index'.
2623 \end_layout
2624
2625 \begin_layout Standard
2626 None of these last three are presently used in any of the converters that
2627  are installed with \SpecialChar LyX
2628 .
2629  
2630 \end_layout
2631
2632 \begin_layout Standard
2633 You do not have to define converters for all formats between which you want
2634  to convert.
2635  For example, you will note that there is no `\SpecialChar LyX
2636  to PostScript' converter,
2637  but \SpecialChar LyX
2638  will export PostScript.
2639  It does so by first creating a \SpecialChar LaTeX
2640  file (no converter needs to be defined
2641  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2642  to DVI' converter,
2643  and finally converting the resulting DVI file to PostScript.
2644  \SpecialChar LyX
2645  finds such `chains' of converters automatically, and it will always choose
2646  the shortest possible chain.
2647  You can, though, still define multiple conversion methods between file
2648  formats.
2649  For example, the standard \SpecialChar LyX
2650  configuration provides five ways to convert
2651  \SpecialChar LaTeX
2652  to PDF:
2653 \end_layout
2654
2655 \begin_layout Enumerate
2656 Directly, using 
2657 \begin_inset Flex Noun
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 pdflatex
2662 \end_layout
2663
2664 \end_inset
2665
2666
2667 \end_layout
2668
2669 \begin_layout Enumerate
2670 via (DVI and) PostScript, using 
2671 \begin_inset Flex Noun
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 ps2pdf
2676 \end_layout
2677
2678 \end_inset
2679
2680
2681 \end_layout
2682
2683 \begin_layout Enumerate
2684 via DVI, using 
2685 \begin_inset Flex Noun
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 dvipdfm
2690 \end_layout
2691
2692 \end_inset
2693
2694
2695 \end_layout
2696
2697 \begin_layout Enumerate
2698 directly using 
2699 \begin_inset Flex Noun
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 Xe\SpecialChar TeX
2704
2705 \end_layout
2706
2707 \end_inset
2708
2709
2710 \end_layout
2711
2712 \begin_layout Enumerate
2713 directly using 
2714 \begin_inset Flex Noun
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Lua\SpecialChar TeX
2719
2720 \end_layout
2721
2722 \end_inset
2723
2724
2725 \end_layout
2726
2727 \begin_layout Standard
2728 To define such alternate chains, you must define multiple target `file formats',
2729  as described in 
2730 \begin_inset CommandInset ref
2731 LatexCommand ref
2732 reference "sec:Formats"
2733
2734 \end_inset
2735
2736 .
2737  For example, in the standard configuration, the formats named 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 pdf
2743 \end_layout
2744
2745 \end_inset
2746
2747  (for 
2748 \begin_inset Flex Noun
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 ps2pdf
2753 \end_layout
2754
2755 \end_inset
2756
2757 ), 
2758 \begin_inset Flex Noun
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 pdf2
2763 \end_layout
2764
2765 \end_inset
2766
2767  (for 
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 pdflatex
2773 \end_layout
2774
2775 \end_inset
2776
2777 ), 
2778 \begin_inset Flex Noun
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782 pdf3
2783 \end_layout
2784
2785 \end_inset
2786
2787  (for 
2788 \begin_inset Flex Noun
2789 status collapsed
2790
2791 \begin_layout Plain Layout
2792 dvipdfm
2793 \end_layout
2794
2795 \end_inset
2796
2797 ), 
2798 \begin_inset Flex Noun
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 pdf4
2803 \end_layout
2804
2805 \end_inset
2806
2807  (for 
2808 \begin_inset Flex Noun
2809 status collapsed
2810
2811 \begin_layout Plain Layout
2812 Xe\SpecialChar TeX
2813
2814 \end_layout
2815
2816 \end_inset
2817
2818 ), and 
2819 \begin_inset Flex Noun
2820 status collapsed
2821
2822 \begin_layout Plain Layout
2823 pdf5
2824 \end_layout
2825
2826 \end_inset
2827
2828  (for 
2829 \begin_inset Flex Noun
2830 status collapsed
2831
2832 \begin_layout Plain Layout
2833 Lua\SpecialChar TeX
2834
2835 \end_layout
2836
2837 \end_inset
2838
2839 ) are defined, all of which share the extension 
2840 \begin_inset Flex Noun
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 .pdf
2845 \end_layout
2846
2847 \end_inset
2848
2849 , and which correspond to the conversion methods just mentioned.
2850 \end_layout
2851
2852 \begin_layout Chapter
2853 Internationalizing \SpecialChar LyX
2854
2855 \begin_inset CommandInset label
2856 LatexCommand label
2857 name "cha:Internationalizing-LyX"
2858
2859 \end_inset
2860
2861
2862 \end_layout
2863
2864 \begin_layout Standard
2865 \SpecialChar LyX
2866  supports using a translated interface.
2867  Last time we checked, \SpecialChar LyX
2868  provided text in thirty languages.
2869  The language of choice is called your 
2870 \emph on
2871 locale
2872 \emph default
2873 .
2874  (For further reading on locale settings, see also the documentation for
2875  locale that comes with your operating system.
2876  For Linux, the manual page for 
2877 \begin_inset Flex Code
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 locale(5)
2882 \end_layout
2883
2884 \end_inset
2885
2886  could be a good place to start).
2887 \end_layout
2888
2889 \begin_layout Standard
2890 Notice that these translations will work, but do contain a few flaws.
2891  In particular, all dialogs have been designed with the English text in
2892  mind, which means that some of the translated text will be too large to
2893  fit within the space allocated.
2894  This is only a display problem and will not cause any harm.
2895  Also, you will find that some of the translations do not define shortcut
2896  keys for everything.
2897  Sometimes, there are simply not enough free letters to do it.
2898  Other times, the translator just hasn't got around to doing it yet.
2899  Our localization team, which you may wish to join,
2900 \begin_inset Foot
2901 status collapsed
2902
2903 \begin_layout Plain Layout
2904 If you are a fluent speaker of a language other than English, joining these
2905  teams is a great way to give back to the \SpecialChar LyX
2906  community!
2907 \end_layout
2908
2909 \end_inset
2910
2911  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2912 .
2913 \end_layout
2914
2915 \begin_layout Section
2916 Translating \SpecialChar LyX
2917
2918 \end_layout
2919
2920 \begin_layout Subsection
2921 Translating the graphical user interface (text messages).
2922 \end_layout
2923
2924 \begin_layout Standard
2925 \SpecialChar LyX
2926  uses the GNU 
2927 \begin_inset Flex Code
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 gettext
2932 \end_layout
2933
2934 \end_inset
2935
2936  library to handle the internationalization of the interface.
2937  To have \SpecialChar LyX
2938  speak your favorite language in all menus and dialogs, you need
2939  a 
2940 \begin_inset Flex Code
2941 status collapsed
2942
2943 \begin_layout Plain Layout
2944 po
2945 \end_layout
2946
2947 \end_inset
2948
2949 -file for that language.
2950  When this is available, you'll have to generate a 
2951 \begin_inset Flex Code
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 mo
2956 \end_layout
2957
2958 \end_inset
2959
2960 -file from it and install the 
2961 \begin_inset Flex Code
2962 status collapsed
2963
2964 \begin_layout Plain Layout
2965 mo
2966 \end_layout
2967
2968 \end_inset
2969
2970 -file.
2971  The process of doing all of this is explained in the documentation for
2972  GNU 
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 gettext
2978 \end_layout
2979
2980 \end_inset
2981
2982 .
2983  It is possible to do this just for yourself, but if you're going to do
2984  it, you might as well share the results of your labors with the rest of
2985  the \SpecialChar LyX
2986  community.
2987  Send a message to the \SpecialChar LyX
2988  developers' list for more information about how
2989  to proceed.
2990 \end_layout
2991
2992 \begin_layout Standard
2993 In short, this is what you should do (xx denotes the language code):
2994 \end_layout
2995
2996 \begin_layout Itemize
2997 Check out the \SpecialChar LyX
2998  source code.
2999  (See the 
3000 \begin_inset CommandInset href
3001 LatexCommand href
3002 name "information on the web"
3003 target "https://www.lyx.org/HowToUseGIT"
3004 literal "false"
3005
3006 \end_inset
3007
3008 .)
3009 \end_layout
3010
3011 \begin_layout Itemize
3012 Copy the file 
3013 \begin_inset Flex Code
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 lyx.pot
3018 \end_layout
3019
3020 \end_inset
3021
3022  to the folder of the 
3023 \begin_inset Flex Code
3024 status collapsed
3025
3026 \begin_layout Plain Layout
3027 **.po
3028 \end_layout
3029
3030 \end_inset
3031
3032  files.
3033  Then rename it to 
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 xx.po
3039 \end_layout
3040
3041 \end_inset
3042
3043 .
3044  (If 
3045 \begin_inset Flex Code
3046 status collapsed
3047
3048 \begin_layout Plain Layout
3049 lyx.pot
3050 \end_layout
3051
3052 \end_inset
3053
3054  doesn't exist anywhere, it can be remade with the console command 
3055 \begin_inset Flex Code
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059 make lyx.pot
3060 \end_layout
3061
3062 \end_inset
3063
3064  in that directory, or you can use an existing po-file for some other language
3065  as a template).
3066 \end_layout
3067
3068 \begin_layout Itemize
3069 Edit 
3070 \begin_inset Flex Code
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 xx.po
3075 \end_layout
3076
3077 \end_inset
3078
3079 .
3080 \begin_inset Foot
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084 This is just a text file, so it can be edited in any text editor.
3085  But there are also specialized programs that support such editing, such
3086  as 
3087 \family typewriter
3088 Poedit
3089 \family default
3090  (for all platforms) or 
3091 \family typewriter
3092 KBabel
3093 \family default
3094  (for KDE).
3095  
3096 \family typewriter
3097 Emacs
3098 \family default
3099  contains a `mode' for editing 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 po
3105 \end_layout
3106
3107 \end_inset
3108
3109  files, as well, see 
3110 \begin_inset Flex URL
3111 status open
3112
3113 \begin_layout Plain Layout
3114
3115 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3116 \backslash
3117 #PO-Mode
3118 \end_layout
3119
3120 \end_inset
3121
3122 .
3123 \end_layout
3124
3125 \end_inset
3126
3127  For some menu- and widget-labels, there are also shortcut keys that should
3128  be translated.
3129  Those keys are marked after a `|', and should be translated according to
3130  the words and phrases of the language.
3131  You should also fill also out the information at the beginning of the new
3132  
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 po
3138 \end_layout
3139
3140 \end_inset
3141
3142 -file with your email-address, etc., so people know where to reach you with
3143  suggestions and entertaining flames.
3144 \end_layout
3145
3146 \begin_layout Standard
3147 If you are just doing this on your own, then:
3148 \end_layout
3149
3150 \begin_layout Itemize
3151 Generate 
3152 \begin_inset Flex Code
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 xx.mo
3157 \end_layout
3158
3159 \end_inset
3160
3161 .
3162  This can be done with 
3163 \begin_inset Flex Code
3164 status collapsed
3165
3166 \begin_layout Plain Layout
3167 msgfmt -o xx.mo < xx.po
3168 \end_layout
3169
3170 \end_inset
3171
3172 .
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 Copy the 
3177 \begin_inset Flex Code
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 mo
3182 \end_layout
3183
3184 \end_inset
3185
3186 -file to your locale-tree, at the correct directory for application messages
3187  for the language
3188 \series bold
3189  
3190 \series default
3191 xx, and under the name 
3192 \begin_inset Flex Code
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 lyx.mo
3197 \end_layout
3198
3199 \end_inset
3200
3201  (e.
3202 \begin_inset space \thinspace{}
3203 \end_inset
3204
3205 g.
3206 \begin_inset space \space{}
3207 \end_inset
3208
3209
3210 \begin_inset Flex Code
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3215 \end_layout
3216
3217 \end_inset
3218
3219
3220 \series bold
3221 .
3222 \end_layout
3223
3224 \begin_layout Standard
3225 As said, however, it would be best if the new 
3226 \begin_inset Flex Code
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230 po
3231 \end_layout
3232
3233 \end_inset
3234
3235  file could be added to the \SpecialChar LyX
3236  distribution, so others can use it.
3237  Adding it involves making additional changes to \SpecialChar LyX
3238 .
3239  So send an email to the developers' mailing list if you're interested in
3240  doing that.
3241 \end_layout
3242
3243 \begin_layout Subsubsection
3244 Ambiguous messages
3245 \end_layout
3246
3247 \begin_layout Standard
3248 Sometimes it turns out that one English message needs to be translated into
3249  different messages in the target language.
3250  One example is the message 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 To
3256 \end_layout
3257
3258 \end_inset
3259
3260  which has the German translation 
3261 \lang german
3262 Nach
3263 \lang english
3264  or 
3265 \lang german
3266 Bis
3267 \lang english
3268 , depending upon exactly what the English 
3269 \begin_inset Quotes eld
3270 \end_inset
3271
3272 to
3273 \begin_inset Quotes erd
3274 \end_inset
3275
3276  means.
3277  GNU 
3278 \begin_inset Flex Code
3279 status collapsed
3280
3281 \begin_layout Plain Layout
3282 gettext
3283 \end_layout
3284
3285 \end_inset
3286
3287  does not handle such ambiguous translations.
3288  Therefore you have to add some context information to the message: Instead
3289  of 
3290 \begin_inset Flex Code
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 To
3295 \end_layout
3296
3297 \end_inset
3298
3299  it becomes 
3300 \begin_inset Flex Code
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 To[[as in 'From format x to format y']]
3305 \end_layout
3306
3307 \end_inset
3308
3309  and 
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314 To[[as in 'From page x to page y']].
3315 \end_layout
3316
3317 \end_inset
3318
3319  Now the two occurrences of 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 To
3325 \end_layout
3326
3327 \end_inset
3328
3329  are different for 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 gettext
3335 \end_layout
3336
3337 \end_inset
3338
3339  and can be translated correctly to 
3340 \lang german
3341 Nach
3342 \lang english
3343  and 
3344 \lang german
3345 Bis
3346 \lang english
3347 , respectively.
3348 \end_layout
3349
3350 \begin_layout Standard
3351 Of course the context information needs to be stripped off the original
3352  message when no translation is used.
3353  Therefore you have to put it in double square brackets at the end of the
3354  message (see the example above).
3355  The translation mechanism of \SpecialChar LyX
3356  ensures that everything in double square
3357  brackets at the end of messages is removed before displaying the message.
3358 \end_layout
3359
3360 \begin_layout Subsection
3361 Translating the documentation.
3362 \end_layout
3363
3364 \begin_layout Standard
3365 The online documentation (in the 
3366 \begin_inset Flex Noun
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 Help
3371 \end_layout
3372
3373 \end_inset
3374
3375 -menu) can (and should!) be translated.
3376  If there are translated versions of the documentation available
3377 \begin_inset Foot
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 As of March 2008, at least some of the documents have been translated into
3382  fourteen languages, with the Tutorial available in a few more.
3383 \end_layout
3384
3385 \end_inset
3386
3387  and the locale is set accordingly, these will be used automagically by
3388  \SpecialChar LyX
3389 .
3390  \SpecialChar LyX
3391  looks for translated versions as 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 LyXDir/doc/xx/DocName.lyx
3397 \end_layout
3398
3399 \end_inset
3400
3401 , where 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 xx
3407 \end_layout
3408
3409 \end_inset
3410
3411  is the code for the language currently in use.
3412  If there are no translated documents, the default English versions will
3413  be displayed.
3414  Note that the translated versions must have the same filenames (
3415 \begin_inset Flex Code
3416 status collapsed
3417
3418 \begin_layout Plain Layout
3419 DocName
3420 \end_layout
3421
3422 \end_inset
3423
3424  above) as the original.
3425  If you feel up to translating the documentation (an excellent way to proof-read
3426  the original documentation by the way!), there are a few things you should
3427  do right away:
3428 \end_layout
3429
3430 \begin_layout Itemize
3431 Check out the documentation translation web page at 
3432 \begin_inset CommandInset href
3433 LatexCommand href
3434 name "https://www.lyx.org/Translation"
3435 target "https://www.lyx.org/Translation"
3436 literal "false"
3437
3438 \end_inset
3439
3440 .
3441  That way, you can find out which (if any) documents have already been translate
3442 d into your language.
3443  You can also find out who (if anyone) is organizing the effort to translate
3444  the documentation into your language.
3445  If no one is organizing the effort, please let us know that you're interested.
3446 \end_layout
3447
3448 \begin_layout Standard
3449 Once you get to actually translating, here's a few hints for you that may
3450  save you trouble:
3451 \end_layout
3452
3453 \begin_layout Itemize
3454 Join the documentation team! There is information on how to do that in 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459 Intro.lyx
3460 \end_layout
3461
3462 \end_inset
3463
3464  (
3465 \begin_inset Flex Noun
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 Help\SpecialChar menuseparator
3470 Introduction
3471 \end_layout
3472
3473 \end_inset
3474
3475 ), which by the way is the first document you should translate.
3476 \end_layout
3477
3478 \begin_layout Itemize
3479 Learn the typographic conventions for the language you are translating to.
3480  Typography is an ancient art and over the centuries, a great variety of
3481  conventions have developed throughout different parts of the world.
3482  Also study the professional terminology amongst typographers in your country.
3483  Inventing your own terminology will only confuse the users.
3484  
3485 \emph on
3486 (Warning! Typography is addictive!)
3487 \end_layout
3488
3489 \begin_layout Itemize
3490 Make a copy of the document.
3491  This will be your working copy.
3492  You can use this as your personal translated help-file by placing it in
3493  your 
3494 \begin_inset Flex Code
3495 status collapsed
3496
3497 \begin_layout Plain Layout
3498 UserDir/doc/xx/
3499 \end_layout
3500
3501 \end_inset
3502
3503  directory.
3504 \begin_inset Note Greyedout
3505 status open
3506
3507 \begin_layout Plain Layout
3508
3509 \series bold
3510 Note:
3511 \series default
3512  For a complex document with external material (images, etc.), if you make
3513  a copy e.
3514 \begin_inset space \thinspace{}
3515 \end_inset
3516
3517 g.
3518 \begin_inset space \space{}
3519 \end_inset
3520
3521 in a temp dir, beware that the links to external material may be broken
3522  when the document is moved to a different place.
3523  The best way is to retrieve the \SpecialChar LyX
3524  tree from git (see 
3525 \begin_inset Flex URL
3526 status collapsed
3527
3528 \begin_layout Plain Layout
3529
3530 https://www.lyx.org/HowToUseGIT
3531 \end_layout
3532
3533 \end_inset
3534
3535 ) and to edit the doc file in place.
3536 \end_layout
3537
3538 \end_inset
3539
3540
3541 \end_layout
3542
3543 \begin_layout Itemize
3544 Sometimes the original document (from the \SpecialChar LyX
3545  team) will be updated.
3546  Use the source viewer at 
3547 \begin_inset CommandInset href
3548 LatexCommand href
3549 name "https://www.lyx.org/trac/timeline"
3550 target "https://www.lyx.org/trac/timeline"
3551 literal "false"
3552
3553 \end_inset
3554
3555  to see what has been changed.
3556  That way you can easily see which parts of the translated document need
3557  to be updated.
3558 \end_layout
3559
3560 \begin_layout Standard
3561 If you ever find an error in the original document, fix it and notify the
3562  rest of the documentation team of the changes! (You didn't forget to join
3563  the documentation team, did you?)
3564 \end_layout
3565
3566 \begin_layout Standard
3567 \begin_inset Branch OutDated
3568 inverted 0
3569 status collapsed
3570
3571 \begin_layout Section
3572 International Keyboard Support
3573 \end_layout
3574
3575 \begin_layout Standard
3576
3577 \emph on
3578 [Editor's Note: The following section is by
3579 \emph default
3580  
3581 \shape smallcaps
3582 \emph on
3583 Ivan Schreter
3584 \shape default
3585 .
3586  It needs to be fixed to conform to the new Documentation Style sheet and
3587  to make use of the new v1.0 features.
3588  The whole thing also needs to be merged with the section following it.-jw
3589  It may also be badly out of date.-rh (2008)]
3590 \end_layout
3591
3592 \begin_layout Subsection
3593 Defining Own Keymaps: Keymap File Format
3594 \end_layout
3595
3596 \begin_layout Standard
3597 Let's look at a keyboard definition file a little closer.
3598  It is a plain text file defining
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 key-to-key or key-to-string translations
3603 \end_layout
3604
3605 \begin_layout Itemize
3606 dead keys
3607 \end_layout
3608
3609 \begin_layout Itemize
3610 dead keys exceptions
3611 \end_layout
3612
3613 \begin_layout Standard
3614 To define key-to-key or key-to-string translation, use this command:
3615 \end_layout
3616
3617 \begin_layout Quotation
3618 \begin_inset Flex Code
3619 status collapsed
3620
3621 \begin_layout Plain Layout
3622
3623 \backslash
3624 kmap
3625 \end_layout
3626
3627 \end_inset
3628
3629  
3630 \begin_inset Flex Code
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634 key
3635 \end_layout
3636
3637 \end_inset
3638
3639  outstring 
3640 \end_layout
3641
3642 \begin_layout Standard
3643 where 
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 key
3649 \end_layout
3650
3651 \end_inset
3652
3653  is the key to be translated and 
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 outstring
3659 \end_layout
3660
3661 \end_inset
3662
3663  is the string to be inserted into the document.
3664  To define dead keys, use:
3665 \end_layout
3666
3667 \begin_layout Quotation
3668 \begin_inset Flex Code
3669 status collapsed
3670
3671 \begin_layout Plain Layout
3672
3673 \backslash
3674 kmod
3675 \end_layout
3676
3677 \end_inset
3678
3679  
3680 \begin_inset Flex Code
3681 status collapsed
3682
3683 \begin_layout Plain Layout
3684 key
3685 \end_layout
3686
3687 \end_inset
3688
3689  deadkey
3690 \end_layout
3691
3692 \begin_layout Standard
3693 where 
3694 \begin_inset Flex Code
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698 key
3699 \end_layout
3700
3701 \end_inset
3702
3703  is a keyboard key and 
3704 \begin_inset Flex Code
3705 status collapsed
3706
3707 \begin_layout Plain Layout
3708 deadkey
3709 \end_layout
3710
3711 \end_inset
3712
3713  is dead key name.
3714  The following dead keys are supported (shortcut name is in parentheses):
3715 \end_layout
3716
3717 \begin_layout Quotation
3718
3719 \emph on
3720 Name
3721 \begin_inset space \hfill{}
3722 \end_inset
3723
3724 Example
3725 \end_layout
3726
3727 \begin_layout Quotation
3728 acute (acu)
3729 \begin_inset space \hfill{}
3730 \end_inset
3731
3732 áéíóú
3733 \end_layout
3734
3735 \begin_layout Quotation
3736 grave (gra)
3737 \begin_inset space \hfill{}
3738 \end_inset
3739
3740 àèìòù
3741 \end_layout
3742
3743 \begin_layout Quotation
3744 macron (mac)
3745 \begin_inset space \hfill{}
3746 \end_inset
3747
3748  ō
3749 \end_layout
3750
3751 \begin_layout Quotation
3752 tilde (til)
3753 \begin_inset space \hfill{}
3754 \end_inset
3755
3756 ñÑ
3757 \end_layout
3758
3759 \begin_layout Quotation
3760 underbar (underb)
3761 \begin_inset space \hfill{}
3762 \end_inset
3763
3764
3765 \begin_inset ERT
3766 status open
3767
3768 \begin_layout Plain Layout
3769
3770
3771 \backslash
3772 b o
3773 \end_layout
3774
3775 \end_inset
3776
3777
3778 \end_layout
3779
3780 \begin_layout Quotation
3781 cedilla (ced)
3782 \begin_inset space \hfill{}
3783 \end_inset
3784
3785 çÇ
3786 \end_layout
3787
3788 \begin_layout Quotation
3789 underdot (underd)
3790 \begin_inset space \hfill{}
3791 \end_inset
3792
3793
3794 \begin_inset ERT
3795 status open
3796
3797 \begin_layout Plain Layout
3798
3799
3800 \backslash
3801 d o
3802 \end_layout
3803
3804 \end_inset
3805
3806
3807 \end_layout
3808
3809 \begin_layout Quotation
3810 circumflex (circu)
3811 \begin_inset space \hfill{}
3812 \end_inset
3813
3814 âêîôû
3815 \end_layout
3816
3817 \begin_layout Quotation
3818 circle (circl)
3819 \begin_inset space \hfill{}
3820 \end_inset
3821
3822 ÅůŮ
3823 \end_layout
3824
3825 \begin_layout Quotation
3826 tie (tie)
3827 \begin_inset space \hfill{}
3828 \end_inset
3829
3830
3831 \begin_inset ERT
3832 status open
3833
3834 \begin_layout Plain Layout
3835
3836
3837 \backslash
3838 t o
3839 \end_layout
3840
3841 \end_inset
3842
3843
3844 \end_layout
3845
3846 \begin_layout Quotation
3847 breve (bre)
3848 \begin_inset space \hfill{}
3849 \end_inset
3850
3851 ă
3852 \begin_inset ERT
3853 status open
3854
3855 \begin_layout Plain Layout
3856
3857
3858 \backslash
3859 u o
3860 \end_layout
3861
3862 \end_inset
3863
3864
3865 \end_layout
3866
3867 \begin_layout Quotation
3868 caron (car)
3869 \begin_inset space \hfill{}
3870 \end_inset
3871
3872 čšž
3873 \end_layout
3874
3875 \begin_layout Quotation
3876 hungarian umlaut (hug)
3877 \begin_inset space \hfill{}
3878 \end_inset
3879
3880 őű
3881 \end_layout
3882
3883 \begin_layout Quotation
3884 umlaut (uml)
3885 \begin_inset space \hfill{}
3886 \end_inset
3887
3888 äöü
3889 \end_layout
3890
3891 \begin_layout Quotation
3892 dot (dot)
3893 \begin_inset space \hfill{}
3894 \end_inset
3895
3896 ż
3897 \begin_inset ERT
3898 status open
3899
3900 \begin_layout Plain Layout
3901
3902
3903 \backslash
3904 .s
3905 \end_layout
3906
3907 \end_inset
3908
3909
3910 \end_layout
3911
3912 \begin_layout Standard
3913 Since in many international keyboards there are exceptions to what some
3914  dead keys should do, you can define them using
3915 \end_layout
3916
3917 \begin_layout Quotation
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922
3923 \backslash
3924 kxmod
3925 \end_layout
3926
3927 \end_inset
3928
3929  deadkey key outstring
3930 \end_layout
3931
3932 \begin_layout Standard
3933 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3934 , so you put in
3935 \end_layout
3936
3937 \begin_layout Quotation
3938 \begin_inset Flex Code
3939 status collapsed
3940
3941 \begin_layout Plain Layout
3942
3943 \backslash
3944 kxmod
3945 \end_layout
3946
3947 \end_inset
3948
3949  caron o "
3950 \backslash
3951 ^o"
3952 \end_layout
3953
3954 \begin_layout Standard
3955 to make it work correctly.
3956  Also, you have to define as exceptions dead keys over i and j, to remove
3957  the dot from them before inserting an accent mark.
3958  I will change this when the time comes, but so far I haven't had time.
3959 \end_layout
3960
3961 \begin_layout Standard
3962 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3963  double backslash.
3964  Also, quotes and 
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 #
3970 \end_layout
3971
3972 \end_inset
3973
3974  have different meaning.
3975  
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 #
3981 \end_layout
3982
3983 \end_inset
3984
3985  marks comments, quotes start and end \SpecialChar LaTeX
3986 -style commands.
3987  To enter quote, you'll need to use 
3988 \begin_inset Flex Code
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992
3993 \backslash
3994 "
3995 \end_layout
3996
3997 \end_inset
3998
3999 , to enter 
4000 \begin_inset Flex Code
4001 status collapsed
4002
4003 \begin_layout Plain Layout
4004 #
4005 \end_layout
4006
4007 \end_inset
4008
4009 , use 
4010 \begin_inset Flex Code
4011 status collapsed
4012
4013 \begin_layout Plain Layout
4014
4015 \backslash
4016 #
4017 \end_layout
4018
4019 \end_inset
4020
4021 .
4022 \end_layout
4023
4024 \begin_layout Standard
4025 If you make a keyboard description file that works for your language, please
4026  mail it to me, so I can include it in the next keymap distribution.
4027 \end_layout
4028
4029 \begin_layout Standard
4030 More keywords will be supported in keymap configuration file in future,
4031  like
4032 \end_layout
4033
4034 \begin_layout Itemize
4035 \begin_inset Flex Code
4036 status collapsed
4037
4038 \begin_layout Plain Layout
4039
4040 \backslash
4041 kinclude filename
4042 \end_layout
4043
4044 \end_inset
4045
4046
4047 \emph on
4048
4049 \begin_inset space \hfill{}
4050 \end_inset
4051
4052
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 include
4058 \end_layout
4059
4060 \end_inset
4061
4062  another file
4063 \end_layout
4064
4065 \begin_layout Itemize
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070
4071 \backslash
4072 kprog program
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \emph on
4079
4080 \begin_inset space \hfill{}
4081 \end_inset
4082
4083
4084 \begin_inset Flex Code
4085 status collapsed
4086
4087 \begin_layout Plain Layout
4088 define
4089 \end_layout
4090
4091 \end_inset
4092
4093  an external keymap translation program 
4094 \end_layout
4095
4096 \begin_layout Standard
4097 Also, it should look into 
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102 lyxrc
4103 \end_layout
4104
4105 \end_inset
4106
4107  file for defaults, too (for example, a 
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112
4113 \backslash
4114 kinclude
4115 \end_layout
4116
4117 \end_inset
4118
4119  option to include default keyboard).
4120 \end_layout
4121
4122 \end_inset
4123
4124
4125 \end_layout
4126
4127 \begin_layout Section
4128 International Keymap Stuff
4129 \begin_inset CommandInset label
4130 LatexCommand label
4131 name "sec:International-Keymap-Stuff"
4132
4133 \end_inset
4134
4135
4136 \end_layout
4137
4138 \begin_layout Standard
4139 \begin_inset Note Note
4140 status open
4141
4142 \begin_layout Plain Layout
4143 In doing the revisions on this document in March 2008, I did not look over
4144  this stuff, as I do not understand it.
4145  It would be good if someone else could do so.
4146  (RH)
4147 \end_layout
4148
4149 \end_inset
4150
4151
4152 \end_layout
4153
4154 \begin_layout Standard
4155 The next two sections describe the 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \shape up
4162 .kmap
4163 \end_layout
4164
4165 \end_inset
4166
4167  and 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172
4173 \shape up
4174 .cdef
4175 \end_layout
4176
4177 \end_inset
4178
4179  file syntax in detail.
4180  These sections should help you design your own key map if the ones provided
4181  do not meet your needs.
4182 \end_layout
4183
4184 \begin_layout Subsection
4185 The .kmap File
4186 \end_layout
4187
4188 \begin_layout Standard
4189
4190 \shape up
4191 .
4192 \begin_inset Flex Code
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196 kmap
4197 \end_layout
4198
4199 \end_inset
4200
4201  file maps keystrokes to characters or strings.
4202  As the name suggests, it sets a keyboard mapping.
4203  The 
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208 .kmap
4209 \end_layout
4210
4211 \end_inset
4212
4213
4214 \shape default
4215  file keywords 
4216 \shape up
4217
4218 \begin_inset Flex Code
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222
4223 \shape up
4224 kmap
4225 \end_layout
4226
4227 \end_inset
4228
4229
4230 \shape default
4231 ,
4232 \shape up
4233  
4234 \shape default
4235
4236 \begin_inset Flex Code
4237 status collapsed
4238
4239 \begin_layout Plain Layout
4240
4241 \shape up
4242 kmod
4243 \end_layout
4244
4245 \end_inset
4246
4247 ,
4248 \shape up
4249  
4250 \shape default
4251
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256
4257 \shape up
4258 kxmod
4259 \end_layout
4260
4261 \end_inset
4262
4263 , and 
4264 \begin_inset Flex Code
4265 status collapsed
4266
4267 \begin_layout Plain Layout
4268
4269 \shape up
4270 kcomb
4271 \end_layout
4272
4273 \end_inset
4274
4275  are described in this section.
4276 \end_layout
4277
4278 \begin_layout Labeling
4279 \labelwidthstring 00.00.0000
4280 \begin_inset Flex Code
4281 status collapsed
4282
4283 \begin_layout Plain Layout
4284
4285 \shape up
4286 kmap
4287 \end_layout
4288
4289 \end_inset
4290
4291  Map a character to a string
4292 \end_layout
4293
4294 \begin_layout LyX-Code
4295
4296 \backslash
4297 kmap 
4298 \family roman
4299 \emph on
4300 char
4301 \family default
4302 \emph default
4303  
4304 \family roman
4305 \emph on
4306 string
4307 \end_layout
4308
4309 \begin_layout Standard
4310 This will ma
4311 \family roman
4312 p
4313 \family default
4314  
4315 \family roman
4316 \emph on
4317 char
4318 \family default
4319 \emph default
4320  
4321 \family roman
4322 to
4323 \family default
4324  
4325 \family roman
4326 \emph on
4327 string
4328 \emph default
4329 .
4330  Note that in
4331 \family default
4332  
4333 \family roman
4334 \emph on
4335 string
4336 \emph default
4337 ,
4338 \family default
4339  
4340 \family roman
4341 \shape up
4342 the double-quote (")
4343 \family default
4344 \shape default
4345  
4346 \family roman
4347 and
4348 \family default
4349  
4350 \family roman
4351 \shape up
4352 the backslash (
4353 \backslash
4354 )
4355 \family default
4356 \shape default
4357  
4358 \family roman
4359 must be escaped with a preceding backslash (
4360 \shape up
4361
4362 \backslash
4363
4364 \shape default
4365 )
4366 \family default
4367 .
4368 \end_layout
4369
4370 \begin_layout Standard
4371 An example of a 
4372 \begin_inset Flex Noun
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376
4377 \shape up
4378 kmap
4379 \end_layout
4380
4381 \end_inset
4382
4383  statement to cause the symbol 
4384 \begin_inset Flex Noun
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388
4389 \shape up
4390 /
4391 \end_layout
4392
4393 \end_inset
4394
4395  to be output for the keystroke 
4396 \begin_inset Flex Noun
4397 status collapsed
4398
4399 \begin_layout Plain Layout
4400
4401 \shape up
4402 &
4403 \end_layout
4404
4405 \end_inset
4406
4407  is:
4408 \end_layout
4409
4410 \begin_layout LyX-Code
4411
4412 \backslash
4413 kmap & /
4414 \end_layout
4415
4416 \begin_layout Labeling
4417 \labelwidthstring 00.00.0000
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422
4423 \shape up
4424 kmod
4425 \end_layout
4426
4427 \end_inset
4428
4429  Specify an accent character
4430 \end_layout
4431
4432 \begin_layout LyX-Code
4433
4434 \backslash
4435 kmod 
4436 \family roman
4437 \emph on
4438 char accent allowed
4439 \end_layout
4440
4441 \begin_layout Standard
4442 This will make the cha
4443 \family roman
4444 racter
4445 \family default
4446  
4447 \family roman
4448 \emph on
4449 char
4450 \family default
4451 \emph default
4452  
4453 \family roman
4454 \shape up
4455 \emph on
4456 be an accent
4457 \family default
4458 \shape default
4459 \emph default
4460  
4461 \family roman
4462 \shape up
4463 on the
4464 \family default
4465 \shape default
4466  
4467 \family roman
4468 \shape up
4469 \emph on
4470 allowed
4471 \family default
4472 \shape default
4473 \emph default
4474  
4475 \family roman
4476 \shape up
4477 cha
4478 \family default
4479 racter(s).
4480  This is the dead key
4481 \begin_inset Foot
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 The term 
4486 \family roman
4487 \emph on
4488 dead key
4489 \family default
4490 \emph default
4491  refers to a key that does not produce a character by itself, but when followed
4492  with another key, produces the desired accent character.
4493  For example, a German characte
4494 \family roman
4495 r with an umlaut like
4496 \family default
4497  
4498 \family roman
4499 \emph on
4500 ä
4501 \family default
4502 \emph default
4503  
4504 \family roman
4505 can be produced in this manner.
4506 \end_layout
4507
4508 \end_inset
4509
4510  mechanism.
4511  
4512 \end_layout
4513
4514 \begin_layout Standard
4515 If you 
4516 \family roman
4517 hit
4518 \family default
4519  
4520 \family roman
4521 \emph on
4522 char
4523 \family default
4524 \emph default
4525  
4526 \family roman
4527 and then another key not in
4528 \family default
4529  
4530 \family roman
4531 \emph on
4532 allowed
4533 \emph default
4534 , you will get a
4535 \family default
4536  
4537 \family roman
4538 \emph on
4539 char
4540 \family default
4541 \emph default
4542  
4543 \family roman
4544 followed by the other, not allowed key, as output.
4545
4546 \family default
4547  Note that a 
4548 \begin_inset Flex Noun
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552
4553 \shape up
4554 Backspace
4555 \end_layout
4556
4557 \end_inset
4558
4559  cancels a dead key, so if 
4560 \family roman
4561 you hit
4562 \family default
4563  
4564 \family roman
4565 \emph on
4566 char
4567 \family default
4568 \emph default
4569  
4570 \begin_inset Flex Noun
4571 status collapsed
4572
4573 \begin_layout Plain Layout
4574
4575 \shape up
4576 \emph on
4577 Backspace
4578 \end_layout
4579
4580 \end_inset
4581
4582 , the cursor will not go one position backwards but will instead cancel
4583  the effect t
4584 \family roman
4585 hat
4586 \family default
4587  
4588 \family roman
4589 \shape up
4590 \emph on
4591 char
4592 \family default
4593 \shape default
4594 \emph default
4595  
4596 \family roman
4597 \shape up
4598 might have had on the next keystroke.
4599  
4600 \end_layout
4601
4602 \begin_layout Standard
4603 The following example specifies that the character ' is to be an acute accent,
4604  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4605 \end_layout
4606
4607 \begin_layout LyX-Code
4608
4609 \backslash
4610 kmod ' acute aeiouAEIOU
4611 \end_layout
4612
4613 \begin_layout Labeling
4614 \labelwidthstring 00.00.0000
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 kxmod
4620 \end_layout
4621
4622 \end_inset
4623
4624  Specify an exception to the accent character
4625 \end_layout
4626
4627 \begin_layout LyX-Code
4628
4629 \backslash
4630 kxmod  
4631 \family roman
4632 \emph on
4633 accent char result
4634 \end_layout
4635
4636 \begin_layout Standard
4637 This defines an exce
4638 \family roman
4639 ption for
4640 \family default
4641  
4642 \family roman
4643 \emph on
4644 accent
4645 \family default
4646 \emph default
4647  
4648 \family roman
4649 on
4650 \family default
4651  
4652 \family roman
4653 \emph on
4654 char
4655 \emph default
4656 .
4657  T
4658 \shape up
4659 he
4660 \family default
4661 \shape default
4662  
4663 \family roman
4664 \shape up
4665 \emph on
4666 accent
4667 \family default
4668 \shape default
4669 \emph default
4670  
4671 \family roman
4672 \shape up
4673 must
4674 \family default
4675 \shape default
4676  
4677 \shape up
4678 have been assigned a keystroke with a previous
4679 \shape default
4680  
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685
4686 \shape up
4687
4688 \backslash
4689 kmo
4690 \shape default
4691 d
4692 \end_layout
4693
4694 \end_inset
4695
4696  declar
4697 \family roman
4698 ation and
4699 \family default
4700  
4701 \family roman
4702 \emph on
4703 char
4704 \family default
4705 \emph default
4706  
4707 \family roman
4708 must not belong in the
4709 \family default
4710  
4711 \family roman
4712 \emph on
4713 allowed
4714 \family default
4715 \emph default
4716  
4717 \family roman
4718 set of
4719 \family default
4720  
4721 \family roman
4722 \emph on
4723 accent
4724 \emph default
4725 .
4726  When
4727 \family default
4728  
4729 \family roman
4730 \shape up
4731 you enter the
4732 \family default
4733 \shape default
4734  
4735 \family roman
4736 \shape up
4737 \emph on
4738 accent char
4739 \family default
4740 \shape default
4741 \emph default
4742  
4743 \family roman
4744 \shape up
4745 sequence,
4746 \family default
4747 \shape default
4748  
4749 \family roman
4750 \shape up
4751 \emph on
4752 result
4753 \emph default
4754  is produced.
4755  If such a declaration does not exist in
4756 \family default
4757 \shape default
4758  
4759 \shape up
4760 the
4761 \shape default
4762  
4763 \begin_inset Flex Code
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767
4768 \shape up
4769 .kmap
4770 \end_layout
4771
4772 \end_inset
4773
4774  file and yo
4775 \family roman
4776 u enter
4777 \family default
4778  
4779 \family roman
4780 \emph on
4781 accent char
4782 \emph default
4783 , you get
4784 \family default
4785  
4786 \family roman
4787 \emph on
4788 accent_key char
4789 \emph default
4790  where
4791 \family default
4792  
4793 \family roman
4794 \emph on
4795 accent_key
4796 \emph default
4797  is the first arg
4798 \family default
4799 ument of the 
4800 \begin_inset Flex Code
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804
4805 \shape up
4806
4807 \backslash
4808 kmod
4809 \end_layout
4810
4811 \end_inset
4812
4813  declaration.
4814  
4815 \end_layout
4816
4817 \begin_layout Standard
4818 The following command produces causes äi to be produced when you enter acute-i
4819  ('i):
4820 \end_layout
4821
4822 \begin_layout LyX-Code
4823
4824 \backslash
4825 kxmod acute i "
4826 \backslash
4827
4828 \backslash
4829 '{
4830 \backslash
4831
4832 \backslash
4833 i}"
4834 \end_layout
4835
4836 \begin_layout Labeling
4837 \labelwidthstring 00.00.0000
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 kcomb
4843 \end_layout
4844
4845 \end_inset
4846
4847  Combine two accent characters
4848 \end_layout
4849
4850 \begin_layout LyX-Code
4851
4852 \backslash
4853 kcomb 
4854 \family roman
4855 \emph on
4856 accent1 accent2 allowed
4857 \end_layout
4858
4859 \begin_layout Standard
4860 This one is getting pretty esoteric.
4861  It allows you to combine the effect 
4862 \family roman
4863 of
4864 \family default
4865  
4866 \family roman
4867 \emph on
4868 accent1
4869 \family default
4870 \emph default
4871  
4872 \family roman
4873 and
4874 \family default
4875  
4876 \family roman
4877 \emph on
4878 accent2
4879 \family default
4880 \emph default
4881  
4882 \family roman
4883 (in that order!) on
4884 \family default
4885  
4886 \family roman
4887 \emph on
4888 allowed
4889 \family default
4890 \emph default
4891  
4892 \family roman
4893 chars.
4894  The keystrokes for
4895 \family default
4896  
4897 \family roman
4898 \emph on
4899 accent1
4900 \family default
4901 \emph default
4902  
4903 \family roman
4904 and
4905 \family default
4906  
4907 \family roman
4908 \emph on
4909 accent2
4910 \family default
4911 \emph default
4912  
4913 \family roman
4914 must have be
4915 \family default
4916 en set with a 
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921
4922 \shape up
4923
4924 \backslash
4925 kmod
4926 \end_layout
4927
4928 \end_inset
4929
4930  command at 
4931 \family roman
4932 a
4933 \family default
4934  
4935 \family roman
4936 \emph on
4937 previous
4938 \family default
4939 \emph default
4940  
4941 \family roman
4942 point in the
4943 \family default
4944  file.
4945  
4946 \end_layout
4947
4948 \begin_layout Standard
4949 Consider this example from the 
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954
4955 \shape up
4956 greek.kmap
4957 \end_layout
4958
4959 \end_inset
4960
4961  file:
4962 \end_layout
4963
4964 \begin_layout LyX-Code
4965
4966 \backslash
4967 kmod ; acute aeioyvhAEIOYVH 
4968 \backslash
4969 kmod : umlaut iyIY 
4970 \backslash
4971 kcomb acute umlaut iyIY
4972 \end_layout
4973
4974 \begin_layout Standard
4975 This allows you to press 
4976 \begin_inset Flex Noun
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \shape up
4982 ;:i
4983 \end_layout
4984
4985 \end_inset
4986
4987  and get the effect of 
4988 \begin_inset Flex Code
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992
4993 \shape up
4994
4995 \backslash
4996 '{
4997 \backslash
4998 "{i}}
4999 \end_layout
5000
5001 \end_inset
5002
5003 .
5004  
5005 \family roman
5006 \shape up
5007 A backspace
5008 \family default
5009 \shape default
5010  in this case cancels the last dead key, so if you press 
5011 \begin_inset Flex Noun
5012 status collapsed
5013
5014 \begin_layout Plain Layout
5015
5016 \shape up
5017 ;: Backspace i
5018 \end_layout
5019
5020 \end_inset
5021
5022  you get 
5023 \begin_inset Flex Code
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027
5028 \shape up
5029
5030 \backslash
5031 '{i}
5032 \end_layout
5033
5034 \end_inset
5035
5036 .
5037 \end_layout
5038
5039 \begin_layout Subsection
5040 The .cdef File
5041 \end_layout
5042
5043 \begin_layout Standard
5044 After the 
5045 \begin_inset Flex Code
5046 status collapsed
5047
5048 \begin_layout Plain Layout
5049
5050 \shape up
5051 .kmap
5052 \end_layout
5053
5054 \end_inset
5055
5056  mapping is performed, a 
5057 \begin_inset Flex Code
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061
5062 \shape up
5063 .cde
5064 \shape default
5065 f
5066 \end_layout
5067
5068 \end_inset
5069
5070  file maps the strings that the symbols generate to characters in the current
5071  font.
5072  The \SpecialChar LyX
5073  distribution currently includes at least the 
5074 \begin_inset Flex Code
5075 status collapsed
5076
5077 \begin_layout Plain Layout
5078
5079 \shape up
5080 iso8859-1.cdef
5081 \end_layout
5082
5083 \end_inset
5084
5085  and 
5086 \begin_inset Flex Code
5087 status collapsed
5088
5089 \begin_layout Plain Layout
5090
5091 \shape up
5092 iso8859-2.cdef
5093 \end_layout
5094
5095 \end_inset
5096
5097  files.
5098 \end_layout
5099
5100 \begin_layout Standard
5101 In general the 
5102 \begin_inset Flex Code
5103 status collapsed
5104
5105 \begin_layout Plain Layout
5106
5107 \shape up
5108 .cdef
5109 \end_layout
5110
5111 \end_inset
5112
5113  file is a sequence of declarations of the form
5114 \end_layout
5115
5116 \begin_layout LyX-Code
5117
5118 \family roman
5119 \emph on
5120 char_index_in_set
5121 \family default
5122 \emph default
5123  
5124 \family roman
5125 \emph on
5126  string
5127 \end_layout
5128
5129 \begin_layout Standard
5130 For example, in order to map 
5131 \begin_inset Flex Noun
5132 status collapsed
5133
5134 \begin_layout Plain Layout
5135
5136 \shape up
5137
5138 \backslash
5139 '{e}
5140 \end_layout
5141
5142 \end_inset
5143
5144  to the corresponding character in the iso-8859-1 set (233), the following
5145  declaration is used
5146 \end_layout
5147
5148 \begin_layout LyX-Code
5149 233 "
5150 \backslash
5151
5152 \backslash
5153 '{e}"
5154 \end_layout
5155
5156 \begin_layout Standard
5157 with 
5158 \begin_inset Flex Code
5159 status collapsed
5160
5161 \begin_layout Plain Layout
5162
5163 \backslash
5164
5165 \end_layout
5166
5167 \end_inset
5168
5169  and 
5170 \begin_inset Flex Code
5171 status collapsed
5172
5173 \begin_layout Plain Layout
5174 "
5175 \end_layout
5176
5177 \end_inset
5178
5179  being escap
5180 \family roman
5181 ed in
5182 \family default
5183  
5184 \family roman
5185 \emph on
5186 string
5187 \emph default
5188 .
5189  Note that
5190 \family default
5191  the same character can apply to more than one string.
5192  In the 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197 i
5198 \shape up
5199 so-8859-7.cdef
5200 \end_layout
5201
5202 \end_inset
5203
5204  file you have
5205 \end_layout
5206
5207 \begin_layout LyX-Code
5208 192 "
5209 \backslash
5210
5211 \backslash
5212 '{
5213 \backslash
5214
5215 \backslash
5216
5217 \backslash
5218 "{i}}"
5219 \begin_inset Newline newline
5220 \end_inset
5221
5222 192 "
5223 \backslash
5224
5225 \backslash
5226
5227 \backslash
5228 "{
5229 \backslash
5230
5231 \backslash
5232 '{i}}"
5233 \end_layout
5234
5235 \begin_layout Standard
5236 If \SpecialChar LyX
5237  cannot find a mapping for the string produced by the keystroke or a
5238  deadkey sequence, it will check if it looks like an accented char and try
5239  to draw an accent over the character on screen.
5240 \end_layout
5241
5242 \begin_layout Subsection
5243 Dead Keys
5244 \end_layout
5245
5246 \begin_layout Standard
5247 There is a second way to add support for international characters through
5248  so-called dead-keys.
5249  A dead-key works in combination with a letter to produce an accented character.
5250  Here, we'll explain how to create a really simple dead-key to illustrate
5251  how they work.
5252 \end_layout
5253
5254 \begin_layout Standard
5255 Suppose you happen to need the circumflex character, 
5256 \begin_inset Quotes eld
5257 \end_inset
5258
5259  ̂
5260 \begin_inset Quotes erd
5261 \end_inset
5262
5263 .
5264  You could bind the 
5265 \begin_inset Flex Noun
5266 status collapsed
5267
5268 \begin_layout Plain Layout
5269 ^
5270 \end_layout
5271
5272 \end_inset
5273
5274 -key [a.k.a.
5275 \begin_inset space ~
5276 \end_inset
5277
5278
5279 \begin_inset Flex Noun
5280 status collapsed
5281
5282 \begin_layout Plain Layout
5283 Shift-6
5284 \end_layout
5285
5286 \end_inset
5287
5288 ] to the \SpecialChar LyX
5289  command 
5290 \begin_inset Flex Code
5291 status collapsed
5292
5293 \begin_layout Plain Layout
5294 accent-circumflex
5295 \end_layout
5296
5297 \end_inset
5298
5299  in your 
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304 lyxrc
5305 \end_layout
5306
5307 \end_inset
5308
5309  file.
5310  Now, whenever you type the 
5311 \begin_inset Flex Noun
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315 ^
5316 \end_layout
5317
5318 \end_inset
5319
5320 -key followed by a letter, that letter will have a circumflex accent on
5321  it.
5322  For example, the sequence 
5323 \begin_inset Quotes eld
5324 \end_inset
5325
5326
5327 \begin_inset Flex Noun
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331 ^e
5332 \end_layout
5333
5334 \end_inset
5335
5336
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340  produces the letter: 
5341 \begin_inset Quotes eld
5342 \end_inset
5343
5344 ê
5345 \begin_inset Quotes erd
5346 \end_inset
5347
5348 .
5349  If you tried to type 
5350 \begin_inset Quotes eld
5351 \end_inset
5352
5353
5354 \begin_inset Flex Noun
5355 status collapsed
5356
5357 \begin_layout Plain Layout
5358 ^t
5359 \end_layout
5360
5361 \end_inset
5362
5363
5364 \begin_inset Quotes erd
5365 \end_inset
5366
5367 , however, \SpecialChar LyX
5368  will complain with a beep, since a 
5369 \begin_inset Quotes eld
5370 \end_inset
5371
5372
5373 \begin_inset Flex Noun
5374 status collapsed
5375
5376 \begin_layout Plain Layout
5377 t
5378 \end_layout
5379
5380 \end_inset
5381
5382
5383 \begin_inset Quotes erd
5384 \end_inset
5385
5386  never takes a circumflex accent.
5387  Hitting 
5388 \begin_inset Flex Noun
5389 status collapsed
5390
5391 \begin_layout Plain Layout
5392 Space
5393 \end_layout
5394
5395 \end_inset
5396
5397  after a dead-key produces the bare-accent.
5398  Please note this last point! If you bind a key to a dead-key, you'll need
5399  to rebind the character on that key to yet another key.
5400  Binding the 
5401 \begin_inset Flex Noun
5402 status collapsed
5403
5404 \begin_layout Plain Layout
5405 ,-key
5406 \end_layout
5407
5408 \end_inset
5409
5410  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5411 \end_layout
5412
5413 \begin_layout Standard
5414 One common way to bind dead-keys is to use 
5415 \begin_inset Flex Noun
5416 status collapsed
5417
5418 \begin_layout Plain Layout
5419 Meta-
5420 \end_layout
5421
5422 \end_inset
5423
5424
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429 Ctrl-
5430 \end_layout
5431
5432 \end_inset
5433
5434 , and 
5435 \begin_inset Flex Noun
5436 status collapsed
5437
5438 \begin_layout Plain Layout
5439 Shift-
5440 \end_layout
5441
5442 \end_inset
5443
5444  in combination with an accent, like 
5445 \begin_inset Quotes eld
5446 \end_inset
5447
5448
5449 \begin_inset Flex Noun
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 ~
5454 \end_layout
5455
5456 \end_inset
5457
5458
5459 \begin_inset Quotes erd
5460 \end_inset
5461
5462  or 
5463 \begin_inset Quotes eld
5464 \end_inset
5465
5466
5467 \begin_inset Flex Noun
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 ,
5472 \end_layout
5473
5474 \end_inset
5475
5476
5477 \begin_inset Quotes erd
5478 \end_inset
5479
5480  or 
5481 \begin_inset Quotes eld
5482 \end_inset
5483
5484
5485 \begin_inset Flex Noun
5486 status collapsed
5487
5488 \begin_layout Plain Layout
5489 ^
5490 \end_layout
5491
5492 \end_inset
5493
5494
5495 \begin_inset Quotes erd
5496 \end_inset
5497
5498 .
5499  Another way involves using 
5500 \begin_inset Flex Code
5501 status collapsed
5502
5503 \begin_layout Plain Layout
5504 xmodmap
5505 \end_layout
5506
5507 \end_inset
5508
5509  and 
5510 \begin_inset Flex Code
5511 status collapsed
5512
5513 \begin_layout Plain Layout
5514 xkeycaps
5515 \end_layout
5516
5517 \end_inset
5518
5519  to set up the special 
5520 \begin_inset Flex Code
5521 status collapsed
5522
5523 \begin_layout Plain Layout
5524 Mode_Switch
5525 \end_layout
5526
5527 \end_inset
5528
5529  key.
5530  The 
5531 \begin_inset Flex Code
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 Mode_Switch
5536 \end_layout
5537
5538 \end_inset
5539
5540  acts in some ways just like 
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 Shift
5546 \end_layout
5547
5548 \end_inset
5549
5550  and permits you to bind keys to accented characters.
5551  You can also turn keys into dead-keys by binding them to something like
5552  
5553 \begin_inset Flex Code
5554 status collapsed
5555
5556 \begin_layout Plain Layout
5557 usldead_cedilla
5558 \end_layout
5559
5560 \end_inset
5561
5562  and then binding this symbolic key to the corresponding \SpecialChar LyX
5563  command.
5564 \begin_inset Foot
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 Note from 
5569 \noun on
5570 John Weiss
5571 \noun default
5572 : This is exactly what I do in my 
5573 \begin_inset Flex Code
5574 status collapsed
5575
5576 \begin_layout Plain Layout
5577 ~/.lyx/lyxrc
5578 \end_layout
5579
5580 \end_inset
5581
5582  and my 
5583 \begin_inset Flex Code
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 ~/.xmodmap
5588 \end_layout
5589
5590 \end_inset
5591
5592  files.
5593  I have my 
5594 \begin_inset Flex Noun
5595 status collapsed
5596
5597 \begin_layout Plain Layout
5598 Scroll
5599 \begin_inset space ~
5600 \end_inset
5601
5602 Lock
5603 \end_layout
5604
5605 \end_inset
5606
5607  key set up as 
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612 Mode_Shift
5613 \end_layout
5614
5615 \end_inset
5616
5617  and a bunch of these 
5618 \begin_inset Quotes eld
5619 \end_inset
5620
5621
5622 \begin_inset Flex Code
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 usldead_*
5627 \end_layout
5628
5629 \end_inset
5630
5631
5632 \begin_inset Quotes erd
5633 \end_inset
5634
5635  symbolic keys bound such things as 
5636 \begin_inset Flex Noun
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 Scroll
5641 \begin_inset space ~
5642 \end_inset
5643
5644 Lock-^
5645 \end_layout
5646
5647 \end_inset
5648
5649  and 
5650 \begin_inset Flex Noun
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 Scroll
5655 \begin_inset space ~
5656 \end_inset
5657
5658 Lock-~
5659 \end_layout
5660
5661 \end_inset
5662
5663 .
5664  This is how I produce my accented characters.
5665 \end_layout
5666
5667 \end_inset
5668
5669  You can make just about anything into the 
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 Mode_Switch
5675 \end_layout
5676
5677 \end_inset
5678
5679  key: One of the 
5680 \begin_inset Flex Noun
5681 status collapsed
5682
5683 \begin_layout Plain Layout
5684 Ctrl-
5685 \end_layout
5686
5687 \end_inset
5688
5689  keys, a spare function key, etc.
5690  As for the \SpecialChar LyX
5691  commands that produce accents, check the entry for 
5692 \begin_inset Flex Code
5693 status collapsed
5694
5695 \begin_layout Plain Layout
5696 accent-acute
5697 \end_layout
5698
5699 \end_inset
5700
5701  in the 
5702 \emph on
5703 Reference Manual
5704 \emph default
5705 .
5706  You'll find the complete list there.
5707 \end_layout
5708
5709 \begin_layout Subsection
5710 Saving your Language Configuration
5711 \end_layout
5712
5713 \begin_layout Standard
5714 You can edit your preferences so that your desired language environment
5715  is automatically configured when \SpecialChar LyX
5716  starts up, via the 
5717 \begin_inset Flex Noun
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 Edit\SpecialChar menuseparator
5722 Preferences
5723 \end_layout
5724
5725 \end_inset
5726
5727  dialog.
5728 \end_layout
5729
5730 \begin_layout Chapter
5731 Installing New Document Classes, Layouts, and Templates
5732 \begin_inset CommandInset label
5733 LatexCommand label
5734 name "cha:Installing-New-Document"
5735
5736 \end_inset
5737
5738
5739 \begin_inset Argument 1
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 Installing New Document Classes
5744 \end_layout
5745
5746 \end_inset
5747
5748
5749 \end_layout
5750
5751 \begin_layout Standard
5752 In this chapter, we describe the procedures for creating and installing
5753  new \SpecialChar LyX
5754  layout and template files, as well as offer a refresher on correctly
5755  installing new \SpecialChar LaTeX
5756  document classes.
5757  
5758 \end_layout
5759
5760 \begin_layout Standard
5761 First, let us a say a few words about how one ought to think about the relation
5762  between \SpecialChar LyX
5763  and \SpecialChar LaTeX
5764 .
5765  The thing to understand is that, in a certain sense, \SpecialChar LyX
5766  doesn't know anything
5767  about \SpecialChar LaTeX
5768 .
5769  Indeed, from \SpecialChar LyX
5770 's point of view, \SpecialChar LaTeX
5771  is just one of several 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775 backend formats
5776 \begin_inset Quotes erd
5777 \end_inset
5778
5779  in which it is capable of producing output.
5780  Other such formats are DocBook, plaintext, and XHTML.
5781  \SpecialChar LaTeX
5782  is, of course, a particularly important format, but very little of the
5783  information \SpecialChar LyX
5784  has about \SpecialChar LaTeX
5785  is actually contained in the program itself.
5786 \begin_inset Foot
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 Some commands are sufficiently complex that they are 
5791 \begin_inset Quotes eld
5792 \end_inset
5793
5794 hardcoded
5795 \begin_inset Quotes erd
5796 \end_inset
5797
5798  into \SpecialChar LyX
5799 .
5800  But the developers generally regard this as a Bad Thing.
5801 \end_layout
5802
5803 \end_inset
5804
5805  Rather, that information, even for the standard classes like 
5806 \begin_inset Flex Code
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 article.cls
5811 \end_layout
5812
5813 \end_inset
5814
5815 , is contained in `layout files'.
5816  Similarly, \SpecialChar LyX
5817  itself does not know much about DocBook or XHTML.
5818  What it knows is contained in layout files.
5819 \end_layout
5820
5821 \begin_layout Standard
5822 You can think of the layout file for a given document class as a translation
5823  manual between \SpecialChar LyX
5824  constructs—paragraphs with their corresponding styles,
5825  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5826 , DocBook, or XHTML
5827  constructs.
5828  Almost everything \SpecialChar LyX
5829  knows about 
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 article.cls
5835 \end_layout
5836
5837 \end_inset
5838
5839 , for example, is contained in the file 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 article.layout
5845 \end_layout
5846
5847 \end_inset
5848
5849  and in various other files it includes.
5850  For this reason, anyone intending to write layout files should plan to
5851  study the existing files.
5852  A good place to start is with 
5853 \begin_inset Flex Code
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 stdsections.inc
5858 \end_layout
5859
5860 \end_inset
5861
5862 , which is included in 
5863 \begin_inset Flex Code
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 article.layout
5868 \end_layout
5869
5870 \end_inset
5871
5872
5873 \begin_inset Flex Code
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877 book.layout
5878 \end_layout
5879
5880 \end_inset
5881
5882 , and many of the other layout files for document classes.
5883  This file is where sections and the like are defined: 
5884 \begin_inset Flex Code
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 stdsections.inc
5889 \end_layout
5890
5891 \end_inset
5892
5893  tells \SpecialChar LyX
5894  how paragraphs that are marked with the Section, Subsection, etc,
5895  styles can be translated into corresponding \SpecialChar LaTeX
5896 , DocBook, and XHTML commands
5897  and tags.
5898  The 
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 article.layout
5904 \end_layout
5905
5906 \end_inset
5907
5908  file basically just includes several of these 
5909 \begin_inset Flex Code
5910 status collapsed
5911
5912 \begin_layout Plain Layout
5913 std*.inc
5914 \end_layout
5915
5916 \end_inset
5917
5918  files.
5919 \end_layout
5920
5921 \begin_layout Standard
5922 Defining the \SpecialChar LyX
5923 –\SpecialChar LaTeX
5924  correspondence is not the only thing layout files do, though.
5925  Their other job is to define how the \SpecialChar LyX
5926  constructs themselves will appear
5927  on-screen.
5928  The fact that layout files have these two jobs is often a source of confusion,
5929  because they are completely separate.
5930  Telling \SpecialChar LyX
5931  how to translate a certain paragraph style into \SpecialChar LaTeX
5932  does not tell
5933  \SpecialChar LyX
5934  how to display it; conversely, telling \SpecialChar LyX
5935  how to display a certain paragraph
5936  style does not tell \SpecialChar LyX
5937  how to translate it into \SpecialChar LaTeX
5938  (let alone tell \SpecialChar LaTeX
5939  how to
5940  display it).
5941  So, in general, when you define a new \SpecialChar LyX
5942  construct, you must always do two
5943  quite separate things: (i)
5944 \begin_inset space ~
5945 \end_inset
5946
5947 tell \SpecialChar LyX
5948  how to translate it into \SpecialChar LaTeX
5949  and (ii)
5950 \begin_inset space ~
5951 \end_inset
5952
5953 tell \SpecialChar LyX
5954  how to display it.
5955 \end_layout
5956
5957 \begin_layout Standard
5958 Much the same is true, of course, as regards \SpecialChar LyX
5959 's other backend formats, though
5960  XHTML is in some ways different, because in that case \SpecialChar LyX
5961  
5962 \emph on
5963 is
5964 \emph default
5965  able, to some extent, to use information about how it should display a
5966  paragraph on the screen to output information (in the form of CSS) about
5967  how the paragraph should be displayed in a browser.
5968  Even in this case, however, the distinction between what \SpecialChar LyX
5969  does internally
5970  and how things are rendered externally remains in force, and the two can
5971  be controlled separately.
5972  See 
5973 \begin_inset CommandInset ref
5974 LatexCommand ref
5975 reference "sec:Tags-for-XHTML"
5976
5977 \end_inset
5978
5979  for the details.
5980 \end_layout
5981
5982 \begin_layout Section
5983 Installing new \SpecialChar LaTeX
5984  files
5985 \end_layout
5986
5987 \begin_layout Standard
5988 Some installations may not include a \SpecialChar LaTeX
5989  package or class file that you would
5990  like to use within \SpecialChar LyX
5991 .
5992  For example, you might need Foil\SpecialChar TeX
5993 , a package for preparing slides for overhead
5994  projectors.
5995  Modern \SpecialChar LaTeX
5996  distributions like \SpecialChar TeX
5997 Live (2008 or newer) or MiK\SpecialChar TeX
5998  provide a user interface
5999  for installing such packages.
6000  For example, with MiK\SpecialChar TeX
6001 , you start the program 
6002 \begin_inset Quotes eld
6003 \end_inset
6004
6005 Package
6006 \begin_inset space ~
6007 \end_inset
6008
6009 Manager
6010 \begin_inset Quotes erd
6011 \end_inset
6012
6013  to get a list of available packages.
6014  To install one of them, right click on it or use the corresponding toolbar
6015  button.
6016 \end_layout
6017
6018 \begin_layout Standard
6019 If your \SpecialChar LaTeX
6020  distribution does not provide such a `package manager', or if the
6021  package is not available from your distribution, then follow these steps
6022  to install it manually:
6023 \end_layout
6024
6025 \begin_layout Enumerate
6026 Get the package from 
6027 \begin_inset CommandInset href
6028 LatexCommand href
6029 name "CTAN"
6030 target "http://www.ctan.org/"
6031 literal "false"
6032
6033 \end_inset
6034
6035  or wherever.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 If the package contains a file with the ending 
6040 \begin_inset Quotes eld
6041 \end_inset
6042
6043
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 .ins
6049 \end_layout
6050
6051 \end_inset
6052
6053
6054 \begin_inset Quotes erd
6055 \end_inset
6056
6057  (is the case for Foil\SpecialChar TeX
6058 ) then open a console, change to the folder of this
6059  file and execute the command 
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 latex foiltex.ins
6065 \end_layout
6066
6067 \end_inset
6068
6069 .
6070  You have now unpacked the package and have all files to install it.
6071  Most \SpecialChar LaTeX
6072 -packages are not packed and you can skip this step.
6073 \end_layout
6074
6075 \begin_layout Enumerate
6076 Now you need to decide if the package should be available for all users
6077  or only for you.
6078 \end_layout
6079
6080 \begin_deeper
6081 \begin_layout Enumerate
6082 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6083  for all users on your system, then install it in your `local' \SpecialChar TeX
6084  tree, otherwise
6085  install it in your own `user' \SpecialChar TeX
6086  tree.
6087  Where these trees should be created, if they do not already exist, depends
6088  on your system.
6089  To find this out, look in the file 
6090 \begin_inset Flex Code
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 texmf.cnf
6095 \end_layout
6096
6097 \end_inset
6098
6099 .
6100 \begin_inset Foot
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 This is usually in the directory 
6105 \begin_inset Flex Code
6106 status collapsed
6107
6108 \begin_layout Plain Layout
6109 $TEXMF/web2c
6110 \end_layout
6111
6112 \end_inset
6113
6114 , though you can execute the command 
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119 kpsewhich texmf.cnf
6120 \end_layout
6121
6122 \end_inset
6123
6124  to locate it.
6125 \end_layout
6126
6127 \end_inset
6128
6129  The location of the `local' \SpecialChar TeX
6130  tree is defined by the 
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 TEXMFLOCAL
6136 \end_layout
6137
6138 \end_inset
6139
6140  variable; this is usually somewhere like 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 /usr/local/share/texmf
6146 \end_layout
6147
6148 \end_inset
6149
6150  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6151 Live
6152  distribution.
6153  The location of the `user' \SpecialChar TeX
6154  tree is defined by 
6155 \begin_inset Flex Code
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 TEXMFHOME
6160 \end_layout
6161
6162 \end_inset
6163
6164  and is commonly 
6165 \begin_inset Flex Code
6166 status collapsed
6167
6168 \begin_layout Plain Layout
6169 $HOME/texmf
6170 \end_layout
6171
6172 \end_inset
6173
6174  or 
6175 \begin_inset Flex Code
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179
6180 \family sans
6181 $HOME/.texliveXXXX
6182 \end_layout
6183
6184 \end_inset
6185
6186 .
6187  (If these variables are not predefined, you have to define them.) You'll
6188  probably need root permissions to create or modify the `local' tree, but
6189  not for your `user' tree.
6190 \begin_inset Newline newline
6191 \end_inset
6192
6193 In general, it is recommended to install in the user tree because your user
6194  will not be modified or even overwritten when you upgrade your system.
6195  It will typically also be backed up together with everything else when
6196  you backup your home directory (which, of course, you do on a regular basis).
6197 \end_layout
6198
6199 \begin_layout Enumerate
6200 On Windows, if you want the new package to be available for all users on
6201  your system, change to the folder where \SpecialChar LaTeX
6202  is installed and then change to
6203  the subfolder 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 ~
6209 \backslash
6210 tex
6211 \backslash
6212 latex
6213 \end_layout
6214
6215 \end_inset
6216
6217 .
6218  (For MiK\SpecialChar TeX
6219 , this would be by default the folder 
6220 \begin_inset Flex Code
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 ~:
6225 \backslash
6226 Programs
6227 \backslash
6228 MiKTeX
6229 \backslash
6230 tex
6231 \backslash
6232 latex
6233 \end_layout
6234
6235 \end_inset
6236
6237 .)
6238 \begin_inset Foot
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 Note that this will be the correct path only on English installations.
6243  On a German one, it would be 
6244 \begin_inset Flex Code
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248 ~:
6249 \backslash
6250 Programme
6251 \backslash
6252 MiKTeX
6253 \backslash
6254 tex
6255 \backslash
6256 latex
6257 \end_layout
6258
6259 \end_inset
6260
6261 , and similarly for other languages.
6262 \end_layout
6263
6264 \end_inset
6265
6266  Create there a new folder 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 foiltex
6272 \end_layout
6273
6274 \end_inset
6275
6276  and copy all files of the package into it.
6277  
6278 \begin_inset Newline newline
6279 \end_inset
6280
6281 If the package should only available for you or you don't have admin permissions
6282 , do the same, but in the local \SpecialChar LaTeX
6283  folder.
6284  E.
6285 \begin_inset space \thinspace{}
6286 \end_inset
6287
6288 g., for MiK\SpecialChar TeX
6289
6290 \begin_inset space ~
6291 \end_inset
6292
6293 2.8 under Windows XP, this would be the folder:
6294 \begin_inset Newline newline
6295 \end_inset
6296
6297
6298 \family sans
6299
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 ~:
6305 \backslash
6306 Documents and Settings
6307 \backslash
6308 <username>
6309 \backslash
6310 Application Data
6311 \backslash
6312
6313 \end_layout
6314
6315 \end_inset
6316
6317
6318 \begin_inset Newline newline
6319 \end_inset
6320
6321
6322 \family default
6323
6324 \begin_inset Phantom HPhantom
6325 status open
6326
6327 \begin_layout Plain Layout
6328
6329 \family sans
6330 ~:
6331 \backslash
6332
6333 \end_layout
6334
6335 \end_inset
6336
6337
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 MiKTeX
6343 \backslash
6344 2.8
6345 \backslash
6346 tex
6347 \backslash
6348 latex
6349 \end_layout
6350
6351 \end_inset
6352
6353
6354 \begin_inset Newline newline
6355 \end_inset
6356
6357 On Vista, it would be:
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 ~:
6367 \backslash
6368 Users
6369 \backslash
6370 <username>
6371 \backslash
6372 AppData
6373 \backslash
6374 Roaming
6375 \backslash
6376 2.8
6377 \backslash
6378 MiKTeX
6379 \backslash
6380 tex
6381 \backslash
6382 latex
6383 \end_layout
6384
6385 \end_inset
6386
6387
6388 \end_layout
6389
6390 \end_deeper
6391 \begin_layout Enumerate
6392 Now one only need to tell \SpecialChar LaTeX
6393  that there are new files.
6394  This depends on the used \SpecialChar LaTeX
6395 -Distribution:
6396 \end_layout
6397
6398 \begin_deeper
6399 \begin_layout Enumerate
6400 For \SpecialChar TeX
6401 Live execute the command 
6402 \begin_inset Flex Code
6403 status collapsed
6404
6405 \begin_layout Plain Layout
6406 texhash
6407 \end_layout
6408
6409 \end_inset
6410
6411  from a console.
6412  If you installed the package for all users, then you will probably need
6413  to have root permissions for that.
6414 \end_layout
6415
6416 \begin_layout Enumerate
6417 For MiK\SpecialChar TeX
6418 , if you have installed the package for all users, start the program
6419  
6420 \begin_inset Quotes eld
6421 \end_inset
6422
6423 Settings
6424 \begin_inset space ~
6425 \end_inset
6426
6427 (Admin)
6428 \begin_inset Quotes erd
6429 \end_inset
6430
6431  and press the button marked 
6432 \begin_inset Quotes eld
6433 \end_inset
6434
6435 Refresh FNDB
6436 \begin_inset Quotes erd
6437 \end_inset
6438
6439 .
6440  Otherwise start the program 
6441 \begin_inset Quotes eld
6442 \end_inset
6443
6444 Settings
6445 \begin_inset Quotes erd
6446 \end_inset
6447
6448  and do the same.
6449 \end_layout
6450
6451 \end_deeper
6452 \begin_layout Enumerate
6453 Finally, you need to tell \SpecialChar LyX
6454  that there are new packages available.
6455  So, in \SpecialChar LyX
6456 , use the menu 
6457 \begin_inset Flex Noun
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 Tools
6462 \family sans
6463 \SpecialChar menuseparator
6464 Reconfigure
6465 \end_layout
6466
6467 \end_inset
6468
6469  and then restart \SpecialChar LyX
6470 .
6471 \end_layout
6472
6473 \begin_layout Standard
6474 Now the package is installed.
6475  In our example, the document class 
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 FoilTex
6481 \end_layout
6482
6483 \end_inset
6484
6485  will now be available under 
6486 \begin_inset Flex Noun
6487 status collapsed
6488
6489 \begin_layout Plain Layout
6490 Document\SpecialChar menuseparator
6491 Settings\SpecialChar menuseparator
6492 Document Class
6493 \end_layout
6494
6495 \end_inset
6496
6497  (in the 
6498 \begin_inset Quotes eld
6499 \end_inset
6500
6501 Presentations
6502 \begin_inset Quotes erd
6503 \end_inset
6504
6505  category).
6506  
6507 \end_layout
6508
6509 \begin_layout Standard
6510 If you would like to use a \SpecialChar LaTeX
6511  document class that is not even listed in the
6512  menu 
6513 \begin_inset Flex Noun
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 Document\SpecialChar menuseparator
6518 Settings\SpecialChar menuseparator
6519 Document Class
6520 \end_layout
6521
6522 \end_inset
6523
6524 , then you need to create a `layout' file for it.
6525  That is the topic of the next section.
6526 \end_layout
6527
6528 \begin_layout Section
6529 Types of layout files
6530 \end_layout
6531
6532 \begin_layout Standard
6533 This section describes the various sorts of \SpecialChar LyX
6534  files that contain layout informati
6535 on.
6536  These files describe various paragraph and character styles, determining
6537  how \SpecialChar LyX
6538  should display them and how they should be translated into \SpecialChar LaTeX
6539 , DocBook,
6540  XHTML, or whatever output format is being used.
6541  
6542 \end_layout
6543
6544 \begin_layout Standard
6545 We shall try to provide a thorough description of the process of writing
6546  layout files here.
6547  However, there are so many different types of documents supported even
6548  by just \SpecialChar LaTeX
6549  that we can't hope to cover every different possibility or problem
6550  you might encounter.
6551  The \SpecialChar LyX
6552  users' list is frequented by people with lots of experience with layout
6553  design who are willing to share what they've learned, so please feel free
6554  to ask questions there.
6555 \end_layout
6556
6557 \begin_layout Standard
6558 As you prepare to write a new layout, it is extremely helpful to look at
6559  the layouts distributed with \SpecialChar LyX
6560 .
6561  If you write a \SpecialChar LyX
6562  layout for a \SpecialChar LaTeX
6563  document class that might also be used by
6564  others, or write a module that might be useful to others, then you should
6565  consider posting your layout to the 
6566 \begin_inset CommandInset href
6567 LatexCommand href
6568 name "layout section on the LyX wiki"
6569 target "https://wiki.lyx.org/Layouts/Layouts"
6570 literal "false"
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.3, the current layout format is 63.)
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 (Standard Class)}
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 (My Class)}
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 (My Class)
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 Class} 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166 #DescriptionBegin 
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170 #Support for myclass.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 63
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{myclass}
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 \begin_inset Newline linebreak
7458 \end_inset
7459
7460
7461 \begin_inset Flex Code
7462 status collapsed
7463
7464 \begin_layout Plain Layout
7465 defaults.lyx
7466 \end_layout
7467
7468 \end_inset
7469
7470 .
7471  This template is loaded every time you create a new document with 
7472 \begin_inset Flex Noun
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 File\SpecialChar menuseparator
7477 New
7478 \end_layout
7479
7480 \end_inset
7481
7482  in order to provide useful defaults.
7483  To create this template from inside \SpecialChar LyX
7484 , all you have to do is to open a document
7485  with the correct settings, and use the 
7486 \begin_inset Flex Noun
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 Save as Document Defaults
7491 \end_layout
7492
7493 \end_inset
7494
7495  button.
7496 \end_layout
7497
7498 \begin_layout Subsection
7499 Upgrading old layout files
7500 \end_layout
7501
7502 \begin_layout Standard
7503 The format of layout files changes with each \SpecialChar LyX
7504  release, so old layout files
7505  need to be converted to the new format.
7506  If \SpecialChar LyX
7507  reads a layout file in an older format, it automatically calls the
7508  script 
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 layout2layout.py
7514 \end_layout
7515
7516 \end_inset
7517
7518  to convert it to a temporary file in current format.
7519  The original file is left untouched.
7520  If you use the layout file often, then, you may want to convert it permanently,
7521  so that \SpecialChar LyX
7522  does not have to do so itself every time.
7523  To do this, you can call the converter manually:
7524 \end_layout
7525
7526 \begin_layout Enumerate
7527 rename the file 
7528 \begin_inset Flex Code
7529 status collapsed
7530
7531 \begin_layout Plain Layout
7532 myclass.layout
7533 \end_layout
7534
7535 \end_inset
7536
7537  to 
7538 \begin_inset Flex Code
7539 status collapsed
7540
7541 \begin_layout Plain Layout
7542 myclass.old
7543 \end_layout
7544
7545 \end_inset
7546
7547
7548 \end_layout
7549
7550 \begin_layout Enumerate
7551 Call the command
7552 \begin_inset Newline newline
7553 \end_inset
7554
7555
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7561 \end_layout
7562
7563 \end_inset
7564
7565
7566 \begin_inset Newline newline
7567 \end_inset
7568
7569 where 
7570 \begin_inset Flex Code
7571 status collapsed
7572
7573 \begin_layout Plain Layout
7574 LyXDir
7575 \end_layout
7576
7577 \end_inset
7578
7579  is the name of your \SpecialChar LyX
7580  system directory.
7581 \end_layout
7582
7583 \begin_layout Standard
7584 Note that manual conversion does not affect included files, so these will
7585  have to be converted separately.
7586 \end_layout
7587
7588 \begin_layout Subsection
7589 \begin_inset CommandInset label
7590 LatexCommand label
7591 name "subsec:Cite-Engine-Files"
7592
7593 \end_inset
7594
7595 Cite engine files
7596 \end_layout
7597
7598 \begin_layout Standard
7599 A specific form of layout files are the so-called 
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 *.citeengine
7605 \end_layout
7606
7607 \end_inset
7608
7609  files that are located in the 
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 citeengines/
7615 \end_layout
7616
7617 \end_inset
7618
7619  sub-directory.
7620  Their purpose is to define the specifics of \SpecialChar LaTeX
7621  packages aimed at bibliography
7622  generation, such as 
7623 \family sans
7624 natbib
7625 \family default
7626 ,
7627 \family sans
7628  jurabib
7629 \family default
7630  or 
7631 \family sans
7632 biblatex
7633 \family default
7634 , but also the way how normal Bib\SpecialChar TeX
7635  citations (without additional packages)
7636  are handled in \SpecialChar LyX
7637  is defined in such a file.
7638  
7639 \end_layout
7640
7641 \begin_layout Standard
7642 More specifically, it is defined which packages \SpecialChar LyX
7643  needs to load, which citation
7644  commands are available, how these are to be displayed in \SpecialChar LyX
7645  (in the workarea,
7646  the dialogs, the context menus) as well as in the XHTML and plain text
7647  output.
7648  Furthermore, the files specify available style variants (author-year, numerical
7649 , etc.) and their specifics.
7650  The cite engine files are also used to generate the options that are available
7651  in 
7652 \family sans
7653 Document\SpecialChar menuseparator
7654 Settings\SpecialChar menuseparator
7655 Bibliography\SpecialChar menuseparator
7656 Style engine
7657 \family default
7658 .
7659 \end_layout
7660
7661 \begin_layout Standard
7662 Even though a cite engine file is essentially a normal layout file that
7663  could theoretically include any layout information, it usually primarily
7664  includes some specific parameters such as 
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 MaxCiteNames
7670 \end_layout
7671
7672 \end_inset
7673
7674
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 CiteFramework
7680 \end_layout
7681
7682 \end_inset
7683
7684
7685 \begin_inset Flex Code
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 CiteEngine
7690 \end_layout
7691
7692 \end_inset
7693
7694  and 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 CiteFormat
7700 \end_layout
7701
7702 \end_inset
7703
7704  blocks.
7705  The syntax of the latter two is described in 
7706 \begin_inset CommandInset ref
7707 LatexCommand ref
7708 reference "subsec:Citation-engine-description"
7709 plural "false"
7710 caps "false"
7711 noprefix "false"
7712
7713 \end_inset
7714
7715  and 
7716 \begin_inset CommandInset ref
7717 LatexCommand ref
7718 reference "subsec:Citation-format-description"
7719
7720 \end_inset
7721
7722 , as well as in the files themselves.
7723 \end_layout
7724
7725 \begin_layout Section
7726 \begin_inset CommandInset label
7727 LatexCommand label
7728 name "sec:TextClass"
7729
7730 \end_inset
7731
7732 The layout file format
7733 \end_layout
7734
7735 \begin_layout Standard
7736 The following sections describe how layout files are structured and written.
7737  Our advice is to go slowly, save and test often.
7738  It is really not that hard, except that the multitude of options can become
7739  overwhelming, especially if you try to check out too many at once.
7740  It becomes easier if you use existing layouts of \SpecialChar LyX
7741  as examples/reference
7742  or if you modify an existing layout to your needs.
7743 \end_layout
7744
7745 \begin_layout Standard
7746 Note that all the tags used in layout files are case-insensitive.
7747  This means that 
7748 \begin_inset Flex Code
7749 status collapsed
7750
7751 \begin_layout Plain Layout
7752 Style
7753 \end_layout
7754
7755 \end_inset
7756
7757
7758 \begin_inset Flex Code
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 style
7763 \end_layout
7764
7765 \end_inset
7766
7767  and 
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 StYlE
7773 \end_layout
7774
7775 \end_inset
7776
7777  are really the same tag.
7778  The possible arguments are printed in brackets after the tag's name.
7779  The default argument is typeset 
7780 \begin_inset Flex Code
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784
7785 \emph on
7786 emphasized
7787 \end_layout
7788
7789 \end_inset
7790
7791 .
7792  If the argument has a data type like 
7793 \begin_inset Quotes eld
7794 \end_inset
7795
7796 string
7797 \begin_inset Quotes erd
7798 \end_inset
7799
7800  or 
7801 \begin_inset Quotes eld
7802 \end_inset
7803
7804 float
7805 \begin_inset Quotes erd
7806 \end_inset
7807
7808 , the default is shown like this: 
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 float=
7814 \emph on
7815 default
7816 \end_layout
7817
7818 \end_inset
7819
7820 .
7821 \end_layout
7822
7823 \begin_layout Subsection
7824 The document class declaration and classification
7825 \end_layout
7826
7827 \begin_layout Standard
7828 Lines in a layout file which begin with 
7829 \begin_inset Flex Code
7830 status collapsed
7831
7832 \begin_layout Plain Layout
7833 #
7834 \end_layout
7835
7836 \end_inset
7837
7838  are comments.
7839  There is one exception to this rule.
7840  All 
7841 \begin_inset Flex Code
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845 *.layout
7846 \end_layout
7847
7848 \end_inset
7849
7850  files should begin with lines like:
7851 \end_layout
7852
7853 \begin_layout LyX-Code
7854
7855 \size small
7856 #% Do not delete the line below; configure depends on this 
7857 \end_layout
7858
7859 \begin_layout LyX-Code
7860
7861 \size small
7862 #  
7863 \backslash
7864 DeclareLaTeXClass{Article (Standard Class)}
7865 \end_layout
7866
7867 \begin_layout LyX-Code
7868
7869 \size small
7870 #  
7871 \backslash
7872 DeclareCategory{Articles}
7873 \end_layout
7874
7875 \begin_layout Standard
7876 The second and third lines are used when you (re)configure \SpecialChar LyX
7877 .
7878  The layout file is read by the \SpecialChar LaTeX
7879  script 
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 chkconfig.ltx
7885 \end_layout
7886
7887 \end_inset
7888
7889 , in a special mode where 
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 #
7895 \end_layout
7896
7897 \end_inset
7898
7899  is ignored.
7900  The first line is just a \SpecialChar LaTeX
7901  comment, the second one contains the mandatory
7902  declaration of the text class and the third line contains the optional
7903  classification of the class.
7904  If these lines appear in a file named 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 article.layout
7910 \end_layout
7911
7912 \end_inset
7913
7914 , then they define a text class of name 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 article
7920 \end_layout
7921
7922 \end_inset
7923
7924  (the name of the layout file) which uses the \SpecialChar LaTeX
7925  document class 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 article.cls
7931 \end_layout
7932
7933 \end_inset
7934
7935  (the default is to use the same name as the layout).
7936  The string 
7937 \begin_inset Quotes eld
7938 \end_inset
7939
7940 Article (Standard Class)
7941 \begin_inset Quotes erd
7942 \end_inset
7943
7944  that appears above is used as a description of the text class in the 
7945 \begin_inset Flex Noun
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 Document\SpecialChar menuseparator
7950 Settings
7951 \end_layout
7952
7953 \end_inset
7954
7955  dialog.
7956  The category (
7957 \begin_inset Quotes eld
7958 \end_inset
7959
7960 Articles
7961 \begin_inset Quotes erd
7962 \end_inset
7963
7964  in the example) is also used in the 
7965 \begin_inset Flex Noun
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 Document\SpecialChar menuseparator
7970 Settings
7971 \end_layout
7972
7973 \end_inset
7974
7975  dialog: the text classes are grouped by these categories (which are usually
7976  genres, so typical categories are 
7977 \begin_inset Quotes eld
7978 \end_inset
7979
7980 Articles
7981 \begin_inset Quotes erd
7982 \end_inset
7983
7984
7985 \begin_inset Quotes eld
7986 \end_inset
7987
7988 Books
7989 \begin_inset Quotes erd
7990 \end_inset
7991
7992
7993 \begin_inset Quotes eld
7994 \end_inset
7995
7996 Reports
7997 \begin_inset Quotes erd
7998 \end_inset
7999
8000
8001 \begin_inset Quotes eld
8002 \end_inset
8003
8004 Letters
8005 \begin_inset Quotes erd
8006 \end_inset
8007
8008
8009 \begin_inset Quotes eld
8010 \end_inset
8011
8012 Presentations
8013 \begin_inset Quotes erd
8014 \end_inset
8015
8016
8017 \begin_inset Quotes eld
8018 \end_inset
8019
8020 Curricula Vitae
8021 \begin_inset Quotes erd
8022 \end_inset
8023
8024  etc.).
8025  If no category has been declared, the class will be put in the 
8026 \begin_inset Quotes eld
8027 \end_inset
8028
8029 Uncategorized
8030 \begin_inset Quotes erd
8031 \end_inset
8032
8033  group.
8034 \end_layout
8035
8036 \begin_layout Standard
8037 Let's assume that you wrote your own text class that uses the 
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 article.cls
8043 \end_layout
8044
8045 \end_inset
8046
8047  document class, but where you changed the appearance of the section headings.
8048  If you put it in a file 
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 myarticle.layout
8054 \end_layout
8055
8056 \end_inset
8057
8058 , the header of this file should be:
8059 \end_layout
8060
8061 \begin_layout LyX-Code
8062
8063 \size small
8064 #% Do not delete the line below; configure depends on this 
8065 \end_layout
8066
8067 \begin_layout LyX-Code
8068
8069 \size small
8070 #  
8071 \backslash
8072 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8073 \end_layout
8074
8075 \begin_layout LyX-Code
8076
8077 \size small
8078 #  
8079 \backslash
8080 DeclareCategory{Articles}
8081 \end_layout
8082
8083 \begin_layout Standard
8084 This declares a text class 
8085 \begin_inset Flex Code
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 myarticle
8090 \end_layout
8091
8092 \end_inset
8093
8094 , associated with the \SpecialChar LaTeX
8095  document class 
8096 \begin_inset Flex Code
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 article.cls
8101 \end_layout
8102
8103 \end_inset
8104
8105  and described as 
8106 \begin_inset Quotes eld
8107 \end_inset
8108
8109 Article (with My Own Headings)
8110 \begin_inset Quotes erd
8111 \end_inset
8112
8113 .
8114  If your text class depends on several packages, you can declare it as:
8115 \end_layout
8116
8117 \begin_layout LyX-Code
8118
8119 \size small
8120 #% Do not delete the line below; configure depends on this 
8121 \end_layout
8122
8123 \begin_layout LyX-Code
8124
8125 \size small
8126 #  
8127 \backslash
8128 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8129 \end_layout
8130
8131 \begin_layout LyX-Code
8132
8133 \size small
8134 #  
8135 \backslash
8136 DeclareCategory{Articles}
8137 \end_layout
8138
8139 \begin_layout Standard
8140 This indicates that your text class uses the 
8141 \begin_inset Flex Code
8142 status collapsed
8143
8144 \begin_layout Plain Layout
8145 foo.sty
8146 \end_layout
8147
8148 \end_inset
8149
8150  package.
8151  Finally, it is also possible to declare classes for DocBook code.
8152  Typical declarations will look like:
8153 \end_layout
8154
8155 \begin_layout LyX-Code
8156
8157 \size small
8158 #% Do not delete the line below; configure depends on this 
8159 \end_layout
8160
8161 \begin_layout LyX-Code
8162
8163 \size small
8164
8165 \backslash
8166 DeclareDocBookClass[article]{SGML (DocBook Article)}
8167 \end_layout
8168
8169 \begin_layout LyX-Code
8170
8171 \size small
8172
8173 \backslash
8174 DeclareCategory{Articles (DocBook)}
8175 \end_layout
8176
8177 \begin_layout Standard
8178 Note that these declarations can also be given an optional parameter declaring
8179  the name of the document class (but not a list).
8180 \end_layout
8181
8182 \begin_layout Standard
8183 So, to be as explicit as possible, the form of the layout declaration is:
8184 \end_layout
8185
8186 \begin_layout LyX-Code
8187
8188 \size small
8189 #  
8190 \backslash
8191 DeclareLaTeXClass[class,package.sty]{layout description}
8192 \end_layout
8193
8194 \begin_layout LyX-Code
8195
8196 \size small
8197 #  
8198 \backslash
8199 DeclareCategory{category}
8200 \end_layout
8201
8202 \begin_layout Standard
8203 The class need only be specified if the name of the \SpecialChar LaTeX
8204  class file and the
8205  name of the layout file are different or if there are packages to load.
8206  If the name of the class file is not specified, then \SpecialChar LyX
8207  will simply assume
8208  that it is the same as the name of the layout file.
8209 \end_layout
8210
8211 \begin_layout Standard
8212 When the text class has been modified to your taste, all you have to do
8213  is to copy it either to 
8214 \begin_inset Flex Code
8215 status collapsed
8216
8217 \begin_layout Plain Layout
8218 LyXDir/layouts/
8219 \end_layout
8220
8221 \end_inset
8222
8223  or to 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 UserDir/layouts
8229 \end_layout
8230
8231 \end_inset
8232
8233 , run 
8234 \begin_inset Flex Noun
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 Tools\SpecialChar menuseparator
8239 Reconfigure
8240 \end_layout
8241
8242 \end_inset
8243
8244 , exit \SpecialChar LyX
8245  and restart.
8246  Then your new text class should be available along with the others.
8247 \end_layout
8248
8249 \begin_layout Standard
8250 Once the layout file is installed, you can edit it and see your changes
8251  without having to reconfigure or to restart \SpecialChar LyX
8252 .
8253 \begin_inset Foot
8254 status collapsed
8255
8256 \begin_layout Plain Layout
8257 In versions of \SpecialChar LyX
8258  prior to 1.6, this was not true.
8259  As a result, editing layout files was very time consuming, since you had
8260  constantly to restart \SpecialChar LyX
8261  to see changes.
8262 \end_layout
8263
8264 \end_inset
8265
8266  You can force a reload of the current layout by using the \SpecialChar LyX
8267  function 
8268 \begin_inset Flex Noun
8269 status collapsed
8270
8271 \begin_layout Plain Layout
8272 layout-reload
8273 \end_layout
8274
8275 \end_inset
8276
8277 .
8278  There is no default binding for this function—though, of course, you can
8279  bind it to a key yourself.
8280  But you will normally use this function simply by entering it in the mini-buffe
8281 r.
8282  
8283 \end_layout
8284
8285 \begin_layout Standard
8286
8287 \emph on
8288 Warning
8289 \emph default
8290
8291 \begin_inset Flex Noun
8292 status collapsed
8293
8294 \begin_layout Plain Layout
8295 layout-reload
8296 \end_layout
8297
8298 \end_inset
8299
8300  is very much an `advanced feature'.
8301  It is 
8302 \emph on
8303 strongly
8304 \emph default
8305  recommended that you save your work before using this function.
8306  In fact, it is 
8307 \emph on
8308 strongly
8309 \emph default
8310  recommended that you not attempt to edit layout information while simultaneousl
8311 y working on a document that you care about.
8312  Use a test document.
8313  Syntax errors and the like in your layout file could cause peculiar behavior.
8314  In particular, such errors could cause \SpecialChar LyX
8315  to regard the current layout as
8316  invalid and to attempt to switch to some other layout.
8317 \begin_inset Foot
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 Really bad syntax errors may even caused \SpecialChar LyX
8322  to exit.
8323  This is because certain sorts of errors may make \SpecialChar LyX
8324  unable to read 
8325 \emph on
8326 any
8327 \emph default
8328  layout information.
8329  Please be careful.
8330 \end_layout
8331
8332 \end_inset
8333
8334  The \SpecialChar LyX
8335  team strives to keep \SpecialChar LyX
8336  stable in such situations, but safe is better
8337  than sorry.
8338 \begin_inset Foot
8339 status collapsed
8340
8341 \begin_layout Plain Layout
8342 While we're giving advice: make regular backups.
8343  And be nice to your mother.
8344 \end_layout
8345
8346 \end_inset
8347
8348
8349 \end_layout
8350
8351 \begin_layout Subsection
8352 The Module declaration
8353 \end_layout
8354
8355 \begin_layout Standard
8356 A module must begin with a line like the following:
8357 \end_layout
8358
8359 \begin_layout LyX-Code
8360 #
8361 \backslash
8362 DeclareLyXModule[endnotes.sty]{Endnotes} 
8363 \end_layout
8364
8365 \begin_layout Standard
8366 The mandatory argument, in curly brackets, is the name of the module, as
8367  it should appear in 
8368 \begin_inset Flex Noun
8369 status collapsed
8370
8371 \begin_layout Plain Layout
8372 Document\SpecialChar menuseparator
8373 Settings\SpecialChar menuseparator
8374 Modules
8375 \end_layout
8376
8377 \end_inset
8378
8379 .
8380  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8381  packages
8382  on which the module depends.
8383  It is also possible to use the form 
8384 \begin_inset Flex Noun
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 from->to
8389 \end_layout
8390
8391 \end_inset
8392
8393  as an optional argument, which declares that the module can only be used
8394  when there exists a conversion chain between the formats `
8395 \begin_inset Flex Code
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 from
8400 \end_layout
8401
8402 \end_inset
8403
8404 ' and `
8405 \begin_inset Flex Code
8406 status collapsed
8407
8408 \begin_layout Plain Layout
8409 to
8410 \end_layout
8411
8412 \end_inset
8413
8414 '.
8415 \end_layout
8416
8417 \begin_layout Standard
8418 The module declaration should then be followed by lines like the following:
8419 \begin_inset Foot
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Preferably in English if the module should be published with \SpecialChar LyX
8424 .
8425  This description will appear in the list of messages to be translated and
8426  will be thus translated with the next interface update.
8427 \end_layout
8428
8429 \end_inset
8430
8431
8432 \end_layout
8433
8434 \begin_layout LyX-Code
8435 #DescriptionBegin 
8436 \end_layout
8437
8438 \begin_layout LyX-Code
8439 #Adds an endnote command, in addition to footnotes.
8440  
8441 \end_layout
8442
8443 \begin_layout LyX-Code
8444 #You will need to add  
8445 \backslash
8446 theendnotes in TeX code where you 
8447 \end_layout
8448
8449 \begin_layout LyX-Code
8450 #want the endnotes to appear.
8451  
8452 \end_layout
8453
8454 \begin_layout LyX-Code
8455 #DescriptionEnd 
8456 \end_layout
8457
8458 \begin_layout LyX-Code
8459 #Requires: somemodule | othermodule
8460 \end_layout
8461
8462 \begin_layout LyX-Code
8463 #Excludes: badmodule
8464 \end_layout
8465
8466 \begin_layout Standard
8467 The description is used in 
8468 \begin_inset Flex Noun
8469 status collapsed
8470
8471 \begin_layout Plain Layout
8472 Document\SpecialChar menuseparator
8473 Settings\SpecialChar menuseparator
8474 Modules
8475 \end_layout
8476
8477 \end_inset
8478
8479  to provide the user with information about what the module does.
8480  The 
8481 \begin_inset Flex Code
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 Requires
8486 \end_layout
8487
8488 \end_inset
8489
8490  line is used to identify other modules with which this one must be used;
8491  the 
8492 \begin_inset Flex Code
8493 status collapsed
8494
8495 \begin_layout Plain Layout
8496 Excludes
8497 \end_layout
8498
8499 \end_inset
8500
8501  line is used to identify modules with which this one may not be used.
8502  Both are optional, and, as shown, multiple modules should be separated
8503  with the pipe symbol: |.
8504  Note that the required modules are treated disjunctively: 
8505 \emph on
8506 at least one
8507 \emph default
8508  of the required modules must be used.
8509  Similarly, 
8510 \emph on
8511 no
8512 \emph default
8513  excluded module may be used.
8514  Note that modules are identified here by their filenames without the 
8515 \begin_inset Flex Code
8516 status collapsed
8517
8518 \begin_layout Plain Layout
8519 .module
8520 \end_layout
8521
8522 \end_inset
8523
8524  extension.
8525  So 
8526 \begin_inset Flex Code
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 somemodule
8531 \end_layout
8532
8533 \end_inset
8534
8535  is really 
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 somemodule.module
8541 \end_layout
8542
8543 \end_inset
8544
8545 .
8546 \end_layout
8547
8548 \begin_layout Subsection
8549 The CiteEngine file declaration
8550 \end_layout
8551
8552 \begin_layout Standard
8553 A cite engine file must begin with a line like the following:
8554 \end_layout
8555
8556 \begin_layout LyX-Code
8557 #
8558 \backslash
8559 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8560 \end_layout
8561
8562 \begin_layout Standard
8563 The mandatory argument, in curly brackets, is the name of the cite style,
8564  as it should appear in 
8565 \begin_inset Flex Noun
8566 status collapsed
8567
8568 \begin_layout Plain Layout
8569 Document\SpecialChar menuseparator
8570 Settings\SpecialChar menuseparator
8571 Bibliography
8572 \end_layout
8573
8574 \end_inset
8575
8576 .
8577  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8578  packages
8579  on which the cite engine depends.
8580 \end_layout
8581
8582 \begin_layout Standard
8583 The cite engine declaration should then be followed by lines like the following:
8584 \begin_inset Foot
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588 Preferably in English if the module should be published with \SpecialChar LyX
8589 .
8590  This description will appear in the list of messages to be translated and
8591  will be thus translated with the next interface update.
8592 \end_layout
8593
8594 \end_inset
8595
8596
8597 \end_layout
8598
8599 \begin_layout LyX-Code
8600 # DescriptionBegin
8601 \end_layout
8602
8603 \begin_layout LyX-Code
8604 #   Biblatex supports many author-year and numerical styles.
8605 \end_layout
8606
8607 \begin_layout LyX-Code
8608 #   It is mainly aimed at the Humanities.
8609  It is highly
8610 \end_layout
8611
8612 \begin_layout LyX-Code
8613 #   customizable, fully localized and provides many features
8614 \end_layout
8615
8616 \begin_layout LyX-Code
8617 #   that are not possible with BibTeX.
8618  The use of 'biber' as
8619 \end_layout
8620
8621 \begin_layout LyX-Code
8622 #   bibliography processor is advised.
8623 \end_layout
8624
8625 \begin_layout LyX-Code
8626 # DescriptionEnd
8627 \end_layout
8628
8629 \begin_layout Standard
8630 The description is used in 
8631 \begin_inset Flex Noun
8632 status collapsed
8633
8634 \begin_layout Plain Layout
8635 Document\SpecialChar menuseparator
8636 Settings\SpecialChar menuseparator
8637 Bibliography
8638 \end_layout
8639
8640 \end_inset
8641
8642  to provide the user with information about the cite engine.
8643 \end_layout
8644
8645 \begin_layout Subsection
8646 Format number
8647 \end_layout
8648
8649 \begin_layout Standard
8650 The first non-comment line of any layout file, included file, or module
8651  
8652 \emph on
8653 must
8654 \emph default
8655  contain the file format number:
8656 \end_layout
8657
8658 \begin_layout Description
8659 \begin_inset Flex Code
8660 status collapsed
8661
8662 \begin_layout Plain Layout
8663 Format
8664 \end_layout
8665
8666 \end_inset
8667
8668  [
8669 \begin_inset Flex Code
8670 status collapsed
8671
8672 \begin_layout Plain Layout
8673 int
8674 \end_layout
8675
8676 \end_inset
8677
8678 ] The format number of the layout file.
8679 \end_layout
8680
8681 \begin_layout Standard
8682 This tag was introduced with \SpecialChar LyX
8683
8684 \begin_inset space ~
8685 \end_inset
8686
8687 1.4.0.
8688  Layout files from older \SpecialChar LyX
8689  versions do not have an explicit file format and
8690  are considered to have 
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 Format
8696 \begin_inset space ~
8697 \end_inset
8698
8699 1
8700 \end_layout
8701
8702 \end_inset
8703
8704 .
8705  The format for the present version of \SpecialChar LyX
8706  is format 60.
8707  But each version of \SpecialChar LyX
8708  is capable of reading earlier versions' layout files,
8709  just as they are capable of reading files produced by earlier versions
8710  of \SpecialChar LyX
8711 .
8712  There is, however, no provision for converting to earlier formats.
8713 \end_layout
8714
8715 \begin_layout Subsection
8716 \begin_inset CommandInset label
8717 LatexCommand label
8718 name "subsec:General-text-class"
8719
8720 \end_inset
8721
8722 General text class parameters
8723 \end_layout
8724
8725 \begin_layout Standard
8726 These are general parameters that govern the behavior of an entire document
8727  class.
8728  (This does 
8729 \emph on
8730 not
8731 \emph default
8732  mean that they must appear in 
8733 \begin_inset Flex Code
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 .layout
8738 \end_layout
8739
8740 \end_inset
8741
8742  files rather than in modules.
8743  A module can contain any layout tag.)
8744 \end_layout
8745
8746 \begin_layout Description
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 AddToHTMLPreamble
8752 \end_layout
8753
8754 \end_inset
8755
8756  Adds information that will be output in the 
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 <head>
8762 \end_layout
8763
8764 \end_inset
8765
8766  block when the document is output to XHTML.
8767  Typically, this would be used to output CSS style information, but it can
8768  be used for anything that can appear in 
8769 \begin_inset Flex Code
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 <head>
8774 \end_layout
8775
8776 \end_inset
8777
8778 .
8779  Must end with 
8780 \begin_inset Quotes eld
8781 \end_inset
8782
8783
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 EndPreamble
8789 \end_layout
8790
8791 \end_inset
8792
8793
8794 \begin_inset Quotes erd
8795 \end_inset
8796
8797 .
8798 \end_layout
8799
8800 \begin_layout Description
8801 \begin_inset Flex Code
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 AddToPreamble
8806 \end_layout
8807
8808 \end_inset
8809
8810  Adds information to the document preamble.
8811  Must end with
8812 \begin_inset Newline newline
8813 \end_inset
8814
8815
8816 \begin_inset Quotes eld
8817 \end_inset
8818
8819
8820 \begin_inset Flex Code
8821 status collapsed
8822
8823 \begin_layout Plain Layout
8824 EndPreamble
8825 \end_layout
8826
8827 \end_inset
8828
8829
8830 \begin_inset Quotes erd
8831 \end_inset
8832
8833 .
8834 \end_layout
8835
8836 \begin_layout Description
8837 \begin_inset Flex Code
8838 status collapsed
8839
8840 \begin_layout Plain Layout
8841 CiteEngine <engine>
8842 \end_layout
8843
8844 \end_inset
8845
8846  Defines the possibilities for displaying citation references.
8847  See 
8848 \begin_inset CommandInset ref
8849 LatexCommand ref
8850 reference "subsec:Citation-engine-description"
8851 plural "false"
8852 caps "false"
8853 noprefix "false"
8854
8855 \end_inset
8856
8857  for details.
8858  Must end with 
8859 \begin_inset Quotes eld
8860 \end_inset
8861
8862
8863 \begin_inset Flex Code
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867 End
8868 \end_layout
8869
8870 \end_inset
8871
8872
8873 \begin_inset Quotes erd
8874 \end_inset
8875
8876 .
8877  Primarily used in cite engine files (see 
8878 \begin_inset CommandInset ref
8879 LatexCommand ref
8880 reference "subsec:Cite-Engine-Files"
8881 plural "false"
8882 caps "false"
8883 noprefix "false"
8884
8885 \end_inset
8886
8887 ).
8888 \end_layout
8889
8890 \begin_layout Description
8891 \begin_inset Flex Code
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 CiteFormat
8896 \end_layout
8897
8898 \end_inset
8899
8900  Defines formats for use in the display of bibliographic information.
8901  See 
8902 \begin_inset CommandInset ref
8903 LatexCommand ref
8904 reference "subsec:Citation-format-description"
8905
8906 \end_inset
8907
8908  for details.
8909  Must end with 
8910 \begin_inset Quotes eld
8911 \end_inset
8912
8913
8914 \begin_inset Flex Code
8915 status collapsed
8916
8917 \begin_layout Plain Layout
8918 End
8919 \end_layout
8920
8921 \end_inset
8922
8923
8924 \begin_inset Quotes erd
8925 \end_inset
8926
8927 .
8928  Primarily used in cite engine files (see 
8929 \begin_inset CommandInset ref
8930 LatexCommand ref
8931 reference "subsec:Cite-Engine-Files"
8932 plural "false"
8933 caps "false"
8934 noprefix "false"
8935
8936 \end_inset
8937
8938 ).
8939 \end_layout
8940
8941 \begin_layout Description
8942 \begin_inset Flex Code
8943 status collapsed
8944
8945 \begin_layout Plain Layout
8946 CiteFramework
8947 \end_layout
8948
8949 \end_inset
8950
8951  [
8952 \begin_inset Flex Code
8953 status collapsed
8954
8955 \begin_layout Plain Layout
8956
8957 \emph on
8958 bibtex
8959 \end_layout
8960
8961 \end_inset
8962
8963 ,
8964 \begin_inset Flex Code
8965 status collapsed
8966
8967 \begin_layout Plain Layout
8968 biblatex
8969 \end_layout
8970
8971 \end_inset
8972
8973 ] Determines whether 
8974 \family sans
8975 Biblatex
8976 \family default
8977  or Bib\SpecialChar TeX
8978  is used to generate a Bibliography.
8979  Primarily used in cite engine files (see 
8980 \begin_inset CommandInset ref
8981 LatexCommand ref
8982 reference "subsec:Cite-Engine-Files"
8983 plural "false"
8984 caps "false"
8985 noprefix "false"
8986
8987 \end_inset
8988
8989 ).
8990 \end_layout
8991
8992 \begin_layout Description
8993 \begin_inset Flex Code
8994 status collapsed
8995
8996 \begin_layout Plain Layout
8997 ClassOptions
8998 \end_layout
8999
9000 \end_inset
9001
9002  Describes various global options supported by the document class.
9003  See 
9004 \begin_inset CommandInset ref
9005 LatexCommand ref
9006 reference "subsec:ClassOptions"
9007
9008 \end_inset
9009
9010  for a description.
9011  Must end with 
9012 \begin_inset Quotes eld
9013 \end_inset
9014
9015
9016 \begin_inset Flex Code
9017 status collapsed
9018
9019 \begin_layout Plain Layout
9020 End
9021 \end_layout
9022
9023 \end_inset
9024
9025
9026 \begin_inset Quotes erd
9027 \end_inset
9028
9029 .
9030 \end_layout
9031
9032 \begin_layout Description
9033 \begin_inset Flex Code
9034 status collapsed
9035
9036 \begin_layout Plain Layout
9037 Columns
9038 \end_layout
9039
9040 \end_inset
9041
9042  [
9043 \begin_inset Flex Code
9044 status collapsed
9045
9046 \begin_layout Plain Layout
9047
9048 \emph on
9049 1
9050 \end_layout
9051
9052 \end_inset
9053
9054 ,
9055 \begin_inset space \thinspace{}
9056 \end_inset
9057
9058
9059 \begin_inset Flex Code
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 2
9064 \end_layout
9065
9066 \end_inset
9067
9068 ] Whether the class should 
9069 \emph on
9070 default
9071 \emph default
9072  to having one or two columns.
9073  Can be changed in the 
9074 \begin_inset Flex Noun
9075 status collapsed
9076
9077 \begin_layout Plain Layout
9078 Document\SpecialChar menuseparator
9079 Settings
9080 \end_layout
9081
9082 \end_inset
9083
9084  dialog.
9085 \end_layout
9086
9087 \begin_layout Description
9088 \begin_inset Flex Code
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 Counter
9093 \end_layout
9094
9095 \end_inset
9096
9097  [
9098 \begin_inset Flex Code
9099 status collapsed
9100
9101 \begin_layout Plain Layout
9102 string
9103 \end_layout
9104
9105 \end_inset
9106
9107 ] This sequence defines the properties for a counter.
9108  If the counter does not yet exist, it is created; if it does exist, it
9109  is modified.
9110  Must end with 
9111 \begin_inset Quotes eld
9112 \end_inset
9113
9114
9115 \begin_inset Flex Code
9116 status collapsed
9117
9118 \begin_layout Plain Layout
9119 End
9120 \end_layout
9121
9122 \end_inset
9123
9124
9125 \begin_inset Quotes erd
9126 \end_inset
9127
9128 .
9129 \begin_inset Newline newline
9130 \end_inset
9131
9132 See 
9133 \begin_inset CommandInset ref
9134 LatexCommand ref
9135 reference "subsec:Counters"
9136
9137 \end_inset
9138
9139  for details on counters.
9140 \end_layout
9141
9142 \begin_layout Description
9143 \begin_inset Flex Code
9144 status collapsed
9145
9146 \begin_layout Plain Layout
9147 DefaultFont
9148 \end_layout
9149
9150 \end_inset
9151
9152  Sets the default font used to display the document.
9153  See 
9154 \begin_inset CommandInset ref
9155 LatexCommand ref
9156 reference "subsec:Font-description"
9157
9158 \end_inset
9159
9160  for how to declare fonts.
9161  Must end with 
9162 \begin_inset Quotes eld
9163 \end_inset
9164
9165
9166 \begin_inset Flex Code
9167 status collapsed
9168
9169 \begin_layout Plain Layout
9170 EndFont
9171 \end_layout
9172
9173 \end_inset
9174
9175
9176 \begin_inset Quotes erd
9177 \end_inset
9178
9179 .
9180 \end_layout
9181
9182 \begin_layout Description
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 DefaultModule
9188 \end_layout
9189
9190 \end_inset
9191
9192  [
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197 <module>
9198 \end_layout
9199
9200 \end_inset
9201
9202 ] Specifies a module to be included by default with this document class.
9203  The module is specified as filename without the 
9204 \begin_inset Flex Code
9205 status collapsed
9206
9207 \begin_layout Plain Layout
9208 .module
9209 \end_layout
9210
9211 \end_inset
9212
9213  extension.
9214  The user can still remove the module, but it will be active at the outset.
9215  (This applies only when new files are created, or when this class is chosen
9216  for an existing document.)
9217 \end_layout
9218
9219 \begin_layout Description
9220 \begin_inset Flex Code
9221 status collapsed
9222
9223 \begin_layout Plain Layout
9224 DefaultStyle
9225 \end_layout
9226
9227 \end_inset
9228
9229  [
9230 \begin_inset Flex Code
9231 status collapsed
9232
9233 \begin_layout Plain Layout
9234 <style>
9235 \end_layout
9236
9237 \end_inset
9238
9239 ] This is the style that will be assigned to new paragraphs, usually 
9240 \begin_inset Flex Noun
9241 status collapsed
9242
9243 \begin_layout Plain Layout
9244 Standard
9245 \end_layout
9246
9247 \end_inset
9248
9249 .
9250  This will default to the first defined style if not given, but you are
9251  encouraged to use this directive.
9252 \end_layout
9253
9254 \begin_layout Description
9255 \begin_inset Flex Code
9256 status collapsed
9257
9258 \begin_layout Plain Layout
9259 ExcludesModule
9260 \end_layout
9261
9262 \end_inset
9263
9264  [
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 <module>
9270 \end_layout
9271
9272 \end_inset
9273
9274 ] This tag indicates that the module (which is specified by filename without
9275  the 
9276 \begin_inset Flex Code
9277 status collapsed
9278
9279 \begin_layout Plain Layout
9280 .module
9281 \end_layout
9282
9283 \end_inset
9284
9285  extension) cannot be used with this document class.
9286  This might be used in a journal-specific layout file to prevent, say, the
9287  use of the 
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 theorems-sec
9293 \end_layout
9294
9295 \end_inset
9296
9297  module that numbers theorems by section.
9298  This tag may 
9299 \emph on
9300 not
9301 \emph default
9302  be used in a module.
9303  Modules have their own way of excluding other modules (see 
9304 \begin_inset CommandInset ref
9305 LatexCommand ref
9306 reference "subsec:Layout-modules"
9307
9308 \end_inset
9309
9310 ).
9311 \end_layout
9312
9313 \begin_layout Description
9314 \begin_inset Flex Code
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 Float
9319 \end_layout
9320
9321 \end_inset
9322
9323  Defines a new float.
9324  See 
9325 \begin_inset CommandInset ref
9326 LatexCommand ref
9327 reference "subsec:Floats"
9328
9329 \end_inset
9330
9331  for details.
9332  Must end with 
9333 \begin_inset Quotes eld
9334 \end_inset
9335
9336
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341 End
9342 \end_layout
9343
9344 \end_inset
9345
9346
9347 \begin_inset Quotes erd
9348 \end_inset
9349
9350 .
9351 \end_layout
9352
9353 \begin_layout Description
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 HTMLPreamble
9359 \end_layout
9360
9361 \end_inset
9362
9363  Sets the information that will be output in the 
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 <head>
9369 \end_layout
9370
9371 \end_inset
9372
9373  block when this document class is output to XHTML.
9374  Note that this will completely override any prior 
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 HTMLPreamble
9380 \end_layout
9381
9382 \end_inset
9383
9384  or 
9385 \begin_inset Flex Code
9386 status collapsed
9387
9388 \begin_layout Plain Layout
9389 AddToHTMLPreamble
9390 \end_layout
9391
9392 \end_inset
9393
9394  declarations.
9395  (Use
9396 \begin_inset Newline newline
9397 \end_inset
9398
9399
9400 \begin_inset Flex Code
9401 status collapsed
9402
9403 \begin_layout Plain Layout
9404 AddToHTMLPreamble
9405 \end_layout
9406
9407 \end_inset
9408
9409  if you just want to add material to the preamble.) Must end with 
9410 \begin_inset Quotes eld
9411 \end_inset
9412
9413
9414 \begin_inset Flex Code
9415 status collapsed
9416
9417 \begin_layout Plain Layout
9418 EndPreamble
9419 \end_layout
9420
9421 \end_inset
9422
9423
9424 \begin_inset Quotes erd
9425 \end_inset
9426
9427 .
9428 \end_layout
9429
9430 \begin_layout Description
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435 HTMLTOCSection
9436 \end_layout
9437
9438 \end_inset
9439
9440  [
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 <style>
9446 \end_layout
9447
9448 \end_inset
9449
9450 ] The style to use for the table of contents, bibliography, and so forth,
9451  when the document is output to HTML.
9452  For articles, this should normally be 
9453 \begin_inset Flex Code
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 Section
9458 \end_layout
9459
9460 \end_inset
9461
9462 ; for books 
9463 \begin_inset Flex Code
9464 status collapsed
9465
9466 \begin_layout Plain Layout
9467 Chapter
9468 \end_layout
9469
9470 \end_inset
9471
9472 .
9473  If it is not given, then \SpecialChar LyX
9474  will attempt to figure out which layout to use.
9475 \end_layout
9476
9477 \begin_layout Description
9478 \begin_inset Flex Code
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482 IfCounter
9483 \end_layout
9484
9485 \end_inset
9486
9487  [
9488 \begin_inset Flex Code
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492 <counter>
9493 \end_layout
9494
9495 \end_inset
9496
9497 ] Modifies the properties of the given counter.
9498  If the counter does not exist, the statement is ignored.
9499  Must end with 
9500 \begin_inset Quotes eld
9501 \end_inset
9502
9503
9504 \begin_inset Flex Code
9505 status collapsed
9506
9507 \begin_layout Plain Layout
9508 End
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \begin_inset Quotes erd
9515 \end_inset
9516
9517 .
9518 \begin_inset Newline newline
9519 \end_inset
9520
9521 See 
9522 \begin_inset CommandInset ref
9523 LatexCommand ref
9524 reference "subsec:Counters"
9525
9526 \end_inset
9527
9528  for details on counters.
9529 \end_layout
9530
9531 \begin_layout Description
9532 \begin_inset Flex Code
9533 status collapsed
9534
9535 \begin_layout Plain Layout
9536 Input
9537 \end_layout
9538
9539 \end_inset
9540
9541  [
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 <filename>
9547 \end_layout
9548
9549 \end_inset
9550
9551 ] This allows you to include another layout definition file within yours
9552  to avoid duplicating commands.
9553  Common examples are the standard layout files, for example, 
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558 stdclass.inc
9559 \end_layout
9560
9561 \end_inset
9562
9563 , which contains most of the basic layouts.
9564 \end_layout
9565
9566 \begin_layout Description
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 InsetLayout
9572 \end_layout
9573
9574 \end_inset
9575
9576  [
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 <type>
9582 \end_layout
9583
9584 \end_inset
9585
9586 ] This section (re-)defines the layout of an inset.
9587  It can be applied to an existing inset or to a new, user-defined inset,
9588  e.g., a new character style.
9589  Must end with 
9590 \begin_inset Quotes eld
9591 \end_inset
9592
9593
9594 \begin_inset Flex Code
9595 status collapsed
9596
9597 \begin_layout Plain Layout
9598 End
9599 \end_layout
9600
9601 \end_inset
9602
9603
9604 \begin_inset Quotes erd
9605 \end_inset
9606
9607 .
9608 \begin_inset Newline newline
9609 \end_inset
9610
9611 See 
9612 \begin_inset CommandInset ref
9613 LatexCommand ref
9614 reference "subsec:Flex-insets-and"
9615
9616 \end_inset
9617
9618  for more information.
9619  
9620 \end_layout
9621
9622 \begin_layout Description
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 LeftMargin
9628 \end_layout
9629
9630 \end_inset
9631
9632  [
9633 \begin_inset Flex Code
9634 status collapsed
9635
9636 \begin_layout Plain Layout
9637 string
9638 \end_layout
9639
9640 \end_inset
9641
9642 ] A string that indicates the width of the left margin on the screen, for
9643  example, 
9644 \begin_inset Quotes eld
9645 \end_inset
9646
9647
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 MMMMM
9653 \end_layout
9654
9655 \end_inset
9656
9657
9658 \begin_inset Quotes erd
9659 \end_inset
9660
9661 .
9662  (Note that this is not a `length', like 
9663 \begin_inset Quotes eld
9664 \end_inset
9665
9666 2ex
9667 \begin_inset Quotes erd
9668 \end_inset
9669
9670 .)
9671 \end_layout
9672
9673 \begin_layout Description
9674 \begin_inset Flex Code
9675 status collapsed
9676
9677 \begin_layout Plain Layout
9678 MaxCiteNames
9679 \end_layout
9680
9681 \end_inset
9682
9683  [
9684 \begin_inset Flex Code
9685 status collapsed
9686
9687 \begin_layout Plain Layout
9688 integer
9689 \end_layout
9690
9691 \end_inset
9692
9693 ] An integer that determines the maximal number of names displayed in an
9694  author-year citation before the citation switches to 
9695 \begin_inset Quotes eld
9696 \end_inset
9697
9698 FirstAuthor et al.
9699 \begin_inset Quotes erd
9700 \end_inset
9701
9702 .
9703  Primarily used in cite engine files (see 
9704 \begin_inset CommandInset ref
9705 LatexCommand ref
9706 reference "subsec:Cite-Engine-Files"
9707 plural "false"
9708 caps "false"
9709 noprefix "false"
9710
9711 \end_inset
9712
9713 ).
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 ModifyStyle
9722 \end_layout
9723
9724 \end_inset
9725
9726  [
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 <style>
9732 \end_layout
9733
9734 \end_inset
9735
9736 ] Modifies the properties of the given paragraph style.
9737  If the style does not exist, this section is ignored.
9738  Must end with 
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 End
9748 \end_layout
9749
9750 \end_inset
9751
9752
9753 \begin_inset Quotes erd
9754 \end_inset
9755
9756 .
9757 \end_layout
9758
9759 \begin_layout Description
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 NoCounter
9765 \end_layout
9766
9767 \end_inset
9768
9769  [
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 <counter>
9775 \end_layout
9776
9777 \end_inset
9778
9779 ] Deletes an existing counter, usually one defined in an included file.
9780 \end_layout
9781
9782 \begin_layout Description
9783 \begin_inset Flex Code
9784 status collapsed
9785
9786 \begin_layout Plain Layout
9787 NoFloat
9788 \end_layout
9789
9790 \end_inset
9791
9792  [
9793 \begin_inset Flex Code
9794 status collapsed
9795
9796 \begin_layout Plain Layout
9797 <float>
9798 \end_layout
9799
9800 \end_inset
9801
9802 ] Deletes an existing float.
9803  This is particularly useful when you want to suppress a float that has
9804  been defined in an input file.
9805 \end_layout
9806
9807 \begin_layout Description
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 NoStyle
9813 \end_layout
9814
9815 \end_inset
9816
9817  [
9818 \begin_inset Flex Code
9819 status collapsed
9820
9821 \begin_layout Plain Layout
9822 <style>
9823 \end_layout
9824
9825 \end_inset
9826
9827 ] Deletes an existing style.
9828 \end_layout
9829
9830 \begin_layout Description
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 OutlinerName
9836 \end_layout
9837
9838 \end_inset
9839
9840  [
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 <type>
9846 \end_layout
9847
9848 \end_inset
9849
9850 ] [
9851 \begin_inset Flex Code
9852 status collapsed
9853
9854 \begin_layout Plain Layout
9855 <string>
9856 \end_layout
9857
9858 \end_inset
9859
9860 ] Define a new table of contents with type 
9861 \begin_inset Flex Code
9862 status collapsed
9863
9864 \begin_layout Plain Layout
9865 <type>
9866 \end_layout
9867
9868 \end_inset
9869
9870  and name 
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875 <string>
9876 \end_layout
9877
9878 \end_inset
9879
9880 .
9881  See also the AddToToc commands.
9882 \end_layout
9883
9884 \begin_layout Description
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 OutputFormat
9890 \end_layout
9891
9892 \end_inset
9893
9894  [
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 <format>
9900 \end_layout
9901
9902 \end_inset
9903
9904 ] The file format (as defined in the \SpecialChar LyX
9905  preferences) produced by this document
9906  class.
9907  It is mainly useful when 
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 OutputType
9913 \end_layout
9914
9915 \end_inset
9916
9917  is 
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 literate
9923 \end_layout
9924
9925 \end_inset
9926
9927  and one wants to define a new type of literate document.
9928  The format is reset to 
9929 \begin_inset Quotes eld
9930 \end_inset
9931
9932
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 docbook
9938 \end_layout
9939
9940 \end_inset
9941
9942
9943 \begin_inset Quotes erd
9944 \end_inset
9945
9946  or 
9947 \begin_inset Quotes eld
9948 \end_inset
9949
9950
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 latex
9956 \end_layout
9957
9958 \end_inset
9959
9960
9961 \begin_inset Quotes erd
9962 \end_inset
9963
9964  when the corresponding 
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969 OutputType
9970 \end_layout
9971
9972 \end_inset
9973
9974  parameter is encountered.
9975 \end_layout
9976
9977 \begin_layout Description
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 OutputType
9983 \end_layout
9984
9985 \end_inset
9986
9987  [
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992
9993 \emph on
9994 lat
9995 \emph default
9996 ex
9997 \end_layout
9998
9999 \end_inset
10000
10001
10002 \begin_inset Flex Code
10003 status collapsed
10004
10005 \begin_layout Plain Layout
10006 docbook
10007 \end_layout
10008
10009 \end_inset
10010
10011
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 literate
10017 \end_layout
10018
10019 \end_inset
10020
10021 ] Specifies what sort of output documents using this class will produce.
10022 \end_layout
10023
10024 \begin_layout Description
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 PackageOptions
10030 \end_layout
10031
10032 \end_inset
10033
10034  [
10035 \begin_inset Flex Code
10036 status collapsed
10037
10038 \begin_layout Plain Layout
10039 string
10040 \end_layout
10041
10042 \end_inset
10043
10044  
10045 \begin_inset Flex Code
10046 status collapsed
10047
10048 \begin_layout Plain Layout
10049 string
10050 \end_layout
10051
10052 \end_inset
10053
10054 ] Specifies options, given in the second string, for the package named by
10055  the first string.
10056  For example, 
10057 \begin_inset Quotes eld
10058 \end_inset
10059
10060
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 PackageOptions natbib square
10066 \end_layout
10067
10068 \end_inset
10069
10070
10071 \begin_inset Quotes erd
10072 \end_inset
10073
10074  will cause 
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 natbib
10080 \end_layout
10081
10082 \end_inset
10083
10084  to be loaded with the 
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 square
10090 \end_layout
10091
10092 \end_inset
10093
10094  option.
10095  (For \SpecialChar TeX
10096 perts, this causes \SpecialChar LyX
10097  to output: 
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102
10103 \backslash
10104 PassOptionsToPackage{natbib}{square}
10105 \end_layout
10106
10107 \end_inset
10108
10109  prior to loading 
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 natbib
10115 \end_layout
10116
10117 \end_inset
10118
10119 .)
10120 \end_layout
10121
10122 \begin_layout Description
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 PageStyle
10128 \end_layout
10129
10130 \end_inset
10131
10132  [
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137
10138 \emph on
10139 plain
10140 \end_layout
10141
10142 \end_inset
10143
10144
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 empty
10150 \end_layout
10151
10152 \end_inset
10153
10154
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 headings
10160 \end_layout
10161
10162 \end_inset
10163
10164 ] The default pagestyle.
10165  Can be changed in the 
10166 \begin_inset Flex Noun
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170 Document\SpecialChar menuseparator
10171 Settings
10172 \end_layout
10173
10174 \end_inset
10175
10176  dialog.
10177 \end_layout
10178
10179 \begin_layout Description
10180 \begin_inset Flex Code
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 Preamble
10185 \end_layout
10186
10187 \end_inset
10188
10189  Sets the preamble for the \SpecialChar LaTeX
10190  document.
10191  Note that this will completely override any prior 
10192 \begin_inset Flex Code
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 Preamble
10197 \end_layout
10198
10199 \end_inset
10200
10201  or 
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206 AddToPreamble
10207 \end_layout
10208
10209 \end_inset
10210
10211  declarations.
10212  (Use 
10213 \begin_inset Flex Code
10214 status collapsed
10215
10216 \begin_layout Plain Layout
10217 AddToPreamble
10218 \end_layout
10219
10220 \end_inset
10221
10222  if you just want to add material to the preamble.) Must end with 
10223 \begin_inset Quotes eld
10224 \end_inset
10225
10226
10227 \begin_inset Flex Code
10228 status collapsed
10229
10230 \begin_layout Plain Layout
10231 EndPreamble
10232 \end_layout
10233
10234 \end_inset
10235
10236
10237 \begin_inset Quotes erd
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 Provides
10249 \end_layout
10250
10251 \end_inset
10252
10253  [
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 string
10259 \end_layout
10260
10261 \end_inset
10262
10263 ] [
10264 \begin_inset Flex Code
10265 status collapsed
10266
10267 \begin_layout Plain Layout
10268
10269 \emph on
10270 0
10271 \end_layout
10272
10273 \end_inset
10274
10275 ,
10276 \begin_inset space \thinspace{}
10277 \end_inset
10278
10279
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 1
10285 \end_layout
10286
10287 \end_inset
10288
10289 ] Whether the class already provides the feature 
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 string
10295 \end_layout
10296
10297 \end_inset
10298
10299 .
10300  A feature is in general the name of a package (e.
10301 \begin_inset space \thinspace{}
10302 \end_inset
10303
10304 g.
10305 \begin_inset space \space{}
10306 \end_inset
10307
10308
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 amsmath
10314 \end_layout
10315
10316 \end_inset
10317
10318  or 
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 makeidx
10324 \end_layout
10325
10326 \end_inset
10327
10328 ) or a macro (e.
10329 \begin_inset space \thinspace{}
10330 \end_inset
10331
10332 g.
10333 \begin_inset space \space{}
10334 \end_inset
10335
10336
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 url
10342 \end_layout
10343
10344 \end_inset
10345
10346  or 
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 boldsymbol
10352 \end_layout
10353
10354 \end_inset
10355
10356 ).
10357  See 
10358 \begin_inset CommandInset ref
10359 LatexCommand ref
10360 reference "chap:List-of-functions"
10361
10362 \end_inset
10363
10364  for the list of features.
10365 \end_layout
10366
10367 \begin_layout Description
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 ProvidesModule
10373 \end_layout
10374
10375 \end_inset
10376
10377  [
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 string
10383 \end_layout
10384
10385 \end_inset
10386
10387 ] Indicates that this layout provides the functionality of the module mentioned,
10388  which should be specified by the filename without the 
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393 .module
10394 \end_layout
10395
10396 \end_inset
10397
10398  extension.
10399  This will typically be used if the layout includes the module directly,
10400  rather than using the 
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 DefaultModule
10406 \end_layout
10407
10408 \end_inset
10409
10410  tag to indicate that it ought to be used.
10411  It could also be used in a module that provided an alternate implementation
10412  of the same functionality.
10413 \end_layout
10414
10415 \begin_layout Description
10416 \begin_inset Flex Code
10417 status collapsed
10418
10419 \begin_layout Plain Layout
10420 ProvideStyle
10421 \end_layout
10422
10423 \end_inset
10424
10425  [
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 <style>
10431 \end_layout
10432
10433 \end_inset
10434
10435 ] Creates a new paragraph style if it does not already exist.
10436  If the style does exist, this section is ignored.
10437  Must end with 
10438 \begin_inset Quotes eld
10439 \end_inset
10440
10441
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 End
10447 \end_layout
10448
10449 \end_inset
10450
10451
10452 \begin_inset Quotes erd
10453 \end_inset
10454
10455 .
10456 \end_layout
10457
10458 \begin_layout Description
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 Requires
10464 \end_layout
10465
10466 \end_inset
10467
10468  [
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 string
10474 \end_layout
10475
10476 \end_inset
10477
10478 ] Whether the class requires the feature 
10479 \begin_inset Flex Code
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483 string
10484 \end_layout
10485
10486 \end_inset
10487
10488 .
10489  Multiple features must be separated by commas.
10490  Note that you can only request supported features.
10491  (See 
10492 \begin_inset CommandInset ref
10493 LatexCommand ref
10494 reference "chap:List-of-functions"
10495
10496 \end_inset
10497
10498  for the list of features.).
10499  If you require a package with specific options, you can additionally use
10500  
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 PackageOptions
10506 \end_layout
10507
10508 \end_inset
10509
10510 .
10511 \end_layout
10512
10513 \begin_layout Description
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 RightMargin
10519 \end_layout
10520
10521 \end_inset
10522
10523  [
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528 string
10529 \end_layout
10530
10531 \end_inset
10532
10533 ] A string that indicates the width of the right margin on the screen, for
10534  example, 
10535 \begin_inset Quotes eld
10536 \end_inset
10537
10538
10539 \begin_inset Flex Code
10540 status collapsed
10541
10542 \begin_layout Plain Layout
10543 MMMMM
10544 \end_layout
10545
10546 \end_inset
10547
10548
10549 \begin_inset Quotes erd
10550 \end_inset
10551
10552 .
10553 \end_layout
10554
10555 \begin_layout Description
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 SecNumDepth
10561 \end_layout
10562
10563 \end_inset
10564
10565  [
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 int=3
10571 \end_layout
10572
10573 \end_inset
10574
10575 ] Sets which divisions get numbered.
10576  Corresponds to the
10577 \begin_inset Newline newline
10578 \end_inset
10579
10580
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 secnumdepth
10586 \end_layout
10587
10588 \end_inset
10589
10590  counter in \SpecialChar LaTeX
10591 .
10592 \end_layout
10593
10594 \begin_layout Description
10595 \begin_inset Flex Code
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 Sides
10600 \end_layout
10601
10602 \end_inset
10603
10604  [
10605 \begin_inset Flex Code
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609
10610 \emph on
10611 1
10612 \end_layout
10613
10614 \end_inset
10615
10616 ,
10617 \begin_inset space \thinspace{}
10618 \end_inset
10619
10620
10621 \begin_inset Flex Code
10622 status collapsed
10623
10624 \begin_layout Plain Layout
10625 2
10626 \end_layout
10627
10628 \end_inset
10629
10630 ] Whether the class-default should be printing on one or both sides of the
10631  paper.
10632  Can be changed in the 
10633 \begin_inset Flex Noun
10634 status collapsed
10635
10636 \begin_layout Plain Layout
10637 Document\SpecialChar menuseparator
10638 Settings
10639 \end_layout
10640
10641 \end_inset
10642
10643  dialog.
10644 \end_layout
10645
10646 \begin_layout Description
10647 \begin_inset Flex Code
10648 status collapsed
10649
10650 \begin_layout Plain Layout
10651 Style
10652 \end_layout
10653
10654 \end_inset
10655
10656  [
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 <name>
10662 \end_layout
10663
10664 \end_inset
10665
10666 ] This sequence defines a paragraph style.
10667  If the style does not yet exist, it is created; if it does exist, its parameter
10668 s are modified.
10669  Must end with 
10670 \begin_inset Quotes eld
10671 \end_inset
10672
10673
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678 End
10679 \end_layout
10680
10681 \end_inset
10682
10683
10684 \begin_inset Quotes erd
10685 \end_inset
10686
10687 .
10688 \begin_inset Newline newline
10689 \end_inset
10690
10691 See 
10692 \begin_inset CommandInset ref
10693 LatexCommand ref
10694 reference "subsec:Paragraph-Styles"
10695
10696 \end_inset
10697
10698  for details on paragraph styles.
10699 \end_layout
10700
10701 \begin_layout Description
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 TitleLatexName
10707 \end_layout
10708
10709 \end_inset
10710
10711  [
10712 \begin_inset Flex Code
10713 status collapsed
10714
10715 \begin_layout Plain Layout
10716 string="maketitle"
10717 \end_layout
10718
10719 \end_inset
10720
10721 ] The name of the command or environment to be used with 
10722 \begin_inset Flex Code
10723 status collapsed
10724
10725 \begin_layout Plain Layout
10726 TitleLatexType
10727 \end_layout
10728
10729 \end_inset
10730
10731 .
10732 \end_layout
10733
10734 \begin_layout Description
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 TitleLatexType
10740 \end_layout
10741
10742 \end_inset
10743
10744  [
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749
10750 \emph on
10751 CommandAfter
10752 \end_layout
10753
10754 \end_inset
10755
10756
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 Environment
10762 \end_layout
10763
10764 \end_inset
10765
10766 ] Indicates what kind of markup is used to define the title of a document.
10767  
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 CommandAfter
10773 \end_layout
10774
10775 \end_inset
10776
10777  means that the macro with name 
10778 \begin_inset Flex Code
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 TitleLatexName
10783 \end_layout
10784
10785 \end_inset
10786
10787  will be inserted after the last layout which has 
10788 \begin_inset Quotes eld
10789 \end_inset
10790
10791
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 InTitle
10797 \begin_inset space ~
10798 \end_inset
10799
10800 1
10801 \end_layout
10802
10803 \end_inset
10804
10805
10806 \begin_inset Quotes erd
10807 \end_inset
10808
10809 .
10810  
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815 Environment
10816 \end_layout
10817
10818 \end_inset
10819
10820  corresponds to the case where all layouts which have 
10821 \begin_inset Quotes eld
10822 \end_inset
10823
10824
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 InTitle
10830 \begin_inset space ~
10831 \end_inset
10832
10833 1
10834 \end_layout
10835
10836 \end_inset
10837
10838
10839 \begin_inset Quotes erd
10840 \end_inset
10841
10842  should be enclosed into the 
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 TitleLatexName
10848 \end_layout
10849
10850 \end_inset
10851
10852  environment.
10853 \end_layout
10854
10855 \begin_layout Description
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 TocDepth
10861 \end_layout
10862
10863 \end_inset
10864
10865  [
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870 int=3
10871 \end_layout
10872
10873 \end_inset
10874
10875 ] Sets which divisions are included in the table of contents.
10876  Corresponds to the 
10877 \begin_inset Flex Code
10878 status collapsed
10879
10880 \begin_layout Plain Layout
10881 tocdepth
10882 \end_layout
10883
10884 \end_inset
10885
10886  counter in \SpecialChar LaTeX
10887 .
10888 \end_layout
10889
10890 \begin_layout Subsection
10891 \begin_inset Flex Code
10892 status collapsed
10893
10894 \begin_layout Plain Layout
10895 ClassOptions
10896 \end_layout
10897
10898 \end_inset
10899
10900  section
10901 \begin_inset CommandInset label
10902 LatexCommand label
10903 name "subsec:ClassOptions"
10904
10905 \end_inset
10906
10907
10908 \end_layout
10909
10910 \begin_layout Standard
10911 The 
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 ClassOptions
10917 \end_layout
10918
10919 \end_inset
10920
10921  section can contain the following entries:
10922 \end_layout
10923
10924 \begin_layout Description
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 FontSize
10930 \end_layout
10931
10932 \end_inset
10933
10934  [
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 string="10|11|12"
10940 \end_layout
10941
10942 \end_inset
10943
10944 ] The list of available font sizes for the document's main font, separated
10945  by 
10946 \begin_inset Quotes eld
10947 \end_inset
10948
10949
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 |
10955 \end_layout
10956
10957 \end_inset
10958
10959
10960 \begin_inset Quotes erd
10961 \end_inset
10962
10963 .
10964 \end_layout
10965
10966 \begin_layout Description
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 Header
10972 \end_layout
10973
10974 \end_inset
10975
10976  Used to set the DTD line with XML-based output classes.
10977  E.
10978 \begin_inset space \thinspace{}
10979 \end_inset
10980
10981 g.: PUBLIC 
10982 \begin_inset Quotes eld
10983 \end_inset
10984
10985 -//OASIS//DTD DocBook V4.2//EN
10986 \begin_inset Quotes erd
10987 \end_inset
10988
10989 .
10990 \end_layout
10991
10992 \begin_layout Description
10993 \begin_inset Flex Code
10994 status collapsed
10995
10996 \begin_layout Plain Layout
10997 PageStyle
10998 \end_layout
10999
11000 \end_inset
11001
11002  [
11003 \begin_inset Flex Code
11004 status collapsed
11005
11006 \begin_layout Plain Layout
11007 string="empty|plain|headings|fancy"
11008 \end_layout
11009
11010 \end_inset
11011
11012 ] The list of available page sty\SpecialChar softhyphen
11013 les, separated by 
11014 \begin_inset Quotes eld
11015 \end_inset
11016
11017
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 |
11023 \end_layout
11024
11025 \end_inset
11026
11027
11028 \begin_inset Quotes erd
11029 \end_inset
11030
11031 .
11032 \end_layout
11033
11034 \begin_layout Description
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039 Other
11040 \end_layout
11041
11042 \end_inset
11043
11044  [
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 string=""
11050 \end_layout
11051
11052 \end_inset
11053
11054 ] Some document class options, separated by a comma, that will be added
11055  to the optional part of the 
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060
11061 \backslash
11062 documentclass
11063 \end_layout
11064
11065 \end_inset
11066
11067  command.
11068 \end_layout
11069
11070 \begin_layout Standard
11071 The 
11072 \begin_inset Flex Code
11073 status collapsed
11074
11075 \begin_layout Plain Layout
11076 ClassOptions
11077 \end_layout
11078
11079 \end_inset
11080
11081  section must end with 
11082 \begin_inset Quotes eld
11083 \end_inset
11084
11085
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 End
11091 \end_layout
11092
11093 \end_inset
11094
11095
11096 \begin_inset Quotes erd
11097 \end_inset
11098
11099 .
11100 \end_layout
11101
11102 \begin_layout Subsection
11103 Paragraph styles
11104 \begin_inset CommandInset label
11105 LatexCommand label
11106 name "subsec:Paragraph-Styles"
11107
11108 \end_inset
11109
11110
11111 \end_layout
11112
11113 \begin_layout Standard
11114 A paragraph style description looks like this:
11115 \begin_inset Foot
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 Note that this will either define a new style or modify an existing one.
11120 \end_layout
11121
11122 \end_inset
11123
11124
11125 \end_layout
11126
11127 \begin_layout LyX-Code
11128 Style 
11129 \family roman
11130 \emph on
11131 name
11132 \end_layout
11133
11134 \begin_layout LyX-Code
11135  ...
11136 \end_layout
11137
11138 \begin_layout LyX-Code
11139 End
11140 \end_layout
11141
11142 \begin_layout Standard
11143 where the following commands are allowed:
11144 \end_layout
11145
11146 \begin_layout Description
11147 \begin_inset Flex Code
11148 status collapsed
11149
11150 \begin_layout Plain Layout
11151 AddToToc
11152 \end_layout
11153
11154 \end_inset
11155
11156  [
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 string
11162 \end_layout
11163
11164 \end_inset
11165
11166 =""] This paragraph will appear in the table of contents of the given type.
11167  An empty string disables.
11168  See also the OutlinerName and the IsTocCaption commands.
11169  Default: disabled.
11170 \end_layout
11171
11172 \begin_layout Description
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 Align
11178 \end_layout
11179
11180 \end_inset
11181
11182  [
11183 \begin_inset Flex Code
11184 status collapsed
11185
11186 \begin_layout Plain Layout
11187
11188 \emph on
11189 block
11190 \emph default
11191 , left, right, center
11192 \end_layout
11193
11194 \end_inset
11195
11196 ] Paragraph alignment.
11197 \end_layout
11198
11199 \begin_layout Description
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 AlignPossible
11205 \end_layout
11206
11207 \end_inset
11208
11209  [
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214
11215 \emph on
11216 block
11217 \emph default
11218 , left, right, center
11219 \end_layout
11220
11221 \end_inset
11222
11223 ] A comma separated list of permitted alignments.
11224  (Some \SpecialChar LaTeX
11225  styles prohibit certain alignments, since those wouldn't make sense.
11226  For example a right-aligned or centered enumeration isn't possible.)
11227 \end_layout
11228
11229 \begin_layout Description
11230 \begin_inset Flex Code
11231 status collapsed
11232
11233 \begin_layout Plain Layout
11234 Argument
11235 \end_layout
11236
11237 \end_inset
11238
11239  [
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 int
11245 \end_layout
11246
11247 \end_inset
11248
11249 ] Defines argument number <int> of a command\SpecialChar breakableslash
11250 environment associated with
11251  the current style.
11252  This is useful for things like section headings, and only makes sense with
11253  \SpecialChar LaTeX
11254 .
11255  Every (optional or required) argument of a command or environment – except
11256  for the required argument that is associated with the content of the paragraph
11257  itself – has a separate definition, where the number specifies the order
11258  of the arguments.
11259  The definition must end with 
11260 \begin_inset Flex Code
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264 EndArgument
11265 \end_layout
11266
11267 \end_inset
11268
11269 .
11270  So a command with two optional arguments has:
11271 \end_layout
11272
11273 \begin_deeper
11274 \begin_layout Quote
11275
11276 \family typewriter
11277 Argument 1
11278 \end_layout
11279
11280 \begin_layout Quote
11281
11282 \family typewriter
11283 ...
11284 \end_layout
11285
11286 \begin_layout Quote
11287
11288 \family typewriter
11289 EndArgument
11290 \end_layout
11291
11292 \begin_layout Quote
11293
11294 \family typewriter
11295 Argument 2
11296 \end_layout
11297
11298 \begin_layout Quote
11299
11300 \family typewriter
11301 ...
11302 \end_layout
11303
11304 \begin_layout Quote
11305
11306 \family typewriter
11307 EndArgument
11308 \end_layout
11309
11310 \begin_layout Standard
11311 Inside the 
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 Argument
11317 \end_layout
11318
11319 \end_inset
11320
11321  definition, the following specifications are possible:
11322 \end_layout
11323
11324 \begin_layout Itemize
11325 \begin_inset Flex Code
11326 status collapsed
11327
11328 \begin_layout Plain Layout
11329 LabelString
11330 \end_layout
11331
11332 \end_inset
11333
11334  
11335 \begin_inset Flex Code
11336 status collapsed
11337
11338 \begin_layout Plain Layout
11339 [string]
11340 \end_layout
11341
11342 \end_inset
11343
11344  The string that will appear both in the menu (to insert this argument)
11345  and on the argument inset button (unless you also specify a separate 
11346 \begin_inset Flex Code
11347 status collapsed
11348
11349 \begin_layout Plain Layout
11350 MenuString
11351 \end_layout
11352
11353 \end_inset
11354
11355 ).
11356  For the menu, you can define an accelerator by appending the respective
11357  character to the string, divided by 
11358 \begin_inset Quotes eld
11359 \end_inset
11360
11361 |
11362 \begin_inset Quotes erd
11363 \end_inset
11364
11365  (e.
11366 \begin_inset space \thinspace{}
11367 \end_inset
11368
11369 g.
11370 \begin_inset space \space{}
11371 \end_inset
11372
11373
11374 \begin_inset Quotes eld
11375 \end_inset
11376
11377
11378 \begin_inset Flex Code
11379 status collapsed
11380
11381 \begin_layout Plain Layout
11382 Short Title|S
11383 \end_layout
11384
11385 \end_inset
11386
11387
11388 \begin_inset Quotes erd
11389 \end_inset
11390
11391 ).
11392 \end_layout
11393
11394 \begin_layout Itemize
11395 \begin_inset Flex Code
11396 status collapsed
11397
11398 \begin_layout Plain Layout
11399 MenuString
11400 \end_layout
11401
11402 \end_inset
11403
11404  
11405 \begin_inset Flex Code
11406 status collapsed
11407
11408 \begin_layout Plain Layout
11409 [string]
11410 \end_layout
11411
11412 \end_inset
11413
11414  A separate string for the menu.
11415  You can define an accelerator by appending the respective character to
11416  the string, divided by 
11417 \begin_inset Quotes eld
11418 \end_inset
11419
11420 |
11421 \begin_inset Quotes erd
11422 \end_inset
11423
11424  (e.
11425 \begin_inset space \thinspace{}
11426 \end_inset
11427
11428 g.
11429 \begin_inset space \space{}
11430 \end_inset
11431
11432
11433 \begin_inset Quotes eld
11434 \end_inset
11435
11436
11437 \begin_inset Flex Code
11438 status collapsed
11439
11440 \begin_layout Plain Layout
11441 Short Title|S
11442 \end_layout
11443
11444 \end_inset
11445
11446
11447 \begin_inset Quotes erd
11448 \end_inset
11449
11450 ).
11451  This specification is optional.
11452  If it is not given the 
11453 \begin_inset Flex Code
11454 status collapsed
11455
11456 \begin_layout Plain Layout
11457 LabelString
11458 \end_layout
11459
11460 \end_inset
11461
11462  will be used instead for the menu.
11463 \end_layout
11464
11465 \begin_layout Itemize
11466 \begin_inset Flex Code
11467 status collapsed
11468
11469 \begin_layout Plain Layout
11470 Tooltip
11471 \end_layout
11472
11473 \end_inset
11474
11475  
11476 \begin_inset Flex Code
11477 status collapsed
11478
11479 \begin_layout Plain Layout
11480 [string]
11481 \end_layout
11482
11483 \end_inset
11484
11485  A longer explanatory text that appears in the tooltip when hovering over
11486  the argument inset.
11487 \end_layout
11488
11489 \begin_layout Itemize
11490 \begin_inset Flex Code
11491 status collapsed
11492
11493 \begin_layout Plain Layout
11494 Mandatory
11495 \end_layout
11496
11497 \end_inset
11498
11499  [
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504
11505 \emph on
11506 0
11507 \end_layout
11508
11509 \end_inset
11510
11511 ,
11512 \begin_inset space \thinspace{}
11513 \end_inset
11514
11515
11516 \begin_inset Flex Code
11517 status collapsed
11518
11519 \begin_layout Plain Layout
11520 1
11521 \end_layout
11522
11523 \end_inset
11524
11525 ] Declare if this is a mandatory (1) or an optional (0) argument.
11526  Mandatory arguments will be output empty if not given, while optional arguments
11527  will not be output at all.
11528  By default, mandatory arguments are delimited by 
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 {...}
11534 \end_layout
11535
11536 \end_inset
11537
11538 , while optional arguments are delimited by 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 [...]
11544 \end_layout
11545
11546 \end_inset
11547
11548
11549 \end_layout
11550
11551 \begin_layout Itemize
11552 \begin_inset Flex Code
11553 status collapsed
11554
11555 \begin_layout Plain Layout
11556 Requires
11557 \end_layout
11558
11559 \end_inset
11560
11561  
11562 \begin_inset Flex Code
11563 status collapsed
11564
11565 \begin_layout Plain Layout
11566 [int=0]
11567 \end_layout
11568
11569 \end_inset
11570
11571  defines another argument (by its number) which this argument requires to
11572  be output if it is itself output.
11573  E.
11574 \begin_inset space \thinspace{}
11575 \end_inset
11576
11577 g., in \SpecialChar LaTeX
11578  commands, optional arguments often require previous optional arguments
11579  to be output (at least empty), as in 
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584
11585 \backslash
11586 command[][argument]{text}
11587 \end_layout
11588
11589 \end_inset
11590
11591 .
11592  This can be achieved by the statement 
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597 Requires 1
11598 \end_layout
11599
11600 \end_inset
11601
11602  within 
11603 \begin_inset Flex Code
11604 status collapsed
11605
11606 \begin_layout Plain Layout
11607 Argument 2
11608 \end_layout
11609
11610 \end_inset
11611
11612 .
11613 \end_layout
11614
11615 \begin_layout Itemize
11616 \begin_inset Flex Code
11617 status collapsed
11618
11619 \begin_layout Plain Layout
11620 LeftDelim
11621 \end_layout
11622
11623 \end_inset
11624
11625  
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 [string]
11631 \end_layout
11632
11633 \end_inset
11634
11635  defines a custom left delimiter (instead of 
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640 {
11641 \end_layout
11642
11643 \end_inset
11644
11645  or 
11646 \begin_inset Flex Code
11647 status collapsed
11648
11649 \begin_layout Plain Layout
11650 [
11651 \end_layout
11652
11653 \end_inset
11654
11655 ).
11656  A line break in the output can be indicated by 
11657 \begin_inset Flex Code
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661 <br/>
11662 \end_layout
11663
11664 \end_inset
11665
11666 .
11667 \end_layout
11668
11669 \begin_layout Itemize
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 RightDelim
11675 \end_layout
11676
11677 \end_inset
11678
11679  
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684 [string]
11685 \end_layout
11686
11687 \end_inset
11688
11689  defines a custom right delimiter (instead of 
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 }
11695 \end_layout
11696
11697 \end_inset
11698
11699  or 
11700 \begin_inset Flex Code
11701 status collapsed
11702
11703 \begin_layout Plain Layout
11704 ]
11705 \end_layout
11706
11707 \end_inset
11708
11709 ).
11710  A line break in the output can be indicated by 
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 <br/>
11716 \end_layout
11717
11718 \end_inset
11719
11720 .
11721 \end_layout
11722
11723 \begin_layout Itemize
11724 \begin_inset Flex Code
11725 status collapsed
11726
11727 \begin_layout Plain Layout
11728 DefaultArg
11729 \end_layout
11730
11731 \end_inset
11732
11733  
11734 \begin_inset Flex Code
11735 status collapsed
11736
11737 \begin_layout Plain Layout
11738 [string]
11739 \end_layout
11740
11741 \end_inset
11742
11743  defines an argument that is inserted if and only if no user-specified arguments
11744  were given, i.
11745 \begin_inset space \thinspace{}
11746 \end_inset
11747
11748 e.
11749 \begin_inset space \space{}
11750 \end_inset
11751
11752 if no argument inset has been inserted (note that also an empty argument
11753  inset omits the DefaultArg).
11754  Multiple arguments need to be separated by comma.
11755 \end_layout
11756
11757 \begin_layout Itemize
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 PresetArg
11763 \end_layout
11764
11765 \end_inset
11766
11767  
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 [string]
11773 \end_layout
11774
11775 \end_inset
11776
11777  defines an argument that is inserted in any case (alone or in addition
11778  to user-specified arguments).
11779  Multiple arguments need to be separated by comma.
11780 \end_layout
11781
11782 \begin_layout Itemize
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787 Font
11788 \end_layout
11789
11790 \end_inset
11791
11792  The font used for the argument content, see 
11793 \begin_inset CommandInset ref
11794 LatexCommand ref
11795 reference "subsec:Font-description"
11796
11797 \end_inset
11798
11799 .
11800 \end_layout
11801
11802 \begin_layout Itemize
11803 \begin_inset Flex Code
11804 status collapsed
11805
11806 \begin_layout Plain Layout
11807 LabelFont
11808 \end_layout
11809
11810 \end_inset
11811
11812  The font used for the label; see 
11813 \begin_inset CommandInset ref
11814 LatexCommand ref
11815 reference "subsec:Font-description"
11816
11817 \end_inset
11818
11819 .
11820 \end_layout
11821
11822 \begin_layout Itemize
11823 \begin_inset Flex Code
11824 status collapsed
11825
11826 \begin_layout Plain Layout
11827 Decoration
11828 \end_layout
11829
11830 \end_inset
11831
11832  [
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837
11838 \emph on
11839 Classic
11840 \emph default
11841 , Minimalistic, Conglomerate
11842 \end_layout
11843
11844 \end_inset
11845
11846 ] describes the rendering style used for the inset's frame and buttons.
11847 \end_layout
11848
11849 \begin_layout Itemize
11850 \begin_inset Flex Code
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 AutoInsert
11855 \end_layout
11856
11857 \end_inset
11858
11859  
11860 \begin_inset Flex Code
11861 status collapsed
11862
11863 \begin_layout Plain Layout
11864 [int=0]
11865 \end_layout
11866
11867 \end_inset
11868
11869  If this is set to 
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 1
11875 \end_layout
11876
11877 \end_inset
11878
11879 , this argument is automatically inserted when the respective style is selected.
11880  Currently, only one argument per style\SpecialChar breakableslash
11881 layout can be automatically inserted.
11882 \end_layout
11883
11884 \begin_layout Itemize
11885 \begin_inset Flex Code
11886 status collapsed
11887
11888 \begin_layout Plain Layout
11889 InsertCotext
11890 \end_layout
11891
11892 \end_inset
11893
11894  
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899 [int=0]
11900 \end_layout
11901
11902 \end_inset
11903
11904  If this is set to 
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 1
11910 \end_layout
11911
11912 \end_inset
11913
11914 , this argument will be inserted with a copy of the co-text (either selected
11915  text or the whole paragraph) as content.
11916 \end_layout
11917
11918 \begin_layout Itemize
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 PassThru
11924 \end_layout
11925
11926 \end_inset
11927
11928  [
11929 \begin_inset Flex Code
11930 status collapsed
11931
11932 \begin_layout Plain Layout
11933
11934 \emph on
11935 inherited
11936 \emph default
11937 , true, false
11938 \end_layout
11939
11940 \end_inset
11941
11942 ] Whether the contents of this argument should be output in raw form, meaning
11943  without special translations that \SpecialChar LaTeX
11944  would require.
11945  By default, the 
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 PassThru
11951 \end_layout
11952
11953 \end_inset
11954
11955  status is inherited by the inset or paragraph layout the argument belongs
11956  to, true and false change the status for the given argument only.
11957 \end_layout
11958
11959 \begin_layout Itemize
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 PassThruChars
11965 \end_layout
11966
11967 \end_inset
11968
11969  [
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 string of characters
11975 \end_layout
11976
11977 \end_inset
11978
11979 ]
11980 \family typewriter
11981  
11982 \family default
11983 Defines individual characters
11984 \begin_inset Newline linebreak
11985 \end_inset
11986
11987 that should be output in raw form, meaning without special translations
11988  that \SpecialChar LaTeX
11989  would require.
11990  Note that, contrary to PassThru, this needs to be explicitly defined for
11991  arguments.
11992  That is, arguments do not inherit PassThruChars from their parent inset
11993  or layout.
11994 \end_layout
11995
11996 \begin_layout Itemize
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 IsTocCaption
12002 \end_layout
12003
12004 \end_inset
12005
12006  [
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011
12012 \emph on
12013 0
12014 \end_layout
12015
12016 \end_inset
12017
12018 ,
12019 \begin_inset space \thinspace{}
12020 \end_inset
12021
12022
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 1
12028 \end_layout
12029
12030 \end_inset
12031
12032 ] If this is set to 1, the argument will output its content in the corresponding
12033  item in the table of contents.
12034  See AddToToc.
12035 \end_layout
12036
12037 \begin_layout Standard
12038 By default, the text entered in the \SpecialChar LyX
12039  workarea in the respective layout is
12040  the last (mandatory) argument of a command if the 
12041 \begin_inset Flex Code
12042 status collapsed
12043
12044 \begin_layout Plain Layout
12045 LatexType
12046 \end_layout
12047
12048 \end_inset
12049
12050  is 
12051 \begin_inset Flex Code
12052 status collapsed
12053
12054 \begin_layout Plain Layout
12055 Command
12056 \end_layout
12057
12058 \end_inset
12059
12060 .
12061  However, arguments with the prefix 
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 post:
12067 \end_layout
12068
12069 \end_inset
12070
12071  are output after this workarea argument.
12072  Note that post-argument numbering restarts at 1, so the first argument
12073  following the workarea argument is 
12074 \begin_inset Flex Code
12075 status collapsed
12076
12077 \begin_layout Plain Layout
12078 post:1
12079 \end_layout
12080
12081 \end_inset
12082
12083 .
12084  Post-arguments are ignored in any other 
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 LatexType
12090 \end_layout
12091
12092 \end_inset
12093
12094  than 
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 Command
12100 \end_layout
12101
12102 \end_inset
12103
12104 .
12105 \end_layout
12106
12107 \begin_layout Standard
12108 Arguments for list 
12109 \begin_inset Flex Code
12110 status collapsed
12111
12112 \begin_layout Plain Layout
12113
12114 \backslash
12115 item
12116 \end_layout
12117
12118 \end_inset
12119
12120 s (as in 
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125
12126 \backslash
12127 item[foo]
12128 \end_layout
12129
12130 \end_inset
12131
12132 ) have the prefix 
12133 \begin_inset Flex Code
12134 status collapsed
12135
12136 \begin_layout Plain Layout
12137 item:
12138 \end_layout
12139
12140 \end_inset
12141
12142  followed by the number (e.
12143 \begin_inset space \thinspace{}
12144 \end_inset
12145
12146 g.
12147 \begin_inset space \space{}
12148 \end_inset
12149
12150
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 Argument item:1
12156 \end_layout
12157
12158 \end_inset
12159
12160 ).
12161 \end_layout
12162
12163 \end_deeper
12164 \begin_layout Description
12165 \begin_inset Flex Code
12166 status collapsed
12167
12168 \begin_layout Plain Layout
12169 BabelPreamble
12170 \end_layout
12171
12172 \end_inset
12173
12174  Note that this will completely override any prior 
12175 \begin_inset Flex Code
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179 BabelPreamble
12180 \end_layout
12181
12182 \end_inset
12183
12184  declaration for this style.
12185  Must end with 
12186 \begin_inset Quotes eld
12187 \end_inset
12188
12189
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 EndBabelPreamble
12195 \end_layout
12196
12197 \end_inset
12198
12199
12200 \begin_inset Quotes erd
12201 \end_inset
12202
12203 .
12204  See 
12205 \begin_inset CommandInset ref
12206 LatexCommand ref
12207 reference "subsec:I18n"
12208
12209 \end_inset
12210
12211  for details on its use.
12212 \end_layout
12213
12214 \begin_layout Description
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 BottomSep
12220 \end_layout
12221
12222 \end_inset
12223
12224  [
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 float=0
12230 \end_layout
12231
12232 \end_inset
12233
12234 ]
12235 \begin_inset Foot
12236 status collapsed
12237
12238 \begin_layout Plain Layout
12239 Note that a `float' here is a real number, such as: 1.5.
12240 \end_layout
12241
12242 \end_inset
12243
12244  The vertical space with which the last of a chain of paragraphs with this
12245  style is separated from the following paragraph.
12246  If the next paragraph has another style, the separations are not simply
12247  added, but the maximum is taken.
12248 \end_layout
12249
12250 \begin_layout Description
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255 Category
12256 \end_layout
12257
12258 \end_inset
12259
12260  [
12261 \begin_inset Flex Code
12262 status collapsed
12263
12264 \begin_layout Plain Layout
12265 string
12266 \end_layout
12267
12268 \end_inset
12269
12270 ] The category for this style.
12271  This is used to group related styles in the style combobox on the toolbar.
12272  Any string can be used, but you may want to use existing categories with
12273  your own styles.
12274  
12275 \end_layout
12276
12277 \begin_layout Description
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282 CommandDepth
12283 \end_layout
12284
12285 \end_inset
12286
12287  Depth of XML command.
12288  Used only with XML-type formats.
12289 \end_layout
12290
12291 \begin_layout Description
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296 CopyStyle
12297 \end_layout
12298
12299 \end_inset
12300
12301  [
12302 \begin_inset Flex Code
12303 status collapsed
12304
12305 \begin_layout Plain Layout
12306 string
12307 \end_layout
12308
12309 \end_inset
12310
12311 ] Copies all the features of an existing style into the current one.
12312  
12313 \end_layout
12314
12315 \begin_layout Description
12316 \begin_inset Flex Code
12317 status collapsed
12318
12319 \begin_layout Plain Layout
12320 DependsOn
12321 \end_layout
12322
12323 \end_inset
12324
12325  [
12326 \begin_inset Flex Code
12327 status collapsed
12328
12329 \begin_layout Plain Layout
12330 <name>
12331 \end_layout
12332
12333 \end_inset
12334
12335 ] The name of a style whose preamble should be output 
12336 \emph on
12337 before
12338 \emph default
12339  this one.
12340  This allows to ensure some ordering of the preamble snippets when macros
12341  definitions depend on one another.
12342 \begin_inset Foot
12343 status collapsed
12344
12345 \begin_layout Plain Layout
12346 Note that, besides that functionality, there is no way to ensure any ordering
12347  of preambles.
12348  The ordering that you see in a given version of \SpecialChar LyX
12349  may change without warning
12350  in later versions.
12351 \end_layout
12352
12353 \end_inset
12354
12355
12356 \end_layout
12357
12358 \begin_layout Description
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 EndLabeltype
12364 \end_layout
12365
12366 \end_inset
12367
12368  [
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373
12374 \emph on
12375 No_Label
12376 \emph default
12377 , Box, Filled_Box, Static
12378 \end_layout
12379
12380 \end_inset
12381
12382 ] The type of label that stands at the end of the paragraph (or sequence
12383  of paragraphs if 
12384 \begin_inset Flex Code
12385 status collapsed
12386
12387 \begin_layout Plain Layout
12388 LatexType
12389 \end_layout
12390
12391 \end_inset
12392
12393  is
12394 \begin_inset Newline newline
12395 \end_inset
12396
12397
12398 \begin_inset Flex Code
12399 status collapsed
12400
12401 \begin_layout Plain Layout
12402 Environment
12403 \end_layout
12404
12405 \end_inset
12406
12407
12408 \begin_inset Flex Code
12409 status collapsed
12410
12411 \begin_layout Plain Layout
12412 Item_Environment
12413 \end_layout
12414
12415 \end_inset
12416
12417  or 
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 List_Environment
12423 \end_layout
12424
12425 \end_inset
12426
12427 ).
12428  
12429 \begin_inset Flex Code
12430 status collapsed
12431
12432 \begin_layout Plain Layout
12433 No_Label
12434 \end_layout
12435
12436 \end_inset
12437
12438  means 
12439 \begin_inset Quotes eld
12440 \end_inset
12441
12442 nothing
12443 \begin_inset Quotes erd
12444 \end_inset
12445
12446
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 Box
12452 \end_layout
12453
12454 \end_inset
12455
12456  (resp.
12457 \begin_inset space \space{}
12458 \end_inset
12459
12460
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 Filled_Box
12466 \end_layout
12467
12468 \end_inset
12469
12470 ) is a white (resp.
12471 \begin_inset space ~
12472 \end_inset
12473
12474 black) square suitable for end of proof markers, 
12475 \begin_inset Flex Code
12476 status collapsed
12477
12478 \begin_layout Plain Layout
12479 Static
12480 \end_layout
12481
12482 \end_inset
12483
12484  is an explicit text string.
12485 \end_layout
12486
12487 \begin_layout Description
12488 \begin_inset Flex Code
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492 EndLabelString
12493 \end_layout
12494
12495 \end_inset
12496
12497  [
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 string=""
12503 \end_layout
12504
12505 \end_inset
12506
12507 ] The string used for a label with a 
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 Static
12513 \end_layout
12514
12515 \end_inset
12516
12517
12518 \begin_inset Newline newline
12519 \end_inset
12520
12521
12522 \begin_inset Flex Code
12523 status collapsed
12524
12525 \begin_layout Plain Layout
12526 EndLabelType
12527 \end_layout
12528
12529 \end_inset
12530
12531 .
12532  
12533 \end_layout
12534
12535 \begin_layout Description
12536 \begin_inset Flex Code
12537 status collapsed
12538
12539 \begin_layout Plain Layout
12540 Font
12541 \end_layout
12542
12543 \end_inset
12544
12545  The font used for both the text body 
12546 \emph on
12547 and
12548 \emph default
12549  the label.
12550  See 
12551 \begin_inset CommandInset ref
12552 LatexCommand ref
12553 reference "subsec:Font-description"
12554
12555 \end_inset
12556
12557 .
12558  Note that defining this font automatically defines the 
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563 LabelFont
12564 \end_layout
12565
12566 \end_inset
12567
12568  to the same value.
12569  So you should define this one first if you also want to define 
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574 LabelFont
12575 \end_layout
12576
12577 \end_inset
12578
12579 .
12580 \end_layout
12581
12582 \begin_layout Description
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 ForceLocal
12588 \end_layout
12589
12590 \end_inset
12591
12592  [
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 int=0
12598 \end_layout
12599
12600 \end_inset
12601
12602 ] Used for backporting new styles to stable \SpecialChar LyX
12603  versions.
12604  The first stable version that supports this tag is \SpecialChar LyX
12605  2.1.0.
12606  The argument is a number which may either be 0, -1 or any value greater
12607  than zero.
12608  If the 
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 ForceLocal
12614 \end_layout
12615
12616 \end_inset
12617
12618  flag of a style is greater than zero, it will always be written to the
12619  document header.
12620  If a .lyx file is read, the style definitions from the document header are
12621  added to the document class.
12622  Therefore even older \SpecialChar LyX
12623  versions can handle the style.
12624  The argument of 
12625 \begin_inset Flex Code
12626 status collapsed
12627
12628 \begin_layout Plain Layout
12629 ForceLocal
12630 \end_layout
12631
12632 \end_inset
12633
12634  is a version number: if the style is read, and the version number is less
12635  than the version number of the already existing style in the document class,
12636  the new style is ignored.
12637  If the version number is greater, the new style replaces the existing style.
12638  A value of -1 means an infinite version number, i.
12639 \begin_inset space \thinspace{}
12640 \end_inset
12641
12642 e.
12643 \begin_inset space \space{}
12644 \end_inset
12645
12646 the style is always used.
12647 \end_layout
12648
12649 \begin_layout Description
12650 \begin_inset Flex Code
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654 FreeSpacing
12655 \end_layout
12656
12657 \end_inset
12658
12659  [
12660 \begin_inset Flex Code
12661 status collapsed
12662
12663 \begin_layout Plain Layout
12664
12665 \emph on
12666 0
12667 \end_layout
12668
12669 \end_inset
12670
12671 ,
12672 \begin_inset space \thinspace{}
12673 \end_inset
12674
12675
12676 \begin_inset Flex Code
12677 status collapsed
12678
12679 \begin_layout Plain Layout
12680 1
12681 \end_layout
12682
12683 \end_inset
12684
12685 ] Usually \SpecialChar LyX
12686  does not allow you to insert more than one space between words,
12687  since a space is considered as the separation between two words, not a
12688  character or symbol of its own.
12689  This is a very fine thing but sometimes annoying, for example, when typing
12690  program code or plain \SpecialChar LaTeX
12691  code.
12692  For this reason, 
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697 FreeSpacing
12698 \end_layout
12699
12700 \end_inset
12701
12702  can be enabled.
12703  Note that \SpecialChar LyX
12704  will create protected blanks for the additional blanks when
12705  in another mode than \SpecialChar LaTeX
12706 -mode.
12707 \end_layout
12708
12709 \begin_layout Description
12710 \begin_inset Flex Code
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 HTML*
12715 \end_layout
12716
12717 \end_inset
12718
12719  These tags are used with XHTML output.
12720  See 
12721 \begin_inset CommandInset ref
12722 LatexCommand ref
12723 reference "subsec:Paragraph-Style-XHTML"
12724
12725 \end_inset
12726
12727 .
12728 \end_layout
12729
12730 \begin_layout Description
12731 \begin_inset Flex Code
12732 status collapsed
12733
12734 \begin_layout Plain Layout
12735 InnerTag
12736 \end_layout
12737
12738 \end_inset
12739
12740  [FIXME] (Used only with XML-type formats.)
12741 \end_layout
12742
12743 \begin_layout Description
12744 \begin_inset Flex Code
12745 status collapsed
12746
12747 \begin_layout Plain Layout
12748 InPreamble
12749 \end_layout
12750
12751 \end_inset
12752
12753  [
12754 \begin_inset Flex Code
12755 status collapsed
12756
12757 \begin_layout Plain Layout
12758
12759 \emph on
12760 0
12761 \end_layout
12762
12763 \end_inset
12764
12765 ,
12766 \begin_inset space \thinspace{}
12767 \end_inset
12768
12769
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 1
12775 \end_layout
12776
12777 \end_inset
12778
12779 ] If 
12780 \begin_inset Flex Code
12781 status collapsed
12782
12783 \begin_layout Plain Layout
12784 1
12785 \end_layout
12786
12787 \end_inset
12788
12789 , marks the style as to be included in the document preamble and not in
12790  the document body.
12791  This is useful for document classes that want such information as the title
12792  and author to appear in the preamble.
12793  Note that this works only for styles for which the 
12794 \begin_inset Flex Code
12795 status collapsed
12796
12797 \begin_layout Plain Layout
12798 LatexType
12799 \end_layout
12800
12801 \end_inset
12802
12803  is 
12804 \begin_inset Flex Code
12805 status collapsed
12806
12807 \begin_layout Plain Layout
12808 Command
12809 \end_layout
12810
12811 \end_inset
12812
12813  or 
12814 \begin_inset Flex Code
12815 status collapsed
12816
12817 \begin_layout Plain Layout
12818 Paragraph
12819 \end_layout
12820
12821 \end_inset
12822
12823 .
12824 \end_layout
12825
12826 \begin_layout Description
12827 \begin_inset Flex Code
12828 status collapsed
12829
12830 \begin_layout Plain Layout
12831 InTitle
12832 \end_layout
12833
12834 \end_inset
12835
12836  [
12837 \begin_inset Flex Code
12838 status collapsed
12839
12840 \begin_layout Plain Layout
12841
12842 \emph on
12843 0
12844 \end_layout
12845
12846 \end_inset
12847
12848 ,
12849 \begin_inset space \thinspace{}
12850 \end_inset
12851
12852
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 1
12858 \end_layout
12859
12860 \end_inset
12861
12862 ] If 
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867 1
12868 \end_layout
12869
12870 \end_inset
12871
12872 , marks the style as being part of a title block (see also the 
12873 \begin_inset Flex Code
12874 status collapsed
12875
12876 \begin_layout Plain Layout
12877 TitleLatexType
12878 \end_layout
12879
12880 \end_inset
12881
12882  and 
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 TitleLatexName
12888 \end_layout
12889
12890 \end_inset
12891
12892  global entries).
12893 \end_layout
12894
12895 \begin_layout Description
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 IsTocCaption
12901 \end_layout
12902
12903 \end_inset
12904
12905  [
12906 \begin_inset Flex Code
12907 status collapsed
12908
12909 \begin_layout Plain Layout
12910
12911 \emph on
12912 0
12913 \end_layout
12914
12915 \end_inset
12916
12917 ,
12918 \begin_inset space \thinspace{}
12919 \end_inset
12920
12921
12922 \begin_inset Flex Code
12923 status collapsed
12924
12925 \begin_layout Plain Layout
12926 1
12927 \end_layout
12928
12929 \end_inset
12930
12931 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
12932  of its contents in its item in the table of contents.
12933  Otherwise, only the label, if it exists, appears.
12934 \end_layout
12935
12936 \begin_layout Description
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 ItemCommand
12942 \end_layout
12943
12944 \end_inset
12945
12946  [
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951 string="item"
12952 \end_layout
12953
12954 \end_inset
12955
12956 ] The \SpecialChar LaTeX
12957  command sequence declaring an item in a list.
12958  The command is to be defined without the preceding backslash (the default
12959  is 
12960 \begin_inset Quotes eld
12961 \end_inset
12962
12963 item
12964 \begin_inset Quotes erd
12965 \end_inset
12966
12967 , resulting in 
12968 \begin_inset Flex Code
12969 status collapsed
12970
12971 \begin_layout Plain Layout
12972
12973 \backslash
12974 item
12975 \end_layout
12976
12977 \end_inset
12978
12979  in the \SpecialChar LaTeX
12980  output).
12981 \end_layout
12982
12983 \begin_layout Description
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 ItemSep
12989 \end_layout
12990
12991 \end_inset
12992
12993  [
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 float=0
12999 \end_layout
13000
13001 \end_inset
13002
13003 ] This provides extra space between paragraphs that have the same style.
13004  If you put other styles into an environment, each is separated with the
13005  environment's 
13006 \begin_inset Flex Code
13007 status collapsed
13008
13009 \begin_layout Plain Layout
13010 ParSep
13011 \end_layout
13012
13013 \end_inset
13014
13015 .
13016  But the whole items of the environment are additionally separated with
13017  this 
13018 \begin_inset Flex Code
13019 status collapsed
13020
13021 \begin_layout Plain Layout
13022 ItemSep
13023 \end_layout
13024
13025 \end_inset
13026
13027 .
13028  Note that this is a
13029 \emph on
13030  multiplier.
13031 \end_layout
13032
13033 \begin_layout Description
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 ItemTag
13039 \end_layout
13040
13041 \end_inset
13042
13043  [FIXME] (Used only with XML-type formats.)
13044 \end_layout
13045
13046 \begin_layout Description
13047 \begin_inset Flex Code
13048 status collapsed
13049
13050 \begin_layout Plain Layout
13051 KeepEmpty
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 \emph on
13063 0
13064 \end_layout
13065
13066 \end_inset
13067
13068 ,
13069 \begin_inset space \thinspace{}
13070 \end_inset
13071
13072
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 1
13078 \end_layout
13079
13080 \end_inset
13081
13082 ] Usually \SpecialChar LyX
13083  does not allow you to leave a paragraph empty, since it would
13084  lead to empty \SpecialChar LaTeX
13085  output.
13086  There are some cases where this could be desirable however: in a letter
13087  template, the required fields can be provided as empty fields, so that
13088  people do not forget them; in some special classes, a style can be used
13089  as some kind of break, which does not contain actual text.
13090 \end_layout
13091
13092 \begin_layout Description
13093 \begin_inset Flex Code
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 LabelBottomsep
13098 \end_layout
13099
13100 \end_inset
13101
13102  [
13103 \begin_inset Flex Code
13104 status collapsed
13105
13106 \begin_layout Plain Layout
13107 float=0
13108 \end_layout
13109
13110 \end_inset
13111
13112 ] The vertical space between the label and the text body.
13113  Only used for labels that are above the text body (
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118 Top_Environment
13119 \end_layout
13120
13121 \end_inset
13122
13123  and
13124 \begin_inset Newline newline
13125 \end_inset
13126
13127
13128 \begin_inset Flex Code
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132 Centered_Top_Environment
13133 \end_layout
13134
13135 \end_inset
13136
13137 ).
13138 \end_layout
13139
13140 \begin_layout Description
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 LabelCounter
13146 \end_layout
13147
13148 \end_inset
13149
13150  [
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 string=""
13156 \end_layout
13157
13158 \end_inset
13159
13160 ] The name of the counter for automatic numbering.
13161  In order to have the counter appear with your label, you will need to reference
13162  it in the 
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167
13168 \family typewriter
13169 LabelString
13170 \end_layout
13171
13172 \end_inset
13173
13174 .
13175  This will work with 
13176 \begin_inset Flex Code
13177 status collapsed
13178
13179 \begin_layout Plain Layout
13180 LabelType
13181 \end_layout
13182
13183 \end_inset
13184
13185 s, 
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190 Static
13191 \end_layout
13192
13193 \end_inset
13194
13195
13196 \begin_inset Flex Code
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200 Above
13201 \end_layout
13202
13203 \end_inset
13204
13205  and 
13206 \begin_inset Flex Code
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210 Centered
13211 \end_layout
13212
13213 \end_inset
13214
13215 , at least.
13216 \begin_inset Newline newline
13217 \end_inset
13218
13219 This 
13220 \emph on
13221 may
13222 \emph default
13223  also be given if 
13224 \begin_inset Flex Code
13225 status collapsed
13226
13227 \begin_layout Plain Layout
13228 LabelType
13229 \end_layout
13230
13231 \end_inset
13232
13233  is 
13234 \begin_inset Flex Code
13235 status collapsed
13236
13237 \begin_layout Plain Layout
13238 Enumerate
13239 \end_layout
13240
13241 \end_inset
13242
13243 , though this case is a bit complicated.
13244  Suppose you declare 
13245 \begin_inset Quotes eld
13246 \end_inset
13247
13248
13249 \begin_inset Flex Code
13250 status collapsed
13251
13252 \begin_layout Plain Layout
13253 LabelCounter myenum
13254 \end_layout
13255
13256 \end_inset
13257
13258
13259 \begin_inset Quotes erd
13260 \end_inset
13261
13262 .
13263  Then the actual counters used are 
13264 \begin_inset Flex Code
13265 status collapsed
13266
13267 \begin_layout Plain Layout
13268 myenumi
13269 \end_layout
13270
13271 \end_inset
13272
13273
13274 \begin_inset Flex Code
13275 status collapsed
13276
13277 \begin_layout Plain Layout
13278 myenumii
13279 \end_layout
13280
13281 \end_inset
13282
13283
13284 \begin_inset Flex Code
13285 status collapsed
13286
13287 \begin_layout Plain Layout
13288 myenumiii
13289 \end_layout
13290
13291 \end_inset
13292
13293  and 
13294 \begin_inset Flex Code
13295 status collapsed
13296
13297 \begin_layout Plain Layout
13298 myenumiv
13299 \end_layout
13300
13301 \end_inset
13302
13303 , much as in \SpecialChar LaTeX
13304 .
13305  These counters must all be declared separately.
13306 \begin_inset Newline newline
13307 \end_inset
13308
13309 See 
13310 \begin_inset CommandInset ref
13311 LatexCommand ref
13312 reference "subsec:Counters"
13313
13314 \end_inset
13315
13316  for details on counters.
13317 \end_layout
13318
13319 \begin_layout Description
13320 \begin_inset Flex Code
13321 status collapsed
13322
13323 \begin_layout Plain Layout
13324 LabelFont
13325 \end_layout
13326
13327 \end_inset
13328
13329  The font used for the label.
13330  See 
13331 \begin_inset CommandInset ref
13332 LatexCommand ref
13333 reference "subsec:Font-description"
13334
13335 \end_inset
13336
13337 .
13338 \end_layout
13339
13340 \begin_layout Description
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 LabelIndent
13346 \end_layout
13347
13348 \end_inset
13349
13350  [
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 string=""
13356 \end_layout
13357
13358 \end_inset
13359
13360 ] Text that indicates how far a label should be indented.
13361 \end_layout
13362
13363 \begin_layout Description
13364 \begin_inset Flex Code
13365 status collapsed
13366
13367 \begin_layout Plain Layout
13368 LabelSep
13369 \end_layout
13370
13371 \end_inset
13372
13373  [
13374 \begin_inset Flex Code
13375 status collapsed
13376
13377 \begin_layout Plain Layout
13378 string=""
13379 \end_layout
13380
13381 \end_inset
13382
13383 ] Text that indicates the amount of horizontal space between the label and
13384  the text body.
13385  Only used for labels that are not above the text body.
13386 \end_layout
13387
13388 \begin_layout Description
13389 \begin_inset Flex Code
13390 status collapsed
13391
13392 \begin_layout Plain Layout
13393 LabelString
13394 \end_layout
13395
13396 \end_inset
13397
13398  [
13399 \begin_inset Flex Code
13400 status collapsed
13401
13402 \begin_layout Plain Layout
13403 string=""
13404 \end_layout
13405
13406 \end_inset
13407
13408 ] The string used for the label.
13409  When 
13410 \begin_inset Flex Code
13411 status collapsed
13412
13413 \begin_layout Plain Layout
13414 LabelCounter
13415 \end_layout
13416
13417 \end_inset
13418
13419  is set, this string can be contain the special formatting commands described
13420  in 
13421 \begin_inset CommandInset ref
13422 LatexCommand ref
13423 reference "subsec:Counters"
13424
13425 \end_inset
13426
13427 .
13428 \end_layout
13429
13430 \begin_layout Description
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 LabelStringAppendix
13436 \end_layout
13437
13438 \end_inset
13439
13440  [
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 string=""
13446 \end_layout
13447
13448 \end_inset
13449
13450 ] This is used inside the appendix instead of
13451 \begin_inset Newline newline
13452 \end_inset
13453
13454
13455 \begin_inset Flex Code
13456 status collapsed
13457
13458 \begin_layout Plain Layout
13459 LabelString
13460 \end_layout
13461
13462 \end_inset
13463
13464 .
13465  Note that every 
13466 \begin_inset Flex Code
13467 status collapsed
13468
13469 \begin_layout Plain Layout
13470 LabelString
13471 \end_layout
13472
13473 \end_inset
13474
13475  statement resets
13476 \begin_inset Newline newline
13477 \end_inset
13478
13479
13480 \begin_inset Flex Code
13481 status collapsed
13482
13483 \begin_layout Plain Layout
13484 LabelStringAppendix
13485 \end_layout
13486
13487 \end_inset
13488
13489  too.
13490 \end_layout
13491
13492 \begin_layout Description
13493 \begin_inset Flex Code
13494 status collapsed
13495
13496 \begin_layout Plain Layout
13497 LabelTag
13498 \end_layout
13499
13500 \end_inset
13501
13502  [FIXME] (Used only with XML-type formats.)
13503 \end_layout
13504
13505 \begin_layout Description
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 LabelType
13511 \end_layout
13512
13513 \end_inset
13514
13515  [
13516 \begin_inset Flex Code
13517 status collapsed
13518
13519 \begin_layout Plain Layout
13520
13521 \emph on
13522 No_Label
13523 \emph default
13524 , Manual, Static, Above, 
13525 \begin_inset Newline newline
13526 \end_inset
13527
13528 Centered, Sensitive, Enumerate,
13529 \begin_inset Newline newline
13530 \end_inset
13531
13532 Itemize, Bibliography
13533 \end_layout
13534
13535 \end_inset
13536
13537 ]
13538 \end_layout
13539
13540 \begin_deeper
13541 \begin_layout Description
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546 Manual
13547 \end_layout
13548
13549 \end_inset
13550
13551  means the label is the very first word (up to the first real blank).
13552  Use protected spaces if you want more than one word as the label.
13553  
13554 \end_layout
13555
13556 \begin_layout Description
13557 \begin_inset Flex Code
13558 status collapsed
13559
13560 \begin_layout Plain Layout
13561 Static
13562 \end_layout
13563
13564 \end_inset
13565
13566  means the label is simply what is declared as 
13567 \begin_inset Flex Code
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 LabelString
13572 \end_layout
13573
13574 \end_inset
13575
13576 .
13577  This will be displayed 
13578 \begin_inset Quotes eld
13579 \end_inset
13580
13581 inline
13582 \begin_inset Quotes erd
13583 \end_inset
13584
13585 , at the beginning of the paragraph.
13586  If the 
13587 \begin_inset Flex Code
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591 LatexType
13592 \end_layout
13593
13594 \end_inset
13595
13596  is 
13597 \begin_inset Flex Code
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601 Environment
13602 \end_layout
13603
13604 \end_inset
13605
13606 , then it will be displayed only in the first paragraph of any sequence
13607  of paragraphs with the same 
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612 Style
13613 \end_layout
13614
13615 \end_inset
13616
13617 .
13618 \end_layout
13619
13620 \begin_layout Description
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 Above
13626 \end_layout
13627
13628 \end_inset
13629
13630
13631 \begin_inset space ~
13632 \end_inset
13633
13634 and
13635 \begin_inset space ~
13636 \end_inset
13637
13638
13639 \begin_inset Flex Code
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643 Centered
13644 \end_layout
13645
13646 \end_inset
13647
13648  are special cases of 
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 Static
13654 \end_layout
13655
13656 \end_inset
13657
13658 .
13659  The label will be printed above the paragraph either at the beginning of
13660  the line or centered.
13661 \end_layout
13662
13663 \begin_layout Description
13664 \begin_inset Flex Code
13665 status collapsed
13666
13667 \begin_layout Plain Layout
13668 Sensitive
13669 \end_layout
13670
13671 \end_inset
13672
13673  is a special case for the caption-labels 
13674 \begin_inset Quotes eld
13675 \end_inset
13676
13677 Figure
13678 \begin_inset Quotes erd
13679 \end_inset
13680
13681  and 
13682 \begin_inset Quotes eld
13683 \end_inset
13684
13685 Table
13686 \begin_inset Quotes erd
13687 \end_inset
13688
13689 .
13690 \begin_inset Newline newline
13691 \end_inset
13692
13693
13694 \begin_inset Flex Code
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698 Sensitive
13699 \end_layout
13700
13701 \end_inset
13702
13703  means the (hardcoded) label string depends on the kind of float: It is
13704  hardcoded to be `FloatType N', where N is the value of the counter associated
13705  with the float.
13706  For the case that a caption is inserted outside of a float the 
13707 \begin_inset Flex Code
13708 status collapsed
13709
13710 \begin_layout Plain Layout
13711 LabelString
13712 \end_layout
13713
13714 \end_inset
13715
13716  will appear as 
13717 \begin_inset Quotes eld
13718 \end_inset
13719
13720 Senseless!
13721 \begin_inset Quotes erd
13722 \end_inset
13723
13724 .
13725 \end_layout
13726
13727 \begin_layout Description
13728 \begin_inset Flex Code
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732 Enumerate
13733 \end_layout
13734
13735 \end_inset
13736
13737  produces the usual sort of enumeration labels.
13738  The number type needs to be set in the 
13739 \family sans
13740 Counter
13741 \family default
13742 , see 
13743 \begin_inset CommandInset ref
13744 LatexCommand ref
13745 reference "subsec:Counters"
13746
13747 \end_inset
13748
13749 .
13750 \end_layout
13751
13752 \begin_layout Description
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757 Itemize
13758 \end_layout
13759
13760 \end_inset
13761
13762  produces various bullets at the different levels.
13763  The bullet types displayed can be set via 
13764 \begin_inset Flex Noun
13765 status collapsed
13766
13767 \begin_layout Plain Layout
13768 Document\SpecialChar menuseparator
13769 Settings\SpecialChar menuseparator
13770 Bullets
13771 \end_layout
13772
13773 \end_inset
13774
13775 .
13776 \end_layout
13777
13778 \begin_layout Description
13779 \begin_inset Flex Code
13780 status collapsed
13781
13782 \begin_layout Plain Layout
13783 Bibliography
13784 \end_layout
13785
13786 \end_inset
13787
13788  should be used only with 
13789 \begin_inset Flex Code
13790 status collapsed
13791
13792 \begin_layout Plain Layout
13793 LatexType BibEnvironment
13794 \end_layout
13795
13796 \end_inset
13797
13798 .
13799 \end_layout
13800
13801 \end_deeper
13802 \begin_layout Description
13803 \begin_inset Flex Code
13804 status collapsed
13805
13806 \begin_layout Plain Layout
13807 LangPreamble
13808 \end_layout
13809
13810 \end_inset
13811
13812  Note that this will completely override any prior 
13813 \begin_inset Flex Code
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 LangPreamble
13818 \end_layout
13819
13820 \end_inset
13821
13822  declaration for this style.
13823  Must end with 
13824 \begin_inset Quotes eld
13825 \end_inset
13826
13827
13828 \begin_inset Flex Code
13829 status collapsed
13830
13831 \begin_layout Plain Layout
13832 EndLangPreamble
13833 \end_layout
13834
13835 \end_inset
13836
13837
13838 \begin_inset Quotes erd
13839 \end_inset
13840
13841 .
13842  See 
13843 \begin_inset CommandInset ref
13844 LatexCommand ref
13845 reference "subsec:I18n"
13846
13847 \end_inset
13848
13849  for details on its use.
13850 \end_layout
13851
13852 \begin_layout Description
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 LatexName
13858 \end_layout
13859
13860 \end_inset
13861
13862  [
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 <name>
13868 \end_layout
13869
13870 \end_inset
13871
13872 ] The name of the corresponding \SpecialChar LaTeX
13873  stuff.
13874  Either the environment or command name.
13875 \end_layout
13876
13877 \begin_layout Description
13878 \begin_inset Flex Code
13879 status collapsed
13880
13881 \begin_layout Plain Layout
13882 LatexParam
13883 \end_layout
13884
13885 \end_inset
13886
13887  [
13888 \begin_inset Flex Code
13889 status collapsed
13890
13891 \begin_layout Plain Layout
13892 <parameter>
13893 \end_layout
13894
13895 \end_inset
13896
13897 ] An optional parameter for the corresponding 
13898 \begin_inset Flex Code
13899 status collapsed
13900
13901 \begin_layout Plain Layout
13902 LatexName
13903 \end_layout
13904
13905 \end_inset
13906
13907  stuff.
13908  This parameter cannot be changed from within \SpecialChar LyX
13909  (use 
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914 Argument
13915 \end_layout
13916
13917 \end_inset
13918
13919  for customizable parameters).
13920  This will be output as is after all \SpecialChar LaTeX
13921  
13922 \begin_inset Flex Code
13923 status collapsed
13924
13925 \begin_layout Plain Layout
13926 Argument
13927 \end_layout
13928
13929 \end_inset
13930
13931 s.
13932 \end_layout
13933
13934 \begin_layout Description
13935 \begin_inset Flex Code
13936 status collapsed
13937
13938 \begin_layout Plain Layout
13939 LatexType
13940 \end_layout
13941
13942 \end_inset
13943
13944  [
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949
13950 \emph on
13951 Paragraph
13952 \emph default
13953 , Command, Environment, Item_Environment,
13954 \begin_inset Newline newline
13955 \end_inset
13956
13957 List_Environment, Bib_Environment
13958 \end_layout
13959
13960 \end_inset
13961
13962 ] How the style should be translated into \SpecialChar LaTeX
13963 .
13964 \begin_inset Foot
13965 status collapsed
13966
13967 \begin_layout Plain Layout
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 LatexType
13973 \end_layout
13974
13975 \end_inset
13976
13977  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13978  Visit the SGML class files for specific examples.
13979 \end_layout
13980
13981 \end_inset
13982
13983
13984 \end_layout
13985
13986 \begin_deeper
13987 \begin_layout Description
13988 \begin_inset Flex Code
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992 Paragraph
13993 \end_layout
13994
13995 \end_inset
13996
13997  means nothing special.
13998 \end_layout
13999
14000 \begin_layout Description
14001 \begin_inset Flex Code
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005 Command
14006 \end_layout
14007
14008 \end_inset
14009
14010  means 
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015
14016 \backslash
14017
14018 \emph on
14019 LatexName
14020 \emph default
14021 {\SpecialChar ldots
14022 }
14023 \end_layout
14024
14025 \end_inset
14026
14027 .
14028 \end_layout
14029
14030 \begin_layout Description
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 Environment
14036 \end_layout
14037
14038 \end_inset
14039
14040  means 
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045
14046 \backslash
14047 begin{
14048 \emph on
14049 LatexName
14050 \emph default
14051 }\SpecialChar ldots
14052
14053 \backslash
14054 end{
14055 \emph on
14056 LatexName
14057 \emph default
14058 }
14059 \end_layout
14060
14061 \end_inset
14062
14063 .
14064  
14065 \end_layout
14066
14067 \begin_layout Description
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 Item_Environment
14073 \end_layout
14074
14075 \end_inset
14076
14077  is the same as 
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082 Environment
14083 \end_layout
14084
14085 \end_inset
14086
14087 , except that an 
14088 \begin_inset Flex Code
14089 status collapsed
14090
14091 \begin_layout Plain Layout
14092
14093 \backslash
14094 item
14095 \end_layout
14096
14097 \end_inset
14098
14099  is generated for each paragraph of this environment.
14100  
14101 \end_layout
14102
14103 \begin_layout Description
14104 \begin_inset Flex Code
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 List_Environment
14109 \end_layout
14110
14111 \end_inset
14112
14113  is the same as 
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118 Item_Environment
14119 \end_layout
14120
14121 \end_inset
14122
14123 , except that
14124 \begin_inset Newline newline
14125 \end_inset
14126
14127
14128 \begin_inset Flex Code
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 LabelWidthString
14133 \end_layout
14134
14135 \end_inset
14136
14137  is passed as an argument to the environment.
14138 \begin_inset Newline newline
14139 \end_inset
14140
14141
14142 \begin_inset Flex Code
14143 status collapsed
14144
14145 \begin_layout Plain Layout
14146 LabelWidthString
14147 \end_layout
14148
14149 \end_inset
14150
14151  can be defined in the 
14152 \begin_inset Flex Noun
14153 status collapsed
14154
14155 \begin_layout Plain Layout
14156 Edit\SpecialChar menuseparator
14157 Paragraph
14158 \begin_inset space ~
14159 \end_inset
14160
14161 settings
14162 \end_layout
14163
14164 \end_inset
14165
14166  dialog.
14167 \end_layout
14168
14169 \begin_layout Description
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 Bib_Environment
14175 \end_layout
14176
14177 \end_inset
14178
14179  is like 
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184 Environment
14185 \end_layout
14186
14187 \end_inset
14188
14189  but adds the necessary mandatory argument (the longest label) to the begin
14190  statement of the bibliography environment:
14191 \begin_inset Newline newline
14192 \end_inset
14193
14194
14195 \begin_inset Flex Code
14196 status collapsed
14197
14198 \begin_layout Plain Layout
14199
14200 \backslash
14201 begin{thebibliography}{99}
14202 \end_layout
14203
14204 \end_inset
14205
14206 .
14207  It is therefore only useful for bibliography environments.
14208  The default longest label 
14209 \begin_inset Quotes eld
14210 \end_inset
14211
14212 99
14213 \begin_inset Quotes erd
14214 \end_inset
14215
14216  can be changed by the user in the paragraph settings of a bibliography
14217  item.
14218 \end_layout
14219
14220 \begin_layout Standard
14221 Putting the last few things together, the \SpecialChar LaTeX
14222  output will be either: 
14223 \end_layout
14224
14225 \begin_layout LyX-Code
14226
14227 \backslash
14228 LatexName[LatexParam]{\SpecialChar ldots
14229 }
14230 \end_layout
14231
14232 \begin_layout Standard
14233 or: 
14234 \end_layout
14235
14236 \begin_layout LyX-Code
14237
14238 \backslash
14239 begin{LatexName}[LatexParam] \SpecialChar ldots
14240  
14241 \backslash
14242 end{LatexName}.
14243 \end_layout
14244
14245 \begin_layout Standard
14246 depending upon the \SpecialChar LaTeX
14247  type.
14248 \end_layout
14249
14250 \end_deeper
14251 \begin_layout Description
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 LeftDelim
14257 \end_layout
14258
14259 \end_inset
14260
14261  [
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 string
14267 \end_layout
14268
14269 \end_inset
14270
14271 ] A string that is put at the beginning of the style content.
14272  A line break in the output can be indicated by 
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 <br/>
14278 \end_layout
14279
14280 \end_inset
14281
14282 .
14283 \end_layout
14284
14285 \begin_layout Description
14286 \begin_inset Flex Code
14287 status collapsed
14288
14289 \begin_layout Plain Layout
14290 LeftMargin
14291 \end_layout
14292
14293 \end_inset
14294
14295  [
14296 \begin_inset Flex Code
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300 string=""
14301 \end_layout
14302
14303 \end_inset
14304
14305 ] If you put styles into environments, the different 
14306 \begin_inset Flex Code
14307 status collapsed
14308
14309 \begin_layout Plain Layout
14310 LeftMargin
14311 \end_layout
14312
14313 \end_inset
14314
14315  are not simply added, but added with a factor 
14316 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14317 \end_inset
14318
14319 .
14320  Note that this parameter is also used when 
14321 \begin_inset Flex Code
14322 status collapsed
14323
14324 \begin_layout Plain Layout
14325 Margin
14326 \end_layout
14327
14328 \end_inset
14329
14330  is defined as 
14331 \begin_inset Flex Code
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 Manual
14336 \end_layout
14337
14338 \end_inset
14339
14340  or 
14341 \begin_inset Flex Code
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345 Dynamic
14346 \end_layout
14347
14348 \end_inset
14349
14350 .
14351  Then it is added to the manual or dynamic margin.
14352 \begin_inset Newline newline
14353 \end_inset
14354
14355 For example 
14356 \begin_inset Quotes eld
14357 \end_inset
14358
14359
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 MM
14365 \end_layout
14366
14367 \end_inset
14368
14369
14370 \begin_inset Quotes erd
14371 \end_inset
14372
14373  means that the paragraph is indented with the width of 
14374 \begin_inset Quotes eld
14375 \end_inset
14376
14377
14378 \begin_inset Flex Code
14379 status collapsed
14380
14381 \begin_layout Plain Layout
14382 MM
14383 \end_layout
14384
14385 \end_inset
14386
14387
14388 \begin_inset Quotes erd
14389 \end_inset
14390
14391  in the normal font.
14392  You can get a negative width by prefixing the string with 
14393 \begin_inset Quotes eld
14394 \end_inset
14395
14396
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 -
14402 \end_layout
14403
14404 \end_inset
14405
14406
14407 \begin_inset Quotes erd
14408 \end_inset
14409
14410 .
14411  This way was chosen so that the look is the same with each used screen
14412  font.
14413 \end_layout
14414
14415 \begin_layout Description
14416 \begin_inset Flex Code
14417 status collapsed
14418
14419 \begin_layout Plain Layout
14420 Margin
14421 \end_layout
14422
14423 \end_inset
14424
14425  [
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430
14431 \emph on
14432 Static
14433 \emph default
14434 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14435 \end_layout
14436
14437 \end_inset
14438
14439
14440 \begin_inset Newline newline
14441 \end_inset
14442
14443 The kind of margin that the style has on the left side.
14444 \end_layout
14445
14446 \begin_deeper
14447 \begin_layout Description
14448 \begin_inset Flex Code
14449 status collapsed
14450
14451 \begin_layout Plain Layout
14452 Static
14453 \end_layout
14454
14455 \end_inset
14456
14457  just means a fixed margin.
14458 \end_layout
14459
14460 \begin_layout Description
14461 \begin_inset Flex Code
14462 status collapsed
14463
14464 \begin_layout Plain Layout
14465 Manual
14466 \end_layout
14467
14468 \end_inset
14469
14470  means that the left margin depends on the string entered in the 
14471 \begin_inset Flex Noun
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 Edit\SpecialChar menuseparator
14476 Paragraph
14477 \begin_inset space ~
14478 \end_inset
14479
14480 Settings
14481 \end_layout
14482
14483 \end_inset
14484
14485  dialog.
14486  This is used to typeset nice lists without tabulators.
14487 \end_layout
14488
14489 \begin_layout Description
14490 \begin_inset Flex Code
14491 status collapsed
14492
14493 \begin_layout Plain Layout
14494 Dynamic
14495 \end_layout
14496
14497 \end_inset
14498
14499  means that the margin depends on the size of the label.
14500  This is used for automatic enumerated headlines.
14501  It is obvious that the headline 
14502 \begin_inset Quotes eld
14503 \end_inset
14504
14505 5.4.3.2.1 Very long headline
14506 \begin_inset Quotes erd
14507 \end_inset
14508
14509  must have a wider left margin (as wide as 
14510 \begin_inset Quotes eld
14511 \end_inset
14512
14513 5.4.3.2.1
14514 \begin_inset Quotes erd
14515 \end_inset
14516
14517  plus the space) than 
14518 \begin_inset Quotes eld
14519 \end_inset
14520
14521 3.2 Very long headline
14522 \begin_inset Quotes erd
14523 \end_inset
14524
14525 , even if standard 
14526 \begin_inset Quotes eld
14527 \end_inset
14528
14529 word processors
14530 \begin_inset Quotes erd
14531 \end_inset
14532
14533  are not able to do this.
14534 \end_layout
14535
14536 \begin_layout Description
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541 First_Dynamic
14542 \end_layout
14543
14544 \end_inset
14545
14546  is similar, but only the very first row of the paragraph is dynamic, while
14547  the others are static; this is used, for example, for descriptions.
14548 \end_layout
14549
14550 \begin_layout Description
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 Right_Address_Box
14556 \end_layout
14557
14558 \end_inset
14559
14560  means the margin is chosen in a way that the longest row of this paragraph
14561  fits to the right margin.
14562  This is used to typeset an address on the right edge of the page.
14563 \end_layout
14564
14565 \end_deeper
14566 \begin_layout Description
14567 \begin_inset Flex Code
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 NeedProtect
14572 \end_layout
14573
14574 \end_inset
14575
14576  [
14577 \begin_inset Flex Code
14578 status collapsed
14579
14580 \begin_layout Plain Layout
14581
14582 \emph on
14583 0
14584 \end_layout
14585
14586 \end_inset
14587
14588 ,
14589 \begin_inset space \thinspace{}
14590 \end_inset
14591
14592
14593 \begin_inset Flex Code
14594 status collapsed
14595
14596 \begin_layout Plain Layout
14597 1
14598 \end_layout
14599
14600 \end_inset
14601
14602 ] Whether fragile commands in this style should be 
14603 \begin_inset Flex Code
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607
14608 \backslash
14609 protect
14610 \end_layout
14611
14612 \end_inset
14613
14614 'ed.
14615  (Note: This is 
14616 \emph on
14617 not
14618 \emph default
14619  whether this command should itself be protected.)
14620 \change_inserted -712698321 1514479340
14621
14622 \end_layout
14623
14624 \begin_layout Description
14625
14626 \change_inserted -712698321 1514479340
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631
14632 \change_inserted -712698321 1514479340
14633 Nests
14634 \end_layout
14635
14636 \end_inset
14637
14638  Includes a comma-separated list of layout names that should be nested in
14639  and after the current one.
14640  Only makes sense for nestable layouts (such as environments) 
14641 \begin_inset Quotes eld
14642 \end_inset
14643
14644
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649
14650 \change_inserted -712698321 1514479340
14651 EndNests
14652 \end_layout
14653
14654 \end_inset
14655
14656
14657 \begin_inset Quotes erd
14658 \end_inset
14659
14660 .
14661 \change_unchanged
14662
14663 \end_layout
14664
14665 \begin_layout Description
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670 Newline
14671 \end_layout
14672
14673 \end_inset
14674
14675  [
14676 \begin_inset Flex Code
14677 status collapsed
14678
14679 \begin_layout Plain Layout
14680 0
14681 \end_layout
14682
14683 \end_inset
14684
14685 ,
14686 \begin_inset space \thinspace{}
14687 \end_inset
14688
14689
14690 \begin_inset Flex Code
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694
14695 \emph on
14696 1
14697 \end_layout
14698
14699 \end_inset
14700
14701 ] Whether newlines are translated into \SpecialChar LaTeX
14702  newlines (
14703 \begin_inset Flex Code
14704 status collapsed
14705
14706 \begin_layout Plain Layout
14707
14708 \backslash
14709
14710 \backslash
14711
14712 \end_layout
14713
14714 \end_inset
14715
14716 ) or not.
14717  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14718  editing
14719  inside \SpecialChar LyX
14720 .
14721 \end_layout
14722
14723 \begin_layout Description
14724 \begin_inset Flex Code
14725 status collapsed
14726
14727 \begin_layout Plain Layout
14728 NextNoIndent
14729 \end_layout
14730
14731 \end_inset
14732
14733  [
14734 \begin_inset Flex Code
14735 status collapsed
14736
14737 \begin_layout Plain Layout
14738
14739 \emph on
14740 0
14741 \end_layout
14742
14743 \end_inset
14744
14745 ,
14746 \begin_inset space \thinspace{}
14747 \end_inset
14748
14749
14750 \begin_inset Flex Code
14751 status collapsed
14752
14753 \begin_layout Plain Layout
14754 1
14755 \end_layout
14756
14757 \end_inset
14758
14759 ] If set to true, and if 
14760 \begin_inset Flex Code
14761 status collapsed
14762
14763 \begin_layout Plain Layout
14764 DefaultStyle
14765 \end_layout
14766
14767 \end_inset
14768
14769  (usually 
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 Standard
14775 \end_layout
14776
14777 \end_inset
14778
14779 ) paragraphs are being indented, then the indentation of such a paragraph
14780  following one of this type will be suppressed.
14781  (So this will not affect the display of non-default paragraphs.)
14782 \end_layout
14783
14784 \begin_layout Description
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789 ObsoletedBy
14790 \end_layout
14791
14792 \end_inset
14793
14794  [
14795 \begin_inset Flex Code
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 <name>
14800 \end_layout
14801
14802 \end_inset
14803
14804 ] Name of a style that has replaced this style.
14805  This is used to rename a style, while keeping backward compatibility.
14806 \end_layout
14807
14808 \begin_layout Description
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 ParagraphGroup
14814 \end_layout
14815
14816 \end_inset
14817
14818  [
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 0
14824 \end_layout
14825
14826 \end_inset
14827
14828 ,
14829 \begin_inset space \thinspace{}
14830 \end_inset
14831
14832
14833 \begin_inset Flex Code
14834 status collapsed
14835
14836 \begin_layout Plain Layout
14837 1
14838 \end_layout
14839
14840 \end_inset
14841
14842 ] Determines whether consecutive paragraphs of the same type are treated
14843  as belonging together.
14844  This has the effect that the 
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849 GuiLabel
14850 \end_layout
14851
14852 \end_inset
14853
14854  is only printed once before such a group.
14855  By default, this is true for 
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 LaTeXType
14861 \end_layout
14862
14863 \end_inset
14864
14865  
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 Environment
14871 \end_layout
14872
14873 \end_inset
14874
14875  and 
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 Bib_Environment
14881 \end_layout
14882
14883 \end_inset
14884
14885  and false for all other types.
14886 \end_layout
14887
14888 \begin_layout Description
14889 \begin_inset Flex Code
14890 status collapsed
14891
14892 \begin_layout Plain Layout
14893 ParbreakIsNewline
14894 \end_layout
14895
14896 \end_inset
14897
14898  [
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903
14904 \emph on
14905 0
14906 \end_layout
14907
14908 \end_inset
14909
14910 ,
14911 \begin_inset space \thinspace{}
14912 \end_inset
14913
14914
14915 \begin_inset Flex Code
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 1
14920 \end_layout
14921
14922 \end_inset
14923
14924 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14925  output,
14926  but only by a line break; together with 
14927 \begin_inset Flex Code
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931 PassThru 1
14932 \end_layout
14933
14934 \end_inset
14935
14936 , this allows to emulate a plain text editor (like the ERT inset).
14937 \end_layout
14938
14939 \begin_layout Description
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 ParIndent
14945 \end_layout
14946
14947 \end_inset
14948
14949  [
14950 \begin_inset Flex Code
14951 status collapsed
14952
14953 \begin_layout Plain Layout
14954 string=""
14955 \end_layout
14956
14957 \end_inset
14958
14959 ] The indent of the very first line of a paragraph.
14960  The
14961 \begin_inset Newline newline
14962 \end_inset
14963
14964
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 Parindent
14970 \end_layout
14971
14972 \end_inset
14973
14974  will be fixed for a certain style.
14975  The exception is the default style, since the indentation for these paragraphs
14976  can be prohibited with 
14977 \begin_inset Flex Code
14978 status collapsed
14979
14980 \begin_layout Plain Layout
14981 NextNoIndent
14982 \end_layout
14983
14984 \end_inset
14985
14986 .
14987  Also, 
14988 \begin_inset Flex Code
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992 Standard
14993 \end_layout
14994
14995 \end_inset
14996
14997  style paragraphs inside environments use the 
14998 \begin_inset Flex Code
14999 status collapsed
15000
15001 \begin_layout Plain Layout
15002 Parindent
15003 \end_layout
15004
15005 \end_inset
15006
15007  of the environment, not their native one.
15008  For example, 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 Standard
15014 \end_layout
15015
15016 \end_inset
15017
15018  paragraphs inside an enumeration are not indented.
15019 \end_layout
15020
15021 \begin_layout Description
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 ParSep
15027 \end_layout
15028
15029 \end_inset
15030
15031  [
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 float=0
15037 \end_layout
15038
15039 \end_inset
15040
15041 ] The vertical space between two paragraphs of this style.
15042 \end_layout
15043
15044 \begin_layout Description
15045 \begin_inset Flex Code
15046 status collapsed
15047
15048 \begin_layout Plain Layout
15049 Parskip
15050 \end_layout
15051
15052 \end_inset
15053
15054  [
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 float=0
15060 \end_layout
15061
15062 \end_inset
15063
15064 ] \SpecialChar LyX
15065  allows the user to choose either 
15066 \begin_inset Quotes eld
15067 \end_inset
15068
15069 indent
15070 \begin_inset Quotes erd
15071 \end_inset
15072
15073  or 
15074 \begin_inset Quotes eld
15075 \end_inset
15076
15077 skip
15078 \begin_inset Quotes erd
15079 \end_inset
15080
15081  to separate paragraphs.
15082  When 
15083 \begin_inset Quotes eld
15084 \end_inset
15085
15086 indent
15087 \begin_inset Quotes erd
15088 \end_inset
15089
15090  is chosen, 
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 Parskip
15096 \end_layout
15097
15098 \end_inset
15099
15100  is ignored.
15101  When 
15102 \begin_inset Quotes eld
15103 \end_inset
15104
15105 skip
15106 \begin_inset Quotes erd
15107 \end_inset
15108
15109  is chosen, 
15110 \begin_inset Flex Code
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114 ParIndent
15115 \end_layout
15116
15117 \end_inset
15118
15119  is ignored and all paragraphs are separated by the 
15120 \begin_inset Flex Code
15121 status collapsed
15122
15123 \begin_layout Plain Layout
15124 Parskip
15125 \end_layout
15126
15127 \end_inset
15128
15129  argument.
15130  The vertical space is calculated with 
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 Parskip
15136 \begin_inset space ~
15137 \end_inset
15138
15139 * DefaultHeight
15140 \end_layout
15141
15142 \end_inset
15143
15144  where 
15145 \begin_inset Flex Code
15146 status collapsed
15147
15148 \begin_layout Plain Layout
15149 DefaultHeight
15150 \end_layout
15151
15152 \end_inset
15153
15154  is the height of a row with the normal font.
15155  This way, the look stays the same with different screen fonts.
15156 \end_layout
15157
15158 \begin_layout Description
15159 \begin_inset Flex Code
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163 PassThru
15164 \end_layout
15165
15166 \end_inset
15167
15168  [
15169 \begin_inset Flex Code
15170 status collapsed
15171
15172 \begin_layout Plain Layout
15173
15174 \emph on
15175 0
15176 \end_layout
15177
15178 \end_inset
15179
15180 ,
15181 \begin_inset space \thinspace{}
15182 \end_inset
15183
15184
15185 \begin_inset Flex Code
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 1
15190 \end_layout
15191
15192 \end_inset
15193
15194 ] Whether the contents of this paragraph should be output in raw form, meaning
15195  without special translations that \SpecialChar LaTeX
15196  would require.
15197 \end_layout
15198
15199 \begin_layout Description
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204 PassThruChars
15205 \end_layout
15206
15207 \end_inset
15208
15209  [
15210 \begin_inset Flex Code
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214 string
15215 \end_layout
15216
15217 \end_inset
15218
15219 ]
15220 \family typewriter
15221  
15222 \family default
15223 Defines individual characters that should be output in raw form, meaning
15224  without special translations that \SpecialChar LaTeX
15225  would require.
15226 \end_layout
15227
15228 \begin_layout Description
15229 \begin_inset Flex Code
15230 status collapsed
15231
15232 \begin_layout Plain Layout
15233 Preamble
15234 \end_layout
15235
15236 \end_inset
15237
15238  Information to be included in the \SpecialChar LaTeX
15239  preamble when this style is used.
15240  Used to define macros, load packages, etc., required by this particular
15241  style.
15242  Must end with 
15243 \begin_inset Quotes eld
15244 \end_inset
15245
15246
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 EndPreamble
15252 \end_layout
15253
15254 \end_inset
15255
15256
15257 \begin_inset Quotes erd
15258 \end_inset
15259
15260 .
15261 \end_layout
15262
15263 \begin_layout Description
15264 \begin_inset Flex Code
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268 RefPrefix
15269 \end_layout
15270
15271 \end_inset
15272
15273  [
15274 \begin_inset Flex Code
15275 status collapsed
15276
15277 \begin_layout Plain Layout
15278 string
15279 \end_layout
15280
15281 \end_inset
15282
15283 ] The prefix to use when creating labels referring to paragraphs of this
15284  type.
15285  This allows the use of formatted references.
15286 \end_layout
15287
15288 \begin_layout Description
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293 Requires 
15294 \end_layout
15295
15296 \end_inset
15297
15298  [
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 string
15304 \end_layout
15305
15306 \end_inset
15307
15308 ] Whether the style requires the feature 
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 string
15314 \end_layout
15315
15316 \end_inset
15317
15318  (see 
15319 \begin_inset CommandInset ref
15320 LatexCommand ref
15321 reference "chap:List-of-functions"
15322
15323 \end_inset
15324
15325  for the list of features).
15326  If you require a package with specific options, you can additionally use
15327  
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 PackageOptions
15333 \end_layout
15334
15335 \end_inset
15336
15337  as a general text class parameter (see 
15338 \begin_inset CommandInset ref
15339 LatexCommand ref
15340 reference "subsec:General-text-class"
15341
15342 \end_inset
15343
15344 ).
15345 \end_layout
15346
15347 \begin_layout Description
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 ResetArgs
15353 \end_layout
15354
15355 \end_inset
15356
15357  [
15358 \begin_inset Flex Code
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362
15363 \emph on
15364 0
15365 \end_layout
15366
15367 \end_inset
15368
15369 ,
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374 1
15375 \end_layout
15376
15377 \end_inset
15378
15379 ] Resets the \SpecialChar LaTeX
15380  arguments of this style (as defined via the 
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 Argument
15386 \end_layout
15387
15388 \end_inset
15389
15390  tag).
15391  This is useful if you have copied a style via 
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396 CopyStyle
15397 \end_layout
15398
15399 \end_inset
15400
15401 , but you do not want to inherit its (required and optional) arguments.
15402 \end_layout
15403
15404 \begin_layout Description
15405 \begin_inset Flex Code
15406 status collapsed
15407
15408 \begin_layout Plain Layout
15409 ResumeCounter
15410 \end_layout
15411
15412 \end_inset
15413
15414  [
15415 \begin_inset Flex Code
15416 status collapsed
15417
15418 \begin_layout Plain Layout
15419
15420 \emph on
15421 0
15422 \end_layout
15423
15424 \end_inset
15425
15426 ,
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 1
15432 \end_layout
15433
15434 \end_inset
15435
15436 ] Resumes a counter that is usually reset at each new sequence of layouts.
15437  This is currently only useful when 
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 LabelType
15443 \end_layout
15444
15445 \end_inset
15446
15447  is 
15448 \begin_inset Flex Code
15449 status collapsed
15450
15451 \begin_layout Plain Layout
15452 Enumerate
15453 \end_layout
15454
15455 \end_inset
15456
15457 .
15458 \end_layout
15459
15460 \begin_layout Description
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 RightDelim
15466 \end_layout
15467
15468 \end_inset
15469
15470  [
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 string
15476 \end_layout
15477
15478 \end_inset
15479
15480 ] A string that is put at the end of the layout content.
15481  A line break in the output can be indicated by 
15482 \begin_inset Flex Code
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486 <br/>
15487 \end_layout
15488
15489 \end_inset
15490
15491 .
15492 \end_layout
15493
15494 \begin_layout Description
15495 \begin_inset Flex Code
15496 status collapsed
15497
15498 \begin_layout Plain Layout
15499 RightMargin
15500 \end_layout
15501
15502 \end_inset
15503
15504  [
15505 \begin_inset Flex Code
15506 status collapsed
15507
15508 \begin_layout Plain Layout
15509 string=""
15510 \end_layout
15511
15512 \end_inset
15513
15514 ] Similar to 
15515 \begin_inset Flex Code
15516 status collapsed
15517
15518 \begin_layout Plain Layout
15519 LeftMargin
15520 \end_layout
15521
15522 \end_inset
15523
15524 .
15525 \end_layout
15526
15527 \begin_layout Description
15528 \begin_inset Flex Code
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532 Spacing
15533 \end_layout
15534
15535 \end_inset
15536
15537  [
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542
15543 \emph on
15544 single
15545 \end_layout
15546
15547 \end_inset
15548
15549
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 onehalf
15555 \end_layout
15556
15557 \end_inset
15558
15559
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 double
15565 \end_layout
15566
15567 \end_inset
15568
15569
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 other
15575 \begin_inset space ~
15576 \end_inset
15577
15578 <value>
15579 \end_layout
15580
15581 \end_inset
15582
15583 ] This defines what the default spacing should be in the style.
15584  The arguments 
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589 single
15590 \end_layout
15591
15592 \end_inset
15593
15594
15595 \begin_inset Flex Code
15596 status collapsed
15597
15598 \begin_layout Plain Layout
15599 onehalf
15600 \end_layout
15601
15602 \end_inset
15603
15604  and 
15605 \begin_inset Flex Code
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609 double
15610 \end_layout
15611
15612 \end_inset
15613
15614  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15615  If you specify the argument 
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620 other
15621 \end_layout
15622
15623 \end_inset
15624
15625 , then you must also provide a value argument which will be the actual multiplie
15626 r value.
15627  Note that, contrary to other parameters, 
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 Spacing
15633 \end_layout
15634
15635 \end_inset
15636
15637  implies the generation of specific \SpecialChar LaTeX
15638  code, using the \SpecialChar LaTeX
15639  package 
15640 \family roman
15641
15642 \begin_inset Flex Code
15643 status collapsed
15644
15645 \begin_layout Plain Layout
15646 setspace
15647 \end_layout
15648
15649 \end_inset
15650
15651 .
15652 \end_layout
15653
15654 \begin_layout Description
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 Spellcheck
15660 \end_layout
15661
15662 \end_inset
15663
15664  [
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 0
15670 \end_layout
15671
15672 \end_inset
15673
15674 ,
15675 \begin_inset space \thinspace{}
15676 \end_inset
15677
15678
15679 \begin_inset Flex Code
15680 status collapsed
15681
15682 \begin_layout Plain Layout
15683
15684 \emph on
15685 1
15686 \end_layout
15687
15688 \end_inset
15689
15690 ] Allow spell-checking paragraphs of this style.
15691  Default is true.
15692 \end_layout
15693
15694 \begin_layout Description
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 StepMasterCounter
15700 \end_layout
15701
15702 \end_inset
15703
15704  [
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709
15710 \emph on
15711 0
15712 \end_layout
15713
15714 \end_inset
15715
15716 ,
15717 \begin_inset Flex Code
15718 status collapsed
15719
15720 \begin_layout Plain Layout
15721 1
15722 \end_layout
15723
15724 \end_inset
15725
15726 ] Steps the master counter of a given counter at the beginning of a new
15727  sequence of layouts.
15728  This is currently only useful when 
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 LabelType
15734 \end_layout
15735
15736 \end_inset
15737
15738  is 
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 Enumerate
15744 \end_layout
15745
15746 \end_inset
15747
15748 .
15749 \end_layout
15750
15751 \begin_layout Description
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756 TextFont
15757 \end_layout
15758
15759 \end_inset
15760
15761  The font used for the text body .
15762  See 
15763 \begin_inset CommandInset ref
15764 LatexCommand ref
15765 reference "subsec:Font-description"
15766
15767 \end_inset
15768
15769 .
15770 \end_layout
15771
15772 \begin_layout Description
15773 \begin_inset Flex Code
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 TocLevel
15778 \end_layout
15779
15780 \end_inset
15781
15782
15783 \series medium
15784  [
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789
15790 \series medium
15791 int=3
15792 \end_layout
15793
15794 \end_inset
15795
15796 ]
15797 \series default
15798  The level of the style in the table of contents.
15799  This is used for automatic numbering of section headings.
15800 \end_layout
15801
15802 \begin_layout Description
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 ToggleIndent
15808 \end_layout
15809
15810 \end_inset
15811
15812  [
15813 \emph on
15814
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819
15820 \emph on
15821 default
15822 \end_layout
15823
15824 \end_inset
15825
15826
15827 \emph default
15828
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 always
15834 \end_layout
15835
15836 \end_inset
15837
15838
15839 \begin_inset Flex Code
15840 status collapsed
15841
15842 \begin_layout Plain Layout
15843 never
15844 \end_layout
15845
15846 \end_inset
15847
15848 ] This tag determines whether the first line indentation of this paragraph
15849  can be toggled via the Paragraph settings dialog.
15850  If 
15851 \emph on
15852
15853 \begin_inset Flex Code
15854 status collapsed
15855
15856 \begin_layout Plain Layout
15857
15858 \emph off
15859 default
15860 \end_layout
15861
15862 \end_inset
15863
15864
15865 \emph default
15866  is set, indentation can be toggled if the document settings use 
15867 \begin_inset Quotes eld
15868 \end_inset
15869
15870 indent
15871 \begin_inset Quotes erd
15872 \end_inset
15873
15874  paragraph style, with 
15875 \begin_inset Flex Code
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879 always
15880 \end_layout
15881
15882 \end_inset
15883
15884 , indentation can always be toggled, notwithstanding the document settings,
15885  with 
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 never
15891 \end_layout
15892
15893 \end_inset
15894
15895 , indentation can never be toggled.
15896 \end_layout
15897
15898 \begin_layout Description
15899 \begin_inset Flex Code
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903 TopSep
15904 \end_layout
15905
15906 \end_inset
15907
15908  [
15909 \begin_inset Flex Code
15910 status collapsed
15911
15912 \begin_layout Plain Layout
15913 float=0
15914 \end_layout
15915
15916 \end_inset
15917
15918 ] The vertical space with which the very first of a chain of paragraphs
15919  with this style is separated from the previous paragraph.
15920  If the previous paragraph has another style, the separations are not simply
15921  added, but the maximum is taken.
15922 \end_layout
15923
15924 \begin_layout Subsection
15925 \begin_inset CommandInset label
15926 LatexCommand label
15927 name "subsec:I18n"
15928
15929 \end_inset
15930
15931 Internationalization of Paragraph Styles
15932 \end_layout
15933
15934 \begin_layout Standard
15935 \SpecialChar LyX
15936  has long supported internationalization of layout information, but, until
15937  version 2.0, this applied only to the user interface and not to, say, PDF
15938  output.
15939  Thus, French authors were forced to resort to ugly hacks if they wanted
15940  `
15941 \lang french
15942 Théorème
15943 \lang english
15944  1' instead of `Theorem 1'.
15945  Thanks to Georg Baum, that is no longer the case.
15946 \end_layout
15947
15948 \begin_layout Standard
15949 If a 
15950 \begin_inset Flex Code
15951 status collapsed
15952
15953 \begin_layout Plain Layout
15954 Style
15955 \end_layout
15956
15957 \end_inset
15958
15959  defines text that is to appear in the typeset document, it may use 
15960 \begin_inset Flex Code
15961 status collapsed
15962
15963 \begin_layout Plain Layout
15964 LangPreamble
15965 \end_layout
15966
15967 \end_inset
15968
15969  and 
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 BabelPreamble
15975 \end_layout
15976
15977 \end_inset
15978
15979  to support non-English and even multi-language documents correctly.
15980  The following excerpt (from the 
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 theorems-ams.inc
15986 \end_layout
15987
15988 \end_inset
15989
15990  file) shows how this works:
15991 \end_layout
15992
15993 \begin_layout LyX-Code
15994 Preamble
15995 \end_layout
15996
15997 \begin_deeper
15998 \begin_layout LyX-Code
15999   
16000 \backslash
16001 theoremstyle{remark}
16002 \end_layout
16003
16004 \begin_layout LyX-Code
16005   
16006 \backslash
16007 newtheorem{claim}[thm]{
16008 \backslash
16009 protect
16010 \backslash
16011 claimname}
16012 \end_layout
16013
16014 \begin_layout LyX-Code
16015 EndPreamble
16016 \end_layout
16017
16018 \begin_layout LyX-Code
16019 LangPreamble
16020 \end_layout
16021
16022 \begin_layout LyX-Code
16023   
16024 \backslash
16025 providecommand{
16026 \backslash
16027 claimname}{_(Claim)}
16028 \end_layout
16029
16030 \begin_layout LyX-Code
16031 EndLangPreamble
16032 \end_layout
16033
16034 \begin_layout LyX-Code
16035 BabelPreamble
16036 \end_layout
16037
16038 \begin_layout LyX-Code
16039     
16040 \backslash
16041 addto
16042 \backslash
16043 captions$$lang{
16044 \backslash
16045 renewcommand{
16046 \backslash
16047 claimname}{_(Claim)}}
16048 \end_layout
16049
16050 \begin_layout LyX-Code
16051 EndBabelPreamble
16052 \end_layout
16053
16054 \end_deeper
16055 \begin_layout Standard
16056 In principle, any legal \SpecialChar LaTeX
16057  may appear in the 
16058 \begin_inset Flex Code
16059 status collapsed
16060
16061 \begin_layout Plain Layout
16062 LangPreamble
16063 \end_layout
16064
16065 \end_inset
16066
16067  and 
16068 \begin_inset Flex Code
16069 status collapsed
16070
16071 \begin_layout Plain Layout
16072 BabelPreamble
16073 \end_layout
16074
16075 \end_inset
16076
16077  tags, but in practice they will typically look as they do here.
16078  The key to correct translation of the typeset text is the definition of
16079  the \SpecialChar LaTeX
16080  command 
16081 \begin_inset Flex Code
16082 status collapsed
16083
16084 \begin_layout Plain Layout
16085
16086 \backslash
16087 claimname
16088 \end_layout
16089
16090 \end_inset
16091
16092  and its use in 
16093 \begin_inset Flex Code
16094 status collapsed
16095
16096 \begin_layout Plain Layout
16097
16098 \backslash
16099 newtheorem
16100 \end_layout
16101
16102 \end_inset
16103
16104 .
16105  
16106 \end_layout
16107
16108 \begin_layout Standard
16109 The 
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 LangPreamble
16115 \end_layout
16116
16117 \end_inset
16118
16119  tag provides for internationalization based upon the overall language of
16120  the document.
16121  The contents of the tag will be included in the preamble, just as with
16122  the 
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 Preamble
16128 \end_layout
16129
16130 \end_inset
16131
16132  tag.
16133  What makes it special is the use of the 
16134 \begin_inset Quotes eld
16135 \end_inset
16136
16137 function
16138 \begin_inset Quotes erd
16139 \end_inset
16140
16141  
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 _()
16147 \end_layout
16148
16149 \end_inset
16150
16151 , which will be replaced, when \SpecialChar LyX
16152  produces \SpecialChar LaTeX
16153  output, with the translation of
16154  its argument into the document language.
16155 \end_layout
16156
16157 \begin_layout Standard
16158 The 
16159 \begin_inset Flex Code
16160 status collapsed
16161
16162 \begin_layout Plain Layout
16163 BabelPreamble
16164 \end_layout
16165
16166 \end_inset
16167
16168  tag is more complex, since it is meant to provide support for multi-language
16169  documents and so offers an interface to the 
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 babel
16175 \end_layout
16176
16177 \end_inset
16178
16179  package.
16180  Its contents will be added to the preamble once for each language that
16181  appears in the document.
16182  In this case, the argument to 
16183 \begin_inset Flex Code
16184 status collapsed
16185
16186 \begin_layout Plain Layout
16187 _()
16188 \end_layout
16189
16190 \end_inset
16191
16192  will be replaced with its translation into the language in question; the
16193  expression 
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 $$lang
16199 \end_layout
16200
16201 \end_inset
16202
16203  is replaced by the language name (as used by the babel package).
16204 \end_layout
16205
16206 \begin_layout Standard
16207 A German document that also included a French section would thus have the
16208  following in the preamble:
16209 \end_layout
16210
16211 \begin_layout LyX-Code
16212
16213 \backslash
16214 addto
16215 \backslash
16216 captionsfrench{
16217 \backslash
16218 renewcommand{
16219 \backslash
16220 claimname}{Affirmation}}
16221 \begin_inset Newline newline
16222 \end_inset
16223
16224
16225 \backslash
16226 addto
16227 \backslash
16228 captionsngerman{
16229 \backslash
16230 renewcommand{
16231 \backslash
16232 claimname}{Behauptung}}
16233 \begin_inset Newline newline
16234 \end_inset
16235
16236
16237 \backslash
16238 providecommand{
16239 \backslash
16240 claimname}{Behauptung}
16241 \end_layout
16242
16243 \begin_layout Standard
16244 \SpecialChar LaTeX
16245  and 
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 babel
16251 \end_layout
16252
16253 \end_inset
16254
16255  will then conspire to produce the correct text in the output.
16256 \end_layout
16257
16258 \begin_layout Standard
16259 One important point to note here is that the translations are provided by
16260  \SpecialChar LyX
16261  itself, through the file 
16262 \begin_inset Flex Code
16263 status collapsed
16264
16265 \begin_layout Plain Layout
16266 layouttranslations
16267 \end_layout
16268
16269 \end_inset
16270
16271 .
16272  This means, in effect, that 
16273 \begin_inset Flex Code
16274 status collapsed
16275
16276 \begin_layout Plain Layout
16277 LangPreamble
16278 \end_layout
16279
16280 \end_inset
16281
16282  and 
16283 \begin_inset Flex Code
16284 status collapsed
16285
16286 \begin_layout Plain Layout
16287 BabelPreamble
16288 \end_layout
16289
16290 \end_inset
16291
16292  are really only of use in layout files that are provided with \SpecialChar LyX
16293 , since text
16294  entered in user-created layout files will not be seen by \SpecialChar LyX
16295 's internationalizatio
16296 n routines unless the 
16297 \begin_inset Flex Code
16298 status collapsed
16299
16300 \begin_layout Plain Layout
16301 layouttranslations
16302 \end_layout
16303
16304 \end_inset
16305
16306  file is modified accordingly.
16307  That said, however, any layout created with the intention that it will
16308  be included with \SpecialChar LyX
16309  should use these tags where appropriate.
16310  Please note that the paragraph style translations provided by \SpecialChar LyX
16311  will never
16312  change with a minor update (e.
16313 \begin_inset space \thinspace{}
16314 \end_inset
16315
16316 g.
16317 \begin_inset space \space{}
16318 \end_inset
16319
16320 from version 2.1.x to 2.1.y).
16321  It is however quite likely that a major update (e.
16322 \begin_inset space \thinspace{}
16323 \end_inset
16324
16325 g.
16326 \begin_inset space \space{}
16327 \end_inset
16328
16329 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16330 \end_layout
16331
16332 \begin_layout Subsection
16333 Floats
16334 \begin_inset CommandInset label
16335 LatexCommand label
16336 name "subsec:Floats"
16337
16338 \end_inset
16339
16340
16341 \end_layout
16342
16343 \begin_layout Standard
16344 It is necessary to define the floats (
16345 \begin_inset Flex Noun
16346 status collapsed
16347
16348 \begin_layout Plain Layout
16349 figure
16350 \end_layout
16351
16352 \end_inset
16353
16354
16355 \begin_inset Flex Noun
16356 status collapsed
16357
16358 \begin_layout Plain Layout
16359 table
16360 \end_layout
16361
16362 \end_inset
16363
16364 , \SpecialChar ldots
16365 ) in the text class itself.
16366  Standard floats are included in the file 
16367 \begin_inset Flex Code
16368 status collapsed
16369
16370 \begin_layout Plain Layout
16371 stdfloats.inc
16372 \end_layout
16373
16374 \end_inset
16375
16376 , so you may have to do no more than add
16377 \end_layout
16378
16379 \begin_layout LyX-Code
16380 Input stdfloats.inc
16381 \end_layout
16382
16383 \begin_layout Standard
16384 to your layout file.
16385  If you want to implement a text class that proposes some other float types
16386  (like the AGU class bundled with \SpecialChar LyX
16387 ), the information below will hopefully
16388  help you:
16389 \end_layout
16390
16391 \begin_layout Description
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 AllowedPlacement
16397 \end_layout
16398
16399 \end_inset
16400
16401  [
16402 \begin_inset Flex Code
16403 status collapsed
16404
16405 \begin_layout Plain Layout
16406 string
16407 \end_layout
16408
16409 \end_inset
16410
16411 =!htbpH] Allowed placement options for this float type.
16412  The value is a string of placement characters.
16413  Possible characters include: 
16414 \emph on
16415 h
16416 \emph default
16417  (
16418 \begin_inset Quotes eld
16419 \end_inset
16420
16421 here if possible
16422 \begin_inset Quotes erd
16423 \end_inset
16424
16425 ), 
16426 \emph on
16427 t
16428 \emph default
16429  (
16430 \begin_inset Quotes eld
16431 \end_inset
16432
16433 top of page
16434 \begin_inset Quotes erd
16435 \end_inset
16436
16437 ), 
16438 \emph on
16439 b
16440 \emph default
16441  (
16442 \begin_inset Quotes eld
16443 \end_inset
16444
16445 bottom of page
16446 \begin_inset Quotes erd
16447 \end_inset
16448
16449 ), 
16450 \emph on
16451 p
16452 \emph default
16453  (
16454 \begin_inset Quotes eld
16455 \end_inset
16456
16457 page of floats
16458 \begin_inset Quotes erd
16459 \end_inset
16460
16461 ), 
16462 \emph on
16463 H
16464 \emph default
16465  (
16466 \begin_inset Quotes eld
16467 \end_inset
16468
16469 here definitely
16470 \begin_inset Quotes erd
16471 \end_inset
16472
16473 ) and 
16474 \emph on
16475 !
16476 \emph default
16477  (
16478 \begin_inset Quotes eld
16479 \end_inset
16480
16481 ignore LaTeX rules
16482 \begin_inset Quotes erd
16483 \end_inset
16484
16485 ).
16486  The order of the characters in the string does not matter.
16487  If no placement options are allowed, use the string 
16488 \emph on
16489 none
16490 \emph default
16491 .
16492 \end_layout
16493
16494 \begin_layout Description
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499 AllowsSideways
16500 \end_layout
16501
16502 \end_inset
16503
16504  [
16505 \begin_inset Flex Code
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509
16510 \emph off
16511 0
16512 \end_layout
16513
16514 \end_inset
16515
16516 ,
16517 \begin_inset space \thinspace{}
16518 \end_inset
16519
16520
16521 \emph on
16522
16523 \begin_inset Flex Code
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527
16528 \emph on
16529 1
16530 \end_layout
16531
16532 \end_inset
16533
16534
16535 \emph default
16536 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16537 -package 
16538 \family typewriter
16539 rotfloat
16540 \family default
16541  (sidewaysfloat).
16542  Set to 
16543 \begin_inset Flex Code
16544 status collapsed
16545
16546 \begin_layout Plain Layout
16547 0
16548 \end_layout
16549
16550 \end_inset
16551
16552  if the float does not support this feature.
16553 \end_layout
16554
16555 \begin_layout Description
16556 \begin_inset Flex Code
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560 AllowsWide
16561 \end_layout
16562
16563 \end_inset
16564
16565  [
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570
16571 \emph off
16572 0
16573 \end_layout
16574
16575 \end_inset
16576
16577 ,
16578 \begin_inset space \thinspace{}
16579 \end_inset
16580
16581
16582 \emph on
16583
16584 \begin_inset Flex Code
16585 status collapsed
16586
16587 \begin_layout Plain Layout
16588
16589 \emph on
16590 1
16591 \end_layout
16592
16593 \end_inset
16594
16595
16596 \emph default
16597 ] Defines whether the float has a starred variant that spans columns in
16598  a two column paragraph.
16599  Set to 
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 0
16605 \end_layout
16606
16607 \end_inset
16608
16609  if the float does not support this feature.
16610 \end_layout
16611
16612 \begin_layout Description
16613 \begin_inset Flex Code
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617 Extension
16618 \end_layout
16619
16620 \end_inset
16621
16622  [
16623 \begin_inset Flex Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 string
16628 \end_layout
16629
16630 \end_inset
16631
16632 =
16633 \begin_inset Quotes erd
16634 \end_inset
16635
16636
16637 \begin_inset Quotes erd
16638 \end_inset
16639
16640 ] The file name extension of an auxiliary file for the list of figures (or
16641  whatever).
16642  \SpecialChar LaTeX
16643  writes the captions to this file.
16644 \end_layout
16645
16646 \begin_layout Description
16647 \begin_inset Flex Code
16648 status collapsed
16649
16650 \begin_layout Plain Layout
16651 GuiName
16652 \end_layout
16653
16654 \end_inset
16655
16656  [
16657 \begin_inset Flex Code
16658 status collapsed
16659
16660 \begin_layout Plain Layout
16661 string
16662 \end_layout
16663
16664 \end_inset
16665
16666 =
16667 \begin_inset Quotes erd
16668 \end_inset
16669
16670
16671 \begin_inset Quotes erd
16672 \end_inset
16673
16674 ] The string that will be used in the menus and also for the caption.
16675  This is translated to the current language if babel is used.
16676 \end_layout
16677
16678 \begin_layout Description
16679 \begin_inset Flex Code
16680 status collapsed
16681
16682 \begin_layout Plain Layout
16683 HTML*
16684 \end_layout
16685
16686 \end_inset
16687
16688  These tags control the XHTML output.
16689  See 
16690 \begin_inset CommandInset ref
16691 LatexCommand ref
16692 reference "sec:Tags-for-XHTML"
16693
16694 \end_inset
16695
16696 .
16697 \end_layout
16698
16699 \begin_layout Description
16700 \begin_inset Flex Code
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 IsPredefined
16705 \end_layout
16706
16707 \end_inset
16708
16709  [
16710 \emph on
16711
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716 0
16717 \end_layout
16718
16719 \end_inset
16720
16721
16722 \emph default
16723 ,
16724 \begin_inset space \thinspace{}
16725 \end_inset
16726
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 1
16733 \end_layout
16734
16735 \end_inset
16736
16737 ] Indicates whether the float is already defined in the document class or
16738  if instead the \SpecialChar LaTeX
16739  package 
16740 \begin_inset Flex Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 float
16745 \end_layout
16746
16747 \end_inset
16748
16749  needs to be loaded to define it on-the-fly.
16750  The default is 
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 0
16756 \end_layout
16757
16758 \end_inset
16759
16760 , which means: 
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765 float
16766 \end_layout
16767
16768 \end_inset
16769
16770  is used.
16771  It should be set to 
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 1
16777 \end_layout
16778
16779 \end_inset
16780
16781  if the float is already defined by the \SpecialChar LaTeX
16782  document class.
16783 \end_layout
16784
16785 \begin_layout Description
16786 \begin_inset Flex Code
16787 status collapsed
16788
16789 \begin_layout Plain Layout
16790 ListCommand
16791 \end_layout
16792
16793 \end_inset
16794
16795  [
16796 \begin_inset Flex Code
16797 status collapsed
16798
16799 \begin_layout Plain Layout
16800 string
16801 \end_layout
16802
16803 \end_inset
16804
16805 =
16806 \begin_inset Quotes erd
16807 \end_inset
16808
16809
16810 \begin_inset Quotes erd
16811 \end_inset
16812
16813 ] The command used to generate a list of floats of this type; the leading
16814  `
16815 \backslash
16816 ' must be omitted.
16817  This 
16818 \emph on
16819 must
16820 \emph default
16821  be given if 
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 UsesFloatPkg
16827 \end_layout
16828
16829 \end_inset
16830
16831  is false, since there is no standard way to generate this command.
16832  It is ignored if 
16833 \begin_inset Flex Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 UsesFloatPkg
16838 \end_layout
16839
16840 \end_inset
16841
16842  is true, since in that case there is a standard way to define the command.
16843 \end_layout
16844
16845 \begin_layout Description
16846 \begin_inset Flex Code
16847 status collapsed
16848
16849 \begin_layout Plain Layout
16850 ListName
16851 \end_layout
16852
16853 \end_inset
16854
16855  [
16856 \begin_inset Flex Code
16857 status collapsed
16858
16859 \begin_layout Plain Layout
16860 string
16861 \end_layout
16862
16863 \end_inset
16864
16865 =
16866 \begin_inset Quotes erd
16867 \end_inset
16868
16869
16870 \begin_inset Quotes erd
16871 \end_inset
16872
16873 ] A title for a list of floats of this kind (list of figures, tables, or
16874  whatever).
16875  It is used for the screen label within \SpecialChar LyX
16876 , it is used by \SpecialChar LaTeX
16877  for the title and
16878  it is used as the title in the XHTML output.
16879  It will be translated to the document language.
16880 \end_layout
16881
16882 \begin_layout Description
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 NumberWithin
16888 \end_layout
16889
16890 \end_inset
16891
16892  [
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 string
16898 \end_layout
16899
16900 \end_inset
16901
16902 =
16903 \begin_inset Quotes erd
16904 \end_inset
16905
16906
16907 \begin_inset Quotes erd
16908 \end_inset
16909
16910 ] This (optional) argument determines whether floats of this class will
16911  be numbered within some sectional unit of the document.
16912  For example, if 
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 NumberWithin
16918 \end_layout
16919
16920 \end_inset
16921
16922  is set to 
16923 \begin_inset Quotes eld
16924 \end_inset
16925
16926
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931 chapter
16932 \end_layout
16933
16934 \end_inset
16935
16936
16937 \begin_inset Quotes erd
16938 \end_inset
16939
16940 , the floats will be numbered within chapters.
16941  
16942 \end_layout
16943
16944 \begin_layout Description
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 Placement
16950 \end_layout
16951
16952 \end_inset
16953
16954  [
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 string
16960 \end_layout
16961
16962 \end_inset
16963
16964 =
16965 \begin_inset Quotes erd
16966 \end_inset
16967
16968
16969 \begin_inset Quotes erd
16970 \end_inset
16971
16972 ] The default placement for the given class of floats.
16973  The string should be as in standard \SpecialChar LaTeX
16974
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979 t
16980 \end_layout
16981
16982 \end_inset
16983
16984
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 b
16990 \end_layout
16991
16992 \end_inset
16993
16994
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 p
17000 \end_layout
17001
17002 \end_inset
17003
17004  and 
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 h
17010 \end_layout
17011
17012 \end_inset
17013
17014  for top, bottom, page, and here, respectively.
17015 \begin_inset Foot
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 Note that the order of these letters in the string is irrelevant, like in
17020  \SpecialChar LaTeX
17021 .
17022 \end_layout
17023
17024 \end_inset
17025
17026  On top of that there is a new type, 
17027 \begin_inset Flex Code
17028 status collapsed
17029
17030 \begin_layout Plain Layout
17031 H
17032 \end_layout
17033
17034 \end_inset
17035
17036 , which does not really correspond to a float, since it means: put it 
17037 \begin_inset Quotes eld
17038 \end_inset
17039
17040 here
17041 \begin_inset Quotes erd
17042 \end_inset
17043
17044  and nowhere else.
17045  Note however that the 
17046 \begin_inset Flex Code
17047 status collapsed
17048
17049 \begin_layout Plain Layout
17050 H
17051 \end_layout
17052
17053 \end_inset
17054
17055  specifier is special and, because of implementation details, cannot be
17056  used in non-built in float types.
17057  If you do not understand what this means, just use 
17058 \begin_inset Quotes eld
17059 \end_inset
17060
17061
17062 \begin_inset Flex Code
17063 status collapsed
17064
17065 \begin_layout Plain Layout
17066 tbp
17067 \end_layout
17068
17069 \end_inset
17070
17071
17072 \begin_inset Quotes erd
17073 \end_inset
17074
17075 .
17076 \end_layout
17077
17078 \begin_layout Description
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 RefPrefix
17084 \end_layout
17085
17086 \end_inset
17087
17088  [
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 string
17094 \end_layout
17095
17096 \end_inset
17097
17098 ] The prefix to use when creating labels referring to floats of this type.
17099  This allows the use of formatted references.
17100  Note that you can remove any 
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105 RefPrefix
17106 \end_layout
17107
17108 \end_inset
17109
17110  set by a copied style by using the special value 
17111 \begin_inset Quotes eld
17112 \end_inset
17113
17114 OFF
17115 \begin_inset Quotes erd
17116 \end_inset
17117
17118 , which must be all caps.
17119 \end_layout
17120
17121 \begin_layout Description
17122 \begin_inset Flex Code
17123 status collapsed
17124
17125 \begin_layout Plain Layout
17126 Style
17127 \end_layout
17128
17129 \end_inset
17130
17131  [
17132 \begin_inset Flex Code
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136 string
17137 \end_layout
17138
17139 \end_inset
17140
17141 =
17142 \begin_inset Quotes erd
17143 \end_inset
17144
17145
17146 \begin_inset Quotes erd
17147 \end_inset
17148
17149 ] The style used when defining the float using 
17150 \begin_inset Flex Code
17151 status collapsed
17152
17153 \begin_layout Plain Layout
17154
17155 \backslash
17156 newfloat
17157 \end_layout
17158
17159 \end_inset
17160
17161 .
17162 \end_layout
17163
17164 \begin_layout Description
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 Type
17170 \end_layout
17171
17172 \end_inset
17173
17174  [
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 string
17180 \end_layout
17181
17182 \end_inset
17183
17184 =
17185 \begin_inset Quotes erd
17186 \end_inset
17187
17188
17189 \begin_inset Quotes erd
17190 \end_inset
17191
17192 ] The 
17193 \begin_inset Quotes eld
17194 \end_inset
17195
17196 type
17197 \begin_inset Quotes erd
17198 \end_inset
17199
17200  of the new class of floats, like program or algorithm.
17201  After the appropriate 
17202 \begin_inset Flex Code
17203 status collapsed
17204
17205 \begin_layout Plain Layout
17206
17207 \backslash
17208 newfloat
17209 \end_layout
17210
17211 \end_inset
17212
17213 , commands such as 
17214 \begin_inset Flex Code
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218
17219 \backslash
17220 begin{program}
17221 \end_layout
17222
17223 \end_inset
17224
17225  or 
17226 \begin_inset Flex Code
17227 status collapsed
17228
17229 \begin_layout Plain Layout
17230
17231 \backslash
17232 end{algorithm*}
17233 \end_layout
17234
17235 \end_inset
17236
17237  will be available.
17238 \end_layout
17239
17240 \begin_layout Description
17241 \begin_inset Flex Code
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245 UsesFloatPkg
17246 \end_layout
17247
17248 \end_inset
17249
17250  [
17251 \begin_inset Flex Code
17252 status collapsed
17253
17254 \begin_layout Plain Layout
17255 0
17256 \end_layout
17257
17258 \end_inset
17259
17260 ,
17261 \begin_inset space \thinspace{}
17262 \end_inset
17263
17264
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269
17270 \emph on
17271 1
17272 \end_layout
17273
17274 \end_inset
17275
17276 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17277  package 
17278 \begin_inset Flex Code
17279 status collapsed
17280
17281 \begin_layout Plain Layout
17282 float
17283 \end_layout
17284
17285 \end_inset
17286
17287 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17288  itself.
17289 \end_layout
17290
17291 \begin_layout Standard
17292 Note that defining a float with type 
17293 \begin_inset Flex Code
17294 status collapsed
17295
17296 \begin_layout Plain Layout
17297
17298 \emph on
17299 type
17300 \end_layout
17301
17302 \end_inset
17303
17304  automatically defines the corresponding counter with name 
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309
17310 \emph on
17311 type
17312 \end_layout
17313
17314 \end_inset
17315
17316 .
17317 \end_layout
17318
17319 \begin_layout Subsection
17320 Flex insets and InsetLayout
17321 \begin_inset CommandInset label
17322 LatexCommand label
17323 name "subsec:Flex-insets-and"
17324
17325 \end_inset
17326
17327
17328 \end_layout
17329
17330 \begin_layout Standard
17331 Flex insets come in three different kinds: 
17332 \end_layout
17333
17334 \begin_layout Itemize
17335 character style (
17336 \begin_inset Flex Code
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340 CharStyle
17341 \end_layout
17342
17343 \end_inset
17344
17345 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17346  commands as 
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351
17352 \backslash
17353 noun
17354 \end_layout
17355
17356 \end_inset
17357
17358  and 
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363
17364 \backslash
17365 code
17366 \end_layout
17367
17368 \end_inset
17369
17370 .
17371 \end_layout
17372
17373 \begin_layout Itemize
17374 user custom (
17375 \begin_inset Flex Code
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 Custom
17380 \end_layout
17381
17382 \end_inset
17383
17384 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17385  code,
17386  footnote, and the like.
17387  An obvious example is an endnote inset, which is defined in the 
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 endnote
17393 \end_layout
17394
17395 \end_inset
17396
17397  module.
17398 \end_layout
17399
17400 \begin_layout Itemize
17401 XML elements (
17402 \begin_inset Flex Code
17403 status collapsed
17404
17405 \begin_layout Plain Layout
17406 Element
17407 \end_layout
17408
17409 \end_inset
17410
17411 ): For use with DocBook classes.
17412 \end_layout
17413
17414 \begin_layout Standard
17415 Flex insets are defined using the 
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 InsetLayout
17421 \end_layout
17422
17423 \end_inset
17424
17425  tag, which shall be explained in a moment.
17426 \end_layout
17427
17428 \begin_layout Standard
17429 The 
17430 \begin_inset Flex Code
17431 status collapsed
17432
17433 \begin_layout Plain Layout
17434 InsetLayout
17435 \end_layout
17436
17437 \end_inset
17438
17439  tag also serves another function: It can be used to customize the general
17440  layout of many different types of insets.
17441  Currently, 
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 InsetLayout
17447 \end_layout
17448
17449 \end_inset
17450
17451  can be used to customize the layout parameters for footnotes, marginal
17452  notes, note insets, \SpecialChar TeX
17453  code (ERT) insets, branches, listings, indexes, boxes,
17454  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17455 \end_layout
17456
17457 \begin_layout Standard
17458 The 
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 InsetLayout
17464 \end_layout
17465
17466 \end_inset
17467
17468  definition must begin with a line of the form:
17469 \end_layout
17470
17471 \begin_layout LyX-Code
17472 InsetLayout <type>
17473 \end_layout
17474
17475 \begin_layout Standard
17476 Here 
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 <Type>
17482 \end_layout
17483
17484 \end_inset
17485
17486  indicates the inset whose layout is being defined, and here there are four
17487  cases.
17488 \end_layout
17489
17490 \begin_layout Enumerate
17491 The layout for a pre-existing inset is being modified.
17492  In this case, can be 
17493 \begin_inset Flex Code
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497 <Type>
17498 \end_layout
17499
17500 \end_inset
17501
17502  any one of the following: 
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 Algorithm
17508 \end_layout
17509
17510 \end_inset
17511
17512
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 Branch
17518 \end_layout
17519
17520 \end_inset
17521
17522
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 Box
17528 \end_layout
17529
17530 \end_inset
17531
17532
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 Box:shaded
17538 \end_layout
17539
17540 \end_inset
17541
17542
17543 \begin_inset Flex Code
17544 status collapsed
17545
17546 \begin_layout Plain Layout
17547 Caption:Standard
17548 \end_layout
17549
17550 \end_inset
17551
17552
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 ERT
17558 \end_layout
17559
17560 \end_inset
17561
17562
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 Figure
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 Foot
17578 \end_layout
17579
17580 \end_inset
17581
17582
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 Index
17588 \end_layout
17589
17590 \end_inset
17591
17592
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 Info
17598 \end_layout
17599
17600 \end_inset
17601
17602
17603 \begin_inset Flex Code
17604 status collapsed
17605
17606 \begin_layout Plain Layout
17607 Info:menu
17608 \end_layout
17609
17610 \end_inset
17611
17612
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617 Info:shortcut
17618 \end_layout
17619
17620 \end_inset
17621
17622
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 Info:shortcuts
17628 \end_layout
17629
17630 \end_inset
17631
17632
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637 Listings
17638 \end_layout
17639
17640 \end_inset
17641
17642
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647 Marginal
17648 \end_layout
17649
17650 \end_inset
17651
17652
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 Note:Comment
17658 \end_layout
17659
17660 \end_inset
17661
17662
17663 \begin_inset Flex Code
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 Note:Note
17668 \end_layout
17669
17670 \end_inset
17671
17672
17673 \begin_inset Flex Code
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677 Note:Greyedout
17678 \end_layout
17679
17680 \end_inset
17681
17682
17683 \begin_inset Flex Code
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687 Table
17688 \end_layout
17689
17690 \end_inset
17691
17692 , or 
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 URL
17698 \end_layout
17699
17700 \end_inset
17701
17702 .
17703 \end_layout
17704
17705 \begin_layout Enumerate
17706 The layout for a Flex inset is being defined.
17707  In this case, 
17708 \begin_inset Flex Code
17709 status collapsed
17710
17711 \begin_layout Plain Layout
17712 <Type>
17713 \end_layout
17714
17715 \end_inset
17716
17717  must be of the form 
17718 \begin_inset Quotes eld
17719 \end_inset
17720
17721
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726 Flex:<name>
17727 \end_layout
17728
17729 \end_inset
17730
17731
17732 \begin_inset Quotes erd
17733 \end_inset
17734
17735 , where 
17736 \begin_inset Flex Code
17737 status collapsed
17738
17739 \begin_layout Plain Layout
17740 name
17741 \end_layout
17742
17743 \end_inset
17744
17745  may be be any valid identifier not used by a pre-existing Flex inset.
17746  The identifier may include spaces, but in that case the whole thing must
17747  be wrapped in quotes.
17748  Note that the definition of a flex inset 
17749 \emph on
17750 must 
17751 \emph default
17752 also include a 
17753 \begin_inset Flex Code
17754 status collapsed
17755
17756 \begin_layout Plain Layout
17757 LyXType
17758 \end_layout
17759
17760 \end_inset
17761
17762  entry, declaring which type of inset it defines.
17763 \end_layout
17764
17765 \begin_layout Enumerate
17766 The layout for user specific branch is being defined.
17767  In this case, 
17768 \begin_inset Flex Code
17769 status collapsed
17770
17771 \begin_layout Plain Layout
17772 <Type>
17773 \end_layout
17774
17775 \end_inset
17776
17777  must be of the form 
17778 \begin_inset Quotes eld
17779 \end_inset
17780
17781
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 Branch:<name>
17787 \end_layout
17788
17789 \end_inset
17790
17791
17792 \begin_inset Quotes erd
17793 \end_inset
17794
17795 , where 
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 name
17801 \end_layout
17802
17803 \end_inset
17804
17805  may be be any valid identifier of branch defined in user's document.
17806  The identifier may include spaces, but in that case the whole thing must
17807  be wrapped in quotes.
17808  The main purpose of this feature is to allow \SpecialChar LaTeX
17809  wrapping around specific
17810  branches as user needs.
17811 \end_layout
17812
17813 \begin_layout Enumerate
17814 The layout of a user (or class) specific caption is being defined.
17815  In this case, 
17816 \begin_inset Flex Code
17817 status collapsed
17818
17819 \begin_layout Plain Layout
17820 <Type>
17821 \end_layout
17822
17823 \end_inset
17824
17825  must be of the form 
17826 \begin_inset Quotes eld
17827 \end_inset
17828
17829
17830 \begin_inset Flex Code
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 Caption:<name>
17835 \end_layout
17836
17837 \end_inset
17838
17839
17840 \begin_inset Quotes erd
17841 \end_inset
17842
17843 , where 
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 name
17849 \end_layout
17850
17851 \end_inset
17852
17853  specifies the name of the caption as it appears in the menu.
17854  Have a look at the standard caption (
17855 \begin_inset Flex Code
17856 status collapsed
17857
17858 \begin_layout Plain Layout
17859 Caption:Standard
17860 \end_layout
17861
17862 \end_inset
17863
17864 ), the specific captions of the KOMA-Script classes (
17865 \begin_inset Flex Code
17866 status collapsed
17867
17868 \begin_layout Plain Layout
17869 Caption:Above
17870 \end_layout
17871
17872 \end_inset
17873
17874
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 Caption:Below
17880 \end_layout
17881
17882 \end_inset
17883
17884 ) or the module 
17885 \family sans
17886 Multilingual
17887 \begin_inset space ~
17888 \end_inset
17889
17890 Captions
17891 \begin_inset Newline linebreak
17892 \end_inset
17893
17894
17895 \family default
17896 (
17897 \begin_inset Flex Code
17898 status collapsed
17899
17900 \begin_layout Plain Layout
17901 Caption:Bicaption
17902 \end_layout
17903
17904 \end_inset
17905
17906 ) for applications.
17907 \end_layout
17908
17909 \begin_layout Standard
17910 The 
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 InsetLayout
17916 \end_layout
17917
17918 \end_inset
17919
17920  definition can contain the following entries:
17921 \end_layout
17922
17923 \begin_layout Description
17924 \begin_inset Flex Code
17925 status collapsed
17926
17927 \begin_layout Plain Layout
17928 AddToToc
17929 \end_layout
17930
17931 \end_inset
17932
17933  [
17934 \begin_inset Flex Code
17935 status collapsed
17936
17937 \begin_layout Plain Layout
17938 string
17939 \end_layout
17940
17941 \end_inset
17942
17943 =""] This inset will appear in the table of contents of the given type.
17944  An empty string disables.
17945  See also the OutlinerName and the IsTocCaption commands.
17946  This is only implemented for Flex insets.
17947  Default: disabled.
17948 \end_layout
17949
17950 \begin_layout Description
17951 \begin_inset Flex Code
17952 status collapsed
17953
17954 \begin_layout Plain Layout
17955 Argument
17956 \end_layout
17957
17958 \end_inset
17959
17960  [
17961 \begin_inset Flex Code
17962 status collapsed
17963
17964 \begin_layout Plain Layout
17965 int
17966 \end_layout
17967
17968 \end_inset
17969
17970 ] Defines argument number of a command\SpecialChar breakableslash
17971 environment associated with the current
17972  layout.
17973  The definition must end with 
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 EndArgument
17979 \end_layout
17980
17981 \end_inset
17982
17983 .
17984  See 
17985 \begin_inset CommandInset ref
17986 LatexCommand ref
17987 reference "subsec:Paragraph-Styles"
17988
17989 \end_inset
17990
17991  for details.
17992 \end_layout
17993
17994 \begin_layout Description
17995 \begin_inset Flex Code
17996 status collapsed
17997
17998 \begin_layout Plain Layout
17999 BabelPreamble
18000 \end_layout
18001
18002 \end_inset
18003
18004  Preamble for changing language commands; see 
18005 \begin_inset CommandInset ref
18006 LatexCommand ref
18007 reference "subsec:I18n"
18008
18009 \end_inset
18010
18011 .
18012 \end_layout
18013
18014 \begin_layout Description
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 BgColor
18020 \end_layout
18021
18022 \end_inset
18023
18024  [
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029 <name>
18030 \end_layout
18031
18032 \end_inset
18033
18034 ] The color for the inset's background.
18035  See 
18036 \begin_inset CommandInset ref
18037 LatexCommand ref
18038 reference "chap:Names-of-colors"
18039
18040 \end_inset
18041
18042  for a list of the available color names.
18043 \end_layout
18044
18045 \begin_layout Description
18046 \begin_inset Flex Code
18047 status collapsed
18048
18049 \begin_layout Plain Layout
18050 ContentAsLabel
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 \emph on
18062 0
18063 \end_layout
18064
18065 \end_inset
18066
18067 ,
18068 \begin_inset space \thinspace{}
18069 \end_inset
18070
18071
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 1
18077 \end_layout
18078
18079 \end_inset
18080
18081 ] Whether to use the content of the inset as the label, when the inset is
18082  closed.
18083  Default is false.
18084 \end_layout
18085
18086 \begin_layout Description
18087 \begin_inset Flex Code
18088 status collapsed
18089
18090 \begin_layout Plain Layout
18091 CopyStyle
18092 \end_layout
18093
18094 \end_inset
18095
18096  [
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 <type>
18102 \end_layout
18103
18104 \end_inset
18105
18106 ] As with paragraph styles, see 
18107 \begin_inset CommandInset ref
18108 LatexCommand ref
18109 reference "subsec:Paragraph-Styles"
18110
18111 \end_inset
18112
18113 .
18114  Note that you need to specify the complete type, e.
18115 \begin_inset space \thinspace{}
18116 \end_inset
18117
18118 g.
18119 \begin_inset space ~
18120 \end_inset
18121
18122
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 CopyStyle Flex:<name>
18128 \end_layout
18129
18130 \end_inset
18131
18132 .
18133 \end_layout
18134
18135 \begin_layout Description
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 CustomPars
18141 \end_layout
18142
18143 \end_inset
18144
18145  [
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150
18151 \emph on
18152 0
18153 \end_layout
18154
18155 \end_inset
18156
18157 ,
18158 \begin_inset space \thinspace{}
18159 \end_inset
18160
18161
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 1
18167 \end_layout
18168
18169 \end_inset
18170
18171 ] Indicates whether the user may employ the Paragraph Settings dialog to
18172  customize the paragraph.
18173 \end_layout
18174
18175 \begin_layout Description
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 Decoration
18181 \end_layout
18182
18183 \end_inset
18184
18185  can be 
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 Classic
18191 \end_layout
18192
18193 \end_inset
18194
18195
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 Minimalistic
18201 \end_layout
18202
18203 \end_inset
18204
18205 , or 
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 Conglomerate
18211 \end_layout
18212
18213 \end_inset
18214
18215 , describing the rendering style used for the inset's frame and buttons.
18216  Footnotes generally use 
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 Classic
18222 \end_layout
18223
18224 \end_inset
18225
18226 , ERT insets generally 
18227 \begin_inset Flex Code
18228 status collapsed
18229
18230 \begin_layout Plain Layout
18231 Minimalistic
18232 \end_layout
18233
18234 \end_inset
18235
18236 , and character styles 
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 Conglomerate
18242 \end_layout
18243
18244 \end_inset
18245
18246 .
18247 \end_layout
18248
18249 \begin_layout Description
18250 \begin_inset Flex Code
18251 status collapsed
18252
18253 \begin_layout Plain Layout
18254 Display
18255 \end_layout
18256
18257 \end_inset
18258
18259  [
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264 0
18265 \end_layout
18266
18267 \end_inset
18268
18269 ,
18270 \emph on
18271
18272 \begin_inset space \thinspace{}
18273 \end_inset
18274
18275
18276 \emph default
18277
18278 \begin_inset Flex Code
18279 status collapsed
18280
18281 \begin_layout Plain Layout
18282
18283 \emph on
18284 1
18285 \end_layout
18286
18287 \end_inset
18288
18289 ] Only useful if 
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 LatexType
18295 \end_layout
18296
18297 \end_inset
18298
18299  is 
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 Environment
18305 \end_layout
18306
18307 \end_inset
18308
18309 .
18310  Indicates whether the environment will stand on its own in the output or
18311  will appear inline with the surrounding text.
18312  If set to false, it is supposed that the \SpecialChar LaTeX
18313  environment ignores white space
18314  (including one newline character) after the 
18315 \begin_inset Flex Code
18316 status collapsed
18317
18318 \begin_layout Plain Layout
18319
18320 \backslash
18321 begin{
18322 \emph on
18323 LatexName
18324 \emph default
18325 }
18326 \end_layout
18327
18328 \end_inset
18329
18330  and 
18331 \begin_inset Flex Code
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335
18336 \backslash
18337 end{
18338 \emph on
18339 LatexName
18340 \emph default
18341 }
18342 \end_layout
18343
18344 \end_inset
18345
18346  tags.
18347  Default is true.
18348 \end_layout
18349
18350 \begin_layout Description
18351 \begin_inset Flex Code
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355 End
18356 \end_layout
18357
18358 \end_inset
18359
18360  Required at the end of the 
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 InsetLayout
18366 \end_layout
18367
18368 \end_inset
18369
18370  declarations.
18371 \end_layout
18372
18373 \begin_layout Description
18374 \begin_inset Flex Code
18375 status collapsed
18376
18377 \begin_layout Plain Layout
18378 Font
18379 \end_layout
18380
18381 \end_inset
18382
18383  The font used for both the text body 
18384 \emph on
18385 and
18386 \emph default
18387  the label.
18388  See 
18389 \begin_inset CommandInset ref
18390 LatexCommand ref
18391 reference "subsec:Font-description"
18392
18393 \end_inset
18394
18395 .
18396  Note that defining this font automatically defines the 
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 LabelFont
18402 \end_layout
18403
18404 \end_inset
18405
18406  to the same value, so define this first and define 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 LabelFont
18412 \end_layout
18413
18414 \end_inset
18415
18416  later if you want them to be different.
18417 \end_layout
18418
18419 \begin_layout Description
18420 \begin_inset Flex Code
18421 status collapsed
18422
18423 \begin_layout Plain Layout
18424 FixedWidthPreambleEncoding
18425 \end_layout
18426
18427 \end_inset
18428
18429  [
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434
18435 \emph on
18436 0
18437 \end_layout
18438
18439 \end_inset
18440
18441 ,
18442 \begin_inset space \thinspace{}
18443 \end_inset
18444
18445
18446 \begin_inset Flex Code
18447 status collapsed
18448
18449 \begin_layout Plain Layout
18450 1
18451 \end_layout
18452
18453 \end_inset
18454
18455 ] Force a fixed width encoding for the translated contents of 
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 BabelPreamble
18461 \end_layout
18462
18463 \end_inset
18464
18465  and 
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 LangPreamble
18471 \end_layout
18472
18473 \end_inset
18474
18475  code generated by this layout.
18476  This is needed for special \SpecialChar LaTeX
18477 -packages like 
18478 \family typewriter
18479 listings
18480 \family default
18481  that do not work with variable width encodings such as 
18482 \family sans
18483 utf8
18484 \family default
18485 .
18486  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18487  backends such as Xe\SpecialChar TeX
18488  or
18489  Lua\SpecialChar TeX
18490  are used.
18491 \end_layout
18492
18493 \begin_layout Description
18494 \begin_inset Flex Code
18495 status collapsed
18496
18497 \begin_layout Plain Layout
18498 ForceLocalFontSwitch
18499 \end_layout
18500
18501 \end_inset
18502
18503  [
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508
18509 \emph on
18510 0
18511 \end_layout
18512
18513 \end_inset
18514
18515 ,
18516 \begin_inset space \thinspace{}
18517 \end_inset
18518
18519
18520 \begin_inset Flex Code
18521 status collapsed
18522
18523 \begin_layout Plain Layout
18524 1
18525 \end_layout
18526
18527 \end_inset
18528
18529 ] When using babel, always use a local font switch (
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534
18535 \backslash
18536 foreignlanguage
18537 \end_layout
18538
18539 \end_inset
18540
18541 ), never a global one (such as 
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546
18547 \backslash
18548 selectlanguage
18549 \end_layout
18550
18551 \end_inset
18552
18553 ).
18554 \end_layout
18555
18556 \begin_layout Description
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 ForceLTR
18562 \end_layout
18563
18564 \end_inset
18565
18566  [
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571
18572 \emph on
18573 0
18574 \end_layout
18575
18576 \end_inset
18577
18578 ,
18579 \begin_inset space \thinspace{}
18580 \end_inset
18581
18582
18583 \begin_inset Flex Code
18584 status collapsed
18585
18586 \begin_layout Plain Layout
18587 1
18588 \end_layout
18589
18590 \end_inset
18591
18592 ] Force the 
18593 \begin_inset Quotes eld
18594 \end_inset
18595
18596 latex
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600  language, leading to Left-to-Right (Latin) output, e.
18601 \begin_inset space \thinspace{}
18602 \end_inset
18603
18604 g.
18605 \begin_inset space \space{}
18606 \end_inset
18607
18608 in \SpecialChar TeX
18609  code or URL.
18610  A kludge.
18611 \end_layout
18612
18613 \begin_layout Description
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 ForceOwnlines
18619 \end_layout
18620
18621 \end_inset
18622
18623  [
18624 \begin_inset Flex Code
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628
18629 \emph on
18630 0
18631 \end_layout
18632
18633 \end_inset
18634
18635 ,
18636 \begin_inset space \thinspace{}
18637 \end_inset
18638
18639
18640 \begin_inset Flex Code
18641 status collapsed
18642
18643 \begin_layout Plain Layout
18644 1
18645 \end_layout
18646
18647 \end_inset
18648
18649 ] Force a a line break in the \SpecialChar LaTeX
18650  output before the inset starts and after
18651  the inset ends.
18652  This assures the inset itself is output on its own lines, for parsing purposes.
18653 \end_layout
18654
18655 \begin_layout Description
18656 \begin_inset Flex Code
18657 status collapsed
18658
18659 \begin_layout Plain Layout
18660 ForcePlain
18661 \end_layout
18662
18663 \end_inset
18664
18665  [
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670
18671 \emph on
18672 0
18673 \end_layout
18674
18675 \end_inset
18676
18677 ,
18678 \begin_inset space \thinspace{}
18679 \end_inset
18680
18681
18682 \begin_inset Flex Code
18683 status collapsed
18684
18685 \begin_layout Plain Layout
18686 1
18687 \end_layout
18688
18689 \end_inset
18690
18691 ] Indicates whether the 
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 PlainLayout
18697 \end_layout
18698
18699 \end_inset
18700
18701  should be used or, instead, the user can change the paragraph style used
18702  in the inset.
18703  Default is false.
18704 \end_layout
18705
18706 \begin_layout Description
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 FreeSpacing
18712 \end_layout
18713
18714 \end_inset
18715
18716  [
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721
18722 \emph on
18723 0
18724 \end_layout
18725
18726 \end_inset
18727
18728 ,
18729 \begin_inset space \thinspace{}
18730 \end_inset
18731
18732
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 1
18738 \end_layout
18739
18740 \end_inset
18741
18742 ] As with paragraph styles, see 
18743 \begin_inset CommandInset ref
18744 LatexCommand ref
18745 reference "subsec:Paragraph-Styles"
18746
18747 \end_inset
18748
18749 .
18750 \end_layout
18751
18752 \begin_layout Description
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 HTML*
18758 \end_layout
18759
18760 \end_inset
18761
18762  These tags control the XHTML output.
18763  See 
18764 \begin_inset CommandInset ref
18765 LatexCommand ref
18766 reference "sec:Tags-for-XHTML"
18767
18768 \end_inset
18769
18770 .
18771 \end_layout
18772
18773 \begin_layout Description
18774 \begin_inset Flex Code
18775 status collapsed
18776
18777 \begin_layout Plain Layout
18778 InToc
18779 \end_layout
18780
18781 \end_inset
18782
18783  [
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788
18789 \emph on
18790 0
18791 \end_layout
18792
18793 \end_inset
18794
18795 ,
18796 \begin_inset space \thinspace{}
18797 \end_inset
18798
18799
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 1
18805 \end_layout
18806
18807 \end_inset
18808
18809 ] Whether to include the contents of this inset in the strings generated
18810  for the `Outline' pane for all table of contents, regardless of the AddToToc
18811  setting.
18812  One would not, for example, want the content of a footnote in a section
18813  header to be included in the TOC displayed in the outline, but one would
18814  normally want the content of a character style displayed.
18815  Default is false: not to include.
18816 \end_layout
18817
18818 \begin_layout Description
18819 \begin_inset Flex Code
18820 status collapsed
18821
18822 \begin_layout Plain Layout
18823 IsTocCaption
18824 \end_layout
18825
18826 \end_inset
18827
18828  [
18829 \begin_inset Flex Code
18830 status collapsed
18831
18832 \begin_layout Plain Layout
18833
18834 \emph on
18835 0
18836 \end_layout
18837
18838 \end_inset
18839
18840 ,
18841 \begin_inset space \thinspace{}
18842 \end_inset
18843
18844
18845 \begin_inset Flex Code
18846 status collapsed
18847
18848 \begin_layout Plain Layout
18849 1
18850 \end_layout
18851
18852 \end_inset
18853
18854 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18855  of its contents in its item in the table of contents.
18856  Otherwise, only the label appears.
18857 \end_layout
18858
18859 \begin_layout Description
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 KeepEmpty
18865 \end_layout
18866
18867 \end_inset
18868
18869  [
18870 \emph on
18871
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876 0
18877 \end_layout
18878
18879 \end_inset
18880
18881
18882 \emph default
18883 ,
18884 \begin_inset space \thinspace{}
18885 \end_inset
18886
18887
18888 \begin_inset Flex Code
18889 status collapsed
18890
18891 \begin_layout Plain Layout
18892 1
18893 \end_layout
18894
18895 \end_inset
18896
18897 ] As with paragraph styles, see 
18898 \begin_inset CommandInset ref
18899 LatexCommand ref
18900 reference "subsec:Paragraph-Styles"
18901
18902 \end_inset
18903
18904 .
18905 \end_layout
18906
18907 \begin_layout Description
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912 LabelFont
18913 \end_layout
18914
18915 \end_inset
18916
18917  The font used for the label.
18918  See 
18919 \begin_inset CommandInset ref
18920 LatexCommand ref
18921 reference "subsec:Font-description"
18922
18923 \end_inset
18924
18925 .
18926  Note that this definition can never appear before 
18927 \begin_inset Flex Code
18928 status collapsed
18929
18930 \begin_layout Plain Layout
18931 Font
18932 \end_layout
18933
18934 \end_inset
18935
18936 , lest it be ineffective.
18937 \end_layout
18938
18939 \begin_layout Description
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 LabelString
18945 \end_layout
18946
18947 \end_inset
18948
18949  [
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 string
18955 \end_layout
18956
18957 \end_inset
18958
18959 =
18960 \begin_inset Quotes erd
18961 \end_inset
18962
18963
18964 \begin_inset Quotes erd
18965 \end_inset
18966
18967 ] What will be displayed on the button or elsewhere as the inset label.
18968  Some inset types (
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 \SpecialChar TeX
18974  code
18975 \end_layout
18976
18977 \end_inset
18978
18979  and 
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 Branch
18985 \end_layout
18986
18987 \end_inset
18988
18989 ) modify this label on the fly.
18990 \end_layout
18991
18992 \begin_layout Description
18993 \begin_inset Flex Code
18994 status collapsed
18995
18996 \begin_layout Plain Layout
18997 LangPreamble
18998 \end_layout
18999
19000 \end_inset
19001
19002  Language dependent preamble; see 
19003 \begin_inset CommandInset ref
19004 LatexCommand ref
19005 reference "subsec:I18n"
19006
19007 \end_inset
19008
19009 .
19010 \end_layout
19011
19012 \begin_layout Description
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 LatexName
19018 \end_layout
19019
19020 \end_inset
19021
19022  [
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 <name>
19028 \end_layout
19029
19030 \end_inset
19031
19032 ] The name of the corresponding \SpecialChar LaTeX
19033  stuff.
19034  Either the environment or command name.
19035 \end_layout
19036
19037 \begin_layout Description
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 LatexParam
19043 \end_layout
19044
19045 \end_inset
19046
19047  [
19048 \begin_inset Flex Code
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 <parameter>
19053 \end_layout
19054
19055 \end_inset
19056
19057 ] The optional parameter for the corresponding 
19058 \begin_inset Flex Code
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 LatexName
19063 \end_layout
19064
19065 \end_inset
19066
19067  stuff, including possible bracket pairs like 
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 []
19073 \end_layout
19074
19075 \end_inset
19076
19077 .
19078  This parameter cannot be changed from within \SpecialChar LyX
19079  (use 
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 Argument
19085 \end_layout
19086
19087 \end_inset
19088
19089  for customizable parameters).
19090  It will be output as is after all \SpecialChar LaTeX
19091  
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 Argument
19097 \end_layout
19098
19099 \end_inset
19100
19101 s.
19102 \end_layout
19103
19104 \begin_layout Description
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 LatexType
19110 \end_layout
19111
19112 \end_inset
19113
19114  [
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 Command, Environment, None
19120 \end_layout
19121
19122 \end_inset
19123
19124 ] How the style should be translated into \SpecialChar LaTeX
19125 .
19126 \begin_inset Foot
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 LatexType
19135 \end_layout
19136
19137 \end_inset
19138
19139  is perhaps a bit misleading, since these rules apply to SGML classes too.
19140  Visit the SGML class files for specific examples.
19141 \end_layout
19142
19143 \end_inset
19144
19145
19146 \end_layout
19147
19148 \begin_deeper
19149 \begin_layout Description
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 None
19155 \end_layout
19156
19157 \end_inset
19158
19159  means nothing special
19160 \end_layout
19161
19162 \begin_layout Description
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 Command
19168 \end_layout
19169
19170 \end_inset
19171
19172  means 
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177
19178 \backslash
19179
19180 \emph on
19181 LatexName
19182 \emph default
19183 {\SpecialChar ldots
19184 }
19185 \end_layout
19186
19187 \end_inset
19188
19189
19190 \end_layout
19191
19192 \begin_layout Description
19193 \begin_inset Flex Code
19194 status collapsed
19195
19196 \begin_layout Plain Layout
19197 Environment
19198 \end_layout
19199
19200 \end_inset
19201
19202  means 
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207
19208 \backslash
19209 begin{
19210 \emph on
19211 LatexName
19212 \emph default
19213 }\SpecialChar ldots
19214
19215 \backslash
19216 end{
19217 \emph on
19218 LatexName
19219 \emph default
19220 }
19221 \end_layout
19222
19223 \end_inset
19224
19225
19226 \end_layout
19227
19228 \begin_layout Standard
19229 Putting the last few things together, the \SpecialChar LaTeX
19230  output will be either: 
19231 \end_layout
19232
19233 \begin_layout LyX-Code
19234
19235 \backslash
19236 LatexName[LatexParam]{\SpecialChar ldots
19237 }
19238 \end_layout
19239
19240 \begin_layout Standard
19241 or: 
19242 \end_layout
19243
19244 \begin_layout LyX-Code
19245
19246 \backslash
19247 begin{LatexName}[LatexParam] \SpecialChar ldots
19248  
19249 \backslash
19250 end{LatexName}
19251 \end_layout
19252
19253 \begin_layout Standard
19254 depending upon the \SpecialChar LaTeX
19255  type.
19256 \end_layout
19257
19258 \end_deeper
19259 \begin_layout Description
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 LeftDelim
19265 \end_layout
19266
19267 \end_inset
19268
19269  [
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 string
19275 \end_layout
19276
19277 \end_inset
19278
19279 ] A string that is put at the beginning of the layout content.
19280  A line break in the output can be indicated by 
19281 \begin_inset Flex Code
19282 status collapsed
19283
19284 \begin_layout Plain Layout
19285 <br/>
19286 \end_layout
19287
19288 \end_inset
19289
19290 .
19291 \end_layout
19292
19293 \begin_layout Description
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 LyxType
19299 \end_layout
19300
19301 \end_inset
19302
19303  Can be 
19304 \begin_inset Flex Code
19305 status collapsed
19306
19307 \begin_layout Plain Layout
19308 charstyle
19309 \end_layout
19310
19311 \end_inset
19312
19313
19314 \begin_inset Flex Code
19315 status collapsed
19316
19317 \begin_layout Plain Layout
19318 custom
19319 \end_layout
19320
19321 \end_inset
19322
19323
19324 \begin_inset Flex Code
19325 status collapsed
19326
19327 \begin_layout Plain Layout
19328 element
19329 \end_layout
19330
19331 \end_inset
19332
19333  or 
19334 \begin_inset Flex Code
19335 status collapsed
19336
19337 \begin_layout Plain Layout
19338 end
19339 \end_layout
19340
19341 \end_inset
19342
19343  (indicating a dummy definition ending definitions of charstyles, etc).
19344  This entry is required in and is only meaningful for Flex insets.
19345  Among other things, it determines on which menu this inset will appear.
19346  Setting 
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 LyxType
19352 \end_layout
19353
19354 \end_inset
19355
19356  to 
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361 charstyle
19362 \end_layout
19363
19364 \end_inset
19365
19366  will automatically set 
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371 MultiPar
19372 \end_layout
19373
19374 \end_inset
19375
19376  to false and 
19377 \begin_inset Flex Code
19378 status collapsed
19379
19380 \begin_layout Plain Layout
19381 ForcePlain
19382 \end_layout
19383
19384 \end_inset
19385
19386  to true.
19387  
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 MultiPar
19393 \end_layout
19394
19395 \end_inset
19396
19397  can be set to true, or 
19398 \begin_inset Flex Code
19399 status collapsed
19400
19401 \begin_layout Plain Layout
19402 ForcePlain
19403 \end_layout
19404
19405 \end_inset
19406
19407  to false, for 
19408 \begin_inset Flex Code
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412 charstyle
19413 \end_layout
19414
19415 \end_inset
19416
19417  insets by setting it 
19418 \emph on
19419 after
19420 \emph default
19421  you set the 
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 LyxType
19427 \end_layout
19428
19429 \end_inset
19430
19431 .
19432 \end_layout
19433
19434 \begin_layout Description
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 MultiPar
19440 \end_layout
19441
19442 \end_inset
19443
19444  [
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449
19450 \emph on
19451 0
19452 \end_layout
19453
19454 \end_inset
19455
19456 ,
19457 \begin_inset space \thinspace{}
19458 \end_inset
19459
19460
19461 \begin_inset Flex Code
19462 status collapsed
19463
19464 \begin_layout Plain Layout
19465 1
19466 \end_layout
19467
19468 \end_inset
19469
19470 ] Whether multiple paragraphs are permitted in this inset.
19471  This will also set 
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476 CustomPars
19477 \end_layout
19478
19479 \end_inset
19480
19481  to the same value and 
19482 \begin_inset Flex Code
19483 status collapsed
19484
19485 \begin_layout Plain Layout
19486 ForcePlain
19487 \end_layout
19488
19489 \end_inset
19490
19491  to the opposite value.
19492  These can be reset to other values, if they are used 
19493 \emph on
19494 after
19495 \emph default
19496  
19497 \begin_inset Flex Code
19498 status collapsed
19499
19500 \begin_layout Plain Layout
19501 MultiPar
19502 \end_layout
19503
19504 \end_inset
19505
19506 .
19507  Default is true.
19508 \end_layout
19509
19510 \begin_layout Description
19511 \begin_inset Flex Code
19512 status collapsed
19513
19514 \begin_layout Plain Layout
19515 NeedProtect
19516 \end_layout
19517
19518 \end_inset
19519
19520  [
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525
19526 \emph on
19527 0
19528 \end_layout
19529
19530 \end_inset
19531
19532 ,
19533 \begin_inset space \thinspace{}
19534 \end_inset
19535
19536
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 1
19542 \end_layout
19543
19544 \end_inset
19545
19546 ] Whether fragile commands in this inset should be 
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551
19552 \backslash
19553 protect
19554 \end_layout
19555
19556 \end_inset
19557
19558 'ed.
19559  (Note: This is 
19560 \emph on
19561 not
19562 \emph default
19563  whether the command should itself be protected.) Default is false.
19564 \end_layout
19565
19566 \begin_layout Description
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 NoInsetLayout
19572 \end_layout
19573
19574 \end_inset
19575
19576  [
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 <layout>
19582 \end_layout
19583
19584 \end_inset
19585
19586 ] Deletes an existing 
19587 \begin_inset Flex Code
19588 status collapsed
19589
19590 \begin_layout Plain Layout
19591 InsetLayout
19592 \end_layout
19593
19594 \end_inset
19595
19596 .
19597 \end_layout
19598
19599 \begin_layout Description
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 ObsoletedBy
19605 \end_layout
19606
19607 \end_inset
19608
19609  [
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 <layout>
19615 \end_layout
19616
19617 \end_inset
19618
19619 ] Name of an 
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624 InsetLayout
19625 \end_layout
19626
19627 \end_inset
19628
19629  that has replaced this 
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 InsetLayout
19635 \end_layout
19636
19637 \end_inset
19638
19639 .
19640  This is used to rename an 
19641 \begin_inset Flex Code
19642 status collapsed
19643
19644 \begin_layout Plain Layout
19645 InsetLayout
19646 \end_layout
19647
19648 \end_inset
19649
19650 , while keeping backward compatibility.
19651 \end_layout
19652
19653 \begin_layout Description
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 ParbreakIsNewline
19659 \end_layout
19660
19661 \end_inset
19662
19663  [
19664 \begin_inset Flex Code
19665 status collapsed
19666
19667 \begin_layout Plain Layout
19668
19669 \emph on
19670 0
19671 \end_layout
19672
19673 \end_inset
19674
19675 ,
19676 \begin_inset space \thinspace{}
19677 \end_inset
19678
19679
19680 \begin_inset Flex Code
19681 status collapsed
19682
19683 \begin_layout Plain Layout
19684 1
19685 \end_layout
19686
19687 \end_inset
19688
19689 ] As with paragraph styles, see 
19690 \begin_inset CommandInset ref
19691 LatexCommand ref
19692 reference "subsec:Paragraph-Styles"
19693
19694 \end_inset
19695
19696 .
19697  Default is false.
19698 \end_layout
19699
19700 \begin_layout Description
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 PassThru
19706 \end_layout
19707
19708 \end_inset
19709
19710  [
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715
19716 \emph on
19717 0
19718 \end_layout
19719
19720 \end_inset
19721
19722 ,
19723 \begin_inset space \thinspace{}
19724 \end_inset
19725
19726
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 1
19732 \end_layout
19733
19734 \end_inset
19735
19736 ] As with paragraph styles, see 
19737 \begin_inset CommandInset ref
19738 LatexCommand ref
19739 reference "subsec:Paragraph-Styles"
19740
19741 \end_inset
19742
19743 .
19744  Default is false.
19745 \end_layout
19746
19747 \begin_layout Description
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 Preamble
19753 \end_layout
19754
19755 \end_inset
19756
19757  As with paragraph styles, see 
19758 \begin_inset CommandInset ref
19759 LatexCommand ref
19760 reference "subsec:Paragraph-Styles"
19761
19762 \end_inset
19763
19764 .
19765 \end_layout
19766
19767 \begin_layout Description
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 RefPrefix
19773 \end_layout
19774
19775 \end_inset
19776
19777  [
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 string
19783 \end_layout
19784
19785 \end_inset
19786
19787 ] The prefix to use when creating labels referring to insets of this type.
19788  This allows the use of formatted references.
19789 \end_layout
19790
19791 \begin_layout Description
19792 \begin_inset Flex Code
19793 status collapsed
19794
19795 \begin_layout Plain Layout
19796 Requires
19797 \end_layout
19798
19799 \end_inset
19800
19801  [
19802 \begin_inset Flex Code
19803 status collapsed
19804
19805 \begin_layout Plain Layout
19806 string
19807 \end_layout
19808
19809 \end_inset
19810
19811 ] As with paragraph styles, see 
19812 \begin_inset CommandInset ref
19813 LatexCommand ref
19814 reference "subsec:Paragraph-Styles"
19815
19816 \end_inset
19817
19818 .
19819 \end_layout
19820
19821 \begin_layout Description
19822 \begin_inset Flex Code
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826 ResetArgs
19827 \end_layout
19828
19829 \end_inset
19830
19831  [
19832 \begin_inset Flex Code
19833 status collapsed
19834
19835 \begin_layout Plain Layout
19836
19837 \emph on
19838 0
19839 \end_layout
19840
19841 \end_inset
19842
19843 ,
19844 \begin_inset space \thinspace{}
19845 \end_inset
19846
19847
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 1
19853 \end_layout
19854
19855 \end_inset
19856
19857 ] Resets the \SpecialChar LaTeX
19858  arguments of this layout (as defined via the 
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 Argument
19864 \end_layout
19865
19866 \end_inset
19867
19868  tag).
19869  This is useful if you have copied a style via 
19870 \begin_inset Flex Code
19871 status collapsed
19872
19873 \begin_layout Plain Layout
19874 CopyStyle
19875 \end_layout
19876
19877 \end_inset
19878
19879 , but you do not want to inherit its (required and optional) arguments.
19880 \end_layout
19881
19882 \begin_layout Description
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 ResetsFont
19888 \end_layout
19889
19890 \end_inset
19891
19892  [
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897 0
19898 \end_layout
19899
19900 \end_inset
19901
19902 ,
19903 \begin_inset space \thinspace{}
19904 \end_inset
19905
19906
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911
19912 \emph on
19913 1
19914 \end_layout
19915
19916 \end_inset
19917
19918 ] Whether this inset should use the font of its surrounding environment
19919  or uses its own.
19920  Default is false: use the font of the surrounding environment.
19921 \end_layout
19922
19923 \begin_layout Description
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 RightDelim
19929 \end_layout
19930
19931 \end_inset
19932
19933  [
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 string
19939 \end_layout
19940
19941 \end_inset
19942
19943 ] A string that is put at the end of the layout content.
19944  A line break in the output can be indicated by 
19945 \begin_inset Flex Code
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 <br/>
19950 \end_layout
19951
19952 \end_inset
19953
19954 .
19955 \end_layout
19956
19957 \begin_layout Description
19958 \begin_inset Flex Code
19959 status collapsed
19960
19961 \begin_layout Plain Layout
19962 Spellcheck
19963 \end_layout
19964
19965 \end_inset
19966
19967  [
19968 \begin_inset Flex Code
19969 status collapsed
19970
19971 \begin_layout Plain Layout
19972 0
19973 \end_layout
19974
19975 \end_inset
19976
19977 ,
19978 \begin_inset space \thinspace{}
19979 \end_inset
19980
19981
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986
19987 \emph on
19988 1
19989 \end_layout
19990
19991 \end_inset
19992
19993 ] Allow spell-checking the contents of this inset.
19994  Default is true.
19995 \end_layout
19996
19997 \begin_layout Subsection
19998 Counters
19999 \begin_inset CommandInset label
20000 LatexCommand label
20001 name "subsec:Counters"
20002
20003 \end_inset
20004
20005
20006 \end_layout
20007
20008 \begin_layout Standard
20009 It is necessary to define the counters (
20010 \begin_inset Flex Noun
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 chapter
20015 \end_layout
20016
20017 \end_inset
20018
20019
20020 \begin_inset Flex Noun
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 figure
20025 \end_layout
20026
20027 \end_inset
20028
20029 , \SpecialChar ldots
20030 ) in the text class itself.
20031  The standard counters are defined in the file 
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 stdcounters.inc
20037 \end_layout
20038
20039 \end_inset
20040
20041 , so you may have to do no more than add
20042 \end_layout
20043
20044 \begin_layout LyX-Code
20045 Input stdcounters.inc
20046 \end_layout
20047
20048 \begin_layout Standard
20049 to your layout file to get them to work.
20050  But if you want to define custom counters, then you can do so.
20051  The counter declaration must begin with:
20052 \end_layout
20053
20054 \begin_layout LyX-Code
20055 Counter CounterName
20056 \end_layout
20057
20058 \begin_layout Standard
20059 where of course `
20060 \begin_inset Flex Code
20061 status collapsed
20062
20063 \begin_layout Plain Layout
20064 CounterName
20065 \end_layout
20066
20067 \end_inset
20068
20069 ' is replaced by the name of the counter.
20070  And it must end with 
20071 \begin_inset Quotes eld
20072 \end_inset
20073
20074
20075 \begin_inset Flex Code
20076 status collapsed
20077
20078 \begin_layout Plain Layout
20079 End
20080 \end_layout
20081
20082 \end_inset
20083
20084
20085 \begin_inset Quotes erd
20086 \end_inset
20087
20088 .
20089  The following parameters can also be used:
20090 \end_layout
20091
20092 \begin_layout Description
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097 InitialValue
20098 \end_layout
20099
20100 \end_inset
20101
20102  [
20103 \begin_inset Flex Code
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 int=1
20108 \end_layout
20109
20110 \end_inset
20111
20112 ] Sets the initial value for the counter, to which it will be reset whenever
20113  that happens.
20114  Normally, one will want the default, 1.
20115 \end_layout
20116
20117 \begin_layout Description
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 LabelString
20123 \end_layout
20124
20125 \end_inset
20126
20127  [
20128 \begin_inset Flex Code
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132 string
20133 \end_layout
20134
20135 \end_inset
20136
20137 =
20138 \begin_inset Quotes erd
20139 \end_inset
20140
20141
20142 \begin_inset Quotes erd
20143 \end_inset
20144
20145 ] When defined, this string defines how the counter is displayed.
20146  Setting this value sets 
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 LabelStringAppendix
20152 \end_layout
20153
20154 \end_inset
20155
20156  to the same value.
20157  The following special constructs can be used in the string:
20158 \end_layout
20159
20160 \begin_deeper
20161 \begin_layout Itemize
20162 \begin_inset Flex Code
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166
20167 \backslash
20168 thecounter
20169 \end_layout
20170
20171 \end_inset
20172
20173  will be replaced by the expansion of the 
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 LabelString
20179 \end_layout
20180
20181 \end_inset
20182
20183  (or 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 LabelStringAppendix
20189 \end_layout
20190
20191 \end_inset
20192
20193 ) of the counter 
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 counter
20199 \end_layout
20200
20201 \end_inset
20202
20203 .
20204  
20205 \end_layout
20206
20207 \begin_layout Itemize
20208 counter values can be expressed using \SpecialChar LaTeX
20209 -like macros
20210 \begin_inset Newline newline
20211 \end_inset
20212
20213
20214 \begin_inset Flex Code
20215 status collapsed
20216
20217 \begin_layout Plain Layout
20218
20219 \backslash
20220
20221 \emph on
20222 numbertype
20223 \emph default
20224 {
20225 \emph on
20226 counter
20227 \emph default
20228 }
20229 \end_layout
20230
20231 \end_inset
20232
20233 , where 
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238
20239 \emph on
20240 numbertype
20241 \end_layout
20242
20243 \end_inset
20244
20245  can be:
20246 \begin_inset Foot
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250
20251 \family roman
20252 \series medium
20253 \shape up
20254 \size normal
20255 \emph off
20256 \bar no
20257 \noun off
20258 \color none
20259 Actually, the situation is a bit more complicated: any
20260 \family default
20261 \series default
20262 \shape default
20263 \emph default
20264 \bar default
20265  
20266 \size default
20267 \emph on
20268 \noun default
20269 \color inherit
20270 numbertype
20271 \family roman
20272 \series medium
20273 \shape up
20274 \size normal
20275 \emph off
20276 \bar no
20277 \noun off
20278  other than those described below will produce arabic numerals.
20279  It would not be surprising to see this change in the future.
20280 \end_layout
20281
20282 \end_inset
20283
20284  
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289 arabic
20290 \end_layout
20291
20292 \end_inset
20293
20294 : 1, 2, 3,\SpecialChar ldots
20295
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 alph
20301 \end_layout
20302
20303 \end_inset
20304
20305  for lower-case letters: a, b, c, \SpecialChar ldots
20306
20307 \begin_inset Flex Code
20308 status collapsed
20309
20310 \begin_layout Plain Layout
20311 Alph
20312 \end_layout
20313
20314 \end_inset
20315
20316  for upper-case letters: A, B, C, \SpecialChar ldots
20317
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 roman
20323 \end_layout
20324
20325 \end_inset
20326
20327  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20328
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 Roman
20334 \end_layout
20335
20336 \end_inset
20337
20338  for upper-case roman numerals: I, II, III\SpecialChar ldots
20339
20340 \begin_inset Flex Code
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 hebrew
20345 \end_layout
20346
20347 \end_inset
20348
20349  for hebrew numerals.
20350 \end_layout
20351
20352 \end_deeper
20353 \begin_layout Standard
20354 If LabelString is not defined, a default value is constructed as follows:
20355  if the counter has a master counter 
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 master
20361 \end_layout
20362
20363 \end_inset
20364
20365  (defined via 
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 Within
20371 \end_layout
20372
20373 \end_inset
20374
20375 ), the string
20376 \begin_inset Newline newline
20377 \end_inset
20378
20379
20380 \begin_inset Flex Code
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384
20385 \backslash
20386 themaster.
20387 \backslash
20388 arabic{counter}
20389 \end_layout
20390
20391 \end_inset
20392
20393  is used; otherwise the string 
20394 \begin_inset Flex Code
20395 status collapsed
20396
20397 \begin_layout Plain Layout
20398
20399 \backslash
20400 arabic{counter}
20401 \end_layout
20402
20403 \end_inset
20404
20405  is used.
20406 \end_layout
20407
20408 \begin_layout Description
20409 \begin_inset Flex Code
20410 status collapsed
20411
20412 \begin_layout Plain Layout
20413 LabelStringAppendix
20414 \end_layout
20415
20416 \end_inset
20417
20418  [
20419 \begin_inset Flex Code
20420 status collapsed
20421
20422 \begin_layout Plain Layout
20423 string
20424 \end_layout
20425
20426 \end_inset
20427
20428 =
20429 \begin_inset Quotes erd
20430 \end_inset
20431
20432
20433 \begin_inset Quotes erd
20434 \end_inset
20435
20436 ] Same as 
20437 \begin_inset Flex Code
20438 status collapsed
20439
20440 \begin_layout Plain Layout
20441 LabelString
20442 \end_layout
20443
20444 \end_inset
20445
20446 , but for use in the Appendix.
20447 \end_layout
20448
20449 \begin_layout Description
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 PrettyFormat
20455 \end_layout
20456
20457 \end_inset
20458
20459  [
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 string
20465 \end_layout
20466
20467 \end_inset
20468
20469 =
20470 \begin_inset Quotes erd
20471 \end_inset
20472
20473
20474 \begin_inset Quotes erd
20475 \end_inset
20476
20477 ] A format for use with formatted references to this counter.
20478  For example, one might want to have references to section numbers appear
20479  as 
20480 \begin_inset Quotes eld
20481 \end_inset
20482
20483 Section 2.4
20484 \begin_inset Quotes erd
20485 \end_inset
20486
20487 .
20488  The string should contain 
20489 \begin_inset Quotes eld
20490 \end_inset
20491
20492 ##
20493 \begin_inset Quotes erd
20494 \end_inset
20495
20496 .
20497  This will be replaced by the counter number itself.
20498  So, for sections, it would be: Section ##.
20499 \end_layout
20500
20501 \begin_layout Description
20502 \begin_inset Flex Code
20503 status collapsed
20504
20505 \begin_layout Plain Layout
20506 Within
20507 \end_layout
20508
20509 \end_inset
20510
20511  [
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 string
20517 \end_layout
20518
20519 \end_inset
20520
20521 =
20522 \begin_inset Quotes erd
20523 \end_inset
20524
20525
20526 \begin_inset Quotes erd
20527 \end_inset
20528
20529 ] If this is set to the name of another counter, the present counter will
20530  be reset every time the other one is increased.
20531  For example, 
20532 \begin_inset Flex Code
20533 status collapsed
20534
20535 \begin_layout Plain Layout
20536 subsection
20537 \end_layout
20538
20539 \end_inset
20540
20541  is numbered inside 
20542 \begin_inset Flex Code
20543 status collapsed
20544
20545 \begin_layout Plain Layout
20546 section
20547 \end_layout
20548
20549 \end_inset
20550
20551 .
20552 \end_layout
20553
20554 \begin_layout Subsection
20555 Font description
20556 \begin_inset CommandInset label
20557 LatexCommand label
20558 name "subsec:Font-description"
20559
20560 \end_inset
20561
20562
20563 \end_layout
20564
20565 \begin_layout Standard
20566 A font description looks like this:
20567 \end_layout
20568
20569 \begin_layout LyX-Code
20570 Font 
20571 \family roman
20572 \emph on
20573 or
20574 \family default
20575 \emph default
20576  LabelFont
20577 \emph on
20578  
20579 \family roman
20580 or
20581 \family default
20582 \emph default
20583  DefaultFont
20584 \end_layout
20585
20586 \begin_layout LyX-Code
20587  ...
20588 \end_layout
20589
20590 \begin_layout LyX-Code
20591 EndFont
20592 \end_layout
20593
20594 \begin_layout Standard
20595 The following commands are available:
20596 \end_layout
20597
20598 \begin_layout Description
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 Color
20604 \end_layout
20605
20606 \end_inset
20607
20608  [
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613
20614 \emph on
20615 none
20616 \end_layout
20617
20618 \end_inset
20619
20620
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 black
20626 \end_layout
20627
20628 \end_inset
20629
20630
20631 \begin_inset Flex Code
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 white
20636 \end_layout
20637
20638 \end_inset
20639
20640
20641 \begin_inset Flex Code
20642 status collapsed
20643
20644 \begin_layout Plain Layout
20645 red
20646 \end_layout
20647
20648 \end_inset
20649
20650
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 green
20656 \end_layout
20657
20658 \end_inset
20659
20660
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 blue
20666 \end_layout
20667
20668 \end_inset
20669
20670
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 cyan
20676 \end_layout
20677
20678 \end_inset
20679
20680
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 magenta
20686 \end_layout
20687
20688 \end_inset
20689
20690
20691 \begin_inset Flex Code
20692 status collapsed
20693
20694 \begin_layout Plain Layout
20695 yellow
20696 \end_layout
20697
20698 \end_inset
20699
20700
20701 \begin_inset Flex Code
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 brown
20706 \end_layout
20707
20708 \end_inset
20709
20710
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 darkgray
20716 \end_layout
20717
20718 \end_inset
20719
20720
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 gray
20726 \end_layout
20727
20728 \end_inset
20729
20730
20731 \begin_inset Flex Code
20732 status collapsed
20733
20734 \begin_layout Plain Layout
20735 lightgray
20736 \end_layout
20737
20738 \end_inset
20739
20740
20741 \begin_inset Flex Code
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 lime
20746 \end_layout
20747
20748 \end_inset
20749
20750
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 orange
20756 \end_layout
20757
20758 \end_inset
20759
20760
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 olive
20766 \end_layout
20767
20768 \end_inset
20769
20770
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 pink
20776 \end_layout
20777
20778 \end_inset
20779
20780
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 purple
20786 \end_layout
20787
20788 \end_inset
20789
20790
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 teal
20796 \end_layout
20797
20798 \end_inset
20799
20800
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 violet
20806 \end_layout
20807
20808 \end_inset
20809
20810 ]
20811 \end_layout
20812
20813 \begin_layout Description
20814 \begin_inset Flex Code
20815 status collapsed
20816
20817 \begin_layout Plain Layout
20818 Family
20819 \end_layout
20820
20821 \end_inset
20822
20823  [
20824 \begin_inset Flex Code
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828
20829 \emph on
20830 Roman
20831 \end_layout
20832
20833 \end_inset
20834
20835
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840 Sans
20841 \end_layout
20842
20843 \end_inset
20844
20845
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 Typewriter
20851 \end_layout
20852
20853 \end_inset
20854
20855 ]
20856 \end_layout
20857
20858 \begin_layout Description
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 Misc
20864 \end_layout
20865
20866 \end_inset
20867
20868  [
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 string
20874 \end_layout
20875
20876 \end_inset
20877
20878 ] Valid arguments are: 
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 emph
20884 \end_layout
20885
20886 \end_inset
20887
20888
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 noun
20894 \end_layout
20895
20896 \end_inset
20897
20898
20899 \begin_inset Flex Code
20900 status collapsed
20901
20902 \begin_layout Plain Layout
20903 strikeout
20904 \end_layout
20905
20906 \end_inset
20907
20908
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 underbar
20914 \end_layout
20915
20916 \end_inset
20917
20918
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 uuline
20924 \end_layout
20925
20926 \end_inset
20927
20928
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 uwave
20934 \end_layout
20935
20936 \end_inset
20937
20938
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 no_emph
20944 \end_layout
20945
20946 \end_inset
20947
20948
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 no_noun
20954 \end_layout
20955
20956 \end_inset
20957
20958
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 no_strikeout
20964 \end_layout
20965
20966 \end_inset
20967
20968
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 no_bar
20974 \end_layout
20975
20976 \end_inset
20977
20978
20979 \begin_inset Flex Code
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983 no_uuline
20984 \end_layout
20985
20986 \end_inset
20987
20988  and 
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 no_uwave
20994 \end_layout
20995
20996 \end_inset
20997
20998 .
20999  Each of these turns on or off the corresponding attribute.
21000  For example, 
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 emph
21006 \end_layout
21007
21008 \end_inset
21009
21010  turns on emphasis, and 
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 no_emph
21016 \end_layout
21017
21018 \end_inset
21019
21020  turns it off.
21021  
21022 \begin_inset Newline newline
21023 \end_inset
21024
21025 If the latter seems puzzling, remember that the font settings for the present
21026  context are generally inherited from the surrounding context.
21027  So 
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 no_emph
21033 \end_layout
21034
21035 \end_inset
21036
21037  would turn off the emphasis that was anyway in effect, say, in a theorem
21038  environment.
21039 \end_layout
21040
21041 \begin_layout Description
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 Series
21047 \end_layout
21048
21049 \end_inset
21050
21051  [
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056
21057 \emph on
21058 Medium
21059 \end_layout
21060
21061 \end_inset
21062
21063
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068 Bold
21069 \end_layout
21070
21071 \end_inset
21072
21073
21074 \end_layout
21075
21076 \begin_layout Description
21077 \begin_inset Flex Code
21078 status collapsed
21079
21080 \begin_layout Plain Layout
21081 Shape
21082 \end_layout
21083
21084 \end_inset
21085
21086  [
21087 \begin_inset Flex Code
21088 status collapsed
21089
21090 \begin_layout Plain Layout
21091
21092 \emph on
21093 Up
21094 \end_layout
21095
21096 \end_inset
21097
21098
21099 \begin_inset Flex Code
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103 Italic
21104 \end_layout
21105
21106 \end_inset
21107
21108
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 SmallCaps
21114 \end_layout
21115
21116 \end_inset
21117
21118
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 Slanted
21124 \end_layout
21125
21126 \end_inset
21127
21128
21129 \end_layout
21130
21131 \begin_layout Description
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 Size
21137 \end_layout
21138
21139 \end_inset
21140
21141  [
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 tiny
21147 \end_layout
21148
21149 \end_inset
21150
21151
21152 \begin_inset Flex Code
21153 status collapsed
21154
21155 \begin_layout Plain Layout
21156 small
21157 \end_layout
21158
21159 \end_inset
21160
21161
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166
21167 \emph on
21168 normal
21169 \end_layout
21170
21171 \end_inset
21172
21173
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 large
21179 \end_layout
21180
21181 \end_inset
21182
21183
21184 \begin_inset Flex Code
21185 status collapsed
21186
21187 \begin_layout Plain Layout
21188 larger
21189 \end_layout
21190
21191 \end_inset
21192
21193
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 largest
21199 \end_layout
21200
21201 \end_inset
21202
21203
21204 \begin_inset Flex Code
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 huge
21209 \end_layout
21210
21211 \end_inset
21212
21213
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 giant
21219 \end_layout
21220
21221 \end_inset
21222
21223 ]
21224 \end_layout
21225
21226 \begin_layout Subsection
21227 \begin_inset CommandInset label
21228 LatexCommand label
21229 name "subsec:Citation-engine-description"
21230
21231 \end_inset
21232
21233 Cite engine description
21234 \end_layout
21235
21236 \begin_layout Standard
21237 The 
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 CiteEngine
21243 \end_layout
21244
21245 \end_inset
21246
21247  blocks, as used mainly in cite engine files (see 
21248 \begin_inset CommandInset ref
21249 LatexCommand ref
21250 reference "subsec:Cite-Engine-Files"
21251 plural "false"
21252 caps "false"
21253 noprefix "false"
21254
21255 \end_inset
21256
21257 ), define the citation commands provided by a specific 
21258 \begin_inset Quotes eld
21259 \end_inset
21260
21261 cite engine
21262 \begin_inset Quotes erd
21263 \end_inset
21264
21265 .
21266  A cite engine, in \SpecialChar LyX
21267  terms, is way specific way to format citations, using
21268  numbers, author names and/or years.
21269  Currently, \SpecialChar LyX
21270  supports three such engine types, namely:
21271 \end_layout
21272
21273 \begin_layout Enumerate
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 default
21279 \end_layout
21280
21281 \end_inset
21282
21283 : the default Bib\SpecialChar TeX
21284  way to format citations, a simple numeric style (e.
21285 \begin_inset space \thinspace{}
21286 \end_inset
21287
21288 g., 
21289 \begin_inset Quotes eld
21290 \end_inset
21291
21292 [1]
21293 \begin_inset Quotes erd
21294 \end_inset
21295
21296 )
21297 \end_layout
21298
21299 \begin_layout Enumerate
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 authoryear
21305 \end_layout
21306
21307 \end_inset
21308
21309 : Harvard-styled citations using author names and publication year (e.
21310 \begin_inset space \thinspace{}
21311 \end_inset
21312
21313 g., 
21314 \begin_inset Quotes eld
21315 \end_inset
21316
21317 Smith and Miller (2017b)
21318 \begin_inset Quotes erd
21319 \end_inset
21320
21321 )
21322 \end_layout
21323
21324 \begin_layout Enumerate
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329 numerical
21330 \end_layout
21331
21332 \end_inset
21333
21334 : extended numerical citations that also allow for author or title next
21335  to the number (e.
21336 \begin_inset space \thinspace{}
21337 \end_inset
21338
21339 g., 
21340 \begin_inset Quotes eld
21341 \end_inset
21342
21343 Smith and Miller [1]
21344 \begin_inset Quotes erd
21345 \end_inset
21346
21347 )
21348 \end_layout
21349
21350 \begin_layout Standard
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355 CiteEngine
21356 \end_layout
21357
21358 \end_inset
21359
21360  blocks look like this:
21361 \end_layout
21362
21363 \begin_layout LyX-Code
21364 CiteEngine default
21365 \end_layout
21366
21367 \begin_layout LyX-Code
21368  cite
21369 \end_layout
21370
21371 \begin_layout LyX-Code
21372  Citep*[][]
21373 \end_layout
21374
21375 \begin_layout LyX-Code
21376  citeyearpar[][]=parencite*
21377 \end_layout
21378
21379 \begin_layout LyX-Code
21380  ...
21381 \end_layout
21382
21383 \begin_layout LyX-Code
21384 End
21385 \end_layout
21386
21387 \begin_layout Standard
21388 The tag following 
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 CiteEngine
21394 \end_layout
21395
21396 \end_inset
21397
21398  denotes the engine.
21399  The individual lines respectively define a cite command or cite command
21400  paradigm supported by this engine.
21401  The line can be as simple as a cite command that is used both to name the
21402  respective \SpecialChar LyX
21403  command and the \SpecialChar LaTeX
21404  output or more complex in order to differentiate
21405  things.
21406  The full syntax is:
21407 \end_layout
21408
21409 \begin_layout LyX-Code
21410 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21411 \end_layout
21412
21413 \begin_layout Itemize
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418 LyXName
21419 \end_layout
21420
21421 \end_inset
21422
21423 : The name as used in the 
21424 \begin_inset Flex Code
21425 status collapsed
21426
21427 \begin_layout Plain Layout
21428 *.lyx
21429 \end_layout
21430
21431 \end_inset
21432
21433  file.
21434 \end_layout
21435
21436 \begin_deeper
21437 \begin_layout Standard
21438 For portability reasons, we try to use the same name for same-formatted
21439  commands in different cite packages (thus many names stem from natbib,
21440  and thus we need to differentiate a 
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445 latexcmd
21446 \end_layout
21447
21448 \end_inset
21449
21450  sometimes, if the \SpecialChar LaTeX
21451  command names differ).
21452 \end_layout
21453
21454 \end_deeper
21455 \begin_layout Itemize
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 alias
21461 \end_layout
21462
21463 \end_inset
21464
21465 : a (comma-separated) list of commands that fall back to the given 
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 LyXName
21471 \end_layout
21472
21473 \end_inset
21474
21475  in the current engine.
21476  This eases the switch of citation packages and engines.
21477  The 
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482 alias
21483 \end_layout
21484
21485 \end_inset
21486
21487  can be compared to 
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 ObsoletedBy
21493 \end_layout
21494
21495 \end_inset
21496
21497  in layout definitions.
21498 \end_layout
21499
21500 \begin_layout Itemize
21501 \begin_inset Flex Code
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 latexcmd
21506 \end_layout
21507
21508 \end_inset
21509
21510 : The actual \SpecialChar LaTeX
21511  command that is output.
21512  
21513 \end_layout
21514
21515 \begin_layout Standard
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 Alias
21521 \end_layout
21522
21523 \end_inset
21524
21525  and 
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 latexcmd
21531 \end_layout
21532
21533 \end_inset
21534
21535  are optional.
21536  If no 
21537 \begin_inset Flex Code
21538 status collapsed
21539
21540 \begin_layout Plain Layout
21541 latexcmd
21542 \end_layout
21543
21544 \end_inset
21545
21546  is given, the 
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 LyXName
21552 \end_layout
21553
21554 \end_inset
21555
21556  will be output to \SpecialChar LaTeX
21557 .
21558 \end_layout
21559
21560 \begin_layout Standard
21561 Note further:
21562 \end_layout
21563
21564 \begin_layout Itemize
21565 Capitalization indicates that the command also has a capitalized form (
21566 \begin_inset Flex Code
21567 status collapsed
21568
21569 \begin_layout Plain Layout
21570
21571 \backslash
21572 Latexcmd
21573 \end_layout
21574
21575 \end_inset
21576
21577  vs.
21578  
21579 \begin_inset Flex Code
21580 status collapsed
21581
21582 \begin_layout Plain Layout
21583
21584 \backslash
21585 latexcmd
21586 \end_layout
21587
21588 \end_inset
21589
21590 ).
21591  These usually enforce up-casing of name prefixes (
21592 \emph on
21593 von Goethe
21594 \emph default
21595  
21596 \begin_inset Formula $\Rightarrow$
21597 \end_inset
21598
21599  
21600 \emph on
21601 Von Goethe
21602 \emph default
21603 ).
21604 \end_layout
21605
21606 \begin_layout Itemize
21607 Brackets 
21608 \begin_inset Flex Code
21609 status collapsed
21610
21611 \begin_layout Plain Layout
21612 []
21613 \end_layout
21614
21615 \end_inset
21616
21617  indicate the number of optional arguments (there can be 0–2).
21618 \end_layout
21619
21620 \begin_layout Itemize
21621 A star 
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 *
21627 \end_layout
21628
21629 \end_inset
21630
21631  indicates there is a starred version of the command (
21632 \begin_inset Flex Code
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636
21637 \backslash
21638 latexcmd*
21639 \end_layout
21640
21641 \end_inset
21642
21643  vs.
21644  
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649
21650 \backslash
21651 latexcmd
21652 \end_layout
21653
21654 \end_inset
21655
21656 ).
21657  
21658 \end_layout
21659
21660 \begin_deeper
21661 \begin_layout Standard
21662 By default, the starred version means: Output all authors even if it should
21663  be shortened with 
21664 \begin_inset Quotes eld
21665 \end_inset
21666
21667 et al.
21668 \begin_inset Quotes erd
21669 \end_inset
21670
21671  due to the 
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 MaxCiteNames
21677 \end_layout
21678
21679 \end_inset
21680
21681  threshold.
21682 \end_layout
21683
21684 \begin_layout Standard
21685 If the star has a different meaning for a given command, it can be specified
21686  in angle brackets: 
21687 \begin_inset Flex Code
21688 status collapsed
21689
21690 \begin_layout Plain Layout
21691 <!_stardesc!_stardesctooltip>
21692 \end_layout
21693
21694 \end_inset
21695
21696 .
21697  Maximal two translatable macro keywords, marked by the prefix 
21698 \begin_inset Flex Code
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702 !_
21703 \end_layout
21704
21705 \end_inset
21706
21707 , can be given.
21708  The first points to the string that replaces the 
21709 \begin_inset Quotes eld
21710 \end_inset
21711
21712 Full aut&hor list
21713 \begin_inset Quotes erd
21714 \end_inset
21715
21716  checkbox label in the citation dialog, the second one to an optional tool
21717  tip for this checkbox.
21718  
21719 \end_layout
21720
21721 \begin_layout Standard
21722 Note that these two macros have to be defined in a 
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727 CiteFormat
21728 \end_layout
21729
21730 \end_inset
21731
21732  (see next section), dropping the 
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 !
21738 \end_layout
21739
21740 \end_inset
21741
21742  from the prefix, like this: 
21743 \end_layout
21744
21745 \begin_layout LyX-Code
21746 _stardesc Sta&rred command label
21747 \end_layout
21748
21749 \begin_layout LyX-Code
21750 _stardesctooltip Tooltip for the starred command checkbox.
21751 \end_layout
21752
21753 \end_deeper
21754 \begin_layout Itemize
21755 A dollar sign 
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 $
21761 \end_layout
21762
21763 \end_inset
21764
21765  indicates that this command features 
21766 \begin_inset Quotes eld
21767 \end_inset
21768
21769 qualified citation lists
21770 \begin_inset Quotes erd
21771 \end_inset
21772
21773 .
21774  This is a 
21775 \family sans
21776 Biblatex
21777 \family default
21778 -specific feature for multi-reference citations where an individual pre-
21779  and postnote can be given to each reference in the list.
21780  Please refer to the 
21781 \family sans
21782 Biblatex
21783 \family default
21784  manual for details.
21785 \end_layout
21786
21787 \begin_layout Subsection
21788 \begin_inset CommandInset label
21789 LatexCommand label
21790 name "subsec:Citation-format-description"
21791
21792 \end_inset
21793
21794 Cite format description
21795 \end_layout
21796
21797 \begin_layout Standard
21798 The 
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 CiteFormat
21804 \end_layout
21805
21806 \end_inset
21807
21808  blocks are used to describe how bibliographic information should be displayed,
21809  both within \SpecialChar LyX
21810  itself (in the citation dialog and in tooltips, for example)
21811  and in XHTML output.
21812  Such a block might look like this:
21813 \end_layout
21814
21815 \begin_layout LyX-Code
21816 CiteFormat
21817 \end_layout
21818
21819 \begin_layout LyX-Code
21820  article ...
21821 \end_layout
21822
21823 \begin_layout LyX-Code
21824  book ...
21825 \end_layout
21826
21827 \begin_layout LyX-Code
21828 End
21829 \end_layout
21830
21831 \begin_layout Standard
21832 or
21833 \end_layout
21834
21835 \begin_layout LyX-Code
21836 CiteFormat
21837 \end_layout
21838
21839 \begin_layout LyX-Code
21840  cite ...
21841 \end_layout
21842
21843 \begin_layout LyX-Code
21844  citet*[][] ...
21845 \end_layout
21846
21847 \begin_layout LyX-Code
21848 End
21849 \end_layout
21850
21851 \begin_layout Standard
21852 In the first case, the individual lines define how the bibliographic information
21853  associated with an article or book, respectively, is to be displayed, and
21854  such a definition can be given for any 
21855 \begin_inset Quotes els
21856 \end_inset
21857
21858 entry type
21859 \begin_inset Quotes ers
21860 \end_inset
21861
21862  that might be present in a Bib\SpecialChar TeX
21863  file.
21864  \SpecialChar LyX
21865  defines a default format in the source code that will be used if no specific
21866  definition has been given.
21867  \SpecialChar LyX
21868  predefines several formats in the file 
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 stdciteformats.inc
21874 \end_layout
21875
21876 \end_inset
21877
21878 , which is included in most of \SpecialChar LyX
21879 's document classes.
21880 \end_layout
21881
21882 \begin_layout Standard
21883 In the second case, the lines define how a specific citation command (in
21884  the example 
21885 \begin_inset Flex Code
21886 status collapsed
21887
21888 \begin_layout Plain Layout
21889
21890 \backslash
21891 cite
21892 \end_layout
21893
21894 \end_inset
21895
21896
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901
21902 \backslash
21903 citet
21904 \end_layout
21905
21906 \end_inset
21907
21908 ) is to be displayed on the citation inset label, in the citation dialog,
21909  menu or XHTML output.
21910  \SpecialChar LyX
21911  defines such formats for the citation style variants it supports via 
21912 \family sans
21913 Document\SpecialChar menuseparator
21914 Setting\SpecialChar menuseparator
21915 Bibliography\SpecialChar ldots
21916
21917 \family default
21918  in specific 
21919 \begin_inset Flex Code
21920 status collapsed
21921
21922 \begin_layout Plain Layout
21923 *.citeengine
21924 \end_layout
21925
21926 \end_inset
21927
21928  files that are shipped with \SpecialChar LyX
21929  (see 
21930 \begin_inset CommandInset ref
21931 LatexCommand ref
21932 reference "subsec:Cite-Engine-Files"
21933 plural "false"
21934 caps "false"
21935 noprefix "false"
21936
21937 \end_inset
21938
21939 ).
21940 \end_layout
21941
21942 \begin_layout Standard
21943 The definitions use a simple language that allows Bib\SpecialChar TeX
21944  keys to be replaced
21945  with their values.
21946  Keys should be enclosed in 
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 %
21952 \end_layout
21953
21954 \end_inset
21955
21956  signs, e.g.: 
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961 %author%
21962 \end_layout
21963
21964 \end_inset
21965
21966 .
21967  So a simple definition might look like this:
21968 \end_layout
21969
21970 \begin_layout LyX-Code
21971 misc %author%, 
21972 \begin_inset Quotes eld
21973 \end_inset
21974
21975 %title%
21976 \begin_inset Quotes erd
21977 \end_inset
21978
21979 .
21980 \end_layout
21981
21982 \begin_layout Standard
21983 This would print the author, followed by a comma, followed by the title,
21984  in quotes, followed by a period.
21985 \end_layout
21986
21987 \begin_layout Standard
21988 Of course, sometimes you may want to print a key only if it exists.
21989  This can be done by using a conditional construction, such as: 
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 {%volume%[[vol.
21995 \begin_inset space ~
21996 \end_inset
21997
21998 %volume%]]}
21999 \end_layout
22000
22001 \end_inset
22002
22003 .
22004  This says: If the 
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009 volume
22010 \end_layout
22011
22012 \end_inset
22013
22014  key exists, then print 
22015 \begin_inset Quotes eld
22016 \end_inset
22017
22018 vol.
22019 \begin_inset space ~
22020 \end_inset
22021
22022
22023 \begin_inset Quotes erd
22024 \end_inset
22025
22026  followed by the volume key.
22027  It is also possible to have an else clause in the conditional, such as:
22028 \begin_inset Newline newline
22029 \end_inset
22030
22031
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 {%author%[[%author%]][[%editor%, ed.]]}
22037 \end_layout
22038
22039 \end_inset
22040
22041 .
22042 \begin_inset Newline newline
22043 \end_inset
22044
22045 Here, the 
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 author
22051 \end_layout
22052
22053 \end_inset
22054
22055  key is printed if it exists; otherwise, the editor key is printed, followed
22056  by 
22057 \begin_inset Quotes eld
22058 \end_inset
22059
22060 ,
22061 \begin_inset space ~
22062 \end_inset
22063
22064 ed.
22065 \begin_inset Quotes erd
22066 \end_inset
22067
22068  Note that the key is again enclosed in 
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 %
22074 \end_layout
22075
22076 \end_inset
22077
22078  signs; the entire conditional is enclosed in braces; and the if and else
22079  clauses are enclosed in double brackets, 
22080 \begin_inset Quotes eld
22081 \end_inset
22082
22083
22084 \begin_inset Flex Code
22085 status collapsed
22086
22087 \begin_layout Plain Layout
22088 [[
22089 \end_layout
22090
22091 \end_inset
22092
22093
22094 \begin_inset Quotes eld
22095 \end_inset
22096
22097  and 
22098 \begin_inset Quotes eld
22099 \end_inset
22100
22101
22102 \begin_inset Flex Code
22103 status collapsed
22104
22105 \begin_layout Plain Layout
22106 ]]
22107 \end_layout
22108
22109 \end_inset
22110
22111
22112 \begin_inset Quotes erd
22113 \end_inset
22114
22115 .
22116  There must be no space between any of these.
22117 \end_layout
22118
22119 \begin_layout Standard
22120 Next to the entry keys, there are some special keys that can be used for
22121  these conditionals:
22122 \end_layout
22123
22124 \begin_layout Itemize
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129 {%dialog%[[true]][[false]]}
22130 \end_layout
22131
22132 \end_inset
22133
22134 : process the 
22135 \begin_inset Quotes eld
22136 \end_inset
22137
22138 true
22139 \begin_inset Quotes erd
22140 \end_inset
22141
22142  part for dialogs and menus, the 
22143 \begin_inset Quotes eld
22144 \end_inset
22145
22146 false
22147 \begin_inset Quotes erd
22148 \end_inset
22149
22150  part for other contexts (workarea, export)
22151 \end_layout
22152
22153 \begin_layout Itemize
22154 \begin_inset Flex Code
22155 status collapsed
22156
22157 \begin_layout Plain Layout
22158 {%export%[[true]][[false]]}
22159 \end_layout
22160
22161 \end_inset
22162
22163 : process the 
22164 \begin_inset Quotes eld
22165 \end_inset
22166
22167 true
22168 \begin_inset Quotes erd
22169 \end_inset
22170
22171  part for export and menus, the 
22172 \begin_inset Quotes eld
22173 \end_inset
22174
22175 false
22176 \begin_inset Quotes erd
22177 \end_inset
22178
22179  part for other contexts (workarea, dialog)
22180 \end_layout
22181
22182 \begin_layout Itemize
22183 \begin_inset Flex Code
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187 {%next%[[true]]}
22188 \end_layout
22189
22190 \end_inset
22191
22192 : process the 
22193 \begin_inset Quotes eld
22194 \end_inset
22195
22196 true
22197 \begin_inset Quotes erd
22198 \end_inset
22199
22200  part if another item follows (e.
22201 \begin_inset space \thinspace{}
22202 \end_inset
22203
22204 g., in a citation with multiple keys)
22205 \end_layout
22206
22207 \begin_layout Itemize
22208 \begin_inset Flex Code
22209 status collapsed
22210
22211 \begin_layout Plain Layout
22212 {%second%[[true]][[false]]}
22213 \end_layout
22214
22215 \end_inset
22216
22217 : process the 
22218 \begin_inset Quotes eld
22219 \end_inset
22220
22221 true
22222 \begin_inset Quotes erd
22223 \end_inset
22224
22225  if this is the second of multiple items, else the 
22226 \begin_inset Quotes eld
22227 \end_inset
22228
22229 false
22230 \begin_inset Quotes erd
22231 \end_inset
22232
22233  part
22234 \end_layout
22235
22236 \begin_layout Itemize
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 {%ifstar%[[true]][[false]]}
22242 \end_layout
22243
22244 \end_inset
22245
22246 : process the 
22247 \begin_inset Quotes eld
22248 \end_inset
22249
22250 true
22251 \begin_inset Quotes erd
22252 \end_inset
22253
22254  part for starred citation commands (such as 
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259
22260 \backslash
22261 cite*
22262 \end_layout
22263
22264 \end_inset
22265
22266 ), the false part for unstarred
22267 \end_layout
22268
22269 \begin_layout Itemize
22270 \begin_inset Flex Code
22271 status collapsed
22272
22273 \begin_layout Plain Layout
22274 {%ifentrytype:<type>%[[true]][[false]]}
22275 \end_layout
22276
22277 \end_inset
22278
22279 : process the 
22280 \begin_inset Quotes eld
22281 \end_inset
22282
22283 true
22284 \begin_inset Quotes erd
22285 \end_inset
22286
22287  if the current entry type matches 
22288 \begin_inset Flex Code
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292 <type>
22293 \end_layout
22294
22295 \end_inset
22296
22297 , else the false part (e.g., in a citation definition: 
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22303 \end_layout
22304
22305 \end_inset
22306
22307 )
22308 \end_layout
22309
22310 \begin_layout Itemize
22311 \begin_inset Flex Code
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 {%ifmultiple:<authortype>%[[true]][[false]]}
22316 \end_layout
22317
22318 \end_inset
22319
22320 : process the 
22321 \begin_inset Quotes eld
22322 \end_inset
22323
22324 true
22325 \begin_inset Quotes erd
22326 \end_inset
22327
22328  if the current author type (author, editor etc.) has multiple authors, else
22329  the false part (e.g., in a bibliography definition: 
22330 \begin_inset Flex Code
22331 status collapsed
22332
22333 \begin_layout Plain Layout
22334 {%ifmultiple:editor%[[eds.]][[ed.]]}
22335 \end_layout
22336
22337 \end_inset
22338
22339 )
22340 \end_layout
22341
22342 \begin_layout Itemize
22343 \begin_inset Flex Code
22344 status collapsed
22345
22346 \begin_layout Plain Layout
22347 {%ifqualified%[[true]][[false]]}
22348 \end_layout
22349
22350 \end_inset
22351
22352 : process the 
22353 \begin_inset Quotes eld
22354 \end_inset
22355
22356 true
22357 \begin_inset Quotes erd
22358 \end_inset
22359
22360  part if the current citation is a qualified citation list (a specific 
22361 \family sans
22362 Biblatex
22363 \family default
22364  format for multi-reference citations), the false part if this is not the
22365  case.
22366 \end_layout
22367
22368 \begin_layout Standard
22369 We said that 
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 %author%
22375 \end_layout
22376
22377 \end_inset
22378
22379  prints the author key as it is recorded in the bibliography file.
22380  This might not be what you want, since it will result in a string such
22381  as 
22382 \begin_inset Quotes eld
22383 \end_inset
22384
22385 Miller, Peter and Smith, Mary and White, Jane
22386 \begin_inset Quotes erd
22387 \end_inset
22388
22389  (since 
22390 \begin_inset Quotes eld
22391 \end_inset
22392
22393 and
22394 \begin_inset Quotes erd
22395 \end_inset
22396
22397  is used by Bib\SpecialChar TeX
22398  to delimit authors).
22399  \SpecialChar LyX
22400  therefore provides some methods to get properly formatted name lists (which
22401  will also get translated).
22402  The following keys are provided:
22403 \end_layout
22404
22405 \begin_layout Enumerate
22406 For name lists with pre- and surname, suitable for the main authors/editors
22407  of a bibliography item.
22408  The 
22409 \begin_inset Flex Code
22410 status collapsed
22411
22412 \begin_layout Plain Layout
22413 <nametype>
22414 \end_layout
22415
22416 \end_inset
22417
22418  part denotes the kind of list that is requested (e.g.
22419  
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 <nametype:author>
22425 \end_layout
22426
22427 \end_inset
22428
22429 ):
22430 \end_layout
22431
22432 \begin_deeper
22433 \begin_layout Itemize
22434 \begin_inset Flex Code
22435 status collapsed
22436
22437 \begin_layout Plain Layout
22438 %abbrvnames:<nametype>%
22439 \end_layout
22440
22441 \end_inset
22442
22443 : Provides a name list which is abbreviated (with 
22444 \begin_inset Quotes eld
22445 \end_inset
22446
22447 et al.
22448 \begin_inset Quotes erd
22449 \end_inset
22450
22451 ) when 
22452 \begin_inset Flex Code
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 MaxCiteNames
22457 \end_layout
22458
22459 \end_inset
22460
22461  is reached.
22462 \end_layout
22463
22464 \begin_layout Itemize
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 %fullnames:<nametype>%
22470 \end_layout
22471
22472 \end_inset
22473
22474 : Provides a full name list (never abbreviated with 
22475 \begin_inset Quotes eld
22476 \end_inset
22477
22478 et al.
22479 \begin_inset Quotes erd
22480 \end_inset
22481
22482 ).
22483 \end_layout
22484
22485 \begin_layout Itemize
22486 \begin_inset Flex Code
22487 status collapsed
22488
22489 \begin_layout Plain Layout
22490 %forceabbrvnames:<nametype>%
22491 \end_layout
22492
22493 \end_inset
22494
22495 : Provides a name list which is always abbreviated (with 
22496 \begin_inset Quotes eld
22497 \end_inset
22498
22499 et al.
22500 \begin_inset Quotes erd
22501 \end_inset
22502
22503 ) irrespective of 
22504 \begin_inset Flex Code
22505 status collapsed
22506
22507 \begin_layout Plain Layout
22508 MaxCiteNames
22509 \end_layout
22510
22511 \end_inset
22512
22513 .
22514 \end_layout
22515
22516 \end_deeper
22517 \begin_layout Enumerate
22518 Alternative name lists with pre- and surname, if the order of pre- and surname
22519  inside the bibliography item differs (as in: 
22520 \begin_inset Quotes eld
22521 \end_inset
22522
22523 Miller, John: Some text, in: Mary Smith, ed.: A volume
22524 \begin_inset Quotes erd
22525 \end_inset
22526
22527 ):
22528 \end_layout
22529
22530 \begin_deeper
22531 \begin_layout Itemize
22532 \begin_inset Flex Code
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536 %abbrvbynames:<nametype>%
22537 \end_layout
22538
22539 \end_inset
22540
22541 : Provides a name list which is abbreviated (with 
22542 \begin_inset Quotes eld
22543 \end_inset
22544
22545 et al.
22546 \begin_inset Quotes erd
22547 \end_inset
22548
22549 ) when 
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 MaxCiteNames
22555 \end_layout
22556
22557 \end_inset
22558
22559  is reached.
22560 \end_layout
22561
22562 \begin_layout Itemize
22563 \begin_inset Flex Code
22564 status collapsed
22565
22566 \begin_layout Plain Layout
22567 %fullbynames:<nametype>%
22568 \end_layout
22569
22570 \end_inset
22571
22572 : Provides a full name list (never abbreviated with 
22573 \begin_inset Quotes eld
22574 \end_inset
22575
22576 et al.
22577 \begin_inset Quotes erd
22578 \end_inset
22579
22580 ).
22581 \end_layout
22582
22583 \begin_layout Itemize
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 %forceabbrvbynames:<nametype>%
22589 \end_layout
22590
22591 \end_inset
22592
22593 : Provides a name list which is always abbreviated (with 
22594 \begin_inset Quotes eld
22595 \end_inset
22596
22597 et al.
22598 \begin_inset Quotes erd
22599 \end_inset
22600
22601 ) irrespective of 
22602 \begin_inset Flex Code
22603 status collapsed
22604
22605 \begin_layout Plain Layout
22606 MaxCiteNames
22607 \end_layout
22608
22609 \end_inset
22610
22611 .
22612 \end_layout
22613
22614 \end_deeper
22615 \begin_layout Enumerate
22616 And finally name lists which consist of family names only, as used in author-yea
22617 r citation labels.
22618  These do not take a 
22619 \begin_inset Flex Code
22620 status collapsed
22621
22622 \begin_layout Plain Layout
22623 <nametype>
22624 \end_layout
22625
22626 \end_inset
22627
22628  part, but always return either an author list or, if this does not exist,
22629  an editor list (as common in author-year labels):
22630 \end_layout
22631
22632 \begin_deeper
22633 \begin_layout Itemize
22634 \begin_inset Flex Code
22635 status collapsed
22636
22637 \begin_layout Plain Layout
22638 %abbrvciteauthor%
22639 \end_layout
22640
22641 \end_inset
22642
22643 : Provides a name list which is abbreviated (with 
22644 \begin_inset Quotes eld
22645 \end_inset
22646
22647 et al.
22648 \begin_inset Quotes erd
22649 \end_inset
22650
22651 ) when 
22652 \begin_inset Flex Code
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656 MaxCiteNames
22657 \end_layout
22658
22659 \end_inset
22660
22661  is reached.
22662 \end_layout
22663
22664 \begin_layout Itemize
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 %fullciteauthor%
22670 \end_layout
22671
22672 \end_inset
22673
22674 : Provides a full name list (never abbreviated with 
22675 \begin_inset Quotes eld
22676 \end_inset
22677
22678 et al.
22679 \begin_inset Quotes erd
22680 \end_inset
22681
22682 ).
22683 \end_layout
22684
22685 \begin_layout Itemize
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 %forceabbrvciteauthor%
22691 \end_layout
22692
22693 \end_inset
22694
22695 : Provides a name list which is always abbreviated (with 
22696 \begin_inset Quotes eld
22697 \end_inset
22698
22699 et al.
22700 \begin_inset Quotes erd
22701 \end_inset
22702
22703 ) irrespective of 
22704 \begin_inset Flex Code
22705 status collapsed
22706
22707 \begin_layout Plain Layout
22708 MaxCiteNames
22709 \end_layout
22710
22711 \end_inset
22712
22713 .
22714 \end_layout
22715
22716 \end_deeper
22717 \begin_layout Standard
22718 The order of pre- and surname in the former two lists can be adjusted by
22719  these macros:
22720 \end_layout
22721
22722 \begin_layout Itemize
22723 \begin_inset Flex Code
22724 status collapsed
22725
22726 \begin_layout Plain Layout
22727 !firstnameform %surname%, %prename%
22728 \end_layout
22729
22730 \end_inset
22731
22732  (first author in lists of type 1)
22733 \end_layout
22734
22735 \begin_layout Itemize
22736 \begin_inset Flex Code
22737 status collapsed
22738
22739 \begin_layout Plain Layout
22740 !othernameform %surname%, %prename%
22741 \end_layout
22742
22743 \end_inset
22744
22745  (other authors in lists of type 1)
22746 \end_layout
22747
22748 \begin_layout Itemize
22749 \begin_inset Flex Code
22750 status collapsed
22751
22752 \begin_layout Plain Layout
22753 !firstbynameform %prename% %surname%
22754 \end_layout
22755
22756 \end_inset
22757
22758  (first author in lists of type 2)
22759 \end_layout
22760
22761 \begin_layout Itemize
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 !otherbynameform %prename% %surname%
22767 \end_layout
22768
22769 \end_inset
22770
22771  (other authors in lists of type 2)
22772 \end_layout
22773
22774 \begin_layout Standard
22775 This allows you to configure namings like 
22776 \begin_inset Quotes eld
22777 \end_inset
22778
22779 Miller, Peter and Mary Smith: \SpecialChar ldots
22780 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22781
22782 \begin_inset Quotes erd
22783 \end_inset
22784
22785 .
22786 \end_layout
22787
22788 \begin_layout Standard
22789 There is one other piece of syntax available in definitions, which looks
22790  like this: 
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 {!<i>!}
22796 \end_layout
22797
22798 \end_inset
22799
22800 .
22801  This defines a piece of formatting information that is to be used when
22802  creating 
22803 \begin_inset Quotes eld
22804 \end_inset
22805
22806 rich text
22807 \begin_inset Quotes erd
22808 \end_inset
22809
22810 .
22811  Obviously, we do not want to output HTML tags when writing plain text,
22812  so they should be wrapped in 
22813 \begin_inset Quotes eld
22814 \end_inset
22815
22816 {!
22817 \begin_inset Quotes erd
22818 \end_inset
22819
22820  and 
22821 \begin_inset Quotes eld
22822 \end_inset
22823
22824 !}
22825 \begin_inset Quotes erd
22826 \end_inset
22827
22828 .
22829 \end_layout
22830
22831 \begin_layout Standard
22832 Two special sorts of definitions are also possible in a 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 CiteFormat
22838 \end_layout
22839
22840 \end_inset
22841
22842  block.
22843  An example of the first would be:
22844 \end_layout
22845
22846 \begin_layout LyX-Code
22847 !quotetitle 
22848 \begin_inset Quotes eld
22849 \end_inset
22850
22851 %title%
22852 \begin_inset Quotes erd
22853 \end_inset
22854
22855
22856 \end_layout
22857
22858 \begin_layout Standard
22859 This is an abbreviation, or macro, and it can be used by treating it as
22860  if it were a key: 
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 %!quotetitle%
22866 \end_layout
22867
22868 \end_inset
22869
22870 .
22871  \SpecialChar LyX
22872  will treat 
22873 \begin_inset Flex Code
22874 status collapsed
22875
22876 \begin_layout Plain Layout
22877 %!quotetitle%
22878 \end_layout
22879
22880 \end_inset
22881
22882  exactly as it would treat its definition.
22883  So, let us issue the obvious 
22884 \emph on
22885 warning
22886 \emph default
22887 .
22888  Do not do this:
22889 \end_layout
22890
22891 \begin_layout LyX-Code
22892 !funfun %funfun%
22893 \end_layout
22894
22895 \begin_layout Standard
22896 or anything like it.
22897  \SpecialChar LyX
22898  shouldn't go into an infinite loop, but it may go into a long one before
22899  it gives up.
22900 \end_layout
22901
22902 \begin_layout Standard
22903 The second sort of special definition might look like this:
22904 \end_layout
22905
22906 \begin_layout LyX-Code
22907 _pptext pp.
22908 \end_layout
22909
22910 \begin_layout Standard
22911 This defines a translatable piece of text, which allows relevant parts of
22912  the bibliography or citation to be translated.
22913  It can be included in a definition by treating it as a key: 
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 %_pptext%
22919 \end_layout
22920
22921 \end_inset
22922
22923 .
22924  Several of these are predefined in 
22925 \begin_inset Flex Code
22926 status collapsed
22927
22928 \begin_layout Plain Layout
22929 stdciteformats.inc
22930 \end_layout
22931
22932 \end_inset
22933
22934  and the diverse 
22935 \begin_inset Flex Code
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939 *.citeengine
22940 \end_layout
22941
22942 \end_inset
22943
22944  files.
22945  Note that these are not macros, in the sense just defined.
22946  They will not be expanded.
22947 \end_layout
22948
22949 \begin_layout Standard
22950 So here then is an example that use all these features:
22951 \begin_inset VSpace defskip
22952 \end_inset
22953
22954
22955 \end_layout
22956
22957 \begin_layout Standard
22958 \noindent
22959
22960 \family sans
22961 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
22962 \end_layout
22963
22964 \begin_layout Standard
22965 \begin_inset VSpace defskip
22966 \end_inset
22967
22968 This defines a macro that prints the author, followed by a comma, if the
22969  
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 author
22975 \end_layout
22976
22977 \end_inset
22978
22979  key is defined, or else prints the name of the editor, followed by the
22980  
22981 \begin_inset Flex Code
22982 status collapsed
22983
22984 \begin_layout Plain Layout
22985 _edtext
22986 \end_layout
22987
22988 \end_inset
22989
22990  or its translation (it is by default 
22991 \begin_inset Quotes eld
22992 \end_inset
22993
22994 ed.
22995 \begin_inset Quotes erd
22996 \end_inset
22997
22998 ), if the 
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 editor
23004 \end_layout
23005
23006 \end_inset
23007
23008  key is defined.
23009  Note that this is in fact defined in 
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 stdciteformats.inc
23015 \end_layout
23016
23017 \end_inset
23018
23019 , so you can use it in your own definitions, or re-definitions, if you load
23020  that file first.
23021 \end_layout
23022
23023 \begin_layout Section
23024 \begin_inset CommandInset label
23025 LatexCommand label
23026 name "sec:Tags-for-XHTML"
23027
23028 \end_inset
23029
23030 Tags for XHTML output
23031 \end_layout
23032
23033 \begin_layout Standard
23034 As with \SpecialChar LaTeX
23035  or DocBook, the format of \SpecialChar LyX
23036 's XHTML output is also controlled by
23037  layout information.
23038  In general, \SpecialChar LyX
23039  provides sensible defaults and, as mentioned earlier, it will
23040  even construct default CSS style rules from the other layout tags.
23041  For example, \SpecialChar LyX
23042  will attempt to use the information provided in the 
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 Font
23048 \end_layout
23049
23050 \end_inset
23051
23052  declaration for the Chapter style to write CSS that will appropriately
23053  format chapter headings.
23054 \end_layout
23055
23056 \begin_layout Standard
23057 In many cases, then, you may not have to do anything at all to get acceptable
23058  XHTML output for your own environments, custom insets, and so forth.
23059  But in some cases you will, and so \SpecialChar LyX
23060  provides a number of layout tags that
23061  can be used to customize the XHTML and CSS that are generated.
23062 \end_layout
23063
23064 \begin_layout Standard
23065 Note that there are two tags, 
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 HTMLPreamble
23071 \end_layout
23072
23073 \end_inset
23074
23075  and 
23076 \begin_inset Flex Code
23077 status collapsed
23078
23079 \begin_layout Plain Layout
23080 AddToHTMLPreamble
23081 \end_layout
23082
23083 \end_inset
23084
23085  that may appear outside style and inset declarations.
23086  See 
23087 \begin_inset CommandInset ref
23088 LatexCommand ref
23089 reference "subsec:General-text-class"
23090
23091 \end_inset
23092
23093  for details on these.
23094 \end_layout
23095
23096 \begin_layout Subsection
23097 \begin_inset CommandInset label
23098 LatexCommand label
23099 name "subsec:Paragraph-Style-XHTML"
23100
23101 \end_inset
23102
23103 Paragraph styles
23104 \end_layout
23105
23106 \begin_layout Standard
23107 The sort of XHTML \SpecialChar LyX
23108  outputs for a paragraph depends upon whether we are dealing
23109  with a normal paragraph, a command, or an environment, where this is itself
23110  determined by the contents of the corresponding 
23111 \begin_inset Flex Code
23112 status collapsed
23113
23114 \begin_layout Plain Layout
23115 \SpecialChar LaTeX
23116 Type
23117 \end_layout
23118
23119 \end_inset
23120
23121  tag.
23122  
23123 \end_layout
23124
23125 \begin_layout Standard
23126 For a command or normal paragraph, the output XHTML has the following form:
23127 \end_layout
23128
23129 \begin_layout LyX-Code
23130
23131 \family sans
23132 <tag attr=
23133 \begin_inset Quotes erd
23134 \end_inset
23135
23136 value
23137 \begin_inset Quotes erd
23138 \end_inset
23139
23140 >
23141 \end_layout
23142
23143 \begin_layout LyX-Code
23144
23145 \family sans
23146 <labeltag attr=
23147 \begin_inset Quotes erd
23148 \end_inset
23149
23150 value
23151 \begin_inset Quotes erd
23152 \end_inset
23153
23154 >Label</labeltag>
23155 \end_layout
23156
23157 \begin_layout LyX-Code
23158
23159 \family sans
23160 Contents of the paragraph.
23161 \end_layout
23162
23163 \begin_layout LyX-Code
23164
23165 \family sans
23166 </tag>
23167 \end_layout
23168
23169 \begin_layout Standard
23170 The label tags are of course omitted if the paragraph does not have a label.
23171 \end_layout
23172
23173 \begin_layout Standard
23174 For an environment that is not some sort of list, the XHTML takes this form:
23175 \end_layout
23176
23177 \begin_layout LyX-Code
23178
23179 \family sans
23180 <tag attr=
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184 value
23185 \begin_inset Quotes erd
23186 \end_inset
23187
23188 >
23189 \end_layout
23190
23191 \begin_layout LyX-Code
23192
23193 \family sans
23194 <itemtag attr=
23195 \begin_inset Quotes erd
23196 \end_inset
23197
23198 value
23199 \begin_inset Quotes erd
23200 \end_inset
23201
23202 ><labeltag attr=
23203 \begin_inset Quotes erd
23204 \end_inset
23205
23206 value
23207 \begin_inset Quotes erd
23208 \end_inset
23209
23210 >Environment Label</labeltag>First paragraph.</itemtag>
23211 \end_layout
23212
23213 \begin_layout LyX-Code
23214
23215 \family sans
23216 <itemtag>Second paragraph.</itemtag>
23217 \end_layout
23218
23219 \begin_layout LyX-Code
23220
23221 \family sans
23222 </tag>
23223 \end_layout
23224
23225 \begin_layout Standard
23226 Note that the label is output only for the first paragraph, as it should
23227  be for a theorem, for example.
23228  
23229 \end_layout
23230
23231 \begin_layout Standard
23232 For a list, we have one of these forms:
23233 \end_layout
23234
23235 \begin_layout LyX-Code
23236
23237 \family sans
23238 <tag attr=
23239 \begin_inset Quotes erd
23240 \end_inset
23241
23242 value
23243 \begin_inset Quotes erd
23244 \end_inset
23245
23246 >
23247 \end_layout
23248
23249 \begin_layout LyX-Code
23250
23251 \family sans
23252 <itemtag attr=
23253 \begin_inset Quotes erd
23254 \end_inset
23255
23256 value
23257 \begin_inset Quotes erd
23258 \end_inset
23259
23260 ><labeltag attr=
23261 \begin_inset Quotes erd
23262 \end_inset
23263
23264 value
23265 \begin_inset Quotes erd
23266 \end_inset
23267
23268 >List Label</labeltag>First item.</itemtag>
23269 \end_layout
23270
23271 \begin_layout LyX-Code
23272
23273 \family sans
23274 <itemtag attr=
23275 \begin_inset Quotes erd
23276 \end_inset
23277
23278 value
23279 \begin_inset Quotes erd
23280 \end_inset
23281
23282 ><labeltag attr=
23283 \begin_inset Quotes erd
23284 \end_inset
23285
23286 value
23287 \begin_inset Quotes erd
23288 \end_inset
23289
23290 >List Label</labeltag>Second item.</itemtag>
23291 \end_layout
23292
23293 \begin_layout LyX-Code
23294
23295 \family sans
23296 </tag>
23297 \end_layout
23298
23299 \begin_layout LyX-Code
23300
23301 \end_layout
23302
23303 \begin_layout LyX-Code
23304
23305 \family sans
23306 <tag attr=
23307 \begin_inset Quotes erd
23308 \end_inset
23309
23310 value
23311 \begin_inset Quotes erd
23312 \end_inset
23313
23314 >
23315 \end_layout
23316
23317 \begin_layout LyX-Code
23318
23319 \family sans
23320 <labeltag attr=
23321 \begin_inset Quotes erd
23322 \end_inset
23323
23324 value
23325 \begin_inset Quotes erd
23326 \end_inset
23327
23328 >List Label</labeltag><itemtag attr=
23329 \begin_inset Quotes erd
23330 \end_inset
23331
23332 value
23333 \begin_inset Quotes erd
23334 \end_inset
23335
23336 >First item.</itemtag>
23337 \end_layout
23338
23339 \begin_layout LyX-Code
23340
23341 \family sans
23342 <labeltag attr=
23343 \begin_inset Quotes erd
23344 \end_inset
23345
23346 value
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350 >List Label</labeltag><itemtag attr=
23351 \begin_inset Quotes erd
23352 \end_inset
23353
23354 value
23355 \begin_inset Quotes erd
23356 \end_inset
23357
23358 >Second item.</itemtag>
23359 \end_layout
23360
23361 \begin_layout LyX-Code
23362
23363 \family sans
23364 </tag>
23365 \end_layout
23366
23367 \begin_layout Standard
23368 Note the different orders of 
23369 \begin_inset Flex Code
23370 status collapsed
23371
23372 \begin_layout Plain Layout
23373 labeltag
23374 \end_layout
23375
23376 \end_inset
23377
23378  and 
23379 \begin_inset Flex Code
23380 status collapsed
23381
23382 \begin_layout Plain Layout
23383 itemtag
23384 \end_layout
23385
23386 \end_inset
23387
23388 .
23389  Which order we get depends upon the setting of 
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 HTMLLabelFirst
23395 \end_layout
23396
23397 \end_inset
23398
23399 : If 
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404 HTMLLabelFirst
23405 \end_layout
23406
23407 \end_inset
23408
23409  is false (the default), you get the first of these, with the label within
23410  the item; if true, you get the second, with the label outside the item.
23411 \end_layout
23412
23413 \begin_layout Standard
23414 The specific tags and attributes output for each paragraph type can be controlle
23415 d by means of the layout tags we are about to describe.
23416  As mentioned earlier, however, \SpecialChar LyX
23417  uses sensible defaults for many of these,
23418  so you often may not need to do very much to get good XHTML output.
23419  Think of the available tags as there so you can tweak things to your liking.
23420 \end_layout
23421
23422 \begin_layout Description
23423 \begin_inset Flex Code
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427 HTMLAttr
23428 \end_layout
23429
23430 \end_inset
23431
23432  [
23433 \begin_inset Flex Code
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437 string
23438 \end_layout
23439
23440 \end_inset
23441
23442 ] Specifies attribute information to be output with the main tag.
23443  For example, 
23444 \begin_inset Quotes eld
23445 \end_inset
23446
23447
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 class=`mydiv'
23453 \end_layout
23454
23455 \end_inset
23456
23457
23458 \begin_inset Quotes erd
23459 \end_inset
23460
23461 .
23462  By default, \SpecialChar LyX
23463  will output 
23464 \begin_inset Quotes eld
23465 \end_inset
23466
23467
23468 \begin_inset Flex Code
23469 status collapsed
23470
23471 \begin_layout Plain Layout
23472 class=`layoutname'
23473 \end_layout
23474
23475 \end_inset
23476
23477
23478 \begin_inset Quotes erd
23479 \end_inset
23480
23481 , where 
23482 \begin_inset Flex Code
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486 layoutname
23487 \end_layout
23488
23489 \end_inset
23490
23491  is the \SpecialChar LyX
23492  name of the layout, made lowercase, for example: chapter.
23493  This should 
23494 \emph on
23495 not
23496 \emph default
23497  contain any style information.
23498  Use 
23499 \begin_inset Flex Code
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503 HTMLStyle
23504 \end_layout
23505
23506 \end_inset
23507
23508  for that purpose.
23509 \end_layout
23510
23511 \begin_layout Description
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 HTMLForceCSS
23517 \end_layout
23518
23519 \end_inset
23520
23521  [
23522 \begin_inset Flex Code
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526
23527 \emph on
23528 0
23529 \emph default
23530 ,1
23531 \end_layout
23532
23533 \end_inset
23534
23535 ] Whether to output the default CSS information \SpecialChar LyX
23536  generates for this layout,
23537  even if additional information is explicitly provided via 
23538 \begin_inset Flex Code
23539 status collapsed
23540
23541 \begin_layout Plain Layout
23542 HTMLStyle
23543 \end_layout
23544
23545 \end_inset
23546
23547 .
23548  Setting this to 
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553 1
23554 \end_layout
23555
23556 \end_inset
23557
23558  allows you to alter or augment the generated CSS, rather than to override
23559  it completely.
23560  Default is 
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 0
23566 \end_layout
23567
23568 \end_inset
23569
23570 .
23571 \end_layout
23572
23573 \begin_layout Description
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 HTMLItem
23579 \end_layout
23580
23581 \end_inset
23582
23583  [
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588 string
23589 \end_layout
23590
23591 \end_inset
23592
23593 ] The tag to be used for individual paragraphs of environments, replacing
23594  
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 itemtag
23600 \end_layout
23601
23602 \end_inset
23603
23604  in the examples above.
23605  Defaults to 
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 div
23611 \end_layout
23612
23613 \end_inset
23614
23615 .
23616 \end_layout
23617
23618 \begin_layout Description
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 HTMLItemAttr
23624 \end_layout
23625
23626 \end_inset
23627
23628  [
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 string
23634 \end_layout
23635
23636 \end_inset
23637
23638 ] Attributes for the item tag.
23639  Defaults to
23640 \begin_inset Newline newline
23641 \end_inset
23642
23643
23644 \begin_inset Quotes eld
23645 \end_inset
23646
23647
23648 \begin_inset Flex Code
23649 status collapsed
23650
23651 \begin_layout Plain Layout
23652 class=`layoutname_item'
23653 \end_layout
23654
23655 \end_inset
23656
23657
23658 \begin_inset Quotes erd
23659 \end_inset
23660
23661 .
23662  This should 
23663 \emph on
23664 not
23665 \emph default
23666  contain any style information.
23667  Use 
23668 \begin_inset Flex Code
23669 status collapsed
23670
23671 \begin_layout Plain Layout
23672 HTMLStyle
23673 \end_layout
23674
23675 \end_inset
23676
23677  for that purpose.
23678 \end_layout
23679
23680 \begin_layout Description
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685 HTMLLabel
23686 \end_layout
23687
23688 \end_inset
23689
23690  [
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 string
23696 \end_layout
23697
23698 \end_inset
23699
23700 ] The tag to be used for paragraph and item labels, replacing 
23701 \begin_inset Flex Code
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705 labeltag
23706 \end_layout
23707
23708 \end_inset
23709
23710  in the examples above.
23711  Defaults to 
23712 \begin_inset Flex Code
23713 status collapsed
23714
23715 \begin_layout Plain Layout
23716 span
23717 \end_layout
23718
23719 \end_inset
23720
23721 , unless 
23722 \begin_inset Flex Code
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726 LabelType
23727 \end_layout
23728
23729 \end_inset
23730
23731  is either 
23732 \begin_inset Flex Code
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736 Top_Environment
23737 \end_layout
23738
23739 \end_inset
23740
23741  or 
23742 \begin_inset Flex Code
23743 status collapsed
23744
23745 \begin_layout Plain Layout
23746 Centered_Top_Environment
23747 \end_layout
23748
23749 \end_inset
23750
23751 , in which case it defaults to 
23752 \begin_inset Flex Code
23753 status collapsed
23754
23755 \begin_layout Plain Layout
23756 div
23757 \end_layout
23758
23759 \end_inset
23760
23761 .
23762 \end_layout
23763
23764 \begin_layout Description
23765 \begin_inset Flex Code
23766 status collapsed
23767
23768 \begin_layout Plain Layout
23769 HTMLLabelAttr
23770 \end_layout
23771
23772 \end_inset
23773
23774  [
23775 \begin_inset Flex Code
23776 status collapsed
23777
23778 \begin_layout Plain Layout
23779 string
23780 \end_layout
23781
23782 \end_inset
23783
23784 ] Attributes for the label tag.
23785  Defaults to
23786 \begin_inset Newline newline
23787 \end_inset
23788
23789
23790 \begin_inset Quotes eld
23791 \end_inset
23792
23793
23794 \begin_inset Flex Code
23795 status collapsed
23796
23797 \begin_layout Plain Layout
23798 class=`layoutname_label'
23799 \end_layout
23800
23801 \end_inset
23802
23803
23804 \begin_inset Quotes erd
23805 \end_inset
23806
23807 .
23808  This should 
23809 \emph on
23810 not
23811 \emph default
23812  contain any style information.
23813  Use 
23814 \begin_inset Flex Code
23815 status collapsed
23816
23817 \begin_layout Plain Layout
23818 HTMLStyle
23819 \end_layout
23820
23821 \end_inset
23822
23823  for that purpose.
23824 \end_layout
23825
23826 \begin_layout Description
23827 \begin_inset Flex Code
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831 HTMLLabelFirst
23832 \end_layout
23833
23834 \end_inset
23835
23836  [
23837 \begin_inset Flex Code
23838 status collapsed
23839
23840 \begin_layout Plain Layout
23841
23842 \emph on
23843 0
23844 \emph default
23845 ,1
23846 \end_layout
23847
23848 \end_inset
23849
23850 ] Meaningful only for list-like environments, this tag controls whether
23851  the label tag is output before or inside the item tag.
23852  This is used, for example, in the description environment, where we want
23853  `
23854 \begin_inset Flex Code
23855 status collapsed
23856
23857 \begin_layout Plain Layout
23858 <dt>\SpecialChar ldots
23859 </dt><dd>\SpecialChar ldots
23860 </dd>
23861 \end_layout
23862
23863 \end_inset
23864
23865 .
23866  Default is 
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 0
23872 \end_layout
23873
23874 \end_inset
23875
23876 : The label tag is output inside the item tag.
23877 \end_layout
23878
23879 \begin_layout Description
23880 \begin_inset Flex Code
23881 status collapsed
23882
23883 \begin_layout Plain Layout
23884 HTMLPreamble
23885 \end_layout
23886
23887 \end_inset
23888
23889  Information to be output in the 
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 <head>
23895 \end_layout
23896
23897 \end_inset
23898
23899  section when this style is used.
23900  This might, for example, be used to include a 
23901 \begin_inset Flex Code
23902 status collapsed
23903
23904 \begin_layout Plain Layout
23905 <script>
23906 \end_layout
23907
23908 \end_inset
23909
23910  block defining an 
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915 onclick
23916 \end_layout
23917
23918 \end_inset
23919
23920  handler.
23921 \end_layout
23922
23923 \begin_layout Description
23924 \begin_inset Flex Code
23925 status collapsed
23926
23927 \begin_layout Plain Layout
23928 HTMLStyle
23929 \end_layout
23930
23931 \end_inset
23932
23933  CSS style information to be included when this style is used.
23934  Note that this will automatically be wrapped in a layout-generated 
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 <style>
23940 \end_layout
23941
23942 \end_inset
23943
23944  block, so only the CSS itself need be included.
23945  Must end with 
23946 \begin_inset Flex Code
23947 status collapsed
23948
23949 \begin_layout Plain Layout
23950 EndHTMLStyle
23951 \end_layout
23952
23953 \end_inset
23954
23955 .
23956 \end_layout
23957
23958 \begin_layout Description
23959 \begin_inset Flex Code
23960 status collapsed
23961
23962 \begin_layout Plain Layout
23963 HTMLTag
23964 \end_layout
23965
23966 \end_inset
23967
23968  [
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973 string
23974 \end_layout
23975
23976 \end_inset
23977
23978 ] The tag to be used for the main label, replacing 
23979 \begin_inset Flex Code
23980 status collapsed
23981
23982 \begin_layout Plain Layout
23983 tag
23984 \end_layout
23985
23986 \end_inset
23987
23988  in the examples above.
23989  Defaults to 
23990 \begin_inset Flex Code
23991 status collapsed
23992
23993 \begin_layout Plain Layout
23994 div
23995 \end_layout
23996
23997 \end_inset
23998
23999 .
24000 \end_layout
24001
24002 \begin_layout Description
24003 \begin_inset Flex Code
24004 status collapsed
24005
24006 \begin_layout Plain Layout
24007 HTMLTitle
24008 \end_layout
24009
24010 \end_inset
24011
24012  [
24013 \begin_inset Flex Code
24014 status collapsed
24015
24016 \begin_layout Plain Layout
24017
24018 \emph on
24019 0
24020 \emph default
24021 ,1
24022 \end_layout
24023
24024 \end_inset
24025
24026 ] Marks this style as the one to be used to generate the 
24027 \begin_inset Flex Code
24028 status collapsed
24029
24030 \begin_layout Plain Layout
24031 <title>
24032 \end_layout
24033
24034 \end_inset
24035
24036  tag for the XHTML file.
24037  By default, it is false.
24038  The 
24039 \begin_inset Flex Code
24040 status collapsed
24041
24042 \begin_layout Plain Layout
24043 stdtitle.inc
24044 \end_layout
24045
24046 \end_inset
24047
24048  file sets it to true for the 
24049 \begin_inset Flex Code
24050 status collapsed
24051
24052 \begin_layout Plain Layout
24053 title
24054 \end_layout
24055
24056 \end_inset
24057
24058  environment.
24059  
24060 \end_layout
24061
24062 \begin_layout Subsection
24063 InsetLayout XHTML
24064 \end_layout
24065
24066 \begin_layout Standard
24067 The XHTML output of insets can also be controlled by information in layout
24068  files.
24069 \begin_inset Foot
24070 status collapsed
24071
24072 \begin_layout Plain Layout
24073 At present, this is true only for 
24074 \begin_inset Quotes eld
24075 \end_inset
24076
24077 text
24078 \begin_inset Quotes erd
24079 \end_inset
24080
24081  insets (insets you can type into) and is not true for 
24082 \begin_inset Quotes eld
24083 \end_inset
24084
24085 command
24086 \begin_inset Quotes erd
24087 \end_inset
24088
24089  insets (insets that are associated with dialog boxes).
24090 \end_layout
24091
24092 \end_inset
24093
24094  Here, too, \SpecialChar LyX
24095  tries to provide sensible defaults, and it constructs default
24096  CSS style rules.
24097  But everything can be customized.
24098 \end_layout
24099
24100 \begin_layout Standard
24101 The XHTML \SpecialChar LyX
24102  outputs for an inset has the following form:
24103 \end_layout
24104
24105 \begin_layout LyX-Code
24106 <tag attr=
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 value
24111 \begin_inset Quotes erd
24112 \end_inset
24113
24114 >
24115 \end_layout
24116
24117 \begin_layout LyX-Code
24118 <labeltag>Label</labeltag>
24119 \end_layout
24120
24121 \begin_layout LyX-Code
24122 <innertag attr=
24123 \begin_inset Quotes erd
24124 \end_inset
24125
24126 value
24127 \begin_inset Quotes erd
24128 \end_inset
24129
24130 >Contents of the inset.</innertag>
24131 \end_layout
24132
24133 \begin_layout LyX-Code
24134 </tag>
24135 \end_layout
24136
24137 \begin_layout Standard
24138 If the inset permits multiple paragraphs—that is, if 
24139 \begin_inset Flex Code
24140 status collapsed
24141
24142 \begin_layout Plain Layout
24143 MultiPar
24144 \end_layout
24145
24146 \end_inset
24147
24148  is true—then the contents of the inset will itself be output as paragraphs
24149  formatted according to the styles used for those paragraphs (standard,
24150  quote, and the like).
24151  The label tag is of course omitted if the paragraph does not have a label
24152  and, at present, is always 
24153 \begin_inset Flex Code
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157 span
24158 \end_layout
24159
24160 \end_inset
24161
24162 .
24163  The inner tag is optional and, by default, does not appear.
24164 \end_layout
24165
24166 \begin_layout Standard
24167 The specific tags and attributes output for each inset can be controlled
24168  by means of the following layout tags.
24169 \end_layout
24170
24171 \begin_layout Description
24172 \begin_inset Flex Code
24173 status collapsed
24174
24175 \begin_layout Plain Layout
24176 HTMLAttr
24177 \end_layout
24178
24179 \end_inset
24180
24181  [
24182 \begin_inset Flex Code
24183 status collapsed
24184
24185 \begin_layout Plain Layout
24186 string
24187 \end_layout
24188
24189 \end_inset
24190
24191 ] Specifies attribute information to be output with the main tag.
24192  For example, 
24193 \begin_inset Quotes eld
24194 \end_inset
24195
24196
24197 \begin_inset Flex Code
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201 class=`myinset' onclick=`\SpecialChar ldots
24202 '
24203 \end_layout
24204
24205 \end_inset
24206
24207
24208 \begin_inset Quotes erd
24209 \end_inset
24210
24211 .
24212  By default, \SpecialChar LyX
24213  will output 
24214 \begin_inset Quotes eld
24215 \end_inset
24216
24217
24218 \begin_inset Flex Code
24219 status collapsed
24220
24221 \begin_layout Plain Layout
24222 class=`insetname'
24223 \end_layout
24224
24225 \end_inset
24226
24227
24228 \begin_inset Quotes erd
24229 \end_inset
24230
24231 , where 
24232 \begin_inset Flex Code
24233 status collapsed
24234
24235 \begin_layout Plain Layout
24236 insetname
24237 \end_layout
24238
24239 \end_inset
24240
24241  is the \SpecialChar LyX
24242  name of the inset, made lowercase and with non-alphanumeric characters
24243  converted to underscores, for example: footnote.
24244 \end_layout
24245
24246 \begin_layout Description
24247 \begin_inset Flex Code
24248 status collapsed
24249
24250 \begin_layout Plain Layout
24251 HTMLForceCSS
24252 \end_layout
24253
24254 \end_inset
24255
24256  [
24257 \begin_inset Flex Code
24258 status collapsed
24259
24260 \begin_layout Plain Layout
24261
24262 \emph on
24263 0
24264 \emph default
24265 ,1
24266 \end_layout
24267
24268 \end_inset
24269
24270 ] Whether to output the default CSS information \SpecialChar LyX
24271  generates for this layout,
24272  even if additional information is explicitly provided via 
24273 \begin_inset Flex Code
24274 status collapsed
24275
24276 \begin_layout Plain Layout
24277 HTMLStyle
24278 \end_layout
24279
24280 \end_inset
24281
24282 .
24283  Setting this to 
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288 1
24289 \end_layout
24290
24291 \end_inset
24292
24293  allows you to alter or augment the generated CSS, rather than to override
24294  it completely.
24295  Default is 0.
24296 \end_layout
24297
24298 \begin_layout Description
24299 \begin_inset Flex Code
24300 status collapsed
24301
24302 \begin_layout Plain Layout
24303 HTMLInnerAttr
24304 \end_layout
24305
24306 \end_inset
24307
24308  [
24309 \begin_inset Flex Code
24310 status collapsed
24311
24312 \begin_layout Plain Layout
24313 string
24314 \end_layout
24315
24316 \end_inset
24317
24318 ] Attributes for the inner tag.
24319  Defaults to
24320 \begin_inset Newline newline
24321 \end_inset
24322
24323
24324 \begin_inset Quotes eld
24325 \end_inset
24326
24327
24328 \begin_inset Flex Code
24329 status collapsed
24330
24331 \begin_layout Plain Layout
24332 class=`insetname_inner'
24333 \end_layout
24334
24335 \end_inset
24336
24337
24338 \begin_inset Quotes erd
24339 \end_inset
24340
24341 .
24342 \end_layout
24343
24344 \begin_layout Description
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 HTMLInnerTag
24350 \end_layout
24351
24352 \end_inset
24353
24354  [
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359 string
24360 \end_layout
24361
24362 \end_inset
24363
24364 ] The inner tag, replacing 
24365 \begin_inset Flex Code
24366 status collapsed
24367
24368 \begin_layout Plain Layout
24369 innertag
24370 \end_layout
24371
24372 \end_inset
24373
24374  in the examples above.
24375  By default, there is none.
24376 \end_layout
24377
24378 \begin_layout Description
24379 \begin_inset Flex Code
24380 status collapsed
24381
24382 \begin_layout Plain Layout
24383 HTMLIsBlock
24384 \end_layout
24385
24386 \end_inset
24387
24388  [
24389 \begin_inset Flex Code
24390 status collapsed
24391
24392 \begin_layout Plain Layout
24393 0,
24394 \emph on
24395 1
24396 \end_layout
24397
24398 \end_inset
24399
24400 ] Whether this inset represents a standalone block of text (such as a footnote)
24401  or instead represents material that is included in the surrounding text
24402  (such as a branch).
24403  Defaults to 1.
24404 \end_layout
24405
24406 \begin_layout Description
24407 \begin_inset Flex Code
24408 status collapsed
24409
24410 \begin_layout Plain Layout
24411 HTMLLabel
24412 \end_layout
24413
24414 \end_inset
24415
24416  [
24417 \begin_inset Flex Code
24418 status collapsed
24419
24420 \begin_layout Plain Layout
24421 string
24422 \end_layout
24423
24424 \end_inset
24425
24426 ] A label for this inset, possibly including a reference to a counter.
24427  For example, for footnote, it might be: 
24428 \begin_inset Flex Code
24429 status collapsed
24430
24431 \begin_layout Plain Layout
24432
24433 \backslash
24434 arabic{footnote}
24435 \end_layout
24436
24437 \end_inset
24438
24439 .
24440  This is optional, and there is no default.
24441 \end_layout
24442
24443 \begin_layout Description
24444 \begin_inset Flex Code
24445 status collapsed
24446
24447 \begin_layout Plain Layout
24448 HTMLPreamble
24449 \end_layout
24450
24451 \end_inset
24452
24453  Information to be output in the 
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458 <head>
24459 \end_layout
24460
24461 \end_inset
24462
24463  section when this style is used.
24464  This might, for example, be used to include a 
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469 <script>
24470 \end_layout
24471
24472 \end_inset
24473
24474  block defining an 
24475 \begin_inset Flex Code
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 onclick
24480 \end_layout
24481
24482 \end_inset
24483
24484  handler.
24485 \end_layout
24486
24487 \begin_layout Description
24488 \begin_inset Flex Code
24489 status collapsed
24490
24491 \begin_layout Plain Layout
24492 HTMLStyle
24493 \end_layout
24494
24495 \end_inset
24496
24497  CSS style information to be included when this style is used.
24498  Note that this will automatically be wrapped in a layout-generated 
24499 \begin_inset Flex Code
24500 status collapsed
24501
24502 \begin_layout Plain Layout
24503 <style>
24504 \end_layout
24505
24506 \end_inset
24507
24508  block, so only the CSS itself need be included.
24509 \end_layout
24510
24511 \begin_layout Description
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516 HTMLTag
24517 \end_layout
24518
24519 \end_inset
24520
24521  [
24522 \begin_inset Flex Code
24523 status collapsed
24524
24525 \begin_layout Plain Layout
24526 string
24527 \end_layout
24528
24529 \end_inset
24530
24531 ] The tag to be used for the main label, replacing 
24532 \begin_inset Flex Code
24533 status collapsed
24534
24535 \begin_layout Plain Layout
24536 tag
24537 \end_layout
24538
24539 \end_inset
24540
24541  in the examples above.
24542  The default depends upon the setting of 
24543 \begin_inset Flex Code
24544 status collapsed
24545
24546 \begin_layout Plain Layout
24547 MultiPar
24548 \end_layout
24549
24550 \end_inset
24551
24552 : If 
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 MultiPar
24558 \end_layout
24559
24560 \end_inset
24561
24562  is true, the default is 
24563 \begin_inset Flex Code
24564 status collapsed
24565
24566 \begin_layout Plain Layout
24567 div
24568 \end_layout
24569
24570 \end_inset
24571
24572 ; if it is false, the default is 
24573 \begin_inset Flex Code
24574 status collapsed
24575
24576 \begin_layout Plain Layout
24577 span
24578 \end_layout
24579
24580 \end_inset
24581
24582 .
24583 \end_layout
24584
24585 \begin_layout Subsection
24586 Float XHTML
24587 \end_layout
24588
24589 \begin_layout Standard
24590 The XHTML output for floats too can be controlled by layout information.
24591  The output has the following form:
24592 \end_layout
24593
24594 \begin_layout LyX-Code
24595 <tag attr=
24596 \begin_inset Quotes erd
24597 \end_inset
24598
24599 value
24600 \begin_inset Quotes erd
24601 \end_inset
24602
24603 >
24604 \end_layout
24605
24606 \begin_layout LyX-Code
24607 Contents of the float.
24608 \end_layout
24609
24610 \begin_layout LyX-Code
24611 </tag>
24612 \end_layout
24613
24614 \begin_layout Standard
24615 The caption, if there is one, is a separate inset and will be output as
24616  such.
24617  Its appearance can be controlled via the InsetLayout for caption insets.
24618  
24619 \end_layout
24620
24621 \begin_layout Description
24622 \begin_inset Flex Code
24623 status collapsed
24624
24625 \begin_layout Plain Layout
24626 HTMLAttr
24627 \end_layout
24628
24629 \end_inset
24630
24631  [
24632 \begin_inset Flex Code
24633 status collapsed
24634
24635 \begin_layout Plain Layout
24636 string
24637 \end_layout
24638
24639 \end_inset
24640
24641 ] Specifies attribute information to be output with the main tag.
24642  For example, 
24643 \begin_inset Quotes eld
24644 \end_inset
24645
24646
24647 \begin_inset Flex Code
24648 status collapsed
24649
24650 \begin_layout Plain Layout
24651 class=`myfloat' onclick=`\SpecialChar ldots
24652 '
24653 \end_layout
24654
24655 \end_inset
24656
24657
24658 \begin_inset Quotes erd
24659 \end_inset
24660
24661 .
24662  By default, \SpecialChar LyX
24663  will output 
24664 \begin_inset Quotes eld
24665 \end_inset
24666
24667
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672 class=`float float-floattype'
24673 \end_layout
24674
24675 \end_inset
24676
24677
24678 \begin_inset Quotes erd
24679 \end_inset
24680
24681 , where 
24682 \begin_inset Flex Code
24683 status collapsed
24684
24685 \begin_layout Plain Layout
24686 floattype
24687 \end_layout
24688
24689 \end_inset
24690
24691  is \SpecialChar LyX
24692 's name for this type of float, as determined by the float declaration
24693  (see 
24694 \begin_inset CommandInset ref
24695 LatexCommand ref
24696 reference "subsec:Floats"
24697
24698 \end_inset
24699
24700 ), though made lowercase and with non-alphanumeric characters converted
24701  to underscores, for example: float-table.
24702 \end_layout
24703
24704 \begin_layout Description
24705 \begin_inset Flex Code
24706 status collapsed
24707
24708 \begin_layout Plain Layout
24709 HTMLStyle
24710 \end_layout
24711
24712 \end_inset
24713
24714  CSS style information to be included when this float is used.
24715  Note that this will automatically be wrapped in a layout-generated 
24716 \begin_inset Flex Code
24717 status collapsed
24718
24719 \begin_layout Plain Layout
24720 <style>
24721 \end_layout
24722
24723 \end_inset
24724
24725  block, so only the CSS itself need be included.
24726 \end_layout
24727
24728 \begin_layout Description
24729 \begin_inset Flex Code
24730 status collapsed
24731
24732 \begin_layout Plain Layout
24733 HTMLTag
24734 \end_layout
24735
24736 \end_inset
24737
24738  [
24739 \begin_inset Flex Code
24740 status collapsed
24741
24742 \begin_layout Plain Layout
24743 string
24744 \end_layout
24745
24746 \end_inset
24747
24748 ] The tag to be used for this float, replacing 
24749 \begin_inset Quotes eld
24750 \end_inset
24751
24752
24753 \begin_inset Flex Code
24754 status collapsed
24755
24756 \begin_layout Plain Layout
24757 tag
24758 \end_layout
24759
24760 \end_inset
24761
24762
24763 \begin_inset Quotes erd
24764 \end_inset
24765
24766  in the example above.
24767  The default is 
24768 \begin_inset Flex Code
24769 status collapsed
24770
24771 \begin_layout Plain Layout
24772 div
24773 \end_layout
24774
24775 \end_inset
24776
24777  and will rarely need changing.
24778 \end_layout
24779
24780 \begin_layout Subsection
24781 Bibliography formatting
24782 \end_layout
24783
24784 \begin_layout Standard
24785 The bibliography can be formatted using 
24786 \begin_inset Flex Code
24787 status collapsed
24788
24789 \begin_layout Plain Layout
24790 CiteFormat
24791 \end_layout
24792
24793 \end_inset
24794
24795  blocks.
24796  See 
24797 \begin_inset CommandInset ref
24798 LatexCommand ref
24799 reference "subsec:Citation-format-description"
24800
24801 \end_inset
24802
24803  for the details.
24804 \end_layout
24805
24806 \begin_layout Subsection
24807 \SpecialChar LyX
24808 -generated CSS
24809 \end_layout
24810
24811 \begin_layout Standard
24812 We have several times mentioned that \SpecialChar LyX
24813  will generate default CSS style rules
24814  for both insets and paragraph styles, based upon the other layout information
24815  that is provided.
24816  In this section, we shall say a word about which layout information \SpecialChar LyX
24817  uses
24818  and how.
24819 \end_layout
24820
24821 \begin_layout Standard
24822 At present, \SpecialChar LyX
24823  auto-generates CSS only for font information, making use of
24824  the 
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 Family
24830 \end_layout
24831
24832 \end_inset
24833
24834
24835 \begin_inset Flex Code
24836 status collapsed
24837
24838 \begin_layout Plain Layout
24839 Series
24840 \end_layout
24841
24842 \end_inset
24843
24844
24845 \begin_inset Flex Code
24846 status collapsed
24847
24848 \begin_layout Plain Layout
24849 Shape
24850 \end_layout
24851
24852 \end_inset
24853
24854 , and 
24855 \begin_inset Flex Code
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859 Size
24860 \end_layout
24861
24862 \end_inset
24863
24864  specified in the 
24865 \begin_inset Flex Code
24866 status collapsed
24867
24868 \begin_layout Plain Layout
24869 Font
24870 \end_layout
24871
24872 \end_inset
24873
24874  declaration (see 
24875 \begin_inset CommandInset ref
24876 LatexCommand ref
24877 reference "subsec:Font-description"
24878
24879 \end_inset
24880
24881 ).
24882  The translation is mostly straightforward and obvious.
24883  For example, 
24884 \begin_inset Quotes eld
24885 \end_inset
24886
24887
24888 \begin_inset Flex Code
24889 status collapsed
24890
24891 \begin_layout Plain Layout
24892 Family Sans
24893 \end_layout
24894
24895 \end_inset
24896
24897
24898 \begin_inset Quotes erd
24899 \end_inset
24900
24901  becomes 
24902 \begin_inset Quotes eld
24903 \end_inset
24904
24905
24906 \begin_inset Flex Code
24907 status collapsed
24908
24909 \begin_layout Plain Layout
24910 font-family: sans-serif;
24911 \end_layout
24912
24913 \end_inset
24914
24915
24916 \begin_inset Quotes erd
24917 \end_inset
24918
24919 .
24920  The correspondence of \SpecialChar LyX
24921  sizes and CSS sizes is a little less obvious but
24922  nonetheless intuitive.
24923  See the 
24924 \begin_inset Flex Code
24925 status collapsed
24926
24927 \begin_layout Plain Layout
24928 getSizeCSS()
24929 \end_layout
24930
24931 \end_inset
24932
24933  function in 
24934 \begin_inset Flex URL
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938
24939 src/FontInfo.cpp
24940 \end_layout
24941
24942 \end_inset
24943
24944  for the details.
24945 \end_layout
24946
24947 \begin_layout Chapter
24948 Including External Material
24949 \begin_inset CommandInset label
24950 LatexCommand label
24951 name "chap:Including-External-Material"
24952
24953 \end_inset
24954
24955
24956 \end_layout
24957
24958 \begin_layout Standard
24959 \begin_inset Box Shadowbox
24960 position "t"
24961 hor_pos "c"
24962 has_inner_box 1
24963 inner_pos "t"
24964 use_parbox 0
24965 use_makebox 0
24966 width "100col%"
24967 special "none"
24968 height "1in"
24969 height_special "totalheight"
24970 thickness "0.4pt"
24971 separation "3pt"
24972 shadowsize "4pt"
24973 framecolor "black"
24974 backgroundcolor "none"
24975 status open
24976
24977 \begin_layout Plain Layout
24978 WARNING: This portion of the documentation has not been updated for some
24979  time.
24980  We certainly hope that it is still accurate, but there are no guarantees.
24981 \end_layout
24982
24983 \end_inset
24984
24985
24986 \end_layout
24987
24988 \begin_layout Standard
24989 The use of material from sources external to \SpecialChar LyX
24990  is covered in detail in the
24991  
24992 \emph on
24993 Embedded Objects
24994 \emph default
24995  manual.
24996  This part of the manual covers what needs to happen behind the scenes for
24997  new sorts of material to be included.
24998 \end_layout
24999
25000 \begin_layout Section
25001 How does it work?
25002 \end_layout
25003
25004 \begin_layout Standard
25005 The external material feature is based on the concept of a 
25006 \emph on
25007 template
25008 \emph default
25009 .
25010  A template is a specification of how \SpecialChar LyX
25011  should interface with a certain kind
25012  of material.
25013  As bundled, \SpecialChar LyX
25014  comes with predefined templates for Xfig figures, various
25015  raster format images, chess diagrams, and LilyPond music notation.
25016  You can check the actual list by using the menu 
25017 \begin_inset Flex Noun
25018 status collapsed
25019
25020 \begin_layout Plain Layout
25021 Insert\SpecialChar menuseparator
25022 File\SpecialChar menuseparator
25023 External Material
25024 \end_layout
25025
25026 \end_inset
25027
25028 .
25029  Furthermore, it is possible to roll your own template to support a specific
25030  kind of material.
25031  Later we'll describe in more detail what is involved, and hopefully you
25032  will submit all the templates you create so we can include them in a later
25033  \SpecialChar LyX
25034  version.
25035 \end_layout
25036
25037 \begin_layout Standard
25038 Another basic idea of the external material feature is to distinguish between
25039  the original file that serves as a base for final material and the produced
25040  file that is included in your exported or printed document.
25041  For example, consider the case of a figure produced with 
25042 \begin_inset Flex Code
25043 status collapsed
25044
25045 \begin_layout Plain Layout
25046 Xfig
25047 \end_layout
25048
25049 \end_inset
25050
25051 .
25052  The Xfig application itself works on an original file with the 
25053 \begin_inset Flex Code
25054 status collapsed
25055
25056 \begin_layout Plain Layout
25057 .fig
25058 \end_layout
25059
25060 \end_inset
25061
25062  extension.
25063  Within Xfig, you create and change your figure, and when you are done,
25064  you save the 
25065 \begin_inset Flex Code
25066 status collapsed
25067
25068 \begin_layout Plain Layout
25069 fig
25070 \end_layout
25071
25072 \end_inset
25073
25074 -file.
25075  When you want to include the figure in your document, you invoke 
25076 \begin_inset Flex Code
25077 status collapsed
25078
25079 \begin_layout Plain Layout
25080 transfig
25081 \end_layout
25082
25083 \end_inset
25084
25085  in order to create a PostScript file that can readily be included in your
25086  \SpecialChar LaTeX
25087  file.
25088  In this case, the 
25089 \begin_inset Flex Code
25090 status collapsed
25091
25092 \begin_layout Plain Layout
25093 .fig
25094 \end_layout
25095
25096 \end_inset
25097
25098  file is the original file, and the PostScript file is the produced file.
25099 \end_layout
25100
25101 \begin_layout Standard
25102 This distinction is important in order to allow updating of the material
25103  while you are in the process of writing the document.
25104  Furthermore, it provides us with the flexibility that is needed to support
25105  multiple export formats.
25106  For instance, in the case of a plain text file, it is not exactly an award-winn
25107 ing idea to include the figure as raw PostScript.
25108  Instead, you would either prefer to just include a reference to the figure
25109  or try to invoke some graphics to ASCII converter to make the final result
25110  look similar to the real graphics.
25111  The external material management allows you to do this, because it is parametri
25112 zed on the different export formats that \SpecialChar LyX
25113  supports.
25114 \end_layout
25115
25116 \begin_layout Standard
25117 Besides supporting the production of different products according to the
25118  exported format, it supports tight integration with editing and viewing
25119  applications.
25120  In the case of an Xfig figure, you are able to invoke Xfig on the original
25121  file with a single click from within the external material dialog in \SpecialChar LyX
25122 ,
25123  and also preview the produced PostScript file with Ghostview with another
25124  click.
25125  No more fiddling around with the command line and/or file browsers to locate
25126  and manipulate the original or produced files.
25127  In this way, you are finally able to take full advantage of the many different
25128  applications that are relevant to use when you write your documents, and
25129  ultimately be more productive.
25130 \end_layout
25131
25132 \begin_layout Section
25133 The external template configuration files
25134 \end_layout
25135
25136 \begin_layout Standard
25137 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25138 .
25139  However, be aware that doing this in an careless manner most probably 
25140 \emph on
25141 will
25142 \emph default
25143  introduce an easily exploitable security hole.
25144  So before you do this, please read the discussion about security in 
25145 \begin_inset CommandInset ref
25146 LatexCommand ref
25147 reference "sec:Security-discussion"
25148
25149 \end_inset
25150
25151 .
25152 \end_layout
25153
25154 \begin_layout Standard
25155 Having said that, we encourage you to submit any interesting templates that
25156  you create.
25157  
25158 \end_layout
25159
25160 \begin_layout Standard
25161 The external templates are defined in the 
25162 \begin_inset Flex Code
25163 status collapsed
25164
25165 \begin_layout Plain Layout
25166 *.xtemplate
25167 \end_layout
25168
25169 \end_inset
25170
25171  files that are stored in the 
25172 \begin_inset Flex Code
25173 status collapsed
25174
25175 \begin_layout Plain Layout
25176 LyXDir/lib/xtemplates/
25177 \end_layout
25178
25179 \end_inset
25180
25181  directory.
25182  Each template is defined in a file of its own.
25183  You can place your own templates in 
25184 \begin_inset Flex Code
25185 status collapsed
25186
25187 \begin_layout Plain Layout
25188 UserDir/xtemplates/
25189 \end_layout
25190
25191 \end_inset
25192
25193  or copy existing templates to that directory in order to modify them.
25194 \end_layout
25195
25196 \begin_layout Standard
25197 A typical template looks like this:
25198 \end_layout
25199
25200 \begin_layout LyX-Code
25201 Template XFig
25202 \end_layout
25203
25204 \begin_layout LyX-Code
25205 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25206 \end_layout
25207
25208 \begin_layout LyX-Code
25209 HelpText
25210 \end_layout
25211
25212 \begin_layout LyX-Code
25213 An XFig figure.
25214 \end_layout
25215
25216 \begin_layout LyX-Code
25217 HelpTextEnd
25218 \end_layout
25219
25220 \begin_layout LyX-Code
25221 InputFormat fig
25222 \end_layout
25223
25224 \begin_layout LyX-Code
25225 FileFilter "*.fig"
25226 \end_layout
25227
25228 \begin_layout LyX-Code
25229 AutomaticProduction true
25230 \end_layout
25231
25232 \begin_layout LyX-Code
25233 Transform Rotate
25234 \end_layout
25235
25236 \begin_layout LyX-Code
25237 Transform Resize
25238 \end_layout
25239
25240 \begin_layout LyX-Code
25241 Format LaTeX
25242 \end_layout
25243
25244 \begin_layout LyX-Code
25245 TransformCommand Rotate RotationLatexCommand
25246 \end_layout
25247
25248 \begin_layout LyX-Code
25249 TransformCommand Resize ResizeLatexCommand
25250 \end_layout
25251
25252 \begin_layout LyX-Code
25253 Product "$$RotateFront$$ResizeFront
25254 \end_layout
25255
25256 \begin_layout LyX-Code
25257          
25258 \backslash
25259
25260 \backslash
25261 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25262 \end_layout
25263
25264 \begin_layout LyX-Code
25265          $$ResizeBack$$RotateBack"
25266 \end_layout
25267
25268 \begin_layout LyX-Code
25269 UpdateFormat pstex
25270 \end_layout
25271
25272 \begin_layout LyX-Code
25273 UpdateResult "$$AbsPath$$Basename.pstex_t"
25274 \end_layout
25275
25276 \begin_layout LyX-Code
25277 Requirement "graphicx"
25278 \end_layout
25279
25280 \begin_layout LyX-Code
25281 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25282 \end_layout
25283
25284 \begin_layout LyX-Code
25285 ReferencedFile latex "$$AbsPath$$Basename.eps"
25286 \end_layout
25287
25288 \begin_layout LyX-Code
25289 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25290 \end_layout
25291
25292 \begin_layout LyX-Code
25293 FormatEnd
25294 \end_layout
25295
25296 \begin_layout LyX-Code
25297 Format PDFLaTeX
25298 \end_layout
25299
25300 \begin_layout LyX-Code
25301 TransformCommand Rotate RotationLatexCommand
25302 \end_layout
25303
25304 \begin_layout LyX-Code
25305 TransformCommand Resize ResizeLatexCommand
25306 \end_layout
25307
25308 \begin_layout LyX-Code
25309 Product "$$RotateFront$$ResizeFront
25310 \end_layout
25311
25312 \begin_layout LyX-Code
25313          
25314 \backslash
25315
25316 \backslash
25317 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25318 \end_layout
25319
25320 \begin_layout LyX-Code
25321          $$ResizeBack$$RotateBack"
25322 \end_layout
25323
25324 \begin_layout LyX-Code
25325 UpdateFormat pdftex
25326 \end_layout
25327
25328 \begin_layout LyX-Code
25329 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25330 \end_layout
25331
25332 \begin_layout LyX-Code
25333 Requirement "graphicx"
25334 \end_layout
25335
25336 \begin_layout LyX-Code
25337 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25338 \end_layout
25339
25340 \begin_layout LyX-Code
25341 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25342 \end_layout
25343
25344 \begin_layout LyX-Code
25345 FormatEnd
25346 \end_layout
25347
25348 \begin_layout LyX-Code
25349 Format Ascii
25350 \end_layout
25351
25352 \begin_layout LyX-Code
25353 Product "[XFig: $$FName]"
25354 \end_layout
25355
25356 \begin_layout LyX-Code
25357 FormatEnd
25358 \end_layout
25359
25360 \begin_layout LyX-Code
25361 Format DocBook
25362 \end_layout
25363
25364 \begin_layout LyX-Code
25365 Product "<graphic fileref=
25366 \backslash
25367 "$$AbsOrRelPathMaster$$Basename.eps
25368 \backslash
25369 ">
25370 \end_layout
25371
25372 \begin_layout LyX-Code
25373          </graphic>"
25374 \end_layout
25375
25376 \begin_layout LyX-Code
25377 UpdateFormat eps
25378 \end_layout
25379
25380 \begin_layout LyX-Code
25381 UpdateResult "$$AbsPath$$Basename.eps"
25382 \end_layout
25383
25384 \begin_layout LyX-Code
25385 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25386 \end_layout
25387
25388 \begin_layout LyX-Code
25389 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25390 \end_layout
25391
25392 \begin_layout LyX-Code
25393 FormatEnd
25394 \end_layout
25395
25396 \begin_layout LyX-Code
25397 TemplateEnd
25398 \end_layout
25399
25400 \begin_layout Standard
25401 As you can see, the template is enclosed in 
25402 \begin_inset Flex Code
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 Template
25407 \end_layout
25408
25409 \end_inset
25410
25411  \SpecialChar ldots
25412  
25413 \begin_inset Flex Code
25414 status collapsed
25415
25416 \begin_layout Plain Layout
25417 TemplateEnd
25418 \end_layout
25419
25420 \end_inset
25421
25422 .
25423  It contains a header specifying some general settings and, for each supported
25424  primary document file format, a section 
25425 \begin_inset Flex Code
25426 status collapsed
25427
25428 \begin_layout Plain Layout
25429 Format
25430 \end_layout
25431
25432 \end_inset
25433
25434  \SpecialChar ldots
25435  
25436 \begin_inset Flex Code
25437 status collapsed
25438
25439 \begin_layout Plain Layout
25440 FormatEnd
25441 \end_layout
25442
25443 \end_inset
25444
25445 .
25446 \end_layout
25447
25448 \begin_layout Subsection
25449 The template header
25450 \end_layout
25451
25452 \begin_layout Description
25453 \begin_inset Flex Code
25454 status collapsed
25455
25456 \begin_layout Plain Layout
25457 AutomaticProduction
25458 \begin_inset space ~
25459 \end_inset
25460
25461 true|false
25462 \end_layout
25463
25464 \end_inset
25465
25466  Whether the file represented by the template must be generated by \SpecialChar LyX
25467 .
25468  This command must occur exactly once.
25469 \end_layout
25470
25471 \begin_layout Description
25472 \begin_inset Flex Code
25473 status collapsed
25474
25475 \begin_layout Plain Layout
25476 FileFilter
25477 \begin_inset space ~
25478 \end_inset
25479
25480 <pattern>
25481 \end_layout
25482
25483 \end_inset
25484
25485  A glob pattern that is used in the file dialog to filter out the desired
25486  files.
25487  If there is more than one possible file extension (e.
25488 \begin_inset space \thinspace{}
25489 \end_inset
25490
25491 g.
25492 \begin_inset space \space{}
25493 \end_inset
25494
25495 tgif has 
25496 \begin_inset Flex Code
25497 status collapsed
25498
25499 \begin_layout Plain Layout
25500 .obj
25501 \end_layout
25502
25503 \end_inset
25504
25505  and 
25506 \begin_inset Flex Code
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510 .tgo
25511 \end_layout
25512
25513 \end_inset
25514
25515 ), use something like 
25516 \begin_inset Flex Code
25517 status collapsed
25518
25519 \begin_layout Plain Layout
25520 "*.{obj,tgo}"
25521 \end_layout
25522
25523 \end_inset
25524
25525 .
25526  This command must occur exactly once.
25527 \end_layout
25528
25529 \begin_layout Description
25530 \begin_inset Flex Code
25531 status collapsed
25532
25533 \begin_layout Plain Layout
25534 GuiName
25535 \begin_inset space ~
25536 \end_inset
25537
25538 <guiname>
25539 \end_layout
25540
25541 \end_inset
25542
25543  The text that is displayed on the button.
25544  This command must occur exactly once.
25545 \end_layout
25546
25547 \begin_layout Description
25548 \begin_inset Flex Code
25549 status collapsed
25550
25551 \begin_layout Plain Layout
25552 HelpText
25553 \begin_inset space ~
25554 \end_inset
25555
25556 <text>
25557 \begin_inset space ~
25558 \end_inset
25559
25560 HelpTextEnd
25561 \end_layout
25562
25563 \end_inset
25564
25565  The help text that is used in the External dialog.
25566  Provide enough information to explain to the user just what the template
25567  can provide him with.
25568  This command must occur exactly once.
25569 \end_layout
25570
25571 \begin_layout Description
25572 \begin_inset Flex Code
25573 status collapsed
25574
25575 \begin_layout Plain Layout
25576 InputFormat
25577 \begin_inset space ~
25578 \end_inset
25579
25580 <format>
25581 \end_layout
25582
25583 \end_inset
25584
25585  The file format of the original file.
25586  This must be the name of a format that is known to \SpecialChar LyX
25587  (see 
25588 \begin_inset CommandInset ref
25589 LatexCommand ref
25590 reference "sec:Formats"
25591
25592 \end_inset
25593
25594 ).
25595  Use 
25596 \begin_inset Quotes eld
25597 \end_inset
25598
25599
25600 \begin_inset Flex Code
25601 status collapsed
25602
25603 \begin_layout Plain Layout
25604 *
25605 \end_layout
25606
25607 \end_inset
25608
25609
25610 \begin_inset Quotes erd
25611 \end_inset
25612
25613  if the template can handle original files of more than one format.
25614  \SpecialChar LyX
25615  will attempt to interrogate the file itself in order to deduce its format
25616  in this case.
25617  This command must occur exactly once.
25618 \end_layout
25619
25620 \begin_layout Description
25621 \begin_inset Flex Code
25622 status collapsed
25623
25624 \begin_layout Plain Layout
25625 Template
25626 \begin_inset space ~
25627 \end_inset
25628
25629 <id>
25630 \end_layout
25631
25632 \end_inset
25633
25634  A unique name for the template.
25635  It must not contain substitution macros (see below).
25636 \end_layout
25637
25638 \begin_layout Description
25639 \begin_inset Flex Code
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 Transform
25644 \begin_inset space ~
25645 \end_inset
25646
25647 Rotate|Resize|Clip|Extra
25648 \end_layout
25649
25650 \end_inset
25651
25652  This command specifies which transformations are supported by this template.
25653  It may occur zero or more times.
25654  This command enables the corresponding tabs in the external dialog.
25655  Each 
25656 \begin_inset Flex Code
25657 status collapsed
25658
25659 \begin_layout Plain Layout
25660 Transform
25661 \end_layout
25662
25663 \end_inset
25664
25665  command must have either a corresponding 
25666 \begin_inset Flex Code
25667 status collapsed
25668
25669 \begin_layout Plain Layout
25670 TransformCommand
25671 \end_layout
25672
25673 \end_inset
25674
25675  or a 
25676 \begin_inset Flex Code
25677 status collapsed
25678
25679 \begin_layout Plain Layout
25680 TransformOption
25681 \end_layout
25682
25683 \end_inset
25684
25685  command in the 
25686 \begin_inset Flex Code
25687 status collapsed
25688
25689 \begin_layout Plain Layout
25690 Format
25691 \end_layout
25692
25693 \end_inset
25694
25695  section.
25696  Otherwise the transformation will not be supported by that format.
25697 \end_layout
25698
25699 \begin_layout Subsection
25700 The Format section
25701 \end_layout
25702
25703 \begin_layout Description
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708 Format
25709 \begin_inset space ~
25710 \end_inset
25711
25712 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25713 \end_layout
25714
25715 \end_inset
25716
25717  The primary document file format that this format definition is for.
25718  Not every template has a sensible representation in all document file formats.
25719  Please define nevertheless a 
25720 \begin_inset Flex Code
25721 status collapsed
25722
25723 \begin_layout Plain Layout
25724 Format
25725 \end_layout
25726
25727 \end_inset
25728
25729  section for all templates.
25730  Use a dummy text when no representation is available.
25731  Then you can at least see a reference to the external material in the exported
25732  document.
25733 \end_layout
25734
25735 \begin_layout Description
25736 \begin_inset Flex Code
25737 status collapsed
25738
25739 \begin_layout Plain Layout
25740 Option
25741 \begin_inset space ~
25742 \end_inset
25743
25744 <name>
25745 \begin_inset space ~
25746 \end_inset
25747
25748 <value>
25749 \end_layout
25750
25751 \end_inset
25752
25753  This command defines an additional macro 
25754 \begin_inset Flex Code
25755 status collapsed
25756
25757 \begin_layout Plain Layout
25758 $$<name>
25759 \end_layout
25760
25761 \end_inset
25762
25763  for substitution in 
25764 \begin_inset Flex Code
25765 status collapsed
25766
25767 \begin_layout Plain Layout
25768 Product
25769 \end_layout
25770
25771 \end_inset
25772
25773 .
25774  
25775 \begin_inset Flex Code
25776 status collapsed
25777
25778 \begin_layout Plain Layout
25779 <value>
25780 \end_layout
25781
25782 \end_inset
25783
25784  itself may contain substitution macros.
25785  The advantage over using 
25786 \begin_inset Flex Code
25787 status collapsed
25788
25789 \begin_layout Plain Layout
25790 <value>
25791 \end_layout
25792
25793 \end_inset
25794
25795  directly in 
25796 \begin_inset Flex Code
25797 status collapsed
25798
25799 \begin_layout Plain Layout
25800 Product
25801 \end_layout
25802
25803 \end_inset
25804
25805  is that the substituted value of 
25806 \begin_inset Flex Code
25807 status collapsed
25808
25809 \begin_layout Plain Layout
25810 $$<name>
25811 \end_layout
25812
25813 \end_inset
25814
25815  is sanitized so that it is a valid optional argument in the document format.
25816  This command may occur zero or more times.
25817 \end_layout
25818
25819 \begin_layout Description
25820 \begin_inset Flex Code
25821 status collapsed
25822
25823 \begin_layout Plain Layout
25824 Product
25825 \begin_inset space ~
25826 \end_inset
25827
25828 <text>
25829 \end_layout
25830
25831 \end_inset
25832
25833  The text that is inserted in the exported document.
25834  This is actually the most important command and can be quite complex.
25835  This command must occur exactly once.
25836 \end_layout
25837
25838 \begin_layout Description
25839 \begin_inset Flex Code
25840 status collapsed
25841
25842 \begin_layout Plain Layout
25843 Preamble
25844 \begin_inset space ~
25845 \end_inset
25846
25847 <name>
25848 \end_layout
25849
25850 \end_inset
25851
25852  This command specifies a preamble snippet that will be included in the
25853  \SpecialChar LaTeX
25854  preamble.
25855  It has to be defined using 
25856 \begin_inset Flex Code
25857 status collapsed
25858
25859 \begin_layout Plain Layout
25860 PreambleDef
25861 \end_layout
25862
25863 \end_inset
25864
25865  \SpecialChar ldots
25866  
25867 \begin_inset Flex Code
25868 status collapsed
25869
25870 \begin_layout Plain Layout
25871 PreambleDefEnd
25872 \end_layout
25873
25874 \end_inset
25875
25876 .
25877  This command may occur zero or more times.
25878 \end_layout
25879
25880 \begin_layout Description
25881 \begin_inset Flex Code
25882 status collapsed
25883
25884 \begin_layout Plain Layout
25885 ReferencedFile
25886 \begin_inset space ~
25887 \end_inset
25888
25889 <format>
25890 \begin_inset space ~
25891 \end_inset
25892
25893 <filename>
25894 \end_layout
25895
25896 \end_inset
25897
25898  This command denotes files that are created by the conversion process and
25899  are needed for a particular export format.
25900  If the filename is relative, it is interpreted relative to the master document.
25901  This command may be given zero or more times.
25902 \end_layout
25903
25904 \begin_layout Description
25905 \begin_inset Flex Code
25906 status collapsed
25907
25908 \begin_layout Plain Layout
25909 Requirement
25910 \begin_inset space ~
25911 \end_inset
25912
25913 <package>
25914 \end_layout
25915
25916 \end_inset
25917
25918  The name of a required \SpecialChar LaTeX
25919  package.
25920  The package is included via 
25921 \begin_inset Flex Code
25922 status collapsed
25923
25924 \begin_layout Plain Layout
25925
25926 \backslash
25927 usepackage{}
25928 \end_layout
25929
25930 \end_inset
25931
25932  in the \SpecialChar LaTeX
25933  preamble.
25934  This command may occur zero or more times.
25935 \end_layout
25936
25937 \begin_layout Description
25938 \begin_inset Flex Code
25939 status collapsed
25940
25941 \begin_layout Plain Layout
25942 TransformCommand
25943 \begin_inset space ~
25944 \end_inset
25945
25946 Rotate
25947 \begin_inset space ~
25948 \end_inset
25949
25950 RotationLatexCommand
25951 \end_layout
25952
25953 \end_inset
25954
25955  This command specifies that the built in \SpecialChar LaTeX
25956  command should be used for rotation.
25957  This command may occur once or not at all.
25958 \end_layout
25959
25960 \begin_layout Description
25961 \begin_inset Flex Code
25962 status collapsed
25963
25964 \begin_layout Plain Layout
25965 TransformCommand
25966 \begin_inset space ~
25967 \end_inset
25968
25969 Resize
25970 \begin_inset space ~
25971 \end_inset
25972
25973 ResizeLatexCommand
25974 \end_layout
25975
25976 \end_inset
25977
25978  This command specifies that the built in \SpecialChar LaTeX
25979  command should be used for resizing.
25980  This command may occur once or not at all.
25981 \end_layout
25982
25983 \begin_layout Description
25984 \begin_inset Flex Code
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 TransformOption
25989 \begin_inset space ~
25990 \end_inset
25991
25992 Rotate
25993 \begin_inset space ~
25994 \end_inset
25995
25996 RotationLatexOption
25997 \end_layout
25998
25999 \end_inset
26000
26001  This command specifies that rotation is done via an optional argument.
26002  This command may occur once or not at all.
26003 \end_layout
26004
26005 \begin_layout Description
26006 \begin_inset Flex Code
26007 status collapsed
26008
26009 \begin_layout Plain Layout
26010 TransformOption
26011 \begin_inset space ~
26012 \end_inset
26013
26014 Resize
26015 \begin_inset space ~
26016 \end_inset
26017
26018 ResizeLatexOption
26019 \end_layout
26020
26021 \end_inset
26022
26023  This command specifies that resizing is done via an optional argument.
26024  This command may occur once or not at all.
26025 \end_layout
26026
26027 \begin_layout Description
26028 \begin_inset Flex Code
26029 status collapsed
26030
26031 \begin_layout Plain Layout
26032 TransformOption
26033 \begin_inset space ~
26034 \end_inset
26035
26036 Clip
26037 \begin_inset space ~
26038 \end_inset
26039
26040 ClipLatexOption
26041 \end_layout
26042
26043 \end_inset
26044
26045  This command specifies that clipping is done via an optional argument.
26046  This command may occur once or not at all.
26047 \end_layout
26048
26049 \begin_layout Description
26050 \begin_inset Flex Code
26051 status collapsed
26052
26053 \begin_layout Plain Layout
26054 TransformOption
26055 \begin_inset space ~
26056 \end_inset
26057
26058 Extra
26059 \begin_inset space ~
26060 \end_inset
26061
26062 ExtraLatexOption
26063 \end_layout
26064
26065 \end_inset
26066
26067  This command specifies that an extra optional argument is used.
26068  This command may occur once or not at all.
26069 \end_layout
26070
26071 \begin_layout Description
26072 \begin_inset Flex Code
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 UpdateFormat
26077 \begin_inset space ~
26078 \end_inset
26079
26080 <format>
26081 \end_layout
26082
26083 \end_inset
26084
26085  The file format of the converted file.
26086  This must be the name of a format that is known to \SpecialChar LyX
26087  (see the 
26088 \begin_inset Flex Noun
26089 status collapsed
26090
26091 \begin_layout Plain Layout
26092 Tools\SpecialChar menuseparator
26093 Preferences\SpecialChar menuseparator
26094 File Handling\SpecialChar menuseparator
26095 File Format
26096 \end_layout
26097
26098 \end_inset
26099
26100  dialog).
26101  This command must occur exactly once.
26102  If the resulting file format is PDF, you need to specify the format 
26103 \begin_inset Flex Code
26104 status collapsed
26105
26106 \begin_layout Plain Layout
26107 pdf6
26108 \end_layout
26109
26110 \end_inset
26111
26112 .
26113  This is the PDF format used for including graphics.
26114  The other defined PDF formats are for document export.
26115 \end_layout
26116
26117 \begin_layout Description
26118 \begin_inset Flex Code
26119 status collapsed
26120
26121 \begin_layout Plain Layout
26122 UpdateResult
26123 \begin_inset space ~
26124 \end_inset
26125
26126 <filename>
26127 \end_layout
26128
26129 \end_inset
26130
26131  The file name of the converted file.
26132  The file name must be absolute.
26133  This command must occur exactly once.
26134 \end_layout
26135
26136 \begin_layout Subsection
26137 Preamble definitions
26138 \end_layout
26139
26140 \begin_layout Standard
26141 The external template configuration file may contain additional preamble
26142  definitions enclosed by 
26143 \begin_inset Flex Code
26144 status collapsed
26145
26146 \begin_layout Plain Layout
26147 PreambleDef
26148 \end_layout
26149
26150 \end_inset
26151
26152  \SpecialChar ldots
26153  
26154 \begin_inset Flex Code
26155 status collapsed
26156
26157 \begin_layout Plain Layout
26158 PreambleDefEnd
26159 \end_layout
26160
26161 \end_inset
26162
26163 .
26164  They can be used by the templates in the 
26165 \begin_inset Flex Code
26166 status collapsed
26167
26168 \begin_layout Plain Layout
26169 Format
26170 \end_layout
26171
26172 \end_inset
26173
26174  section.
26175 \end_layout
26176
26177 \begin_layout Section
26178 The substitution mechanism
26179 \end_layout
26180
26181 \begin_layout Standard
26182 When the external material facility invokes an external program, it is done
26183  on the basis of a command defined in the template configuration file.
26184  These commands can contain various macros that are expanded before execution.
26185  Execution always take place in the directory of the containing document.
26186 \end_layout
26187
26188 \begin_layout Standard
26189 Also, whenever external material is to be displayed, the name will be produced
26190  by the substitution mechanism, and most other commands in the template
26191  definition support substitution as well.
26192 \end_layout
26193
26194 \begin_layout Standard
26195 The available macros are the following:
26196 \end_layout
26197
26198 \begin_layout Description
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 $$AbsOrRelPathMaster
26204 \end_layout
26205
26206 \end_inset
26207
26208  The file path, absolute or relative to the master \SpecialChar LyX
26209  document.
26210 \end_layout
26211
26212 \begin_layout Description
26213 \begin_inset Flex Code
26214 status collapsed
26215
26216 \begin_layout Plain Layout
26217 $$AbsOrRelPathParent
26218 \end_layout
26219
26220 \end_inset
26221
26222  The file path, absolute or relative to the \SpecialChar LyX
26223  document.
26224 \end_layout
26225
26226 \begin_layout Description
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 $$AbsPath
26232 \end_layout
26233
26234 \end_inset
26235
26236  The absolute file path.
26237 \end_layout
26238
26239 \begin_layout Description
26240 \begin_inset Flex Code
26241 status collapsed
26242
26243 \begin_layout Plain Layout
26244 $$Basename
26245 \end_layout
26246
26247 \end_inset
26248
26249  The filename without path and without the extension.
26250 \end_layout
26251
26252 \begin_layout Description
26253 \begin_inset Flex Code
26254 status collapsed
26255
26256 \begin_layout Plain Layout
26257 $$Contents(
26258 \begin_inset Quotes eld
26259 \end_inset
26260
26261 filename.ext
26262 \begin_inset Quotes erd
26263 \end_inset
26264
26265 )
26266 \end_layout
26267
26268 \end_inset
26269
26270  This macro will expand to the contents of the file with the name 
26271 \begin_inset Flex Code
26272 status collapsed
26273
26274 \begin_layout Plain Layout
26275 filename.ext
26276 \end_layout
26277
26278 \end_inset
26279
26280 .
26281 \end_layout
26282
26283 \begin_layout Description
26284 \begin_inset Flex Code
26285 status collapsed
26286
26287 \begin_layout Plain Layout
26288 $$Extension
26289 \end_layout
26290
26291 \end_inset
26292
26293  The file extension (including the dot).
26294 \end_layout
26295
26296 \begin_layout Description
26297 \begin_inset Flex Code
26298 status collapsed
26299
26300 \begin_layout Plain Layout
26301 $$pngOrjpg
26302 \end_layout
26303
26304 \end_inset
26305
26306  This will be the string 
26307 \begin_inset Quotes eld
26308 \end_inset
26309
26310 jpg
26311 \begin_inset Quotes erd
26312 \end_inset
26313
26314  if the file is in JPEG format, otherwise it will be the string 
26315 \begin_inset Quotes eld
26316 \end_inset
26317
26318 png
26319 \begin_inset Quotes erd
26320 \end_inset
26321
26322 .
26323  This is useful to avoid uneeded conversions for output formats that support
26324  both PNG and JPEG fomats.
26325  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26326  output
26327  format.
26328 \end_layout
26329
26330 \begin_layout Description
26331 \begin_inset Flex Code
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335 $$FName
26336 \end_layout
26337
26338 \end_inset
26339
26340  The filename of the file specified in the external material dialog.
26341  This is either an absolute name, or it is relative to the \SpecialChar LyX
26342  document.
26343 \end_layout
26344
26345 \begin_layout Description
26346 \begin_inset Flex Code
26347 status collapsed
26348
26349 \begin_layout Plain Layout
26350 $$FPath
26351 \end_layout
26352
26353 \end_inset
26354
26355  The path part of 
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360 $$FName
26361 \end_layout
26362
26363 \end_inset
26364
26365  (absolute name or relative to the \SpecialChar LyX
26366  document).
26367 \end_layout
26368
26369 \begin_layout Description
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374 $$RelPathMaster
26375 \end_layout
26376
26377 \end_inset
26378
26379  The file path, relative to the master \SpecialChar LyX
26380  document.
26381 \end_layout
26382
26383 \begin_layout Description
26384 \begin_inset Flex Code
26385 status collapsed
26386
26387 \begin_layout Plain Layout
26388 $$RelPathParent
26389 \end_layout
26390
26391 \end_inset
26392
26393  The file path, relative to the \SpecialChar LyX
26394  document.
26395 \end_layout
26396
26397 \begin_layout Description
26398 \begin_inset Flex Code
26399 status collapsed
26400
26401 \begin_layout Plain Layout
26402 $$Sysdir
26403 \end_layout
26404
26405 \end_inset
26406
26407  This macro will expand to the absolute path of the system directory.
26408  This is typically used to point to the various helper scripts that are
26409  bundled with \SpecialChar LyX
26410 .
26411 \end_layout
26412
26413 \begin_layout Description
26414 \begin_inset Flex Code
26415 status collapsed
26416
26417 \begin_layout Plain Layout
26418 $$Tempname
26419 \end_layout
26420
26421 \end_inset
26422
26423  A name and full path to a temporary file which will be automatically deleted
26424  whenever the containing document is closed, or the external material insertion
26425  deleted.
26426 \end_layout
26427
26428 \begin_layout Standard
26429 All path macros contain a trailing directory separator, so you can construct
26430  e.
26431 \begin_inset space \thinspace{}
26432 \end_inset
26433
26434 g.
26435 \begin_inset space \space{}
26436 \end_inset
26437
26438 the absolute filename with 
26439 \begin_inset Flex Code
26440 status collapsed
26441
26442 \begin_layout Plain Layout
26443 $$AbsPath$$Basename$$Extension
26444 \end_layout
26445
26446 \end_inset
26447
26448 .
26449 \end_layout
26450
26451 \begin_layout Standard
26452 The macros above are substituted in all commands unless otherwise noted.
26453  The command 
26454 \begin_inset Flex Code
26455 status collapsed
26456
26457 \begin_layout Plain Layout
26458 Product
26459 \end_layout
26460
26461 \end_inset
26462
26463  supports additionally the following substitutions if they are enabled by
26464  the 
26465 \begin_inset Flex Code
26466 status collapsed
26467
26468 \begin_layout Plain Layout
26469 Transform
26470 \end_layout
26471
26472 \end_inset
26473
26474  and 
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479 TransformCommand
26480 \end_layout
26481
26482 \end_inset
26483
26484  commands:
26485 \end_layout
26486
26487 \begin_layout Description
26488 \begin_inset Flex Code
26489 status collapsed
26490
26491 \begin_layout Plain Layout
26492 $$ResizeFront
26493 \end_layout
26494
26495 \end_inset
26496
26497  The front part of the resize command.
26498 \end_layout
26499
26500 \begin_layout Description
26501 \begin_inset Flex Code
26502 status collapsed
26503
26504 \begin_layout Plain Layout
26505 $$ResizeBack
26506 \end_layout
26507
26508 \end_inset
26509
26510  The back part of the resize command.
26511 \end_layout
26512
26513 \begin_layout Description
26514 \begin_inset Flex Code
26515 status collapsed
26516
26517 \begin_layout Plain Layout
26518 $$RotateFront
26519 \end_layout
26520
26521 \end_inset
26522
26523  The front part of the rotation command.
26524 \end_layout
26525
26526 \begin_layout Description
26527 \begin_inset Flex Code
26528 status collapsed
26529
26530 \begin_layout Plain Layout
26531 $$RotateBack
26532 \end_layout
26533
26534 \end_inset
26535
26536  The back part of the rotation command.
26537 \end_layout
26538
26539 \begin_layout Standard
26540 The value string of the 
26541 \begin_inset Flex Code
26542 status collapsed
26543
26544 \begin_layout Plain Layout
26545 Option
26546 \end_layout
26547
26548 \end_inset
26549
26550  command supports additionally the following substitutions if they are enabled
26551  by the 
26552 \begin_inset Flex Code
26553 status collapsed
26554
26555 \begin_layout Plain Layout
26556 Transform
26557 \end_layout
26558
26559 \end_inset
26560
26561  and 
26562 \begin_inset Flex Code
26563 status collapsed
26564
26565 \begin_layout Plain Layout
26566 TransformOption
26567 \end_layout
26568
26569 \end_inset
26570
26571  commands:
26572 \end_layout
26573
26574 \begin_layout Description
26575 \begin_inset Flex Code
26576 status collapsed
26577
26578 \begin_layout Plain Layout
26579 $$Clip
26580 \end_layout
26581
26582 \end_inset
26583
26584  The clip option.
26585 \end_layout
26586
26587 \begin_layout Description
26588 \begin_inset Flex Code
26589 status collapsed
26590
26591 \begin_layout Plain Layout
26592 $$Extra
26593 \end_layout
26594
26595 \end_inset
26596
26597  The extra option.
26598 \end_layout
26599
26600 \begin_layout Description
26601 \begin_inset Flex Code
26602 status collapsed
26603
26604 \begin_layout Plain Layout
26605 $$Resize
26606 \end_layout
26607
26608 \end_inset
26609
26610  The resize option.
26611 \end_layout
26612
26613 \begin_layout Description
26614 \begin_inset Flex Code
26615 status collapsed
26616
26617 \begin_layout Plain Layout
26618 $$Rotate
26619 \end_layout
26620
26621 \end_inset
26622
26623  The rotation option.
26624 \end_layout
26625
26626 \begin_layout Standard
26627 You may ask why there are so many path macros.
26628  There are mainly two reasons:
26629 \end_layout
26630
26631 \begin_layout Enumerate
26632 Relative and absolute file names should remain relative or absolute, respectivel
26633 y.
26634  Users may have reasons to prefer either form.
26635  Relative names are useful for portable documents that should work on different
26636  machines, for example.
26637  Absolute names may be required by some programs.
26638 \end_layout
26639
26640 \begin_layout Enumerate
26641 \SpecialChar LaTeX
26642  treats relative file names differently than \SpecialChar LyX
26643  and other programs in nested
26644  included files.
26645  For \SpecialChar LyX
26646 , a relative file name is always relative to the document that contains
26647  the file name.
26648  For \SpecialChar LaTeX
26649 , it is always relative to the master document.
26650  These two definitions are identical if you have only one document, but
26651  differ if you have a master document that includes part documents.
26652  That means that relative filenames must be transformed when presented to
26653  \SpecialChar LaTeX
26654 .
26655  Fortunately \SpecialChar LyX
26656  does this automatically for you if you choose the right macros.
26657 \end_layout
26658
26659 \begin_layout Standard
26660 So which path macro should be used in new template definitions? The rule
26661  is not difficult:
26662 \end_layout
26663
26664 \begin_layout Itemize
26665 Use 
26666 \begin_inset Flex Code
26667 status collapsed
26668
26669 \begin_layout Plain Layout
26670 $$AbsPath
26671 \end_layout
26672
26673 \end_inset
26674
26675  if an absolute path is required.
26676 \end_layout
26677
26678 \begin_layout Itemize
26679 Use 
26680 \begin_inset Flex Code
26681 status collapsed
26682
26683 \begin_layout Plain Layout
26684 $$AbsOrRelPathMaster
26685 \end_layout
26686
26687 \end_inset
26688
26689  if the substituted string is some kind of \SpecialChar LaTeX
26690  input.
26691 \end_layout
26692
26693 \begin_layout Itemize
26694 Else use 
26695 \begin_inset Flex Code
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 $$AbsOrRelPathParent
26700 \end_layout
26701
26702 \end_inset
26703
26704  in order to preserve the user's choice.
26705 \end_layout
26706
26707 \begin_layout Standard
26708 There are special cases where this rule does not work and e.
26709 \begin_inset space \thinspace{}
26710 \end_inset
26711
26712 g.
26713 \begin_inset space \space{}
26714 \end_inset
26715
26716 relative names are needed, but normally it will work just fine.
26717  One example for such a case is the command 
26718 \begin_inset Flex Code
26719 status collapsed
26720
26721 \begin_layout Plain Layout
26722 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26723 \end_layout
26724
26725 \end_inset
26726
26727  in the XFig template above: We can't use the absolute name because the
26728  copier for 
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 .pstex_t
26734 \end_layout
26735
26736 \end_inset
26737
26738  files needs the relative name in order to rewrite the file content.
26739 \end_layout
26740
26741 \begin_layout Section
26742 Security discussion
26743 \begin_inset CommandInset label
26744 LatexCommand label
26745 name "sec:Security-discussion"
26746
26747 \end_inset
26748
26749
26750 \end_layout
26751
26752 \begin_layout Standard
26753 The external material feature interfaces with a lot of external programs
26754  and does so automatically, so we have to consider the security implications
26755  of this.
26756  In particular, since you have the option of including your own filenames
26757  and/or parameter strings and those are expanded into a command, it seems
26758  that it would be possible to create a malicious document which executes
26759  arbitrary commands when a user views or prints the document.
26760  This is something we definitely want to avoid.
26761 \end_layout
26762
26763 \begin_layout Standard
26764 However, since the external program commands are specified in the template
26765  configuration file only, there are no security issues if \SpecialChar LyX
26766  is properly configure
26767 d with safe templates only.
26768  This is so because the external programs are invoked with the 
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 execvp
26774 \end_layout
26775
26776 \end_inset
26777
26778 -system call rather than the 
26779 \begin_inset Flex Code
26780 status collapsed
26781
26782 \begin_layout Plain Layout
26783 system
26784 \end_layout
26785
26786 \end_inset
26787
26788  system-call, so it's not possible to execute arbitrary commands from the
26789  filename or parameter section via the shell.
26790 \end_layout
26791
26792 \begin_layout Standard
26793 This also implies that you are restricted in what command strings you can
26794  use in the external material templates.
26795  In particular, pipes and redirection are not readily available.
26796  This has to be so if \SpecialChar LyX
26797  should remain safe.
26798  If you want to use some of the shell features, you should write a safe
26799  script to do this in a controlled manner, and then invoke the script from
26800  the command string.
26801  
26802 \end_layout
26803
26804 \begin_layout Standard
26805 It is possible to design a template that interacts directly with the shell,
26806  but since this would allow a malicious user to execute arbitrary commands
26807  by writing clever filenames and/or parameters, we generally recommend that
26808  you only use safe scripts that work with the 
26809 \begin_inset Flex Code
26810 status collapsed
26811
26812 \begin_layout Plain Layout
26813 execvp
26814 \end_layout
26815
26816 \end_inset
26817
26818  system call in a controlled manner.
26819  Of course, for use in a controlled environment, it can be tempting to just
26820  fall back to use ordinary shell scripts.
26821  If you do so, be aware that you 
26822 \emph on
26823 will
26824 \emph default
26825  provide an easily exploitable security hole in your system.
26826  Of course it stands to reason that such unsafe templates will never be
26827  included in the standard \SpecialChar LyX
26828  distribution, although we do encourage people
26829  to submit new templates in the open source tradition.
26830  But \SpecialChar LyX
26831  as shipped from the official distribution channels will never have
26832  unsafe templates.
26833 \end_layout
26834
26835 \begin_layout Standard
26836 Including external material provides a lot of power, and you have to be
26837  careful not to introduce security hazards with this power.
26838  A subtle error in a single line in an innocent looking script can open
26839  the door to huge security problems.
26840  So if you do not fully understand the issues, we recommend that you consult
26841  a knowledgeable security professional or the \SpecialChar LyX
26842  development team if you have
26843  any questions about whether a given template is safe or not.
26844  And do this before you use it in an uncontrolled environment.
26845 \end_layout
26846
26847 \begin_layout Chapter
26848 \start_of_appendix
26849 List of supported \SpecialChar LyX
26850  functions to be used in layouts
26851 \begin_inset CommandInset label
26852 LatexCommand label
26853 name "chap:List-of-functions"
26854
26855 \end_inset
26856
26857
26858 \end_layout
26859
26860 \begin_layout Standard
26861 \align center
26862 \begin_inset Tabular
26863 <lyxtabular version="3" rows="11" columns="8">
26864 <features tabularvalignment="middle">
26865 <column alignment="left" valignment="top">
26866 <column alignment="left" valignment="top">
26867 <column alignment="left" valignment="top">
26868 <column alignment="left" valignment="top">
26869 <column alignment="left" valignment="top">
26870 <column alignment="left" valignment="top">
26871 <column alignment="left" valignment="top">
26872 <column alignment="left" valignment="top">
26873 <row>
26874 <cell alignment="left" valignment="top" usebox="none">
26875 \begin_inset Text
26876
26877 \begin_layout Plain Layout
26878 accents
26879 \end_layout
26880
26881 \end_inset
26882 </cell>
26883 <cell alignment="left" valignment="top" usebox="none">
26884 \begin_inset Text
26885
26886 \begin_layout Plain Layout
26887 booktabs
26888 \end_layout
26889
26890 \end_inset
26891 </cell>
26892 <cell alignment="left" valignment="top" usebox="none">
26893 \begin_inset Text
26894
26895 \begin_layout Plain Layout
26896 feyn
26897 \end_layout
26898
26899 \end_inset
26900 </cell>
26901 <cell alignment="left" valignment="top" usebox="none">
26902 \begin_inset Text
26903
26904 \begin_layout Plain Layout
26905 listings
26906 \end_layout
26907
26908 \end_inset
26909 </cell>
26910 <cell alignment="center" valignment="top" usebox="none">
26911 \begin_inset Text
26912
26913 \begin_layout Plain Layout
26914 natbib
26915 \end_layout
26916
26917 \end_inset
26918 </cell>
26919 <cell alignment="center" valignment="top" usebox="none">
26920 \begin_inset Text
26921
26922 \begin_layout Plain Layout
26923 rotfloat
26924 \end_layout
26925
26926 \end_inset
26927 </cell>
26928 <cell alignment="center" valignment="top" usebox="none">
26929 \begin_inset Text
26930
26931 \begin_layout Plain Layout
26932 tfrupee
26933 \end_layout
26934
26935 \end_inset
26936 </cell>
26937 <cell alignment="center" valignment="top" usebox="none">
26938 \begin_inset Text
26939
26940 \begin_layout Plain Layout
26941 wasysym
26942 \end_layout
26943
26944 \end_inset
26945 </cell>
26946 </row>
26947 <row>
26948 <cell alignment="left" valignment="top" usebox="none">
26949 \begin_inset Text
26950
26951 \begin_layout Plain Layout
26952 amsbsy
26953 \end_layout
26954
26955 \end_inset
26956 </cell>
26957 <cell alignment="left" valignment="top" usebox="none">
26958 \begin_inset Text
26959
26960 \begin_layout Plain Layout
26961 calc
26962 \end_layout
26963
26964 \end_inset
26965 </cell>
26966 <cell alignment="left" valignment="top" usebox="none">
26967 \begin_inset Text
26968
26969 \begin_layout Plain Layout
26970 fixltx2e
26971 \end_layout
26972
26973 \end_inset
26974 </cell>
26975 <cell alignment="left" valignment="top" usebox="none">
26976 \begin_inset Text
26977
26978 \begin_layout Plain Layout
26979 longtable
26980 \end_layout
26981
26982 \end_inset
26983 </cell>
26984 <cell alignment="center" valignment="top" usebox="none">
26985 \begin_inset Text
26986
26987 \begin_layout Plain Layout
26988 nomencl
26989 \end_layout
26990
26991 \end_inset
26992 </cell>
26993 <cell alignment="center" valignment="top" usebox="none">
26994 \begin_inset Text
26995
26996 \begin_layout Plain Layout
26997 rsphrase
26998 \end_layout
26999
27000 \end_inset
27001 </cell>
27002 <cell alignment="center" valignment="top" usebox="none">
27003 \begin_inset Text
27004
27005 \begin_layout Plain Layout
27006 tipa
27007 \end_layout
27008
27009 \end_inset
27010 </cell>
27011 <cell alignment="center" valignment="top" usebox="none">
27012 \begin_inset Text
27013
27014 \begin_layout Plain Layout
27015 wrapfig
27016 \end_layout
27017
27018 \end_inset
27019 </cell>
27020 </row>
27021 <row>
27022 <cell alignment="left" valignment="top" usebox="none">
27023 \begin_inset Text
27024
27025 \begin_layout Plain Layout
27026 amscd
27027 \end_layout
27028
27029 \end_inset
27030 </cell>
27031 <cell alignment="left" valignment="top" usebox="none">
27032 \begin_inset Text
27033
27034 \begin_layout Plain Layout
27035 CJK
27036 \end_layout
27037
27038 \end_inset
27039 </cell>
27040 <cell alignment="left" valignment="top" usebox="none">
27041 \begin_inset Text
27042
27043 \begin_layout Plain Layout
27044 float
27045 \end_layout
27046
27047 \end_inset
27048 </cell>
27049 <cell alignment="left" valignment="top" usebox="none">
27050 \begin_inset Text
27051
27052 \begin_layout Plain Layout
27053 lyxskak
27054 \end_layout
27055
27056 \end_inset
27057 </cell>
27058 <cell alignment="center" valignment="top" usebox="none">
27059 \begin_inset Text
27060
27061 \begin_layout Plain Layout
27062 pdfcolmk
27063 \end_layout
27064
27065 \end_inset
27066 </cell>
27067 <cell alignment="center" valignment="top" usebox="none">
27068 \begin_inset Text
27069
27070 \begin_layout Plain Layout
27071 setspace
27072 \end_layout
27073
27074 \end_inset
27075 </cell>
27076 <cell alignment="center" valignment="top" usebox="none">
27077 \begin_inset Text
27078
27079 \begin_layout Plain Layout
27080 tipx
27081 \end_layout
27082
27083 \end_inset
27084 </cell>
27085 <cell alignment="center" valignment="top" usebox="none">
27086 \begin_inset Text
27087
27088 \begin_layout Plain Layout
27089 xargs
27090 \end_layout
27091
27092 \end_inset
27093 </cell>
27094 </row>
27095 <row>
27096 <cell alignment="left" valignment="top" usebox="none">
27097 \begin_inset Text
27098
27099 \begin_layout Plain Layout
27100 amsmath
27101 \end_layout
27102
27103 \end_inset
27104 </cell>
27105 <cell alignment="left" valignment="top" usebox="none">
27106 \begin_inset Text
27107
27108 \begin_layout Plain Layout
27109 color
27110 \end_layout
27111
27112 \end_inset
27113 </cell>
27114 <cell alignment="left" valignment="top" usebox="none">
27115 \begin_inset Text
27116
27117 \begin_layout Plain Layout
27118 framed
27119 \end_layout
27120
27121 \end_inset
27122 </cell>
27123 <cell alignment="left" valignment="top" usebox="none">
27124 \begin_inset Text
27125
27126 \begin_layout Plain Layout
27127 makeidx
27128 \end_layout
27129
27130 \end_inset
27131 </cell>
27132 <cell alignment="center" valignment="top" usebox="none">
27133 \begin_inset Text
27134
27135 \begin_layout Plain Layout
27136 pdfpages
27137 \end_layout
27138
27139 \end_inset
27140 </cell>
27141 <cell alignment="center" valignment="top" usebox="none">
27142 \begin_inset Text
27143
27144 \begin_layout Plain Layout
27145 shapepar
27146 \end_layout
27147
27148 \end_inset
27149 </cell>
27150 <cell alignment="center" valignment="top" usebox="none">
27151 \begin_inset Text
27152
27153 \begin_layout Plain Layout
27154 tone
27155 \end_layout
27156
27157 \end_inset
27158 </cell>
27159 <cell alignment="center" valignment="top" usebox="none">
27160 \begin_inset Text
27161
27162 \begin_layout Plain Layout
27163 xcolor
27164 \end_layout
27165
27166 \end_inset
27167 </cell>
27168 </row>
27169 <row>
27170 <cell alignment="left" valignment="top" usebox="none">
27171 \begin_inset Text
27172
27173 \begin_layout Plain Layout
27174 amssymb
27175 \end_layout
27176
27177 \end_inset
27178 </cell>
27179 <cell alignment="left" valignment="top" usebox="none">
27180 \begin_inset Text
27181
27182 \begin_layout Plain Layout
27183 covington
27184 \end_layout
27185
27186 \end_inset
27187 </cell>
27188 <cell alignment="left" valignment="top" usebox="none">
27189 \begin_inset Text
27190
27191 \begin_layout Plain Layout
27192 graphicx
27193 \end_layout
27194
27195 \end_inset
27196 </cell>
27197 <cell alignment="left" valignment="top" usebox="none">
27198 \begin_inset Text
27199
27200 \begin_layout Plain Layout
27201 marvosym
27202 \end_layout
27203
27204 \end_inset
27205 </cell>
27206 <cell alignment="center" valignment="top" usebox="none">
27207 \begin_inset Text
27208
27209 \begin_layout Plain Layout
27210 pifont
27211 \end_layout
27212
27213 \end_inset
27214 </cell>
27215 <cell alignment="center" valignment="top" usebox="none">
27216 \begin_inset Text
27217
27218 \begin_layout Plain Layout
27219 slashed
27220 \end_layout
27221
27222 \end_inset
27223 </cell>
27224 <cell alignment="center" valignment="top" usebox="none">
27225 \begin_inset Text
27226
27227 \begin_layout Plain Layout
27228 txfonts
27229 \end_layout
27230
27231 \end_inset
27232 </cell>
27233 <cell alignment="center" valignment="top" usebox="none">
27234 \begin_inset Text
27235
27236 \begin_layout Plain Layout
27237 xy
27238 \end_layout
27239
27240 \end_inset
27241 </cell>
27242 </row>
27243 <row>
27244 <cell alignment="left" valignment="top" usebox="none">
27245 \begin_inset Text
27246
27247 \begin_layout Plain Layout
27248 amstext
27249 \end_layout
27250
27251 \end_inset
27252 </cell>
27253 <cell alignment="left" valignment="top" usebox="none">
27254 \begin_inset Text
27255
27256 \begin_layout Plain Layout
27257 csquotes
27258 \end_layout
27259
27260 \end_inset
27261 </cell>
27262 <cell alignment="left" valignment="top" usebox="none">
27263 \begin_inset Text
27264
27265 \begin_layout Plain Layout
27266 hhline
27267 \end_layout
27268
27269 \end_inset
27270 </cell>
27271 <cell alignment="left" valignment="top" usebox="none">
27272 \begin_inset Text
27273
27274 \begin_layout Plain Layout
27275 mathdesign
27276 \end_layout
27277
27278 \end_inset
27279 </cell>
27280 <cell alignment="center" valignment="top" usebox="none">
27281 \begin_inset Text
27282
27283 \begin_layout Plain Layout
27284 pmboxdraw
27285 \end_layout
27286
27287 \end_inset
27288 </cell>
27289 <cell alignment="center" valignment="top" usebox="none">
27290 \begin_inset Text
27291
27292 \begin_layout Plain Layout
27293 soul
27294 \end_layout
27295
27296 \end_inset
27297 </cell>
27298 <cell alignment="center" valignment="top" usebox="none">
27299 \begin_inset Text
27300
27301 \begin_layout Plain Layout
27302 ulem
27303 \end_layout
27304
27305 \end_inset
27306 </cell>
27307 <cell alignment="center" valignment="top" usebox="none">
27308 \begin_inset Text
27309
27310 \begin_layout Plain Layout
27311 yhmath
27312 \end_layout
27313
27314 \end_inset
27315 </cell>
27316 </row>
27317 <row>
27318 <cell alignment="left" valignment="top" usebox="none">
27319 \begin_inset Text
27320
27321 \begin_layout Plain Layout
27322 amsthm
27323 \end_layout
27324
27325 \end_inset
27326 </cell>
27327 <cell alignment="left" valignment="top" usebox="none">
27328 \begin_inset Text
27329
27330 \begin_layout Plain Layout
27331 dvipost
27332 \end_layout
27333
27334 \end_inset
27335 </cell>
27336 <cell alignment="left" valignment="top" usebox="none">
27337 \begin_inset Text
27338
27339 \begin_layout Plain Layout
27340 hyperref
27341 \end_layout
27342
27343 \end_inset
27344 </cell>
27345 <cell alignment="left" valignment="top" usebox="none">
27346 \begin_inset Text
27347
27348 \begin_layout Plain Layout
27349 mathdots
27350 \end_layout
27351
27352 \end_inset
27353 </cell>
27354 <cell alignment="center" valignment="top" usebox="none">
27355 \begin_inset Text
27356
27357 \begin_layout Plain Layout
27358 polyglossia
27359 \end_layout
27360
27361 \end_inset
27362 </cell>
27363 <cell alignment="center" valignment="top" usebox="none">
27364 \begin_inset Text
27365
27366 \begin_layout Plain Layout
27367 splitidx
27368 \end_layout
27369
27370 \end_inset
27371 </cell>
27372 <cell alignment="center" valignment="top" usebox="none">
27373 \begin_inset Text
27374
27375 \begin_layout Plain Layout
27376 undertilde
27377 \end_layout
27378
27379 \end_inset
27380 </cell>
27381 <cell alignment="center" valignment="top" usebox="none">
27382 \begin_inset Text
27383
27384 \begin_layout Plain Layout
27385
27386 \end_layout
27387
27388 \end_inset
27389 </cell>
27390 </row>
27391 <row>
27392 <cell alignment="left" valignment="top" usebox="none">
27393 \begin_inset Text
27394
27395 \begin_layout Plain Layout
27396 array
27397 \end_layout
27398
27399 \end_inset
27400 </cell>
27401 <cell alignment="left" valignment="top" usebox="none">
27402 \begin_inset Text
27403
27404 \begin_layout Plain Layout
27405 endnotes
27406 \end_layout
27407
27408 \end_inset
27409 </cell>
27410 <cell alignment="left" valignment="top" usebox="none">
27411 \begin_inset Text
27412
27413 \begin_layout Plain Layout
27414 ifsym
27415 \end_layout
27416
27417 \end_inset
27418 </cell>
27419 <cell alignment="left" valignment="top" usebox="none">
27420 \begin_inset Text
27421
27422 \begin_layout Plain Layout
27423 mathrsfs
27424 \end_layout
27425
27426 \end_inset
27427 </cell>
27428 <cell alignment="center" valignment="top" usebox="none">
27429 \begin_inset Text
27430
27431 \begin_layout Plain Layout
27432 prettyref
27433 \end_layout
27434
27435 \end_inset
27436 </cell>
27437 <cell alignment="center" valignment="top" usebox="none">
27438 \begin_inset Text
27439
27440 \begin_layout Plain Layout
27441 subfig
27442 \end_layout
27443
27444 \end_inset
27445 </cell>
27446 <cell alignment="center" valignment="top" usebox="none">
27447 \begin_inset Text
27448
27449 \begin_layout Plain Layout
27450 units
27451 \end_layout
27452
27453 \end_inset
27454 </cell>
27455 <cell alignment="center" valignment="top" usebox="none">
27456 \begin_inset Text
27457
27458 \begin_layout Plain Layout
27459
27460 \end_layout
27461
27462 \end_inset
27463 </cell>
27464 </row>
27465 <row>
27466 <cell alignment="left" valignment="top" usebox="none">
27467 \begin_inset Text
27468
27469 \begin_layout Plain Layout
27470 ascii
27471 \end_layout
27472
27473 \end_inset
27474 </cell>
27475 <cell alignment="left" valignment="top" usebox="none">
27476 \begin_inset Text
27477
27478 \begin_layout Plain Layout
27479 enumitem
27480 \end_layout
27481
27482 \end_inset
27483 </cell>
27484 <cell alignment="left" valignment="top" usebox="none">
27485 \begin_inset Text
27486
27487 \begin_layout Plain Layout
27488 ifthen
27489 \end_layout
27490
27491 \end_inset
27492 </cell>
27493 <cell alignment="left" valignment="top" usebox="none">
27494 \begin_inset Text
27495
27496 \begin_layout Plain Layout
27497 mhchem
27498 \end_layout
27499
27500 \end_inset
27501 </cell>
27502 <cell alignment="center" valignment="top" usebox="none">
27503 \begin_inset Text
27504
27505 \begin_layout Plain Layout
27506 pxfonts
27507 \end_layout
27508
27509 \end_inset
27510 </cell>
27511 <cell alignment="center" valignment="top" usebox="none">
27512 \begin_inset Text
27513
27514 \begin_layout Plain Layout
27515 subscript
27516 \end_layout
27517
27518 \end_inset
27519 </cell>
27520 <cell alignment="center" valignment="top" usebox="none">
27521 \begin_inset Text
27522
27523 \begin_layout Plain Layout
27524 url
27525 \end_layout
27526
27527 \end_inset
27528 </cell>
27529 <cell alignment="center" valignment="top" usebox="none">
27530 \begin_inset Text
27531
27532 \begin_layout Plain Layout
27533
27534 \end_layout
27535
27536 \end_inset
27537 </cell>
27538 </row>
27539 <row>
27540 <cell alignment="left" valignment="top" usebox="none">
27541 \begin_inset Text
27542
27543 \begin_layout Plain Layout
27544 bbding
27545 \end_layout
27546
27547 \end_inset
27548 </cell>
27549 <cell alignment="left" valignment="top" usebox="none">
27550 \begin_inset Text
27551
27552 \begin_layout Plain Layout
27553 esint
27554 \end_layout
27555
27556 \end_inset
27557 </cell>
27558 <cell alignment="left" valignment="top" usebox="none">
27559 \begin_inset Text
27560
27561 \begin_layout Plain Layout
27562 jurabib
27563 \end_layout
27564
27565 \end_inset
27566 </cell>
27567 <cell alignment="left" valignment="top" usebox="none">
27568 \begin_inset Text
27569
27570 \begin_layout Plain Layout
27571 multicol
27572 \end_layout
27573
27574 \end_inset
27575 </cell>
27576 <cell alignment="center" valignment="top" usebox="none">
27577 \begin_inset Text
27578
27579 \begin_layout Plain Layout
27580 refstyle
27581 \end_layout
27582
27583 \end_inset
27584 </cell>
27585 <cell alignment="center" valignment="top" usebox="none">
27586 \begin_inset Text
27587
27588 \begin_layout Plain Layout
27589 textcomp
27590 \end_layout
27591
27592 \end_inset
27593 </cell>
27594 <cell alignment="center" valignment="top" usebox="none">
27595 \begin_inset Text
27596
27597 \begin_layout Plain Layout
27598 varioref
27599 \end_layout
27600
27601 \end_inset
27602 </cell>
27603 <cell alignment="center" valignment="top" usebox="none">
27604 \begin_inset Text
27605
27606 \begin_layout Plain Layout
27607
27608 \end_layout
27609
27610 \end_inset
27611 </cell>
27612 </row>
27613 <row>
27614 <cell alignment="center" valignment="top" usebox="none">
27615 \begin_inset Text
27616
27617 \begin_layout Plain Layout
27618 bm
27619 \end_layout
27620
27621 \end_inset
27622 </cell>
27623 <cell alignment="center" valignment="top" usebox="none">
27624 \begin_inset Text
27625
27626 \begin_layout Plain Layout
27627 fancybox
27628 \end_layout
27629
27630 \end_inset
27631 </cell>
27632 <cell alignment="center" valignment="top" usebox="none">
27633 \begin_inset Text
27634
27635 \begin_layout Plain Layout
27636 latexsym
27637 \end_layout
27638
27639 \end_inset
27640 </cell>
27641 <cell alignment="center" valignment="top" usebox="none">
27642 \begin_inset Text
27643
27644 \begin_layout Plain Layout
27645 multirow
27646 \end_layout
27647
27648 \end_inset
27649 </cell>
27650 <cell alignment="center" valignment="top" usebox="none">
27651 \begin_inset Text
27652
27653 \begin_layout Plain Layout
27654 rotating
27655 \end_layout
27656
27657 \end_inset
27658 </cell>
27659 <cell alignment="center" valignment="top" usebox="none">
27660 \begin_inset Text
27661
27662 \begin_layout Plain Layout
27663 textgreek
27664 \end_layout
27665
27666 \end_inset
27667 </cell>
27668 <cell alignment="center" valignment="top" usebox="none">
27669 \begin_inset Text
27670
27671 \begin_layout Plain Layout
27672 verbatim
27673 \end_layout
27674
27675 \end_inset
27676 </cell>
27677 <cell alignment="center" valignment="top" usebox="none">
27678 \begin_inset Text
27679
27680 \begin_layout Plain Layout
27681
27682 \end_layout
27683
27684 \end_inset
27685 </cell>
27686 </row>
27687 </lyxtabular>
27688
27689 \end_inset
27690
27691
27692 \end_layout
27693
27694 \begin_layout Chapter
27695 Names of available colors to be used in layouts
27696 \begin_inset CommandInset label
27697 LatexCommand label
27698 name "chap:Names-of-colors"
27699
27700 \end_inset
27701
27702
27703 \end_layout
27704
27705 \begin_layout Standard
27706 The colors listed below are the standard colors and those that you can adjust
27707  in the \SpecialChar LyX
27708  preferences.
27709 \end_layout
27710
27711 \begin_layout Section
27712 Color functions
27713 \end_layout
27714
27715 \begin_layout Standard
27716 The following are no real colors, but rather act on color definitions:
27717 \end_layout
27718
27719 \begin_layout Description
27720 ignore The color is ignored
27721 \end_layout
27722
27723 \begin_layout Description
27724 inherit The color is inherited
27725 \end_layout
27726
27727 \begin_layout Description
27728 none
27729 \family roman
27730 \series medium
27731 \shape up
27732 \size normal
27733 \emph off
27734 \bar no
27735 \strikeout off
27736 \uuline off
27737 \uwave off
27738 \noun off
27739 \color none
27740  No particular color – clear or default
27741 \end_layout
27742
27743 \begin_layout Section
27744 Static colors
27745 \end_layout
27746
27747 \begin_layout Standard
27748 These are fixed colors that cannot me customized:
27749 \end_layout
27750
27751 \begin_layout Description
27752 black
27753 \end_layout
27754
27755 \begin_layout Description
27756 white
27757 \end_layout
27758
27759 \begin_layout Description
27760 blue
27761 \end_layout
27762
27763 \begin_layout Description
27764 brown
27765 \end_layout
27766
27767 \begin_layout Description
27768 cyan
27769 \end_layout
27770
27771 \begin_layout Description
27772 darkgray
27773 \end_layout
27774
27775 \begin_layout Description
27776 gray
27777 \end_layout
27778
27779 \begin_layout Description
27780 green
27781 \end_layout
27782
27783 \begin_layout Description
27784 lightgray
27785 \end_layout
27786
27787 \begin_layout Description
27788 lime
27789 \end_layout
27790
27791 \begin_layout Description
27792 magenta
27793 \end_layout
27794
27795 \begin_layout Description
27796 olive
27797 \end_layout
27798
27799 \begin_layout Description
27800 orange
27801 \end_layout
27802
27803 \begin_layout Description
27804 pink
27805 \end_layout
27806
27807 \begin_layout Description
27808 purple
27809 \end_layout
27810
27811 \begin_layout Description
27812 red
27813 \end_layout
27814
27815 \begin_layout Description
27816 teal
27817 \end_layout
27818
27819 \begin_layout Description
27820 violet
27821 \end_layout
27822
27823 \begin_layout Description
27824 yellow
27825 \end_layout
27826
27827 \begin_layout Section
27828 Dynamic colors
27829 \end_layout
27830
27831 \begin_layout Standard
27832 These are the colors allocated to specific elements in 
27833 \begin_inset Info
27834 type  "menu"
27835 arg   "dialog-show prefs"
27836 \end_inset
27837
27838 :
27839 \end_layout
27840
27841 \begin_layout Description
27842 added_space Added space color
27843 \end_layout
27844
27845 \begin_layout Description
27846 addedtext Added text color
27847 \end_layout
27848
27849 \begin_layout Description
27850 appendix Appendix marker color
27851 \end_layout
27852
27853 \begin_layout Description
27854 background Background color
27855 \end_layout
27856
27857 \begin_layout Description
27858 bottomarea Bottom area color
27859 \end_layout
27860
27861 \begin_layout Description
27862 branchlabel Label color for branches
27863 \end_layout
27864
27865 \begin_layout Description
27866 buttonbg Color used for button background
27867 \end_layout
27868
27869 \begin_layout Description
27870 buttonframe Color for inset button frames
27871 \end_layout
27872
27873 \begin_layout Description
27874 buttonhoverbg Color used for button background under focus
27875 \end_layout
27876
27877 \begin_layout Description
27878 changebar Changebar color
27879 \end_layout
27880
27881 \begin_layout Description
27882 changedtextauthor1 Changed text color author 1
27883 \end_layout
27884
27885 \begin_layout Description
27886 changedtextauthor2 Changed text color author 2
27887 \end_layout
27888
27889 \begin_layout Description
27890 changedtextauthor3 Changed text color author 3
27891 \end_layout
27892
27893 \begin_layout Description
27894 changedtextauthor4 Changed text color author 4
27895 \end_layout
27896
27897 \begin_layout Description
27898 changedtextauthor5 Changed text color author 5
27899 \end_layout
27900
27901 \begin_layout Description
27902 collapsible Collapsible insets text color
27903 \end_layout
27904
27905 \begin_layout Description
27906 collapsibleframe Collapsible insets framecolor
27907 \end_layout
27908
27909 \begin_layout Description
27910 command Text color for command insets
27911 \end_layout
27912
27913 \begin_layout Description
27914 commandbg Background color for command insets
27915 \end_layout
27916
27917 \begin_layout Description
27918 commandframe Frame color for command insets
27919 \end_layout
27920
27921 \begin_layout Description
27922 commentbg Background color of comments
27923 \end_layout
27924
27925 \begin_layout Description
27926 commentlabel Label color for comments
27927 \end_layout
27928
27929 \begin_layout Description
27930 cursor Cursor color
27931 \end_layout
27932
27933 \begin_layout Description
27934 deletedtext Deleted text color
27935 \end_layout
27936
27937 \begin_layout Description
27938 deletedtextmodifier Deleted text modifying color
27939 \end_layout
27940
27941 \begin_layout Description
27942 depthbar Color for the depth bars in the margin
27943 \end_layout
27944
27945 \begin_layout Description
27946 eolmarker End of line marker color
27947 \end_layout
27948
27949 \begin_layout Description
27950 error Color of the \SpecialChar LaTeX
27951  error box
27952 \end_layout
27953
27954 \begin_layout Description
27955 footlabel Label color for footnotes
27956 \end_layout
27957
27958 \begin_layout Description
27959 foreground Foreground color
27960 \end_layout
27961
27962 \begin_layout Description
27963 graphicsbg Graphics inset background color
27964 \end_layout
27965
27966 \begin_layout Description
27967 greyedoutbg Background color of greyedout inset
27968 \end_layout
27969
27970 \begin_layout Description
27971 greyedoutlabel Label color for greyedout insets
27972 \end_layout
27973
27974 \begin_layout Description
27975 greyedouttext Color for greyedout inset text
27976 \end_layout
27977
27978 \begin_layout Description
27979 indexlabel Label color for index insets
27980 \end_layout
27981
27982 \begin_layout Description
27983 inlinecompletion Inline completion color
27984 \end_layout
27985
27986 \begin_layout Description
27987 insetbg Inset marker background color
27988 \end_layout
27989
27990 \begin_layout Description
27991 insetframe Inset marker frame color
27992 \end_layout
27993
27994 \begin_layout Description
27995 language Color for marking foreign language words
27996 \end_layout
27997
27998 \begin_layout Description
27999 latex Text color in \SpecialChar LaTeX
28000  mode
28001 \end_layout
28002
28003 \begin_layout Description
28004 listingsbg Background color of listings inset
28005 \end_layout
28006
28007 \begin_layout Description
28008 marginlabel Label color for margin notes
28009 \end_layout
28010
28011 \begin_layout Description
28012 math Math inset text color
28013 \end_layout
28014
28015 \begin_layout Description
28016 mathbg Math inset background color
28017 \end_layout
28018
28019 \begin_layout Description
28020 mathcorners Math inset frame color not under focus
28021 \end_layout
28022
28023 \begin_layout Description
28024 mathframe Math inset frame color under focus
28025 \end_layout
28026
28027 \begin_layout Description
28028 mathline Math line color
28029 \end_layout
28030
28031 \begin_layout Description
28032 mathmacrobg Macro math inset background color
28033 \end_layout
28034
28035 \begin_layout Description
28036 mathmacroblend Macro math blended color
28037 \end_layout
28038
28039 \begin_layout Description
28040 mathmacroframe Macro math frame color
28041 \end_layout
28042
28043 \begin_layout Description
28044 mathmacrohoverbg Macro math inset background color hovered
28045 \end_layout
28046
28047 \begin_layout Description
28048 mathmacrolabel Macro math label color
28049 \end_layout
28050
28051 \begin_layout Description
28052 mathmacronewarg Macro template color for new parameters
28053 \end_layout
28054
28055 \begin_layout Description
28056 mathmacrooldarg Macro template color for old parameters
28057 \end_layout
28058
28059 \begin_layout Description
28060 newpage New page color
28061 \end_layout
28062
28063 \begin_layout Description
28064 nonunique_inlinecompletion Inline completion color for the non-unique part
28065 \end_layout
28066
28067 \begin_layout Description
28068 notebg Background color of notes
28069 \end_layout
28070
28071 \begin_layout Description
28072 notelabel Label color for notes
28073 \end_layout
28074
28075 \begin_layout Description
28076 pagebreak Page break/line break color
28077 \end_layout
28078
28079 \begin_layout Description
28080 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28081 \end_layout
28082
28083 \begin_layout Description
28084 phantomtext Text color for phantom insets
28085 \end_layout
28086
28087 \begin_layout Description
28088 preview The color used for previews
28089 \end_layout
28090
28091 \begin_layout Description
28092 previewframe Preview frame color
28093 \end_layout
28094
28095 \begin_layout Description
28096 regexpframe Color for regexp frame
28097 \end_layout
28098
28099 \begin_layout Description
28100 scroll Color that indicates when a row can be scrolled 
28101 \end_layout
28102
28103 \begin_layout Description
28104 selection Background color of selected text
28105 \end_layout
28106
28107 \begin_layout Description
28108 selectiontext Foreground color of selected text
28109 \end_layout
28110
28111 \begin_layout Description
28112 shadedbg Background color of shaded box
28113 \end_layout
28114
28115 \begin_layout Description
28116 special Special chars text color
28117 \end_layout
28118
28119 \begin_layout Description
28120 tabularline Table line color
28121 \end_layout
28122
28123 \begin_layout Description
28124 tabularonoffline Table line color
28125 \end_layout
28126
28127 \begin_layout Description
28128 urllabel Label color for URL insets
28129 \end_layout
28130
28131 \begin_layout Description
28132 urltext Color for URL inset text
28133 \end_layout
28134
28135 \end_body
28136 \end_document