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