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