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