]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Some AutoNest polishment.
[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
12166 \change_inserted -712698321 1514534780
12167 \begin_inset Flex Code
12168 status collapsed
12169
12170 \begin_layout Plain Layout
12171
12172 \change_inserted -712698321 1514534780
12173 AutoNests
12174 \end_layout
12175
12176 \end_inset
12177
12178  Includes a comma-separated list of layout names that should be nested in
12179  and after the current one.
12180  Only makes sense for nestable layouts (such as environments) 
12181 \begin_inset Quotes eld
12182 \end_inset
12183
12184
12185 \begin_inset Flex Code
12186 status collapsed
12187
12188 \begin_layout Plain Layout
12189
12190 \change_inserted -712698321 1514538124
12191 EndAutoNests
12192 \end_layout
12193
12194 \end_inset
12195
12196
12197 \begin_inset Quotes erd
12198 \end_inset
12199
12200 .
12201 \end_layout
12202
12203 \begin_layout Description
12204 \begin_inset Flex Code
12205 status collapsed
12206
12207 \begin_layout Plain Layout
12208 BabelPreamble
12209 \end_layout
12210
12211 \end_inset
12212
12213  Note that this will completely override any prior 
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 BabelPreamble
12219 \end_layout
12220
12221 \end_inset
12222
12223  declaration for this style.
12224  Must end with 
12225 \begin_inset Quotes eld
12226 \end_inset
12227
12228
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 EndBabelPreamble
12234 \end_layout
12235
12236 \end_inset
12237
12238
12239 \begin_inset Quotes erd
12240 \end_inset
12241
12242 .
12243  See 
12244 \begin_inset CommandInset ref
12245 LatexCommand ref
12246 reference "subsec:I18n"
12247
12248 \end_inset
12249
12250  for details on its use.
12251 \end_layout
12252
12253 \begin_layout Description
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 BottomSep
12259 \end_layout
12260
12261 \end_inset
12262
12263  [
12264 \begin_inset Flex Code
12265 status collapsed
12266
12267 \begin_layout Plain Layout
12268 float=0
12269 \end_layout
12270
12271 \end_inset
12272
12273 ]
12274 \begin_inset Foot
12275 status collapsed
12276
12277 \begin_layout Plain Layout
12278 Note that a `float' here is a real number, such as: 1.5.
12279 \end_layout
12280
12281 \end_inset
12282
12283  The vertical space with which the last of a chain of paragraphs with this
12284  style is separated from the following paragraph.
12285  If the next paragraph has another style, the separations are not simply
12286  added, but the maximum is taken.
12287 \end_layout
12288
12289 \begin_layout Description
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294 Category
12295 \end_layout
12296
12297 \end_inset
12298
12299  [
12300 \begin_inset Flex Code
12301 status collapsed
12302
12303 \begin_layout Plain Layout
12304 string
12305 \end_layout
12306
12307 \end_inset
12308
12309 ] The category for this style.
12310  This is used to group related styles in the style combobox on the toolbar.
12311  Any string can be used, but you may want to use existing categories with
12312  your own styles.
12313  
12314 \end_layout
12315
12316 \begin_layout Description
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 CommandDepth
12322 \end_layout
12323
12324 \end_inset
12325
12326  Depth of XML command.
12327  Used only with XML-type formats.
12328 \end_layout
12329
12330 \begin_layout Description
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335 CopyStyle
12336 \end_layout
12337
12338 \end_inset
12339
12340  [
12341 \begin_inset Flex Code
12342 status collapsed
12343
12344 \begin_layout Plain Layout
12345 string
12346 \end_layout
12347
12348 \end_inset
12349
12350 ] Copies all the features of an existing style into the current one.
12351  
12352 \end_layout
12353
12354 \begin_layout Description
12355 \begin_inset Flex Code
12356 status collapsed
12357
12358 \begin_layout Plain Layout
12359 DependsOn
12360 \end_layout
12361
12362 \end_inset
12363
12364  [
12365 \begin_inset Flex Code
12366 status collapsed
12367
12368 \begin_layout Plain Layout
12369 <name>
12370 \end_layout
12371
12372 \end_inset
12373
12374 ] The name of a style whose preamble should be output 
12375 \emph on
12376 before
12377 \emph default
12378  this one.
12379  This allows to ensure some ordering of the preamble snippets when macros
12380  definitions depend on one another.
12381 \begin_inset Foot
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 Note that, besides that functionality, there is no way to ensure any ordering
12386  of preambles.
12387  The ordering that you see in a given version of \SpecialChar LyX
12388  may change without warning
12389  in later versions.
12390 \end_layout
12391
12392 \end_inset
12393
12394
12395 \end_layout
12396
12397 \begin_layout Description
12398 \begin_inset Flex Code
12399 status collapsed
12400
12401 \begin_layout Plain Layout
12402 EndLabeltype
12403 \end_layout
12404
12405 \end_inset
12406
12407  [
12408 \begin_inset Flex Code
12409 status collapsed
12410
12411 \begin_layout Plain Layout
12412
12413 \emph on
12414 No_Label
12415 \emph default
12416 , Box, Filled_Box, Static
12417 \end_layout
12418
12419 \end_inset
12420
12421 ] The type of label that stands at the end of the paragraph (or sequence
12422  of paragraphs if 
12423 \begin_inset Flex Code
12424 status collapsed
12425
12426 \begin_layout Plain Layout
12427 LatexType
12428 \end_layout
12429
12430 \end_inset
12431
12432  is
12433 \begin_inset Newline newline
12434 \end_inset
12435
12436
12437 \begin_inset Flex Code
12438 status collapsed
12439
12440 \begin_layout Plain Layout
12441 Environment
12442 \end_layout
12443
12444 \end_inset
12445
12446
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 Item_Environment
12452 \end_layout
12453
12454 \end_inset
12455
12456  or 
12457 \begin_inset Flex Code
12458 status collapsed
12459
12460 \begin_layout Plain Layout
12461 List_Environment
12462 \end_layout
12463
12464 \end_inset
12465
12466 ).
12467  
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 No_Label
12473 \end_layout
12474
12475 \end_inset
12476
12477  means 
12478 \begin_inset Quotes eld
12479 \end_inset
12480
12481 nothing
12482 \begin_inset Quotes erd
12483 \end_inset
12484
12485
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490 Box
12491 \end_layout
12492
12493 \end_inset
12494
12495  (resp.
12496 \begin_inset space \space{}
12497 \end_inset
12498
12499
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 Filled_Box
12505 \end_layout
12506
12507 \end_inset
12508
12509 ) is a white (resp.
12510 \begin_inset space ~
12511 \end_inset
12512
12513 black) square suitable for end of proof markers, 
12514 \begin_inset Flex Code
12515 status collapsed
12516
12517 \begin_layout Plain Layout
12518 Static
12519 \end_layout
12520
12521 \end_inset
12522
12523  is an explicit text string.
12524 \end_layout
12525
12526 \begin_layout Description
12527 \begin_inset Flex Code
12528 status collapsed
12529
12530 \begin_layout Plain Layout
12531 EndLabelString
12532 \end_layout
12533
12534 \end_inset
12535
12536  [
12537 \begin_inset Flex Code
12538 status collapsed
12539
12540 \begin_layout Plain Layout
12541 string=""
12542 \end_layout
12543
12544 \end_inset
12545
12546 ] The string used for a label with a 
12547 \begin_inset Flex Code
12548 status collapsed
12549
12550 \begin_layout Plain Layout
12551 Static
12552 \end_layout
12553
12554 \end_inset
12555
12556
12557 \begin_inset Newline newline
12558 \end_inset
12559
12560
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 EndLabelType
12566 \end_layout
12567
12568 \end_inset
12569
12570 .
12571  
12572 \end_layout
12573
12574 \begin_layout Description
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 Font
12580 \end_layout
12581
12582 \end_inset
12583
12584  The font used for both the text body 
12585 \emph on
12586 and
12587 \emph default
12588  the label.
12589  See 
12590 \begin_inset CommandInset ref
12591 LatexCommand ref
12592 reference "subsec:Font-description"
12593
12594 \end_inset
12595
12596 .
12597  Note that defining this font automatically defines the 
12598 \begin_inset Flex Code
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 LabelFont
12603 \end_layout
12604
12605 \end_inset
12606
12607  to the same value.
12608  So you should define this one first if you also want to define 
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 LabelFont
12614 \end_layout
12615
12616 \end_inset
12617
12618 .
12619 \end_layout
12620
12621 \begin_layout Description
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626 ForceLocal
12627 \end_layout
12628
12629 \end_inset
12630
12631  [
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 int=0
12637 \end_layout
12638
12639 \end_inset
12640
12641 ] Used for backporting new styles to stable \SpecialChar LyX
12642  versions.
12643  The first stable version that supports this tag is \SpecialChar LyX
12644  2.1.0.
12645  The argument is a number which may either be 0, -1 or any value greater
12646  than zero.
12647  If the 
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 ForceLocal
12653 \end_layout
12654
12655 \end_inset
12656
12657  flag of a style is greater than zero, it will always be written to the
12658  document header.
12659  If a .lyx file is read, the style definitions from the document header are
12660  added to the document class.
12661  Therefore even older \SpecialChar LyX
12662  versions can handle the style.
12663  The argument of 
12664 \begin_inset Flex Code
12665 status collapsed
12666
12667 \begin_layout Plain Layout
12668 ForceLocal
12669 \end_layout
12670
12671 \end_inset
12672
12673  is a version number: if the style is read, and the version number is less
12674  than the version number of the already existing style in the document class,
12675  the new style is ignored.
12676  If the version number is greater, the new style replaces the existing style.
12677  A value of -1 means an infinite version number, i.
12678 \begin_inset space \thinspace{}
12679 \end_inset
12680
12681 e.
12682 \begin_inset space \space{}
12683 \end_inset
12684
12685 the style is always used.
12686 \end_layout
12687
12688 \begin_layout Description
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 FreeSpacing
12694 \end_layout
12695
12696 \end_inset
12697
12698  [
12699 \begin_inset Flex Code
12700 status collapsed
12701
12702 \begin_layout Plain Layout
12703
12704 \emph on
12705 0
12706 \end_layout
12707
12708 \end_inset
12709
12710 ,
12711 \begin_inset space \thinspace{}
12712 \end_inset
12713
12714
12715 \begin_inset Flex Code
12716 status collapsed
12717
12718 \begin_layout Plain Layout
12719 1
12720 \end_layout
12721
12722 \end_inset
12723
12724 ] Usually \SpecialChar LyX
12725  does not allow you to insert more than one space between words,
12726  since a space is considered as the separation between two words, not a
12727  character or symbol of its own.
12728  This is a very fine thing but sometimes annoying, for example, when typing
12729  program code or plain \SpecialChar LaTeX
12730  code.
12731  For this reason, 
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 FreeSpacing
12737 \end_layout
12738
12739 \end_inset
12740
12741  can be enabled.
12742  Note that \SpecialChar LyX
12743  will create protected blanks for the additional blanks when
12744  in another mode than \SpecialChar LaTeX
12745 -mode.
12746 \end_layout
12747
12748 \begin_layout Description
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753 HTML*
12754 \end_layout
12755
12756 \end_inset
12757
12758  These tags are used with XHTML output.
12759  See 
12760 \begin_inset CommandInset ref
12761 LatexCommand ref
12762 reference "subsec:Paragraph-Style-XHTML"
12763
12764 \end_inset
12765
12766 .
12767 \end_layout
12768
12769 \begin_layout Description
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 InnerTag
12775 \end_layout
12776
12777 \end_inset
12778
12779  [FIXME] (Used only with XML-type formats.)
12780 \end_layout
12781
12782 \begin_layout Description
12783 \begin_inset Flex Code
12784 status collapsed
12785
12786 \begin_layout Plain Layout
12787 InPreamble
12788 \end_layout
12789
12790 \end_inset
12791
12792  [
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797
12798 \emph on
12799 0
12800 \end_layout
12801
12802 \end_inset
12803
12804 ,
12805 \begin_inset space \thinspace{}
12806 \end_inset
12807
12808
12809 \begin_inset Flex Code
12810 status collapsed
12811
12812 \begin_layout Plain Layout
12813 1
12814 \end_layout
12815
12816 \end_inset
12817
12818 ] If 
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823 1
12824 \end_layout
12825
12826 \end_inset
12827
12828 , marks the style as to be included in the document preamble and not in
12829  the document body.
12830  This is useful for document classes that want such information as the title
12831  and author to appear in the preamble.
12832  Note that this works only for styles for which the 
12833 \begin_inset Flex Code
12834 status collapsed
12835
12836 \begin_layout Plain Layout
12837 LatexType
12838 \end_layout
12839
12840 \end_inset
12841
12842  is 
12843 \begin_inset Flex Code
12844 status collapsed
12845
12846 \begin_layout Plain Layout
12847 Command
12848 \end_layout
12849
12850 \end_inset
12851
12852  or 
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 Paragraph
12858 \end_layout
12859
12860 \end_inset
12861
12862 .
12863 \end_layout
12864
12865 \begin_layout Description
12866 \begin_inset Flex Code
12867 status collapsed
12868
12869 \begin_layout Plain Layout
12870 InTitle
12871 \end_layout
12872
12873 \end_inset
12874
12875  [
12876 \begin_inset Flex Code
12877 status collapsed
12878
12879 \begin_layout Plain Layout
12880
12881 \emph on
12882 0
12883 \end_layout
12884
12885 \end_inset
12886
12887 ,
12888 \begin_inset space \thinspace{}
12889 \end_inset
12890
12891
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 1
12897 \end_layout
12898
12899 \end_inset
12900
12901 ] If 
12902 \begin_inset Flex Code
12903 status collapsed
12904
12905 \begin_layout Plain Layout
12906 1
12907 \end_layout
12908
12909 \end_inset
12910
12911 , marks the style as being part of a title block (see also the 
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 TitleLatexType
12917 \end_layout
12918
12919 \end_inset
12920
12921  and 
12922 \begin_inset Flex Code
12923 status collapsed
12924
12925 \begin_layout Plain Layout
12926 TitleLatexName
12927 \end_layout
12928
12929 \end_inset
12930
12931  global entries).
12932 \end_layout
12933
12934 \begin_layout Description
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939 IsTocCaption
12940 \end_layout
12941
12942 \end_inset
12943
12944  [
12945 \begin_inset Flex Code
12946 status collapsed
12947
12948 \begin_layout Plain Layout
12949
12950 \emph on
12951 0
12952 \end_layout
12953
12954 \end_inset
12955
12956 ,
12957 \begin_inset space \thinspace{}
12958 \end_inset
12959
12960
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 1
12966 \end_layout
12967
12968 \end_inset
12969
12970 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
12971  of its contents in its item in the table of contents.
12972  Otherwise, only the label, if it exists, appears.
12973 \end_layout
12974
12975 \begin_layout Description
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 ItemCommand
12981 \end_layout
12982
12983 \end_inset
12984
12985  [
12986 \begin_inset Flex Code
12987 status collapsed
12988
12989 \begin_layout Plain Layout
12990 string="item"
12991 \end_layout
12992
12993 \end_inset
12994
12995 ] The \SpecialChar LaTeX
12996  command sequence declaring an item in a list.
12997  The command is to be defined without the preceding backslash (the default
12998  is 
12999 \begin_inset Quotes eld
13000 \end_inset
13001
13002 item
13003 \begin_inset Quotes erd
13004 \end_inset
13005
13006 , resulting in 
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011
13012 \backslash
13013 item
13014 \end_layout
13015
13016 \end_inset
13017
13018  in the \SpecialChar LaTeX
13019  output).
13020 \end_layout
13021
13022 \begin_layout Description
13023 \begin_inset Flex Code
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027 ItemSep
13028 \end_layout
13029
13030 \end_inset
13031
13032  [
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 float=0
13038 \end_layout
13039
13040 \end_inset
13041
13042 ] This provides extra space between paragraphs that have the same style.
13043  If you put other styles into an environment, each is separated with the
13044  environment's 
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049 ParSep
13050 \end_layout
13051
13052 \end_inset
13053
13054 .
13055  But the whole items of the environment are additionally separated with
13056  this 
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 ItemSep
13062 \end_layout
13063
13064 \end_inset
13065
13066 .
13067  Note that this is a
13068 \emph on
13069  multiplier.
13070 \end_layout
13071
13072 \begin_layout Description
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 ItemTag
13078 \end_layout
13079
13080 \end_inset
13081
13082  [FIXME] (Used only with XML-type formats.)
13083 \end_layout
13084
13085 \begin_layout Description
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 KeepEmpty
13091 \end_layout
13092
13093 \end_inset
13094
13095  [
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100
13101 \emph on
13102 0
13103 \end_layout
13104
13105 \end_inset
13106
13107 ,
13108 \begin_inset space \thinspace{}
13109 \end_inset
13110
13111
13112 \begin_inset Flex Code
13113 status collapsed
13114
13115 \begin_layout Plain Layout
13116 1
13117 \end_layout
13118
13119 \end_inset
13120
13121 ] Usually \SpecialChar LyX
13122  does not allow you to leave a paragraph empty, since it would
13123  lead to empty \SpecialChar LaTeX
13124  output.
13125  There are some cases where this could be desirable however: in a letter
13126  template, the required fields can be provided as empty fields, so that
13127  people do not forget them; in some special classes, a style can be used
13128  as some kind of break, which does not contain actual text.
13129 \end_layout
13130
13131 \begin_layout Description
13132 \begin_inset Flex Code
13133 status collapsed
13134
13135 \begin_layout Plain Layout
13136 LabelBottomsep
13137 \end_layout
13138
13139 \end_inset
13140
13141  [
13142 \begin_inset Flex Code
13143 status collapsed
13144
13145 \begin_layout Plain Layout
13146 float=0
13147 \end_layout
13148
13149 \end_inset
13150
13151 ] The vertical space between the label and the text body.
13152  Only used for labels that are above the text body (
13153 \begin_inset Flex Code
13154 status collapsed
13155
13156 \begin_layout Plain Layout
13157 Top_Environment
13158 \end_layout
13159
13160 \end_inset
13161
13162  and
13163 \begin_inset Newline newline
13164 \end_inset
13165
13166
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 Centered_Top_Environment
13172 \end_layout
13173
13174 \end_inset
13175
13176 ).
13177 \end_layout
13178
13179 \begin_layout Description
13180 \begin_inset Flex Code
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184 LabelCounter
13185 \end_layout
13186
13187 \end_inset
13188
13189  [
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 string=""
13195 \end_layout
13196
13197 \end_inset
13198
13199 ] The name of the counter for automatic numbering.
13200  In order to have the counter appear with your label, you will need to reference
13201  it in the 
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206
13207 \family typewriter
13208 LabelString
13209 \end_layout
13210
13211 \end_inset
13212
13213 .
13214  This will work with 
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 LabelType
13220 \end_layout
13221
13222 \end_inset
13223
13224 s, 
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 Static
13230 \end_layout
13231
13232 \end_inset
13233
13234
13235 \begin_inset Flex Code
13236 status collapsed
13237
13238 \begin_layout Plain Layout
13239 Above
13240 \end_layout
13241
13242 \end_inset
13243
13244  and 
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 Centered
13250 \end_layout
13251
13252 \end_inset
13253
13254 , at least.
13255 \begin_inset Newline newline
13256 \end_inset
13257
13258 This 
13259 \emph on
13260 may
13261 \emph default
13262  also be given if 
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 LabelType
13268 \end_layout
13269
13270 \end_inset
13271
13272  is 
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 Enumerate
13278 \end_layout
13279
13280 \end_inset
13281
13282 , though this case is a bit complicated.
13283  Suppose you declare 
13284 \begin_inset Quotes eld
13285 \end_inset
13286
13287
13288 \begin_inset Flex Code
13289 status collapsed
13290
13291 \begin_layout Plain Layout
13292 LabelCounter myenum
13293 \end_layout
13294
13295 \end_inset
13296
13297
13298 \begin_inset Quotes erd
13299 \end_inset
13300
13301 .
13302  Then the actual counters used are 
13303 \begin_inset Flex Code
13304 status collapsed
13305
13306 \begin_layout Plain Layout
13307 myenumi
13308 \end_layout
13309
13310 \end_inset
13311
13312
13313 \begin_inset Flex Code
13314 status collapsed
13315
13316 \begin_layout Plain Layout
13317 myenumii
13318 \end_layout
13319
13320 \end_inset
13321
13322
13323 \begin_inset Flex Code
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327 myenumiii
13328 \end_layout
13329
13330 \end_inset
13331
13332  and 
13333 \begin_inset Flex Code
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337 myenumiv
13338 \end_layout
13339
13340 \end_inset
13341
13342 , much as in \SpecialChar LaTeX
13343 .
13344  These counters must all be declared separately.
13345 \begin_inset Newline newline
13346 \end_inset
13347
13348 See 
13349 \begin_inset CommandInset ref
13350 LatexCommand ref
13351 reference "subsec:Counters"
13352
13353 \end_inset
13354
13355  for details on counters.
13356 \end_layout
13357
13358 \begin_layout Description
13359 \begin_inset Flex Code
13360 status collapsed
13361
13362 \begin_layout Plain Layout
13363 LabelFont
13364 \end_layout
13365
13366 \end_inset
13367
13368  The font used for the label.
13369  See 
13370 \begin_inset CommandInset ref
13371 LatexCommand ref
13372 reference "subsec:Font-description"
13373
13374 \end_inset
13375
13376 .
13377 \end_layout
13378
13379 \begin_layout Description
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384 LabelIndent
13385 \end_layout
13386
13387 \end_inset
13388
13389  [
13390 \begin_inset Flex Code
13391 status collapsed
13392
13393 \begin_layout Plain Layout
13394 string=""
13395 \end_layout
13396
13397 \end_inset
13398
13399 ] Text that indicates how far a label should be indented.
13400 \end_layout
13401
13402 \begin_layout Description
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 LabelSep
13408 \end_layout
13409
13410 \end_inset
13411
13412  [
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 string=""
13418 \end_layout
13419
13420 \end_inset
13421
13422 ] Text that indicates the amount of horizontal space between the label and
13423  the text body.
13424  Only used for labels that are not above the text body.
13425 \end_layout
13426
13427 \begin_layout Description
13428 \begin_inset Flex Code
13429 status collapsed
13430
13431 \begin_layout Plain Layout
13432 LabelString
13433 \end_layout
13434
13435 \end_inset
13436
13437  [
13438 \begin_inset Flex Code
13439 status collapsed
13440
13441 \begin_layout Plain Layout
13442 string=""
13443 \end_layout
13444
13445 \end_inset
13446
13447 ] The string used for the label.
13448  When 
13449 \begin_inset Flex Code
13450 status collapsed
13451
13452 \begin_layout Plain Layout
13453 LabelCounter
13454 \end_layout
13455
13456 \end_inset
13457
13458  is set, this string can be contain the special formatting commands described
13459  in 
13460 \begin_inset CommandInset ref
13461 LatexCommand ref
13462 reference "subsec:Counters"
13463
13464 \end_inset
13465
13466 .
13467 \end_layout
13468
13469 \begin_layout Description
13470 \begin_inset Flex Code
13471 status collapsed
13472
13473 \begin_layout Plain Layout
13474 LabelStringAppendix
13475 \end_layout
13476
13477 \end_inset
13478
13479  [
13480 \begin_inset Flex Code
13481 status collapsed
13482
13483 \begin_layout Plain Layout
13484 string=""
13485 \end_layout
13486
13487 \end_inset
13488
13489 ] This is used inside the appendix instead of
13490 \begin_inset Newline newline
13491 \end_inset
13492
13493
13494 \begin_inset Flex Code
13495 status collapsed
13496
13497 \begin_layout Plain Layout
13498 LabelString
13499 \end_layout
13500
13501 \end_inset
13502
13503 .
13504  Note that every 
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 LabelString
13510 \end_layout
13511
13512 \end_inset
13513
13514  statement resets
13515 \begin_inset Newline newline
13516 \end_inset
13517
13518
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 LabelStringAppendix
13524 \end_layout
13525
13526 \end_inset
13527
13528  too.
13529 \end_layout
13530
13531 \begin_layout Description
13532 \begin_inset Flex Code
13533 status collapsed
13534
13535 \begin_layout Plain Layout
13536 LabelTag
13537 \end_layout
13538
13539 \end_inset
13540
13541  [FIXME] (Used only with XML-type formats.)
13542 \end_layout
13543
13544 \begin_layout Description
13545 \begin_inset Flex Code
13546 status collapsed
13547
13548 \begin_layout Plain Layout
13549 LabelType
13550 \end_layout
13551
13552 \end_inset
13553
13554  [
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559
13560 \emph on
13561 No_Label
13562 \emph default
13563 , Manual, Static, Above, 
13564 \begin_inset Newline newline
13565 \end_inset
13566
13567 Centered, Sensitive, Enumerate,
13568 \begin_inset Newline newline
13569 \end_inset
13570
13571 Itemize, Bibliography
13572 \end_layout
13573
13574 \end_inset
13575
13576 ]
13577 \end_layout
13578
13579 \begin_deeper
13580 \begin_layout Description
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 Manual
13586 \end_layout
13587
13588 \end_inset
13589
13590  means the label is the very first word (up to the first real blank).
13591  Use protected spaces if you want more than one word as the label.
13592  
13593 \end_layout
13594
13595 \begin_layout Description
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 Static
13601 \end_layout
13602
13603 \end_inset
13604
13605  means the label is simply what is declared as 
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610 LabelString
13611 \end_layout
13612
13613 \end_inset
13614
13615 .
13616  This will be displayed 
13617 \begin_inset Quotes eld
13618 \end_inset
13619
13620 inline
13621 \begin_inset Quotes erd
13622 \end_inset
13623
13624 , at the beginning of the paragraph.
13625  If the 
13626 \begin_inset Flex Code
13627 status collapsed
13628
13629 \begin_layout Plain Layout
13630 LatexType
13631 \end_layout
13632
13633 \end_inset
13634
13635  is 
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640 Environment
13641 \end_layout
13642
13643 \end_inset
13644
13645 , then it will be displayed only in the first paragraph of any sequence
13646  of paragraphs with the same 
13647 \begin_inset Flex Code
13648 status collapsed
13649
13650 \begin_layout Plain Layout
13651 Style
13652 \end_layout
13653
13654 \end_inset
13655
13656 .
13657 \end_layout
13658
13659 \begin_layout Description
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 Above
13665 \end_layout
13666
13667 \end_inset
13668
13669
13670 \begin_inset space ~
13671 \end_inset
13672
13673 and
13674 \begin_inset space ~
13675 \end_inset
13676
13677
13678 \begin_inset Flex Code
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682 Centered
13683 \end_layout
13684
13685 \end_inset
13686
13687  are special cases of 
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692 Static
13693 \end_layout
13694
13695 \end_inset
13696
13697 .
13698  The label will be printed above the paragraph either at the beginning of
13699  the line or centered.
13700 \end_layout
13701
13702 \begin_layout Description
13703 \begin_inset Flex Code
13704 status collapsed
13705
13706 \begin_layout Plain Layout
13707 Sensitive
13708 \end_layout
13709
13710 \end_inset
13711
13712  is a special case for the caption-labels 
13713 \begin_inset Quotes eld
13714 \end_inset
13715
13716 Figure
13717 \begin_inset Quotes erd
13718 \end_inset
13719
13720  and 
13721 \begin_inset Quotes eld
13722 \end_inset
13723
13724 Table
13725 \begin_inset Quotes erd
13726 \end_inset
13727
13728 .
13729 \begin_inset Newline newline
13730 \end_inset
13731
13732
13733 \begin_inset Flex Code
13734 status collapsed
13735
13736 \begin_layout Plain Layout
13737 Sensitive
13738 \end_layout
13739
13740 \end_inset
13741
13742  means the (hardcoded) label string depends on the kind of float: It is
13743  hardcoded to be `FloatType N', where N is the value of the counter associated
13744  with the float.
13745  For the case that a caption is inserted outside of a float the 
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 LabelString
13751 \end_layout
13752
13753 \end_inset
13754
13755  will appear as 
13756 \begin_inset Quotes eld
13757 \end_inset
13758
13759 Senseless!
13760 \begin_inset Quotes erd
13761 \end_inset
13762
13763 .
13764 \end_layout
13765
13766 \begin_layout Description
13767 \begin_inset Flex Code
13768 status collapsed
13769
13770 \begin_layout Plain Layout
13771 Enumerate
13772 \end_layout
13773
13774 \end_inset
13775
13776  produces the usual sort of enumeration labels.
13777  The number type needs to be set in the 
13778 \family sans
13779 Counter
13780 \family default
13781 , see 
13782 \begin_inset CommandInset ref
13783 LatexCommand ref
13784 reference "subsec:Counters"
13785
13786 \end_inset
13787
13788 .
13789 \end_layout
13790
13791 \begin_layout Description
13792 \begin_inset Flex Code
13793 status collapsed
13794
13795 \begin_layout Plain Layout
13796 Itemize
13797 \end_layout
13798
13799 \end_inset
13800
13801  produces various bullets at the different levels.
13802  The bullet types displayed can be set via 
13803 \begin_inset Flex Noun
13804 status collapsed
13805
13806 \begin_layout Plain Layout
13807 Document\SpecialChar menuseparator
13808 Settings\SpecialChar menuseparator
13809 Bullets
13810 \end_layout
13811
13812 \end_inset
13813
13814 .
13815 \end_layout
13816
13817 \begin_layout Description
13818 \begin_inset Flex Code
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822 Bibliography
13823 \end_layout
13824
13825 \end_inset
13826
13827  should be used only with 
13828 \begin_inset Flex Code
13829 status collapsed
13830
13831 \begin_layout Plain Layout
13832 LatexType BibEnvironment
13833 \end_layout
13834
13835 \end_inset
13836
13837 .
13838 \end_layout
13839
13840 \end_deeper
13841 \begin_layout Description
13842 \begin_inset Flex Code
13843 status collapsed
13844
13845 \begin_layout Plain Layout
13846 LangPreamble
13847 \end_layout
13848
13849 \end_inset
13850
13851  Note that this will completely override any prior 
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 LangPreamble
13857 \end_layout
13858
13859 \end_inset
13860
13861  declaration for this style.
13862  Must end with 
13863 \begin_inset Quotes eld
13864 \end_inset
13865
13866
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 EndLangPreamble
13872 \end_layout
13873
13874 \end_inset
13875
13876
13877 \begin_inset Quotes erd
13878 \end_inset
13879
13880 .
13881  See 
13882 \begin_inset CommandInset ref
13883 LatexCommand ref
13884 reference "subsec:I18n"
13885
13886 \end_inset
13887
13888  for details on its use.
13889 \end_layout
13890
13891 \begin_layout Description
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 LatexName
13897 \end_layout
13898
13899 \end_inset
13900
13901  [
13902 \begin_inset Flex Code
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 <name>
13907 \end_layout
13908
13909 \end_inset
13910
13911 ] The name of the corresponding \SpecialChar LaTeX
13912  stuff.
13913  Either the environment or command name.
13914 \end_layout
13915
13916 \begin_layout Description
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 LatexParam
13922 \end_layout
13923
13924 \end_inset
13925
13926  [
13927 \begin_inset Flex Code
13928 status collapsed
13929
13930 \begin_layout Plain Layout
13931 <parameter>
13932 \end_layout
13933
13934 \end_inset
13935
13936 ] An optional parameter for the corresponding 
13937 \begin_inset Flex Code
13938 status collapsed
13939
13940 \begin_layout Plain Layout
13941 LatexName
13942 \end_layout
13943
13944 \end_inset
13945
13946  stuff.
13947  This parameter cannot be changed from within \SpecialChar LyX
13948  (use 
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 Argument
13954 \end_layout
13955
13956 \end_inset
13957
13958  for customizable parameters).
13959  This will be output as is after all \SpecialChar LaTeX
13960  
13961 \begin_inset Flex Code
13962 status collapsed
13963
13964 \begin_layout Plain Layout
13965 Argument
13966 \end_layout
13967
13968 \end_inset
13969
13970 s.
13971 \end_layout
13972
13973 \begin_layout Description
13974 \begin_inset Flex Code
13975 status collapsed
13976
13977 \begin_layout Plain Layout
13978 LatexType
13979 \end_layout
13980
13981 \end_inset
13982
13983  [
13984 \begin_inset Flex Code
13985 status collapsed
13986
13987 \begin_layout Plain Layout
13988
13989 \emph on
13990 Paragraph
13991 \emph default
13992 , Command, Environment, Item_Environment,
13993 \begin_inset Newline newline
13994 \end_inset
13995
13996 List_Environment, Bib_Environment
13997 \end_layout
13998
13999 \end_inset
14000
14001 ] How the style should be translated into \SpecialChar LaTeX
14002 .
14003 \begin_inset Foot
14004 status collapsed
14005
14006 \begin_layout Plain Layout
14007 \begin_inset Flex Code
14008 status collapsed
14009
14010 \begin_layout Plain Layout
14011 LatexType
14012 \end_layout
14013
14014 \end_inset
14015
14016  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14017  Visit the SGML class files for specific examples.
14018 \end_layout
14019
14020 \end_inset
14021
14022
14023 \end_layout
14024
14025 \begin_deeper
14026 \begin_layout Description
14027 \begin_inset Flex Code
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 Paragraph
14032 \end_layout
14033
14034 \end_inset
14035
14036  means nothing special.
14037 \end_layout
14038
14039 \begin_layout Description
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 Command
14045 \end_layout
14046
14047 \end_inset
14048
14049  means 
14050 \begin_inset Flex Code
14051 status collapsed
14052
14053 \begin_layout Plain Layout
14054
14055 \backslash
14056
14057 \emph on
14058 LatexName
14059 \emph default
14060 {\SpecialChar ldots
14061 }
14062 \end_layout
14063
14064 \end_inset
14065
14066 .
14067 \end_layout
14068
14069 \begin_layout Description
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 Environment
14075 \end_layout
14076
14077 \end_inset
14078
14079  means 
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084
14085 \backslash
14086 begin{
14087 \emph on
14088 LatexName
14089 \emph default
14090 }\SpecialChar ldots
14091
14092 \backslash
14093 end{
14094 \emph on
14095 LatexName
14096 \emph default
14097 }
14098 \end_layout
14099
14100 \end_inset
14101
14102 .
14103  
14104 \end_layout
14105
14106 \begin_layout Description
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 Item_Environment
14112 \end_layout
14113
14114 \end_inset
14115
14116  is the same as 
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 Environment
14122 \end_layout
14123
14124 \end_inset
14125
14126 , except that an 
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131
14132 \backslash
14133 item
14134 \end_layout
14135
14136 \end_inset
14137
14138  is generated for each paragraph of this environment.
14139  
14140 \end_layout
14141
14142 \begin_layout Description
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 List_Environment
14148 \end_layout
14149
14150 \end_inset
14151
14152  is the same as 
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 Item_Environment
14158 \end_layout
14159
14160 \end_inset
14161
14162 , except that
14163 \begin_inset Newline newline
14164 \end_inset
14165
14166
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 LabelWidthString
14172 \end_layout
14173
14174 \end_inset
14175
14176  is passed as an argument to the environment.
14177 \begin_inset Newline newline
14178 \end_inset
14179
14180
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 LabelWidthString
14186 \end_layout
14187
14188 \end_inset
14189
14190  can be defined in the 
14191 \begin_inset Flex Noun
14192 status collapsed
14193
14194 \begin_layout Plain Layout
14195 Edit\SpecialChar menuseparator
14196 Paragraph
14197 \begin_inset space ~
14198 \end_inset
14199
14200 settings
14201 \end_layout
14202
14203 \end_inset
14204
14205  dialog.
14206 \end_layout
14207
14208 \begin_layout Description
14209 \begin_inset Flex Code
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213 Bib_Environment
14214 \end_layout
14215
14216 \end_inset
14217
14218  is like 
14219 \begin_inset Flex Code
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223 Environment
14224 \end_layout
14225
14226 \end_inset
14227
14228  but adds the necessary mandatory argument (the longest label) to the begin
14229  statement of the bibliography environment:
14230 \begin_inset Newline newline
14231 \end_inset
14232
14233
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238
14239 \backslash
14240 begin{thebibliography}{99}
14241 \end_layout
14242
14243 \end_inset
14244
14245 .
14246  It is therefore only useful for bibliography environments.
14247  The default longest label 
14248 \begin_inset Quotes eld
14249 \end_inset
14250
14251 99
14252 \begin_inset Quotes erd
14253 \end_inset
14254
14255  can be changed by the user in the paragraph settings of a bibliography
14256  item.
14257 \end_layout
14258
14259 \begin_layout Standard
14260 Putting the last few things together, the \SpecialChar LaTeX
14261  output will be either: 
14262 \end_layout
14263
14264 \begin_layout LyX-Code
14265
14266 \backslash
14267 LatexName[LatexParam]{\SpecialChar ldots
14268 }
14269 \end_layout
14270
14271 \begin_layout Standard
14272 or: 
14273 \end_layout
14274
14275 \begin_layout LyX-Code
14276
14277 \backslash
14278 begin{LatexName}[LatexParam] \SpecialChar ldots
14279  
14280 \backslash
14281 end{LatexName}.
14282 \end_layout
14283
14284 \begin_layout Standard
14285 depending upon the \SpecialChar LaTeX
14286  type.
14287 \end_layout
14288
14289 \end_deeper
14290 \begin_layout Description
14291 \begin_inset Flex Code
14292 status collapsed
14293
14294 \begin_layout Plain Layout
14295 LeftDelim
14296 \end_layout
14297
14298 \end_inset
14299
14300  [
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 string
14306 \end_layout
14307
14308 \end_inset
14309
14310 ] A string that is put at the beginning of the style content.
14311  A line break in the output can be indicated by 
14312 \begin_inset Flex Code
14313 status collapsed
14314
14315 \begin_layout Plain Layout
14316 <br/>
14317 \end_layout
14318
14319 \end_inset
14320
14321 .
14322 \end_layout
14323
14324 \begin_layout Description
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 LeftMargin
14330 \end_layout
14331
14332 \end_inset
14333
14334  [
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 string=""
14340 \end_layout
14341
14342 \end_inset
14343
14344 ] If you put styles into environments, the different 
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349 LeftMargin
14350 \end_layout
14351
14352 \end_inset
14353
14354  are not simply added, but added with a factor 
14355 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14356 \end_inset
14357
14358 .
14359  Note that this parameter is also used when 
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 Margin
14365 \end_layout
14366
14367 \end_inset
14368
14369  is defined as 
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 Manual
14375 \end_layout
14376
14377 \end_inset
14378
14379  or 
14380 \begin_inset Flex Code
14381 status collapsed
14382
14383 \begin_layout Plain Layout
14384 Dynamic
14385 \end_layout
14386
14387 \end_inset
14388
14389 .
14390  Then it is added to the manual or dynamic margin.
14391 \begin_inset Newline newline
14392 \end_inset
14393
14394 For example 
14395 \begin_inset Quotes eld
14396 \end_inset
14397
14398
14399 \begin_inset Flex Code
14400 status collapsed
14401
14402 \begin_layout Plain Layout
14403 MM
14404 \end_layout
14405
14406 \end_inset
14407
14408
14409 \begin_inset Quotes erd
14410 \end_inset
14411
14412  means that the paragraph is indented with the width of 
14413 \begin_inset Quotes eld
14414 \end_inset
14415
14416
14417 \begin_inset Flex Code
14418 status collapsed
14419
14420 \begin_layout Plain Layout
14421 MM
14422 \end_layout
14423
14424 \end_inset
14425
14426
14427 \begin_inset Quotes erd
14428 \end_inset
14429
14430  in the normal font.
14431  You can get a negative width by prefixing the string with 
14432 \begin_inset Quotes eld
14433 \end_inset
14434
14435
14436 \begin_inset Flex Code
14437 status collapsed
14438
14439 \begin_layout Plain Layout
14440 -
14441 \end_layout
14442
14443 \end_inset
14444
14445
14446 \begin_inset Quotes erd
14447 \end_inset
14448
14449 .
14450  This way was chosen so that the look is the same with each used screen
14451  font.
14452 \end_layout
14453
14454 \begin_layout Description
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459 Margin
14460 \end_layout
14461
14462 \end_inset
14463
14464  [
14465 \begin_inset Flex Code
14466 status collapsed
14467
14468 \begin_layout Plain Layout
14469
14470 \emph on
14471 Static
14472 \emph default
14473 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14474 \end_layout
14475
14476 \end_inset
14477
14478
14479 \begin_inset Newline newline
14480 \end_inset
14481
14482 The kind of margin that the style has on the left side.
14483 \end_layout
14484
14485 \begin_deeper
14486 \begin_layout Description
14487 \begin_inset Flex Code
14488 status collapsed
14489
14490 \begin_layout Plain Layout
14491 Static
14492 \end_layout
14493
14494 \end_inset
14495
14496  just means a fixed margin.
14497 \end_layout
14498
14499 \begin_layout Description
14500 \begin_inset Flex Code
14501 status collapsed
14502
14503 \begin_layout Plain Layout
14504 Manual
14505 \end_layout
14506
14507 \end_inset
14508
14509  means that the left margin depends on the string entered in the 
14510 \begin_inset Flex Noun
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 Edit\SpecialChar menuseparator
14515 Paragraph
14516 \begin_inset space ~
14517 \end_inset
14518
14519 Settings
14520 \end_layout
14521
14522 \end_inset
14523
14524  dialog.
14525  This is used to typeset nice lists without tabulators.
14526 \end_layout
14527
14528 \begin_layout Description
14529 \begin_inset Flex Code
14530 status collapsed
14531
14532 \begin_layout Plain Layout
14533 Dynamic
14534 \end_layout
14535
14536 \end_inset
14537
14538  means that the margin depends on the size of the label.
14539  This is used for automatic enumerated headlines.
14540  It is obvious that the headline 
14541 \begin_inset Quotes eld
14542 \end_inset
14543
14544 5.4.3.2.1 Very long headline
14545 \begin_inset Quotes erd
14546 \end_inset
14547
14548  must have a wider left margin (as wide as 
14549 \begin_inset Quotes eld
14550 \end_inset
14551
14552 5.4.3.2.1
14553 \begin_inset Quotes erd
14554 \end_inset
14555
14556  plus the space) than 
14557 \begin_inset Quotes eld
14558 \end_inset
14559
14560 3.2 Very long headline
14561 \begin_inset Quotes erd
14562 \end_inset
14563
14564 , even if standard 
14565 \begin_inset Quotes eld
14566 \end_inset
14567
14568 word processors
14569 \begin_inset Quotes erd
14570 \end_inset
14571
14572  are not able to do this.
14573 \end_layout
14574
14575 \begin_layout Description
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580 First_Dynamic
14581 \end_layout
14582
14583 \end_inset
14584
14585  is similar, but only the very first row of the paragraph is dynamic, while
14586  the others are static; this is used, for example, for descriptions.
14587 \end_layout
14588
14589 \begin_layout Description
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 Right_Address_Box
14595 \end_layout
14596
14597 \end_inset
14598
14599  means the margin is chosen in a way that the longest row of this paragraph
14600  fits to the right margin.
14601  This is used to typeset an address on the right edge of the page.
14602 \end_layout
14603
14604 \end_deeper
14605 \begin_layout Description
14606 \begin_inset Flex Code
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 NeedProtect
14611 \end_layout
14612
14613 \end_inset
14614
14615  [
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620
14621 \emph on
14622 0
14623 \end_layout
14624
14625 \end_inset
14626
14627 ,
14628 \begin_inset space \thinspace{}
14629 \end_inset
14630
14631
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 1
14637 \end_layout
14638
14639 \end_inset
14640
14641 ] Whether fragile commands in this style should be 
14642 \begin_inset Flex Code
14643 status collapsed
14644
14645 \begin_layout Plain Layout
14646
14647 \backslash
14648 protect
14649 \end_layout
14650
14651 \end_inset
14652
14653 'ed.
14654  (Note: This is 
14655 \emph on
14656 not
14657 \emph default
14658  whether this command should itself be protected.)
14659 \end_layout
14660
14661 \begin_layout Description
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 Newline
14667 \end_layout
14668
14669 \end_inset
14670
14671  [
14672 \begin_inset Flex Code
14673 status collapsed
14674
14675 \begin_layout Plain Layout
14676 0
14677 \end_layout
14678
14679 \end_inset
14680
14681 ,
14682 \begin_inset space \thinspace{}
14683 \end_inset
14684
14685
14686 \begin_inset Flex Code
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690
14691 \emph on
14692 1
14693 \end_layout
14694
14695 \end_inset
14696
14697 ] Whether newlines are translated into \SpecialChar LaTeX
14698  newlines (
14699 \begin_inset Flex Code
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703
14704 \backslash
14705
14706 \backslash
14707
14708 \end_layout
14709
14710 \end_inset
14711
14712 ) or not.
14713  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14714  editing
14715  inside \SpecialChar LyX
14716 .
14717 \end_layout
14718
14719 \begin_layout Description
14720 \begin_inset Flex Code
14721 status collapsed
14722
14723 \begin_layout Plain Layout
14724 NextNoIndent
14725 \end_layout
14726
14727 \end_inset
14728
14729  [
14730 \begin_inset Flex Code
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734
14735 \emph on
14736 0
14737 \end_layout
14738
14739 \end_inset
14740
14741 ,
14742 \begin_inset space \thinspace{}
14743 \end_inset
14744
14745
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 1
14751 \end_layout
14752
14753 \end_inset
14754
14755 ] If set to true, and if 
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 DefaultStyle
14761 \end_layout
14762
14763 \end_inset
14764
14765  (usually 
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 Standard
14771 \end_layout
14772
14773 \end_inset
14774
14775 ) paragraphs are being indented, then the indentation of such a paragraph
14776  following one of this type will be suppressed.
14777  (So this will not affect the display of non-default paragraphs.)
14778 \end_layout
14779
14780 \begin_layout Description
14781 \begin_inset Flex Code
14782 status collapsed
14783
14784 \begin_layout Plain Layout
14785 ObsoletedBy
14786 \end_layout
14787
14788 \end_inset
14789
14790  [
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 <name>
14796 \end_layout
14797
14798 \end_inset
14799
14800 ] Name of a style that has replaced this style.
14801  This is used to rename a style, while keeping backward compatibility.
14802 \end_layout
14803
14804 \begin_layout Description
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 ParagraphGroup
14810 \end_layout
14811
14812 \end_inset
14813
14814  [
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 0
14820 \end_layout
14821
14822 \end_inset
14823
14824 ,
14825 \begin_inset space \thinspace{}
14826 \end_inset
14827
14828
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 1
14834 \end_layout
14835
14836 \end_inset
14837
14838 ] Determines whether consecutive paragraphs of the same type are treated
14839  as belonging together.
14840  This has the effect that the 
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 GuiLabel
14846 \end_layout
14847
14848 \end_inset
14849
14850  is only printed once before such a group.
14851  By default, this is true for 
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 LaTeXType
14857 \end_layout
14858
14859 \end_inset
14860
14861  
14862 \begin_inset Flex Code
14863 status collapsed
14864
14865 \begin_layout Plain Layout
14866 Environment
14867 \end_layout
14868
14869 \end_inset
14870
14871  and 
14872 \begin_inset Flex Code
14873 status collapsed
14874
14875 \begin_layout Plain Layout
14876 Bib_Environment
14877 \end_layout
14878
14879 \end_inset
14880
14881  and false for all other types.
14882 \end_layout
14883
14884 \begin_layout Description
14885 \begin_inset Flex Code
14886 status collapsed
14887
14888 \begin_layout Plain Layout
14889 ParbreakIsNewline
14890 \end_layout
14891
14892 \end_inset
14893
14894  [
14895 \begin_inset Flex Code
14896 status collapsed
14897
14898 \begin_layout Plain Layout
14899
14900 \emph on
14901 0
14902 \end_layout
14903
14904 \end_inset
14905
14906 ,
14907 \begin_inset space \thinspace{}
14908 \end_inset
14909
14910
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 1
14916 \end_layout
14917
14918 \end_inset
14919
14920 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14921  output,
14922  but only by a line break; together with 
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 PassThru 1
14928 \end_layout
14929
14930 \end_inset
14931
14932 , this allows to emulate a plain text editor (like the ERT inset).
14933 \end_layout
14934
14935 \begin_layout Description
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 ParIndent
14941 \end_layout
14942
14943 \end_inset
14944
14945  [
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 string=""
14951 \end_layout
14952
14953 \end_inset
14954
14955 ] The indent of the very first line of a paragraph.
14956  The
14957 \begin_inset Newline newline
14958 \end_inset
14959
14960
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 Parindent
14966 \end_layout
14967
14968 \end_inset
14969
14970  will be fixed for a certain style.
14971  The exception is the default style, since the indentation for these paragraphs
14972  can be prohibited with 
14973 \begin_inset Flex Code
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 NextNoIndent
14978 \end_layout
14979
14980 \end_inset
14981
14982 .
14983  Also, 
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988 Standard
14989 \end_layout
14990
14991 \end_inset
14992
14993  style paragraphs inside environments use the 
14994 \begin_inset Flex Code
14995 status collapsed
14996
14997 \begin_layout Plain Layout
14998 Parindent
14999 \end_layout
15000
15001 \end_inset
15002
15003  of the environment, not their native one.
15004  For example, 
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009 Standard
15010 \end_layout
15011
15012 \end_inset
15013
15014  paragraphs inside an enumeration are not indented.
15015 \end_layout
15016
15017 \begin_layout Description
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 ParSep
15023 \end_layout
15024
15025 \end_inset
15026
15027  [
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 float=0
15033 \end_layout
15034
15035 \end_inset
15036
15037 ] The vertical space between two paragraphs of this style.
15038 \end_layout
15039
15040 \begin_layout Description
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 Parskip
15046 \end_layout
15047
15048 \end_inset
15049
15050  [
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 float=0
15056 \end_layout
15057
15058 \end_inset
15059
15060 ] \SpecialChar LyX
15061  allows the user to choose either 
15062 \begin_inset Quotes eld
15063 \end_inset
15064
15065 indent
15066 \begin_inset Quotes erd
15067 \end_inset
15068
15069  or 
15070 \begin_inset Quotes eld
15071 \end_inset
15072
15073 skip
15074 \begin_inset Quotes erd
15075 \end_inset
15076
15077  to separate paragraphs.
15078  When 
15079 \begin_inset Quotes eld
15080 \end_inset
15081
15082 indent
15083 \begin_inset Quotes erd
15084 \end_inset
15085
15086  is chosen, 
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 Parskip
15092 \end_layout
15093
15094 \end_inset
15095
15096  is ignored.
15097  When 
15098 \begin_inset Quotes eld
15099 \end_inset
15100
15101 skip
15102 \begin_inset Quotes erd
15103 \end_inset
15104
15105  is chosen, 
15106 \begin_inset Flex Code
15107 status collapsed
15108
15109 \begin_layout Plain Layout
15110 ParIndent
15111 \end_layout
15112
15113 \end_inset
15114
15115  is ignored and all paragraphs are separated by the 
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 Parskip
15121 \end_layout
15122
15123 \end_inset
15124
15125  argument.
15126  The vertical space is calculated with 
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 Parskip
15132 \begin_inset space ~
15133 \end_inset
15134
15135 * DefaultHeight
15136 \end_layout
15137
15138 \end_inset
15139
15140  where 
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 DefaultHeight
15146 \end_layout
15147
15148 \end_inset
15149
15150  is the height of a row with the normal font.
15151  This way, the look stays the same with different screen fonts.
15152 \end_layout
15153
15154 \begin_layout Description
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 PassThru
15160 \end_layout
15161
15162 \end_inset
15163
15164  [
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169
15170 \emph on
15171 0
15172 \end_layout
15173
15174 \end_inset
15175
15176 ,
15177 \begin_inset space \thinspace{}
15178 \end_inset
15179
15180
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 1
15186 \end_layout
15187
15188 \end_inset
15189
15190 ] Whether the contents of this paragraph should be output in raw form, meaning
15191  without special translations that \SpecialChar LaTeX
15192  would require.
15193 \end_layout
15194
15195 \begin_layout Description
15196 \begin_inset Flex Code
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200 PassThruChars
15201 \end_layout
15202
15203 \end_inset
15204
15205  [
15206 \begin_inset Flex Code
15207 status collapsed
15208
15209 \begin_layout Plain Layout
15210 string
15211 \end_layout
15212
15213 \end_inset
15214
15215 ]
15216 \family typewriter
15217  
15218 \family default
15219 Defines individual characters that should be output in raw form, meaning
15220  without special translations that \SpecialChar LaTeX
15221  would require.
15222 \end_layout
15223
15224 \begin_layout Description
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 Preamble
15230 \end_layout
15231
15232 \end_inset
15233
15234  Information to be included in the \SpecialChar LaTeX
15235  preamble when this style is used.
15236  Used to define macros, load packages, etc., required by this particular
15237  style.
15238  Must end with 
15239 \begin_inset Quotes eld
15240 \end_inset
15241
15242
15243 \begin_inset Flex Code
15244 status collapsed
15245
15246 \begin_layout Plain Layout
15247 EndPreamble
15248 \end_layout
15249
15250 \end_inset
15251
15252
15253 \begin_inset Quotes erd
15254 \end_inset
15255
15256 .
15257 \end_layout
15258
15259 \begin_layout Description
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 RefPrefix
15265 \end_layout
15266
15267 \end_inset
15268
15269  [
15270 \begin_inset Flex Code
15271 status collapsed
15272
15273 \begin_layout Plain Layout
15274 string
15275 \end_layout
15276
15277 \end_inset
15278
15279 ] The prefix to use when creating labels referring to paragraphs of this
15280  type.
15281  This allows the use of formatted references.
15282 \end_layout
15283
15284 \begin_layout Description
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 Requires 
15290 \end_layout
15291
15292 \end_inset
15293
15294  [
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 string
15300 \end_layout
15301
15302 \end_inset
15303
15304 ] Whether the style requires the feature 
15305 \begin_inset Flex Code
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309 string
15310 \end_layout
15311
15312 \end_inset
15313
15314  (see 
15315 \begin_inset CommandInset ref
15316 LatexCommand ref
15317 reference "chap:List-of-functions"
15318
15319 \end_inset
15320
15321  for the list of features).
15322  If you require a package with specific options, you can additionally use
15323  
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 PackageOptions
15329 \end_layout
15330
15331 \end_inset
15332
15333  as a general text class parameter (see 
15334 \begin_inset CommandInset ref
15335 LatexCommand ref
15336 reference "subsec:General-text-class"
15337
15338 \end_inset
15339
15340 ).
15341 \end_layout
15342
15343 \begin_layout Description
15344 \begin_inset Flex Code
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348 ResetArgs
15349 \end_layout
15350
15351 \end_inset
15352
15353  [
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358
15359 \emph on
15360 0
15361 \end_layout
15362
15363 \end_inset
15364
15365 ,
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 1
15371 \end_layout
15372
15373 \end_inset
15374
15375 ] Resets the \SpecialChar LaTeX
15376  arguments of this style (as defined via the 
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 Argument
15382 \end_layout
15383
15384 \end_inset
15385
15386  tag).
15387  This is useful if you have copied a style via 
15388 \begin_inset Flex Code
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 CopyStyle
15393 \end_layout
15394
15395 \end_inset
15396
15397 , but you do not want to inherit its (required and optional) arguments.
15398 \end_layout
15399
15400 \begin_layout Description
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 ResumeCounter
15406 \end_layout
15407
15408 \end_inset
15409
15410  [
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415
15416 \emph on
15417 0
15418 \end_layout
15419
15420 \end_inset
15421
15422 ,
15423 \begin_inset Flex Code
15424 status collapsed
15425
15426 \begin_layout Plain Layout
15427 1
15428 \end_layout
15429
15430 \end_inset
15431
15432 ] Resumes a counter that is usually reset at each new sequence of layouts.
15433  This is currently only useful when 
15434 \begin_inset Flex Code
15435 status collapsed
15436
15437 \begin_layout Plain Layout
15438 LabelType
15439 \end_layout
15440
15441 \end_inset
15442
15443  is 
15444 \begin_inset Flex Code
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448 Enumerate
15449 \end_layout
15450
15451 \end_inset
15452
15453 .
15454 \end_layout
15455
15456 \begin_layout Description
15457 \begin_inset Flex Code
15458 status collapsed
15459
15460 \begin_layout Plain Layout
15461 RightDelim
15462 \end_layout
15463
15464 \end_inset
15465
15466  [
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471 string
15472 \end_layout
15473
15474 \end_inset
15475
15476 ] A string that is put at the end of the layout content.
15477  A line break in the output can be indicated by 
15478 \begin_inset Flex Code
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 <br/>
15483 \end_layout
15484
15485 \end_inset
15486
15487 .
15488 \end_layout
15489
15490 \begin_layout Description
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495 RightMargin
15496 \end_layout
15497
15498 \end_inset
15499
15500  [
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 string=""
15506 \end_layout
15507
15508 \end_inset
15509
15510 ] Similar to 
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515 LeftMargin
15516 \end_layout
15517
15518 \end_inset
15519
15520 .
15521 \end_layout
15522
15523 \begin_layout Description
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 Spacing
15529 \end_layout
15530
15531 \end_inset
15532
15533  [
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538
15539 \emph on
15540 single
15541 \end_layout
15542
15543 \end_inset
15544
15545
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 onehalf
15551 \end_layout
15552
15553 \end_inset
15554
15555
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 double
15561 \end_layout
15562
15563 \end_inset
15564
15565
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 other
15571 \begin_inset space ~
15572 \end_inset
15573
15574 <value>
15575 \end_layout
15576
15577 \end_inset
15578
15579 ] This defines what the default spacing should be in the style.
15580  The arguments 
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 single
15586 \end_layout
15587
15588 \end_inset
15589
15590
15591 \begin_inset Flex Code
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595 onehalf
15596 \end_layout
15597
15598 \end_inset
15599
15600  and 
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 double
15606 \end_layout
15607
15608 \end_inset
15609
15610  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15611  If you specify the argument 
15612 \begin_inset Flex Code
15613 status collapsed
15614
15615 \begin_layout Plain Layout
15616 other
15617 \end_layout
15618
15619 \end_inset
15620
15621 , then you must also provide a value argument which will be the actual multiplie
15622 r value.
15623  Note that, contrary to other parameters, 
15624 \begin_inset Flex Code
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 Spacing
15629 \end_layout
15630
15631 \end_inset
15632
15633  implies the generation of specific \SpecialChar LaTeX
15634  code, using the \SpecialChar LaTeX
15635  package 
15636 \family roman
15637
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 setspace
15643 \end_layout
15644
15645 \end_inset
15646
15647 .
15648 \end_layout
15649
15650 \begin_layout Description
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 Spellcheck
15656 \end_layout
15657
15658 \end_inset
15659
15660  [
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 0
15666 \end_layout
15667
15668 \end_inset
15669
15670 ,
15671 \begin_inset space \thinspace{}
15672 \end_inset
15673
15674
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679
15680 \emph on
15681 1
15682 \end_layout
15683
15684 \end_inset
15685
15686 ] Allow spell-checking paragraphs of this style.
15687  Default is true.
15688 \end_layout
15689
15690 \begin_layout Description
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 StepMasterCounter
15696 \end_layout
15697
15698 \end_inset
15699
15700  [
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705
15706 \emph on
15707 0
15708 \end_layout
15709
15710 \end_inset
15711
15712 ,
15713 \begin_inset Flex Code
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 1
15718 \end_layout
15719
15720 \end_inset
15721
15722 ] Steps the master counter of a given counter at the beginning of a new
15723  sequence of layouts.
15724  This is currently only useful when 
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 LabelType
15730 \end_layout
15731
15732 \end_inset
15733
15734  is 
15735 \begin_inset Flex Code
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739 Enumerate
15740 \end_layout
15741
15742 \end_inset
15743
15744 .
15745 \end_layout
15746
15747 \begin_layout Description
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 TextFont
15753 \end_layout
15754
15755 \end_inset
15756
15757  The font used for the text body .
15758  See 
15759 \begin_inset CommandInset ref
15760 LatexCommand ref
15761 reference "subsec:Font-description"
15762
15763 \end_inset
15764
15765 .
15766 \end_layout
15767
15768 \begin_layout Description
15769 \begin_inset Flex Code
15770 status collapsed
15771
15772 \begin_layout Plain Layout
15773 TocLevel
15774 \end_layout
15775
15776 \end_inset
15777
15778
15779 \series medium
15780  [
15781 \begin_inset Flex Code
15782 status collapsed
15783
15784 \begin_layout Plain Layout
15785
15786 \series medium
15787 int=3
15788 \end_layout
15789
15790 \end_inset
15791
15792 ]
15793 \series default
15794  The level of the style in the table of contents.
15795  This is used for automatic numbering of section headings.
15796 \end_layout
15797
15798 \begin_layout Description
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 ToggleIndent
15804 \end_layout
15805
15806 \end_inset
15807
15808  [
15809 \emph on
15810
15811 \begin_inset Flex Code
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815
15816 \emph on
15817 default
15818 \end_layout
15819
15820 \end_inset
15821
15822
15823 \emph default
15824
15825 \begin_inset Flex Code
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 always
15830 \end_layout
15831
15832 \end_inset
15833
15834
15835 \begin_inset Flex Code
15836 status collapsed
15837
15838 \begin_layout Plain Layout
15839 never
15840 \end_layout
15841
15842 \end_inset
15843
15844 ] This tag determines whether the first line indentation of this paragraph
15845  can be toggled via the Paragraph settings dialog.
15846  If 
15847 \emph on
15848
15849 \begin_inset Flex Code
15850 status collapsed
15851
15852 \begin_layout Plain Layout
15853
15854 \emph off
15855 default
15856 \end_layout
15857
15858 \end_inset
15859
15860
15861 \emph default
15862  is set, indentation can be toggled if the document settings use 
15863 \begin_inset Quotes eld
15864 \end_inset
15865
15866 indent
15867 \begin_inset Quotes erd
15868 \end_inset
15869
15870  paragraph style, with 
15871 \begin_inset Flex Code
15872 status collapsed
15873
15874 \begin_layout Plain Layout
15875 always
15876 \end_layout
15877
15878 \end_inset
15879
15880 , indentation can always be toggled, notwithstanding the document settings,
15881  with 
15882 \begin_inset Flex Code
15883 status collapsed
15884
15885 \begin_layout Plain Layout
15886 never
15887 \end_layout
15888
15889 \end_inset
15890
15891 , indentation can never be toggled.
15892 \end_layout
15893
15894 \begin_layout Description
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899 TopSep
15900 \end_layout
15901
15902 \end_inset
15903
15904  [
15905 \begin_inset Flex Code
15906 status collapsed
15907
15908 \begin_layout Plain Layout
15909 float=0
15910 \end_layout
15911
15912 \end_inset
15913
15914 ] The vertical space with which the very first of a chain of paragraphs
15915  with this style is separated from the previous paragraph.
15916  If the previous paragraph has another style, the separations are not simply
15917  added, but the maximum is taken.
15918 \end_layout
15919
15920 \begin_layout Subsection
15921 \begin_inset CommandInset label
15922 LatexCommand label
15923 name "subsec:I18n"
15924
15925 \end_inset
15926
15927 Internationalization of Paragraph Styles
15928 \end_layout
15929
15930 \begin_layout Standard
15931 \SpecialChar LyX
15932  has long supported internationalization of layout information, but, until
15933  version 2.0, this applied only to the user interface and not to, say, PDF
15934  output.
15935  Thus, French authors were forced to resort to ugly hacks if they wanted
15936  `
15937 \lang french
15938 Théorème
15939 \lang english
15940  1' instead of `Theorem 1'.
15941  Thanks to Georg Baum, that is no longer the case.
15942 \end_layout
15943
15944 \begin_layout Standard
15945 If a 
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 Style
15951 \end_layout
15952
15953 \end_inset
15954
15955  defines text that is to appear in the typeset document, it may use 
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 LangPreamble
15961 \end_layout
15962
15963 \end_inset
15964
15965  and 
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 BabelPreamble
15971 \end_layout
15972
15973 \end_inset
15974
15975  to support non-English and even multi-language documents correctly.
15976  The following excerpt (from the 
15977 \begin_inset Flex Code
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 theorems-ams.inc
15982 \end_layout
15983
15984 \end_inset
15985
15986  file) shows how this works:
15987 \end_layout
15988
15989 \begin_layout LyX-Code
15990 Preamble
15991 \end_layout
15992
15993 \begin_deeper
15994 \begin_layout LyX-Code
15995   
15996 \backslash
15997 theoremstyle{remark}
15998 \end_layout
15999
16000 \begin_layout LyX-Code
16001   
16002 \backslash
16003 newtheorem{claim}[thm]{
16004 \backslash
16005 protect
16006 \backslash
16007 claimname}
16008 \end_layout
16009
16010 \begin_layout LyX-Code
16011 EndPreamble
16012 \end_layout
16013
16014 \begin_layout LyX-Code
16015 LangPreamble
16016 \end_layout
16017
16018 \begin_layout LyX-Code
16019   
16020 \backslash
16021 providecommand{
16022 \backslash
16023 claimname}{_(Claim)}
16024 \end_layout
16025
16026 \begin_layout LyX-Code
16027 EndLangPreamble
16028 \end_layout
16029
16030 \begin_layout LyX-Code
16031 BabelPreamble
16032 \end_layout
16033
16034 \begin_layout LyX-Code
16035     
16036 \backslash
16037 addto
16038 \backslash
16039 captions$$lang{
16040 \backslash
16041 renewcommand{
16042 \backslash
16043 claimname}{_(Claim)}}
16044 \end_layout
16045
16046 \begin_layout LyX-Code
16047 EndBabelPreamble
16048 \end_layout
16049
16050 \end_deeper
16051 \begin_layout Standard
16052 In principle, any legal \SpecialChar LaTeX
16053  may appear in the 
16054 \begin_inset Flex Code
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058 LangPreamble
16059 \end_layout
16060
16061 \end_inset
16062
16063  and 
16064 \begin_inset Flex Code
16065 status collapsed
16066
16067 \begin_layout Plain Layout
16068 BabelPreamble
16069 \end_layout
16070
16071 \end_inset
16072
16073  tags, but in practice they will typically look as they do here.
16074  The key to correct translation of the typeset text is the definition of
16075  the \SpecialChar LaTeX
16076  command 
16077 \begin_inset Flex Code
16078 status collapsed
16079
16080 \begin_layout Plain Layout
16081
16082 \backslash
16083 claimname
16084 \end_layout
16085
16086 \end_inset
16087
16088  and its use in 
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093
16094 \backslash
16095 newtheorem
16096 \end_layout
16097
16098 \end_inset
16099
16100 .
16101  
16102 \end_layout
16103
16104 \begin_layout Standard
16105 The 
16106 \begin_inset Flex Code
16107 status collapsed
16108
16109 \begin_layout Plain Layout
16110 LangPreamble
16111 \end_layout
16112
16113 \end_inset
16114
16115  tag provides for internationalization based upon the overall language of
16116  the document.
16117  The contents of the tag will be included in the preamble, just as with
16118  the 
16119 \begin_inset Flex Code
16120 status collapsed
16121
16122 \begin_layout Plain Layout
16123 Preamble
16124 \end_layout
16125
16126 \end_inset
16127
16128  tag.
16129  What makes it special is the use of the 
16130 \begin_inset Quotes eld
16131 \end_inset
16132
16133 function
16134 \begin_inset Quotes erd
16135 \end_inset
16136
16137  
16138 \begin_inset Flex Code
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142 _()
16143 \end_layout
16144
16145 \end_inset
16146
16147 , which will be replaced, when \SpecialChar LyX
16148  produces \SpecialChar LaTeX
16149  output, with the translation of
16150  its argument into the document language.
16151 \end_layout
16152
16153 \begin_layout Standard
16154 The 
16155 \begin_inset Flex Code
16156 status collapsed
16157
16158 \begin_layout Plain Layout
16159 BabelPreamble
16160 \end_layout
16161
16162 \end_inset
16163
16164  tag is more complex, since it is meant to provide support for multi-language
16165  documents and so offers an interface to the 
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 babel
16171 \end_layout
16172
16173 \end_inset
16174
16175  package.
16176  Its contents will be added to the preamble once for each language that
16177  appears in the document.
16178  In this case, the argument to 
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 _()
16184 \end_layout
16185
16186 \end_inset
16187
16188  will be replaced with its translation into the language in question; the
16189  expression 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 $$lang
16195 \end_layout
16196
16197 \end_inset
16198
16199  is replaced by the language name (as used by the babel package).
16200 \end_layout
16201
16202 \begin_layout Standard
16203 A German document that also included a French section would thus have the
16204  following in the preamble:
16205 \end_layout
16206
16207 \begin_layout LyX-Code
16208
16209 \backslash
16210 addto
16211 \backslash
16212 captionsfrench{
16213 \backslash
16214 renewcommand{
16215 \backslash
16216 claimname}{Affirmation}}
16217 \begin_inset Newline newline
16218 \end_inset
16219
16220
16221 \backslash
16222 addto
16223 \backslash
16224 captionsngerman{
16225 \backslash
16226 renewcommand{
16227 \backslash
16228 claimname}{Behauptung}}
16229 \begin_inset Newline newline
16230 \end_inset
16231
16232
16233 \backslash
16234 providecommand{
16235 \backslash
16236 claimname}{Behauptung}
16237 \end_layout
16238
16239 \begin_layout Standard
16240 \SpecialChar LaTeX
16241  and 
16242 \begin_inset Flex Code
16243 status collapsed
16244
16245 \begin_layout Plain Layout
16246 babel
16247 \end_layout
16248
16249 \end_inset
16250
16251  will then conspire to produce the correct text in the output.
16252 \end_layout
16253
16254 \begin_layout Standard
16255 One important point to note here is that the translations are provided by
16256  \SpecialChar LyX
16257  itself, through the file 
16258 \begin_inset Flex Code
16259 status collapsed
16260
16261 \begin_layout Plain Layout
16262 layouttranslations
16263 \end_layout
16264
16265 \end_inset
16266
16267 .
16268  This means, in effect, that 
16269 \begin_inset Flex Code
16270 status collapsed
16271
16272 \begin_layout Plain Layout
16273 LangPreamble
16274 \end_layout
16275
16276 \end_inset
16277
16278  and 
16279 \begin_inset Flex Code
16280 status collapsed
16281
16282 \begin_layout Plain Layout
16283 BabelPreamble
16284 \end_layout
16285
16286 \end_inset
16287
16288  are really only of use in layout files that are provided with \SpecialChar LyX
16289 , since text
16290  entered in user-created layout files will not be seen by \SpecialChar LyX
16291 's internationalizatio
16292 n routines unless the 
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 layouttranslations
16298 \end_layout
16299
16300 \end_inset
16301
16302  file is modified accordingly.
16303  That said, however, any layout created with the intention that it will
16304  be included with \SpecialChar LyX
16305  should use these tags where appropriate.
16306  Please note that the paragraph style translations provided by \SpecialChar LyX
16307  will never
16308  change with a minor update (e.
16309 \begin_inset space \thinspace{}
16310 \end_inset
16311
16312 g.
16313 \begin_inset space \space{}
16314 \end_inset
16315
16316 from version 2.1.x to 2.1.y).
16317  It is however quite likely that a major update (e.
16318 \begin_inset space \thinspace{}
16319 \end_inset
16320
16321 g.
16322 \begin_inset space \space{}
16323 \end_inset
16324
16325 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16326 \end_layout
16327
16328 \begin_layout Subsection
16329 Floats
16330 \begin_inset CommandInset label
16331 LatexCommand label
16332 name "subsec:Floats"
16333
16334 \end_inset
16335
16336
16337 \end_layout
16338
16339 \begin_layout Standard
16340 It is necessary to define the floats (
16341 \begin_inset Flex Noun
16342 status collapsed
16343
16344 \begin_layout Plain Layout
16345 figure
16346 \end_layout
16347
16348 \end_inset
16349
16350
16351 \begin_inset Flex Noun
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 table
16356 \end_layout
16357
16358 \end_inset
16359
16360 , \SpecialChar ldots
16361 ) in the text class itself.
16362  Standard floats are included in the file 
16363 \begin_inset Flex Code
16364 status collapsed
16365
16366 \begin_layout Plain Layout
16367 stdfloats.inc
16368 \end_layout
16369
16370 \end_inset
16371
16372 , so you may have to do no more than add
16373 \end_layout
16374
16375 \begin_layout LyX-Code
16376 Input stdfloats.inc
16377 \end_layout
16378
16379 \begin_layout Standard
16380 to your layout file.
16381  If you want to implement a text class that proposes some other float types
16382  (like the AGU class bundled with \SpecialChar LyX
16383 ), the information below will hopefully
16384  help you:
16385 \end_layout
16386
16387 \begin_layout Description
16388 \begin_inset Flex Code
16389 status collapsed
16390
16391 \begin_layout Plain Layout
16392 AllowedPlacement
16393 \end_layout
16394
16395 \end_inset
16396
16397  [
16398 \begin_inset Flex Code
16399 status collapsed
16400
16401 \begin_layout Plain Layout
16402 string
16403 \end_layout
16404
16405 \end_inset
16406
16407 =!htbpH] Allowed placement options for this float type.
16408  The value is a string of placement characters.
16409  Possible characters include: 
16410 \emph on
16411 h
16412 \emph default
16413  (
16414 \begin_inset Quotes eld
16415 \end_inset
16416
16417 here if possible
16418 \begin_inset Quotes erd
16419 \end_inset
16420
16421 ), 
16422 \emph on
16423 t
16424 \emph default
16425  (
16426 \begin_inset Quotes eld
16427 \end_inset
16428
16429 top of page
16430 \begin_inset Quotes erd
16431 \end_inset
16432
16433 ), 
16434 \emph on
16435 b
16436 \emph default
16437  (
16438 \begin_inset Quotes eld
16439 \end_inset
16440
16441 bottom of page
16442 \begin_inset Quotes erd
16443 \end_inset
16444
16445 ), 
16446 \emph on
16447 p
16448 \emph default
16449  (
16450 \begin_inset Quotes eld
16451 \end_inset
16452
16453 page of floats
16454 \begin_inset Quotes erd
16455 \end_inset
16456
16457 ), 
16458 \emph on
16459 H
16460 \emph default
16461  (
16462 \begin_inset Quotes eld
16463 \end_inset
16464
16465 here definitely
16466 \begin_inset Quotes erd
16467 \end_inset
16468
16469 ) and 
16470 \emph on
16471 !
16472 \emph default
16473  (
16474 \begin_inset Quotes eld
16475 \end_inset
16476
16477 ignore LaTeX rules
16478 \begin_inset Quotes erd
16479 \end_inset
16480
16481 ).
16482  The order of the characters in the string does not matter.
16483  If no placement options are allowed, use the string 
16484 \emph on
16485 none
16486 \emph default
16487 .
16488 \end_layout
16489
16490 \begin_layout Description
16491 \begin_inset Flex Code
16492 status collapsed
16493
16494 \begin_layout Plain Layout
16495 AllowsSideways
16496 \end_layout
16497
16498 \end_inset
16499
16500  [
16501 \begin_inset Flex Code
16502 status collapsed
16503
16504 \begin_layout Plain Layout
16505
16506 \emph off
16507 0
16508 \end_layout
16509
16510 \end_inset
16511
16512 ,
16513 \begin_inset space \thinspace{}
16514 \end_inset
16515
16516
16517 \emph on
16518
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523
16524 \emph on
16525 1
16526 \end_layout
16527
16528 \end_inset
16529
16530
16531 \emph default
16532 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16533 -package 
16534 \family typewriter
16535 rotfloat
16536 \family default
16537  (sidewaysfloat).
16538  Set to 
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543 0
16544 \end_layout
16545
16546 \end_inset
16547
16548  if the float does not support this feature.
16549 \end_layout
16550
16551 \begin_layout Description
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556 AllowsWide
16557 \end_layout
16558
16559 \end_inset
16560
16561  [
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566
16567 \emph off
16568 0
16569 \end_layout
16570
16571 \end_inset
16572
16573 ,
16574 \begin_inset space \thinspace{}
16575 \end_inset
16576
16577
16578 \emph on
16579
16580 \begin_inset Flex Code
16581 status collapsed
16582
16583 \begin_layout Plain Layout
16584
16585 \emph on
16586 1
16587 \end_layout
16588
16589 \end_inset
16590
16591
16592 \emph default
16593 ] Defines whether the float has a starred variant that spans columns in
16594  a two column paragraph.
16595  Set to 
16596 \begin_inset Flex Code
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600 0
16601 \end_layout
16602
16603 \end_inset
16604
16605  if the float does not support this feature.
16606 \end_layout
16607
16608 \begin_layout Description
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 Extension
16614 \end_layout
16615
16616 \end_inset
16617
16618  [
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 string
16624 \end_layout
16625
16626 \end_inset
16627
16628 =
16629 \begin_inset Quotes erd
16630 \end_inset
16631
16632
16633 \begin_inset Quotes erd
16634 \end_inset
16635
16636 ] The file name extension of an auxiliary file for the list of figures (or
16637  whatever).
16638  \SpecialChar LaTeX
16639  writes the captions to this file.
16640 \end_layout
16641
16642 \begin_layout Description
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 GuiName
16648 \end_layout
16649
16650 \end_inset
16651
16652  [
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 string
16658 \end_layout
16659
16660 \end_inset
16661
16662 =
16663 \begin_inset Quotes erd
16664 \end_inset
16665
16666
16667 \begin_inset Quotes erd
16668 \end_inset
16669
16670 ] The string that will be used in the menus and also for the caption.
16671  This is translated to the current language if babel is used.
16672 \end_layout
16673
16674 \begin_layout Description
16675 \begin_inset Flex Code
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679 HTML*
16680 \end_layout
16681
16682 \end_inset
16683
16684  These tags control the XHTML output.
16685  See 
16686 \begin_inset CommandInset ref
16687 LatexCommand ref
16688 reference "sec:Tags-for-XHTML"
16689
16690 \end_inset
16691
16692 .
16693 \end_layout
16694
16695 \begin_layout Description
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 IsPredefined
16701 \end_layout
16702
16703 \end_inset
16704
16705  [
16706 \emph on
16707
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712 0
16713 \end_layout
16714
16715 \end_inset
16716
16717
16718 \emph default
16719 ,
16720 \begin_inset space \thinspace{}
16721 \end_inset
16722
16723
16724 \begin_inset Flex Code
16725 status collapsed
16726
16727 \begin_layout Plain Layout
16728 1
16729 \end_layout
16730
16731 \end_inset
16732
16733 ] Indicates whether the float is already defined in the document class or
16734  if instead the \SpecialChar LaTeX
16735  package 
16736 \begin_inset Flex Code
16737 status collapsed
16738
16739 \begin_layout Plain Layout
16740 float
16741 \end_layout
16742
16743 \end_inset
16744
16745  needs to be loaded to define it on-the-fly.
16746  The default is 
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751 0
16752 \end_layout
16753
16754 \end_inset
16755
16756 , which means: 
16757 \begin_inset Flex Code
16758 status collapsed
16759
16760 \begin_layout Plain Layout
16761 float
16762 \end_layout
16763
16764 \end_inset
16765
16766  is used.
16767  It should be set to 
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 1
16773 \end_layout
16774
16775 \end_inset
16776
16777  if the float is already defined by the \SpecialChar LaTeX
16778  document class.
16779 \end_layout
16780
16781 \begin_layout Description
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 ListCommand
16787 \end_layout
16788
16789 \end_inset
16790
16791  [
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 string
16797 \end_layout
16798
16799 \end_inset
16800
16801 =
16802 \begin_inset Quotes erd
16803 \end_inset
16804
16805
16806 \begin_inset Quotes erd
16807 \end_inset
16808
16809 ] The command used to generate a list of floats of this type; the leading
16810  `
16811 \backslash
16812 ' must be omitted.
16813  This 
16814 \emph on
16815 must
16816 \emph default
16817  be given if 
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 UsesFloatPkg
16823 \end_layout
16824
16825 \end_inset
16826
16827  is false, since there is no standard way to generate this command.
16828  It is ignored if 
16829 \begin_inset Flex Code
16830 status collapsed
16831
16832 \begin_layout Plain Layout
16833 UsesFloatPkg
16834 \end_layout
16835
16836 \end_inset
16837
16838  is true, since in that case there is a standard way to define the command.
16839 \end_layout
16840
16841 \begin_layout Description
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 ListName
16847 \end_layout
16848
16849 \end_inset
16850
16851  [
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856 string
16857 \end_layout
16858
16859 \end_inset
16860
16861 =
16862 \begin_inset Quotes erd
16863 \end_inset
16864
16865
16866 \begin_inset Quotes erd
16867 \end_inset
16868
16869 ] A title for a list of floats of this kind (list of figures, tables, or
16870  whatever).
16871  It is used for the screen label within \SpecialChar LyX
16872 , it is used by \SpecialChar LaTeX
16873  for the title and
16874  it is used as the title in the XHTML output.
16875  It will be translated to the document language.
16876 \end_layout
16877
16878 \begin_layout Description
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 NumberWithin
16884 \end_layout
16885
16886 \end_inset
16887
16888  [
16889 \begin_inset Flex Code
16890 status collapsed
16891
16892 \begin_layout Plain Layout
16893 string
16894 \end_layout
16895
16896 \end_inset
16897
16898 =
16899 \begin_inset Quotes erd
16900 \end_inset
16901
16902
16903 \begin_inset Quotes erd
16904 \end_inset
16905
16906 ] This (optional) argument determines whether floats of this class will
16907  be numbered within some sectional unit of the document.
16908  For example, if 
16909 \begin_inset Flex Code
16910 status collapsed
16911
16912 \begin_layout Plain Layout
16913 NumberWithin
16914 \end_layout
16915
16916 \end_inset
16917
16918  is set to 
16919 \begin_inset Quotes eld
16920 \end_inset
16921
16922
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 chapter
16928 \end_layout
16929
16930 \end_inset
16931
16932
16933 \begin_inset Quotes erd
16934 \end_inset
16935
16936 , the floats will be numbered within chapters.
16937  
16938 \end_layout
16939
16940 \begin_layout Description
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 Placement
16946 \end_layout
16947
16948 \end_inset
16949
16950  [
16951 \begin_inset Flex Code
16952 status collapsed
16953
16954 \begin_layout Plain Layout
16955 string
16956 \end_layout
16957
16958 \end_inset
16959
16960 =
16961 \begin_inset Quotes erd
16962 \end_inset
16963
16964
16965 \begin_inset Quotes erd
16966 \end_inset
16967
16968 ] The default placement for the given class of floats.
16969  The string should be as in standard \SpecialChar LaTeX
16970
16971 \begin_inset Flex Code
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 t
16976 \end_layout
16977
16978 \end_inset
16979
16980
16981 \begin_inset Flex Code
16982 status collapsed
16983
16984 \begin_layout Plain Layout
16985 b
16986 \end_layout
16987
16988 \end_inset
16989
16990
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 p
16996 \end_layout
16997
16998 \end_inset
16999
17000  and 
17001 \begin_inset Flex Code
17002 status collapsed
17003
17004 \begin_layout Plain Layout
17005 h
17006 \end_layout
17007
17008 \end_inset
17009
17010  for top, bottom, page, and here, respectively.
17011 \begin_inset Foot
17012 status collapsed
17013
17014 \begin_layout Plain Layout
17015 Note that the order of these letters in the string is irrelevant, like in
17016  \SpecialChar LaTeX
17017 .
17018 \end_layout
17019
17020 \end_inset
17021
17022  On top of that there is a new type, 
17023 \begin_inset Flex Code
17024 status collapsed
17025
17026 \begin_layout Plain Layout
17027 H
17028 \end_layout
17029
17030 \end_inset
17031
17032 , which does not really correspond to a float, since it means: put it 
17033 \begin_inset Quotes eld
17034 \end_inset
17035
17036 here
17037 \begin_inset Quotes erd
17038 \end_inset
17039
17040  and nowhere else.
17041  Note however that the 
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 H
17047 \end_layout
17048
17049 \end_inset
17050
17051  specifier is special and, because of implementation details, cannot be
17052  used in non-built in float types.
17053  If you do not understand what this means, just use 
17054 \begin_inset Quotes eld
17055 \end_inset
17056
17057
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062 tbp
17063 \end_layout
17064
17065 \end_inset
17066
17067
17068 \begin_inset Quotes erd
17069 \end_inset
17070
17071 .
17072 \end_layout
17073
17074 \begin_layout Description
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079 RefPrefix
17080 \end_layout
17081
17082 \end_inset
17083
17084  [
17085 \begin_inset Flex Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089 string
17090 \end_layout
17091
17092 \end_inset
17093
17094 ] The prefix to use when creating labels referring to floats of this type.
17095  This allows the use of formatted references.
17096  Note that you can remove any 
17097 \begin_inset Flex Code
17098 status collapsed
17099
17100 \begin_layout Plain Layout
17101 RefPrefix
17102 \end_layout
17103
17104 \end_inset
17105
17106  set by a copied style by using the special value 
17107 \begin_inset Quotes eld
17108 \end_inset
17109
17110 OFF
17111 \begin_inset Quotes erd
17112 \end_inset
17113
17114 , which must be all caps.
17115 \end_layout
17116
17117 \begin_layout Description
17118 \begin_inset Flex Code
17119 status collapsed
17120
17121 \begin_layout Plain Layout
17122 Style
17123 \end_layout
17124
17125 \end_inset
17126
17127  [
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 string
17133 \end_layout
17134
17135 \end_inset
17136
17137 =
17138 \begin_inset Quotes erd
17139 \end_inset
17140
17141
17142 \begin_inset Quotes erd
17143 \end_inset
17144
17145 ] The style used when defining the float using 
17146 \begin_inset Flex Code
17147 status collapsed
17148
17149 \begin_layout Plain Layout
17150
17151 \backslash
17152 newfloat
17153 \end_layout
17154
17155 \end_inset
17156
17157 .
17158 \end_layout
17159
17160 \begin_layout Description
17161 \begin_inset Flex Code
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 Type
17166 \end_layout
17167
17168 \end_inset
17169
17170  [
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175 string
17176 \end_layout
17177
17178 \end_inset
17179
17180 =
17181 \begin_inset Quotes erd
17182 \end_inset
17183
17184
17185 \begin_inset Quotes erd
17186 \end_inset
17187
17188 ] The 
17189 \begin_inset Quotes eld
17190 \end_inset
17191
17192 type
17193 \begin_inset Quotes erd
17194 \end_inset
17195
17196  of the new class of floats, like program or algorithm.
17197  After the appropriate 
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202
17203 \backslash
17204 newfloat
17205 \end_layout
17206
17207 \end_inset
17208
17209 , commands such as 
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214
17215 \backslash
17216 begin{program}
17217 \end_layout
17218
17219 \end_inset
17220
17221  or 
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226
17227 \backslash
17228 end{algorithm*}
17229 \end_layout
17230
17231 \end_inset
17232
17233  will be available.
17234 \end_layout
17235
17236 \begin_layout Description
17237 \begin_inset Flex Code
17238 status collapsed
17239
17240 \begin_layout Plain Layout
17241 UsesFloatPkg
17242 \end_layout
17243
17244 \end_inset
17245
17246  [
17247 \begin_inset Flex Code
17248 status collapsed
17249
17250 \begin_layout Plain Layout
17251 0
17252 \end_layout
17253
17254 \end_inset
17255
17256 ,
17257 \begin_inset space \thinspace{}
17258 \end_inset
17259
17260
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265
17266 \emph on
17267 1
17268 \end_layout
17269
17270 \end_inset
17271
17272 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17273  package 
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 float
17279 \end_layout
17280
17281 \end_inset
17282
17283 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17284  itself.
17285 \end_layout
17286
17287 \begin_layout Standard
17288 Note that defining a float with type 
17289 \begin_inset Flex Code
17290 status collapsed
17291
17292 \begin_layout Plain Layout
17293
17294 \emph on
17295 type
17296 \end_layout
17297
17298 \end_inset
17299
17300  automatically defines the corresponding counter with name 
17301 \begin_inset Flex Code
17302 status collapsed
17303
17304 \begin_layout Plain Layout
17305
17306 \emph on
17307 type
17308 \end_layout
17309
17310 \end_inset
17311
17312 .
17313 \end_layout
17314
17315 \begin_layout Subsection
17316 Flex insets and InsetLayout
17317 \begin_inset CommandInset label
17318 LatexCommand label
17319 name "subsec:Flex-insets-and"
17320
17321 \end_inset
17322
17323
17324 \end_layout
17325
17326 \begin_layout Standard
17327 Flex insets come in three different kinds: 
17328 \end_layout
17329
17330 \begin_layout Itemize
17331 character style (
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 CharStyle
17337 \end_layout
17338
17339 \end_inset
17340
17341 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17342  commands as 
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347
17348 \backslash
17349 noun
17350 \end_layout
17351
17352 \end_inset
17353
17354  and 
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359
17360 \backslash
17361 code
17362 \end_layout
17363
17364 \end_inset
17365
17366 .
17367 \end_layout
17368
17369 \begin_layout Itemize
17370 user custom (
17371 \begin_inset Flex Code
17372 status collapsed
17373
17374 \begin_layout Plain Layout
17375 Custom
17376 \end_layout
17377
17378 \end_inset
17379
17380 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17381  code,
17382  footnote, and the like.
17383  An obvious example is an endnote inset, which is defined in the 
17384 \begin_inset Flex Code
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388 endnote
17389 \end_layout
17390
17391 \end_inset
17392
17393  module.
17394 \end_layout
17395
17396 \begin_layout Itemize
17397 XML elements (
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 Element
17403 \end_layout
17404
17405 \end_inset
17406
17407 ): For use with DocBook classes.
17408 \end_layout
17409
17410 \begin_layout Standard
17411 Flex insets are defined using the 
17412 \begin_inset Flex Code
17413 status collapsed
17414
17415 \begin_layout Plain Layout
17416 InsetLayout
17417 \end_layout
17418
17419 \end_inset
17420
17421  tag, which shall be explained in a moment.
17422 \end_layout
17423
17424 \begin_layout Standard
17425 The 
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 InsetLayout
17431 \end_layout
17432
17433 \end_inset
17434
17435  tag also serves another function: It can be used to customize the general
17436  layout of many different types of insets.
17437  Currently, 
17438 \begin_inset Flex Code
17439 status collapsed
17440
17441 \begin_layout Plain Layout
17442 InsetLayout
17443 \end_layout
17444
17445 \end_inset
17446
17447  can be used to customize the layout parameters for footnotes, marginal
17448  notes, note insets, \SpecialChar TeX
17449  code (ERT) insets, branches, listings, indexes, boxes,
17450  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17451 \end_layout
17452
17453 \begin_layout Standard
17454 The 
17455 \begin_inset Flex Code
17456 status collapsed
17457
17458 \begin_layout Plain Layout
17459 InsetLayout
17460 \end_layout
17461
17462 \end_inset
17463
17464  definition must begin with a line of the form:
17465 \end_layout
17466
17467 \begin_layout LyX-Code
17468 InsetLayout <type>
17469 \end_layout
17470
17471 \begin_layout Standard
17472 Here 
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 <Type>
17478 \end_layout
17479
17480 \end_inset
17481
17482  indicates the inset whose layout is being defined, and here there are four
17483  cases.
17484 \end_layout
17485
17486 \begin_layout Enumerate
17487 The layout for a pre-existing inset is being modified.
17488  In this case, can be 
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493 <Type>
17494 \end_layout
17495
17496 \end_inset
17497
17498  any one of the following: 
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 Algorithm
17504 \end_layout
17505
17506 \end_inset
17507
17508
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513 Branch
17514 \end_layout
17515
17516 \end_inset
17517
17518
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523 Box
17524 \end_layout
17525
17526 \end_inset
17527
17528
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 Box:shaded
17534 \end_layout
17535
17536 \end_inset
17537
17538
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 Caption:Standard
17544 \end_layout
17545
17546 \end_inset
17547
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 ERT
17554 \end_layout
17555
17556 \end_inset
17557
17558
17559 \begin_inset Flex Code
17560 status collapsed
17561
17562 \begin_layout Plain Layout
17563 Figure
17564 \end_layout
17565
17566 \end_inset
17567
17568
17569 \begin_inset Flex Code
17570 status collapsed
17571
17572 \begin_layout Plain Layout
17573 Foot
17574 \end_layout
17575
17576 \end_inset
17577
17578
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 Index
17584 \end_layout
17585
17586 \end_inset
17587
17588
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 Info
17594 \end_layout
17595
17596 \end_inset
17597
17598
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 Info:menu
17604 \end_layout
17605
17606 \end_inset
17607
17608
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 Info:shortcut
17614 \end_layout
17615
17616 \end_inset
17617
17618
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 Info:shortcuts
17624 \end_layout
17625
17626 \end_inset
17627
17628
17629 \begin_inset Flex Code
17630 status collapsed
17631
17632 \begin_layout Plain Layout
17633 Listings
17634 \end_layout
17635
17636 \end_inset
17637
17638
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 Marginal
17644 \end_layout
17645
17646 \end_inset
17647
17648
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 Note:Comment
17654 \end_layout
17655
17656 \end_inset
17657
17658
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 Note:Note
17664 \end_layout
17665
17666 \end_inset
17667
17668
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673 Note:Greyedout
17674 \end_layout
17675
17676 \end_inset
17677
17678
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 Table
17684 \end_layout
17685
17686 \end_inset
17687
17688 , or 
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693 URL
17694 \end_layout
17695
17696 \end_inset
17697
17698 .
17699 \end_layout
17700
17701 \begin_layout Enumerate
17702 The layout for a Flex inset is being defined.
17703  In this case, 
17704 \begin_inset Flex Code
17705 status collapsed
17706
17707 \begin_layout Plain Layout
17708 <Type>
17709 \end_layout
17710
17711 \end_inset
17712
17713  must be of the form 
17714 \begin_inset Quotes eld
17715 \end_inset
17716
17717
17718 \begin_inset Flex Code
17719 status collapsed
17720
17721 \begin_layout Plain Layout
17722 Flex:<name>
17723 \end_layout
17724
17725 \end_inset
17726
17727
17728 \begin_inset Quotes erd
17729 \end_inset
17730
17731 , where 
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 name
17737 \end_layout
17738
17739 \end_inset
17740
17741  may be be any valid identifier not used by a pre-existing Flex inset.
17742  The identifier may include spaces, but in that case the whole thing must
17743  be wrapped in quotes.
17744  Note that the definition of a flex inset 
17745 \emph on
17746 must 
17747 \emph default
17748 also include a 
17749 \begin_inset Flex Code
17750 status collapsed
17751
17752 \begin_layout Plain Layout
17753 LyXType
17754 \end_layout
17755
17756 \end_inset
17757
17758  entry, declaring which type of inset it defines.
17759 \end_layout
17760
17761 \begin_layout Enumerate
17762 The layout for user specific branch is being defined.
17763  In this case, 
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768 <Type>
17769 \end_layout
17770
17771 \end_inset
17772
17773  must be of the form 
17774 \begin_inset Quotes eld
17775 \end_inset
17776
17777
17778 \begin_inset Flex Code
17779 status collapsed
17780
17781 \begin_layout Plain Layout
17782 Branch:<name>
17783 \end_layout
17784
17785 \end_inset
17786
17787
17788 \begin_inset Quotes erd
17789 \end_inset
17790
17791 , where 
17792 \begin_inset Flex Code
17793 status collapsed
17794
17795 \begin_layout Plain Layout
17796 name
17797 \end_layout
17798
17799 \end_inset
17800
17801  may be be any valid identifier of branch defined in user's document.
17802  The identifier may include spaces, but in that case the whole thing must
17803  be wrapped in quotes.
17804  The main purpose of this feature is to allow \SpecialChar LaTeX
17805  wrapping around specific
17806  branches as user needs.
17807 \end_layout
17808
17809 \begin_layout Enumerate
17810 The layout of a user (or class) specific caption is being defined.
17811  In this case, 
17812 \begin_inset Flex Code
17813 status collapsed
17814
17815 \begin_layout Plain Layout
17816 <Type>
17817 \end_layout
17818
17819 \end_inset
17820
17821  must be of the form 
17822 \begin_inset Quotes eld
17823 \end_inset
17824
17825
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 Caption:<name>
17831 \end_layout
17832
17833 \end_inset
17834
17835
17836 \begin_inset Quotes erd
17837 \end_inset
17838
17839 , where 
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 name
17845 \end_layout
17846
17847 \end_inset
17848
17849  specifies the name of the caption as it appears in the menu.
17850  Have a look at the standard caption (
17851 \begin_inset Flex Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855 Caption:Standard
17856 \end_layout
17857
17858 \end_inset
17859
17860 ), the specific captions of the KOMA-Script classes (
17861 \begin_inset Flex Code
17862 status collapsed
17863
17864 \begin_layout Plain Layout
17865 Caption:Above
17866 \end_layout
17867
17868 \end_inset
17869
17870
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875 Caption:Below
17876 \end_layout
17877
17878 \end_inset
17879
17880 ) or the module 
17881 \family sans
17882 Multilingual
17883 \begin_inset space ~
17884 \end_inset
17885
17886 Captions
17887 \begin_inset Newline linebreak
17888 \end_inset
17889
17890
17891 \family default
17892 (
17893 \begin_inset Flex Code
17894 status collapsed
17895
17896 \begin_layout Plain Layout
17897 Caption:Bicaption
17898 \end_layout
17899
17900 \end_inset
17901
17902 ) for applications.
17903 \end_layout
17904
17905 \begin_layout Standard
17906 The 
17907 \begin_inset Flex Code
17908 status collapsed
17909
17910 \begin_layout Plain Layout
17911 InsetLayout
17912 \end_layout
17913
17914 \end_inset
17915
17916  definition can contain the following entries:
17917 \end_layout
17918
17919 \begin_layout Description
17920 \begin_inset Flex Code
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924 AddToToc
17925 \end_layout
17926
17927 \end_inset
17928
17929  [
17930 \begin_inset Flex Code
17931 status collapsed
17932
17933 \begin_layout Plain Layout
17934 string
17935 \end_layout
17936
17937 \end_inset
17938
17939 =""] This inset will appear in the table of contents of the given type.
17940  An empty string disables.
17941  See also the OutlinerName and the IsTocCaption commands.
17942  This is only implemented for Flex insets.
17943  Default: disabled.
17944 \end_layout
17945
17946 \begin_layout Description
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 Argument
17952 \end_layout
17953
17954 \end_inset
17955
17956  [
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 int
17962 \end_layout
17963
17964 \end_inset
17965
17966 ] Defines argument number of a command\SpecialChar breakableslash
17967 environment associated with the current
17968  layout.
17969  The definition must end with 
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 EndArgument
17975 \end_layout
17976
17977 \end_inset
17978
17979 .
17980  See 
17981 \begin_inset CommandInset ref
17982 LatexCommand ref
17983 reference "subsec:Paragraph-Styles"
17984
17985 \end_inset
17986
17987  for details.
17988 \end_layout
17989
17990 \begin_layout Description
17991 \begin_inset Flex Code
17992 status collapsed
17993
17994 \begin_layout Plain Layout
17995 BabelPreamble
17996 \end_layout
17997
17998 \end_inset
17999
18000  Preamble for changing language commands; see 
18001 \begin_inset CommandInset ref
18002 LatexCommand ref
18003 reference "subsec:I18n"
18004
18005 \end_inset
18006
18007 .
18008 \end_layout
18009
18010 \begin_layout Description
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 BgColor
18016 \end_layout
18017
18018 \end_inset
18019
18020  [
18021 \begin_inset Flex Code
18022 status collapsed
18023
18024 \begin_layout Plain Layout
18025 <name>
18026 \end_layout
18027
18028 \end_inset
18029
18030 ] The color for the inset's background.
18031  See 
18032 \begin_inset CommandInset ref
18033 LatexCommand ref
18034 reference "chap:Names-of-colors"
18035
18036 \end_inset
18037
18038  for a list of the available color names.
18039 \end_layout
18040
18041 \begin_layout Description
18042 \begin_inset Flex Code
18043 status collapsed
18044
18045 \begin_layout Plain Layout
18046 ContentAsLabel
18047 \end_layout
18048
18049 \end_inset
18050
18051  [
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056
18057 \emph on
18058 0
18059 \end_layout
18060
18061 \end_inset
18062
18063 ,
18064 \begin_inset space \thinspace{}
18065 \end_inset
18066
18067
18068 \begin_inset Flex Code
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072 1
18073 \end_layout
18074
18075 \end_inset
18076
18077 ] Whether to use the content of the inset as the label, when the inset is
18078  closed.
18079  Default is false.
18080 \end_layout
18081
18082 \begin_layout Description
18083 \begin_inset Flex Code
18084 status collapsed
18085
18086 \begin_layout Plain Layout
18087 CopyStyle
18088 \end_layout
18089
18090 \end_inset
18091
18092  [
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 <type>
18098 \end_layout
18099
18100 \end_inset
18101
18102 ] As with paragraph styles, see 
18103 \begin_inset CommandInset ref
18104 LatexCommand ref
18105 reference "subsec:Paragraph-Styles"
18106
18107 \end_inset
18108
18109 .
18110  Note that you need to specify the complete type, e.
18111 \begin_inset space \thinspace{}
18112 \end_inset
18113
18114 g.
18115 \begin_inset space ~
18116 \end_inset
18117
18118
18119 \begin_inset Flex Code
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 CopyStyle Flex:<name>
18124 \end_layout
18125
18126 \end_inset
18127
18128 .
18129 \end_layout
18130
18131 \begin_layout Description
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136 CustomPars
18137 \end_layout
18138
18139 \end_inset
18140
18141  [
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146
18147 \emph on
18148 0
18149 \end_layout
18150
18151 \end_inset
18152
18153 ,
18154 \begin_inset space \thinspace{}
18155 \end_inset
18156
18157
18158 \begin_inset Flex Code
18159 status collapsed
18160
18161 \begin_layout Plain Layout
18162 1
18163 \end_layout
18164
18165 \end_inset
18166
18167 ] Indicates whether the user may employ the Paragraph Settings dialog to
18168  customize the paragraph.
18169 \end_layout
18170
18171 \begin_layout Description
18172 \begin_inset Flex Code
18173 status collapsed
18174
18175 \begin_layout Plain Layout
18176 Decoration
18177 \end_layout
18178
18179 \end_inset
18180
18181  can be 
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 Classic
18187 \end_layout
18188
18189 \end_inset
18190
18191
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196 Minimalistic
18197 \end_layout
18198
18199 \end_inset
18200
18201 , or 
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206 Conglomerate
18207 \end_layout
18208
18209 \end_inset
18210
18211 , describing the rendering style used for the inset's frame and buttons.
18212  Footnotes generally use 
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 Classic
18218 \end_layout
18219
18220 \end_inset
18221
18222 , ERT insets generally 
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Minimalistic
18228 \end_layout
18229
18230 \end_inset
18231
18232 , and character styles 
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 Conglomerate
18238 \end_layout
18239
18240 \end_inset
18241
18242 .
18243 \end_layout
18244
18245 \begin_layout Description
18246 \begin_inset Flex Code
18247 status collapsed
18248
18249 \begin_layout Plain Layout
18250 Display
18251 \end_layout
18252
18253 \end_inset
18254
18255  [
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 0
18261 \end_layout
18262
18263 \end_inset
18264
18265 ,
18266 \emph on
18267
18268 \begin_inset space \thinspace{}
18269 \end_inset
18270
18271
18272 \emph default
18273
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278
18279 \emph on
18280 1
18281 \end_layout
18282
18283 \end_inset
18284
18285 ] Only useful if 
18286 \begin_inset Flex Code
18287 status collapsed
18288
18289 \begin_layout Plain Layout
18290 LatexType
18291 \end_layout
18292
18293 \end_inset
18294
18295  is 
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 Environment
18301 \end_layout
18302
18303 \end_inset
18304
18305 .
18306  Indicates whether the environment will stand on its own in the output or
18307  will appear inline with the surrounding text.
18308  If set to false, it is supposed that the \SpecialChar LaTeX
18309  environment ignores white space
18310  (including one newline character) after the 
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315
18316 \backslash
18317 begin{
18318 \emph on
18319 LatexName
18320 \emph default
18321 }
18322 \end_layout
18323
18324 \end_inset
18325
18326  and 
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331
18332 \backslash
18333 end{
18334 \emph on
18335 LatexName
18336 \emph default
18337 }
18338 \end_layout
18339
18340 \end_inset
18341
18342  tags.
18343  Default is true.
18344 \end_layout
18345
18346 \begin_layout Description
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 End
18352 \end_layout
18353
18354 \end_inset
18355
18356  Required at the end of the 
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 InsetLayout
18362 \end_layout
18363
18364 \end_inset
18365
18366  declarations.
18367 \end_layout
18368
18369 \begin_layout Description
18370 \begin_inset Flex Code
18371 status collapsed
18372
18373 \begin_layout Plain Layout
18374 Font
18375 \end_layout
18376
18377 \end_inset
18378
18379  The font used for both the text body 
18380 \emph on
18381 and
18382 \emph default
18383  the label.
18384  See 
18385 \begin_inset CommandInset ref
18386 LatexCommand ref
18387 reference "subsec:Font-description"
18388
18389 \end_inset
18390
18391 .
18392  Note that defining this font automatically defines the 
18393 \begin_inset Flex Code
18394 status collapsed
18395
18396 \begin_layout Plain Layout
18397 LabelFont
18398 \end_layout
18399
18400 \end_inset
18401
18402  to the same value, so define this first and define 
18403 \begin_inset Flex Code
18404 status collapsed
18405
18406 \begin_layout Plain Layout
18407 LabelFont
18408 \end_layout
18409
18410 \end_inset
18411
18412  later if you want them to be different.
18413 \end_layout
18414
18415 \begin_layout Description
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 FixedWidthPreambleEncoding
18421 \end_layout
18422
18423 \end_inset
18424
18425  [
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430
18431 \emph on
18432 0
18433 \end_layout
18434
18435 \end_inset
18436
18437 ,
18438 \begin_inset space \thinspace{}
18439 \end_inset
18440
18441
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 1
18447 \end_layout
18448
18449 \end_inset
18450
18451 ] Force a fixed width encoding for the translated contents of 
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 BabelPreamble
18457 \end_layout
18458
18459 \end_inset
18460
18461  and 
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 LangPreamble
18467 \end_layout
18468
18469 \end_inset
18470
18471  code generated by this layout.
18472  This is needed for special \SpecialChar LaTeX
18473 -packages like 
18474 \family typewriter
18475 listings
18476 \family default
18477  that do not work with variable width encodings such as 
18478 \family sans
18479 utf8
18480 \family default
18481 .
18482  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18483  backends such as Xe\SpecialChar TeX
18484  or
18485  Lua\SpecialChar TeX
18486  are used.
18487 \end_layout
18488
18489 \begin_layout Description
18490 \begin_inset Flex Code
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494 ForceLocalFontSwitch
18495 \end_layout
18496
18497 \end_inset
18498
18499  [
18500 \begin_inset Flex Code
18501 status collapsed
18502
18503 \begin_layout Plain Layout
18504
18505 \emph on
18506 0
18507 \end_layout
18508
18509 \end_inset
18510
18511 ,
18512 \begin_inset space \thinspace{}
18513 \end_inset
18514
18515
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 1
18521 \end_layout
18522
18523 \end_inset
18524
18525 ] When using babel, always use a local font switch (
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530
18531 \backslash
18532 foreignlanguage
18533 \end_layout
18534
18535 \end_inset
18536
18537 ), never a global one (such as 
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542
18543 \backslash
18544 selectlanguage
18545 \end_layout
18546
18547 \end_inset
18548
18549 ).
18550 \end_layout
18551
18552 \begin_layout Description
18553 \begin_inset Flex Code
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557 ForceLTR
18558 \end_layout
18559
18560 \end_inset
18561
18562  [
18563 \begin_inset Flex Code
18564 status collapsed
18565
18566 \begin_layout Plain Layout
18567
18568 \emph on
18569 0
18570 \end_layout
18571
18572 \end_inset
18573
18574 ,
18575 \begin_inset space \thinspace{}
18576 \end_inset
18577
18578
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 1
18584 \end_layout
18585
18586 \end_inset
18587
18588 ] Force the 
18589 \begin_inset Quotes eld
18590 \end_inset
18591
18592 latex
18593 \begin_inset Quotes erd
18594 \end_inset
18595
18596  language, leading to Left-to-Right (Latin) output, e.
18597 \begin_inset space \thinspace{}
18598 \end_inset
18599
18600 g.
18601 \begin_inset space \space{}
18602 \end_inset
18603
18604 in \SpecialChar TeX
18605  code or URL.
18606  A kludge.
18607 \end_layout
18608
18609 \begin_layout Description
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614 ForceOwnlines
18615 \end_layout
18616
18617 \end_inset
18618
18619  [
18620 \begin_inset Flex Code
18621 status collapsed
18622
18623 \begin_layout Plain Layout
18624
18625 \emph on
18626 0
18627 \end_layout
18628
18629 \end_inset
18630
18631 ,
18632 \begin_inset space \thinspace{}
18633 \end_inset
18634
18635
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 1
18641 \end_layout
18642
18643 \end_inset
18644
18645 ] Force a a line break in the \SpecialChar LaTeX
18646  output before the inset starts and after
18647  the inset ends.
18648  This assures the inset itself is output on its own lines, for parsing purposes.
18649 \end_layout
18650
18651 \begin_layout Description
18652 \begin_inset Flex Code
18653 status collapsed
18654
18655 \begin_layout Plain Layout
18656 ForcePlain
18657 \end_layout
18658
18659 \end_inset
18660
18661  [
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666
18667 \emph on
18668 0
18669 \end_layout
18670
18671 \end_inset
18672
18673 ,
18674 \begin_inset space \thinspace{}
18675 \end_inset
18676
18677
18678 \begin_inset Flex Code
18679 status collapsed
18680
18681 \begin_layout Plain Layout
18682 1
18683 \end_layout
18684
18685 \end_inset
18686
18687 ] Indicates whether the 
18688 \begin_inset Flex Code
18689 status collapsed
18690
18691 \begin_layout Plain Layout
18692 PlainLayout
18693 \end_layout
18694
18695 \end_inset
18696
18697  should be used or, instead, the user can change the paragraph style used
18698  in the inset.
18699  Default is false.
18700 \end_layout
18701
18702 \begin_layout Description
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707 FreeSpacing
18708 \end_layout
18709
18710 \end_inset
18711
18712  [
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717
18718 \emph on
18719 0
18720 \end_layout
18721
18722 \end_inset
18723
18724 ,
18725 \begin_inset space \thinspace{}
18726 \end_inset
18727
18728
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 1
18734 \end_layout
18735
18736 \end_inset
18737
18738 ] As with paragraph styles, see 
18739 \begin_inset CommandInset ref
18740 LatexCommand ref
18741 reference "subsec:Paragraph-Styles"
18742
18743 \end_inset
18744
18745 .
18746 \end_layout
18747
18748 \begin_layout Description
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753 HTML*
18754 \end_layout
18755
18756 \end_inset
18757
18758  These tags control the XHTML output.
18759  See 
18760 \begin_inset CommandInset ref
18761 LatexCommand ref
18762 reference "sec:Tags-for-XHTML"
18763
18764 \end_inset
18765
18766 .
18767 \end_layout
18768
18769 \begin_layout Description
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 InToc
18775 \end_layout
18776
18777 \end_inset
18778
18779  [
18780 \begin_inset Flex Code
18781 status collapsed
18782
18783 \begin_layout Plain Layout
18784
18785 \emph on
18786 0
18787 \end_layout
18788
18789 \end_inset
18790
18791 ,
18792 \begin_inset space \thinspace{}
18793 \end_inset
18794
18795
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800 1
18801 \end_layout
18802
18803 \end_inset
18804
18805 ] Whether to include the contents of this inset in the strings generated
18806  for the `Outline' pane for all table of contents, regardless of the AddToToc
18807  setting.
18808  One would not, for example, want the content of a footnote in a section
18809  header to be included in the TOC displayed in the outline, but one would
18810  normally want the content of a character style displayed.
18811  Default is false: not to include.
18812 \end_layout
18813
18814 \begin_layout Description
18815 \begin_inset Flex Code
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819 IsTocCaption
18820 \end_layout
18821
18822 \end_inset
18823
18824  [
18825 \begin_inset Flex Code
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829
18830 \emph on
18831 0
18832 \end_layout
18833
18834 \end_inset
18835
18836 ,
18837 \begin_inset space \thinspace{}
18838 \end_inset
18839
18840
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 1
18846 \end_layout
18847
18848 \end_inset
18849
18850 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18851  of its contents in its item in the table of contents.
18852  Otherwise, only the label appears.
18853 \end_layout
18854
18855 \begin_layout Description
18856 \begin_inset Flex Code
18857 status collapsed
18858
18859 \begin_layout Plain Layout
18860 KeepEmpty
18861 \end_layout
18862
18863 \end_inset
18864
18865  [
18866 \emph on
18867
18868 \begin_inset Flex Code
18869 status collapsed
18870
18871 \begin_layout Plain Layout
18872 0
18873 \end_layout
18874
18875 \end_inset
18876
18877
18878 \emph default
18879 ,
18880 \begin_inset space \thinspace{}
18881 \end_inset
18882
18883
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 1
18889 \end_layout
18890
18891 \end_inset
18892
18893 ] As with paragraph styles, see 
18894 \begin_inset CommandInset ref
18895 LatexCommand ref
18896 reference "subsec:Paragraph-Styles"
18897
18898 \end_inset
18899
18900 .
18901 \end_layout
18902
18903 \begin_layout Description
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 LabelFont
18909 \end_layout
18910
18911 \end_inset
18912
18913  The font used for the label.
18914  See 
18915 \begin_inset CommandInset ref
18916 LatexCommand ref
18917 reference "subsec:Font-description"
18918
18919 \end_inset
18920
18921 .
18922  Note that this definition can never appear before 
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 Font
18928 \end_layout
18929
18930 \end_inset
18931
18932 , lest it be ineffective.
18933 \end_layout
18934
18935 \begin_layout Description
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 LabelString
18941 \end_layout
18942
18943 \end_inset
18944
18945  [
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950 string
18951 \end_layout
18952
18953 \end_inset
18954
18955 =
18956 \begin_inset Quotes erd
18957 \end_inset
18958
18959
18960 \begin_inset Quotes erd
18961 \end_inset
18962
18963 ] What will be displayed on the button or elsewhere as the inset label.
18964  Some inset types (
18965 \begin_inset Flex Code
18966 status collapsed
18967
18968 \begin_layout Plain Layout
18969 \SpecialChar TeX
18970  code
18971 \end_layout
18972
18973 \end_inset
18974
18975  and 
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 Branch
18981 \end_layout
18982
18983 \end_inset
18984
18985 ) modify this label on the fly.
18986 \end_layout
18987
18988 \begin_layout Description
18989 \begin_inset Flex Code
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 LangPreamble
18994 \end_layout
18995
18996 \end_inset
18997
18998  Language dependent preamble; see 
18999 \begin_inset CommandInset ref
19000 LatexCommand ref
19001 reference "subsec:I18n"
19002
19003 \end_inset
19004
19005 .
19006 \end_layout
19007
19008 \begin_layout Description
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013 LatexName
19014 \end_layout
19015
19016 \end_inset
19017
19018  [
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 <name>
19024 \end_layout
19025
19026 \end_inset
19027
19028 ] The name of the corresponding \SpecialChar LaTeX
19029  stuff.
19030  Either the environment or command name.
19031 \end_layout
19032
19033 \begin_layout Description
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 LatexParam
19039 \end_layout
19040
19041 \end_inset
19042
19043  [
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 <parameter>
19049 \end_layout
19050
19051 \end_inset
19052
19053 ] The optional parameter for the corresponding 
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 LatexName
19059 \end_layout
19060
19061 \end_inset
19062
19063  stuff, including possible bracket pairs like 
19064 \begin_inset Flex Code
19065 status collapsed
19066
19067 \begin_layout Plain Layout
19068 []
19069 \end_layout
19070
19071 \end_inset
19072
19073 .
19074  This parameter cannot be changed from within \SpecialChar LyX
19075  (use 
19076 \begin_inset Flex Code
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080 Argument
19081 \end_layout
19082
19083 \end_inset
19084
19085  for customizable parameters).
19086  It will be output as is after all \SpecialChar LaTeX
19087  
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 Argument
19093 \end_layout
19094
19095 \end_inset
19096
19097 s.
19098 \end_layout
19099
19100 \begin_layout Description
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 LatexType
19106 \end_layout
19107
19108 \end_inset
19109
19110  [
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 Command, Environment, None
19116 \end_layout
19117
19118 \end_inset
19119
19120 ] How the style should be translated into \SpecialChar LaTeX
19121 .
19122 \begin_inset Foot
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 LatexType
19131 \end_layout
19132
19133 \end_inset
19134
19135  is perhaps a bit misleading, since these rules apply to SGML classes too.
19136  Visit the SGML class files for specific examples.
19137 \end_layout
19138
19139 \end_inset
19140
19141
19142 \end_layout
19143
19144 \begin_deeper
19145 \begin_layout Description
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 None
19151 \end_layout
19152
19153 \end_inset
19154
19155  means nothing special
19156 \end_layout
19157
19158 \begin_layout Description
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 Command
19164 \end_layout
19165
19166 \end_inset
19167
19168  means 
19169 \begin_inset Flex Code
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173
19174 \backslash
19175
19176 \emph on
19177 LatexName
19178 \emph default
19179 {\SpecialChar ldots
19180 }
19181 \end_layout
19182
19183 \end_inset
19184
19185
19186 \end_layout
19187
19188 \begin_layout Description
19189 \begin_inset Flex Code
19190 status collapsed
19191
19192 \begin_layout Plain Layout
19193 Environment
19194 \end_layout
19195
19196 \end_inset
19197
19198  means 
19199 \begin_inset Flex Code
19200 status collapsed
19201
19202 \begin_layout Plain Layout
19203
19204 \backslash
19205 begin{
19206 \emph on
19207 LatexName
19208 \emph default
19209 }\SpecialChar ldots
19210
19211 \backslash
19212 end{
19213 \emph on
19214 LatexName
19215 \emph default
19216 }
19217 \end_layout
19218
19219 \end_inset
19220
19221
19222 \end_layout
19223
19224 \begin_layout Standard
19225 Putting the last few things together, the \SpecialChar LaTeX
19226  output will be either: 
19227 \end_layout
19228
19229 \begin_layout LyX-Code
19230
19231 \backslash
19232 LatexName[LatexParam]{\SpecialChar ldots
19233 }
19234 \end_layout
19235
19236 \begin_layout Standard
19237 or: 
19238 \end_layout
19239
19240 \begin_layout LyX-Code
19241
19242 \backslash
19243 begin{LatexName}[LatexParam] \SpecialChar ldots
19244  
19245 \backslash
19246 end{LatexName}
19247 \end_layout
19248
19249 \begin_layout Standard
19250 depending upon the \SpecialChar LaTeX
19251  type.
19252 \end_layout
19253
19254 \end_deeper
19255 \begin_layout Description
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 LeftDelim
19261 \end_layout
19262
19263 \end_inset
19264
19265  [
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 string
19271 \end_layout
19272
19273 \end_inset
19274
19275 ] A string that is put at the beginning of the layout content.
19276  A line break in the output can be indicated by 
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281 <br/>
19282 \end_layout
19283
19284 \end_inset
19285
19286 .
19287 \end_layout
19288
19289 \begin_layout Description
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 LyxType
19295 \end_layout
19296
19297 \end_inset
19298
19299  Can be 
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 charstyle
19305 \end_layout
19306
19307 \end_inset
19308
19309
19310 \begin_inset Flex Code
19311 status collapsed
19312
19313 \begin_layout Plain Layout
19314 custom
19315 \end_layout
19316
19317 \end_inset
19318
19319
19320 \begin_inset Flex Code
19321 status collapsed
19322
19323 \begin_layout Plain Layout
19324 element
19325 \end_layout
19326
19327 \end_inset
19328
19329  or 
19330 \begin_inset Flex Code
19331 status collapsed
19332
19333 \begin_layout Plain Layout
19334 end
19335 \end_layout
19336
19337 \end_inset
19338
19339  (indicating a dummy definition ending definitions of charstyles, etc).
19340  This entry is required in and is only meaningful for Flex insets.
19341  Among other things, it determines on which menu this inset will appear.
19342  Setting 
19343 \begin_inset Flex Code
19344 status collapsed
19345
19346 \begin_layout Plain Layout
19347 LyxType
19348 \end_layout
19349
19350 \end_inset
19351
19352  to 
19353 \begin_inset Flex Code
19354 status collapsed
19355
19356 \begin_layout Plain Layout
19357 charstyle
19358 \end_layout
19359
19360 \end_inset
19361
19362  will automatically set 
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 MultiPar
19368 \end_layout
19369
19370 \end_inset
19371
19372  to false and 
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 ForcePlain
19378 \end_layout
19379
19380 \end_inset
19381
19382  to true.
19383  
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 MultiPar
19389 \end_layout
19390
19391 \end_inset
19392
19393  can be set to true, or 
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 ForcePlain
19399 \end_layout
19400
19401 \end_inset
19402
19403  to false, for 
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 charstyle
19409 \end_layout
19410
19411 \end_inset
19412
19413  insets by setting it 
19414 \emph on
19415 after
19416 \emph default
19417  you set the 
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 LyxType
19423 \end_layout
19424
19425 \end_inset
19426
19427 .
19428 \end_layout
19429
19430 \begin_layout Description
19431 \begin_inset Flex Code
19432 status collapsed
19433
19434 \begin_layout Plain Layout
19435 MultiPar
19436 \end_layout
19437
19438 \end_inset
19439
19440  [
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445
19446 \emph on
19447 0
19448 \end_layout
19449
19450 \end_inset
19451
19452 ,
19453 \begin_inset space \thinspace{}
19454 \end_inset
19455
19456
19457 \begin_inset Flex Code
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461 1
19462 \end_layout
19463
19464 \end_inset
19465
19466 ] Whether multiple paragraphs are permitted in this inset.
19467  This will also set 
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472 CustomPars
19473 \end_layout
19474
19475 \end_inset
19476
19477  to the same value and 
19478 \begin_inset Flex Code
19479 status collapsed
19480
19481 \begin_layout Plain Layout
19482 ForcePlain
19483 \end_layout
19484
19485 \end_inset
19486
19487  to the opposite value.
19488  These can be reset to other values, if they are used 
19489 \emph on
19490 after
19491 \emph default
19492  
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 MultiPar
19498 \end_layout
19499
19500 \end_inset
19501
19502 .
19503  Default is true.
19504 \end_layout
19505
19506 \begin_layout Description
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511 NeedProtect
19512 \end_layout
19513
19514 \end_inset
19515
19516  [
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521
19522 \emph on
19523 0
19524 \end_layout
19525
19526 \end_inset
19527
19528 ,
19529 \begin_inset space \thinspace{}
19530 \end_inset
19531
19532
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 1
19538 \end_layout
19539
19540 \end_inset
19541
19542 ] Whether fragile commands in this inset should be 
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547
19548 \backslash
19549 protect
19550 \end_layout
19551
19552 \end_inset
19553
19554 'ed.
19555  (Note: This is 
19556 \emph on
19557 not
19558 \emph default
19559  whether the command should itself be protected.) Default is false.
19560 \end_layout
19561
19562 \begin_layout Description
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 NoInsetLayout
19568 \end_layout
19569
19570 \end_inset
19571
19572  [
19573 \begin_inset Flex Code
19574 status collapsed
19575
19576 \begin_layout Plain Layout
19577 <layout>
19578 \end_layout
19579
19580 \end_inset
19581
19582 ] Deletes an existing 
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 InsetLayout
19588 \end_layout
19589
19590 \end_inset
19591
19592 .
19593 \end_layout
19594
19595 \begin_layout Description
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 ObsoletedBy
19601 \end_layout
19602
19603 \end_inset
19604
19605  [
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 <layout>
19611 \end_layout
19612
19613 \end_inset
19614
19615 ] Name of an 
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620 InsetLayout
19621 \end_layout
19622
19623 \end_inset
19624
19625  that has replaced this 
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 InsetLayout
19631 \end_layout
19632
19633 \end_inset
19634
19635 .
19636  This is used to rename an 
19637 \begin_inset Flex Code
19638 status collapsed
19639
19640 \begin_layout Plain Layout
19641 InsetLayout
19642 \end_layout
19643
19644 \end_inset
19645
19646 , while keeping backward compatibility.
19647 \end_layout
19648
19649 \begin_layout Description
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 ParbreakIsNewline
19655 \end_layout
19656
19657 \end_inset
19658
19659  [
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664
19665 \emph on
19666 0
19667 \end_layout
19668
19669 \end_inset
19670
19671 ,
19672 \begin_inset space \thinspace{}
19673 \end_inset
19674
19675
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 1
19681 \end_layout
19682
19683 \end_inset
19684
19685 ] As with paragraph styles, see 
19686 \begin_inset CommandInset ref
19687 LatexCommand ref
19688 reference "subsec:Paragraph-Styles"
19689
19690 \end_inset
19691
19692 .
19693  Default is false.
19694 \end_layout
19695
19696 \begin_layout Description
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701 PassThru
19702 \end_layout
19703
19704 \end_inset
19705
19706  [
19707 \begin_inset Flex Code
19708 status collapsed
19709
19710 \begin_layout Plain Layout
19711
19712 \emph on
19713 0
19714 \end_layout
19715
19716 \end_inset
19717
19718 ,
19719 \begin_inset space \thinspace{}
19720 \end_inset
19721
19722
19723 \begin_inset Flex Code
19724 status collapsed
19725
19726 \begin_layout Plain Layout
19727 1
19728 \end_layout
19729
19730 \end_inset
19731
19732 ] As with paragraph styles, see 
19733 \begin_inset CommandInset ref
19734 LatexCommand ref
19735 reference "subsec:Paragraph-Styles"
19736
19737 \end_inset
19738
19739 .
19740  Default is false.
19741 \end_layout
19742
19743 \begin_layout Description
19744 \begin_inset Flex Code
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 Preamble
19749 \end_layout
19750
19751 \end_inset
19752
19753  As with paragraph styles, see 
19754 \begin_inset CommandInset ref
19755 LatexCommand ref
19756 reference "subsec:Paragraph-Styles"
19757
19758 \end_inset
19759
19760 .
19761 \end_layout
19762
19763 \begin_layout Description
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 RefPrefix
19769 \end_layout
19770
19771 \end_inset
19772
19773  [
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 string
19779 \end_layout
19780
19781 \end_inset
19782
19783 ] The prefix to use when creating labels referring to insets of this type.
19784  This allows the use of formatted references.
19785 \end_layout
19786
19787 \begin_layout Description
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 Requires
19793 \end_layout
19794
19795 \end_inset
19796
19797  [
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 string
19803 \end_layout
19804
19805 \end_inset
19806
19807 ] As with paragraph styles, see 
19808 \begin_inset CommandInset ref
19809 LatexCommand ref
19810 reference "subsec:Paragraph-Styles"
19811
19812 \end_inset
19813
19814 .
19815 \end_layout
19816
19817 \begin_layout Description
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 ResetArgs
19823 \end_layout
19824
19825 \end_inset
19826
19827  [
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832
19833 \emph on
19834 0
19835 \end_layout
19836
19837 \end_inset
19838
19839 ,
19840 \begin_inset space \thinspace{}
19841 \end_inset
19842
19843
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 1
19849 \end_layout
19850
19851 \end_inset
19852
19853 ] Resets the \SpecialChar LaTeX
19854  arguments of this layout (as defined via the 
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859 Argument
19860 \end_layout
19861
19862 \end_inset
19863
19864  tag).
19865  This is useful if you have copied a style via 
19866 \begin_inset Flex Code
19867 status collapsed
19868
19869 \begin_layout Plain Layout
19870 CopyStyle
19871 \end_layout
19872
19873 \end_inset
19874
19875 , but you do not want to inherit its (required and optional) arguments.
19876 \end_layout
19877
19878 \begin_layout Description
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 ResetsFont
19884 \end_layout
19885
19886 \end_inset
19887
19888  [
19889 \begin_inset Flex Code
19890 status collapsed
19891
19892 \begin_layout Plain Layout
19893 0
19894 \end_layout
19895
19896 \end_inset
19897
19898 ,
19899 \begin_inset space \thinspace{}
19900 \end_inset
19901
19902
19903 \begin_inset Flex Code
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907
19908 \emph on
19909 1
19910 \end_layout
19911
19912 \end_inset
19913
19914 ] Whether this inset should use the font of its surrounding environment
19915  or uses its own.
19916  Default is false: use the font of the surrounding environment.
19917 \end_layout
19918
19919 \begin_layout Description
19920 \begin_inset Flex Code
19921 status collapsed
19922
19923 \begin_layout Plain Layout
19924 RightDelim
19925 \end_layout
19926
19927 \end_inset
19928
19929  [
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 string
19935 \end_layout
19936
19937 \end_inset
19938
19939 ] A string that is put at the end of the layout content.
19940  A line break in the output can be indicated by 
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 <br/>
19946 \end_layout
19947
19948 \end_inset
19949
19950 .
19951 \end_layout
19952
19953 \begin_layout Description
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958 Spellcheck
19959 \end_layout
19960
19961 \end_inset
19962
19963  [
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 0
19969 \end_layout
19970
19971 \end_inset
19972
19973 ,
19974 \begin_inset space \thinspace{}
19975 \end_inset
19976
19977
19978 \begin_inset Flex Code
19979 status collapsed
19980
19981 \begin_layout Plain Layout
19982
19983 \emph on
19984 1
19985 \end_layout
19986
19987 \end_inset
19988
19989 ] Allow spell-checking the contents of this inset.
19990  Default is true.
19991 \end_layout
19992
19993 \begin_layout Subsection
19994 Counters
19995 \begin_inset CommandInset label
19996 LatexCommand label
19997 name "subsec:Counters"
19998
19999 \end_inset
20000
20001
20002 \end_layout
20003
20004 \begin_layout Standard
20005 It is necessary to define the counters (
20006 \begin_inset Flex Noun
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 chapter
20011 \end_layout
20012
20013 \end_inset
20014
20015
20016 \begin_inset Flex Noun
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 figure
20021 \end_layout
20022
20023 \end_inset
20024
20025 , \SpecialChar ldots
20026 ) in the text class itself.
20027  The standard counters are defined in the file 
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032 stdcounters.inc
20033 \end_layout
20034
20035 \end_inset
20036
20037 , so you may have to do no more than add
20038 \end_layout
20039
20040 \begin_layout LyX-Code
20041 Input stdcounters.inc
20042 \end_layout
20043
20044 \begin_layout Standard
20045 to your layout file to get them to work.
20046  But if you want to define custom counters, then you can do so.
20047  The counter declaration must begin with:
20048 \end_layout
20049
20050 \begin_layout LyX-Code
20051 Counter CounterName
20052 \end_layout
20053
20054 \begin_layout Standard
20055 where of course `
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 CounterName
20061 \end_layout
20062
20063 \end_inset
20064
20065 ' is replaced by the name of the counter.
20066  And it must end with 
20067 \begin_inset Quotes eld
20068 \end_inset
20069
20070
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 End
20076 \end_layout
20077
20078 \end_inset
20079
20080
20081 \begin_inset Quotes erd
20082 \end_inset
20083
20084 .
20085  The following parameters can also be used:
20086 \end_layout
20087
20088 \begin_layout Description
20089 \begin_inset Flex Code
20090 status collapsed
20091
20092 \begin_layout Plain Layout
20093 InitialValue
20094 \end_layout
20095
20096 \end_inset
20097
20098  [
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 int=1
20104 \end_layout
20105
20106 \end_inset
20107
20108 ] Sets the initial value for the counter, to which it will be reset whenever
20109  that happens.
20110  Normally, one will want the default, 1.
20111 \end_layout
20112
20113 \begin_layout Description
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118 LabelString
20119 \end_layout
20120
20121 \end_inset
20122
20123  [
20124 \begin_inset Flex Code
20125 status collapsed
20126
20127 \begin_layout Plain Layout
20128 string
20129 \end_layout
20130
20131 \end_inset
20132
20133 =
20134 \begin_inset Quotes erd
20135 \end_inset
20136
20137
20138 \begin_inset Quotes erd
20139 \end_inset
20140
20141 ] When defined, this string defines how the counter is displayed.
20142  Setting this value sets 
20143 \begin_inset Flex Code
20144 status collapsed
20145
20146 \begin_layout Plain Layout
20147 LabelStringAppendix
20148 \end_layout
20149
20150 \end_inset
20151
20152  to the same value.
20153  The following special constructs can be used in the string:
20154 \end_layout
20155
20156 \begin_deeper
20157 \begin_layout Itemize
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162
20163 \backslash
20164 thecounter
20165 \end_layout
20166
20167 \end_inset
20168
20169  will be replaced by the expansion of the 
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 LabelString
20175 \end_layout
20176
20177 \end_inset
20178
20179  (or 
20180 \begin_inset Flex Code
20181 status collapsed
20182
20183 \begin_layout Plain Layout
20184 LabelStringAppendix
20185 \end_layout
20186
20187 \end_inset
20188
20189 ) of the counter 
20190 \begin_inset Flex Code
20191 status collapsed
20192
20193 \begin_layout Plain Layout
20194 counter
20195 \end_layout
20196
20197 \end_inset
20198
20199 .
20200  
20201 \end_layout
20202
20203 \begin_layout Itemize
20204 counter values can be expressed using \SpecialChar LaTeX
20205 -like macros
20206 \begin_inset Newline newline
20207 \end_inset
20208
20209
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214
20215 \backslash
20216
20217 \emph on
20218 numbertype
20219 \emph default
20220 {
20221 \emph on
20222 counter
20223 \emph default
20224 }
20225 \end_layout
20226
20227 \end_inset
20228
20229 , where 
20230 \begin_inset Flex Code
20231 status collapsed
20232
20233 \begin_layout Plain Layout
20234
20235 \emph on
20236 numbertype
20237 \end_layout
20238
20239 \end_inset
20240
20241  can be:
20242 \begin_inset Foot
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246
20247 \family roman
20248 \series medium
20249 \shape up
20250 \size normal
20251 \emph off
20252 \bar no
20253 \noun off
20254 \color none
20255 Actually, the situation is a bit more complicated: any
20256 \family default
20257 \series default
20258 \shape default
20259 \emph default
20260 \bar default
20261  
20262 \size default
20263 \emph on
20264 \noun default
20265 \color inherit
20266 numbertype
20267 \family roman
20268 \series medium
20269 \shape up
20270 \size normal
20271 \emph off
20272 \bar no
20273 \noun off
20274  other than those described below will produce arabic numerals.
20275  It would not be surprising to see this change in the future.
20276 \end_layout
20277
20278 \end_inset
20279
20280  
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 arabic
20286 \end_layout
20287
20288 \end_inset
20289
20290 : 1, 2, 3,\SpecialChar ldots
20291
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 alph
20297 \end_layout
20298
20299 \end_inset
20300
20301  for lower-case letters: a, b, c, \SpecialChar ldots
20302
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 Alph
20308 \end_layout
20309
20310 \end_inset
20311
20312  for upper-case letters: A, B, C, \SpecialChar ldots
20313
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 roman
20319 \end_layout
20320
20321 \end_inset
20322
20323  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20324
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 Roman
20330 \end_layout
20331
20332 \end_inset
20333
20334  for upper-case roman numerals: I, II, III\SpecialChar ldots
20335
20336 \begin_inset Flex Code
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340 hebrew
20341 \end_layout
20342
20343 \end_inset
20344
20345  for hebrew numerals.
20346 \end_layout
20347
20348 \end_deeper
20349 \begin_layout Standard
20350 If LabelString is not defined, a default value is constructed as follows:
20351  if the counter has a master counter 
20352 \begin_inset Flex Code
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 master
20357 \end_layout
20358
20359 \end_inset
20360
20361  (defined via 
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366 Within
20367 \end_layout
20368
20369 \end_inset
20370
20371 ), the string
20372 \begin_inset Newline newline
20373 \end_inset
20374
20375
20376 \begin_inset Flex Code
20377 status collapsed
20378
20379 \begin_layout Plain Layout
20380
20381 \backslash
20382 themaster.
20383 \backslash
20384 arabic{counter}
20385 \end_layout
20386
20387 \end_inset
20388
20389  is used; otherwise the string 
20390 \begin_inset Flex Code
20391 status collapsed
20392
20393 \begin_layout Plain Layout
20394
20395 \backslash
20396 arabic{counter}
20397 \end_layout
20398
20399 \end_inset
20400
20401  is used.
20402 \end_layout
20403
20404 \begin_layout Description
20405 \begin_inset Flex Code
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409 LabelStringAppendix
20410 \end_layout
20411
20412 \end_inset
20413
20414  [
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 string
20420 \end_layout
20421
20422 \end_inset
20423
20424 =
20425 \begin_inset Quotes erd
20426 \end_inset
20427
20428
20429 \begin_inset Quotes erd
20430 \end_inset
20431
20432 ] Same as 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 LabelString
20438 \end_layout
20439
20440 \end_inset
20441
20442 , but for use in the Appendix.
20443 \end_layout
20444
20445 \begin_layout Description
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 PrettyFormat
20451 \end_layout
20452
20453 \end_inset
20454
20455  [
20456 \begin_inset Flex Code
20457 status collapsed
20458
20459 \begin_layout Plain Layout
20460 string
20461 \end_layout
20462
20463 \end_inset
20464
20465 =
20466 \begin_inset Quotes erd
20467 \end_inset
20468
20469
20470 \begin_inset Quotes erd
20471 \end_inset
20472
20473 ] A format for use with formatted references to this counter.
20474  For example, one might want to have references to section numbers appear
20475  as 
20476 \begin_inset Quotes eld
20477 \end_inset
20478
20479 Section 2.4
20480 \begin_inset Quotes erd
20481 \end_inset
20482
20483 .
20484  The string should contain 
20485 \begin_inset Quotes eld
20486 \end_inset
20487
20488 ##
20489 \begin_inset Quotes erd
20490 \end_inset
20491
20492 .
20493  This will be replaced by the counter number itself.
20494  So, for sections, it would be: Section ##.
20495 \end_layout
20496
20497 \begin_layout Description
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 Within
20503 \end_layout
20504
20505 \end_inset
20506
20507  [
20508 \begin_inset Flex Code
20509 status collapsed
20510
20511 \begin_layout Plain Layout
20512 string
20513 \end_layout
20514
20515 \end_inset
20516
20517 =
20518 \begin_inset Quotes erd
20519 \end_inset
20520
20521
20522 \begin_inset Quotes erd
20523 \end_inset
20524
20525 ] If this is set to the name of another counter, the present counter will
20526  be reset every time the other one is increased.
20527  For example, 
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 subsection
20533 \end_layout
20534
20535 \end_inset
20536
20537  is numbered inside 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 section
20543 \end_layout
20544
20545 \end_inset
20546
20547 .
20548 \end_layout
20549
20550 \begin_layout Subsection
20551 Font description
20552 \begin_inset CommandInset label
20553 LatexCommand label
20554 name "subsec:Font-description"
20555
20556 \end_inset
20557
20558
20559 \end_layout
20560
20561 \begin_layout Standard
20562 A font description looks like this:
20563 \end_layout
20564
20565 \begin_layout LyX-Code
20566 Font 
20567 \family roman
20568 \emph on
20569 or
20570 \family default
20571 \emph default
20572  LabelFont
20573 \emph on
20574  
20575 \family roman
20576 or
20577 \family default
20578 \emph default
20579  DefaultFont
20580 \end_layout
20581
20582 \begin_layout LyX-Code
20583  ...
20584 \end_layout
20585
20586 \begin_layout LyX-Code
20587 EndFont
20588 \end_layout
20589
20590 \begin_layout Standard
20591 The following commands are available:
20592 \end_layout
20593
20594 \begin_layout Description
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 Color
20600 \end_layout
20601
20602 \end_inset
20603
20604  [
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609
20610 \emph on
20611 none
20612 \end_layout
20613
20614 \end_inset
20615
20616
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 black
20622 \end_layout
20623
20624 \end_inset
20625
20626
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 white
20632 \end_layout
20633
20634 \end_inset
20635
20636
20637 \begin_inset Flex Code
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641 red
20642 \end_layout
20643
20644 \end_inset
20645
20646
20647 \begin_inset Flex Code
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651 green
20652 \end_layout
20653
20654 \end_inset
20655
20656
20657 \begin_inset Flex Code
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 blue
20662 \end_layout
20663
20664 \end_inset
20665
20666
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 cyan
20672 \end_layout
20673
20674 \end_inset
20675
20676
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 magenta
20682 \end_layout
20683
20684 \end_inset
20685
20686
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 yellow
20692 \end_layout
20693
20694 \end_inset
20695
20696
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 brown
20702 \end_layout
20703
20704 \end_inset
20705
20706
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 darkgray
20712 \end_layout
20713
20714 \end_inset
20715
20716
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 gray
20722 \end_layout
20723
20724 \end_inset
20725
20726
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 lightgray
20732 \end_layout
20733
20734 \end_inset
20735
20736
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 lime
20742 \end_layout
20743
20744 \end_inset
20745
20746
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 orange
20752 \end_layout
20753
20754 \end_inset
20755
20756
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 olive
20762 \end_layout
20763
20764 \end_inset
20765
20766
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 pink
20772 \end_layout
20773
20774 \end_inset
20775
20776
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 purple
20782 \end_layout
20783
20784 \end_inset
20785
20786
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791 teal
20792 \end_layout
20793
20794 \end_inset
20795
20796
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 violet
20802 \end_layout
20803
20804 \end_inset
20805
20806 ]
20807 \end_layout
20808
20809 \begin_layout Description
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 Family
20815 \end_layout
20816
20817 \end_inset
20818
20819  [
20820 \begin_inset Flex Code
20821 status collapsed
20822
20823 \begin_layout Plain Layout
20824
20825 \emph on
20826 Roman
20827 \end_layout
20828
20829 \end_inset
20830
20831
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 Sans
20837 \end_layout
20838
20839 \end_inset
20840
20841
20842 \begin_inset Flex Code
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846 Typewriter
20847 \end_layout
20848
20849 \end_inset
20850
20851 ]
20852 \end_layout
20853
20854 \begin_layout Description
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 Misc
20860 \end_layout
20861
20862 \end_inset
20863
20864  [
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 string
20870 \end_layout
20871
20872 \end_inset
20873
20874 ] Valid arguments are: 
20875 \begin_inset Flex Code
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879 emph
20880 \end_layout
20881
20882 \end_inset
20883
20884
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 noun
20890 \end_layout
20891
20892 \end_inset
20893
20894
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 strikeout
20900 \end_layout
20901
20902 \end_inset
20903
20904
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909 underbar
20910 \end_layout
20911
20912 \end_inset
20913
20914
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 uuline
20920 \end_layout
20921
20922 \end_inset
20923
20924
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 uwave
20930 \end_layout
20931
20932 \end_inset
20933
20934
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 no_emph
20940 \end_layout
20941
20942 \end_inset
20943
20944
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 no_noun
20950 \end_layout
20951
20952 \end_inset
20953
20954
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 no_strikeout
20960 \end_layout
20961
20962 \end_inset
20963
20964
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 no_bar
20970 \end_layout
20971
20972 \end_inset
20973
20974
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979 no_uuline
20980 \end_layout
20981
20982 \end_inset
20983
20984  and 
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 no_uwave
20990 \end_layout
20991
20992 \end_inset
20993
20994 .
20995  Each of these turns on or off the corresponding attribute.
20996  For example, 
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 emph
21002 \end_layout
21003
21004 \end_inset
21005
21006  turns on emphasis, and 
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 no_emph
21012 \end_layout
21013
21014 \end_inset
21015
21016  turns it off.
21017  
21018 \begin_inset Newline newline
21019 \end_inset
21020
21021 If the latter seems puzzling, remember that the font settings for the present
21022  context are generally inherited from the surrounding context.
21023  So 
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 no_emph
21029 \end_layout
21030
21031 \end_inset
21032
21033  would turn off the emphasis that was anyway in effect, say, in a theorem
21034  environment.
21035 \end_layout
21036
21037 \begin_layout Description
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 Series
21043 \end_layout
21044
21045 \end_inset
21046
21047  [
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052
21053 \emph on
21054 Medium
21055 \end_layout
21056
21057 \end_inset
21058
21059
21060 \begin_inset Flex Code
21061 status collapsed
21062
21063 \begin_layout Plain Layout
21064 Bold
21065 \end_layout
21066
21067 \end_inset
21068
21069
21070 \end_layout
21071
21072 \begin_layout Description
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 Shape
21078 \end_layout
21079
21080 \end_inset
21081
21082  [
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087
21088 \emph on
21089 Up
21090 \end_layout
21091
21092 \end_inset
21093
21094
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 Italic
21100 \end_layout
21101
21102 \end_inset
21103
21104
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 SmallCaps
21110 \end_layout
21111
21112 \end_inset
21113
21114
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 Slanted
21120 \end_layout
21121
21122 \end_inset
21123
21124
21125 \end_layout
21126
21127 \begin_layout Description
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 Size
21133 \end_layout
21134
21135 \end_inset
21136
21137  [
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 tiny
21143 \end_layout
21144
21145 \end_inset
21146
21147
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 small
21153 \end_layout
21154
21155 \end_inset
21156
21157
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162
21163 \emph on
21164 normal
21165 \end_layout
21166
21167 \end_inset
21168
21169
21170 \begin_inset Flex Code
21171 status collapsed
21172
21173 \begin_layout Plain Layout
21174 large
21175 \end_layout
21176
21177 \end_inset
21178
21179
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 larger
21185 \end_layout
21186
21187 \end_inset
21188
21189
21190 \begin_inset Flex Code
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194 largest
21195 \end_layout
21196
21197 \end_inset
21198
21199
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204 huge
21205 \end_layout
21206
21207 \end_inset
21208
21209
21210 \begin_inset Flex Code
21211 status collapsed
21212
21213 \begin_layout Plain Layout
21214 giant
21215 \end_layout
21216
21217 \end_inset
21218
21219 ]
21220 \end_layout
21221
21222 \begin_layout Subsection
21223 \begin_inset CommandInset label
21224 LatexCommand label
21225 name "subsec:Citation-engine-description"
21226
21227 \end_inset
21228
21229 Cite engine description
21230 \end_layout
21231
21232 \begin_layout Standard
21233 The 
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 CiteEngine
21239 \end_layout
21240
21241 \end_inset
21242
21243  blocks, as used mainly in cite engine files (see 
21244 \begin_inset CommandInset ref
21245 LatexCommand ref
21246 reference "subsec:Cite-Engine-Files"
21247 plural "false"
21248 caps "false"
21249 noprefix "false"
21250
21251 \end_inset
21252
21253 ), define the citation commands provided by a specific 
21254 \begin_inset Quotes eld
21255 \end_inset
21256
21257 cite engine
21258 \begin_inset Quotes erd
21259 \end_inset
21260
21261 .
21262  A cite engine, in \SpecialChar LyX
21263  terms, is way specific way to format citations, using
21264  numbers, author names and/or years.
21265  Currently, \SpecialChar LyX
21266  supports three such engine types, namely:
21267 \end_layout
21268
21269 \begin_layout Enumerate
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274 default
21275 \end_layout
21276
21277 \end_inset
21278
21279 : the default Bib\SpecialChar TeX
21280  way to format citations, a simple numeric style (e.
21281 \begin_inset space \thinspace{}
21282 \end_inset
21283
21284 g., 
21285 \begin_inset Quotes eld
21286 \end_inset
21287
21288 [1]
21289 \begin_inset Quotes erd
21290 \end_inset
21291
21292 )
21293 \end_layout
21294
21295 \begin_layout Enumerate
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 authoryear
21301 \end_layout
21302
21303 \end_inset
21304
21305 : Harvard-styled citations using author names and publication year (e.
21306 \begin_inset space \thinspace{}
21307 \end_inset
21308
21309 g., 
21310 \begin_inset Quotes eld
21311 \end_inset
21312
21313 Smith and Miller (2017b)
21314 \begin_inset Quotes erd
21315 \end_inset
21316
21317 )
21318 \end_layout
21319
21320 \begin_layout Enumerate
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 numerical
21326 \end_layout
21327
21328 \end_inset
21329
21330 : extended numerical citations that also allow for author or title next
21331  to the number (e.
21332 \begin_inset space \thinspace{}
21333 \end_inset
21334
21335 g., 
21336 \begin_inset Quotes eld
21337 \end_inset
21338
21339 Smith and Miller [1]
21340 \begin_inset Quotes erd
21341 \end_inset
21342
21343 )
21344 \end_layout
21345
21346 \begin_layout Standard
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 CiteEngine
21352 \end_layout
21353
21354 \end_inset
21355
21356  blocks look like this:
21357 \end_layout
21358
21359 \begin_layout LyX-Code
21360 CiteEngine default
21361 \end_layout
21362
21363 \begin_layout LyX-Code
21364  cite
21365 \end_layout
21366
21367 \begin_layout LyX-Code
21368  Citep*[][]
21369 \end_layout
21370
21371 \begin_layout LyX-Code
21372  citeyearpar[][]=parencite*
21373 \end_layout
21374
21375 \begin_layout LyX-Code
21376  ...
21377 \end_layout
21378
21379 \begin_layout LyX-Code
21380 End
21381 \end_layout
21382
21383 \begin_layout Standard
21384 The tag following 
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 CiteEngine
21390 \end_layout
21391
21392 \end_inset
21393
21394  denotes the engine.
21395  The individual lines respectively define a cite command or cite command
21396  paradigm supported by this engine.
21397  The line can be as simple as a cite command that is used both to name the
21398  respective \SpecialChar LyX
21399  command and the \SpecialChar LaTeX
21400  output or more complex in order to differentiate
21401  things.
21402  The full syntax is:
21403 \end_layout
21404
21405 \begin_layout LyX-Code
21406 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21407 \end_layout
21408
21409 \begin_layout Itemize
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 LyXName
21415 \end_layout
21416
21417 \end_inset
21418
21419 : The name as used in the 
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 *.lyx
21425 \end_layout
21426
21427 \end_inset
21428
21429  file.
21430 \end_layout
21431
21432 \begin_deeper
21433 \begin_layout Standard
21434 For portability reasons, we try to use the same name for same-formatted
21435  commands in different cite packages (thus many names stem from natbib,
21436  and thus we need to differentiate a 
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 latexcmd
21442 \end_layout
21443
21444 \end_inset
21445
21446  sometimes, if the \SpecialChar LaTeX
21447  command names differ).
21448 \end_layout
21449
21450 \end_deeper
21451 \begin_layout Itemize
21452 \begin_inset Flex Code
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 alias
21457 \end_layout
21458
21459 \end_inset
21460
21461 : a (comma-separated) list of commands that fall back to the given 
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466 LyXName
21467 \end_layout
21468
21469 \end_inset
21470
21471  in the current engine.
21472  This eases the switch of citation packages and engines.
21473  The 
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 alias
21479 \end_layout
21480
21481 \end_inset
21482
21483  can be compared to 
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 ObsoletedBy
21489 \end_layout
21490
21491 \end_inset
21492
21493  in layout definitions.
21494 \end_layout
21495
21496 \begin_layout Itemize
21497 \begin_inset Flex Code
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 latexcmd
21502 \end_layout
21503
21504 \end_inset
21505
21506 : The actual \SpecialChar LaTeX
21507  command that is output.
21508  
21509 \end_layout
21510
21511 \begin_layout Standard
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 Alias
21517 \end_layout
21518
21519 \end_inset
21520
21521  and 
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 latexcmd
21527 \end_layout
21528
21529 \end_inset
21530
21531  are optional.
21532  If no 
21533 \begin_inset Flex Code
21534 status collapsed
21535
21536 \begin_layout Plain Layout
21537 latexcmd
21538 \end_layout
21539
21540 \end_inset
21541
21542  is given, the 
21543 \begin_inset Flex Code
21544 status collapsed
21545
21546 \begin_layout Plain Layout
21547 LyXName
21548 \end_layout
21549
21550 \end_inset
21551
21552  will be output to \SpecialChar LaTeX
21553 .
21554 \end_layout
21555
21556 \begin_layout Standard
21557 Note further:
21558 \end_layout
21559
21560 \begin_layout Itemize
21561 Capitalization indicates that the command also has a capitalized form (
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566
21567 \backslash
21568 Latexcmd
21569 \end_layout
21570
21571 \end_inset
21572
21573  vs.
21574  
21575 \begin_inset Flex Code
21576 status collapsed
21577
21578 \begin_layout Plain Layout
21579
21580 \backslash
21581 latexcmd
21582 \end_layout
21583
21584 \end_inset
21585
21586 ).
21587  These usually enforce up-casing of name prefixes (
21588 \emph on
21589 von Goethe
21590 \emph default
21591  
21592 \begin_inset Formula $\Rightarrow$
21593 \end_inset
21594
21595  
21596 \emph on
21597 Von Goethe
21598 \emph default
21599 ).
21600 \end_layout
21601
21602 \begin_layout Itemize
21603 Brackets 
21604 \begin_inset Flex Code
21605 status collapsed
21606
21607 \begin_layout Plain Layout
21608 []
21609 \end_layout
21610
21611 \end_inset
21612
21613  indicate the number of optional arguments (there can be 0–2).
21614 \end_layout
21615
21616 \begin_layout Itemize
21617 A star 
21618 \begin_inset Flex Code
21619 status collapsed
21620
21621 \begin_layout Plain Layout
21622 *
21623 \end_layout
21624
21625 \end_inset
21626
21627  indicates there is a starred version of the command (
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632
21633 \backslash
21634 latexcmd*
21635 \end_layout
21636
21637 \end_inset
21638
21639  vs.
21640  
21641 \begin_inset Flex Code
21642 status collapsed
21643
21644 \begin_layout Plain Layout
21645
21646 \backslash
21647 latexcmd
21648 \end_layout
21649
21650 \end_inset
21651
21652 ).
21653  
21654 \end_layout
21655
21656 \begin_deeper
21657 \begin_layout Standard
21658 By default, the starred version means: Output all authors even if it should
21659  be shortened with 
21660 \begin_inset Quotes eld
21661 \end_inset
21662
21663 et al.
21664 \begin_inset Quotes erd
21665 \end_inset
21666
21667  due to the 
21668 \begin_inset Flex Code
21669 status collapsed
21670
21671 \begin_layout Plain Layout
21672 MaxCiteNames
21673 \end_layout
21674
21675 \end_inset
21676
21677  threshold.
21678 \end_layout
21679
21680 \begin_layout Standard
21681 If the star has a different meaning for a given command, it can be specified
21682  in angle brackets: 
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 <!_stardesc!_stardesctooltip>
21688 \end_layout
21689
21690 \end_inset
21691
21692 .
21693  Maximal two translatable macro keywords, marked by the prefix 
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698 !_
21699 \end_layout
21700
21701 \end_inset
21702
21703 , can be given.
21704  The first points to the string that replaces the 
21705 \begin_inset Quotes eld
21706 \end_inset
21707
21708 Full aut&hor list
21709 \begin_inset Quotes erd
21710 \end_inset
21711
21712  checkbox label in the citation dialog, the second one to an optional tool
21713  tip for this checkbox.
21714  
21715 \end_layout
21716
21717 \begin_layout Standard
21718 Note that these two macros have to be defined in a 
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 CiteFormat
21724 \end_layout
21725
21726 \end_inset
21727
21728  (see next section), dropping the 
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 !
21734 \end_layout
21735
21736 \end_inset
21737
21738  from the prefix, like this: 
21739 \end_layout
21740
21741 \begin_layout LyX-Code
21742 _stardesc Sta&rred command label
21743 \end_layout
21744
21745 \begin_layout LyX-Code
21746 _stardesctooltip Tooltip for the starred command checkbox.
21747 \end_layout
21748
21749 \end_deeper
21750 \begin_layout Itemize
21751 A dollar sign 
21752 \begin_inset Flex Code
21753 status collapsed
21754
21755 \begin_layout Plain Layout
21756 $
21757 \end_layout
21758
21759 \end_inset
21760
21761  indicates that this command features 
21762 \begin_inset Quotes eld
21763 \end_inset
21764
21765 qualified citation lists
21766 \begin_inset Quotes erd
21767 \end_inset
21768
21769 .
21770  This is a 
21771 \family sans
21772 Biblatex
21773 \family default
21774 -specific feature for multi-reference citations where an individual pre-
21775  and postnote can be given to each reference in the list.
21776  Please refer to the 
21777 \family sans
21778 Biblatex
21779 \family default
21780  manual for details.
21781 \end_layout
21782
21783 \begin_layout Subsection
21784 \begin_inset CommandInset label
21785 LatexCommand label
21786 name "subsec:Citation-format-description"
21787
21788 \end_inset
21789
21790 Cite format description
21791 \end_layout
21792
21793 \begin_layout Standard
21794 The 
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799 CiteFormat
21800 \end_layout
21801
21802 \end_inset
21803
21804  blocks are used to describe how bibliographic information should be displayed,
21805  both within \SpecialChar LyX
21806  itself (in the citation dialog and in tooltips, for example)
21807  and in XHTML output.
21808  Such a block might look like this:
21809 \end_layout
21810
21811 \begin_layout LyX-Code
21812 CiteFormat
21813 \end_layout
21814
21815 \begin_layout LyX-Code
21816  article ...
21817 \end_layout
21818
21819 \begin_layout LyX-Code
21820  book ...
21821 \end_layout
21822
21823 \begin_layout LyX-Code
21824 End
21825 \end_layout
21826
21827 \begin_layout Standard
21828 or
21829 \end_layout
21830
21831 \begin_layout LyX-Code
21832 CiteFormat
21833 \end_layout
21834
21835 \begin_layout LyX-Code
21836  cite ...
21837 \end_layout
21838
21839 \begin_layout LyX-Code
21840  citet*[][] ...
21841 \end_layout
21842
21843 \begin_layout LyX-Code
21844 End
21845 \end_layout
21846
21847 \begin_layout Standard
21848 In the first case, the individual lines define how the bibliographic information
21849  associated with an article or book, respectively, is to be displayed, and
21850  such a definition can be given for any 
21851 \begin_inset Quotes els
21852 \end_inset
21853
21854 entry type
21855 \begin_inset Quotes ers
21856 \end_inset
21857
21858  that might be present in a Bib\SpecialChar TeX
21859  file.
21860  \SpecialChar LyX
21861  defines a default format in the source code that will be used if no specific
21862  definition has been given.
21863  \SpecialChar LyX
21864  predefines several formats in the file 
21865 \begin_inset Flex Code
21866 status collapsed
21867
21868 \begin_layout Plain Layout
21869 stdciteformats.inc
21870 \end_layout
21871
21872 \end_inset
21873
21874 , which is included in most of \SpecialChar LyX
21875 's document classes.
21876 \end_layout
21877
21878 \begin_layout Standard
21879 In the second case, the lines define how a specific citation command (in
21880  the example 
21881 \begin_inset Flex Code
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885
21886 \backslash
21887 cite
21888 \end_layout
21889
21890 \end_inset
21891
21892
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897
21898 \backslash
21899 citet
21900 \end_layout
21901
21902 \end_inset
21903
21904 ) is to be displayed on the citation inset label, in the citation dialog,
21905  menu or XHTML output.
21906  \SpecialChar LyX
21907  defines such formats for the citation style variants it supports via 
21908 \family sans
21909 Document\SpecialChar menuseparator
21910 Setting\SpecialChar menuseparator
21911 Bibliography\SpecialChar ldots
21912
21913 \family default
21914  in specific 
21915 \begin_inset Flex Code
21916 status collapsed
21917
21918 \begin_layout Plain Layout
21919 *.citeengine
21920 \end_layout
21921
21922 \end_inset
21923
21924  files that are shipped with \SpecialChar LyX
21925  (see 
21926 \begin_inset CommandInset ref
21927 LatexCommand ref
21928 reference "subsec:Cite-Engine-Files"
21929 plural "false"
21930 caps "false"
21931 noprefix "false"
21932
21933 \end_inset
21934
21935 ).
21936 \end_layout
21937
21938 \begin_layout Standard
21939 The definitions use a simple language that allows Bib\SpecialChar TeX
21940  keys to be replaced
21941  with their values.
21942  Keys should be enclosed in 
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947 %
21948 \end_layout
21949
21950 \end_inset
21951
21952  signs, e.g.: 
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 %author%
21958 \end_layout
21959
21960 \end_inset
21961
21962 .
21963  So a simple definition might look like this:
21964 \end_layout
21965
21966 \begin_layout LyX-Code
21967 misc %author%, 
21968 \begin_inset Quotes eld
21969 \end_inset
21970
21971 %title%
21972 \begin_inset Quotes erd
21973 \end_inset
21974
21975 .
21976 \end_layout
21977
21978 \begin_layout Standard
21979 This would print the author, followed by a comma, followed by the title,
21980  in quotes, followed by a period.
21981 \end_layout
21982
21983 \begin_layout Standard
21984 Of course, sometimes you may want to print a key only if it exists.
21985  This can be done by using a conditional construction, such as: 
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 {%volume%[[vol.
21991 \begin_inset space ~
21992 \end_inset
21993
21994 %volume%]]}
21995 \end_layout
21996
21997 \end_inset
21998
21999 .
22000  This says: If the 
22001 \begin_inset Flex Code
22002 status collapsed
22003
22004 \begin_layout Plain Layout
22005 volume
22006 \end_layout
22007
22008 \end_inset
22009
22010  key exists, then print 
22011 \begin_inset Quotes eld
22012 \end_inset
22013
22014 vol.
22015 \begin_inset space ~
22016 \end_inset
22017
22018
22019 \begin_inset Quotes erd
22020 \end_inset
22021
22022  followed by the volume key.
22023  It is also possible to have an else clause in the conditional, such as:
22024 \begin_inset Newline newline
22025 \end_inset
22026
22027
22028 \begin_inset Flex Code
22029 status collapsed
22030
22031 \begin_layout Plain Layout
22032 {%author%[[%author%]][[%editor%, ed.]]}
22033 \end_layout
22034
22035 \end_inset
22036
22037 .
22038 \begin_inset Newline newline
22039 \end_inset
22040
22041 Here, the 
22042 \begin_inset Flex Code
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 author
22047 \end_layout
22048
22049 \end_inset
22050
22051  key is printed if it exists; otherwise, the editor key is printed, followed
22052  by 
22053 \begin_inset Quotes eld
22054 \end_inset
22055
22056 ,
22057 \begin_inset space ~
22058 \end_inset
22059
22060 ed.
22061 \begin_inset Quotes erd
22062 \end_inset
22063
22064  Note that the key is again enclosed in 
22065 \begin_inset Flex Code
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069 %
22070 \end_layout
22071
22072 \end_inset
22073
22074  signs; the entire conditional is enclosed in braces; and the if and else
22075  clauses are enclosed in double brackets, 
22076 \begin_inset Quotes eld
22077 \end_inset
22078
22079
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084 [[
22085 \end_layout
22086
22087 \end_inset
22088
22089
22090 \begin_inset Quotes eld
22091 \end_inset
22092
22093  and 
22094 \begin_inset Quotes eld
22095 \end_inset
22096
22097
22098 \begin_inset Flex Code
22099 status collapsed
22100
22101 \begin_layout Plain Layout
22102 ]]
22103 \end_layout
22104
22105 \end_inset
22106
22107
22108 \begin_inset Quotes erd
22109 \end_inset
22110
22111 .
22112  There must be no space between any of these.
22113 \end_layout
22114
22115 \begin_layout Standard
22116 Next to the entry keys, there are some special keys that can be used for
22117  these conditionals:
22118 \end_layout
22119
22120 \begin_layout Itemize
22121 \begin_inset Flex Code
22122 status collapsed
22123
22124 \begin_layout Plain Layout
22125 {%dialog%[[true]][[false]]}
22126 \end_layout
22127
22128 \end_inset
22129
22130 : process the 
22131 \begin_inset Quotes eld
22132 \end_inset
22133
22134 true
22135 \begin_inset Quotes erd
22136 \end_inset
22137
22138  part for dialogs and menus, the 
22139 \begin_inset Quotes eld
22140 \end_inset
22141
22142 false
22143 \begin_inset Quotes erd
22144 \end_inset
22145
22146  part for other contexts (workarea, export)
22147 \end_layout
22148
22149 \begin_layout Itemize
22150 \begin_inset Flex Code
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 {%export%[[true]][[false]]}
22155 \end_layout
22156
22157 \end_inset
22158
22159 : process the 
22160 \begin_inset Quotes eld
22161 \end_inset
22162
22163 true
22164 \begin_inset Quotes erd
22165 \end_inset
22166
22167  part for export and menus, the 
22168 \begin_inset Quotes eld
22169 \end_inset
22170
22171 false
22172 \begin_inset Quotes erd
22173 \end_inset
22174
22175  part for other contexts (workarea, dialog)
22176 \end_layout
22177
22178 \begin_layout Itemize
22179 \begin_inset Flex Code
22180 status collapsed
22181
22182 \begin_layout Plain Layout
22183 {%next%[[true]]}
22184 \end_layout
22185
22186 \end_inset
22187
22188 : process the 
22189 \begin_inset Quotes eld
22190 \end_inset
22191
22192 true
22193 \begin_inset Quotes erd
22194 \end_inset
22195
22196  part if another item follows (e.
22197 \begin_inset space \thinspace{}
22198 \end_inset
22199
22200 g., in a citation with multiple keys)
22201 \end_layout
22202
22203 \begin_layout Itemize
22204 \begin_inset Flex Code
22205 status collapsed
22206
22207 \begin_layout Plain Layout
22208 {%second%[[true]][[false]]}
22209 \end_layout
22210
22211 \end_inset
22212
22213 : process the 
22214 \begin_inset Quotes eld
22215 \end_inset
22216
22217 true
22218 \begin_inset Quotes erd
22219 \end_inset
22220
22221  if this is the second of multiple items, else the 
22222 \begin_inset Quotes eld
22223 \end_inset
22224
22225 false
22226 \begin_inset Quotes erd
22227 \end_inset
22228
22229  part
22230 \end_layout
22231
22232 \begin_layout Itemize
22233 \begin_inset Flex Code
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237 {%ifstar%[[true]][[false]]}
22238 \end_layout
22239
22240 \end_inset
22241
22242 : process the 
22243 \begin_inset Quotes eld
22244 \end_inset
22245
22246 true
22247 \begin_inset Quotes erd
22248 \end_inset
22249
22250  part for starred citation commands (such as 
22251 \begin_inset Flex Code
22252 status collapsed
22253
22254 \begin_layout Plain Layout
22255
22256 \backslash
22257 cite*
22258 \end_layout
22259
22260 \end_inset
22261
22262 ), the false part for unstarred
22263 \end_layout
22264
22265 \begin_layout Itemize
22266 \begin_inset Flex Code
22267 status collapsed
22268
22269 \begin_layout Plain Layout
22270 {%ifentrytype:<type>%[[true]][[false]]}
22271 \end_layout
22272
22273 \end_inset
22274
22275 : process the 
22276 \begin_inset Quotes eld
22277 \end_inset
22278
22279 true
22280 \begin_inset Quotes erd
22281 \end_inset
22282
22283  if the current entry type matches 
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 <type>
22289 \end_layout
22290
22291 \end_inset
22292
22293 , else the false part (e.g., in a citation definition: 
22294 \begin_inset Flex Code
22295 status collapsed
22296
22297 \begin_layout Plain Layout
22298 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22299 \end_layout
22300
22301 \end_inset
22302
22303 )
22304 \end_layout
22305
22306 \begin_layout Itemize
22307 \begin_inset Flex Code
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 {%ifmultiple:<authortype>%[[true]][[false]]}
22312 \end_layout
22313
22314 \end_inset
22315
22316 : process the 
22317 \begin_inset Quotes eld
22318 \end_inset
22319
22320 true
22321 \begin_inset Quotes erd
22322 \end_inset
22323
22324  if the current author type (author, editor etc.) has multiple authors, else
22325  the false part (e.g., in a bibliography definition: 
22326 \begin_inset Flex Code
22327 status collapsed
22328
22329 \begin_layout Plain Layout
22330 {%ifmultiple:editor%[[eds.]][[ed.]]}
22331 \end_layout
22332
22333 \end_inset
22334
22335 )
22336 \end_layout
22337
22338 \begin_layout Itemize
22339 \begin_inset Flex Code
22340 status collapsed
22341
22342 \begin_layout Plain Layout
22343 {%ifqualified%[[true]][[false]]}
22344 \end_layout
22345
22346 \end_inset
22347
22348 : process the 
22349 \begin_inset Quotes eld
22350 \end_inset
22351
22352 true
22353 \begin_inset Quotes erd
22354 \end_inset
22355
22356  part if the current citation is a qualified citation list (a specific 
22357 \family sans
22358 Biblatex
22359 \family default
22360  format for multi-reference citations), the false part if this is not the
22361  case.
22362 \end_layout
22363
22364 \begin_layout Standard
22365 We said that 
22366 \begin_inset Flex Code
22367 status collapsed
22368
22369 \begin_layout Plain Layout
22370 %author%
22371 \end_layout
22372
22373 \end_inset
22374
22375  prints the author key as it is recorded in the bibliography file.
22376  This might not be what you want, since it will result in a string such
22377  as 
22378 \begin_inset Quotes eld
22379 \end_inset
22380
22381 Miller, Peter and Smith, Mary and White, Jane
22382 \begin_inset Quotes erd
22383 \end_inset
22384
22385  (since 
22386 \begin_inset Quotes eld
22387 \end_inset
22388
22389 and
22390 \begin_inset Quotes erd
22391 \end_inset
22392
22393  is used by Bib\SpecialChar TeX
22394  to delimit authors).
22395  \SpecialChar LyX
22396  therefore provides some methods to get properly formatted name lists (which
22397  will also get translated).
22398  The following keys are provided:
22399 \end_layout
22400
22401 \begin_layout Enumerate
22402 For name lists with pre- and surname, suitable for the main authors/editors
22403  of a bibliography item.
22404  The 
22405 \begin_inset Flex Code
22406 status collapsed
22407
22408 \begin_layout Plain Layout
22409 <nametype>
22410 \end_layout
22411
22412 \end_inset
22413
22414  part denotes the kind of list that is requested (e.g.
22415  
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 <nametype:author>
22421 \end_layout
22422
22423 \end_inset
22424
22425 ):
22426 \end_layout
22427
22428 \begin_deeper
22429 \begin_layout Itemize
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434 %abbrvnames:<nametype>%
22435 \end_layout
22436
22437 \end_inset
22438
22439 : Provides a name list which is abbreviated (with 
22440 \begin_inset Quotes eld
22441 \end_inset
22442
22443 et al.
22444 \begin_inset Quotes erd
22445 \end_inset
22446
22447 ) when 
22448 \begin_inset Flex Code
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452 MaxCiteNames
22453 \end_layout
22454
22455 \end_inset
22456
22457  is reached.
22458 \end_layout
22459
22460 \begin_layout Itemize
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 %fullnames:<nametype>%
22466 \end_layout
22467
22468 \end_inset
22469
22470 : Provides a full name list (never abbreviated with 
22471 \begin_inset Quotes eld
22472 \end_inset
22473
22474 et al.
22475 \begin_inset Quotes erd
22476 \end_inset
22477
22478 ).
22479 \end_layout
22480
22481 \begin_layout Itemize
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 %forceabbrvnames:<nametype>%
22487 \end_layout
22488
22489 \end_inset
22490
22491 : Provides a name list which is always abbreviated (with 
22492 \begin_inset Quotes eld
22493 \end_inset
22494
22495 et al.
22496 \begin_inset Quotes erd
22497 \end_inset
22498
22499 ) irrespective of 
22500 \begin_inset Flex Code
22501 status collapsed
22502
22503 \begin_layout Plain Layout
22504 MaxCiteNames
22505 \end_layout
22506
22507 \end_inset
22508
22509 .
22510 \end_layout
22511
22512 \end_deeper
22513 \begin_layout Enumerate
22514 Alternative name lists with pre- and surname, if the order of pre- and surname
22515  inside the bibliography item differs (as in: 
22516 \begin_inset Quotes eld
22517 \end_inset
22518
22519 Miller, John: Some text, in: Mary Smith, ed.: A volume
22520 \begin_inset Quotes erd
22521 \end_inset
22522
22523 ):
22524 \end_layout
22525
22526 \begin_deeper
22527 \begin_layout Itemize
22528 \begin_inset Flex Code
22529 status collapsed
22530
22531 \begin_layout Plain Layout
22532 %abbrvbynames:<nametype>%
22533 \end_layout
22534
22535 \end_inset
22536
22537 : Provides a name list which is abbreviated (with 
22538 \begin_inset Quotes eld
22539 \end_inset
22540
22541 et al.
22542 \begin_inset Quotes erd
22543 \end_inset
22544
22545 ) when 
22546 \begin_inset Flex Code
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 MaxCiteNames
22551 \end_layout
22552
22553 \end_inset
22554
22555  is reached.
22556 \end_layout
22557
22558 \begin_layout Itemize
22559 \begin_inset Flex Code
22560 status collapsed
22561
22562 \begin_layout Plain Layout
22563 %fullbynames:<nametype>%
22564 \end_layout
22565
22566 \end_inset
22567
22568 : Provides a full name list (never abbreviated with 
22569 \begin_inset Quotes eld
22570 \end_inset
22571
22572 et al.
22573 \begin_inset Quotes erd
22574 \end_inset
22575
22576 ).
22577 \end_layout
22578
22579 \begin_layout Itemize
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 %forceabbrvbynames:<nametype>%
22585 \end_layout
22586
22587 \end_inset
22588
22589 : Provides a name list which is always abbreviated (with 
22590 \begin_inset Quotes eld
22591 \end_inset
22592
22593 et al.
22594 \begin_inset Quotes erd
22595 \end_inset
22596
22597 ) irrespective of 
22598 \begin_inset Flex Code
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602 MaxCiteNames
22603 \end_layout
22604
22605 \end_inset
22606
22607 .
22608 \end_layout
22609
22610 \end_deeper
22611 \begin_layout Enumerate
22612 And finally name lists which consist of family names only, as used in author-yea
22613 r citation labels.
22614  These do not take a 
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 <nametype>
22620 \end_layout
22621
22622 \end_inset
22623
22624  part, but always return either an author list or, if this does not exist,
22625  an editor list (as common in author-year labels):
22626 \end_layout
22627
22628 \begin_deeper
22629 \begin_layout Itemize
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 %abbrvciteauthor%
22635 \end_layout
22636
22637 \end_inset
22638
22639 : Provides a name list which is abbreviated (with 
22640 \begin_inset Quotes eld
22641 \end_inset
22642
22643 et al.
22644 \begin_inset Quotes erd
22645 \end_inset
22646
22647 ) when 
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 MaxCiteNames
22653 \end_layout
22654
22655 \end_inset
22656
22657  is reached.
22658 \end_layout
22659
22660 \begin_layout Itemize
22661 \begin_inset Flex Code
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 %fullciteauthor%
22666 \end_layout
22667
22668 \end_inset
22669
22670 : Provides a full name list (never abbreviated with 
22671 \begin_inset Quotes eld
22672 \end_inset
22673
22674 et al.
22675 \begin_inset Quotes erd
22676 \end_inset
22677
22678 ).
22679 \end_layout
22680
22681 \begin_layout Itemize
22682 \begin_inset Flex Code
22683 status collapsed
22684
22685 \begin_layout Plain Layout
22686 %forceabbrvciteauthor%
22687 \end_layout
22688
22689 \end_inset
22690
22691 : Provides a name list which is always abbreviated (with 
22692 \begin_inset Quotes eld
22693 \end_inset
22694
22695 et al.
22696 \begin_inset Quotes erd
22697 \end_inset
22698
22699 ) irrespective of 
22700 \begin_inset Flex Code
22701 status collapsed
22702
22703 \begin_layout Plain Layout
22704 MaxCiteNames
22705 \end_layout
22706
22707 \end_inset
22708
22709 .
22710 \end_layout
22711
22712 \end_deeper
22713 \begin_layout Standard
22714 The order of pre- and surname in the former two lists can be adjusted by
22715  these macros:
22716 \end_layout
22717
22718 \begin_layout Itemize
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 !firstnameform %surname%, %prename%
22724 \end_layout
22725
22726 \end_inset
22727
22728  (first author in lists of type 1)
22729 \end_layout
22730
22731 \begin_layout Itemize
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 !othernameform %surname%, %prename%
22737 \end_layout
22738
22739 \end_inset
22740
22741  (other authors in lists of type 1)
22742 \end_layout
22743
22744 \begin_layout Itemize
22745 \begin_inset Flex Code
22746 status collapsed
22747
22748 \begin_layout Plain Layout
22749 !firstbynameform %prename% %surname%
22750 \end_layout
22751
22752 \end_inset
22753
22754  (first author in lists of type 2)
22755 \end_layout
22756
22757 \begin_layout Itemize
22758 \begin_inset Flex Code
22759 status collapsed
22760
22761 \begin_layout Plain Layout
22762 !otherbynameform %prename% %surname%
22763 \end_layout
22764
22765 \end_inset
22766
22767  (other authors in lists of type 2)
22768 \end_layout
22769
22770 \begin_layout Standard
22771 This allows you to configure namings like 
22772 \begin_inset Quotes eld
22773 \end_inset
22774
22775 Miller, Peter and Mary Smith: \SpecialChar ldots
22776 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22777
22778 \begin_inset Quotes erd
22779 \end_inset
22780
22781 .
22782 \end_layout
22783
22784 \begin_layout Standard
22785 There is one other piece of syntax available in definitions, which looks
22786  like this: 
22787 \begin_inset Flex Code
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 {!<i>!}
22792 \end_layout
22793
22794 \end_inset
22795
22796 .
22797  This defines a piece of formatting information that is to be used when
22798  creating 
22799 \begin_inset Quotes eld
22800 \end_inset
22801
22802 rich text
22803 \begin_inset Quotes erd
22804 \end_inset
22805
22806 .
22807  Obviously, we do not want to output HTML tags when writing plain text,
22808  so they should be wrapped in 
22809 \begin_inset Quotes eld
22810 \end_inset
22811
22812 {!
22813 \begin_inset Quotes erd
22814 \end_inset
22815
22816  and 
22817 \begin_inset Quotes eld
22818 \end_inset
22819
22820 !}
22821 \begin_inset Quotes erd
22822 \end_inset
22823
22824 .
22825 \end_layout
22826
22827 \begin_layout Standard
22828 Two special sorts of definitions are also possible in a 
22829 \begin_inset Flex Code
22830 status collapsed
22831
22832 \begin_layout Plain Layout
22833 CiteFormat
22834 \end_layout
22835
22836 \end_inset
22837
22838  block.
22839  An example of the first would be:
22840 \end_layout
22841
22842 \begin_layout LyX-Code
22843 !quotetitle 
22844 \begin_inset Quotes eld
22845 \end_inset
22846
22847 %title%
22848 \begin_inset Quotes erd
22849 \end_inset
22850
22851
22852 \end_layout
22853
22854 \begin_layout Standard
22855 This is an abbreviation, or macro, and it can be used by treating it as
22856  if it were a key: 
22857 \begin_inset Flex Code
22858 status collapsed
22859
22860 \begin_layout Plain Layout
22861 %!quotetitle%
22862 \end_layout
22863
22864 \end_inset
22865
22866 .
22867  \SpecialChar LyX
22868  will treat 
22869 \begin_inset Flex Code
22870 status collapsed
22871
22872 \begin_layout Plain Layout
22873 %!quotetitle%
22874 \end_layout
22875
22876 \end_inset
22877
22878  exactly as it would treat its definition.
22879  So, let us issue the obvious 
22880 \emph on
22881 warning
22882 \emph default
22883 .
22884  Do not do this:
22885 \end_layout
22886
22887 \begin_layout LyX-Code
22888 !funfun %funfun%
22889 \end_layout
22890
22891 \begin_layout Standard
22892 or anything like it.
22893  \SpecialChar LyX
22894  shouldn't go into an infinite loop, but it may go into a long one before
22895  it gives up.
22896 \end_layout
22897
22898 \begin_layout Standard
22899 The second sort of special definition might look like this:
22900 \end_layout
22901
22902 \begin_layout LyX-Code
22903 _pptext pp.
22904 \end_layout
22905
22906 \begin_layout Standard
22907 This defines a translatable piece of text, which allows relevant parts of
22908  the bibliography or citation to be translated.
22909  It can be included in a definition by treating it as a key: 
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914 %_pptext%
22915 \end_layout
22916
22917 \end_inset
22918
22919 .
22920  Several of these are predefined in 
22921 \begin_inset Flex Code
22922 status collapsed
22923
22924 \begin_layout Plain Layout
22925 stdciteformats.inc
22926 \end_layout
22927
22928 \end_inset
22929
22930  and the diverse 
22931 \begin_inset Flex Code
22932 status collapsed
22933
22934 \begin_layout Plain Layout
22935 *.citeengine
22936 \end_layout
22937
22938 \end_inset
22939
22940  files.
22941  Note that these are not macros, in the sense just defined.
22942  They will not be expanded.
22943 \end_layout
22944
22945 \begin_layout Standard
22946 So here then is an example that use all these features:
22947 \begin_inset VSpace defskip
22948 \end_inset
22949
22950
22951 \end_layout
22952
22953 \begin_layout Standard
22954 \noindent
22955
22956 \family sans
22957 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
22958 \end_layout
22959
22960 \begin_layout Standard
22961 \begin_inset VSpace defskip
22962 \end_inset
22963
22964 This defines a macro that prints the author, followed by a comma, if the
22965  
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 author
22971 \end_layout
22972
22973 \end_inset
22974
22975  key is defined, or else prints the name of the editor, followed by the
22976  
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981 _edtext
22982 \end_layout
22983
22984 \end_inset
22985
22986  or its translation (it is by default 
22987 \begin_inset Quotes eld
22988 \end_inset
22989
22990 ed.
22991 \begin_inset Quotes erd
22992 \end_inset
22993
22994 ), if the 
22995 \begin_inset Flex Code
22996 status collapsed
22997
22998 \begin_layout Plain Layout
22999 editor
23000 \end_layout
23001
23002 \end_inset
23003
23004  key is defined.
23005  Note that this is in fact defined in 
23006 \begin_inset Flex Code
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 stdciteformats.inc
23011 \end_layout
23012
23013 \end_inset
23014
23015 , so you can use it in your own definitions, or re-definitions, if you load
23016  that file first.
23017 \end_layout
23018
23019 \begin_layout Section
23020 \begin_inset CommandInset label
23021 LatexCommand label
23022 name "sec:Tags-for-XHTML"
23023
23024 \end_inset
23025
23026 Tags for XHTML output
23027 \end_layout
23028
23029 \begin_layout Standard
23030 As with \SpecialChar LaTeX
23031  or DocBook, the format of \SpecialChar LyX
23032 's XHTML output is also controlled by
23033  layout information.
23034  In general, \SpecialChar LyX
23035  provides sensible defaults and, as mentioned earlier, it will
23036  even construct default CSS style rules from the other layout tags.
23037  For example, \SpecialChar LyX
23038  will attempt to use the information provided in the 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 Font
23044 \end_layout
23045
23046 \end_inset
23047
23048  declaration for the Chapter style to write CSS that will appropriately
23049  format chapter headings.
23050 \end_layout
23051
23052 \begin_layout Standard
23053 In many cases, then, you may not have to do anything at all to get acceptable
23054  XHTML output for your own environments, custom insets, and so forth.
23055  But in some cases you will, and so \SpecialChar LyX
23056  provides a number of layout tags that
23057  can be used to customize the XHTML and CSS that are generated.
23058 \end_layout
23059
23060 \begin_layout Standard
23061 Note that there are two tags, 
23062 \begin_inset Flex Code
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066 HTMLPreamble
23067 \end_layout
23068
23069 \end_inset
23070
23071  and 
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076 AddToHTMLPreamble
23077 \end_layout
23078
23079 \end_inset
23080
23081  that may appear outside style and inset declarations.
23082  See 
23083 \begin_inset CommandInset ref
23084 LatexCommand ref
23085 reference "subsec:General-text-class"
23086
23087 \end_inset
23088
23089  for details on these.
23090 \end_layout
23091
23092 \begin_layout Subsection
23093 \begin_inset CommandInset label
23094 LatexCommand label
23095 name "subsec:Paragraph-Style-XHTML"
23096
23097 \end_inset
23098
23099 Paragraph styles
23100 \end_layout
23101
23102 \begin_layout Standard
23103 The sort of XHTML \SpecialChar LyX
23104  outputs for a paragraph depends upon whether we are dealing
23105  with a normal paragraph, a command, or an environment, where this is itself
23106  determined by the contents of the corresponding 
23107 \begin_inset Flex Code
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 \SpecialChar LaTeX
23112 Type
23113 \end_layout
23114
23115 \end_inset
23116
23117  tag.
23118  
23119 \end_layout
23120
23121 \begin_layout Standard
23122 For a command or normal paragraph, the output XHTML has the following form:
23123 \end_layout
23124
23125 \begin_layout LyX-Code
23126
23127 \family sans
23128 <tag attr=
23129 \begin_inset Quotes erd
23130 \end_inset
23131
23132 value
23133 \begin_inset Quotes erd
23134 \end_inset
23135
23136 >
23137 \end_layout
23138
23139 \begin_layout LyX-Code
23140
23141 \family sans
23142 <labeltag attr=
23143 \begin_inset Quotes erd
23144 \end_inset
23145
23146 value
23147 \begin_inset Quotes erd
23148 \end_inset
23149
23150 >Label</labeltag>
23151 \end_layout
23152
23153 \begin_layout LyX-Code
23154
23155 \family sans
23156 Contents of the paragraph.
23157 \end_layout
23158
23159 \begin_layout LyX-Code
23160
23161 \family sans
23162 </tag>
23163 \end_layout
23164
23165 \begin_layout Standard
23166 The label tags are of course omitted if the paragraph does not have a label.
23167 \end_layout
23168
23169 \begin_layout Standard
23170 For an environment that is not some sort of list, the XHTML takes this form:
23171 \end_layout
23172
23173 \begin_layout LyX-Code
23174
23175 \family sans
23176 <tag attr=
23177 \begin_inset Quotes erd
23178 \end_inset
23179
23180 value
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184 >
23185 \end_layout
23186
23187 \begin_layout LyX-Code
23188
23189 \family sans
23190 <itemtag attr=
23191 \begin_inset Quotes erd
23192 \end_inset
23193
23194 value
23195 \begin_inset Quotes erd
23196 \end_inset
23197
23198 ><labeltag attr=
23199 \begin_inset Quotes erd
23200 \end_inset
23201
23202 value
23203 \begin_inset Quotes erd
23204 \end_inset
23205
23206 >Environment Label</labeltag>First paragraph.</itemtag>
23207 \end_layout
23208
23209 \begin_layout LyX-Code
23210
23211 \family sans
23212 <itemtag>Second paragraph.</itemtag>
23213 \end_layout
23214
23215 \begin_layout LyX-Code
23216
23217 \family sans
23218 </tag>
23219 \end_layout
23220
23221 \begin_layout Standard
23222 Note that the label is output only for the first paragraph, as it should
23223  be for a theorem, for example.
23224  
23225 \end_layout
23226
23227 \begin_layout Standard
23228 For a list, we have one of these forms:
23229 \end_layout
23230
23231 \begin_layout LyX-Code
23232
23233 \family sans
23234 <tag attr=
23235 \begin_inset Quotes erd
23236 \end_inset
23237
23238 value
23239 \begin_inset Quotes erd
23240 \end_inset
23241
23242 >
23243 \end_layout
23244
23245 \begin_layout LyX-Code
23246
23247 \family sans
23248 <itemtag attr=
23249 \begin_inset Quotes erd
23250 \end_inset
23251
23252 value
23253 \begin_inset Quotes erd
23254 \end_inset
23255
23256 ><labeltag attr=
23257 \begin_inset Quotes erd
23258 \end_inset
23259
23260 value
23261 \begin_inset Quotes erd
23262 \end_inset
23263
23264 >List Label</labeltag>First item.</itemtag>
23265 \end_layout
23266
23267 \begin_layout LyX-Code
23268
23269 \family sans
23270 <itemtag attr=
23271 \begin_inset Quotes erd
23272 \end_inset
23273
23274 value
23275 \begin_inset Quotes erd
23276 \end_inset
23277
23278 ><labeltag attr=
23279 \begin_inset Quotes erd
23280 \end_inset
23281
23282 value
23283 \begin_inset Quotes erd
23284 \end_inset
23285
23286 >List Label</labeltag>Second item.</itemtag>
23287 \end_layout
23288
23289 \begin_layout LyX-Code
23290
23291 \family sans
23292 </tag>
23293 \end_layout
23294
23295 \begin_layout LyX-Code
23296
23297 \end_layout
23298
23299 \begin_layout LyX-Code
23300
23301 \family sans
23302 <tag attr=
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306 value
23307 \begin_inset Quotes erd
23308 \end_inset
23309
23310 >
23311 \end_layout
23312
23313 \begin_layout LyX-Code
23314
23315 \family sans
23316 <labeltag attr=
23317 \begin_inset Quotes erd
23318 \end_inset
23319
23320 value
23321 \begin_inset Quotes erd
23322 \end_inset
23323
23324 >List Label</labeltag><itemtag attr=
23325 \begin_inset Quotes erd
23326 \end_inset
23327
23328 value
23329 \begin_inset Quotes erd
23330 \end_inset
23331
23332 >First item.</itemtag>
23333 \end_layout
23334
23335 \begin_layout LyX-Code
23336
23337 \family sans
23338 <labeltag attr=
23339 \begin_inset Quotes erd
23340 \end_inset
23341
23342 value
23343 \begin_inset Quotes erd
23344 \end_inset
23345
23346 >List Label</labeltag><itemtag attr=
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350 value
23351 \begin_inset Quotes erd
23352 \end_inset
23353
23354 >Second item.</itemtag>
23355 \end_layout
23356
23357 \begin_layout LyX-Code
23358
23359 \family sans
23360 </tag>
23361 \end_layout
23362
23363 \begin_layout Standard
23364 Note the different orders of 
23365 \begin_inset Flex Code
23366 status collapsed
23367
23368 \begin_layout Plain Layout
23369 labeltag
23370 \end_layout
23371
23372 \end_inset
23373
23374  and 
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 itemtag
23380 \end_layout
23381
23382 \end_inset
23383
23384 .
23385  Which order we get depends upon the setting of 
23386 \begin_inset Flex Code
23387 status collapsed
23388
23389 \begin_layout Plain Layout
23390 HTMLLabelFirst
23391 \end_layout
23392
23393 \end_inset
23394
23395 : If 
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 HTMLLabelFirst
23401 \end_layout
23402
23403 \end_inset
23404
23405  is false (the default), you get the first of these, with the label within
23406  the item; if true, you get the second, with the label outside the item.
23407 \end_layout
23408
23409 \begin_layout Standard
23410 The specific tags and attributes output for each paragraph type can be controlle
23411 d by means of the layout tags we are about to describe.
23412  As mentioned earlier, however, \SpecialChar LyX
23413  uses sensible defaults for many of these,
23414  so you often may not need to do very much to get good XHTML output.
23415  Think of the available tags as there so you can tweak things to your liking.
23416 \end_layout
23417
23418 \begin_layout Description
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 HTMLAttr
23424 \end_layout
23425
23426 \end_inset
23427
23428  [
23429 \begin_inset Flex Code
23430 status collapsed
23431
23432 \begin_layout Plain Layout
23433 string
23434 \end_layout
23435
23436 \end_inset
23437
23438 ] Specifies attribute information to be output with the main tag.
23439  For example, 
23440 \begin_inset Quotes eld
23441 \end_inset
23442
23443
23444 \begin_inset Flex Code
23445 status collapsed
23446
23447 \begin_layout Plain Layout
23448 class=`mydiv'
23449 \end_layout
23450
23451 \end_inset
23452
23453
23454 \begin_inset Quotes erd
23455 \end_inset
23456
23457 .
23458  By default, \SpecialChar LyX
23459  will output 
23460 \begin_inset Quotes eld
23461 \end_inset
23462
23463
23464 \begin_inset Flex Code
23465 status collapsed
23466
23467 \begin_layout Plain Layout
23468 class=`layoutname'
23469 \end_layout
23470
23471 \end_inset
23472
23473
23474 \begin_inset Quotes erd
23475 \end_inset
23476
23477 , where 
23478 \begin_inset Flex Code
23479 status collapsed
23480
23481 \begin_layout Plain Layout
23482 layoutname
23483 \end_layout
23484
23485 \end_inset
23486
23487  is the \SpecialChar LyX
23488  name of the layout, made lowercase, for example: chapter.
23489  This should 
23490 \emph on
23491 not
23492 \emph default
23493  contain any style information.
23494  Use 
23495 \begin_inset Flex Code
23496 status collapsed
23497
23498 \begin_layout Plain Layout
23499 HTMLStyle
23500 \end_layout
23501
23502 \end_inset
23503
23504  for that purpose.
23505 \end_layout
23506
23507 \begin_layout Description
23508 \begin_inset Flex Code
23509 status collapsed
23510
23511 \begin_layout Plain Layout
23512 HTMLForceCSS
23513 \end_layout
23514
23515 \end_inset
23516
23517  [
23518 \begin_inset Flex Code
23519 status collapsed
23520
23521 \begin_layout Plain Layout
23522
23523 \emph on
23524 0
23525 \emph default
23526 ,1
23527 \end_layout
23528
23529 \end_inset
23530
23531 ] Whether to output the default CSS information \SpecialChar LyX
23532  generates for this layout,
23533  even if additional information is explicitly provided via 
23534 \begin_inset Flex Code
23535 status collapsed
23536
23537 \begin_layout Plain Layout
23538 HTMLStyle
23539 \end_layout
23540
23541 \end_inset
23542
23543 .
23544  Setting this to 
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549 1
23550 \end_layout
23551
23552 \end_inset
23553
23554  allows you to alter or augment the generated CSS, rather than to override
23555  it completely.
23556  Default is 
23557 \begin_inset Flex Code
23558 status collapsed
23559
23560 \begin_layout Plain Layout
23561 0
23562 \end_layout
23563
23564 \end_inset
23565
23566 .
23567 \end_layout
23568
23569 \begin_layout Description
23570 \begin_inset Flex Code
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574 HTMLItem
23575 \end_layout
23576
23577 \end_inset
23578
23579  [
23580 \begin_inset Flex Code
23581 status collapsed
23582
23583 \begin_layout Plain Layout
23584 string
23585 \end_layout
23586
23587 \end_inset
23588
23589 ] The tag to be used for individual paragraphs of environments, replacing
23590  
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 itemtag
23596 \end_layout
23597
23598 \end_inset
23599
23600  in the examples above.
23601  Defaults to 
23602 \begin_inset Flex Code
23603 status collapsed
23604
23605 \begin_layout Plain Layout
23606 div
23607 \end_layout
23608
23609 \end_inset
23610
23611 .
23612 \end_layout
23613
23614 \begin_layout Description
23615 \begin_inset Flex Code
23616 status collapsed
23617
23618 \begin_layout Plain Layout
23619 HTMLItemAttr
23620 \end_layout
23621
23622 \end_inset
23623
23624  [
23625 \begin_inset Flex Code
23626 status collapsed
23627
23628 \begin_layout Plain Layout
23629 string
23630 \end_layout
23631
23632 \end_inset
23633
23634 ] Attributes for the item tag.
23635  Defaults to
23636 \begin_inset Newline newline
23637 \end_inset
23638
23639
23640 \begin_inset Quotes eld
23641 \end_inset
23642
23643
23644 \begin_inset Flex Code
23645 status collapsed
23646
23647 \begin_layout Plain Layout
23648 class=`layoutname_item'
23649 \end_layout
23650
23651 \end_inset
23652
23653
23654 \begin_inset Quotes erd
23655 \end_inset
23656
23657 .
23658  This should 
23659 \emph on
23660 not
23661 \emph default
23662  contain any style information.
23663  Use 
23664 \begin_inset Flex Code
23665 status collapsed
23666
23667 \begin_layout Plain Layout
23668 HTMLStyle
23669 \end_layout
23670
23671 \end_inset
23672
23673  for that purpose.
23674 \end_layout
23675
23676 \begin_layout Description
23677 \begin_inset Flex Code
23678 status collapsed
23679
23680 \begin_layout Plain Layout
23681 HTMLLabel
23682 \end_layout
23683
23684 \end_inset
23685
23686  [
23687 \begin_inset Flex Code
23688 status collapsed
23689
23690 \begin_layout Plain Layout
23691 string
23692 \end_layout
23693
23694 \end_inset
23695
23696 ] The tag to be used for paragraph and item labels, replacing 
23697 \begin_inset Flex Code
23698 status collapsed
23699
23700 \begin_layout Plain Layout
23701 labeltag
23702 \end_layout
23703
23704 \end_inset
23705
23706  in the examples above.
23707  Defaults to 
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 span
23713 \end_layout
23714
23715 \end_inset
23716
23717 , unless 
23718 \begin_inset Flex Code
23719 status collapsed
23720
23721 \begin_layout Plain Layout
23722 LabelType
23723 \end_layout
23724
23725 \end_inset
23726
23727  is either 
23728 \begin_inset Flex Code
23729 status collapsed
23730
23731 \begin_layout Plain Layout
23732 Top_Environment
23733 \end_layout
23734
23735 \end_inset
23736
23737  or 
23738 \begin_inset Flex Code
23739 status collapsed
23740
23741 \begin_layout Plain Layout
23742 Centered_Top_Environment
23743 \end_layout
23744
23745 \end_inset
23746
23747 , in which case it defaults to 
23748 \begin_inset Flex Code
23749 status collapsed
23750
23751 \begin_layout Plain Layout
23752 div
23753 \end_layout
23754
23755 \end_inset
23756
23757 .
23758 \end_layout
23759
23760 \begin_layout Description
23761 \begin_inset Flex Code
23762 status collapsed
23763
23764 \begin_layout Plain Layout
23765 HTMLLabelAttr
23766 \end_layout
23767
23768 \end_inset
23769
23770  [
23771 \begin_inset Flex Code
23772 status collapsed
23773
23774 \begin_layout Plain Layout
23775 string
23776 \end_layout
23777
23778 \end_inset
23779
23780 ] Attributes for the label tag.
23781  Defaults to
23782 \begin_inset Newline newline
23783 \end_inset
23784
23785
23786 \begin_inset Quotes eld
23787 \end_inset
23788
23789
23790 \begin_inset Flex Code
23791 status collapsed
23792
23793 \begin_layout Plain Layout
23794 class=`layoutname_label'
23795 \end_layout
23796
23797 \end_inset
23798
23799
23800 \begin_inset Quotes erd
23801 \end_inset
23802
23803 .
23804  This should 
23805 \emph on
23806 not
23807 \emph default
23808  contain any style information.
23809  Use 
23810 \begin_inset Flex Code
23811 status collapsed
23812
23813 \begin_layout Plain Layout
23814 HTMLStyle
23815 \end_layout
23816
23817 \end_inset
23818
23819  for that purpose.
23820 \end_layout
23821
23822 \begin_layout Description
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 HTMLLabelFirst
23828 \end_layout
23829
23830 \end_inset
23831
23832  [
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837
23838 \emph on
23839 0
23840 \emph default
23841 ,1
23842 \end_layout
23843
23844 \end_inset
23845
23846 ] Meaningful only for list-like environments, this tag controls whether
23847  the label tag is output before or inside the item tag.
23848  This is used, for example, in the description environment, where we want
23849  `
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854 <dt>\SpecialChar ldots
23855 </dt><dd>\SpecialChar ldots
23856 </dd>
23857 \end_layout
23858
23859 \end_inset
23860
23861 .
23862  Default is 
23863 \begin_inset Flex Code
23864 status collapsed
23865
23866 \begin_layout Plain Layout
23867 0
23868 \end_layout
23869
23870 \end_inset
23871
23872 : The label tag is output inside the item tag.
23873 \end_layout
23874
23875 \begin_layout Description
23876 \begin_inset Flex Code
23877 status collapsed
23878
23879 \begin_layout Plain Layout
23880 HTMLPreamble
23881 \end_layout
23882
23883 \end_inset
23884
23885  Information to be output in the 
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 <head>
23891 \end_layout
23892
23893 \end_inset
23894
23895  section when this style is used.
23896  This might, for example, be used to include a 
23897 \begin_inset Flex Code
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901 <script>
23902 \end_layout
23903
23904 \end_inset
23905
23906  block defining an 
23907 \begin_inset Flex Code
23908 status collapsed
23909
23910 \begin_layout Plain Layout
23911 onclick
23912 \end_layout
23913
23914 \end_inset
23915
23916  handler.
23917 \end_layout
23918
23919 \begin_layout Description
23920 \begin_inset Flex Code
23921 status collapsed
23922
23923 \begin_layout Plain Layout
23924 HTMLStyle
23925 \end_layout
23926
23927 \end_inset
23928
23929  CSS style information to be included when this style is used.
23930  Note that this will automatically be wrapped in a layout-generated 
23931 \begin_inset Flex Code
23932 status collapsed
23933
23934 \begin_layout Plain Layout
23935 <style>
23936 \end_layout
23937
23938 \end_inset
23939
23940  block, so only the CSS itself need be included.
23941  Must end with 
23942 \begin_inset Flex Code
23943 status collapsed
23944
23945 \begin_layout Plain Layout
23946 EndHTMLStyle
23947 \end_layout
23948
23949 \end_inset
23950
23951 .
23952 \end_layout
23953
23954 \begin_layout Description
23955 \begin_inset Flex Code
23956 status collapsed
23957
23958 \begin_layout Plain Layout
23959 HTMLTag
23960 \end_layout
23961
23962 \end_inset
23963
23964  [
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969 string
23970 \end_layout
23971
23972 \end_inset
23973
23974 ] The tag to be used for the main label, replacing 
23975 \begin_inset Flex Code
23976 status collapsed
23977
23978 \begin_layout Plain Layout
23979 tag
23980 \end_layout
23981
23982 \end_inset
23983
23984  in the examples above.
23985  Defaults to 
23986 \begin_inset Flex Code
23987 status collapsed
23988
23989 \begin_layout Plain Layout
23990 div
23991 \end_layout
23992
23993 \end_inset
23994
23995 .
23996 \end_layout
23997
23998 \begin_layout Description
23999 \begin_inset Flex Code
24000 status collapsed
24001
24002 \begin_layout Plain Layout
24003 HTMLTitle
24004 \end_layout
24005
24006 \end_inset
24007
24008  [
24009 \begin_inset Flex Code
24010 status collapsed
24011
24012 \begin_layout Plain Layout
24013
24014 \emph on
24015 0
24016 \emph default
24017 ,1
24018 \end_layout
24019
24020 \end_inset
24021
24022 ] Marks this style as the one to be used to generate the 
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 <title>
24028 \end_layout
24029
24030 \end_inset
24031
24032  tag for the XHTML file.
24033  By default, it is false.
24034  The 
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 stdtitle.inc
24040 \end_layout
24041
24042 \end_inset
24043
24044  file sets it to true for the 
24045 \begin_inset Flex Code
24046 status collapsed
24047
24048 \begin_layout Plain Layout
24049 title
24050 \end_layout
24051
24052 \end_inset
24053
24054  environment.
24055  
24056 \end_layout
24057
24058 \begin_layout Subsection
24059 InsetLayout XHTML
24060 \end_layout
24061
24062 \begin_layout Standard
24063 The XHTML output of insets can also be controlled by information in layout
24064  files.
24065 \begin_inset Foot
24066 status collapsed
24067
24068 \begin_layout Plain Layout
24069 At present, this is true only for 
24070 \begin_inset Quotes eld
24071 \end_inset
24072
24073 text
24074 \begin_inset Quotes erd
24075 \end_inset
24076
24077  insets (insets you can type into) and is not true for 
24078 \begin_inset Quotes eld
24079 \end_inset
24080
24081 command
24082 \begin_inset Quotes erd
24083 \end_inset
24084
24085  insets (insets that are associated with dialog boxes).
24086 \end_layout
24087
24088 \end_inset
24089
24090  Here, too, \SpecialChar LyX
24091  tries to provide sensible defaults, and it constructs default
24092  CSS style rules.
24093  But everything can be customized.
24094 \end_layout
24095
24096 \begin_layout Standard
24097 The XHTML \SpecialChar LyX
24098  outputs for an inset has the following form:
24099 \end_layout
24100
24101 \begin_layout LyX-Code
24102 <tag attr=
24103 \begin_inset Quotes erd
24104 \end_inset
24105
24106 value
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 >
24111 \end_layout
24112
24113 \begin_layout LyX-Code
24114 <labeltag>Label</labeltag>
24115 \end_layout
24116
24117 \begin_layout LyX-Code
24118 <innertag attr=
24119 \begin_inset Quotes erd
24120 \end_inset
24121
24122 value
24123 \begin_inset Quotes erd
24124 \end_inset
24125
24126 >Contents of the inset.</innertag>
24127 \end_layout
24128
24129 \begin_layout LyX-Code
24130 </tag>
24131 \end_layout
24132
24133 \begin_layout Standard
24134 If the inset permits multiple paragraphs—that is, if 
24135 \begin_inset Flex Code
24136 status collapsed
24137
24138 \begin_layout Plain Layout
24139 MultiPar
24140 \end_layout
24141
24142 \end_inset
24143
24144  is true—then the contents of the inset will itself be output as paragraphs
24145  formatted according to the styles used for those paragraphs (standard,
24146  quote, and the like).
24147  The label tag is of course omitted if the paragraph does not have a label
24148  and, at present, is always 
24149 \begin_inset Flex Code
24150 status collapsed
24151
24152 \begin_layout Plain Layout
24153 span
24154 \end_layout
24155
24156 \end_inset
24157
24158 .
24159  The inner tag is optional and, by default, does not appear.
24160 \end_layout
24161
24162 \begin_layout Standard
24163 The specific tags and attributes output for each inset can be controlled
24164  by means of the following layout tags.
24165 \end_layout
24166
24167 \begin_layout Description
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 HTMLAttr
24173 \end_layout
24174
24175 \end_inset
24176
24177  [
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182 string
24183 \end_layout
24184
24185 \end_inset
24186
24187 ] Specifies attribute information to be output with the main tag.
24188  For example, 
24189 \begin_inset Quotes eld
24190 \end_inset
24191
24192
24193 \begin_inset Flex Code
24194 status collapsed
24195
24196 \begin_layout Plain Layout
24197 class=`myinset' onclick=`\SpecialChar ldots
24198 '
24199 \end_layout
24200
24201 \end_inset
24202
24203
24204 \begin_inset Quotes erd
24205 \end_inset
24206
24207 .
24208  By default, \SpecialChar LyX
24209  will output 
24210 \begin_inset Quotes eld
24211 \end_inset
24212
24213
24214 \begin_inset Flex Code
24215 status collapsed
24216
24217 \begin_layout Plain Layout
24218 class=`insetname'
24219 \end_layout
24220
24221 \end_inset
24222
24223
24224 \begin_inset Quotes erd
24225 \end_inset
24226
24227 , where 
24228 \begin_inset Flex Code
24229 status collapsed
24230
24231 \begin_layout Plain Layout
24232 insetname
24233 \end_layout
24234
24235 \end_inset
24236
24237  is the \SpecialChar LyX
24238  name of the inset, made lowercase and with non-alphanumeric characters
24239  converted to underscores, for example: footnote.
24240 \end_layout
24241
24242 \begin_layout Description
24243 \begin_inset Flex Code
24244 status collapsed
24245
24246 \begin_layout Plain Layout
24247 HTMLForceCSS
24248 \end_layout
24249
24250 \end_inset
24251
24252  [
24253 \begin_inset Flex Code
24254 status collapsed
24255
24256 \begin_layout Plain Layout
24257
24258 \emph on
24259 0
24260 \emph default
24261 ,1
24262 \end_layout
24263
24264 \end_inset
24265
24266 ] Whether to output the default CSS information \SpecialChar LyX
24267  generates for this layout,
24268  even if additional information is explicitly provided via 
24269 \begin_inset Flex Code
24270 status collapsed
24271
24272 \begin_layout Plain Layout
24273 HTMLStyle
24274 \end_layout
24275
24276 \end_inset
24277
24278 .
24279  Setting this to 
24280 \begin_inset Flex Code
24281 status collapsed
24282
24283 \begin_layout Plain Layout
24284 1
24285 \end_layout
24286
24287 \end_inset
24288
24289  allows you to alter or augment the generated CSS, rather than to override
24290  it completely.
24291  Default is 0.
24292 \end_layout
24293
24294 \begin_layout Description
24295 \begin_inset Flex Code
24296 status collapsed
24297
24298 \begin_layout Plain Layout
24299 HTMLInnerAttr
24300 \end_layout
24301
24302 \end_inset
24303
24304  [
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309 string
24310 \end_layout
24311
24312 \end_inset
24313
24314 ] Attributes for the inner tag.
24315  Defaults to
24316 \begin_inset Newline newline
24317 \end_inset
24318
24319
24320 \begin_inset Quotes eld
24321 \end_inset
24322
24323
24324 \begin_inset Flex Code
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328 class=`insetname_inner'
24329 \end_layout
24330
24331 \end_inset
24332
24333
24334 \begin_inset Quotes erd
24335 \end_inset
24336
24337 .
24338 \end_layout
24339
24340 \begin_layout Description
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345 HTMLInnerTag
24346 \end_layout
24347
24348 \end_inset
24349
24350  [
24351 \begin_inset Flex Code
24352 status collapsed
24353
24354 \begin_layout Plain Layout
24355 string
24356 \end_layout
24357
24358 \end_inset
24359
24360 ] The inner tag, replacing 
24361 \begin_inset Flex Code
24362 status collapsed
24363
24364 \begin_layout Plain Layout
24365 innertag
24366 \end_layout
24367
24368 \end_inset
24369
24370  in the examples above.
24371  By default, there is none.
24372 \end_layout
24373
24374 \begin_layout Description
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379 HTMLIsBlock
24380 \end_layout
24381
24382 \end_inset
24383
24384  [
24385 \begin_inset Flex Code
24386 status collapsed
24387
24388 \begin_layout Plain Layout
24389 0,
24390 \emph on
24391 1
24392 \end_layout
24393
24394 \end_inset
24395
24396 ] Whether this inset represents a standalone block of text (such as a footnote)
24397  or instead represents material that is included in the surrounding text
24398  (such as a branch).
24399  Defaults to 1.
24400 \end_layout
24401
24402 \begin_layout Description
24403 \begin_inset Flex Code
24404 status collapsed
24405
24406 \begin_layout Plain Layout
24407 HTMLLabel
24408 \end_layout
24409
24410 \end_inset
24411
24412  [
24413 \begin_inset Flex Code
24414 status collapsed
24415
24416 \begin_layout Plain Layout
24417 string
24418 \end_layout
24419
24420 \end_inset
24421
24422 ] A label for this inset, possibly including a reference to a counter.
24423  For example, for footnote, it might be: 
24424 \begin_inset Flex Code
24425 status collapsed
24426
24427 \begin_layout Plain Layout
24428
24429 \backslash
24430 arabic{footnote}
24431 \end_layout
24432
24433 \end_inset
24434
24435 .
24436  This is optional, and there is no default.
24437 \end_layout
24438
24439 \begin_layout Description
24440 \begin_inset Flex Code
24441 status collapsed
24442
24443 \begin_layout Plain Layout
24444 HTMLPreamble
24445 \end_layout
24446
24447 \end_inset
24448
24449  Information to be output in the 
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 <head>
24455 \end_layout
24456
24457 \end_inset
24458
24459  section when this style is used.
24460  This might, for example, be used to include a 
24461 \begin_inset Flex Code
24462 status collapsed
24463
24464 \begin_layout Plain Layout
24465 <script>
24466 \end_layout
24467
24468 \end_inset
24469
24470  block defining an 
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 onclick
24476 \end_layout
24477
24478 \end_inset
24479
24480  handler.
24481 \end_layout
24482
24483 \begin_layout Description
24484 \begin_inset Flex Code
24485 status collapsed
24486
24487 \begin_layout Plain Layout
24488 HTMLStyle
24489 \end_layout
24490
24491 \end_inset
24492
24493  CSS style information to be included when this style is used.
24494  Note that this will automatically be wrapped in a layout-generated 
24495 \begin_inset Flex Code
24496 status collapsed
24497
24498 \begin_layout Plain Layout
24499 <style>
24500 \end_layout
24501
24502 \end_inset
24503
24504  block, so only the CSS itself need be included.
24505 \end_layout
24506
24507 \begin_layout Description
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512 HTMLTag
24513 \end_layout
24514
24515 \end_inset
24516
24517  [
24518 \begin_inset Flex Code
24519 status collapsed
24520
24521 \begin_layout Plain Layout
24522 string
24523 \end_layout
24524
24525 \end_inset
24526
24527 ] The tag to be used for the main label, replacing 
24528 \begin_inset Flex Code
24529 status collapsed
24530
24531 \begin_layout Plain Layout
24532 tag
24533 \end_layout
24534
24535 \end_inset
24536
24537  in the examples above.
24538  The default depends upon the setting of 
24539 \begin_inset Flex Code
24540 status collapsed
24541
24542 \begin_layout Plain Layout
24543 MultiPar
24544 \end_layout
24545
24546 \end_inset
24547
24548 : If 
24549 \begin_inset Flex Code
24550 status collapsed
24551
24552 \begin_layout Plain Layout
24553 MultiPar
24554 \end_layout
24555
24556 \end_inset
24557
24558  is true, the default is 
24559 \begin_inset Flex Code
24560 status collapsed
24561
24562 \begin_layout Plain Layout
24563 div
24564 \end_layout
24565
24566 \end_inset
24567
24568 ; if it is false, the default is 
24569 \begin_inset Flex Code
24570 status collapsed
24571
24572 \begin_layout Plain Layout
24573 span
24574 \end_layout
24575
24576 \end_inset
24577
24578 .
24579 \end_layout
24580
24581 \begin_layout Subsection
24582 Float XHTML
24583 \end_layout
24584
24585 \begin_layout Standard
24586 The XHTML output for floats too can be controlled by layout information.
24587  The output has the following form:
24588 \end_layout
24589
24590 \begin_layout LyX-Code
24591 <tag attr=
24592 \begin_inset Quotes erd
24593 \end_inset
24594
24595 value
24596 \begin_inset Quotes erd
24597 \end_inset
24598
24599 >
24600 \end_layout
24601
24602 \begin_layout LyX-Code
24603 Contents of the float.
24604 \end_layout
24605
24606 \begin_layout LyX-Code
24607 </tag>
24608 \end_layout
24609
24610 \begin_layout Standard
24611 The caption, if there is one, is a separate inset and will be output as
24612  such.
24613  Its appearance can be controlled via the InsetLayout for caption insets.
24614  
24615 \end_layout
24616
24617 \begin_layout Description
24618 \begin_inset Flex Code
24619 status collapsed
24620
24621 \begin_layout Plain Layout
24622 HTMLAttr
24623 \end_layout
24624
24625 \end_inset
24626
24627  [
24628 \begin_inset Flex Code
24629 status collapsed
24630
24631 \begin_layout Plain Layout
24632 string
24633 \end_layout
24634
24635 \end_inset
24636
24637 ] Specifies attribute information to be output with the main tag.
24638  For example, 
24639 \begin_inset Quotes eld
24640 \end_inset
24641
24642
24643 \begin_inset Flex Code
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647 class=`myfloat' onclick=`\SpecialChar ldots
24648 '
24649 \end_layout
24650
24651 \end_inset
24652
24653
24654 \begin_inset Quotes erd
24655 \end_inset
24656
24657 .
24658  By default, \SpecialChar LyX
24659  will output 
24660 \begin_inset Quotes eld
24661 \end_inset
24662
24663
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 class=`float float-floattype'
24669 \end_layout
24670
24671 \end_inset
24672
24673
24674 \begin_inset Quotes erd
24675 \end_inset
24676
24677 , where 
24678 \begin_inset Flex Code
24679 status collapsed
24680
24681 \begin_layout Plain Layout
24682 floattype
24683 \end_layout
24684
24685 \end_inset
24686
24687  is \SpecialChar LyX
24688 's name for this type of float, as determined by the float declaration
24689  (see 
24690 \begin_inset CommandInset ref
24691 LatexCommand ref
24692 reference "subsec:Floats"
24693
24694 \end_inset
24695
24696 ), though made lowercase and with non-alphanumeric characters converted
24697  to underscores, for example: float-table.
24698 \end_layout
24699
24700 \begin_layout Description
24701 \begin_inset Flex Code
24702 status collapsed
24703
24704 \begin_layout Plain Layout
24705 HTMLStyle
24706 \end_layout
24707
24708 \end_inset
24709
24710  CSS style information to be included when this float is used.
24711  Note that this will automatically be wrapped in a layout-generated 
24712 \begin_inset Flex Code
24713 status collapsed
24714
24715 \begin_layout Plain Layout
24716 <style>
24717 \end_layout
24718
24719 \end_inset
24720
24721  block, so only the CSS itself need be included.
24722 \end_layout
24723
24724 \begin_layout Description
24725 \begin_inset Flex Code
24726 status collapsed
24727
24728 \begin_layout Plain Layout
24729 HTMLTag
24730 \end_layout
24731
24732 \end_inset
24733
24734  [
24735 \begin_inset Flex Code
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739 string
24740 \end_layout
24741
24742 \end_inset
24743
24744 ] The tag to be used for this float, replacing 
24745 \begin_inset Quotes eld
24746 \end_inset
24747
24748
24749 \begin_inset Flex Code
24750 status collapsed
24751
24752 \begin_layout Plain Layout
24753 tag
24754 \end_layout
24755
24756 \end_inset
24757
24758
24759 \begin_inset Quotes erd
24760 \end_inset
24761
24762  in the example above.
24763  The default is 
24764 \begin_inset Flex Code
24765 status collapsed
24766
24767 \begin_layout Plain Layout
24768 div
24769 \end_layout
24770
24771 \end_inset
24772
24773  and will rarely need changing.
24774 \end_layout
24775
24776 \begin_layout Subsection
24777 Bibliography formatting
24778 \end_layout
24779
24780 \begin_layout Standard
24781 The bibliography can be formatted using 
24782 \begin_inset Flex Code
24783 status collapsed
24784
24785 \begin_layout Plain Layout
24786 CiteFormat
24787 \end_layout
24788
24789 \end_inset
24790
24791  blocks.
24792  See 
24793 \begin_inset CommandInset ref
24794 LatexCommand ref
24795 reference "subsec:Citation-format-description"
24796
24797 \end_inset
24798
24799  for the details.
24800 \end_layout
24801
24802 \begin_layout Subsection
24803 \SpecialChar LyX
24804 -generated CSS
24805 \end_layout
24806
24807 \begin_layout Standard
24808 We have several times mentioned that \SpecialChar LyX
24809  will generate default CSS style rules
24810  for both insets and paragraph styles, based upon the other layout information
24811  that is provided.
24812  In this section, we shall say a word about which layout information \SpecialChar LyX
24813  uses
24814  and how.
24815 \end_layout
24816
24817 \begin_layout Standard
24818 At present, \SpecialChar LyX
24819  auto-generates CSS only for font information, making use of
24820  the 
24821 \begin_inset Flex Code
24822 status collapsed
24823
24824 \begin_layout Plain Layout
24825 Family
24826 \end_layout
24827
24828 \end_inset
24829
24830
24831 \begin_inset Flex Code
24832 status collapsed
24833
24834 \begin_layout Plain Layout
24835 Series
24836 \end_layout
24837
24838 \end_inset
24839
24840
24841 \begin_inset Flex Code
24842 status collapsed
24843
24844 \begin_layout Plain Layout
24845 Shape
24846 \end_layout
24847
24848 \end_inset
24849
24850 , and 
24851 \begin_inset Flex Code
24852 status collapsed
24853
24854 \begin_layout Plain Layout
24855 Size
24856 \end_layout
24857
24858 \end_inset
24859
24860  specified in the 
24861 \begin_inset Flex Code
24862 status collapsed
24863
24864 \begin_layout Plain Layout
24865 Font
24866 \end_layout
24867
24868 \end_inset
24869
24870  declaration (see 
24871 \begin_inset CommandInset ref
24872 LatexCommand ref
24873 reference "subsec:Font-description"
24874
24875 \end_inset
24876
24877 ).
24878  The translation is mostly straightforward and obvious.
24879  For example, 
24880 \begin_inset Quotes eld
24881 \end_inset
24882
24883
24884 \begin_inset Flex Code
24885 status collapsed
24886
24887 \begin_layout Plain Layout
24888 Family Sans
24889 \end_layout
24890
24891 \end_inset
24892
24893
24894 \begin_inset Quotes erd
24895 \end_inset
24896
24897  becomes 
24898 \begin_inset Quotes eld
24899 \end_inset
24900
24901
24902 \begin_inset Flex Code
24903 status collapsed
24904
24905 \begin_layout Plain Layout
24906 font-family: sans-serif;
24907 \end_layout
24908
24909 \end_inset
24910
24911
24912 \begin_inset Quotes erd
24913 \end_inset
24914
24915 .
24916  The correspondence of \SpecialChar LyX
24917  sizes and CSS sizes is a little less obvious but
24918  nonetheless intuitive.
24919  See the 
24920 \begin_inset Flex Code
24921 status collapsed
24922
24923 \begin_layout Plain Layout
24924 getSizeCSS()
24925 \end_layout
24926
24927 \end_inset
24928
24929  function in 
24930 \begin_inset Flex URL
24931 status collapsed
24932
24933 \begin_layout Plain Layout
24934
24935 src/FontInfo.cpp
24936 \end_layout
24937
24938 \end_inset
24939
24940  for the details.
24941 \end_layout
24942
24943 \begin_layout Chapter
24944 Including External Material
24945 \begin_inset CommandInset label
24946 LatexCommand label
24947 name "chap:Including-External-Material"
24948
24949 \end_inset
24950
24951
24952 \end_layout
24953
24954 \begin_layout Standard
24955 \begin_inset Box Shadowbox
24956 position "t"
24957 hor_pos "c"
24958 has_inner_box 1
24959 inner_pos "t"
24960 use_parbox 0
24961 use_makebox 0
24962 width "100col%"
24963 special "none"
24964 height "1in"
24965 height_special "totalheight"
24966 thickness "0.4pt"
24967 separation "3pt"
24968 shadowsize "4pt"
24969 framecolor "black"
24970 backgroundcolor "none"
24971 status open
24972
24973 \begin_layout Plain Layout
24974 WARNING: This portion of the documentation has not been updated for some
24975  time.
24976  We certainly hope that it is still accurate, but there are no guarantees.
24977 \end_layout
24978
24979 \end_inset
24980
24981
24982 \end_layout
24983
24984 \begin_layout Standard
24985 The use of material from sources external to \SpecialChar LyX
24986  is covered in detail in the
24987  
24988 \emph on
24989 Embedded Objects
24990 \emph default
24991  manual.
24992  This part of the manual covers what needs to happen behind the scenes for
24993  new sorts of material to be included.
24994 \end_layout
24995
24996 \begin_layout Section
24997 How does it work?
24998 \end_layout
24999
25000 \begin_layout Standard
25001 The external material feature is based on the concept of a 
25002 \emph on
25003 template
25004 \emph default
25005 .
25006  A template is a specification of how \SpecialChar LyX
25007  should interface with a certain kind
25008  of material.
25009  As bundled, \SpecialChar LyX
25010  comes with predefined templates for Xfig figures, various
25011  raster format images, chess diagrams, and LilyPond music notation.
25012  You can check the actual list by using the menu 
25013 \begin_inset Flex Noun
25014 status collapsed
25015
25016 \begin_layout Plain Layout
25017 Insert\SpecialChar menuseparator
25018 File\SpecialChar menuseparator
25019 External Material
25020 \end_layout
25021
25022 \end_inset
25023
25024 .
25025  Furthermore, it is possible to roll your own template to support a specific
25026  kind of material.
25027  Later we'll describe in more detail what is involved, and hopefully you
25028  will submit all the templates you create so we can include them in a later
25029  \SpecialChar LyX
25030  version.
25031 \end_layout
25032
25033 \begin_layout Standard
25034 Another basic idea of the external material feature is to distinguish between
25035  the original file that serves as a base for final material and the produced
25036  file that is included in your exported or printed document.
25037  For example, consider the case of a figure produced with 
25038 \begin_inset Flex Code
25039 status collapsed
25040
25041 \begin_layout Plain Layout
25042 Xfig
25043 \end_layout
25044
25045 \end_inset
25046
25047 .
25048  The Xfig application itself works on an original file with the 
25049 \begin_inset Flex Code
25050 status collapsed
25051
25052 \begin_layout Plain Layout
25053 .fig
25054 \end_layout
25055
25056 \end_inset
25057
25058  extension.
25059  Within Xfig, you create and change your figure, and when you are done,
25060  you save the 
25061 \begin_inset Flex Code
25062 status collapsed
25063
25064 \begin_layout Plain Layout
25065 fig
25066 \end_layout
25067
25068 \end_inset
25069
25070 -file.
25071  When you want to include the figure in your document, you invoke 
25072 \begin_inset Flex Code
25073 status collapsed
25074
25075 \begin_layout Plain Layout
25076 transfig
25077 \end_layout
25078
25079 \end_inset
25080
25081  in order to create a PostScript file that can readily be included in your
25082  \SpecialChar LaTeX
25083  file.
25084  In this case, the 
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089 .fig
25090 \end_layout
25091
25092 \end_inset
25093
25094  file is the original file, and the PostScript file is the produced file.
25095 \end_layout
25096
25097 \begin_layout Standard
25098 This distinction is important in order to allow updating of the material
25099  while you are in the process of writing the document.
25100  Furthermore, it provides us with the flexibility that is needed to support
25101  multiple export formats.
25102  For instance, in the case of a plain text file, it is not exactly an award-winn
25103 ing idea to include the figure as raw PostScript.
25104  Instead, you would either prefer to just include a reference to the figure
25105  or try to invoke some graphics to ASCII converter to make the final result
25106  look similar to the real graphics.
25107  The external material management allows you to do this, because it is parametri
25108 zed on the different export formats that \SpecialChar LyX
25109  supports.
25110 \end_layout
25111
25112 \begin_layout Standard
25113 Besides supporting the production of different products according to the
25114  exported format, it supports tight integration with editing and viewing
25115  applications.
25116  In the case of an Xfig figure, you are able to invoke Xfig on the original
25117  file with a single click from within the external material dialog in \SpecialChar LyX
25118 ,
25119  and also preview the produced PostScript file with Ghostview with another
25120  click.
25121  No more fiddling around with the command line and/or file browsers to locate
25122  and manipulate the original or produced files.
25123  In this way, you are finally able to take full advantage of the many different
25124  applications that are relevant to use when you write your documents, and
25125  ultimately be more productive.
25126 \end_layout
25127
25128 \begin_layout Section
25129 The external template configuration files
25130 \end_layout
25131
25132 \begin_layout Standard
25133 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25134 .
25135  However, be aware that doing this in an careless manner most probably 
25136 \emph on
25137 will
25138 \emph default
25139  introduce an easily exploitable security hole.
25140  So before you do this, please read the discussion about security in 
25141 \begin_inset CommandInset ref
25142 LatexCommand ref
25143 reference "sec:Security-discussion"
25144
25145 \end_inset
25146
25147 .
25148 \end_layout
25149
25150 \begin_layout Standard
25151 Having said that, we encourage you to submit any interesting templates that
25152  you create.
25153  
25154 \end_layout
25155
25156 \begin_layout Standard
25157 The external templates are defined in the 
25158 \begin_inset Flex Code
25159 status collapsed
25160
25161 \begin_layout Plain Layout
25162 *.xtemplate
25163 \end_layout
25164
25165 \end_inset
25166
25167  files that are stored in the 
25168 \begin_inset Flex Code
25169 status collapsed
25170
25171 \begin_layout Plain Layout
25172 LyXDir/lib/xtemplates/
25173 \end_layout
25174
25175 \end_inset
25176
25177  directory.
25178  Each template is defined in a file of its own.
25179  You can place your own templates in 
25180 \begin_inset Flex Code
25181 status collapsed
25182
25183 \begin_layout Plain Layout
25184 UserDir/xtemplates/
25185 \end_layout
25186
25187 \end_inset
25188
25189  or copy existing templates to that directory in order to modify them.
25190 \end_layout
25191
25192 \begin_layout Standard
25193 A typical template looks like this:
25194 \end_layout
25195
25196 \begin_layout LyX-Code
25197 Template XFig
25198 \end_layout
25199
25200 \begin_layout LyX-Code
25201 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25202 \end_layout
25203
25204 \begin_layout LyX-Code
25205 HelpText
25206 \end_layout
25207
25208 \begin_layout LyX-Code
25209 An XFig figure.
25210 \end_layout
25211
25212 \begin_layout LyX-Code
25213 HelpTextEnd
25214 \end_layout
25215
25216 \begin_layout LyX-Code
25217 InputFormat fig
25218 \end_layout
25219
25220 \begin_layout LyX-Code
25221 FileFilter "*.fig"
25222 \end_layout
25223
25224 \begin_layout LyX-Code
25225 AutomaticProduction true
25226 \end_layout
25227
25228 \begin_layout LyX-Code
25229 Transform Rotate
25230 \end_layout
25231
25232 \begin_layout LyX-Code
25233 Transform Resize
25234 \end_layout
25235
25236 \begin_layout LyX-Code
25237 Format LaTeX
25238 \end_layout
25239
25240 \begin_layout LyX-Code
25241 TransformCommand Rotate RotationLatexCommand
25242 \end_layout
25243
25244 \begin_layout LyX-Code
25245 TransformCommand Resize ResizeLatexCommand
25246 \end_layout
25247
25248 \begin_layout LyX-Code
25249 Product "$$RotateFront$$ResizeFront
25250 \end_layout
25251
25252 \begin_layout LyX-Code
25253          
25254 \backslash
25255
25256 \backslash
25257 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25258 \end_layout
25259
25260 \begin_layout LyX-Code
25261          $$ResizeBack$$RotateBack"
25262 \end_layout
25263
25264 \begin_layout LyX-Code
25265 UpdateFormat pstex
25266 \end_layout
25267
25268 \begin_layout LyX-Code
25269 UpdateResult "$$AbsPath$$Basename.pstex_t"
25270 \end_layout
25271
25272 \begin_layout LyX-Code
25273 Requirement "graphicx"
25274 \end_layout
25275
25276 \begin_layout LyX-Code
25277 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25278 \end_layout
25279
25280 \begin_layout LyX-Code
25281 ReferencedFile latex "$$AbsPath$$Basename.eps"
25282 \end_layout
25283
25284 \begin_layout LyX-Code
25285 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25286 \end_layout
25287
25288 \begin_layout LyX-Code
25289 FormatEnd
25290 \end_layout
25291
25292 \begin_layout LyX-Code
25293 Format PDFLaTeX
25294 \end_layout
25295
25296 \begin_layout LyX-Code
25297 TransformCommand Rotate RotationLatexCommand
25298 \end_layout
25299
25300 \begin_layout LyX-Code
25301 TransformCommand Resize ResizeLatexCommand
25302 \end_layout
25303
25304 \begin_layout LyX-Code
25305 Product "$$RotateFront$$ResizeFront
25306 \end_layout
25307
25308 \begin_layout LyX-Code
25309          
25310 \backslash
25311
25312 \backslash
25313 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25314 \end_layout
25315
25316 \begin_layout LyX-Code
25317          $$ResizeBack$$RotateBack"
25318 \end_layout
25319
25320 \begin_layout LyX-Code
25321 UpdateFormat pdftex
25322 \end_layout
25323
25324 \begin_layout LyX-Code
25325 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25326 \end_layout
25327
25328 \begin_layout LyX-Code
25329 Requirement "graphicx"
25330 \end_layout
25331
25332 \begin_layout LyX-Code
25333 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25334 \end_layout
25335
25336 \begin_layout LyX-Code
25337 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25338 \end_layout
25339
25340 \begin_layout LyX-Code
25341 FormatEnd
25342 \end_layout
25343
25344 \begin_layout LyX-Code
25345 Format Ascii
25346 \end_layout
25347
25348 \begin_layout LyX-Code
25349 Product "[XFig: $$FName]"
25350 \end_layout
25351
25352 \begin_layout LyX-Code
25353 FormatEnd
25354 \end_layout
25355
25356 \begin_layout LyX-Code
25357 Format DocBook
25358 \end_layout
25359
25360 \begin_layout LyX-Code
25361 Product "<graphic fileref=
25362 \backslash
25363 "$$AbsOrRelPathMaster$$Basename.eps
25364 \backslash
25365 ">
25366 \end_layout
25367
25368 \begin_layout LyX-Code
25369          </graphic>"
25370 \end_layout
25371
25372 \begin_layout LyX-Code
25373 UpdateFormat eps
25374 \end_layout
25375
25376 \begin_layout LyX-Code
25377 UpdateResult "$$AbsPath$$Basename.eps"
25378 \end_layout
25379
25380 \begin_layout LyX-Code
25381 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25382 \end_layout
25383
25384 \begin_layout LyX-Code
25385 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25386 \end_layout
25387
25388 \begin_layout LyX-Code
25389 FormatEnd
25390 \end_layout
25391
25392 \begin_layout LyX-Code
25393 TemplateEnd
25394 \end_layout
25395
25396 \begin_layout Standard
25397 As you can see, the template is enclosed in 
25398 \begin_inset Flex Code
25399 status collapsed
25400
25401 \begin_layout Plain Layout
25402 Template
25403 \end_layout
25404
25405 \end_inset
25406
25407  \SpecialChar ldots
25408  
25409 \begin_inset Flex Code
25410 status collapsed
25411
25412 \begin_layout Plain Layout
25413 TemplateEnd
25414 \end_layout
25415
25416 \end_inset
25417
25418 .
25419  It contains a header specifying some general settings and, for each supported
25420  primary document file format, a section 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425 Format
25426 \end_layout
25427
25428 \end_inset
25429
25430  \SpecialChar ldots
25431  
25432 \begin_inset Flex Code
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 FormatEnd
25437 \end_layout
25438
25439 \end_inset
25440
25441 .
25442 \end_layout
25443
25444 \begin_layout Subsection
25445 The template header
25446 \end_layout
25447
25448 \begin_layout Description
25449 \begin_inset Flex Code
25450 status collapsed
25451
25452 \begin_layout Plain Layout
25453 AutomaticProduction
25454 \begin_inset space ~
25455 \end_inset
25456
25457 true|false
25458 \end_layout
25459
25460 \end_inset
25461
25462  Whether the file represented by the template must be generated by \SpecialChar LyX
25463 .
25464  This command must occur exactly once.
25465 \end_layout
25466
25467 \begin_layout Description
25468 \begin_inset Flex Code
25469 status collapsed
25470
25471 \begin_layout Plain Layout
25472 FileFilter
25473 \begin_inset space ~
25474 \end_inset
25475
25476 <pattern>
25477 \end_layout
25478
25479 \end_inset
25480
25481  A glob pattern that is used in the file dialog to filter out the desired
25482  files.
25483  If there is more than one possible file extension (e.
25484 \begin_inset space \thinspace{}
25485 \end_inset
25486
25487 g.
25488 \begin_inset space \space{}
25489 \end_inset
25490
25491 tgif has 
25492 \begin_inset Flex Code
25493 status collapsed
25494
25495 \begin_layout Plain Layout
25496 .obj
25497 \end_layout
25498
25499 \end_inset
25500
25501  and 
25502 \begin_inset Flex Code
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506 .tgo
25507 \end_layout
25508
25509 \end_inset
25510
25511 ), use something like 
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 "*.{obj,tgo}"
25517 \end_layout
25518
25519 \end_inset
25520
25521 .
25522  This command must occur exactly once.
25523 \end_layout
25524
25525 \begin_layout Description
25526 \begin_inset Flex Code
25527 status collapsed
25528
25529 \begin_layout Plain Layout
25530 GuiName
25531 \begin_inset space ~
25532 \end_inset
25533
25534 <guiname>
25535 \end_layout
25536
25537 \end_inset
25538
25539  The text that is displayed on the button.
25540  This command must occur exactly once.
25541 \end_layout
25542
25543 \begin_layout Description
25544 \begin_inset Flex Code
25545 status collapsed
25546
25547 \begin_layout Plain Layout
25548 HelpText
25549 \begin_inset space ~
25550 \end_inset
25551
25552 <text>
25553 \begin_inset space ~
25554 \end_inset
25555
25556 HelpTextEnd
25557 \end_layout
25558
25559 \end_inset
25560
25561  The help text that is used in the External dialog.
25562  Provide enough information to explain to the user just what the template
25563  can provide him with.
25564  This command must occur exactly once.
25565 \end_layout
25566
25567 \begin_layout Description
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572 InputFormat
25573 \begin_inset space ~
25574 \end_inset
25575
25576 <format>
25577 \end_layout
25578
25579 \end_inset
25580
25581  The file format of the original file.
25582  This must be the name of a format that is known to \SpecialChar LyX
25583  (see 
25584 \begin_inset CommandInset ref
25585 LatexCommand ref
25586 reference "sec:Formats"
25587
25588 \end_inset
25589
25590 ).
25591  Use 
25592 \begin_inset Quotes eld
25593 \end_inset
25594
25595
25596 \begin_inset Flex Code
25597 status collapsed
25598
25599 \begin_layout Plain Layout
25600 *
25601 \end_layout
25602
25603 \end_inset
25604
25605
25606 \begin_inset Quotes erd
25607 \end_inset
25608
25609  if the template can handle original files of more than one format.
25610  \SpecialChar LyX
25611  will attempt to interrogate the file itself in order to deduce its format
25612  in this case.
25613  This command must occur exactly once.
25614 \end_layout
25615
25616 \begin_layout Description
25617 \begin_inset Flex Code
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 Template
25622 \begin_inset space ~
25623 \end_inset
25624
25625 <id>
25626 \end_layout
25627
25628 \end_inset
25629
25630  A unique name for the template.
25631  It must not contain substitution macros (see below).
25632 \end_layout
25633
25634 \begin_layout Description
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 Transform
25640 \begin_inset space ~
25641 \end_inset
25642
25643 Rotate|Resize|Clip|Extra
25644 \end_layout
25645
25646 \end_inset
25647
25648  This command specifies which transformations are supported by this template.
25649  It may occur zero or more times.
25650  This command enables the corresponding tabs in the external dialog.
25651  Each 
25652 \begin_inset Flex Code
25653 status collapsed
25654
25655 \begin_layout Plain Layout
25656 Transform
25657 \end_layout
25658
25659 \end_inset
25660
25661  command must have either a corresponding 
25662 \begin_inset Flex Code
25663 status collapsed
25664
25665 \begin_layout Plain Layout
25666 TransformCommand
25667 \end_layout
25668
25669 \end_inset
25670
25671  or a 
25672 \begin_inset Flex Code
25673 status collapsed
25674
25675 \begin_layout Plain Layout
25676 TransformOption
25677 \end_layout
25678
25679 \end_inset
25680
25681  command in the 
25682 \begin_inset Flex Code
25683 status collapsed
25684
25685 \begin_layout Plain Layout
25686 Format
25687 \end_layout
25688
25689 \end_inset
25690
25691  section.
25692  Otherwise the transformation will not be supported by that format.
25693 \end_layout
25694
25695 \begin_layout Subsection
25696 The Format section
25697 \end_layout
25698
25699 \begin_layout Description
25700 \begin_inset Flex Code
25701 status collapsed
25702
25703 \begin_layout Plain Layout
25704 Format
25705 \begin_inset space ~
25706 \end_inset
25707
25708 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25709 \end_layout
25710
25711 \end_inset
25712
25713  The primary document file format that this format definition is for.
25714  Not every template has a sensible representation in all document file formats.
25715  Please define nevertheless a 
25716 \begin_inset Flex Code
25717 status collapsed
25718
25719 \begin_layout Plain Layout
25720 Format
25721 \end_layout
25722
25723 \end_inset
25724
25725  section for all templates.
25726  Use a dummy text when no representation is available.
25727  Then you can at least see a reference to the external material in the exported
25728  document.
25729 \end_layout
25730
25731 \begin_layout Description
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 Option
25737 \begin_inset space ~
25738 \end_inset
25739
25740 <name>
25741 \begin_inset space ~
25742 \end_inset
25743
25744 <value>
25745 \end_layout
25746
25747 \end_inset
25748
25749  This command defines an additional macro 
25750 \begin_inset Flex Code
25751 status collapsed
25752
25753 \begin_layout Plain Layout
25754 $$<name>
25755 \end_layout
25756
25757 \end_inset
25758
25759  for substitution in 
25760 \begin_inset Flex Code
25761 status collapsed
25762
25763 \begin_layout Plain Layout
25764 Product
25765 \end_layout
25766
25767 \end_inset
25768
25769 .
25770  
25771 \begin_inset Flex Code
25772 status collapsed
25773
25774 \begin_layout Plain Layout
25775 <value>
25776 \end_layout
25777
25778 \end_inset
25779
25780  itself may contain substitution macros.
25781  The advantage over using 
25782 \begin_inset Flex Code
25783 status collapsed
25784
25785 \begin_layout Plain Layout
25786 <value>
25787 \end_layout
25788
25789 \end_inset
25790
25791  directly in 
25792 \begin_inset Flex Code
25793 status collapsed
25794
25795 \begin_layout Plain Layout
25796 Product
25797 \end_layout
25798
25799 \end_inset
25800
25801  is that the substituted value of 
25802 \begin_inset Flex Code
25803 status collapsed
25804
25805 \begin_layout Plain Layout
25806 $$<name>
25807 \end_layout
25808
25809 \end_inset
25810
25811  is sanitized so that it is a valid optional argument in the document format.
25812  This command may occur zero or more times.
25813 \end_layout
25814
25815 \begin_layout Description
25816 \begin_inset Flex Code
25817 status collapsed
25818
25819 \begin_layout Plain Layout
25820 Product
25821 \begin_inset space ~
25822 \end_inset
25823
25824 <text>
25825 \end_layout
25826
25827 \end_inset
25828
25829  The text that is inserted in the exported document.
25830  This is actually the most important command and can be quite complex.
25831  This command must occur exactly once.
25832 \end_layout
25833
25834 \begin_layout Description
25835 \begin_inset Flex Code
25836 status collapsed
25837
25838 \begin_layout Plain Layout
25839 Preamble
25840 \begin_inset space ~
25841 \end_inset
25842
25843 <name>
25844 \end_layout
25845
25846 \end_inset
25847
25848  This command specifies a preamble snippet that will be included in the
25849  \SpecialChar LaTeX
25850  preamble.
25851  It has to be defined using 
25852 \begin_inset Flex Code
25853 status collapsed
25854
25855 \begin_layout Plain Layout
25856 PreambleDef
25857 \end_layout
25858
25859 \end_inset
25860
25861  \SpecialChar ldots
25862  
25863 \begin_inset Flex Code
25864 status collapsed
25865
25866 \begin_layout Plain Layout
25867 PreambleDefEnd
25868 \end_layout
25869
25870 \end_inset
25871
25872 .
25873  This command may occur zero or more times.
25874 \end_layout
25875
25876 \begin_layout Description
25877 \begin_inset Flex Code
25878 status collapsed
25879
25880 \begin_layout Plain Layout
25881 ReferencedFile
25882 \begin_inset space ~
25883 \end_inset
25884
25885 <format>
25886 \begin_inset space ~
25887 \end_inset
25888
25889 <filename>
25890 \end_layout
25891
25892 \end_inset
25893
25894  This command denotes files that are created by the conversion process and
25895  are needed for a particular export format.
25896  If the filename is relative, it is interpreted relative to the master document.
25897  This command may be given zero or more times.
25898 \end_layout
25899
25900 \begin_layout Description
25901 \begin_inset Flex Code
25902 status collapsed
25903
25904 \begin_layout Plain Layout
25905 Requirement
25906 \begin_inset space ~
25907 \end_inset
25908
25909 <package>
25910 \end_layout
25911
25912 \end_inset
25913
25914  The name of a required \SpecialChar LaTeX
25915  package.
25916  The package is included via 
25917 \begin_inset Flex Code
25918 status collapsed
25919
25920 \begin_layout Plain Layout
25921
25922 \backslash
25923 usepackage{}
25924 \end_layout
25925
25926 \end_inset
25927
25928  in the \SpecialChar LaTeX
25929  preamble.
25930  This command may occur zero or more times.
25931 \end_layout
25932
25933 \begin_layout Description
25934 \begin_inset Flex Code
25935 status collapsed
25936
25937 \begin_layout Plain Layout
25938 TransformCommand
25939 \begin_inset space ~
25940 \end_inset
25941
25942 Rotate
25943 \begin_inset space ~
25944 \end_inset
25945
25946 RotationLatexCommand
25947 \end_layout
25948
25949 \end_inset
25950
25951  This command specifies that the built in \SpecialChar LaTeX
25952  command should be used for rotation.
25953  This command may occur once or not at all.
25954 \end_layout
25955
25956 \begin_layout Description
25957 \begin_inset Flex Code
25958 status collapsed
25959
25960 \begin_layout Plain Layout
25961 TransformCommand
25962 \begin_inset space ~
25963 \end_inset
25964
25965 Resize
25966 \begin_inset space ~
25967 \end_inset
25968
25969 ResizeLatexCommand
25970 \end_layout
25971
25972 \end_inset
25973
25974  This command specifies that the built in \SpecialChar LaTeX
25975  command should be used for resizing.
25976  This command may occur once or not at all.
25977 \end_layout
25978
25979 \begin_layout Description
25980 \begin_inset Flex Code
25981 status collapsed
25982
25983 \begin_layout Plain Layout
25984 TransformOption
25985 \begin_inset space ~
25986 \end_inset
25987
25988 Rotate
25989 \begin_inset space ~
25990 \end_inset
25991
25992 RotationLatexOption
25993 \end_layout
25994
25995 \end_inset
25996
25997  This command specifies that rotation is done via an optional argument.
25998  This command may occur once or not at all.
25999 \end_layout
26000
26001 \begin_layout Description
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 TransformOption
26007 \begin_inset space ~
26008 \end_inset
26009
26010 Resize
26011 \begin_inset space ~
26012 \end_inset
26013
26014 ResizeLatexOption
26015 \end_layout
26016
26017 \end_inset
26018
26019  This command specifies that resizing is done via an optional argument.
26020  This command may occur once or not at all.
26021 \end_layout
26022
26023 \begin_layout Description
26024 \begin_inset Flex Code
26025 status collapsed
26026
26027 \begin_layout Plain Layout
26028 TransformOption
26029 \begin_inset space ~
26030 \end_inset
26031
26032 Clip
26033 \begin_inset space ~
26034 \end_inset
26035
26036 ClipLatexOption
26037 \end_layout
26038
26039 \end_inset
26040
26041  This command specifies that clipping is done via an optional argument.
26042  This command may occur once or not at all.
26043 \end_layout
26044
26045 \begin_layout Description
26046 \begin_inset Flex Code
26047 status collapsed
26048
26049 \begin_layout Plain Layout
26050 TransformOption
26051 \begin_inset space ~
26052 \end_inset
26053
26054 Extra
26055 \begin_inset space ~
26056 \end_inset
26057
26058 ExtraLatexOption
26059 \end_layout
26060
26061 \end_inset
26062
26063  This command specifies that an extra optional argument is used.
26064  This command may occur once or not at all.
26065 \end_layout
26066
26067 \begin_layout Description
26068 \begin_inset Flex Code
26069 status collapsed
26070
26071 \begin_layout Plain Layout
26072 UpdateFormat
26073 \begin_inset space ~
26074 \end_inset
26075
26076 <format>
26077 \end_layout
26078
26079 \end_inset
26080
26081  The file format of the converted file.
26082  This must be the name of a format that is known to \SpecialChar LyX
26083  (see the 
26084 \begin_inset Flex Noun
26085 status collapsed
26086
26087 \begin_layout Plain Layout
26088 Tools\SpecialChar menuseparator
26089 Preferences\SpecialChar menuseparator
26090 File Handling\SpecialChar menuseparator
26091 File Format
26092 \end_layout
26093
26094 \end_inset
26095
26096  dialog).
26097  This command must occur exactly once.
26098  If the resulting file format is PDF, you need to specify the format 
26099 \begin_inset Flex Code
26100 status collapsed
26101
26102 \begin_layout Plain Layout
26103 pdf6
26104 \end_layout
26105
26106 \end_inset
26107
26108 .
26109  This is the PDF format used for including graphics.
26110  The other defined PDF formats are for document export.
26111 \end_layout
26112
26113 \begin_layout Description
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 UpdateResult
26119 \begin_inset space ~
26120 \end_inset
26121
26122 <filename>
26123 \end_layout
26124
26125 \end_inset
26126
26127  The file name of the converted file.
26128  The file name must be absolute.
26129  This command must occur exactly once.
26130 \end_layout
26131
26132 \begin_layout Subsection
26133 Preamble definitions
26134 \end_layout
26135
26136 \begin_layout Standard
26137 The external template configuration file may contain additional preamble
26138  definitions enclosed by 
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 PreambleDef
26144 \end_layout
26145
26146 \end_inset
26147
26148  \SpecialChar ldots
26149  
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 PreambleDefEnd
26155 \end_layout
26156
26157 \end_inset
26158
26159 .
26160  They can be used by the templates in the 
26161 \begin_inset Flex Code
26162 status collapsed
26163
26164 \begin_layout Plain Layout
26165 Format
26166 \end_layout
26167
26168 \end_inset
26169
26170  section.
26171 \end_layout
26172
26173 \begin_layout Section
26174 The substitution mechanism
26175 \end_layout
26176
26177 \begin_layout Standard
26178 When the external material facility invokes an external program, it is done
26179  on the basis of a command defined in the template configuration file.
26180  These commands can contain various macros that are expanded before execution.
26181  Execution always take place in the directory of the containing document.
26182 \end_layout
26183
26184 \begin_layout Standard
26185 Also, whenever external material is to be displayed, the name will be produced
26186  by the substitution mechanism, and most other commands in the template
26187  definition support substitution as well.
26188 \end_layout
26189
26190 \begin_layout Standard
26191 The available macros are the following:
26192 \end_layout
26193
26194 \begin_layout Description
26195 \begin_inset Flex Code
26196 status collapsed
26197
26198 \begin_layout Plain Layout
26199 $$AbsOrRelPathMaster
26200 \end_layout
26201
26202 \end_inset
26203
26204  The file path, absolute or relative to the master \SpecialChar LyX
26205  document.
26206 \end_layout
26207
26208 \begin_layout Description
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 $$AbsOrRelPathParent
26214 \end_layout
26215
26216 \end_inset
26217
26218  The file path, absolute or relative to the \SpecialChar LyX
26219  document.
26220 \end_layout
26221
26222 \begin_layout Description
26223 \begin_inset Flex Code
26224 status collapsed
26225
26226 \begin_layout Plain Layout
26227 $$AbsPath
26228 \end_layout
26229
26230 \end_inset
26231
26232  The absolute file path.
26233 \end_layout
26234
26235 \begin_layout Description
26236 \begin_inset Flex Code
26237 status collapsed
26238
26239 \begin_layout Plain Layout
26240 $$Basename
26241 \end_layout
26242
26243 \end_inset
26244
26245  The filename without path and without the extension.
26246 \end_layout
26247
26248 \begin_layout Description
26249 \begin_inset Flex Code
26250 status collapsed
26251
26252 \begin_layout Plain Layout
26253 $$Contents(
26254 \begin_inset Quotes eld
26255 \end_inset
26256
26257 filename.ext
26258 \begin_inset Quotes erd
26259 \end_inset
26260
26261 )
26262 \end_layout
26263
26264 \end_inset
26265
26266  This macro will expand to the contents of the file with the name 
26267 \begin_inset Flex Code
26268 status collapsed
26269
26270 \begin_layout Plain Layout
26271 filename.ext
26272 \end_layout
26273
26274 \end_inset
26275
26276 .
26277 \end_layout
26278
26279 \begin_layout Description
26280 \begin_inset Flex Code
26281 status collapsed
26282
26283 \begin_layout Plain Layout
26284 $$Extension
26285 \end_layout
26286
26287 \end_inset
26288
26289  The file extension (including the dot).
26290 \end_layout
26291
26292 \begin_layout Description
26293 \begin_inset Flex Code
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 $$pngOrjpg
26298 \end_layout
26299
26300 \end_inset
26301
26302  This will be the string 
26303 \begin_inset Quotes eld
26304 \end_inset
26305
26306 jpg
26307 \begin_inset Quotes erd
26308 \end_inset
26309
26310  if the file is in JPEG format, otherwise it will be the string 
26311 \begin_inset Quotes eld
26312 \end_inset
26313
26314 png
26315 \begin_inset Quotes erd
26316 \end_inset
26317
26318 .
26319  This is useful to avoid uneeded conversions for output formats that support
26320  both PNG and JPEG fomats.
26321  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26322  output
26323  format.
26324 \end_layout
26325
26326 \begin_layout Description
26327 \begin_inset Flex Code
26328 status collapsed
26329
26330 \begin_layout Plain Layout
26331 $$FName
26332 \end_layout
26333
26334 \end_inset
26335
26336  The filename of the file specified in the external material dialog.
26337  This is either an absolute name, or it is relative to the \SpecialChar LyX
26338  document.
26339 \end_layout
26340
26341 \begin_layout Description
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 $$FPath
26347 \end_layout
26348
26349 \end_inset
26350
26351  The path part of 
26352 \begin_inset Flex Code
26353 status collapsed
26354
26355 \begin_layout Plain Layout
26356 $$FName
26357 \end_layout
26358
26359 \end_inset
26360
26361  (absolute name or relative to the \SpecialChar LyX
26362  document).
26363 \end_layout
26364
26365 \begin_layout Description
26366 \begin_inset Flex Code
26367 status collapsed
26368
26369 \begin_layout Plain Layout
26370 $$RelPathMaster
26371 \end_layout
26372
26373 \end_inset
26374
26375  The file path, relative to the master \SpecialChar LyX
26376  document.
26377 \end_layout
26378
26379 \begin_layout Description
26380 \begin_inset Flex Code
26381 status collapsed
26382
26383 \begin_layout Plain Layout
26384 $$RelPathParent
26385 \end_layout
26386
26387 \end_inset
26388
26389  The file path, relative to the \SpecialChar LyX
26390  document.
26391 \end_layout
26392
26393 \begin_layout Description
26394 \begin_inset Flex Code
26395 status collapsed
26396
26397 \begin_layout Plain Layout
26398 $$Sysdir
26399 \end_layout
26400
26401 \end_inset
26402
26403  This macro will expand to the absolute path of the system directory.
26404  This is typically used to point to the various helper scripts that are
26405  bundled with \SpecialChar LyX
26406 .
26407 \end_layout
26408
26409 \begin_layout Description
26410 \begin_inset Flex Code
26411 status collapsed
26412
26413 \begin_layout Plain Layout
26414 $$Tempname
26415 \end_layout
26416
26417 \end_inset
26418
26419  A name and full path to a temporary file which will be automatically deleted
26420  whenever the containing document is closed, or the external material insertion
26421  deleted.
26422 \end_layout
26423
26424 \begin_layout Standard
26425 All path macros contain a trailing directory separator, so you can construct
26426  e.
26427 \begin_inset space \thinspace{}
26428 \end_inset
26429
26430 g.
26431 \begin_inset space \space{}
26432 \end_inset
26433
26434 the absolute filename with 
26435 \begin_inset Flex Code
26436 status collapsed
26437
26438 \begin_layout Plain Layout
26439 $$AbsPath$$Basename$$Extension
26440 \end_layout
26441
26442 \end_inset
26443
26444 .
26445 \end_layout
26446
26447 \begin_layout Standard
26448 The macros above are substituted in all commands unless otherwise noted.
26449  The command 
26450 \begin_inset Flex Code
26451 status collapsed
26452
26453 \begin_layout Plain Layout
26454 Product
26455 \end_layout
26456
26457 \end_inset
26458
26459  supports additionally the following substitutions if they are enabled by
26460  the 
26461 \begin_inset Flex Code
26462 status collapsed
26463
26464 \begin_layout Plain Layout
26465 Transform
26466 \end_layout
26467
26468 \end_inset
26469
26470  and 
26471 \begin_inset Flex Code
26472 status collapsed
26473
26474 \begin_layout Plain Layout
26475 TransformCommand
26476 \end_layout
26477
26478 \end_inset
26479
26480  commands:
26481 \end_layout
26482
26483 \begin_layout Description
26484 \begin_inset Flex Code
26485 status collapsed
26486
26487 \begin_layout Plain Layout
26488 $$ResizeFront
26489 \end_layout
26490
26491 \end_inset
26492
26493  The front part of the resize command.
26494 \end_layout
26495
26496 \begin_layout Description
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 $$ResizeBack
26502 \end_layout
26503
26504 \end_inset
26505
26506  The back part of the resize command.
26507 \end_layout
26508
26509 \begin_layout Description
26510 \begin_inset Flex Code
26511 status collapsed
26512
26513 \begin_layout Plain Layout
26514 $$RotateFront
26515 \end_layout
26516
26517 \end_inset
26518
26519  The front part of the rotation command.
26520 \end_layout
26521
26522 \begin_layout Description
26523 \begin_inset Flex Code
26524 status collapsed
26525
26526 \begin_layout Plain Layout
26527 $$RotateBack
26528 \end_layout
26529
26530 \end_inset
26531
26532  The back part of the rotation command.
26533 \end_layout
26534
26535 \begin_layout Standard
26536 The value string of the 
26537 \begin_inset Flex Code
26538 status collapsed
26539
26540 \begin_layout Plain Layout
26541 Option
26542 \end_layout
26543
26544 \end_inset
26545
26546  command supports additionally the following substitutions if they are enabled
26547  by the 
26548 \begin_inset Flex Code
26549 status collapsed
26550
26551 \begin_layout Plain Layout
26552 Transform
26553 \end_layout
26554
26555 \end_inset
26556
26557  and 
26558 \begin_inset Flex Code
26559 status collapsed
26560
26561 \begin_layout Plain Layout
26562 TransformOption
26563 \end_layout
26564
26565 \end_inset
26566
26567  commands:
26568 \end_layout
26569
26570 \begin_layout Description
26571 \begin_inset Flex Code
26572 status collapsed
26573
26574 \begin_layout Plain Layout
26575 $$Clip
26576 \end_layout
26577
26578 \end_inset
26579
26580  The clip option.
26581 \end_layout
26582
26583 \begin_layout Description
26584 \begin_inset Flex Code
26585 status collapsed
26586
26587 \begin_layout Plain Layout
26588 $$Extra
26589 \end_layout
26590
26591 \end_inset
26592
26593  The extra option.
26594 \end_layout
26595
26596 \begin_layout Description
26597 \begin_inset Flex Code
26598 status collapsed
26599
26600 \begin_layout Plain Layout
26601 $$Resize
26602 \end_layout
26603
26604 \end_inset
26605
26606  The resize option.
26607 \end_layout
26608
26609 \begin_layout Description
26610 \begin_inset Flex Code
26611 status collapsed
26612
26613 \begin_layout Plain Layout
26614 $$Rotate
26615 \end_layout
26616
26617 \end_inset
26618
26619  The rotation option.
26620 \end_layout
26621
26622 \begin_layout Standard
26623 You may ask why there are so many path macros.
26624  There are mainly two reasons:
26625 \end_layout
26626
26627 \begin_layout Enumerate
26628 Relative and absolute file names should remain relative or absolute, respectivel
26629 y.
26630  Users may have reasons to prefer either form.
26631  Relative names are useful for portable documents that should work on different
26632  machines, for example.
26633  Absolute names may be required by some programs.
26634 \end_layout
26635
26636 \begin_layout Enumerate
26637 \SpecialChar LaTeX
26638  treats relative file names differently than \SpecialChar LyX
26639  and other programs in nested
26640  included files.
26641  For \SpecialChar LyX
26642 , a relative file name is always relative to the document that contains
26643  the file name.
26644  For \SpecialChar LaTeX
26645 , it is always relative to the master document.
26646  These two definitions are identical if you have only one document, but
26647  differ if you have a master document that includes part documents.
26648  That means that relative filenames must be transformed when presented to
26649  \SpecialChar LaTeX
26650 .
26651  Fortunately \SpecialChar LyX
26652  does this automatically for you if you choose the right macros.
26653 \end_layout
26654
26655 \begin_layout Standard
26656 So which path macro should be used in new template definitions? The rule
26657  is not difficult:
26658 \end_layout
26659
26660 \begin_layout Itemize
26661 Use 
26662 \begin_inset Flex Code
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666 $$AbsPath
26667 \end_layout
26668
26669 \end_inset
26670
26671  if an absolute path is required.
26672 \end_layout
26673
26674 \begin_layout Itemize
26675 Use 
26676 \begin_inset Flex Code
26677 status collapsed
26678
26679 \begin_layout Plain Layout
26680 $$AbsOrRelPathMaster
26681 \end_layout
26682
26683 \end_inset
26684
26685  if the substituted string is some kind of \SpecialChar LaTeX
26686  input.
26687 \end_layout
26688
26689 \begin_layout Itemize
26690 Else use 
26691 \begin_inset Flex Code
26692 status collapsed
26693
26694 \begin_layout Plain Layout
26695 $$AbsOrRelPathParent
26696 \end_layout
26697
26698 \end_inset
26699
26700  in order to preserve the user's choice.
26701 \end_layout
26702
26703 \begin_layout Standard
26704 There are special cases where this rule does not work and e.
26705 \begin_inset space \thinspace{}
26706 \end_inset
26707
26708 g.
26709 \begin_inset space \space{}
26710 \end_inset
26711
26712 relative names are needed, but normally it will work just fine.
26713  One example for such a case is the command 
26714 \begin_inset Flex Code
26715 status collapsed
26716
26717 \begin_layout Plain Layout
26718 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26719 \end_layout
26720
26721 \end_inset
26722
26723  in the XFig template above: We can't use the absolute name because the
26724  copier for 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 .pstex_t
26730 \end_layout
26731
26732 \end_inset
26733
26734  files needs the relative name in order to rewrite the file content.
26735 \end_layout
26736
26737 \begin_layout Section
26738 Security discussion
26739 \begin_inset CommandInset label
26740 LatexCommand label
26741 name "sec:Security-discussion"
26742
26743 \end_inset
26744
26745
26746 \end_layout
26747
26748 \begin_layout Standard
26749 The external material feature interfaces with a lot of external programs
26750  and does so automatically, so we have to consider the security implications
26751  of this.
26752  In particular, since you have the option of including your own filenames
26753  and/or parameter strings and those are expanded into a command, it seems
26754  that it would be possible to create a malicious document which executes
26755  arbitrary commands when a user views or prints the document.
26756  This is something we definitely want to avoid.
26757 \end_layout
26758
26759 \begin_layout Standard
26760 However, since the external program commands are specified in the template
26761  configuration file only, there are no security issues if \SpecialChar LyX
26762  is properly configure
26763 d with safe templates only.
26764  This is so because the external programs are invoked with the 
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 execvp
26770 \end_layout
26771
26772 \end_inset
26773
26774 -system call rather than the 
26775 \begin_inset Flex Code
26776 status collapsed
26777
26778 \begin_layout Plain Layout
26779 system
26780 \end_layout
26781
26782 \end_inset
26783
26784  system-call, so it's not possible to execute arbitrary commands from the
26785  filename or parameter section via the shell.
26786 \end_layout
26787
26788 \begin_layout Standard
26789 This also implies that you are restricted in what command strings you can
26790  use in the external material templates.
26791  In particular, pipes and redirection are not readily available.
26792  This has to be so if \SpecialChar LyX
26793  should remain safe.
26794  If you want to use some of the shell features, you should write a safe
26795  script to do this in a controlled manner, and then invoke the script from
26796  the command string.
26797  
26798 \end_layout
26799
26800 \begin_layout Standard
26801 It is possible to design a template that interacts directly with the shell,
26802  but since this would allow a malicious user to execute arbitrary commands
26803  by writing clever filenames and/or parameters, we generally recommend that
26804  you only use safe scripts that work with the 
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 execvp
26810 \end_layout
26811
26812 \end_inset
26813
26814  system call in a controlled manner.
26815  Of course, for use in a controlled environment, it can be tempting to just
26816  fall back to use ordinary shell scripts.
26817  If you do so, be aware that you 
26818 \emph on
26819 will
26820 \emph default
26821  provide an easily exploitable security hole in your system.
26822  Of course it stands to reason that such unsafe templates will never be
26823  included in the standard \SpecialChar LyX
26824  distribution, although we do encourage people
26825  to submit new templates in the open source tradition.
26826  But \SpecialChar LyX
26827  as shipped from the official distribution channels will never have
26828  unsafe templates.
26829 \end_layout
26830
26831 \begin_layout Standard
26832 Including external material provides a lot of power, and you have to be
26833  careful not to introduce security hazards with this power.
26834  A subtle error in a single line in an innocent looking script can open
26835  the door to huge security problems.
26836  So if you do not fully understand the issues, we recommend that you consult
26837  a knowledgeable security professional or the \SpecialChar LyX
26838  development team if you have
26839  any questions about whether a given template is safe or not.
26840  And do this before you use it in an uncontrolled environment.
26841 \end_layout
26842
26843 \begin_layout Chapter
26844 \start_of_appendix
26845 List of supported \SpecialChar LyX
26846  functions to be used in layouts
26847 \begin_inset CommandInset label
26848 LatexCommand label
26849 name "chap:List-of-functions"
26850
26851 \end_inset
26852
26853
26854 \end_layout
26855
26856 \begin_layout Standard
26857 \align center
26858 \begin_inset Tabular
26859 <lyxtabular version="3" rows="11" columns="8">
26860 <features tabularvalignment="middle">
26861 <column alignment="left" valignment="top">
26862 <column alignment="left" valignment="top">
26863 <column alignment="left" valignment="top">
26864 <column alignment="left" valignment="top">
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 <row>
26870 <cell alignment="left" valignment="top" usebox="none">
26871 \begin_inset Text
26872
26873 \begin_layout Plain Layout
26874 accents
26875 \end_layout
26876
26877 \end_inset
26878 </cell>
26879 <cell alignment="left" valignment="top" usebox="none">
26880 \begin_inset Text
26881
26882 \begin_layout Plain Layout
26883 booktabs
26884 \end_layout
26885
26886 \end_inset
26887 </cell>
26888 <cell alignment="left" valignment="top" usebox="none">
26889 \begin_inset Text
26890
26891 \begin_layout Plain Layout
26892 feyn
26893 \end_layout
26894
26895 \end_inset
26896 </cell>
26897 <cell alignment="left" valignment="top" usebox="none">
26898 \begin_inset Text
26899
26900 \begin_layout Plain Layout
26901 listings
26902 \end_layout
26903
26904 \end_inset
26905 </cell>
26906 <cell alignment="center" valignment="top" usebox="none">
26907 \begin_inset Text
26908
26909 \begin_layout Plain Layout
26910 natbib
26911 \end_layout
26912
26913 \end_inset
26914 </cell>
26915 <cell alignment="center" valignment="top" usebox="none">
26916 \begin_inset Text
26917
26918 \begin_layout Plain Layout
26919 rotfloat
26920 \end_layout
26921
26922 \end_inset
26923 </cell>
26924 <cell alignment="center" valignment="top" usebox="none">
26925 \begin_inset Text
26926
26927 \begin_layout Plain Layout
26928 tfrupee
26929 \end_layout
26930
26931 \end_inset
26932 </cell>
26933 <cell alignment="center" valignment="top" usebox="none">
26934 \begin_inset Text
26935
26936 \begin_layout Plain Layout
26937 wasysym
26938 \end_layout
26939
26940 \end_inset
26941 </cell>
26942 </row>
26943 <row>
26944 <cell alignment="left" valignment="top" usebox="none">
26945 \begin_inset Text
26946
26947 \begin_layout Plain Layout
26948 amsbsy
26949 \end_layout
26950
26951 \end_inset
26952 </cell>
26953 <cell alignment="left" valignment="top" usebox="none">
26954 \begin_inset Text
26955
26956 \begin_layout Plain Layout
26957 calc
26958 \end_layout
26959
26960 \end_inset
26961 </cell>
26962 <cell alignment="left" valignment="top" usebox="none">
26963 \begin_inset Text
26964
26965 \begin_layout Plain Layout
26966 fixltx2e
26967 \end_layout
26968
26969 \end_inset
26970 </cell>
26971 <cell alignment="left" valignment="top" usebox="none">
26972 \begin_inset Text
26973
26974 \begin_layout Plain Layout
26975 longtable
26976 \end_layout
26977
26978 \end_inset
26979 </cell>
26980 <cell alignment="center" valignment="top" usebox="none">
26981 \begin_inset Text
26982
26983 \begin_layout Plain Layout
26984 nomencl
26985 \end_layout
26986
26987 \end_inset
26988 </cell>
26989 <cell alignment="center" valignment="top" usebox="none">
26990 \begin_inset Text
26991
26992 \begin_layout Plain Layout
26993 rsphrase
26994 \end_layout
26995
26996 \end_inset
26997 </cell>
26998 <cell alignment="center" valignment="top" usebox="none">
26999 \begin_inset Text
27000
27001 \begin_layout Plain Layout
27002 tipa
27003 \end_layout
27004
27005 \end_inset
27006 </cell>
27007 <cell alignment="center" valignment="top" usebox="none">
27008 \begin_inset Text
27009
27010 \begin_layout Plain Layout
27011 wrapfig
27012 \end_layout
27013
27014 \end_inset
27015 </cell>
27016 </row>
27017 <row>
27018 <cell alignment="left" valignment="top" usebox="none">
27019 \begin_inset Text
27020
27021 \begin_layout Plain Layout
27022 amscd
27023 \end_layout
27024
27025 \end_inset
27026 </cell>
27027 <cell alignment="left" valignment="top" usebox="none">
27028 \begin_inset Text
27029
27030 \begin_layout Plain Layout
27031 CJK
27032 \end_layout
27033
27034 \end_inset
27035 </cell>
27036 <cell alignment="left" valignment="top" usebox="none">
27037 \begin_inset Text
27038
27039 \begin_layout Plain Layout
27040 float
27041 \end_layout
27042
27043 \end_inset
27044 </cell>
27045 <cell alignment="left" valignment="top" usebox="none">
27046 \begin_inset Text
27047
27048 \begin_layout Plain Layout
27049 lyxskak
27050 \end_layout
27051
27052 \end_inset
27053 </cell>
27054 <cell alignment="center" valignment="top" usebox="none">
27055 \begin_inset Text
27056
27057 \begin_layout Plain Layout
27058 pdfcolmk
27059 \end_layout
27060
27061 \end_inset
27062 </cell>
27063 <cell alignment="center" valignment="top" usebox="none">
27064 \begin_inset Text
27065
27066 \begin_layout Plain Layout
27067 setspace
27068 \end_layout
27069
27070 \end_inset
27071 </cell>
27072 <cell alignment="center" valignment="top" usebox="none">
27073 \begin_inset Text
27074
27075 \begin_layout Plain Layout
27076 tipx
27077 \end_layout
27078
27079 \end_inset
27080 </cell>
27081 <cell alignment="center" valignment="top" usebox="none">
27082 \begin_inset Text
27083
27084 \begin_layout Plain Layout
27085 xargs
27086 \end_layout
27087
27088 \end_inset
27089 </cell>
27090 </row>
27091 <row>
27092 <cell alignment="left" valignment="top" usebox="none">
27093 \begin_inset Text
27094
27095 \begin_layout Plain Layout
27096 amsmath
27097 \end_layout
27098
27099 \end_inset
27100 </cell>
27101 <cell alignment="left" valignment="top" usebox="none">
27102 \begin_inset Text
27103
27104 \begin_layout Plain Layout
27105 color
27106 \end_layout
27107
27108 \end_inset
27109 </cell>
27110 <cell alignment="left" valignment="top" usebox="none">
27111 \begin_inset Text
27112
27113 \begin_layout Plain Layout
27114 framed
27115 \end_layout
27116
27117 \end_inset
27118 </cell>
27119 <cell alignment="left" valignment="top" usebox="none">
27120 \begin_inset Text
27121
27122 \begin_layout Plain Layout
27123 makeidx
27124 \end_layout
27125
27126 \end_inset
27127 </cell>
27128 <cell alignment="center" valignment="top" usebox="none">
27129 \begin_inset Text
27130
27131 \begin_layout Plain Layout
27132 pdfpages
27133 \end_layout
27134
27135 \end_inset
27136 </cell>
27137 <cell alignment="center" valignment="top" usebox="none">
27138 \begin_inset Text
27139
27140 \begin_layout Plain Layout
27141 shapepar
27142 \end_layout
27143
27144 \end_inset
27145 </cell>
27146 <cell alignment="center" valignment="top" usebox="none">
27147 \begin_inset Text
27148
27149 \begin_layout Plain Layout
27150 tone
27151 \end_layout
27152
27153 \end_inset
27154 </cell>
27155 <cell alignment="center" valignment="top" usebox="none">
27156 \begin_inset Text
27157
27158 \begin_layout Plain Layout
27159 xcolor
27160 \end_layout
27161
27162 \end_inset
27163 </cell>
27164 </row>
27165 <row>
27166 <cell alignment="left" valignment="top" usebox="none">
27167 \begin_inset Text
27168
27169 \begin_layout Plain Layout
27170 amssymb
27171 \end_layout
27172
27173 \end_inset
27174 </cell>
27175 <cell alignment="left" valignment="top" usebox="none">
27176 \begin_inset Text
27177
27178 \begin_layout Plain Layout
27179 covington
27180 \end_layout
27181
27182 \end_inset
27183 </cell>
27184 <cell alignment="left" valignment="top" usebox="none">
27185 \begin_inset Text
27186
27187 \begin_layout Plain Layout
27188 graphicx
27189 \end_layout
27190
27191 \end_inset
27192 </cell>
27193 <cell alignment="left" valignment="top" usebox="none">
27194 \begin_inset Text
27195
27196 \begin_layout Plain Layout
27197 marvosym
27198 \end_layout
27199
27200 \end_inset
27201 </cell>
27202 <cell alignment="center" valignment="top" usebox="none">
27203 \begin_inset Text
27204
27205 \begin_layout Plain Layout
27206 pifont
27207 \end_layout
27208
27209 \end_inset
27210 </cell>
27211 <cell alignment="center" valignment="top" usebox="none">
27212 \begin_inset Text
27213
27214 \begin_layout Plain Layout
27215 slashed
27216 \end_layout
27217
27218 \end_inset
27219 </cell>
27220 <cell alignment="center" valignment="top" usebox="none">
27221 \begin_inset Text
27222
27223 \begin_layout Plain Layout
27224 txfonts
27225 \end_layout
27226
27227 \end_inset
27228 </cell>
27229 <cell alignment="center" valignment="top" usebox="none">
27230 \begin_inset Text
27231
27232 \begin_layout Plain Layout
27233 xy
27234 \end_layout
27235
27236 \end_inset
27237 </cell>
27238 </row>
27239 <row>
27240 <cell alignment="left" valignment="top" usebox="none">
27241 \begin_inset Text
27242
27243 \begin_layout Plain Layout
27244 amstext
27245 \end_layout
27246
27247 \end_inset
27248 </cell>
27249 <cell alignment="left" valignment="top" usebox="none">
27250 \begin_inset Text
27251
27252 \begin_layout Plain Layout
27253 csquotes
27254 \end_layout
27255
27256 \end_inset
27257 </cell>
27258 <cell alignment="left" valignment="top" usebox="none">
27259 \begin_inset Text
27260
27261 \begin_layout Plain Layout
27262 hhline
27263 \end_layout
27264
27265 \end_inset
27266 </cell>
27267 <cell alignment="left" valignment="top" usebox="none">
27268 \begin_inset Text
27269
27270 \begin_layout Plain Layout
27271 mathdesign
27272 \end_layout
27273
27274 \end_inset
27275 </cell>
27276 <cell alignment="center" valignment="top" usebox="none">
27277 \begin_inset Text
27278
27279 \begin_layout Plain Layout
27280 pmboxdraw
27281 \end_layout
27282
27283 \end_inset
27284 </cell>
27285 <cell alignment="center" valignment="top" usebox="none">
27286 \begin_inset Text
27287
27288 \begin_layout Plain Layout
27289 soul
27290 \end_layout
27291
27292 \end_inset
27293 </cell>
27294 <cell alignment="center" valignment="top" usebox="none">
27295 \begin_inset Text
27296
27297 \begin_layout Plain Layout
27298 ulem
27299 \end_layout
27300
27301 \end_inset
27302 </cell>
27303 <cell alignment="center" valignment="top" usebox="none">
27304 \begin_inset Text
27305
27306 \begin_layout Plain Layout
27307 yhmath
27308 \end_layout
27309
27310 \end_inset
27311 </cell>
27312 </row>
27313 <row>
27314 <cell alignment="left" valignment="top" usebox="none">
27315 \begin_inset Text
27316
27317 \begin_layout Plain Layout
27318 amsthm
27319 \end_layout
27320
27321 \end_inset
27322 </cell>
27323 <cell alignment="left" valignment="top" usebox="none">
27324 \begin_inset Text
27325
27326 \begin_layout Plain Layout
27327 dvipost
27328 \end_layout
27329
27330 \end_inset
27331 </cell>
27332 <cell alignment="left" valignment="top" usebox="none">
27333 \begin_inset Text
27334
27335 \begin_layout Plain Layout
27336 hyperref
27337 \end_layout
27338
27339 \end_inset
27340 </cell>
27341 <cell alignment="left" valignment="top" usebox="none">
27342 \begin_inset Text
27343
27344 \begin_layout Plain Layout
27345 mathdots
27346 \end_layout
27347
27348 \end_inset
27349 </cell>
27350 <cell alignment="center" valignment="top" usebox="none">
27351 \begin_inset Text
27352
27353 \begin_layout Plain Layout
27354 polyglossia
27355 \end_layout
27356
27357 \end_inset
27358 </cell>
27359 <cell alignment="center" valignment="top" usebox="none">
27360 \begin_inset Text
27361
27362 \begin_layout Plain Layout
27363 splitidx
27364 \end_layout
27365
27366 \end_inset
27367 </cell>
27368 <cell alignment="center" valignment="top" usebox="none">
27369 \begin_inset Text
27370
27371 \begin_layout Plain Layout
27372 undertilde
27373 \end_layout
27374
27375 \end_inset
27376 </cell>
27377 <cell alignment="center" valignment="top" usebox="none">
27378 \begin_inset Text
27379
27380 \begin_layout Plain Layout
27381
27382 \end_layout
27383
27384 \end_inset
27385 </cell>
27386 </row>
27387 <row>
27388 <cell alignment="left" valignment="top" usebox="none">
27389 \begin_inset Text
27390
27391 \begin_layout Plain Layout
27392 array
27393 \end_layout
27394
27395 \end_inset
27396 </cell>
27397 <cell alignment="left" valignment="top" usebox="none">
27398 \begin_inset Text
27399
27400 \begin_layout Plain Layout
27401 endnotes
27402 \end_layout
27403
27404 \end_inset
27405 </cell>
27406 <cell alignment="left" valignment="top" usebox="none">
27407 \begin_inset Text
27408
27409 \begin_layout Plain Layout
27410 ifsym
27411 \end_layout
27412
27413 \end_inset
27414 </cell>
27415 <cell alignment="left" valignment="top" usebox="none">
27416 \begin_inset Text
27417
27418 \begin_layout Plain Layout
27419 mathrsfs
27420 \end_layout
27421
27422 \end_inset
27423 </cell>
27424 <cell alignment="center" valignment="top" usebox="none">
27425 \begin_inset Text
27426
27427 \begin_layout Plain Layout
27428 prettyref
27429 \end_layout
27430
27431 \end_inset
27432 </cell>
27433 <cell alignment="center" valignment="top" usebox="none">
27434 \begin_inset Text
27435
27436 \begin_layout Plain Layout
27437 subfig
27438 \end_layout
27439
27440 \end_inset
27441 </cell>
27442 <cell alignment="center" valignment="top" usebox="none">
27443 \begin_inset Text
27444
27445 \begin_layout Plain Layout
27446 units
27447 \end_layout
27448
27449 \end_inset
27450 </cell>
27451 <cell alignment="center" valignment="top" usebox="none">
27452 \begin_inset Text
27453
27454 \begin_layout Plain Layout
27455
27456 \end_layout
27457
27458 \end_inset
27459 </cell>
27460 </row>
27461 <row>
27462 <cell alignment="left" valignment="top" usebox="none">
27463 \begin_inset Text
27464
27465 \begin_layout Plain Layout
27466 ascii
27467 \end_layout
27468
27469 \end_inset
27470 </cell>
27471 <cell alignment="left" valignment="top" usebox="none">
27472 \begin_inset Text
27473
27474 \begin_layout Plain Layout
27475 enumitem
27476 \end_layout
27477
27478 \end_inset
27479 </cell>
27480 <cell alignment="left" valignment="top" usebox="none">
27481 \begin_inset Text
27482
27483 \begin_layout Plain Layout
27484 ifthen
27485 \end_layout
27486
27487 \end_inset
27488 </cell>
27489 <cell alignment="left" valignment="top" usebox="none">
27490 \begin_inset Text
27491
27492 \begin_layout Plain Layout
27493 mhchem
27494 \end_layout
27495
27496 \end_inset
27497 </cell>
27498 <cell alignment="center" valignment="top" usebox="none">
27499 \begin_inset Text
27500
27501 \begin_layout Plain Layout
27502 pxfonts
27503 \end_layout
27504
27505 \end_inset
27506 </cell>
27507 <cell alignment="center" valignment="top" usebox="none">
27508 \begin_inset Text
27509
27510 \begin_layout Plain Layout
27511 subscript
27512 \end_layout
27513
27514 \end_inset
27515 </cell>
27516 <cell alignment="center" valignment="top" usebox="none">
27517 \begin_inset Text
27518
27519 \begin_layout Plain Layout
27520 url
27521 \end_layout
27522
27523 \end_inset
27524 </cell>
27525 <cell alignment="center" valignment="top" usebox="none">
27526 \begin_inset Text
27527
27528 \begin_layout Plain Layout
27529
27530 \end_layout
27531
27532 \end_inset
27533 </cell>
27534 </row>
27535 <row>
27536 <cell alignment="left" valignment="top" usebox="none">
27537 \begin_inset Text
27538
27539 \begin_layout Plain Layout
27540 bbding
27541 \end_layout
27542
27543 \end_inset
27544 </cell>
27545 <cell alignment="left" valignment="top" usebox="none">
27546 \begin_inset Text
27547
27548 \begin_layout Plain Layout
27549 esint
27550 \end_layout
27551
27552 \end_inset
27553 </cell>
27554 <cell alignment="left" valignment="top" usebox="none">
27555 \begin_inset Text
27556
27557 \begin_layout Plain Layout
27558 jurabib
27559 \end_layout
27560
27561 \end_inset
27562 </cell>
27563 <cell alignment="left" valignment="top" usebox="none">
27564 \begin_inset Text
27565
27566 \begin_layout Plain Layout
27567 multicol
27568 \end_layout
27569
27570 \end_inset
27571 </cell>
27572 <cell alignment="center" valignment="top" usebox="none">
27573 \begin_inset Text
27574
27575 \begin_layout Plain Layout
27576 refstyle
27577 \end_layout
27578
27579 \end_inset
27580 </cell>
27581 <cell alignment="center" valignment="top" usebox="none">
27582 \begin_inset Text
27583
27584 \begin_layout Plain Layout
27585 textcomp
27586 \end_layout
27587
27588 \end_inset
27589 </cell>
27590 <cell alignment="center" valignment="top" usebox="none">
27591 \begin_inset Text
27592
27593 \begin_layout Plain Layout
27594 varioref
27595 \end_layout
27596
27597 \end_inset
27598 </cell>
27599 <cell alignment="center" valignment="top" usebox="none">
27600 \begin_inset Text
27601
27602 \begin_layout Plain Layout
27603
27604 \end_layout
27605
27606 \end_inset
27607 </cell>
27608 </row>
27609 <row>
27610 <cell alignment="center" valignment="top" usebox="none">
27611 \begin_inset Text
27612
27613 \begin_layout Plain Layout
27614 bm
27615 \end_layout
27616
27617 \end_inset
27618 </cell>
27619 <cell alignment="center" valignment="top" usebox="none">
27620 \begin_inset Text
27621
27622 \begin_layout Plain Layout
27623 fancybox
27624 \end_layout
27625
27626 \end_inset
27627 </cell>
27628 <cell alignment="center" valignment="top" usebox="none">
27629 \begin_inset Text
27630
27631 \begin_layout Plain Layout
27632 latexsym
27633 \end_layout
27634
27635 \end_inset
27636 </cell>
27637 <cell alignment="center" valignment="top" usebox="none">
27638 \begin_inset Text
27639
27640 \begin_layout Plain Layout
27641 multirow
27642 \end_layout
27643
27644 \end_inset
27645 </cell>
27646 <cell alignment="center" valignment="top" usebox="none">
27647 \begin_inset Text
27648
27649 \begin_layout Plain Layout
27650 rotating
27651 \end_layout
27652
27653 \end_inset
27654 </cell>
27655 <cell alignment="center" valignment="top" usebox="none">
27656 \begin_inset Text
27657
27658 \begin_layout Plain Layout
27659 textgreek
27660 \end_layout
27661
27662 \end_inset
27663 </cell>
27664 <cell alignment="center" valignment="top" usebox="none">
27665 \begin_inset Text
27666
27667 \begin_layout Plain Layout
27668 verbatim
27669 \end_layout
27670
27671 \end_inset
27672 </cell>
27673 <cell alignment="center" valignment="top" usebox="none">
27674 \begin_inset Text
27675
27676 \begin_layout Plain Layout
27677
27678 \end_layout
27679
27680 \end_inset
27681 </cell>
27682 </row>
27683 </lyxtabular>
27684
27685 \end_inset
27686
27687
27688 \end_layout
27689
27690 \begin_layout Chapter
27691 Names of available colors to be used in layouts
27692 \begin_inset CommandInset label
27693 LatexCommand label
27694 name "chap:Names-of-colors"
27695
27696 \end_inset
27697
27698
27699 \end_layout
27700
27701 \begin_layout Standard
27702 The colors listed below are the standard colors and those that you can adjust
27703  in the \SpecialChar LyX
27704  preferences.
27705 \end_layout
27706
27707 \begin_layout Section
27708 Color functions
27709 \end_layout
27710
27711 \begin_layout Standard
27712 The following are no real colors, but rather act on color definitions:
27713 \end_layout
27714
27715 \begin_layout Description
27716 ignore The color is ignored
27717 \end_layout
27718
27719 \begin_layout Description
27720 inherit The color is inherited
27721 \end_layout
27722
27723 \begin_layout Description
27724 none
27725 \family roman
27726 \series medium
27727 \shape up
27728 \size normal
27729 \emph off
27730 \bar no
27731 \strikeout off
27732 \uuline off
27733 \uwave off
27734 \noun off
27735 \color none
27736  No particular color – clear or default
27737 \end_layout
27738
27739 \begin_layout Section
27740 Static colors
27741 \end_layout
27742
27743 \begin_layout Standard
27744 These are fixed colors that cannot me customized:
27745 \end_layout
27746
27747 \begin_layout Description
27748 black
27749 \end_layout
27750
27751 \begin_layout Description
27752 white
27753 \end_layout
27754
27755 \begin_layout Description
27756 blue
27757 \end_layout
27758
27759 \begin_layout Description
27760 brown
27761 \end_layout
27762
27763 \begin_layout Description
27764 cyan
27765 \end_layout
27766
27767 \begin_layout Description
27768 darkgray
27769 \end_layout
27770
27771 \begin_layout Description
27772 gray
27773 \end_layout
27774
27775 \begin_layout Description
27776 green
27777 \end_layout
27778
27779 \begin_layout Description
27780 lightgray
27781 \end_layout
27782
27783 \begin_layout Description
27784 lime
27785 \end_layout
27786
27787 \begin_layout Description
27788 magenta
27789 \end_layout
27790
27791 \begin_layout Description
27792 olive
27793 \end_layout
27794
27795 \begin_layout Description
27796 orange
27797 \end_layout
27798
27799 \begin_layout Description
27800 pink
27801 \end_layout
27802
27803 \begin_layout Description
27804 purple
27805 \end_layout
27806
27807 \begin_layout Description
27808 red
27809 \end_layout
27810
27811 \begin_layout Description
27812 teal
27813 \end_layout
27814
27815 \begin_layout Description
27816 violet
27817 \end_layout
27818
27819 \begin_layout Description
27820 yellow
27821 \end_layout
27822
27823 \begin_layout Section
27824 Dynamic colors
27825 \end_layout
27826
27827 \begin_layout Standard
27828 These are the colors allocated to specific elements in 
27829 \begin_inset Info
27830 type  "menu"
27831 arg   "dialog-show prefs"
27832 \end_inset
27833
27834 :
27835 \end_layout
27836
27837 \begin_layout Description
27838 added_space Added space color
27839 \end_layout
27840
27841 \begin_layout Description
27842 addedtext Added text color
27843 \end_layout
27844
27845 \begin_layout Description
27846 appendix Appendix marker color
27847 \end_layout
27848
27849 \begin_layout Description
27850 background Background color
27851 \end_layout
27852
27853 \begin_layout Description
27854 bottomarea Bottom area color
27855 \end_layout
27856
27857 \begin_layout Description
27858 branchlabel Label color for branches
27859 \end_layout
27860
27861 \begin_layout Description
27862 buttonbg Color used for button background
27863 \end_layout
27864
27865 \begin_layout Description
27866 buttonframe Color for inset button frames
27867 \end_layout
27868
27869 \begin_layout Description
27870 buttonhoverbg Color used for button background under focus
27871 \end_layout
27872
27873 \begin_layout Description
27874 changebar Changebar color
27875 \end_layout
27876
27877 \begin_layout Description
27878 changedtextauthor1 Changed text color author 1
27879 \end_layout
27880
27881 \begin_layout Description
27882 changedtextauthor2 Changed text color author 2
27883 \end_layout
27884
27885 \begin_layout Description
27886 changedtextauthor3 Changed text color author 3
27887 \end_layout
27888
27889 \begin_layout Description
27890 changedtextauthor4 Changed text color author 4
27891 \end_layout
27892
27893 \begin_layout Description
27894 changedtextauthor5 Changed text color author 5
27895 \end_layout
27896
27897 \begin_layout Description
27898 collapsible Collapsible insets text color
27899 \end_layout
27900
27901 \begin_layout Description
27902 collapsibleframe Collapsible insets framecolor
27903 \end_layout
27904
27905 \begin_layout Description
27906 command Text color for command insets
27907 \end_layout
27908
27909 \begin_layout Description
27910 commandbg Background color for command insets
27911 \end_layout
27912
27913 \begin_layout Description
27914 commandframe Frame color for command insets
27915 \end_layout
27916
27917 \begin_layout Description
27918 commentbg Background color of comments
27919 \end_layout
27920
27921 \begin_layout Description
27922 commentlabel Label color for comments
27923 \end_layout
27924
27925 \begin_layout Description
27926 cursor Cursor color
27927 \end_layout
27928
27929 \begin_layout Description
27930 deletedtext Deleted text color
27931 \end_layout
27932
27933 \begin_layout Description
27934 deletedtextmodifier Deleted text modifying color
27935 \end_layout
27936
27937 \begin_layout Description
27938 depthbar Color for the depth bars in the margin
27939 \end_layout
27940
27941 \begin_layout Description
27942 eolmarker End of line marker color
27943 \end_layout
27944
27945 \begin_layout Description
27946 error Color of the \SpecialChar LaTeX
27947  error box
27948 \end_layout
27949
27950 \begin_layout Description
27951 footlabel Label color for footnotes
27952 \end_layout
27953
27954 \begin_layout Description
27955 foreground Foreground color
27956 \end_layout
27957
27958 \begin_layout Description
27959 graphicsbg Graphics inset background color
27960 \end_layout
27961
27962 \begin_layout Description
27963 greyedoutbg Background color of greyedout inset
27964 \end_layout
27965
27966 \begin_layout Description
27967 greyedoutlabel Label color for greyedout insets
27968 \end_layout
27969
27970 \begin_layout Description
27971 greyedouttext Color for greyedout inset text
27972 \end_layout
27973
27974 \begin_layout Description
27975 indexlabel Label color for index insets
27976 \end_layout
27977
27978 \begin_layout Description
27979 inlinecompletion Inline completion color
27980 \end_layout
27981
27982 \begin_layout Description
27983 insetbg Inset marker background color
27984 \end_layout
27985
27986 \begin_layout Description
27987 insetframe Inset marker frame color
27988 \end_layout
27989
27990 \begin_layout Description
27991 language Color for marking foreign language words
27992 \end_layout
27993
27994 \begin_layout Description
27995 latex Text color in \SpecialChar LaTeX
27996  mode
27997 \end_layout
27998
27999 \begin_layout Description
28000 listingsbg Background color of listings inset
28001 \end_layout
28002
28003 \begin_layout Description
28004 marginlabel Label color for margin notes
28005 \end_layout
28006
28007 \begin_layout Description
28008 math Math inset text color
28009 \end_layout
28010
28011 \begin_layout Description
28012 mathbg Math inset background color
28013 \end_layout
28014
28015 \begin_layout Description
28016 mathcorners Math inset frame color not under focus
28017 \end_layout
28018
28019 \begin_layout Description
28020 mathframe Math inset frame color under focus
28021 \end_layout
28022
28023 \begin_layout Description
28024 mathline Math line color
28025 \end_layout
28026
28027 \begin_layout Description
28028 mathmacrobg Macro math inset background color
28029 \end_layout
28030
28031 \begin_layout Description
28032 mathmacroblend Macro math blended color
28033 \end_layout
28034
28035 \begin_layout Description
28036 mathmacroframe Macro math frame color
28037 \end_layout
28038
28039 \begin_layout Description
28040 mathmacrohoverbg Macro math inset background color hovered
28041 \end_layout
28042
28043 \begin_layout Description
28044 mathmacrolabel Macro math label color
28045 \end_layout
28046
28047 \begin_layout Description
28048 mathmacronewarg Macro template color for new parameters
28049 \end_layout
28050
28051 \begin_layout Description
28052 mathmacrooldarg Macro template color for old parameters
28053 \end_layout
28054
28055 \begin_layout Description
28056 newpage New page color
28057 \end_layout
28058
28059 \begin_layout Description
28060 nonunique_inlinecompletion Inline completion color for the non-unique part
28061 \end_layout
28062
28063 \begin_layout Description
28064 notebg Background color of notes
28065 \end_layout
28066
28067 \begin_layout Description
28068 notelabel Label color for notes
28069 \end_layout
28070
28071 \begin_layout Description
28072 pagebreak Page break/line break color
28073 \end_layout
28074
28075 \begin_layout Description
28076 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28077 \end_layout
28078
28079 \begin_layout Description
28080 phantomtext Text color for phantom insets
28081 \end_layout
28082
28083 \begin_layout Description
28084 preview The color used for previews
28085 \end_layout
28086
28087 \begin_layout Description
28088 previewframe Preview frame color
28089 \end_layout
28090
28091 \begin_layout Description
28092 regexpframe Color for regexp frame
28093 \end_layout
28094
28095 \begin_layout Description
28096 scroll Color that indicates when a row can be scrolled 
28097 \end_layout
28098
28099 \begin_layout Description
28100 selection Background color of selected text
28101 \end_layout
28102
28103 \begin_layout Description
28104 selectiontext Foreground color of selected text
28105 \end_layout
28106
28107 \begin_layout Description
28108 shadedbg Background color of shaded box
28109 \end_layout
28110
28111 \begin_layout Description
28112 special Special chars text color
28113 \end_layout
28114
28115 \begin_layout Description
28116 tabularline Table line color
28117 \end_layout
28118
28119 \begin_layout Description
28120 tabularonoffline Table line color
28121 \end_layout
28122
28123 \begin_layout Description
28124 urllabel Label color for URL insets
28125 \end_layout
28126
28127 \begin_layout Description
28128 urltext Color for URL inset text
28129 \end_layout
28130
28131 \end_body
28132 \end_document