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