]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Add basic support for cprotect
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \end_header
134
135 \begin_body
136
137 \begin_layout Title
138 Customizing \SpecialChar LyX
139 : Features for the Advanced User
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 If you have comments or error corrections, please send them to the \SpecialChar LyX
151  Documentatio
152 n mailing list, 
153 \begin_inset CommandInset href
154 LatexCommand href
155 target "lyx-docs@lists.lyx.org"
156 type "mailto:"
157 literal "false"
158
159 \end_inset
160
161 .
162  Include 
163 \begin_inset Quotes eld
164 \end_inset
165
166 [Customization]
167 \begin_inset Quotes erd
168 \end_inset
169
170  in the subject header, and please cc the current maintainer of this file,
171  Richard Heck <rgheck@comcast.net>.
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184 Version 2.3.x 
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Standard
197 \begin_inset Note Note
198 status open
199
200 \begin_layout Plain Layout
201 Please use change tracking when modifying this document.
202  This makes it easier for our translators to recognize things that have
203  been changed, and it helps the maintainer keep up-to-date with what's been
204  done.
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Chapter
213 Introduction
214 \end_layout
215
216 \begin_layout Standard
217 This manual covers the customization features present in \SpecialChar LyX
218 .
219  In it, we discuss issues like keyboard shortcuts, screen previewing options,
220  printer options, sending commands to \SpecialChar LyX
221  via the \SpecialChar LyX
222  Server, internationalization,
223  installing new \SpecialChar LaTeX
224  classes and \SpecialChar LyX
225  layouts, etc.
226  We can't possibly hope to touch on everything you can change—our developers
227  add new features faster than we can document them—but we will explain the
228  most common customizations and hopefully point you in the right direction
229  for some of the more obscure ones.
230 \end_layout
231
232 \begin_layout Standard
233 \begin_inset Branch OutDated
234 inverted 0
235 status collapsed
236
237 \begin_layout Standard
238 Information from previous versions of this document that now seems to be
239  outdated is contained in the OutDated branch of this document.
240  By default, this information will not appear in the \SpecialChar LaTeX
241  output.
242 \end_layout
243
244 \end_inset
245
246
247 \end_layout
248
249 \begin_layout Chapter
250 \SpecialChar LyX
251  configuration files
252 \end_layout
253
254 \begin_layout Standard
255 This chapter aims to help you to find your way through the \SpecialChar LyX
256  configuration
257  files.
258  Before continuing to read this chapter, you should find out where your
259  \SpecialChar LyX
260  library and user directories are by using 
261 \begin_inset Flex Noun
262 status collapsed
263
264 \begin_layout Plain Layout
265 Help\SpecialChar menuseparator
266 About
267 \begin_inset space ~
268 \end_inset
269
270 LyX
271 \end_layout
272
273 \end_inset
274
275 .
276  The library directory is the place where \SpecialChar LyX
277  places its system-wide configuration
278  files; the user directory is where you can place your modified versions.
279  We will call the former 
280 \begin_inset Flex Code
281 status collapsed
282
283 \begin_layout Plain Layout
284 LyXDir
285 \end_layout
286
287 \end_inset
288
289  and the latter 
290 \begin_inset Flex Noun
291 status collapsed
292
293 \begin_layout Plain Layout
294 UserDir
295 \end_layout
296
297 \end_inset
298
299  in the remainder of this document.
300  
301 \end_layout
302
303 \begin_layout Section
304 What's in 
305 \begin_inset Flex Code
306 status collapsed
307
308 \begin_layout Plain Layout
309 LyXDir
310 \end_layout
311
312 \end_inset
313
314 ?
315 \end_layout
316
317 \begin_layout Standard
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327  and its sub-directories contain a number of files and that can be used
328  to customize \SpecialChar LyX
329 's behavior.
330  You can change many of these files from within \SpecialChar LyX
331  itself through the 
332 \begin_inset Flex Noun
333 status collapsed
334
335 \begin_layout Plain Layout
336 Tools\SpecialChar menuseparator
337 Preferences
338 \end_layout
339
340 \end_inset
341
342  dialog.
343  Most customization that you will want to do in \SpecialChar LyX
344  is possible through this
345  dialog.
346  However, many other inner aspects of \SpecialChar LyX
347  can be customized by modifying the
348  files in 
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358 .
359  These files fall in different categories, described in the following subsection
360 s.
361 \end_layout
362
363 \begin_layout Subsection
364 Automatically generated files
365 \end_layout
366
367 \begin_layout Standard
368 The files, which are to be found in 
369 \begin_inset Flex Noun
370 status collapsed
371
372 \begin_layout Plain Layout
373 UserDir
374 \end_layout
375
376 \end_inset
377
378 , are generated when you configure \SpecialChar LyX
379 .
380  They contain various default values that are guessed by inspection.
381  In general, it is not a good idea to modify them, since they might be overwritt
382 en at any time.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  contains defaults for various commands.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  contains the list of packages that have been recognized by \SpecialChar LyX
411 .
412  It is currently unused by the \SpecialChar LyX
413  program itself, but the information extracted,
414  and more, is made available with 
415 \begin_inset Flex Noun
416 status collapsed
417
418 \begin_layout Plain Layout
419 Help\SpecialChar menuseparator
420 \SpecialChar LaTeX
421
422 \begin_inset space ~
423 \end_inset
424
425 Configuration
426 \end_layout
427
428 \end_inset
429
430 .
431 \end_layout
432
433 \begin_layout Labeling
434 \labelwidthstring 00.00.0000
435 \begin_inset Flex Code
436 status collapsed
437
438 \begin_layout Plain Layout
439 textclass.lst
440 \end_layout
441
442 \end_inset
443
444  the list of text classes that have been found in your 
445 \begin_inset Flex Code
446 status collapsed
447
448 \begin_layout Plain Layout
449 layout/
450 \end_layout
451
452 \end_inset
453
454  directories, along with the associated \SpecialChar LaTeX
455  document class and their description.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 lyxmodules.lst
465 \end_layout
466
467 \end_inset
468
469  the list of layout modules found in your 
470 \begin_inset Flex Code
471 status collapsed
472
473 \begin_layout Plain Layout
474 layout/
475 \end_layout
476
477 \end_inset
478
479  directories
480 \end_layout
481
482 \begin_layout Labeling
483 \labelwidthstring 00.00.0000
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 *files.lst
489 \end_layout
490
491 \end_inset
492
493  lists of various sorts of \SpecialChar LaTeX
494 -related files found on your system
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 doc/\SpecialChar LaTeX
504 Config.lyx
505 \end_layout
506
507 \end_inset
508
509  is automatically generated during configuration from the file 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 \SpecialChar LaTeX
515 Config.lyx.in
516 \end_layout
517
518 \end_inset
519
520 .
521  It contains information on your \SpecialChar LaTeX
522  configuration.
523 \end_layout
524
525 \begin_layout Subsection
526 Directories
527 \end_layout
528
529 \begin_layout Standard
530 These directories are duplicated between 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 LyXDir
536 \end_layout
537
538 \end_inset
539
540  and 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 UserDir
546 \end_layout
547
548 \end_inset
549
550 .
551  If a particular files exists in both places, the one in 
552 \begin_inset Flex Code
553 status collapsed
554
555 \begin_layout Plain Layout
556 UserDir
557 \end_layout
558
559 \end_inset
560
561  will be used.
562 \end_layout
563
564 \begin_layout Labeling
565 \labelwidthstring 00.00.0000
566 \begin_inset Flex Code
567 status collapsed
568
569 \begin_layout Plain Layout
570 bind/
571 \end_layout
572
573 \end_inset
574
575  this directory contains files with the extension 
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 .bind
581 \end_layout
582
583 \end_inset
584
585  that define the keybindings used in \SpecialChar LyX
586 .
587  If there exists an internationalized version of the bind file named 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 $LANG_xxx.bind
593 \end_layout
594
595 \end_inset
596
597 , that will be used first.
598 \end_layout
599
600 \begin_layout Labeling
601 \labelwidthstring 00.00.0000
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 citeengines/
607 \end_layout
608
609 \end_inset
610
611  contains files with the extension 
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 .citeengine
617 \end_layout
618
619 \end_inset
620
621  which define the diverse citation possibilities (natbib, biblatex etc.).
622  See 
623 \begin_inset CommandInset ref
624 LatexCommand ref
625 reference "subsec:Cite-Engine-Files"
626 plural "false"
627 caps "false"
628 noprefix "false"
629
630 \end_inset
631
632  for details.
633 \end_layout
634
635 \begin_layout Labeling
636 \labelwidthstring 00.00.0000
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 clipart/
642 \end_layout
643
644 \end_inset
645
646  contains graphics files that can be included in documents.
647  
648 \end_layout
649
650 \begin_layout Labeling
651 \labelwidthstring 00.00.0000
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656 doc/
657 \end_layout
658
659 \end_inset
660
661  contains \SpecialChar LyX
662  documentation files (including the one you are currently reading).
663  The file 
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 \SpecialChar LaTeX
669 Config.lyx
670 \end_layout
671
672 \end_inset
673
674  deserves special attention, as noted above.
675  The internationalized help docs are in subdirectories 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 doc/xx
681 \end_layout
682
683 \end_inset
684
685  where 
686 \begin_inset Quotes eld
687 \end_inset
688
689 xx
690 \begin_inset Quotes erd
691 \end_inset
692
693  is the ISO language code.
694  See 
695 \begin_inset CommandInset ref
696 LatexCommand ref
697 reference "cha:Internationalizing-LyX"
698
699 \end_inset
700
701  for details.
702 \end_layout
703
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
707 status collapsed
708
709 \begin_layout Plain Layout
710 examples/
711 \end_layout
712
713 \end_inset
714
715  contains example files that explain how to use some features.
716  In the file browser, press the 
717 \begin_inset Flex Noun
718 status collapsed
719
720 \begin_layout Plain Layout
721 Examples
722 \end_layout
723
724 \end_inset
725
726  button to get there.
727 \end_layout
728
729 \begin_layout Labeling
730 \labelwidthstring 00.00.0000
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 images/
736 \end_layout
737
738 \end_inset
739
740  contains image files that are used by the 
741 \begin_inset Flex Noun
742 status collapsed
743
744 \begin_layout Plain Layout
745 Document
746 \end_layout
747
748 \end_inset
749
750  dialog.
751  In addition, it also contains the individual icons used in the toolbar
752  and the banners that can be shown when \SpecialChar LyX
753  is launched.
754 \end_layout
755
756 \begin_layout Labeling
757 \labelwidthstring 00.00.0000
758 \begin_inset Flex Code
759 status collapsed
760
761 \begin_layout Plain Layout
762 kbd/
763 \end_layout
764
765 \end_inset
766
767  contains keyboard keymapping files.
768  See 
769 \begin_inset CommandInset ref
770 LatexCommand ref
771 reference "sec:International-Keymap-Stuff"
772
773 \end_inset
774
775  for details.
776 \end_layout
777
778 \begin_layout Labeling
779 \labelwidthstring 00.00.0000
780 \begin_inset Flex Code
781 status collapsed
782
783 \begin_layout Plain Layout
784 layouts/
785 \end_layout
786
787 \end_inset
788
789  contains the text class and module files described in 
790 \begin_inset CommandInset ref
791 LatexCommand ref
792 reference "cha:Installing-New-Document"
793
794 \end_inset
795
796 .
797 \end_layout
798
799 \begin_layout Labeling
800 \labelwidthstring 00.00.0000
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 lyx2lyx
806 \end_layout
807
808 \end_inset
809
810  contains the 
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 lyx2lyx
816 \end_layout
817
818 \end_inset
819
820  Python scripts used to convert between \SpecialChar LyX
821  versions.
822  These can be run from the command line if, say, you want to batch-convert
823  files.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 scripts/
833 \end_layout
834
835 \end_inset
836
837  contains some files that demonstrate the capabilities of the 
838 \begin_inset Flex Noun
839 status collapsed
840
841 \begin_layout Plain Layout
842 External
843 \begin_inset space ~
844 \end_inset
845
846 Template
847 \end_layout
848
849 \end_inset
850
851  feature.
852  Also contains some scripts used by \SpecialChar LyX
853  itself.
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 templates/
863 \end_layout
864
865 \end_inset
866
867  contains the standard \SpecialChar LyX
868  template files described in 
869 \begin_inset CommandInset ref
870 LatexCommand ref
871 reference "subsec:Creating-Templates"
872
873 \end_inset
874
875 .
876 \end_layout
877
878 \begin_layout Labeling
879 \labelwidthstring 00.00.0000
880 \begin_inset Flex Code
881 status collapsed
882
883 \begin_layout Plain Layout
884 ui/
885 \end_layout
886
887 \end_inset
888
889  contains files with the extension 
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 .ui
895 \end_layout
896
897 \end_inset
898
899  that define the user interface to \SpecialChar LyX
900 .
901  That is, the files define which items appear in which menus and the items
902  appearing on the toolbar.
903 \end_layout
904
905 \begin_layout Labeling
906 \labelwidthstring 00.00.0000
907 \begin_inset Flex Code
908 status collapsed
909
910 \begin_layout Plain Layout
911 xtemplates/
912 \end_layout
913
914 \end_inset
915
916  contains files with the extension 
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 .xtemplate
922 \end_layout
923
924 \end_inset
925
926  which define the templates for the insertion of external material to a
927  \SpecialChar LyX
928  document; see 
929 \begin_inset CommandInset ref
930 LatexCommand ref
931 reference "chap:Including-External-Material"
932
933 \end_inset
934
935 .
936 \end_layout
937
938 \begin_layout Subsection
939 Files you don't want to modify
940 \end_layout
941
942 \begin_layout Standard
943 These files are used internally by \SpecialChar LyX
944  and you generally do not need to modify
945  them unless you are a developer.
946 \end_layout
947
948 \begin_layout Labeling
949 \labelwidthstring 00.00.0000
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954 CREDITS
955 \end_layout
956
957 \end_inset
958
959  this file contains the list of \SpecialChar LyX
960  developers.
961  The contents are displayed with the menu entry 
962 \begin_inset Flex Noun
963 status collapsed
964
965 \begin_layout Plain Layout
966 Help\SpecialChar menuseparator
967 About
968 \begin_inset space ~
969 \end_inset
970
971 LyX
972 \end_layout
973
974 \end_inset
975
976 .
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 chkconfig.ltx
986 \end_layout
987
988 \end_inset
989
990  this is a \SpecialChar LaTeX
991  script used during the configuration process.
992  Do not run directly.
993 \end_layout
994
995 \begin_layout Labeling
996 \labelwidthstring 00.00.0000
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 configure.py
1002 \end_layout
1003
1004 \end_inset
1005
1006  this is a Python script that is used to re-configure \SpecialChar LyX
1007 .
1008  It creates configuration files in the directory it was run from.
1009 \end_layout
1010
1011 \begin_layout Subsection
1012 Other files needing a line or two
1013 \end_layout
1014
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 encodings
1022 \end_layout
1023
1024 \end_inset
1025
1026  this contains tables describing how different character encodings can be
1027  mapped to Unicode
1028 \end_layout
1029
1030 \begin_layout Labeling
1031 \labelwidthstring 00.00.0000
1032 \begin_inset Flex Code
1033 status collapsed
1034
1035 \begin_layout Plain Layout
1036 languages
1037 \end_layout
1038
1039 \end_inset
1040
1041  this file contains a list of all the languages currently supported by \SpecialChar LyX
1042 .
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 latexfonts
1052 \end_layout
1053
1054 \end_inset
1055
1056  contains information about the supported fonts.
1057 \end_layout
1058
1059 \begin_layout Labeling
1060 \labelwidthstring 00.00.0000
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065 layouttranslations
1066 \end_layout
1067
1068 \end_inset
1069
1070  this file contains translations for internationalized paragraph styles
1071  (see 
1072 \begin_inset CommandInset ref
1073 LatexCommand ref
1074 reference "subsec:I18n"
1075
1076 \end_inset
1077
1078 ).
1079 \end_layout
1080
1081 \begin_layout Labeling
1082 \labelwidthstring 00.00.0000
1083 \begin_inset Flex Code
1084 status collapsed
1085
1086 \begin_layout Plain Layout
1087 unicodesymbols
1088 \end_layout
1089
1090 \end_inset
1091
1092  this file contains information about Unicode-encoded glyphs and the way
1093  they are supported by \SpecialChar LyX
1094  via \SpecialChar LaTeX
1095 .
1096 \end_layout
1097
1098 \begin_layout Section
1099 Your local configuration directory
1100 \end_layout
1101
1102 \begin_layout Standard
1103 Even if you are using \SpecialChar LyX
1104  as an unprivileged user, you might want to change
1105  \SpecialChar LyX
1106  configuration for your own use.
1107  The 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 UserDir
1113 \end_layout
1114
1115 \end_inset
1116
1117  directory contains all your personal configuration files.
1118  This is the directory described as 
1119 \begin_inset Quotes eld
1120 \end_inset
1121
1122 user directory
1123 \begin_inset Quotes erd
1124 \end_inset
1125
1126  in 
1127 \begin_inset Flex Noun
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 Help\SpecialChar menuseparator
1132 About
1133 \begin_inset space ~
1134 \end_inset
1135
1136 LyX
1137 \end_layout
1138
1139 \end_inset
1140
1141 .
1142  This directory is used as a mirror of 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 LyXDir
1148 \end_layout
1149
1150 \end_inset
1151
1152 , which means that every file in 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 UserDir
1158 \end_layout
1159
1160 \end_inset
1161
1162  is a replacement for the corresponding file in 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 LyXDir
1168 \end_layout
1169
1170 \end_inset
1171
1172 .
1173  Any configuration file described in the above sections can be placed either
1174  in the system-wide directory, in which case it will affect all users, or
1175  in your local directory for your own use.
1176 \end_layout
1177
1178 \begin_layout Standard
1179 To make things clearer, let's provide a few examples:
1180 \end_layout
1181
1182 \begin_layout Itemize
1183 The preferences set in the 
1184 \begin_inset Flex Noun
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 Tools\SpecialChar menuseparator
1189 Preferences
1190 \end_layout
1191
1192 \end_inset
1193
1194  dialog are saved to a file 
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 preferences
1200 \end_layout
1201
1202 \end_inset
1203
1204  in 
1205 \begin_inset Flex Code
1206 status collapsed
1207
1208 \begin_layout Plain Layout
1209 UserDir
1210 \end_layout
1211
1212 \end_inset
1213
1214 .
1215 \end_layout
1216
1217 \begin_layout Itemize
1218 When you reconfigure using 
1219 \begin_inset Flex Noun
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 Tools\SpecialChar menuseparator
1224 Reconfigure
1225 \end_layout
1226
1227 \end_inset
1228
1229 , \SpecialChar LyX
1230  runs the 
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 configure.py
1236 \end_layout
1237
1238 \end_inset
1239
1240  script, and the resulting files are written in your local configuration
1241  directory.
1242  This means that any additional text class file that you might have added
1243  in 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 UserDir/layouts
1249 \end_layout
1250
1251 \end_inset
1252
1253  will be added to the list of classes in the 
1254 \begin_inset Flex Noun
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 Document\SpecialChar menuseparator
1259 Settings
1260 \end_layout
1261
1262 \end_inset
1263
1264  dialog.
1265 \end_layout
1266
1267 \begin_layout Itemize
1268 If you get some updated documentation from \SpecialChar LyX
1269  ftp site and cannot install
1270  it because you do not have sysadmin rights on your system, you can just
1271  copy the files in 
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 UserDir/doc/
1277 \end_layout
1278
1279 \end_inset
1280
1281  and the items in the 
1282 \begin_inset Flex Noun
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 Help
1287 \end_layout
1288
1289 \end_inset
1290
1291  menu will open them!
1292 \end_layout
1293
1294 \begin_layout Section
1295 Running \SpecialChar LyX
1296  with multiple configurations
1297 \end_layout
1298
1299 \begin_layout Standard
1300 The configuration freedom of the local configuration directory may not suffice
1301  if you want to have more than one configuration at your disposal.
1302  For example, you may want to be use different key bindings or printer settings
1303  at different times.
1304  You can achieve this by having several such directories.
1305  You then specify which directory to use at run-time.
1306 \end_layout
1307
1308 \begin_layout Standard
1309 Invoking \SpecialChar LyX
1310  with the command line switch 
1311 \begin_inset Flex Code
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 -userdir
1316 \end_layout
1317
1318 \end_inset
1319
1320  
1321 \emph on
1322 <some directory>
1323 \emph default
1324  instructs the program to read the configuration from that directory, and
1325  not from the default directory.
1326  (You can determine the default directory by running \SpecialChar LyX
1327  without the 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 -userdir
1333 \end_layout
1334
1335 \end_inset
1336
1337  switch.) If the specified directory does not exist, \SpecialChar LyX
1338  offers to create it
1339  for you, just like it does for the default directory on the first time
1340  you run the program.
1341  You can modify the configuration options in this additional user directory
1342  exactly as you would for the default directory.
1343  These directories are completely independent (but read on).
1344  Note that setting the environment variable 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349 LYX_USERDIR_VER
1350 \end_layout
1351
1352 \end_inset
1353
1354  to some value has exactly the same effect.
1355 \end_layout
1356
1357 \begin_layout Standard
1358 Having several configurations also requires more maintenance: if you want
1359  to add a new layout to 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 NewUserDir/layouts
1365 \end_layout
1366
1367 \end_inset
1368
1369  which you want available from all your configurations, you must add it
1370  to each directory separately.
1371  You can avoid this with the following trick: after \SpecialChar LyX
1372  creates the additional
1373  directory, most of the subdirectories (see above) are empty.
1374  If you want the new configuration to mirror an existing one, replace the
1375  empty subdirectory with a symbolic link to the matching subdirectory in
1376  the existing configuration.
1377  Take care with the 
1378 \begin_inset Flex Code
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 doc/
1383 \end_layout
1384
1385 \end_inset
1386
1387  subdirectory, however, since it contains a file written by the configuration
1388  script (also accessible through 
1389 \begin_inset Flex Noun
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 Tools\SpecialChar menuseparator
1394 Reconfigure
1395 \end_layout
1396
1397 \end_inset
1398
1399 ) which is configuration-specific.
1400 \end_layout
1401
1402 \begin_layout Chapter
1403 The Preferences dialog
1404 \end_layout
1405
1406 \begin_layout Standard
1407 All options of the preferences dialog are described in the Appendix 
1408 \emph on
1409 The Preferences Dialog
1410 \emph default
1411  in the 
1412 \emph on
1413 User's Guide
1414 \emph default
1415 .
1416  For some options you might find here more details.
1417 \end_layout
1418
1419 \begin_layout Section
1420 Formats
1421 \begin_inset CommandInset label
1422 LatexCommand label
1423 name "sec:Formats"
1424
1425 \end_inset
1426
1427
1428 \end_layout
1429
1430 \begin_layout Standard
1431 The first step is to define your file formats if they are not already defined.
1432  To do so, open the 
1433 \begin_inset Flex Noun
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437 Tools\SpecialChar menuseparator
1438 Preferences
1439 \end_layout
1440
1441 \end_inset
1442
1443  dialog.
1444  Under 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 File Handling\SpecialChar menuseparator
1450 File formats
1451 \end_layout
1452
1453 \end_inset
1454
1455  press the 
1456 \begin_inset Flex Noun
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 New
1461 \end_layout
1462
1463 \end_inset
1464
1465  button to define your new format.
1466  The 
1467 \begin_inset Flex Noun
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 Format
1472 \end_layout
1473
1474 \end_inset
1475
1476  field contains the name used to identify the format in the GUI.
1477  The 
1478 \begin_inset Flex Noun
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 Short Name
1483 \end_layout
1484
1485 \end_inset
1486
1487  is used to identify the format internally.
1488  You will also need to enter a file extension.
1489  These are all required.
1490  The optional 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Shortcut
1496 \end_layout
1497
1498 \end_inset
1499
1500  field is used to provide a keyboard shortcut on the menus.
1501  (For example, pressing 
1502 \begin_inset Flex Noun
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 Ctrl+D
1507 \end_layout
1508
1509 \end_inset
1510
1511  will 
1512 \begin_inset Flex Noun
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 Document\SpecialChar menuseparator
1517 View (Other Formats)\SpecialChar menuseparator
1518 DVI
1519 \end_layout
1520
1521 \end_inset
1522
1523 .) 
1524 \end_layout
1525
1526 \begin_layout Standard
1527 A Format can have a 
1528 \begin_inset Flex Noun
1529 status collapsed
1530
1531 \begin_layout Plain Layout
1532 Viewer
1533 \end_layout
1534
1535 \end_inset
1536
1537  and an 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Editor
1543 \end_layout
1544
1545 \end_inset
1546
1547  associated with it.
1548  For example, you might want to use 
1549 \begin_inset Flex Noun
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 Ghostview
1554 \end_layout
1555
1556 \end_inset
1557
1558  to view PostScript files.
1559  You can enter the command needed to start the program in the corresponding
1560  fields.
1561  In defining this command, you can use the four variables listed in the
1562  next section.
1563  The viewer is launched when you view an image in \SpecialChar LyX
1564  or use the 
1565 \begin_inset Flex Noun
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 Document\SpecialChar menuseparator
1570 View
1571 \end_layout
1572
1573 \end_inset
1574
1575  menu.
1576  The editor is for example launched when you right-click on an image and
1577  choose 
1578 \begin_inset Flex Noun
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 Edit externally
1583 \end_layout
1584
1585 \end_inset
1586
1587  in the appearing context menu.
1588 \end_layout
1589
1590 \begin_layout Standard
1591 The 
1592 \begin_inset Flex Noun
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 MIME
1597 \end_layout
1598
1599 \end_inset
1600
1601  type of a format is optional, but if it is specified, it must be unique
1602  across all formats.
1603  It is used to detect files of this format from the file contents.
1604  For some important file formats there is no MIME type officially registered
1605  with the 
1606 \begin_inset CommandInset href
1607 LatexCommand href
1608 name "IANA"
1609 target "http://www.iana.org/assignments/media-types/"
1610 literal "false"
1611
1612 \end_inset
1613
1614 .
1615  Therefore \SpecialChar LyX
1616  uses the extended list of MIME types as specified by 
1617 \begin_inset CommandInset href
1618 LatexCommand href
1619 name "freedesktop.org"
1620 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1621 literal "false"
1622
1623 \end_inset
1624
1625 .
1626 \end_layout
1627
1628 \begin_layout Standard
1629 The 
1630 \begin_inset Flex Noun
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 Document format
1635 \end_layout
1636
1637 \end_inset
1638
1639  option tells \SpecialChar LyX
1640  that a format is suitable for document export.
1641  If this is set and if a suitable conversion route exists (see 
1642 \begin_inset CommandInset ref
1643 LatexCommand ref
1644 reference "sec:Converters"
1645
1646 \end_inset
1647
1648 ), the format will appear in the 
1649 \begin_inset Flex Noun
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 File\SpecialChar menuseparator
1654 Export
1655 \end_layout
1656
1657 \end_inset
1658
1659  menu.
1660  The format will also appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 Document\SpecialChar menuseparator
1666 View
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu if a viewer is specified for the format.
1672  Pure image formats, such as 
1673 \begin_inset Flex Code
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 png
1678 \end_layout
1679
1680 \end_inset
1681
1682 , should not use this option.
1683  Formats that can both represent vector graphics and documents like 
1684 \begin_inset Flex Code
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 pdf
1689 \end_layout
1690
1691 \end_inset
1692
1693  should use it.
1694 \end_layout
1695
1696 \begin_layout Standard
1697 The option 
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Vector graphics format
1703 \end_layout
1704
1705 \end_inset
1706
1707  tells \SpecialChar LyX
1708  that a format can contain vector graphics.
1709  This information is used to determine the target format of included graphics
1710  for 
1711 \begin_inset Flex Noun
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 pdflatex
1716 \end_layout
1717
1718 \end_inset
1719
1720  export.
1721  Included graphics may need to be converted to either 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 pdf
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 png
1737 \end_layout
1738
1739 \end_inset
1740
1741 , or 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 jpg
1747 \end_layout
1748
1749 \end_inset
1750
1751 , since 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 pdflatex
1757 \end_layout
1758
1759 \end_inset
1760
1761  cannot handle other image formats.
1762  If an included graphic is not already in 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 pdf
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Flex Noun
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 png
1778 \end_layout
1779
1780 \end_inset
1781
1782 , or 
1783 \begin_inset Flex Noun
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 jpg
1788 \end_layout
1789
1790 \end_inset
1791
1792  format, it is converted to 
1793 \begin_inset Flex Noun
1794 status collapsed
1795
1796 \begin_layout Plain Layout
1797 pdf
1798 \end_layout
1799
1800 \end_inset
1801
1802  if the vector format option is set, and otherwise to 
1803 \begin_inset Flex Noun
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 png
1808 \end_layout
1809
1810 \end_inset
1811
1812 .
1813 \end_layout
1814
1815 \begin_layout Section
1816 Copiers
1817 \end_layout
1818
1819 \begin_layout Standard
1820 Since all conversions from one format to another take place in \SpecialChar LyX
1821 's temporary
1822  directory, it is sometimes necessary to modify a file before copying it
1823  to the temporary directory in order that the conversion may be performed.
1824 \begin_inset Foot
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 For example, the file may refer to other files—images, for example—using
1829  relative file names, and these may become invalid when the file is copied
1830  to the temporary directory.
1831 \end_layout
1832
1833 \end_inset
1834
1835  This is done by a Copier: It copies a file to (or from) the temporary directory
1836  and may modify it in the process.
1837 \end_layout
1838
1839 \begin_layout Standard
1840 The definitions of the copiers may use eight variables:
1841 \end_layout
1842
1843 \begin_layout Labeling
1844 \labelwidthstring 00.00.0000
1845 \begin_inset Flex Code
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 $$s
1850 \end_layout
1851
1852 \end_inset
1853
1854  The \SpecialChar LyX
1855  system directory (e.
1856 \begin_inset space \thinspace{}
1857 \end_inset
1858
1859 g.
1860 \begin_inset space \space{}
1861 \end_inset
1862
1863
1864 \begin_inset Flex Noun
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 /usr/share/lyx
1869 \end_layout
1870
1871 \end_inset
1872
1873 ).
1874 \end_layout
1875
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 $$i
1883 \end_layout
1884
1885 \end_inset
1886
1887  The input file
1888 \end_layout
1889
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 $$o
1897 \end_layout
1898
1899 \end_inset
1900
1901  The output file
1902 \end_layout
1903
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Flex Code
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 $$b
1911 \end_layout
1912
1913 \end_inset
1914
1915  The base name (without filename extension) in the \SpecialChar LyX
1916  temporary directory
1917 \end_layout
1918
1919 \begin_layout Labeling
1920 \labelwidthstring 00.00.0000
1921 \begin_inset Flex Code
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 $$p
1926 \end_layout
1927
1928 \end_inset
1929
1930  The full directory path of the \SpecialChar LyX
1931  temporary directory
1932 \end_layout
1933
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 $$r
1941 \end_layout
1942
1943 \end_inset
1944
1945  The full pathname to the original \SpecialChar LyX
1946  file being processed
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$f
1956 \end_layout
1957
1958 \end_inset
1959
1960  The filename (without any directory path) of the \SpecialChar LyX
1961  file.
1962 \end_layout
1963
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 $$l
1971 \end_layout
1972
1973 \end_inset
1974
1975  The `\SpecialChar LaTeX
1976  name'
1977 \end_layout
1978
1979 \begin_layout Standard
1980 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1981 's 
1982 \series bold
1983
1984 \backslash
1985 include
1986 \series default
1987  command.
1988  It is relevant only when exporting files suitable for such inclusion.
1989 \end_layout
1990
1991 \begin_layout Standard
1992 Copiers can be used to do almost anything with output files.
1993  For example, suppose you want generated pdf files to be copied to a special
1994  directory, 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 /home/you/pdf/
2000 \end_layout
2001
2002 \end_inset
2003
2004 .
2005  Then you could write a shell script such as this one:
2006 \end_layout
2007
2008 \begin_layout Standard
2009 \begin_inset listings
2010 inline false
2011 status open
2012
2013 \begin_layout Plain Layout
2014
2015 #!/bin/bash
2016 \end_layout
2017
2018 \begin_layout Plain Layout
2019
2020 FROMFILE=$1
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 TOFILE=`basename $2`
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 cp $FROMFILE /home/you/pdf/$TOFILE
2031 \end_layout
2032
2033 \end_inset
2034
2035 Save it in your local \SpecialChar LyX
2036  directory—say, 
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 /home/you/.lyx/scripts/pdfcopier.sh
2042 \end_layout
2043
2044 \end_inset
2045
2046 —and make it executable, if you need to do so on your platform.
2047  Then, in the 
2048 \begin_inset Flex Noun
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Tools\SpecialChar menuseparator
2053 Preferences
2054 \end_layout
2055
2056 \end_inset
2057
2058  dialog, select under 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 File Handling\SpecialChar menuseparator
2064 File formats
2065 \end_layout
2066
2067 \end_inset
2068
2069  the 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 PDF(pdflatex)
2075 \end_layout
2076
2077 \end_inset
2078
2079  format—or one of the other pdf formats—and enter 
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 pdfcopier.sh $$i $$o
2085 \end_layout
2086
2087 \end_inset
2088
2089  into the 
2090 \begin_inset Flex Noun
2091 status collapsed
2092
2093 \begin_layout Plain Layout
2094 Copier
2095 \end_layout
2096
2097 \end_inset
2098
2099  field.
2100  
2101 \end_layout
2102
2103 \begin_layout Standard
2104 Copiers are used by \SpecialChar LyX
2105  in various of its own conversions.
2106  For example, if appropriate programs are found, \SpecialChar LyX
2107  will automatically install
2108  copiers for the 
2109 \begin_inset Flex Noun
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 HTML
2114 \end_layout
2115
2116 \end_inset
2117
2118  and 
2119 \begin_inset Flex Noun
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 HTML
2124 \begin_inset space ~
2125 \end_inset
2126
2127 (MS Word)
2128 \end_layout
2129
2130 \end_inset
2131
2132  formats.
2133  When these formats are exported, the copier sees that not just the main
2134  HTML file but various associated files (style files, images, etc.) are also
2135  copied.
2136  All these files are written to a subdirectory of the directory in which
2137  the original \SpecialChar LyX
2138  file was found.
2139 \begin_inset Foot
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 This copier can be customized.
2144  The optional 
2145 \begin_inset Quotes eld
2146 \end_inset
2147
2148 -e
2149 \begin_inset Quotes erd
2150 \end_inset
2151
2152  argument takes a comma-separated list of extensions to be copied; if it
2153  is omitted, all files will be copied.
2154  The 
2155 \begin_inset Quotes eld
2156 \end_inset
2157
2158 -t
2159 \begin_inset Quotes erd
2160 \end_inset
2161
2162  argument determines the extension added to the generated directory.
2163  By default, it is 
2164 \begin_inset Quotes eld
2165 \end_inset
2166
2167
2168 \begin_inset Flex Noun
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 LyXconv
2173 \end_layout
2174
2175 \end_inset
2176
2177
2178 \begin_inset Quotes erd
2179 \end_inset
2180
2181 , so HTML generated from 
2182 \begin_inset Flex Noun
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 /path/to/filename.lyx
2187 \end_layout
2188
2189 \end_inset
2190
2191  will end up in 
2192 \begin_inset Flex Noun
2193 status collapsed
2194
2195 \begin_layout Plain Layout
2196 /path/to/filename.html.LyXconv
2197 \end_layout
2198
2199 \end_inset
2200
2201 .
2202  
2203 \end_layout
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \begin_layout Section
2211 Converters
2212 \begin_inset CommandInset label
2213 LatexCommand label
2214 name "sec:Converters"
2215
2216 \end_inset
2217
2218
2219 \end_layout
2220
2221 \begin_layout Standard
2222 You can define your own Converters to convert files between different formats.
2223  This is done in the 
2224 \begin_inset Flex Noun
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 Tools\SpecialChar menuseparator
2229 Preferences\SpecialChar menuseparator
2230 File Handling\SpecialChar menuseparator
2231 Converters
2232 \end_layout
2233
2234 \end_inset
2235
2236  dialog.
2237 \end_layout
2238
2239 \begin_layout Standard
2240 To define a new converter, select the 
2241 \begin_inset Flex Noun
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 From
2246 \begin_inset space ~
2247 \end_inset
2248
2249 format
2250 \end_layout
2251
2252 \end_inset
2253
2254  and 
2255 \begin_inset Flex Noun
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 To
2260 \begin_inset space ~
2261 \end_inset
2262
2263 format
2264 \end_layout
2265
2266 \end_inset
2267
2268  from the drop-down lists, enter the command needed for the conversion,
2269  and then press the 
2270 \begin_inset Flex Noun
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 Add
2275 \end_layout
2276
2277 \end_inset
2278
2279  button.
2280  Several variables can be used in the definition of converters:
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$s
2290 \end_layout
2291
2292 \end_inset
2293
2294  The \SpecialChar LyX
2295  system directory
2296 \end_layout
2297
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 $$i
2305 \end_layout
2306
2307 \end_inset
2308
2309  The input file
2310 \end_layout
2311
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 $$o
2319 \end_layout
2320
2321 \end_inset
2322
2323  The output file
2324 \end_layout
2325
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332 $$b
2333 \end_layout
2334
2335 \end_inset
2336
2337  The base filename of the input file (i.
2338 \begin_inset space \thinspace{}
2339 \end_inset
2340
2341 g., without the extension)
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 $$p
2351 \end_layout
2352
2353 \end_inset
2354
2355  The path to the input file
2356 \end_layout
2357
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 $$r
2365 \end_layout
2366
2367 \end_inset
2368
2369  The path to the original input file (this is different from $$p when a
2370  chain of converters is called)
2371 \end_layout
2372
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Flex Code
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379 $$e
2380 \end_layout
2381
2382 \end_inset
2383
2384  The iconv name for the encoding of the document.
2385 \end_layout
2386
2387 \begin_layout Standard
2388 In the 
2389 \begin_inset Flex Noun
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393 Extra
2394 \begin_inset space ~
2395 \end_inset
2396
2397 Flag
2398 \end_layout
2399
2400 \end_inset
2401
2402  field you can enter the following flags, separated by commas:
2403 \end_layout
2404
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 latex
2412 \end_layout
2413
2414 \end_inset
2415
2416  This converter runs some form of \SpecialChar LaTeX
2417 .
2418  This will make \SpecialChar LyX
2419 's \SpecialChar LaTeX
2420  error logs available.
2421 \end_layout
2422
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 needaux
2430 \end_layout
2431
2432 \end_inset
2433
2434  Needs the \SpecialChar LaTeX
2435  
2436 \begin_inset Flex Noun
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 .aux
2441 \end_layout
2442
2443 \end_inset
2444
2445  file for the conversion.
2446 \end_layout
2447
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 nice
2455 \end_layout
2456
2457 \end_inset
2458
2459  Needs a 
2460 \begin_inset Quotes eld
2461 \end_inset
2462
2463 nice
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467  file from the backend, which in practice means a \SpecialChar LaTeX
2468  file like the one we
2469  would export, without 
2470 \begin_inset Flex Code
2471 status collapsed
2472
2473 \begin_layout Plain Layout
2474 input@path
2475 \end_layout
2476
2477 \end_inset
2478
2479 .
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 xml
2489 \end_layout
2490
2491 \end_inset
2492
2493  Output is XML.
2494 \end_layout
2495
2496 \begin_layout Standard
2497 The following three flags are not really flags at all because they take
2498  an argument in the 
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 key
2504 \begin_inset space ~
2505 \end_inset
2506
2507 =
2508 \begin_inset space ~
2509 \end_inset
2510
2511 value
2512 \end_layout
2513
2514 \end_inset
2515
2516  format:
2517 \end_layout
2518
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521
2522 \change_inserted -712698321 1523206314
2523 \begin_inset Flex Code
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527
2528 \change_inserted -712698321 1523206193
2529 hyperref-driver
2530 \end_layout
2531
2532 \end_inset
2533
2534  The name of the driver that needs to be loaded with the 
2535 \family sans
2536 hyperref
2537 \family default
2538  package for this converter.
2539  The loading of the correct driver is necessary to get some PDF-specific
2540  features.
2541  See the 
2542 \family sans
2543 hyperref
2544 \family default
2545  manual for details.
2546 \end_layout
2547
2548 \begin_layout Labeling
2549 \labelwidthstring 00.00.0000
2550 \begin_inset Flex Code
2551 status collapsed
2552
2553 \begin_layout Plain Layout
2554 parselog
2555 \end_layout
2556
2557 \end_inset
2558
2559  If set, the converter's standard error will be redirected to a file 
2560 \begin_inset Flex Code
2561 status collapsed
2562
2563 \begin_layout Plain Layout
2564 infile.out
2565 \end_layout
2566
2567 \end_inset
2568
2569 , and the script given as argument will be run as: 
2570 \begin_inset Flex Code
2571 status collapsed
2572
2573 \begin_layout Plain Layout
2574 script < infile.out > infile.log
2575 \end_layout
2576
2577 \end_inset
2578
2579 .
2580  The argument may contain 
2581 \begin_inset Flex Code
2582 status collapsed
2583
2584 \begin_layout Plain Layout
2585 $$s
2586 \end_layout
2587
2588 \end_inset
2589
2590 .
2591 \end_layout
2592
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2595 \begin_inset Flex Code
2596 status collapsed
2597
2598 \begin_layout Plain Layout
2599 resultdir
2600 \end_layout
2601
2602 \end_inset
2603
2604  The name of the directory in which the converter will dump the generated
2605  files.
2606  \SpecialChar LyX
2607  will not create this directory, and it does not copy anything into it,
2608  though it will copy this directory to the destination.
2609  The argument may contain 
2610 \begin_inset Flex Code
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614 $$b
2615 \end_layout
2616
2617 \end_inset
2618
2619 , which will be replaced by the base name of the input and output files,
2620  respectively, when the directory is copied.
2621 \begin_inset Newline newline
2622 \end_inset
2623
2624 Note that resultdir and usetempdir make no sense together.
2625  The latter will be ignored if the former is given.
2626 \end_layout
2627
2628 \begin_layout Labeling
2629 \labelwidthstring 00.00.0000
2630 \begin_inset Flex Code
2631 status collapsed
2632
2633 \begin_layout Plain Layout
2634 resultfile
2635 \end_layout
2636
2637 \end_inset
2638
2639  Determines the output file name and may, contain 
2640 \begin_inset Flex Code
2641 status collapsed
2642
2643 \begin_layout Plain Layout
2644 $$b
2645 \end_layout
2646
2647 \end_inset
2648
2649 .
2650  Sensible only with resultdir and optional even then; if not given, it defaults
2651  to `index'.
2652 \end_layout
2653
2654 \begin_layout Standard
2655
2656 \change_inserted -712698321 1523206384
2657 A suitable hyperref-driver is set for some converters that are installed
2658  with \SpecialChar LyX
2659 .
2660  
2661 \change_deleted -712698321 1523206388
2662 None of these
2663 \change_inserted -712698321 1523206389
2664 The
2665 \change_unchanged
2666  last three
2667 \change_inserted -712698321 1523206400
2668  flags, however,
2669 \change_unchanged
2670  are presently 
2671 \change_inserted -712698321 1523206407
2672 not 
2673 \change_unchanged
2674 used in any of the 
2675 \change_inserted -712698321 1523206437
2676 pre-installed 
2677 \change_unchanged
2678 converters
2679 \change_deleted -712698321 1523206442
2680  that are installed with \SpecialChar LyX
2681
2682 \change_unchanged
2683 .
2684  
2685 \end_layout
2686
2687 \begin_layout Standard
2688 You do not have to define converters for all formats between which you want
2689  to convert.
2690  For example, you will note that there is no `\SpecialChar LyX
2691  to PostScript' converter,
2692  but \SpecialChar LyX
2693  will export PostScript.
2694  It does so by first creating a \SpecialChar LaTeX
2695  file (no converter needs to be defined
2696  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2697  to DVI' converter,
2698  and finally converting the resulting DVI file to PostScript.
2699  \SpecialChar LyX
2700  finds such `chains' of converters automatically, and it will always choose
2701  the shortest possible chain.
2702  You can, though, still define multiple conversion methods between file
2703  formats.
2704  For example, the standard \SpecialChar LyX
2705  configuration provides five ways to convert
2706  \SpecialChar LaTeX
2707  to PDF:
2708 \end_layout
2709
2710 \begin_layout Enumerate
2711 Directly, using 
2712 \begin_inset Flex Noun
2713 status collapsed
2714
2715 \begin_layout Plain Layout
2716 pdflatex
2717 \end_layout
2718
2719 \end_inset
2720
2721
2722 \end_layout
2723
2724 \begin_layout Enumerate
2725 via (DVI and) PostScript, using 
2726 \begin_inset Flex Noun
2727 status collapsed
2728
2729 \begin_layout Plain Layout
2730 ps2pdf
2731 \end_layout
2732
2733 \end_inset
2734
2735
2736 \end_layout
2737
2738 \begin_layout Enumerate
2739 via DVI, using 
2740 \begin_inset Flex Noun
2741 status collapsed
2742
2743 \begin_layout Plain Layout
2744 dvipdfm
2745 \end_layout
2746
2747 \end_inset
2748
2749
2750 \end_layout
2751
2752 \begin_layout Enumerate
2753 directly using 
2754 \begin_inset Flex Noun
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 Xe\SpecialChar TeX
2759
2760 \end_layout
2761
2762 \end_inset
2763
2764
2765 \end_layout
2766
2767 \begin_layout Enumerate
2768 directly using 
2769 \begin_inset Flex Noun
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 Lua\SpecialChar TeX
2774
2775 \end_layout
2776
2777 \end_inset
2778
2779
2780 \end_layout
2781
2782 \begin_layout Standard
2783 To define such alternate chains, you must define multiple target `file formats',
2784  as described in 
2785 \begin_inset CommandInset ref
2786 LatexCommand ref
2787 reference "sec:Formats"
2788
2789 \end_inset
2790
2791 .
2792  For example, in the standard configuration, the formats named 
2793 \begin_inset Flex Noun
2794 status collapsed
2795
2796 \begin_layout Plain Layout
2797 pdf
2798 \end_layout
2799
2800 \end_inset
2801
2802  (for 
2803 \begin_inset Flex Noun
2804 status collapsed
2805
2806 \begin_layout Plain Layout
2807 ps2pdf
2808 \end_layout
2809
2810 \end_inset
2811
2812 ), 
2813 \begin_inset Flex Noun
2814 status collapsed
2815
2816 \begin_layout Plain Layout
2817 pdf2
2818 \end_layout
2819
2820 \end_inset
2821
2822  (for 
2823 \begin_inset Flex Noun
2824 status collapsed
2825
2826 \begin_layout Plain Layout
2827 pdflatex
2828 \end_layout
2829
2830 \end_inset
2831
2832 ), 
2833 \begin_inset Flex Noun
2834 status collapsed
2835
2836 \begin_layout Plain Layout
2837 pdf3
2838 \end_layout
2839
2840 \end_inset
2841
2842  (for 
2843 \begin_inset Flex Noun
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847 dvipdfm
2848 \end_layout
2849
2850 \end_inset
2851
2852 ), 
2853 \begin_inset Flex Noun
2854 status collapsed
2855
2856 \begin_layout Plain Layout
2857 pdf4
2858 \end_layout
2859
2860 \end_inset
2861
2862  (for 
2863 \begin_inset Flex Noun
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 Xe\SpecialChar TeX
2868
2869 \end_layout
2870
2871 \end_inset
2872
2873 ), and 
2874 \begin_inset Flex Noun
2875 status collapsed
2876
2877 \begin_layout Plain Layout
2878 pdf5
2879 \end_layout
2880
2881 \end_inset
2882
2883  (for 
2884 \begin_inset Flex Noun
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888 Lua\SpecialChar TeX
2889
2890 \end_layout
2891
2892 \end_inset
2893
2894 ) are defined, all of which share the extension 
2895 \begin_inset Flex Noun
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899 .pdf
2900 \end_layout
2901
2902 \end_inset
2903
2904 , and which correspond to the conversion methods just mentioned.
2905 \end_layout
2906
2907 \begin_layout Chapter
2908 Internationalizing \SpecialChar LyX
2909
2910 \begin_inset CommandInset label
2911 LatexCommand label
2912 name "cha:Internationalizing-LyX"
2913
2914 \end_inset
2915
2916
2917 \end_layout
2918
2919 \begin_layout Standard
2920 \SpecialChar LyX
2921  supports using a translated interface.
2922  Last time we checked, \SpecialChar LyX
2923  provided text in thirty languages.
2924  The language of choice is called your 
2925 \emph on
2926 locale
2927 \emph default
2928 .
2929  (For further reading on locale settings, see also the documentation for
2930  locale that comes with your operating system.
2931  For Linux, the manual page for 
2932 \begin_inset Flex Code
2933 status collapsed
2934
2935 \begin_layout Plain Layout
2936 locale(5)
2937 \end_layout
2938
2939 \end_inset
2940
2941  could be a good place to start).
2942 \end_layout
2943
2944 \begin_layout Standard
2945 Notice that these translations will work, but do contain a few flaws.
2946  In particular, all dialogs have been designed with the English text in
2947  mind, which means that some of the translated text will be too large to
2948  fit within the space allocated.
2949  This is only a display problem and will not cause any harm.
2950  Also, you will find that some of the translations do not define shortcut
2951  keys for everything.
2952  Sometimes, there are simply not enough free letters to do it.
2953  Other times, the translator just hasn't got around to doing it yet.
2954  Our localization team, which you may wish to join,
2955 \begin_inset Foot
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959 If you are a fluent speaker of a language other than English, joining these
2960  teams is a great way to give back to the \SpecialChar LyX
2961  community!
2962 \end_layout
2963
2964 \end_inset
2965
2966  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2967 .
2968 \end_layout
2969
2970 \begin_layout Section
2971 Translating \SpecialChar LyX
2972
2973 \end_layout
2974
2975 \begin_layout Subsection
2976 Translating the graphical user interface (text messages).
2977 \end_layout
2978
2979 \begin_layout Standard
2980 \SpecialChar LyX
2981  uses the GNU 
2982 \begin_inset Flex Code
2983 status collapsed
2984
2985 \begin_layout Plain Layout
2986 gettext
2987 \end_layout
2988
2989 \end_inset
2990
2991  library to handle the internationalization of the interface.
2992  To have \SpecialChar LyX
2993  speak your favorite language in all menus and dialogs, you need
2994  a 
2995 \begin_inset Flex Code
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999 po
3000 \end_layout
3001
3002 \end_inset
3003
3004 -file for that language.
3005  When this is available, you'll have to generate a 
3006 \begin_inset Flex Code
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010 mo
3011 \end_layout
3012
3013 \end_inset
3014
3015 -file from it and install the 
3016 \begin_inset Flex Code
3017 status collapsed
3018
3019 \begin_layout Plain Layout
3020 mo
3021 \end_layout
3022
3023 \end_inset
3024
3025 -file.
3026  The process of doing all of this is explained in the documentation for
3027  GNU 
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 gettext
3033 \end_layout
3034
3035 \end_inset
3036
3037 .
3038  It is possible to do this just for yourself, but if you're going to do
3039  it, you might as well share the results of your labors with the rest of
3040  the \SpecialChar LyX
3041  community.
3042  Send a message to the \SpecialChar LyX
3043  developers' list for more information about how
3044  to proceed.
3045 \end_layout
3046
3047 \begin_layout Standard
3048 In short, this is what you should do (xx denotes the language code):
3049 \end_layout
3050
3051 \begin_layout Itemize
3052 Check out the \SpecialChar LyX
3053  source code.
3054  (See the 
3055 \begin_inset CommandInset href
3056 LatexCommand href
3057 name "information on the web"
3058 target "https://www.lyx.org/HowToUseGIT"
3059 literal "false"
3060
3061 \end_inset
3062
3063 .)
3064 \end_layout
3065
3066 \begin_layout Itemize
3067 Copy the file 
3068 \begin_inset Flex Code
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 lyx.pot
3073 \end_layout
3074
3075 \end_inset
3076
3077  to the folder of the 
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 **.po
3083 \end_layout
3084
3085 \end_inset
3086
3087  files.
3088  Then rename it to 
3089 \begin_inset Flex Code
3090 status collapsed
3091
3092 \begin_layout Plain Layout
3093 xx.po
3094 \end_layout
3095
3096 \end_inset
3097
3098 .
3099  (If 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 lyx.pot
3105 \end_layout
3106
3107 \end_inset
3108
3109  doesn't exist anywhere, it can be remade with the console command 
3110 \begin_inset Flex Code
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 make lyx.pot
3115 \end_layout
3116
3117 \end_inset
3118
3119  in that directory, or you can use an existing po-file for some other language
3120  as a template).
3121 \end_layout
3122
3123 \begin_layout Itemize
3124 Edit 
3125 \begin_inset Flex Code
3126 status collapsed
3127
3128 \begin_layout Plain Layout
3129 xx.po
3130 \end_layout
3131
3132 \end_inset
3133
3134 .
3135 \begin_inset Foot
3136 status collapsed
3137
3138 \begin_layout Plain Layout
3139 This is just a text file, so it can be edited in any text editor.
3140  But there are also specialized programs that support such editing, such
3141  as 
3142 \family typewriter
3143 Poedit
3144 \family default
3145  (for all platforms) or 
3146 \family typewriter
3147 KBabel
3148 \family default
3149  (for KDE).
3150  
3151 \family typewriter
3152 Emacs
3153 \family default
3154  contains a `mode' for editing 
3155 \begin_inset Flex Code
3156 status collapsed
3157
3158 \begin_layout Plain Layout
3159 po
3160 \end_layout
3161
3162 \end_inset
3163
3164  files, as well, see 
3165 \begin_inset Flex URL
3166 status open
3167
3168 \begin_layout Plain Layout
3169
3170 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3171 \backslash
3172 #PO-Mode
3173 \end_layout
3174
3175 \end_inset
3176
3177 .
3178 \end_layout
3179
3180 \end_inset
3181
3182  For some menu- and widget-labels, there are also shortcut keys that should
3183  be translated.
3184  Those keys are marked after a `|', and should be translated according to
3185  the words and phrases of the language.
3186  You should also fill also out the information at the beginning of the new
3187  
3188 \begin_inset Flex Code
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192 po
3193 \end_layout
3194
3195 \end_inset
3196
3197 -file with your email-address, etc., so people know where to reach you with
3198  suggestions and entertaining flames.
3199 \end_layout
3200
3201 \begin_layout Standard
3202 If you are just doing this on your own, then:
3203 \end_layout
3204
3205 \begin_layout Itemize
3206 Generate 
3207 \begin_inset Flex Code
3208 status collapsed
3209
3210 \begin_layout Plain Layout
3211 xx.mo
3212 \end_layout
3213
3214 \end_inset
3215
3216 .
3217  This can be done with 
3218 \begin_inset Flex Code
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222 msgfmt -o xx.mo < xx.po
3223 \end_layout
3224
3225 \end_inset
3226
3227 .
3228 \end_layout
3229
3230 \begin_layout Itemize
3231 Copy the 
3232 \begin_inset Flex Code
3233 status collapsed
3234
3235 \begin_layout Plain Layout
3236 mo
3237 \end_layout
3238
3239 \end_inset
3240
3241 -file to your locale-tree, at the correct directory for application messages
3242  for the language
3243 \series bold
3244  
3245 \series default
3246 xx, and under the name 
3247 \begin_inset Flex Code
3248 status collapsed
3249
3250 \begin_layout Plain Layout
3251 lyx.mo
3252 \end_layout
3253
3254 \end_inset
3255
3256  (e.
3257 \begin_inset space \thinspace{}
3258 \end_inset
3259
3260 g.
3261 \begin_inset space \space{}
3262 \end_inset
3263
3264
3265 \begin_inset Flex Code
3266 status collapsed
3267
3268 \begin_layout Plain Layout
3269 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3270 \end_layout
3271
3272 \end_inset
3273
3274
3275 \series bold
3276 .
3277 \end_layout
3278
3279 \begin_layout Standard
3280 As said, however, it would be best if the new 
3281 \begin_inset Flex Code
3282 status collapsed
3283
3284 \begin_layout Plain Layout
3285 po
3286 \end_layout
3287
3288 \end_inset
3289
3290  file could be added to the \SpecialChar LyX
3291  distribution, so others can use it.
3292  Adding it involves making additional changes to \SpecialChar LyX
3293 .
3294  So send an email to the developers' mailing list if you're interested in
3295  doing that.
3296 \end_layout
3297
3298 \begin_layout Subsubsection
3299 Ambiguous messages
3300 \end_layout
3301
3302 \begin_layout Standard
3303 Sometimes it turns out that one English message needs to be translated into
3304  different messages in the target language.
3305  One example is the message 
3306 \begin_inset Flex Code
3307 status collapsed
3308
3309 \begin_layout Plain Layout
3310 To
3311 \end_layout
3312
3313 \end_inset
3314
3315  which has the German translation 
3316 \lang german
3317 Nach
3318 \lang english
3319  or 
3320 \lang german
3321 Bis
3322 \lang english
3323 , depending upon exactly what the English 
3324 \begin_inset Quotes eld
3325 \end_inset
3326
3327 to
3328 \begin_inset Quotes erd
3329 \end_inset
3330
3331  means.
3332  GNU 
3333 \begin_inset Flex Code
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 gettext
3338 \end_layout
3339
3340 \end_inset
3341
3342  does not handle such ambiguous translations.
3343  Therefore you have to add some context information to the message: Instead
3344  of 
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 To
3350 \end_layout
3351
3352 \end_inset
3353
3354  it becomes 
3355 \begin_inset Flex Code
3356 status collapsed
3357
3358 \begin_layout Plain Layout
3359 To[[as in 'From format x to format y']]
3360 \end_layout
3361
3362 \end_inset
3363
3364  and 
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 To[[as in 'From page x to page y']].
3370 \end_layout
3371
3372 \end_inset
3373
3374  Now the two occurrences of 
3375 \begin_inset Flex Code
3376 status collapsed
3377
3378 \begin_layout Plain Layout
3379 To
3380 \end_layout
3381
3382 \end_inset
3383
3384  are different for 
3385 \begin_inset Flex Code
3386 status collapsed
3387
3388 \begin_layout Plain Layout
3389 gettext
3390 \end_layout
3391
3392 \end_inset
3393
3394  and can be translated correctly to 
3395 \lang german
3396 Nach
3397 \lang english
3398  and 
3399 \lang german
3400 Bis
3401 \lang english
3402 , respectively.
3403 \end_layout
3404
3405 \begin_layout Standard
3406 Of course the context information needs to be stripped off the original
3407  message when no translation is used.
3408  Therefore you have to put it in double square brackets at the end of the
3409  message (see the example above).
3410  The translation mechanism of \SpecialChar LyX
3411  ensures that everything in double square
3412  brackets at the end of messages is removed before displaying the message.
3413 \end_layout
3414
3415 \begin_layout Subsection
3416 Translating the documentation.
3417 \end_layout
3418
3419 \begin_layout Standard
3420 The online documentation (in the 
3421 \begin_inset Flex Noun
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 Help
3426 \end_layout
3427
3428 \end_inset
3429
3430 -menu) can (and should!) be translated.
3431  If there are translated versions of the documentation available
3432 \begin_inset Foot
3433 status collapsed
3434
3435 \begin_layout Plain Layout
3436 As of March 2008, at least some of the documents have been translated into
3437  fourteen languages, with the Tutorial available in a few more.
3438 \end_layout
3439
3440 \end_inset
3441
3442  and the locale is set accordingly, these will be used automagically by
3443  \SpecialChar LyX
3444 .
3445  \SpecialChar LyX
3446  looks for translated versions as 
3447 \begin_inset Flex Code
3448 status collapsed
3449
3450 \begin_layout Plain Layout
3451 LyXDir/doc/xx/DocName.lyx
3452 \end_layout
3453
3454 \end_inset
3455
3456 , where 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 xx
3462 \end_layout
3463
3464 \end_inset
3465
3466  is the code for the language currently in use.
3467  If there are no translated documents, the default English versions will
3468  be displayed.
3469  Note that the translated versions must have the same filenames (
3470 \begin_inset Flex Code
3471 status collapsed
3472
3473 \begin_layout Plain Layout
3474 DocName
3475 \end_layout
3476
3477 \end_inset
3478
3479  above) as the original.
3480  If you feel up to translating the documentation (an excellent way to proof-read
3481  the original documentation by the way!), there are a few things you should
3482  do right away:
3483 \end_layout
3484
3485 \begin_layout Itemize
3486 Check out the documentation translation web page at 
3487 \begin_inset CommandInset href
3488 LatexCommand href
3489 name "https://www.lyx.org/Translation"
3490 target "https://www.lyx.org/Translation"
3491 literal "false"
3492
3493 \end_inset
3494
3495 .
3496  That way, you can find out which (if any) documents have already been translate
3497 d into your language.
3498  You can also find out who (if anyone) is organizing the effort to translate
3499  the documentation into your language.
3500  If no one is organizing the effort, please let us know that you're interested.
3501 \end_layout
3502
3503 \begin_layout Standard
3504 Once you get to actually translating, here's a few hints for you that may
3505  save you trouble:
3506 \end_layout
3507
3508 \begin_layout Itemize
3509 Join the documentation team! There is information on how to do that in 
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514 Intro.lyx
3515 \end_layout
3516
3517 \end_inset
3518
3519  (
3520 \begin_inset Flex Noun
3521 status collapsed
3522
3523 \begin_layout Plain Layout
3524 Help\SpecialChar menuseparator
3525 Introduction
3526 \end_layout
3527
3528 \end_inset
3529
3530 ), which by the way is the first document you should translate.
3531 \end_layout
3532
3533 \begin_layout Itemize
3534 Learn the typographic conventions for the language you are translating to.
3535  Typography is an ancient art and over the centuries, a great variety of
3536  conventions have developed throughout different parts of the world.
3537  Also study the professional terminology amongst typographers in your country.
3538  Inventing your own terminology will only confuse the users.
3539  
3540 \emph on
3541 (Warning! Typography is addictive!)
3542 \end_layout
3543
3544 \begin_layout Itemize
3545 Make a copy of the document.
3546  This will be your working copy.
3547  You can use this as your personal translated help-file by placing it in
3548  your 
3549 \begin_inset Flex Code
3550 status collapsed
3551
3552 \begin_layout Plain Layout
3553 UserDir/doc/xx/
3554 \end_layout
3555
3556 \end_inset
3557
3558  directory.
3559 \begin_inset Note Greyedout
3560 status open
3561
3562 \begin_layout Plain Layout
3563
3564 \series bold
3565 Note:
3566 \series default
3567  For a complex document with external material (images, etc.), if you make
3568  a copy e.
3569 \begin_inset space \thinspace{}
3570 \end_inset
3571
3572 g.
3573 \begin_inset space \space{}
3574 \end_inset
3575
3576 in a temp dir, beware that the links to external material may be broken
3577  when the document is moved to a different place.
3578  The best way is to retrieve the \SpecialChar LyX
3579  tree from git (see 
3580 \begin_inset Flex URL
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584
3585 https://www.lyx.org/HowToUseGIT
3586 \end_layout
3587
3588 \end_inset
3589
3590 ) and to edit the doc file in place.
3591 \end_layout
3592
3593 \end_inset
3594
3595
3596 \end_layout
3597
3598 \begin_layout Itemize
3599 Sometimes the original document (from the \SpecialChar LyX
3600  team) will be updated.
3601  Use the source viewer at 
3602 \begin_inset CommandInset href
3603 LatexCommand href
3604 name "https://www.lyx.org/trac/timeline"
3605 target "https://www.lyx.org/trac/timeline"
3606 literal "false"
3607
3608 \end_inset
3609
3610  to see what has been changed.
3611  That way you can easily see which parts of the translated document need
3612  to be updated.
3613 \end_layout
3614
3615 \begin_layout Standard
3616 If you ever find an error in the original document, fix it and notify the
3617  rest of the documentation team of the changes! (You didn't forget to join
3618  the documentation team, did you?)
3619 \end_layout
3620
3621 \begin_layout Standard
3622 \begin_inset Branch OutDated
3623 inverted 0
3624 status collapsed
3625
3626 \begin_layout Section
3627 International Keyboard Support
3628 \end_layout
3629
3630 \begin_layout Standard
3631
3632 \emph on
3633 [Editor's Note: The following section is by
3634 \emph default
3635  
3636 \shape smallcaps
3637 \emph on
3638 Ivan Schreter
3639 \shape default
3640 .
3641  It needs to be fixed to conform to the new Documentation Style sheet and
3642  to make use of the new v1.0 features.
3643  The whole thing also needs to be merged with the section following it.-jw
3644  It may also be badly out of date.-rh (2008)]
3645 \end_layout
3646
3647 \begin_layout Subsection
3648 Defining Own Keymaps: Keymap File Format
3649 \end_layout
3650
3651 \begin_layout Standard
3652 Let's look at a keyboard definition file a little closer.
3653  It is a plain text file defining
3654 \end_layout
3655
3656 \begin_layout Itemize
3657 key-to-key or key-to-string translations
3658 \end_layout
3659
3660 \begin_layout Itemize
3661 dead keys
3662 \end_layout
3663
3664 \begin_layout Itemize
3665 dead keys exceptions
3666 \end_layout
3667
3668 \begin_layout Standard
3669 To define key-to-key or key-to-string translation, use this command:
3670 \end_layout
3671
3672 \begin_layout Quotation
3673 \begin_inset Flex Code
3674 status collapsed
3675
3676 \begin_layout Plain Layout
3677
3678 \backslash
3679 kmap
3680 \end_layout
3681
3682 \end_inset
3683
3684  
3685 \begin_inset Flex Code
3686 status collapsed
3687
3688 \begin_layout Plain Layout
3689 key
3690 \end_layout
3691
3692 \end_inset
3693
3694  outstring 
3695 \end_layout
3696
3697 \begin_layout Standard
3698 where 
3699 \begin_inset Flex Code
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703 key
3704 \end_layout
3705
3706 \end_inset
3707
3708  is the key to be translated and 
3709 \begin_inset Flex Code
3710 status collapsed
3711
3712 \begin_layout Plain Layout
3713 outstring
3714 \end_layout
3715
3716 \end_inset
3717
3718  is the string to be inserted into the document.
3719  To define dead keys, use:
3720 \end_layout
3721
3722 \begin_layout Quotation
3723 \begin_inset Flex Code
3724 status collapsed
3725
3726 \begin_layout Plain Layout
3727
3728 \backslash
3729 kmod
3730 \end_layout
3731
3732 \end_inset
3733
3734  
3735 \begin_inset Flex Code
3736 status collapsed
3737
3738 \begin_layout Plain Layout
3739 key
3740 \end_layout
3741
3742 \end_inset
3743
3744  deadkey
3745 \end_layout
3746
3747 \begin_layout Standard
3748 where 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 key
3754 \end_layout
3755
3756 \end_inset
3757
3758  is a keyboard key and 
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 deadkey
3764 \end_layout
3765
3766 \end_inset
3767
3768  is dead key name.
3769  The following dead keys are supported (shortcut name is in parentheses):
3770 \end_layout
3771
3772 \begin_layout Quotation
3773
3774 \emph on
3775 Name
3776 \begin_inset space \hfill{}
3777 \end_inset
3778
3779 Example
3780 \end_layout
3781
3782 \begin_layout Quotation
3783 acute (acu)
3784 \begin_inset space \hfill{}
3785 \end_inset
3786
3787 áéíóú
3788 \end_layout
3789
3790 \begin_layout Quotation
3791 grave (gra)
3792 \begin_inset space \hfill{}
3793 \end_inset
3794
3795 àèìòù
3796 \end_layout
3797
3798 \begin_layout Quotation
3799 macron (mac)
3800 \begin_inset space \hfill{}
3801 \end_inset
3802
3803  ō
3804 \end_layout
3805
3806 \begin_layout Quotation
3807 tilde (til)
3808 \begin_inset space \hfill{}
3809 \end_inset
3810
3811 ñÑ
3812 \end_layout
3813
3814 \begin_layout Quotation
3815 underbar (underb)
3816 \begin_inset space \hfill{}
3817 \end_inset
3818
3819
3820 \begin_inset ERT
3821 status open
3822
3823 \begin_layout Plain Layout
3824
3825
3826 \backslash
3827 b o
3828 \end_layout
3829
3830 \end_inset
3831
3832
3833 \end_layout
3834
3835 \begin_layout Quotation
3836 cedilla (ced)
3837 \begin_inset space \hfill{}
3838 \end_inset
3839
3840 çÇ
3841 \end_layout
3842
3843 \begin_layout Quotation
3844 underdot (underd)
3845 \begin_inset space \hfill{}
3846 \end_inset
3847
3848
3849 \begin_inset ERT
3850 status open
3851
3852 \begin_layout Plain Layout
3853
3854
3855 \backslash
3856 d o
3857 \end_layout
3858
3859 \end_inset
3860
3861
3862 \end_layout
3863
3864 \begin_layout Quotation
3865 circumflex (circu)
3866 \begin_inset space \hfill{}
3867 \end_inset
3868
3869 âêîôû
3870 \end_layout
3871
3872 \begin_layout Quotation
3873 circle (circl)
3874 \begin_inset space \hfill{}
3875 \end_inset
3876
3877 ÅůŮ
3878 \end_layout
3879
3880 \begin_layout Quotation
3881 tie (tie)
3882 \begin_inset space \hfill{}
3883 \end_inset
3884
3885
3886 \begin_inset ERT
3887 status open
3888
3889 \begin_layout Plain Layout
3890
3891
3892 \backslash
3893 t o
3894 \end_layout
3895
3896 \end_inset
3897
3898
3899 \end_layout
3900
3901 \begin_layout Quotation
3902 breve (bre)
3903 \begin_inset space \hfill{}
3904 \end_inset
3905
3906 ă
3907 \begin_inset ERT
3908 status open
3909
3910 \begin_layout Plain Layout
3911
3912
3913 \backslash
3914 u o
3915 \end_layout
3916
3917 \end_inset
3918
3919
3920 \end_layout
3921
3922 \begin_layout Quotation
3923 caron (car)
3924 \begin_inset space \hfill{}
3925 \end_inset
3926
3927 čšž
3928 \end_layout
3929
3930 \begin_layout Quotation
3931 hungarian umlaut (hug)
3932 \begin_inset space \hfill{}
3933 \end_inset
3934
3935 őű
3936 \end_layout
3937
3938 \begin_layout Quotation
3939 umlaut (uml)
3940 \begin_inset space \hfill{}
3941 \end_inset
3942
3943 äöü
3944 \end_layout
3945
3946 \begin_layout Quotation
3947 dot (dot)
3948 \begin_inset space \hfill{}
3949 \end_inset
3950
3951 ż
3952 \begin_inset ERT
3953 status open
3954
3955 \begin_layout Plain Layout
3956
3957
3958 \backslash
3959 .s
3960 \end_layout
3961
3962 \end_inset
3963
3964
3965 \end_layout
3966
3967 \begin_layout Standard
3968 Since in many international keyboards there are exceptions to what some
3969  dead keys should do, you can define them using
3970 \end_layout
3971
3972 \begin_layout Quotation
3973 \begin_inset Flex Code
3974 status collapsed
3975
3976 \begin_layout Plain Layout
3977
3978 \backslash
3979 kxmod
3980 \end_layout
3981
3982 \end_inset
3983
3984  deadkey key outstring
3985 \end_layout
3986
3987 \begin_layout Standard
3988 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3989 , so you put in
3990 \end_layout
3991
3992 \begin_layout Quotation
3993 \begin_inset Flex Code
3994 status collapsed
3995
3996 \begin_layout Plain Layout
3997
3998 \backslash
3999 kxmod
4000 \end_layout
4001
4002 \end_inset
4003
4004  caron o "
4005 \backslash
4006 ^o"
4007 \end_layout
4008
4009 \begin_layout Standard
4010 to make it work correctly.
4011  Also, you have to define as exceptions dead keys over i and j, to remove
4012  the dot from them before inserting an accent mark.
4013  I will change this when the time comes, but so far I haven't had time.
4014 \end_layout
4015
4016 \begin_layout Standard
4017 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4018  double backslash.
4019  Also, quotes and 
4020 \begin_inset Flex Code
4021 status collapsed
4022
4023 \begin_layout Plain Layout
4024 #
4025 \end_layout
4026
4027 \end_inset
4028
4029  have different meaning.
4030  
4031 \begin_inset Flex Code
4032 status collapsed
4033
4034 \begin_layout Plain Layout
4035 #
4036 \end_layout
4037
4038 \end_inset
4039
4040  marks comments, quotes start and end \SpecialChar LaTeX
4041 -style commands.
4042  To enter quote, you'll need to use 
4043 \begin_inset Flex Code
4044 status collapsed
4045
4046 \begin_layout Plain Layout
4047
4048 \backslash
4049 "
4050 \end_layout
4051
4052 \end_inset
4053
4054 , to enter 
4055 \begin_inset Flex Code
4056 status collapsed
4057
4058 \begin_layout Plain Layout
4059 #
4060 \end_layout
4061
4062 \end_inset
4063
4064 , use 
4065 \begin_inset Flex Code
4066 status collapsed
4067
4068 \begin_layout Plain Layout
4069
4070 \backslash
4071 #
4072 \end_layout
4073
4074 \end_inset
4075
4076 .
4077 \end_layout
4078
4079 \begin_layout Standard
4080 If you make a keyboard description file that works for your language, please
4081  mail it to me, so I can include it in the next keymap distribution.
4082 \end_layout
4083
4084 \begin_layout Standard
4085 More keywords will be supported in keymap configuration file in future,
4086  like
4087 \end_layout
4088
4089 \begin_layout Itemize
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094
4095 \backslash
4096 kinclude filename
4097 \end_layout
4098
4099 \end_inset
4100
4101
4102 \emph on
4103
4104 \begin_inset space \hfill{}
4105 \end_inset
4106
4107
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112 include
4113 \end_layout
4114
4115 \end_inset
4116
4117  another file
4118 \end_layout
4119
4120 \begin_layout Itemize
4121 \begin_inset Flex Code
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125
4126 \backslash
4127 kprog program
4128 \end_layout
4129
4130 \end_inset
4131
4132
4133 \emph on
4134
4135 \begin_inset space \hfill{}
4136 \end_inset
4137
4138
4139 \begin_inset Flex Code
4140 status collapsed
4141
4142 \begin_layout Plain Layout
4143 define
4144 \end_layout
4145
4146 \end_inset
4147
4148  an external keymap translation program 
4149 \end_layout
4150
4151 \begin_layout Standard
4152 Also, it should look into 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 lyxrc
4158 \end_layout
4159
4160 \end_inset
4161
4162  file for defaults, too (for example, a 
4163 \begin_inset Flex Code
4164 status collapsed
4165
4166 \begin_layout Plain Layout
4167
4168 \backslash
4169 kinclude
4170 \end_layout
4171
4172 \end_inset
4173
4174  option to include default keyboard).
4175 \end_layout
4176
4177 \end_inset
4178
4179
4180 \end_layout
4181
4182 \begin_layout Section
4183 International Keymap Stuff
4184 \begin_inset CommandInset label
4185 LatexCommand label
4186 name "sec:International-Keymap-Stuff"
4187
4188 \end_inset
4189
4190
4191 \end_layout
4192
4193 \begin_layout Standard
4194 \begin_inset Note Note
4195 status open
4196
4197 \begin_layout Plain Layout
4198 In doing the revisions on this document in March 2008, I did not look over
4199  this stuff, as I do not understand it.
4200  It would be good if someone else could do so.
4201  (RH)
4202 \end_layout
4203
4204 \end_inset
4205
4206
4207 \end_layout
4208
4209 \begin_layout Standard
4210 The next two sections describe the 
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215
4216 \shape up
4217 .kmap
4218 \end_layout
4219
4220 \end_inset
4221
4222  and 
4223 \begin_inset Flex Code
4224 status collapsed
4225
4226 \begin_layout Plain Layout
4227
4228 \shape up
4229 .cdef
4230 \end_layout
4231
4232 \end_inset
4233
4234  file syntax in detail.
4235  These sections should help you design your own key map if the ones provided
4236  do not meet your needs.
4237 \end_layout
4238
4239 \begin_layout Subsection
4240 The .kmap File
4241 \end_layout
4242
4243 \begin_layout Standard
4244
4245 \shape up
4246 .
4247 \begin_inset Flex Code
4248 status collapsed
4249
4250 \begin_layout Plain Layout
4251 kmap
4252 \end_layout
4253
4254 \end_inset
4255
4256  file maps keystrokes to characters or strings.
4257  As the name suggests, it sets a keyboard mapping.
4258  The 
4259 \begin_inset Flex Code
4260 status collapsed
4261
4262 \begin_layout Plain Layout
4263 .kmap
4264 \end_layout
4265
4266 \end_inset
4267
4268
4269 \shape default
4270  file keywords 
4271 \shape up
4272
4273 \begin_inset Flex Code
4274 status collapsed
4275
4276 \begin_layout Plain Layout
4277
4278 \shape up
4279 kmap
4280 \end_layout
4281
4282 \end_inset
4283
4284
4285 \shape default
4286 ,
4287 \shape up
4288  
4289 \shape default
4290
4291 \begin_inset Flex Code
4292 status collapsed
4293
4294 \begin_layout Plain Layout
4295
4296 \shape up
4297 kmod
4298 \end_layout
4299
4300 \end_inset
4301
4302 ,
4303 \shape up
4304  
4305 \shape default
4306
4307 \begin_inset Flex Code
4308 status collapsed
4309
4310 \begin_layout Plain Layout
4311
4312 \shape up
4313 kxmod
4314 \end_layout
4315
4316 \end_inset
4317
4318 , and 
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323
4324 \shape up
4325 kcomb
4326 \end_layout
4327
4328 \end_inset
4329
4330  are described in this section.
4331 \end_layout
4332
4333 \begin_layout Labeling
4334 \labelwidthstring 00.00.0000
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339
4340 \shape up
4341 kmap
4342 \end_layout
4343
4344 \end_inset
4345
4346  Map a character to a string
4347 \end_layout
4348
4349 \begin_layout LyX-Code
4350
4351 \backslash
4352 kmap 
4353 \family roman
4354 \emph on
4355 char
4356 \family default
4357 \emph default
4358  
4359 \family roman
4360 \emph on
4361 string
4362 \end_layout
4363
4364 \begin_layout Standard
4365 This will ma
4366 \family roman
4367 p
4368 \family default
4369  
4370 \family roman
4371 \emph on
4372 char
4373 \family default
4374 \emph default
4375  
4376 \family roman
4377 to
4378 \family default
4379  
4380 \family roman
4381 \emph on
4382 string
4383 \emph default
4384 .
4385  Note that in
4386 \family default
4387  
4388 \family roman
4389 \emph on
4390 string
4391 \emph default
4392 ,
4393 \family default
4394  
4395 \family roman
4396 \shape up
4397 the double-quote (")
4398 \family default
4399 \shape default
4400  
4401 \family roman
4402 and
4403 \family default
4404  
4405 \family roman
4406 \shape up
4407 the backslash (
4408 \backslash
4409 )
4410 \family default
4411 \shape default
4412  
4413 \family roman
4414 must be escaped with a preceding backslash (
4415 \shape up
4416
4417 \backslash
4418
4419 \shape default
4420 )
4421 \family default
4422 .
4423 \end_layout
4424
4425 \begin_layout Standard
4426 An example of a 
4427 \begin_inset Flex Noun
4428 status collapsed
4429
4430 \begin_layout Plain Layout
4431
4432 \shape up
4433 kmap
4434 \end_layout
4435
4436 \end_inset
4437
4438  statement to cause the symbol 
4439 \begin_inset Flex Noun
4440 status collapsed
4441
4442 \begin_layout Plain Layout
4443
4444 \shape up
4445 /
4446 \end_layout
4447
4448 \end_inset
4449
4450  to be output for the keystroke 
4451 \begin_inset Flex Noun
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455
4456 \shape up
4457 &
4458 \end_layout
4459
4460 \end_inset
4461
4462  is:
4463 \end_layout
4464
4465 \begin_layout LyX-Code
4466
4467 \backslash
4468 kmap & /
4469 \end_layout
4470
4471 \begin_layout Labeling
4472 \labelwidthstring 00.00.0000
4473 \begin_inset Flex Code
4474 status collapsed
4475
4476 \begin_layout Plain Layout
4477
4478 \shape up
4479 kmod
4480 \end_layout
4481
4482 \end_inset
4483
4484  Specify an accent character
4485 \end_layout
4486
4487 \begin_layout LyX-Code
4488
4489 \backslash
4490 kmod 
4491 \family roman
4492 \emph on
4493 char accent allowed
4494 \end_layout
4495
4496 \begin_layout Standard
4497 This will make the cha
4498 \family roman
4499 racter
4500 \family default
4501  
4502 \family roman
4503 \emph on
4504 char
4505 \family default
4506 \emph default
4507  
4508 \family roman
4509 \shape up
4510 \emph on
4511 be an accent
4512 \family default
4513 \shape default
4514 \emph default
4515  
4516 \family roman
4517 \shape up
4518 on the
4519 \family default
4520 \shape default
4521  
4522 \family roman
4523 \shape up
4524 \emph on
4525 allowed
4526 \family default
4527 \shape default
4528 \emph default
4529  
4530 \family roman
4531 \shape up
4532 cha
4533 \family default
4534 racter(s).
4535  This is the dead key
4536 \begin_inset Foot
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 The term 
4541 \family roman
4542 \emph on
4543 dead key
4544 \family default
4545 \emph default
4546  refers to a key that does not produce a character by itself, but when followed
4547  with another key, produces the desired accent character.
4548  For example, a German characte
4549 \family roman
4550 r with an umlaut like
4551 \family default
4552  
4553 \family roman
4554 \emph on
4555 ä
4556 \family default
4557 \emph default
4558  
4559 \family roman
4560 can be produced in this manner.
4561 \end_layout
4562
4563 \end_inset
4564
4565  mechanism.
4566  
4567 \end_layout
4568
4569 \begin_layout Standard
4570 If you 
4571 \family roman
4572 hit
4573 \family default
4574  
4575 \family roman
4576 \emph on
4577 char
4578 \family default
4579 \emph default
4580  
4581 \family roman
4582 and then another key not in
4583 \family default
4584  
4585 \family roman
4586 \emph on
4587 allowed
4588 \emph default
4589 , you will get a
4590 \family default
4591  
4592 \family roman
4593 \emph on
4594 char
4595 \family default
4596 \emph default
4597  
4598 \family roman
4599 followed by the other, not allowed key, as output.
4600
4601 \family default
4602  Note that a 
4603 \begin_inset Flex Noun
4604 status collapsed
4605
4606 \begin_layout Plain Layout
4607
4608 \shape up
4609 Backspace
4610 \end_layout
4611
4612 \end_inset
4613
4614  cancels a dead key, so if 
4615 \family roman
4616 you hit
4617 \family default
4618  
4619 \family roman
4620 \emph on
4621 char
4622 \family default
4623 \emph default
4624  
4625 \begin_inset Flex Noun
4626 status collapsed
4627
4628 \begin_layout Plain Layout
4629
4630 \shape up
4631 \emph on
4632 Backspace
4633 \end_layout
4634
4635 \end_inset
4636
4637 , the cursor will not go one position backwards but will instead cancel
4638  the effect t
4639 \family roman
4640 hat
4641 \family default
4642  
4643 \family roman
4644 \shape up
4645 \emph on
4646 char
4647 \family default
4648 \shape default
4649 \emph default
4650  
4651 \family roman
4652 \shape up
4653 might have had on the next keystroke.
4654  
4655 \end_layout
4656
4657 \begin_layout Standard
4658 The following example specifies that the character ' is to be an acute accent,
4659  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4660 \end_layout
4661
4662 \begin_layout LyX-Code
4663
4664 \backslash
4665 kmod ' acute aeiouAEIOU
4666 \end_layout
4667
4668 \begin_layout Labeling
4669 \labelwidthstring 00.00.0000
4670 \begin_inset Flex Code
4671 status collapsed
4672
4673 \begin_layout Plain Layout
4674 kxmod
4675 \end_layout
4676
4677 \end_inset
4678
4679  Specify an exception to the accent character
4680 \end_layout
4681
4682 \begin_layout LyX-Code
4683
4684 \backslash
4685 kxmod  
4686 \family roman
4687 \emph on
4688 accent char result
4689 \end_layout
4690
4691 \begin_layout Standard
4692 This defines an exce
4693 \family roman
4694 ption for
4695 \family default
4696  
4697 \family roman
4698 \emph on
4699 accent
4700 \family default
4701 \emph default
4702  
4703 \family roman
4704 on
4705 \family default
4706  
4707 \family roman
4708 \emph on
4709 char
4710 \emph default
4711 .
4712  T
4713 \shape up
4714 he
4715 \family default
4716 \shape default
4717  
4718 \family roman
4719 \shape up
4720 \emph on
4721 accent
4722 \family default
4723 \shape default
4724 \emph default
4725  
4726 \family roman
4727 \shape up
4728 must
4729 \family default
4730 \shape default
4731  
4732 \shape up
4733 have been assigned a keystroke with a previous
4734 \shape default
4735  
4736 \begin_inset Flex Code
4737 status collapsed
4738
4739 \begin_layout Plain Layout
4740
4741 \shape up
4742
4743 \backslash
4744 kmo
4745 \shape default
4746 d
4747 \end_layout
4748
4749 \end_inset
4750
4751  declar
4752 \family roman
4753 ation and
4754 \family default
4755  
4756 \family roman
4757 \emph on
4758 char
4759 \family default
4760 \emph default
4761  
4762 \family roman
4763 must not belong in the
4764 \family default
4765  
4766 \family roman
4767 \emph on
4768 allowed
4769 \family default
4770 \emph default
4771  
4772 \family roman
4773 set of
4774 \family default
4775  
4776 \family roman
4777 \emph on
4778 accent
4779 \emph default
4780 .
4781  When
4782 \family default
4783  
4784 \family roman
4785 \shape up
4786 you enter the
4787 \family default
4788 \shape default
4789  
4790 \family roman
4791 \shape up
4792 \emph on
4793 accent char
4794 \family default
4795 \shape default
4796 \emph default
4797  
4798 \family roman
4799 \shape up
4800 sequence,
4801 \family default
4802 \shape default
4803  
4804 \family roman
4805 \shape up
4806 \emph on
4807 result
4808 \emph default
4809  is produced.
4810  If such a declaration does not exist in
4811 \family default
4812 \shape default
4813  
4814 \shape up
4815 the
4816 \shape default
4817  
4818 \begin_inset Flex Code
4819 status collapsed
4820
4821 \begin_layout Plain Layout
4822
4823 \shape up
4824 .kmap
4825 \end_layout
4826
4827 \end_inset
4828
4829  file and yo
4830 \family roman
4831 u enter
4832 \family default
4833  
4834 \family roman
4835 \emph on
4836 accent char
4837 \emph default
4838 , you get
4839 \family default
4840  
4841 \family roman
4842 \emph on
4843 accent_key char
4844 \emph default
4845  where
4846 \family default
4847  
4848 \family roman
4849 \emph on
4850 accent_key
4851 \emph default
4852  is the first arg
4853 \family default
4854 ument of the 
4855 \begin_inset Flex Code
4856 status collapsed
4857
4858 \begin_layout Plain Layout
4859
4860 \shape up
4861
4862 \backslash
4863 kmod
4864 \end_layout
4865
4866 \end_inset
4867
4868  declaration.
4869  
4870 \end_layout
4871
4872 \begin_layout Standard
4873 The following command produces causes äi to be produced when you enter acute-i
4874  ('i):
4875 \end_layout
4876
4877 \begin_layout LyX-Code
4878
4879 \backslash
4880 kxmod acute i "
4881 \backslash
4882
4883 \backslash
4884 '{
4885 \backslash
4886
4887 \backslash
4888 i}"
4889 \end_layout
4890
4891 \begin_layout Labeling
4892 \labelwidthstring 00.00.0000
4893 \begin_inset Flex Code
4894 status collapsed
4895
4896 \begin_layout Plain Layout
4897 kcomb
4898 \end_layout
4899
4900 \end_inset
4901
4902  Combine two accent characters
4903 \end_layout
4904
4905 \begin_layout LyX-Code
4906
4907 \backslash
4908 kcomb 
4909 \family roman
4910 \emph on
4911 accent1 accent2 allowed
4912 \end_layout
4913
4914 \begin_layout Standard
4915 This one is getting pretty esoteric.
4916  It allows you to combine the effect 
4917 \family roman
4918 of
4919 \family default
4920  
4921 \family roman
4922 \emph on
4923 accent1
4924 \family default
4925 \emph default
4926  
4927 \family roman
4928 and
4929 \family default
4930  
4931 \family roman
4932 \emph on
4933 accent2
4934 \family default
4935 \emph default
4936  
4937 \family roman
4938 (in that order!) on
4939 \family default
4940  
4941 \family roman
4942 \emph on
4943 allowed
4944 \family default
4945 \emph default
4946  
4947 \family roman
4948 chars.
4949  The keystrokes for
4950 \family default
4951  
4952 \family roman
4953 \emph on
4954 accent1
4955 \family default
4956 \emph default
4957  
4958 \family roman
4959 and
4960 \family default
4961  
4962 \family roman
4963 \emph on
4964 accent2
4965 \family default
4966 \emph default
4967  
4968 \family roman
4969 must have be
4970 \family default
4971 en set with a 
4972 \begin_inset Flex Code
4973 status collapsed
4974
4975 \begin_layout Plain Layout
4976
4977 \shape up
4978
4979 \backslash
4980 kmod
4981 \end_layout
4982
4983 \end_inset
4984
4985  command at 
4986 \family roman
4987 a
4988 \family default
4989  
4990 \family roman
4991 \emph on
4992 previous
4993 \family default
4994 \emph default
4995  
4996 \family roman
4997 point in the
4998 \family default
4999  file.
5000  
5001 \end_layout
5002
5003 \begin_layout Standard
5004 Consider this example from the 
5005 \begin_inset Flex Code
5006 status collapsed
5007
5008 \begin_layout Plain Layout
5009
5010 \shape up
5011 greek.kmap
5012 \end_layout
5013
5014 \end_inset
5015
5016  file:
5017 \end_layout
5018
5019 \begin_layout LyX-Code
5020
5021 \backslash
5022 kmod ; acute aeioyvhAEIOYVH 
5023 \backslash
5024 kmod : umlaut iyIY 
5025 \backslash
5026 kcomb acute umlaut iyIY
5027 \end_layout
5028
5029 \begin_layout Standard
5030 This allows you to press 
5031 \begin_inset Flex Noun
5032 status collapsed
5033
5034 \begin_layout Plain Layout
5035
5036 \shape up
5037 ;:i
5038 \end_layout
5039
5040 \end_inset
5041
5042  and get the effect of 
5043 \begin_inset Flex Code
5044 status collapsed
5045
5046 \begin_layout Plain Layout
5047
5048 \shape up
5049
5050 \backslash
5051 '{
5052 \backslash
5053 "{i}}
5054 \end_layout
5055
5056 \end_inset
5057
5058 .
5059  
5060 \family roman
5061 \shape up
5062 A backspace
5063 \family default
5064 \shape default
5065  in this case cancels the last dead key, so if you press 
5066 \begin_inset Flex Noun
5067 status collapsed
5068
5069 \begin_layout Plain Layout
5070
5071 \shape up
5072 ;: Backspace i
5073 \end_layout
5074
5075 \end_inset
5076
5077  you get 
5078 \begin_inset Flex Code
5079 status collapsed
5080
5081 \begin_layout Plain Layout
5082
5083 \shape up
5084
5085 \backslash
5086 '{i}
5087 \end_layout
5088
5089 \end_inset
5090
5091 .
5092 \end_layout
5093
5094 \begin_layout Subsection
5095 The .cdef File
5096 \end_layout
5097
5098 \begin_layout Standard
5099 After the 
5100 \begin_inset Flex Code
5101 status collapsed
5102
5103 \begin_layout Plain Layout
5104
5105 \shape up
5106 .kmap
5107 \end_layout
5108
5109 \end_inset
5110
5111  mapping is performed, a 
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116
5117 \shape up
5118 .cde
5119 \shape default
5120 f
5121 \end_layout
5122
5123 \end_inset
5124
5125  file maps the strings that the symbols generate to characters in the current
5126  font.
5127  The \SpecialChar LyX
5128  distribution currently includes at least the 
5129 \begin_inset Flex Code
5130 status collapsed
5131
5132 \begin_layout Plain Layout
5133
5134 \shape up
5135 iso8859-1.cdef
5136 \end_layout
5137
5138 \end_inset
5139
5140  and 
5141 \begin_inset Flex Code
5142 status collapsed
5143
5144 \begin_layout Plain Layout
5145
5146 \shape up
5147 iso8859-2.cdef
5148 \end_layout
5149
5150 \end_inset
5151
5152  files.
5153 \end_layout
5154
5155 \begin_layout Standard
5156 In general the 
5157 \begin_inset Flex Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161
5162 \shape up
5163 .cdef
5164 \end_layout
5165
5166 \end_inset
5167
5168  file is a sequence of declarations of the form
5169 \end_layout
5170
5171 \begin_layout LyX-Code
5172
5173 \family roman
5174 \emph on
5175 char_index_in_set
5176 \family default
5177 \emph default
5178  
5179 \family roman
5180 \emph on
5181  string
5182 \end_layout
5183
5184 \begin_layout Standard
5185 For example, in order to map 
5186 \begin_inset Flex Noun
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190
5191 \shape up
5192
5193 \backslash
5194 '{e}
5195 \end_layout
5196
5197 \end_inset
5198
5199  to the corresponding character in the iso-8859-1 set (233), the following
5200  declaration is used
5201 \end_layout
5202
5203 \begin_layout LyX-Code
5204 233 "
5205 \backslash
5206
5207 \backslash
5208 '{e}"
5209 \end_layout
5210
5211 \begin_layout Standard
5212 with 
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217
5218 \backslash
5219
5220 \end_layout
5221
5222 \end_inset
5223
5224  and 
5225 \begin_inset Flex Code
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229 "
5230 \end_layout
5231
5232 \end_inset
5233
5234  being escap
5235 \family roman
5236 ed in
5237 \family default
5238  
5239 \family roman
5240 \emph on
5241 string
5242 \emph default
5243 .
5244  Note that
5245 \family default
5246  the same character can apply to more than one string.
5247  In the 
5248 \begin_inset Flex Code
5249 status collapsed
5250
5251 \begin_layout Plain Layout
5252 i
5253 \shape up
5254 so-8859-7.cdef
5255 \end_layout
5256
5257 \end_inset
5258
5259  file you have
5260 \end_layout
5261
5262 \begin_layout LyX-Code
5263 192 "
5264 \backslash
5265
5266 \backslash
5267 '{
5268 \backslash
5269
5270 \backslash
5271
5272 \backslash
5273 "{i}}"
5274 \begin_inset Newline newline
5275 \end_inset
5276
5277 192 "
5278 \backslash
5279
5280 \backslash
5281
5282 \backslash
5283 "{
5284 \backslash
5285
5286 \backslash
5287 '{i}}"
5288 \end_layout
5289
5290 \begin_layout Standard
5291 If \SpecialChar LyX
5292  cannot find a mapping for the string produced by the keystroke or a
5293  deadkey sequence, it will check if it looks like an accented char and try
5294  to draw an accent over the character on screen.
5295 \end_layout
5296
5297 \begin_layout Subsection
5298 Dead Keys
5299 \end_layout
5300
5301 \begin_layout Standard
5302 There is a second way to add support for international characters through
5303  so-called dead-keys.
5304  A dead-key works in combination with a letter to produce an accented character.
5305  Here, we'll explain how to create a really simple dead-key to illustrate
5306  how they work.
5307 \end_layout
5308
5309 \begin_layout Standard
5310 Suppose you happen to need the circumflex character, 
5311 \begin_inset Quotes eld
5312 \end_inset
5313
5314  ̂
5315 \begin_inset Quotes erd
5316 \end_inset
5317
5318 .
5319  You could bind the 
5320 \begin_inset Flex Noun
5321 status collapsed
5322
5323 \begin_layout Plain Layout
5324 ^
5325 \end_layout
5326
5327 \end_inset
5328
5329 -key [a.k.a.
5330 \begin_inset space ~
5331 \end_inset
5332
5333
5334 \begin_inset Flex Noun
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338 Shift-6
5339 \end_layout
5340
5341 \end_inset
5342
5343 ] to the \SpecialChar LyX
5344  command 
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349 accent-circumflex
5350 \end_layout
5351
5352 \end_inset
5353
5354  in your 
5355 \begin_inset Flex Code
5356 status collapsed
5357
5358 \begin_layout Plain Layout
5359 lyxrc
5360 \end_layout
5361
5362 \end_inset
5363
5364  file.
5365  Now, whenever you type the 
5366 \begin_inset Flex Noun
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370 ^
5371 \end_layout
5372
5373 \end_inset
5374
5375 -key followed by a letter, that letter will have a circumflex accent on
5376  it.
5377  For example, the sequence 
5378 \begin_inset Quotes eld
5379 \end_inset
5380
5381
5382 \begin_inset Flex Noun
5383 status collapsed
5384
5385 \begin_layout Plain Layout
5386 ^e
5387 \end_layout
5388
5389 \end_inset
5390
5391
5392 \begin_inset Quotes erd
5393 \end_inset
5394
5395  produces the letter: 
5396 \begin_inset Quotes eld
5397 \end_inset
5398
5399 ê
5400 \begin_inset Quotes erd
5401 \end_inset
5402
5403 .
5404  If you tried to type 
5405 \begin_inset Quotes eld
5406 \end_inset
5407
5408
5409 \begin_inset Flex Noun
5410 status collapsed
5411
5412 \begin_layout Plain Layout
5413 ^t
5414 \end_layout
5415
5416 \end_inset
5417
5418
5419 \begin_inset Quotes erd
5420 \end_inset
5421
5422 , however, \SpecialChar LyX
5423  will complain with a beep, since a 
5424 \begin_inset Quotes eld
5425 \end_inset
5426
5427
5428 \begin_inset Flex Noun
5429 status collapsed
5430
5431 \begin_layout Plain Layout
5432 t
5433 \end_layout
5434
5435 \end_inset
5436
5437
5438 \begin_inset Quotes erd
5439 \end_inset
5440
5441  never takes a circumflex accent.
5442  Hitting 
5443 \begin_inset Flex Noun
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 Space
5448 \end_layout
5449
5450 \end_inset
5451
5452  after a dead-key produces the bare-accent.
5453  Please note this last point! If you bind a key to a dead-key, you'll need
5454  to rebind the character on that key to yet another key.
5455  Binding the 
5456 \begin_inset Flex Noun
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460 ,-key
5461 \end_layout
5462
5463 \end_inset
5464
5465  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5466 \end_layout
5467
5468 \begin_layout Standard
5469 One common way to bind dead-keys is to use 
5470 \begin_inset Flex Noun
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474 Meta-
5475 \end_layout
5476
5477 \end_inset
5478
5479
5480 \begin_inset Flex Noun
5481 status collapsed
5482
5483 \begin_layout Plain Layout
5484 Ctrl-
5485 \end_layout
5486
5487 \end_inset
5488
5489 , and 
5490 \begin_inset Flex Noun
5491 status collapsed
5492
5493 \begin_layout Plain Layout
5494 Shift-
5495 \end_layout
5496
5497 \end_inset
5498
5499  in combination with an accent, like 
5500 \begin_inset Quotes eld
5501 \end_inset
5502
5503
5504 \begin_inset Flex Noun
5505 status collapsed
5506
5507 \begin_layout Plain Layout
5508 ~
5509 \end_layout
5510
5511 \end_inset
5512
5513
5514 \begin_inset Quotes erd
5515 \end_inset
5516
5517  or 
5518 \begin_inset Quotes eld
5519 \end_inset
5520
5521
5522 \begin_inset Flex Noun
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 ,
5527 \end_layout
5528
5529 \end_inset
5530
5531
5532 \begin_inset Quotes erd
5533 \end_inset
5534
5535  or 
5536 \begin_inset Quotes eld
5537 \end_inset
5538
5539
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 ^
5545 \end_layout
5546
5547 \end_inset
5548
5549
5550 \begin_inset Quotes erd
5551 \end_inset
5552
5553 .
5554  Another way involves using 
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 xmodmap
5560 \end_layout
5561
5562 \end_inset
5563
5564  and 
5565 \begin_inset Flex Code
5566 status collapsed
5567
5568 \begin_layout Plain Layout
5569 xkeycaps
5570 \end_layout
5571
5572 \end_inset
5573
5574  to set up the special 
5575 \begin_inset Flex Code
5576 status collapsed
5577
5578 \begin_layout Plain Layout
5579 Mode_Switch
5580 \end_layout
5581
5582 \end_inset
5583
5584  key.
5585  The 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590 Mode_Switch
5591 \end_layout
5592
5593 \end_inset
5594
5595  acts in some ways just like 
5596 \begin_inset Flex Noun
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 Shift
5601 \end_layout
5602
5603 \end_inset
5604
5605  and permits you to bind keys to accented characters.
5606  You can also turn keys into dead-keys by binding them to something like
5607  
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612 usldead_cedilla
5613 \end_layout
5614
5615 \end_inset
5616
5617  and then binding this symbolic key to the corresponding \SpecialChar LyX
5618  command.
5619 \begin_inset Foot
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 Note from 
5624 \noun on
5625 John Weiss
5626 \noun default
5627 : This is exactly what I do in my 
5628 \begin_inset Flex Code
5629 status collapsed
5630
5631 \begin_layout Plain Layout
5632 ~/.lyx/lyxrc
5633 \end_layout
5634
5635 \end_inset
5636
5637  and my 
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 ~/.xmodmap
5643 \end_layout
5644
5645 \end_inset
5646
5647  files.
5648  I have my 
5649 \begin_inset Flex Noun
5650 status collapsed
5651
5652 \begin_layout Plain Layout
5653 Scroll
5654 \begin_inset space ~
5655 \end_inset
5656
5657 Lock
5658 \end_layout
5659
5660 \end_inset
5661
5662  key set up as 
5663 \begin_inset Flex Code
5664 status collapsed
5665
5666 \begin_layout Plain Layout
5667 Mode_Shift
5668 \end_layout
5669
5670 \end_inset
5671
5672  and a bunch of these 
5673 \begin_inset Quotes eld
5674 \end_inset
5675
5676
5677 \begin_inset Flex Code
5678 status collapsed
5679
5680 \begin_layout Plain Layout
5681 usldead_*
5682 \end_layout
5683
5684 \end_inset
5685
5686
5687 \begin_inset Quotes erd
5688 \end_inset
5689
5690  symbolic keys bound such things as 
5691 \begin_inset Flex Noun
5692 status collapsed
5693
5694 \begin_layout Plain Layout
5695 Scroll
5696 \begin_inset space ~
5697 \end_inset
5698
5699 Lock-^
5700 \end_layout
5701
5702 \end_inset
5703
5704  and 
5705 \begin_inset Flex Noun
5706 status collapsed
5707
5708 \begin_layout Plain Layout
5709 Scroll
5710 \begin_inset space ~
5711 \end_inset
5712
5713 Lock-~
5714 \end_layout
5715
5716 \end_inset
5717
5718 .
5719  This is how I produce my accented characters.
5720 \end_layout
5721
5722 \end_inset
5723
5724  You can make just about anything into the 
5725 \begin_inset Flex Code
5726 status collapsed
5727
5728 \begin_layout Plain Layout
5729 Mode_Switch
5730 \end_layout
5731
5732 \end_inset
5733
5734  key: One of the 
5735 \begin_inset Flex Noun
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 Ctrl-
5740 \end_layout
5741
5742 \end_inset
5743
5744  keys, a spare function key, etc.
5745  As for the \SpecialChar LyX
5746  commands that produce accents, check the entry for 
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751 accent-acute
5752 \end_layout
5753
5754 \end_inset
5755
5756  in the 
5757 \emph on
5758 Reference Manual
5759 \emph default
5760 .
5761  You'll find the complete list there.
5762 \end_layout
5763
5764 \begin_layout Subsection
5765 Saving your Language Configuration
5766 \end_layout
5767
5768 \begin_layout Standard
5769 You can edit your preferences so that your desired language environment
5770  is automatically configured when \SpecialChar LyX
5771  starts up, via the 
5772 \begin_inset Flex Noun
5773 status collapsed
5774
5775 \begin_layout Plain Layout
5776 Edit\SpecialChar menuseparator
5777 Preferences
5778 \end_layout
5779
5780 \end_inset
5781
5782  dialog.
5783 \end_layout
5784
5785 \begin_layout Chapter
5786 Installing New Document Classes, Layouts, and Templates
5787 \begin_inset CommandInset label
5788 LatexCommand label
5789 name "cha:Installing-New-Document"
5790
5791 \end_inset
5792
5793
5794 \begin_inset Argument 1
5795 status collapsed
5796
5797 \begin_layout Plain Layout
5798 Installing New Document Classes
5799 \end_layout
5800
5801 \end_inset
5802
5803
5804 \end_layout
5805
5806 \begin_layout Standard
5807 In this chapter, we describe the procedures for creating and installing
5808  new \SpecialChar LyX
5809  layout and template files, as well as offer a refresher on correctly
5810  installing new \SpecialChar LaTeX
5811  document classes.
5812  
5813 \end_layout
5814
5815 \begin_layout Standard
5816 First, let us a say a few words about how one ought to think about the relation
5817  between \SpecialChar LyX
5818  and \SpecialChar LaTeX
5819 .
5820  The thing to understand is that, in a certain sense, \SpecialChar LyX
5821  doesn't know anything
5822  about \SpecialChar LaTeX
5823 .
5824  Indeed, from \SpecialChar LyX
5825 's point of view, \SpecialChar LaTeX
5826  is just one of several 
5827 \begin_inset Quotes eld
5828 \end_inset
5829
5830 backend formats
5831 \begin_inset Quotes erd
5832 \end_inset
5833
5834  in which it is capable of producing output.
5835  Other such formats are DocBook, plaintext, and XHTML.
5836  \SpecialChar LaTeX
5837  is, of course, a particularly important format, but very little of the
5838  information \SpecialChar LyX
5839  has about \SpecialChar LaTeX
5840  is actually contained in the program itself.
5841 \begin_inset Foot
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 Some commands are sufficiently complex that they are 
5846 \begin_inset Quotes eld
5847 \end_inset
5848
5849 hardcoded
5850 \begin_inset Quotes erd
5851 \end_inset
5852
5853  into \SpecialChar LyX
5854 .
5855  But the developers generally regard this as a Bad Thing.
5856 \end_layout
5857
5858 \end_inset
5859
5860  Rather, that information, even for the standard classes like 
5861 \begin_inset Flex Code
5862 status collapsed
5863
5864 \begin_layout Plain Layout
5865 article.cls
5866 \end_layout
5867
5868 \end_inset
5869
5870 , is contained in `layout files'.
5871  Similarly, \SpecialChar LyX
5872  itself does not know much about DocBook or XHTML.
5873  What it knows is contained in layout files.
5874 \end_layout
5875
5876 \begin_layout Standard
5877 You can think of the layout file for a given document class as a translation
5878  manual between \SpecialChar LyX
5879  constructs—paragraphs with their corresponding styles,
5880  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5881 , DocBook, or XHTML
5882  constructs.
5883  Almost everything \SpecialChar LyX
5884  knows about 
5885 \begin_inset Flex Code
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 article.cls
5890 \end_layout
5891
5892 \end_inset
5893
5894 , for example, is contained in the file 
5895 \begin_inset Flex Code
5896 status collapsed
5897
5898 \begin_layout Plain Layout
5899 article.layout
5900 \end_layout
5901
5902 \end_inset
5903
5904  and in various other files it includes.
5905  For this reason, anyone intending to write layout files should plan to
5906  study the existing files.
5907  A good place to start is with 
5908 \begin_inset Flex Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 stdsections.inc
5913 \end_layout
5914
5915 \end_inset
5916
5917 , which is included in 
5918 \begin_inset Flex Code
5919 status collapsed
5920
5921 \begin_layout Plain Layout
5922 article.layout
5923 \end_layout
5924
5925 \end_inset
5926
5927
5928 \begin_inset Flex Code
5929 status collapsed
5930
5931 \begin_layout Plain Layout
5932 book.layout
5933 \end_layout
5934
5935 \end_inset
5936
5937 , and many of the other layout files for document classes.
5938  This file is where sections and the like are defined: 
5939 \begin_inset Flex Code
5940 status collapsed
5941
5942 \begin_layout Plain Layout
5943 stdsections.inc
5944 \end_layout
5945
5946 \end_inset
5947
5948  tells \SpecialChar LyX
5949  how paragraphs that are marked with the Section, Subsection, etc,
5950  styles can be translated into corresponding \SpecialChar LaTeX
5951 , DocBook, and XHTML commands
5952  and tags.
5953  The 
5954 \begin_inset Flex Code
5955 status collapsed
5956
5957 \begin_layout Plain Layout
5958 article.layout
5959 \end_layout
5960
5961 \end_inset
5962
5963  file basically just includes several of these 
5964 \begin_inset Flex Code
5965 status collapsed
5966
5967 \begin_layout Plain Layout
5968 std*.inc
5969 \end_layout
5970
5971 \end_inset
5972
5973  files.
5974 \end_layout
5975
5976 \begin_layout Standard
5977 Defining the \SpecialChar LyX
5978 –\SpecialChar LaTeX
5979  correspondence is not the only thing layout files do, though.
5980  Their other job is to define how the \SpecialChar LyX
5981  constructs themselves will appear
5982  on-screen.
5983  The fact that layout files have these two jobs is often a source of confusion,
5984  because they are completely separate.
5985  Telling \SpecialChar LyX
5986  how to translate a certain paragraph style into \SpecialChar LaTeX
5987  does not tell
5988  \SpecialChar LyX
5989  how to display it; conversely, telling \SpecialChar LyX
5990  how to display a certain paragraph
5991  style does not tell \SpecialChar LyX
5992  how to translate it into \SpecialChar LaTeX
5993  (let alone tell \SpecialChar LaTeX
5994  how to
5995  display it).
5996  So, in general, when you define a new \SpecialChar LyX
5997  construct, you must always do two
5998  quite separate things: (i)
5999 \begin_inset space ~
6000 \end_inset
6001
6002 tell \SpecialChar LyX
6003  how to translate it into \SpecialChar LaTeX
6004  and (ii)
6005 \begin_inset space ~
6006 \end_inset
6007
6008 tell \SpecialChar LyX
6009  how to display it.
6010 \end_layout
6011
6012 \begin_layout Standard
6013 Much the same is true, of course, as regards \SpecialChar LyX
6014 's other backend formats, though
6015  XHTML is in some ways different, because in that case \SpecialChar LyX
6016  
6017 \emph on
6018 is
6019 \emph default
6020  able, to some extent, to use information about how it should display a
6021  paragraph on the screen to output information (in the form of CSS) about
6022  how the paragraph should be displayed in a browser.
6023  Even in this case, however, the distinction between what \SpecialChar LyX
6024  does internally
6025  and how things are rendered externally remains in force, and the two can
6026  be controlled separately.
6027  See 
6028 \begin_inset CommandInset ref
6029 LatexCommand ref
6030 reference "sec:Tags-for-XHTML"
6031
6032 \end_inset
6033
6034  for the details.
6035 \end_layout
6036
6037 \begin_layout Section
6038 Installing new \SpecialChar LaTeX
6039  files
6040 \end_layout
6041
6042 \begin_layout Standard
6043 Some installations may not include a \SpecialChar LaTeX
6044  package or class file that you would
6045  like to use within \SpecialChar LyX
6046 .
6047  For example, you might need Foil\SpecialChar TeX
6048 , a package for preparing slides for overhead
6049  projectors.
6050  Modern \SpecialChar LaTeX
6051  distributions like \SpecialChar TeX
6052 Live (2008 or newer) or MiK\SpecialChar TeX
6053  provide a user interface
6054  for installing such packages.
6055  For example, with MiK\SpecialChar TeX
6056 , you start the program 
6057 \begin_inset Quotes eld
6058 \end_inset
6059
6060 Package
6061 \begin_inset space ~
6062 \end_inset
6063
6064 Manager
6065 \begin_inset Quotes erd
6066 \end_inset
6067
6068  to get a list of available packages.
6069  To install one of them, right click on it or use the corresponding toolbar
6070  button.
6071 \end_layout
6072
6073 \begin_layout Standard
6074 If your \SpecialChar LaTeX
6075  distribution does not provide such a `package manager', or if the
6076  package is not available from your distribution, then follow these steps
6077  to install it manually:
6078 \end_layout
6079
6080 \begin_layout Enumerate
6081 Get the package from 
6082 \begin_inset CommandInset href
6083 LatexCommand href
6084 name "CTAN"
6085 target "http://www.ctan.org/"
6086 literal "false"
6087
6088 \end_inset
6089
6090  or wherever.
6091 \end_layout
6092
6093 \begin_layout Enumerate
6094 If the package contains a file with the ending 
6095 \begin_inset Quotes eld
6096 \end_inset
6097
6098
6099 \begin_inset Flex Code
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 .ins
6104 \end_layout
6105
6106 \end_inset
6107
6108
6109 \begin_inset Quotes erd
6110 \end_inset
6111
6112  (is the case for Foil\SpecialChar TeX
6113 ) then open a console, change to the folder of this
6114  file and execute the command 
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119 latex foiltex.ins
6120 \end_layout
6121
6122 \end_inset
6123
6124 .
6125  You have now unpacked the package and have all files to install it.
6126  Most \SpecialChar LaTeX
6127 -packages are not packed and you can skip this step.
6128 \end_layout
6129
6130 \begin_layout Enumerate
6131 Now you need to decide if the package should be available for all users
6132  or only for you.
6133 \end_layout
6134
6135 \begin_deeper
6136 \begin_layout Enumerate
6137 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6138  for all users on your system, then install it in your `local' \SpecialChar TeX
6139  tree, otherwise
6140  install it in your own `user' \SpecialChar TeX
6141  tree.
6142  Where these trees should be created, if they do not already exist, depends
6143  on your system.
6144  To find this out, look in the file 
6145 \begin_inset Flex Code
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 texmf.cnf
6150 \end_layout
6151
6152 \end_inset
6153
6154 .
6155 \begin_inset Foot
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 This is usually in the directory 
6160 \begin_inset Flex Code
6161 status collapsed
6162
6163 \begin_layout Plain Layout
6164 $TEXMF/web2c
6165 \end_layout
6166
6167 \end_inset
6168
6169 , though you can execute the command 
6170 \begin_inset Flex Code
6171 status collapsed
6172
6173 \begin_layout Plain Layout
6174 kpsewhich texmf.cnf
6175 \end_layout
6176
6177 \end_inset
6178
6179  to locate it.
6180 \end_layout
6181
6182 \end_inset
6183
6184  The location of the `local' \SpecialChar TeX
6185  tree is defined by the 
6186 \begin_inset Flex Code
6187 status collapsed
6188
6189 \begin_layout Plain Layout
6190 TEXMFLOCAL
6191 \end_layout
6192
6193 \end_inset
6194
6195  variable; this is usually somewhere like 
6196 \begin_inset Flex Code
6197 status collapsed
6198
6199 \begin_layout Plain Layout
6200 /usr/local/share/texmf
6201 \end_layout
6202
6203 \end_inset
6204
6205  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6206 Live
6207  distribution.
6208  The location of the `user' \SpecialChar TeX
6209  tree is defined by 
6210 \begin_inset Flex Code
6211 status collapsed
6212
6213 \begin_layout Plain Layout
6214 TEXMFHOME
6215 \end_layout
6216
6217 \end_inset
6218
6219  and is commonly 
6220 \begin_inset Flex Code
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 $HOME/texmf
6225 \end_layout
6226
6227 \end_inset
6228
6229  or 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234
6235 \family sans
6236 $HOME/.texliveXXXX
6237 \end_layout
6238
6239 \end_inset
6240
6241 .
6242  (If these variables are not predefined, you have to define them.) You'll
6243  probably need root permissions to create or modify the `local' tree, but
6244  not for your `user' tree.
6245 \begin_inset Newline newline
6246 \end_inset
6247
6248 In general, it is recommended to install in the user tree because your user
6249  will not be modified or even overwritten when you upgrade your system.
6250  It will typically also be backed up together with everything else when
6251  you backup your home directory (which, of course, you do on a regular basis).
6252 \end_layout
6253
6254 \begin_layout Enumerate
6255 On Windows, if you want the new package to be available for all users on
6256  your system, change to the folder where \SpecialChar LaTeX
6257  is installed and then change to
6258  the subfolder 
6259 \begin_inset Flex Code
6260 status collapsed
6261
6262 \begin_layout Plain Layout
6263 ~
6264 \backslash
6265 tex
6266 \backslash
6267 latex
6268 \end_layout
6269
6270 \end_inset
6271
6272 .
6273  (For MiK\SpecialChar TeX
6274 , this would be by default the folder 
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 ~:
6280 \backslash
6281 Programs
6282 \backslash
6283 MiKTeX
6284 \backslash
6285 tex
6286 \backslash
6287 latex
6288 \end_layout
6289
6290 \end_inset
6291
6292 .)
6293 \begin_inset Foot
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 Note that this will be the correct path only on English installations.
6298  On a German one, it would be 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 ~:
6304 \backslash
6305 Programme
6306 \backslash
6307 MiKTeX
6308 \backslash
6309 tex
6310 \backslash
6311 latex
6312 \end_layout
6313
6314 \end_inset
6315
6316 , and similarly for other languages.
6317 \end_layout
6318
6319 \end_inset
6320
6321  Create there a new folder 
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 foiltex
6327 \end_layout
6328
6329 \end_inset
6330
6331  and copy all files of the package into it.
6332  
6333 \begin_inset Newline newline
6334 \end_inset
6335
6336 If the package should only available for you or you don't have admin permissions
6337 , do the same, but in the local \SpecialChar LaTeX
6338  folder.
6339  E.
6340 \begin_inset space \thinspace{}
6341 \end_inset
6342
6343 g., for MiK\SpecialChar TeX
6344
6345 \begin_inset space ~
6346 \end_inset
6347
6348 2.8 under Windows XP, this would be the folder:
6349 \begin_inset Newline newline
6350 \end_inset
6351
6352
6353 \family sans
6354
6355 \begin_inset Flex Code
6356 status collapsed
6357
6358 \begin_layout Plain Layout
6359 ~:
6360 \backslash
6361 Documents and Settings
6362 \backslash
6363 <username>
6364 \backslash
6365 Application Data
6366 \backslash
6367
6368 \end_layout
6369
6370 \end_inset
6371
6372
6373 \begin_inset Newline newline
6374 \end_inset
6375
6376
6377 \family default
6378
6379 \begin_inset Phantom HPhantom
6380 status open
6381
6382 \begin_layout Plain Layout
6383
6384 \family sans
6385 ~:
6386 \backslash
6387
6388 \end_layout
6389
6390 \end_inset
6391
6392
6393 \begin_inset Flex Code
6394 status collapsed
6395
6396 \begin_layout Plain Layout
6397 MiKTeX
6398 \backslash
6399 2.8
6400 \backslash
6401 tex
6402 \backslash
6403 latex
6404 \end_layout
6405
6406 \end_inset
6407
6408
6409 \begin_inset Newline newline
6410 \end_inset
6411
6412 On Vista, it would be:
6413 \begin_inset Newline newline
6414 \end_inset
6415
6416
6417 \begin_inset Flex Code
6418 status collapsed
6419
6420 \begin_layout Plain Layout
6421 ~:
6422 \backslash
6423 Users
6424 \backslash
6425 <username>
6426 \backslash
6427 AppData
6428 \backslash
6429 Roaming
6430 \backslash
6431 2.8
6432 \backslash
6433 MiKTeX
6434 \backslash
6435 tex
6436 \backslash
6437 latex
6438 \end_layout
6439
6440 \end_inset
6441
6442
6443 \end_layout
6444
6445 \end_deeper
6446 \begin_layout Enumerate
6447 Now one only need to tell \SpecialChar LaTeX
6448  that there are new files.
6449  This depends on the used \SpecialChar LaTeX
6450 -Distribution:
6451 \end_layout
6452
6453 \begin_deeper
6454 \begin_layout Enumerate
6455 For \SpecialChar TeX
6456 Live execute the command 
6457 \begin_inset Flex Code
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 texhash
6462 \end_layout
6463
6464 \end_inset
6465
6466  from a console.
6467  If you installed the package for all users, then you will probably need
6468  to have root permissions for that.
6469 \end_layout
6470
6471 \begin_layout Enumerate
6472 For MiK\SpecialChar TeX
6473 , if you have installed the package for all users, start the program
6474  
6475 \begin_inset Quotes eld
6476 \end_inset
6477
6478 Settings
6479 \begin_inset space ~
6480 \end_inset
6481
6482 (Admin)
6483 \begin_inset Quotes erd
6484 \end_inset
6485
6486  and press the button marked 
6487 \begin_inset Quotes eld
6488 \end_inset
6489
6490 Refresh FNDB
6491 \begin_inset Quotes erd
6492 \end_inset
6493
6494 .
6495  Otherwise start the program 
6496 \begin_inset Quotes eld
6497 \end_inset
6498
6499 Settings
6500 \begin_inset Quotes erd
6501 \end_inset
6502
6503  and do the same.
6504 \end_layout
6505
6506 \end_deeper
6507 \begin_layout Enumerate
6508 Finally, you need to tell \SpecialChar LyX
6509  that there are new packages available.
6510  So, in \SpecialChar LyX
6511 , use the menu 
6512 \begin_inset Flex Noun
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 Tools
6517 \family sans
6518 \SpecialChar menuseparator
6519 Reconfigure
6520 \end_layout
6521
6522 \end_inset
6523
6524  and then restart \SpecialChar LyX
6525 .
6526 \end_layout
6527
6528 \begin_layout Standard
6529 Now the package is installed.
6530  In our example, the document class 
6531 \begin_inset Flex Code
6532 status collapsed
6533
6534 \begin_layout Plain Layout
6535 FoilTex
6536 \end_layout
6537
6538 \end_inset
6539
6540  will now be available under 
6541 \begin_inset Flex Noun
6542 status collapsed
6543
6544 \begin_layout Plain Layout
6545 Document\SpecialChar menuseparator
6546 Settings\SpecialChar menuseparator
6547 Document Class
6548 \end_layout
6549
6550 \end_inset
6551
6552  (in the 
6553 \begin_inset Quotes eld
6554 \end_inset
6555
6556 Presentations
6557 \begin_inset Quotes erd
6558 \end_inset
6559
6560  category).
6561  
6562 \end_layout
6563
6564 \begin_layout Standard
6565 If you would like to use a \SpecialChar LaTeX
6566  document class that is not even listed in the
6567  menu 
6568 \begin_inset Flex Noun
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 Document\SpecialChar menuseparator
6573 Settings\SpecialChar menuseparator
6574 Document Class
6575 \end_layout
6576
6577 \end_inset
6578
6579 , then you need to create a `layout' file for it.
6580  That is the topic of the next section.
6581 \end_layout
6582
6583 \begin_layout Section
6584 Types of layout files
6585 \end_layout
6586
6587 \begin_layout Standard
6588 This section describes the various sorts of \SpecialChar LyX
6589  files that contain layout informati
6590 on.
6591  These files describe various paragraph and character styles, determining
6592  how \SpecialChar LyX
6593  should display them and how they should be translated into \SpecialChar LaTeX
6594 , DocBook,
6595  XHTML, or whatever output format is being used.
6596  
6597 \end_layout
6598
6599 \begin_layout Standard
6600 We shall try to provide a thorough description of the process of writing
6601  layout files here.
6602  However, there are so many different types of documents supported even
6603  by just \SpecialChar LaTeX
6604  that we can't hope to cover every different possibility or problem
6605  you might encounter.
6606  The \SpecialChar LyX
6607  users' list is frequented by people with lots of experience with layout
6608  design who are willing to share what they've learned, so please feel free
6609  to ask questions there.
6610 \end_layout
6611
6612 \begin_layout Standard
6613 As you prepare to write a new layout, it is extremely helpful to look at
6614  the layouts distributed with \SpecialChar LyX
6615 .
6616  If you write a \SpecialChar LyX
6617  layout for a \SpecialChar LaTeX
6618  document class that might also be used by
6619  others, or write a module that might be useful to others, then you should
6620  consider posting your layout to the 
6621 \begin_inset CommandInset href
6622 LatexCommand href
6623 name "layout section on the LyX wiki"
6624 target "https://wiki.lyx.org/Layouts/Layouts"
6625 literal "false"
6626
6627 \end_inset
6628
6629  or even to the \SpecialChar LyX
6630  developers' list, so that it might be included in \SpecialChar LyX
6631  itself.
6632 \begin_inset Foot
6633 status collapsed
6634
6635 \begin_layout Plain Layout
6636 Note that \SpecialChar LyX
6637  is licensed under the General Public License, so any material
6638  that is contributed to \SpecialChar LyX
6639  must be similarly licensed.
6640 \end_layout
6641
6642 \end_inset
6643
6644
6645 \end_layout
6646
6647 \begin_layout Subsection
6648 Layout modules
6649 \begin_inset CommandInset label
6650 LatexCommand label
6651 name "subsec:Layout-modules"
6652
6653 \end_inset
6654
6655
6656 \end_layout
6657
6658 \begin_layout Standard
6659 We have spoken to this point about `layout files'.
6660  But there are different sorts of files that contain layout information.
6661  Layout files, strictly so called, have the 
6662 \begin_inset Flex Code
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666 .layout
6667 \end_layout
6668
6669 \end_inset
6670
6671  extension and provide \SpecialChar LyX
6672  with information about document classes.
6673  Since \SpecialChar LyX
6674  1.6 layout information can also be contained in layout 
6675 \emph on
6676 modules
6677 \emph default
6678 , which have the 
6679 \begin_inset Flex Code
6680 status collapsed
6681
6682 \begin_layout Plain Layout
6683 .module
6684 \end_layout
6685
6686 \end_inset
6687
6688  extension.
6689  Modules are to \SpecialChar LaTeX
6690  packages much as layouts are to \SpecialChar LaTeX
6691  classes, and some modules—such
6692  as the 
6693 \begin_inset Flex Code
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 endnotes
6698 \end_layout
6699
6700 \end_inset
6701
6702  module—specifically provide support for one package.
6703  In a sense, layout modules are similar to included
6704 \begin_inset Foot
6705 status collapsed
6706
6707 \begin_layout Plain Layout
6708 These can have any extension, but by convention have the 
6709 \begin_inset Flex Code
6710 status collapsed
6711
6712 \begin_layout Plain Layout
6713 .inc
6714 \end_layout
6715
6716 \end_inset
6717
6718  extension.
6719 \end_layout
6720
6721 \end_inset
6722
6723  files—files like 
6724 \begin_inset Flex Code
6725 status collapsed
6726
6727 \begin_layout Plain Layout
6728 stdsections.inc
6729 \end_layout
6730
6731 \end_inset
6732
6733 —in that modules are not specific to a given document class but may be used
6734  with many different classes.
6735  The difference is that using an included file with 
6736 \begin_inset Flex Code
6737 status collapsed
6738
6739 \begin_layout Plain Layout
6740 article.cls
6741 \end_layout
6742
6743 \end_inset
6744
6745  requires editing that file.
6746  Modules, by contrast, are selected in the 
6747 \begin_inset Flex Noun
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751 Document\SpecialChar menuseparator
6752 Settings
6753 \end_layout
6754
6755 \end_inset
6756
6757  dialog.
6758 \end_layout
6759
6760 \begin_layout Standard
6761 Building modules is the easiest way to get started with layout editing,
6762  since it can be as simple as adding a single new paragraph style or flex
6763  inset.
6764  But modules may, in principle, contain anything a layout file can contain.
6765 \end_layout
6766
6767 \begin_layout Standard
6768 After creating a new module and copying it to the 
6769 \begin_inset Flex Code
6770 status collapsed
6771
6772 \begin_layout Plain Layout
6773 layouts/
6774 \end_layout
6775
6776 \end_inset
6777
6778  folder, you will need to reconfigure and then restart \SpecialChar LyX
6779  for the module to
6780  appear in the menu.
6781  However, changes you make to the module will be seen immediately, if you
6782  open 
6783 \begin_inset Flex Noun
6784 status collapsed
6785
6786 \begin_layout Plain Layout
6787 Document\SpecialChar menuseparator
6788 Settings
6789 \end_layout
6790
6791 \end_inset
6792
6793 , highlight something, and then hit 
6794 \begin_inset Quotes eld
6795 \end_inset
6796
6797 OK
6798 \begin_inset Quotes erd
6799 \end_inset
6800
6801 .
6802  
6803 \emph on
6804 It is strongly recommended that you save your work before doing this
6805 \emph default
6806 .
6807  In fact, 
6808 \emph on
6809 it is strongly recommended that you not attempt to edit modules while simultaneo
6810 usly working on actual documents
6811 \emph default
6812 .
6813  Though of course the developers strive to keep \SpecialChar LyX
6814  stable in such situations,
6815  syntax errors and the like in your module file could cause strange behavior.
6816 \end_layout
6817
6818 \begin_layout Subsubsection
6819 Local Layout
6820 \end_layout
6821
6822 \begin_layout Standard
6823 Modules are to \SpecialChar LyX
6824  as packages are to \SpecialChar LaTeX
6825 .
6826  Sometimes, however, you find yourself wanting a specific inset or character
6827  style just for one document and writing a module that will also be available
6828  to other documents makes little sense.
6829  What you need is \SpecialChar LyX
6830 's 
6831 \begin_inset Quotes eld
6832 \end_inset
6833
6834 Local Layout
6835 \begin_inset Quotes erd
6836 \end_inset
6837
6838 .
6839 \end_layout
6840
6841 \begin_layout Standard
6842 You will find it under 
6843 \family sans
6844 Document\SpecialChar menuseparator
6845 Settings\SpecialChar menuseparator
6846 Local Layout
6847 \family default
6848 .
6849  The large text box allows you to enter anything that you might enter in
6850  a layout file or module.
6851  You can think of a document's local layout, in fact, as a module that belongs
6852  just to it.
6853  So, in particular, you must enter a 
6854 \begin_inset Flex Code
6855 status collapsed
6856
6857 \begin_layout Plain Layout
6858 Format
6859 \end_layout
6860
6861 \end_inset
6862
6863  tag.
6864  Any format is acceptable, but one would normally use the format current
6865  at the time.
6866  (In \SpecialChar LyX
6867  2.3, the current layout format is 63.)
6868 \end_layout
6869
6870 \begin_layout Standard
6871 When you have entered something in the 
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 Local Layout
6877 \end_layout
6878
6879 \end_inset
6880
6881  pane, \SpecialChar LyX
6882  will enable the 
6883 \begin_inset Quotes eld
6884 \end_inset
6885
6886 Validate
6887 \begin_inset Quotes erd
6888 \end_inset
6889
6890  button at the bottom.
6891  Clicking this button will cause \SpecialChar LyX
6892  to determine whether what you have entered
6893  is valid layout information for the chosen format.
6894  \SpecialChar LyX
6895  will report the result but, unfortunately, will not tell you what errors
6896  there might have been.
6897  These will be written to the terminal, however, if \SpecialChar LyX
6898  is started from a terminal.
6899  You will not be permitted to save your local layout until you have entered
6900  something valid.
6901 \end_layout
6902
6903 \begin_layout Standard
6904 The warnings at the end of the previous section apply here, too.
6905  Do not play with local layout while you are actually working, especially
6906  if you have not saved your document.
6907  That said, using local layout with a test document can be a very convenient
6908  way to try out layout ideas, or even to start developing a module.
6909 \end_layout
6910
6911 \begin_layout Subsection
6912 Layout for 
6913 \begin_inset Flex Noun
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 .sty
6918 \end_layout
6919
6920 \end_inset
6921
6922  files
6923 \end_layout
6924
6925 \begin_layout Standard
6926 There are two situations you are likely to encounter when wanting to support
6927  a new \SpecialChar LaTeX
6928  document class, involving style (
6929 \begin_inset Flex Code
6930 status collapsed
6931
6932 \begin_layout Plain Layout
6933 .sty
6934 \end_layout
6935
6936 \end_inset
6937
6938 ) files and \SpecialChar LaTeX2e
6939  class (
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 .cls
6945 \end_layout
6946
6947 \end_inset
6948
6949 ) .
6950  Supporting a style file is usually fairly easy.
6951  Supporting a new class file is a bit harder.
6952  We'll discuss the former in this section and the latter in the next.
6953  Similar remarks apply, of course, if you want to support a new DocBook
6954  DTD.
6955 \end_layout
6956
6957 \begin_layout Standard
6958 The easier case is the one in which your new document class is provided
6959  as a style file that is to be used in conjunction with an already supported
6960  document class.
6961  For the sake of the example, we'll assume that the style file is called
6962  
6963 \begin_inset Flex Noun
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 myclass.sty
6968 \end_layout
6969
6970 \end_inset
6971
6972  and that it is meant to be used with 
6973 \begin_inset Flex Noun
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 report.cls
6978 \end_layout
6979
6980 \end_inset
6981
6982 , which is a standard class.
6983  
6984 \end_layout
6985
6986 \begin_layout Standard
6987 Start by copying the existing class's layout file into your local directory:
6988 \begin_inset Foot
6989 status collapsed
6990
6991 \begin_layout Plain Layout
6992 Of course, which directory is your local directory will vary by platform,
6993  and \SpecialChar LyX
6994  allows you to specify your local directory on startup, too, using
6995  the 
6996 \begin_inset Flex Code
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 -userdir
7001 \end_layout
7002
7003 \end_inset
7004
7005  option.
7006 \end_layout
7007
7008 \end_inset
7009
7010
7011 \end_layout
7012
7013 \begin_layout LyX-Code
7014 cp report.layout ~/.lyx/layouts/myclass.layout
7015 \end_layout
7016
7017 \begin_layout Standard
7018 Then edit 
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 myclass.layout
7024 \end_layout
7025
7026 \end_inset
7027
7028  and change the line: 
7029 \end_layout
7030
7031 \begin_layout LyX-Code
7032
7033 \backslash
7034 DeclareLaTeXClass{Report (Standard Class)}
7035 \end_layout
7036
7037 \begin_layout Standard
7038 to read
7039 \end_layout
7040
7041 \begin_layout LyX-Code
7042
7043 \backslash
7044 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7045 \end_layout
7046
7047 \begin_layout Standard
7048 Then add:
7049 \end_layout
7050
7051 \begin_layout LyX-Code
7052 Preamble 
7053 \begin_inset Newline newline
7054 \end_inset
7055
7056     
7057 \backslash
7058 usepackage{myclass}
7059 \begin_inset Newline newline
7060 \end_inset
7061
7062 EndPreamble
7063 \end_layout
7064
7065 \begin_layout Standard
7066 near the top of the file.
7067 \end_layout
7068
7069 \begin_layout Standard
7070 Start \SpecialChar LyX
7071  and select 
7072 \begin_inset Flex Noun
7073 status collapsed
7074
7075 \begin_layout Plain Layout
7076 Tools\SpecialChar menuseparator
7077 Reconfigure
7078 \end_layout
7079
7080 \end_inset
7081
7082 .
7083  Then restart \SpecialChar LyX
7084  and try creating a new document.
7085  You should see "
7086 \begin_inset Flex Noun
7087 status collapsed
7088
7089 \begin_layout Plain Layout
7090 Report (My Class)
7091 \end_layout
7092
7093 \end_inset
7094
7095 " as a document class option in the 
7096 \begin_inset Flex Noun
7097 status collapsed
7098
7099 \begin_layout Plain Layout
7100 Document\SpecialChar menuseparator
7101 Settings
7102 \end_layout
7103
7104 \end_inset
7105
7106  dialog.
7107  It is likely that some of the sectioning commands and such in your new
7108  class will work differently from how they worked in the base class—
7109 \begin_inset Flex Code
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113 report
7114 \end_layout
7115
7116 \end_inset
7117
7118  in this example—so you can fiddle around with the settings for the different
7119  sections if you wish.
7120  The layout information for sections is contained in 
7121 \begin_inset Flex Code
7122 status collapsed
7123
7124 \begin_layout Plain Layout
7125 stdsections.inc
7126 \end_layout
7127
7128 \end_inset
7129
7130 , but you do not need to copy and change this file.
7131  Instead, you can simply add your changes to your layout file, after the
7132  line 
7133 \begin_inset Flex Code
7134 status collapsed
7135
7136 \begin_layout Plain Layout
7137 Input stdclass.inc
7138 \end_layout
7139
7140 \end_inset
7141
7142 , which itself includes 
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 stdsections.inc
7148 \end_layout
7149
7150 \end_inset
7151
7152 .
7153  For example, you might add these lines:
7154 \end_layout
7155
7156 \begin_layout LyX-Code
7157 Style Chapter
7158 \end_layout
7159
7160 \begin_layout LyX-Code
7161     Font
7162 \end_layout
7163
7164 \begin_layout LyX-Code
7165         Family Sans
7166 \end_layout
7167
7168 \begin_layout LyX-Code
7169     EndFont
7170 \end_layout
7171
7172 \begin_layout LyX-Code
7173 End
7174 \end_layout
7175
7176 \begin_layout Standard
7177 to change the font for chapter headings to sans-serif.
7178  This will override (or, in this case, add to) the existing declaration
7179  for the Chapter style.
7180  
7181 \end_layout
7182
7183 \begin_layout Standard
7184 Your new package may also provide commands or environments not present in
7185  the base class.
7186  In this case, you will want to add these to the layout file.
7187  See 
7188 \begin_inset CommandInset ref
7189 LatexCommand ref
7190 reference "sec:TextClass"
7191
7192 \end_inset
7193
7194  for information on how to do so.
7195 \end_layout
7196
7197 \begin_layout Standard
7198 If 
7199 \begin_inset Flex Noun
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 myclass.sty
7204 \end_layout
7205
7206 \end_inset
7207
7208  can be used with several different document classes, and even if it cannot,
7209  you might find it easiest just to write a module that you can load with
7210  the base class.
7211  The simplest possible such module would be:
7212 \end_layout
7213
7214 \begin_layout LyX-Code
7215 #
7216 \backslash
7217 DeclareLyXModule{My Class} 
7218 \end_layout
7219
7220 \begin_layout LyX-Code
7221 #DescriptionBegin 
7222 \end_layout
7223
7224 \begin_layout LyX-Code
7225 #Support for myclass.sty.
7226 \end_layout
7227
7228 \begin_layout LyX-Code
7229 #DescriptionEnd
7230 \begin_inset Newline newline
7231 \end_inset
7232
7233
7234 \end_layout
7235
7236 \begin_layout LyX-Code
7237 Format 63
7238 \begin_inset Newline newline
7239 \end_inset
7240
7241
7242 \end_layout
7243
7244 \begin_layout LyX-Code
7245 Preamble
7246 \begin_inset Newline newline
7247 \end_inset
7248
7249     
7250 \backslash
7251 usepackage{myclass}
7252 \begin_inset Newline newline
7253 \end_inset
7254
7255 EndPreamble
7256 \end_layout
7257
7258 \begin_layout Standard
7259 A more complex module might modify the behavior of some existing constructs
7260  or define some new ones.
7261  Again, see 
7262 \begin_inset CommandInset ref
7263 LatexCommand ref
7264 reference "sec:TextClass"
7265
7266 \end_inset
7267
7268  for discussion.
7269 \end_layout
7270
7271 \begin_layout Subsection
7272 Layout for 
7273 \begin_inset Flex Noun
7274 status collapsed
7275
7276 \begin_layout Plain Layout
7277 .cls
7278 \end_layout
7279
7280 \end_inset
7281
7282  files
7283 \end_layout
7284
7285 \begin_layout Standard
7286 There are two possibilities here.
7287  One is that the class file is itself based upon an existing document class.
7288  For example, many thesis classes are based upon 
7289 \begin_inset Flex Noun
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 book.cls
7294 \end_layout
7295
7296 \end_inset
7297
7298 .
7299  To see whether yours is, look for a line like
7300 \end_layout
7301
7302 \begin_layout LyX-Code
7303
7304 \backslash
7305 LoadClass{book}
7306 \end_layout
7307
7308 \begin_layout Standard
7309 in the file.
7310  If so, then you may proceed largely as in the previous section, though
7311  the 
7312 \begin_inset Flex Code
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 Declare\SpecialChar LaTeX
7317 Class
7318 \end_layout
7319
7320 \end_inset
7321
7322  line will be different.
7323  If your new class is 
7324 \begin_inset Flex Code
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 thesis
7329 \end_layout
7330
7331 \end_inset
7332
7333  and it is based upon 
7334 \begin_inset Flex Code
7335 status collapsed
7336
7337 \begin_layout Plain Layout
7338 book
7339 \end_layout
7340
7341 \end_inset
7342
7343 , then the line should read:
7344 \begin_inset Foot
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348 And it will be easiest if you save the file to 
7349 \begin_inset Flex Code
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353 thesis.layout
7354 \end_layout
7355
7356 \end_inset
7357
7358 : \SpecialChar LyX
7359  assumes that the document class has the same name as the layout file.
7360  
7361 \end_layout
7362
7363 \end_inset
7364
7365
7366 \end_layout
7367
7368 \begin_layout LyX-Code
7369
7370 \backslash
7371 DeclareLaTeXClass[thesis,book]{thesis}
7372 \end_layout
7373
7374 \begin_layout Standard
7375 If, on the other hand, the new class is not based upon an existing class,
7376  you will probably have to 
7377 \begin_inset Quotes eld
7378 \end_inset
7379
7380 roll your own
7381 \begin_inset Quotes erd
7382 \end_inset
7383
7384  layout.
7385  We strongly suggest copying an existing layout file which uses a similar
7386  \SpecialChar LaTeX
7387  class and then modifying it, if you can do so.
7388  At least use an existing file as a starting point so you can find out what
7389  items you need to worry about.
7390  Again, the specifics are covered below.
7391 \end_layout
7392
7393 \begin_layout Subsection
7394 Creating templates
7395 \begin_inset CommandInset label
7396 LatexCommand label
7397 name "subsec:Creating-Templates"
7398
7399 \end_inset
7400
7401
7402 \end_layout
7403
7404 \begin_layout Standard
7405 Once you have written a layout file for a new document class, you might
7406  want to consider writing a 
7407 \emph on
7408 template
7409 \emph default
7410  for it, too.
7411  A template acts as a kind of tutorial for your layout, showing how it might
7412  be used, though containing dummy content.
7413  You can of course look at the various templates included with \SpecialChar LyX
7414  for ideas.
7415 \end_layout
7416
7417 \begin_layout Standard
7418 Templates are created just like usual documents: using \SpecialChar LyX
7419 .
7420  The only difference is that usual documents contain all possible settings,
7421  including the font scheme and the paper size.
7422  Usually a user doesn't want a template to overwrite his preferred settings
7423  for such parameters.
7424  For that reason, the designer of a template should remove the corresponding
7425  commands like 
7426 \begin_inset Flex Code
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430
7431 \backslash
7432 font_roman
7433 \end_layout
7434
7435 \end_inset
7436
7437  or 
7438 \begin_inset Flex Code
7439 status collapsed
7440
7441 \begin_layout Plain Layout
7442
7443 \backslash
7444 papersize
7445 \end_layout
7446
7447 \end_inset
7448
7449  from the template \SpecialChar LyX
7450  file.
7451  This can be done with any simple text-editor, for example 
7452 \begin_inset Flex Code
7453 status collapsed
7454
7455 \begin_layout Plain Layout
7456 vi
7457 \end_layout
7458
7459 \end_inset
7460
7461  or 
7462 \begin_inset Flex Code
7463 status collapsed
7464
7465 \begin_layout Plain Layout
7466 notepad
7467 \end_layout
7468
7469 \end_inset
7470
7471 .
7472 \end_layout
7473
7474 \begin_layout Standard
7475 Put the edited template files you create in 
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 UserDir/templates/
7481 \end_layout
7482
7483 \end_inset
7484
7485 , copy the ones you use from the global template directory in 
7486 \begin_inset Flex Code
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 LyXDir/templates/
7491 \end_layout
7492
7493 \end_inset
7494
7495  to the same place, and redefine the template path in the 
7496 \begin_inset Flex Noun
7497 status collapsed
7498
7499 \begin_layout Plain Layout
7500 Tools\SpecialChar menuseparator
7501 Preferences\SpecialChar menuseparator
7502 Paths
7503 \end_layout
7504
7505 \end_inset
7506
7507  dialog.
7508 \end_layout
7509
7510 \begin_layout Standard
7511 Note, by the way, that there is a template which has a particular meaning:
7512 \begin_inset Newline linebreak
7513 \end_inset
7514
7515
7516 \begin_inset Flex Code
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 defaults.lyx
7521 \end_layout
7522
7523 \end_inset
7524
7525 .
7526  This template is loaded every time you create a new document with 
7527 \begin_inset Flex Noun
7528 status collapsed
7529
7530 \begin_layout Plain Layout
7531 File\SpecialChar menuseparator
7532 New
7533 \end_layout
7534
7535 \end_inset
7536
7537  in order to provide useful defaults.
7538  To create this template from inside \SpecialChar LyX
7539 , all you have to do is to open a document
7540  with the correct settings, and use the 
7541 \begin_inset Flex Noun
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 Save as Document Defaults
7546 \end_layout
7547
7548 \end_inset
7549
7550  button.
7551 \end_layout
7552
7553 \begin_layout Subsection
7554 Upgrading old layout files
7555 \end_layout
7556
7557 \begin_layout Standard
7558 The format of layout files changes with each \SpecialChar LyX
7559  release, so old layout files
7560  need to be converted to the new format.
7561  If \SpecialChar LyX
7562  reads a layout file in an older format, it automatically calls the
7563  script 
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 layout2layout.py
7569 \end_layout
7570
7571 \end_inset
7572
7573  to convert it to a temporary file in current format.
7574  The original file is left untouched.
7575  If you use the layout file often, then, you may want to convert it permanently,
7576  so that \SpecialChar LyX
7577  does not have to do so itself every time.
7578  To do this, you can call the converter manually:
7579 \end_layout
7580
7581 \begin_layout Enumerate
7582 rename the file 
7583 \begin_inset Flex Code
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 myclass.layout
7588 \end_layout
7589
7590 \end_inset
7591
7592  to 
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 myclass.old
7598 \end_layout
7599
7600 \end_inset
7601
7602
7603 \end_layout
7604
7605 \begin_layout Enumerate
7606 Call the command
7607 \begin_inset Newline newline
7608 \end_inset
7609
7610
7611 \begin_inset Flex Code
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7616 \end_layout
7617
7618 \end_inset
7619
7620
7621 \begin_inset Newline newline
7622 \end_inset
7623
7624 where 
7625 \begin_inset Flex Code
7626 status collapsed
7627
7628 \begin_layout Plain Layout
7629 LyXDir
7630 \end_layout
7631
7632 \end_inset
7633
7634  is the name of your \SpecialChar LyX
7635  system directory.
7636 \end_layout
7637
7638 \begin_layout Standard
7639 Note that manual conversion does not affect included files, so these will
7640  have to be converted separately.
7641 \end_layout
7642
7643 \begin_layout Subsection
7644 \begin_inset CommandInset label
7645 LatexCommand label
7646 name "subsec:Cite-Engine-Files"
7647
7648 \end_inset
7649
7650 Cite engine files
7651 \end_layout
7652
7653 \begin_layout Standard
7654 A specific form of layout files are the so-called 
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 *.citeengine
7660 \end_layout
7661
7662 \end_inset
7663
7664  files that are located in the 
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 citeengines/
7670 \end_layout
7671
7672 \end_inset
7673
7674  sub-directory.
7675  Their purpose is to define the specifics of \SpecialChar LaTeX
7676  packages aimed at bibliography
7677  generation, such as 
7678 \family sans
7679 natbib
7680 \family default
7681 ,
7682 \family sans
7683  jurabib
7684 \family default
7685  or 
7686 \family sans
7687 biblatex
7688 \family default
7689 , but also the way how normal Bib\SpecialChar TeX
7690  citations (without additional packages)
7691  are handled in \SpecialChar LyX
7692  is defined in such a file.
7693  
7694 \end_layout
7695
7696 \begin_layout Standard
7697 More specifically, it is defined which packages \SpecialChar LyX
7698  needs to load, which citation
7699  commands are available, how these are to be displayed in \SpecialChar LyX
7700  (in the workarea,
7701  the dialogs, the context menus) as well as in the XHTML and plain text
7702  output.
7703  Furthermore, the files specify available style variants (author-year, numerical
7704 , etc.) and their specifics.
7705  The cite engine files are also used to generate the options that are available
7706  in 
7707 \family sans
7708 Document\SpecialChar menuseparator
7709 Settings\SpecialChar menuseparator
7710 Bibliography\SpecialChar menuseparator
7711 Style engine
7712 \family default
7713 .
7714 \end_layout
7715
7716 \begin_layout Standard
7717 Even though a cite engine file is essentially a normal layout file that
7718  could theoretically include any layout information, it usually primarily
7719  includes some specific parameters such as 
7720 \begin_inset Flex Code
7721 status collapsed
7722
7723 \begin_layout Plain Layout
7724 MaxCiteNames
7725 \end_layout
7726
7727 \end_inset
7728
7729
7730 \begin_inset Flex Code
7731 status collapsed
7732
7733 \begin_layout Plain Layout
7734 CiteFramework
7735 \end_layout
7736
7737 \end_inset
7738
7739
7740 \begin_inset Flex Code
7741 status collapsed
7742
7743 \begin_layout Plain Layout
7744 CiteEngine
7745 \end_layout
7746
7747 \end_inset
7748
7749  and 
7750 \begin_inset Flex Code
7751 status collapsed
7752
7753 \begin_layout Plain Layout
7754 CiteFormat
7755 \end_layout
7756
7757 \end_inset
7758
7759  blocks.
7760  The syntax of the latter two is described in 
7761 \begin_inset CommandInset ref
7762 LatexCommand ref
7763 reference "subsec:Citation-engine-description"
7764 plural "false"
7765 caps "false"
7766 noprefix "false"
7767
7768 \end_inset
7769
7770  and 
7771 \begin_inset CommandInset ref
7772 LatexCommand ref
7773 reference "subsec:Citation-format-description"
7774
7775 \end_inset
7776
7777 , as well as in the files themselves.
7778 \end_layout
7779
7780 \begin_layout Section
7781 \begin_inset CommandInset label
7782 LatexCommand label
7783 name "sec:TextClass"
7784
7785 \end_inset
7786
7787 The layout file format
7788 \end_layout
7789
7790 \begin_layout Standard
7791 The following sections describe how layout files are structured and written.
7792  Our advice is to go slowly, save and test often.
7793  It is really not that hard, except that the multitude of options can become
7794  overwhelming, especially if you try to check out too many at once.
7795  It becomes easier if you use existing layouts of \SpecialChar LyX
7796  as examples/reference
7797  or if you modify an existing layout to your needs.
7798 \end_layout
7799
7800 \begin_layout Standard
7801 Note that all the tags used in layout files are case-insensitive.
7802  This means that 
7803 \begin_inset Flex Code
7804 status collapsed
7805
7806 \begin_layout Plain Layout
7807 Style
7808 \end_layout
7809
7810 \end_inset
7811
7812
7813 \begin_inset Flex Code
7814 status collapsed
7815
7816 \begin_layout Plain Layout
7817 style
7818 \end_layout
7819
7820 \end_inset
7821
7822  and 
7823 \begin_inset Flex Code
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 StYlE
7828 \end_layout
7829
7830 \end_inset
7831
7832  are really the same tag.
7833  The possible arguments are printed in brackets after the tag's name.
7834  The default argument is typeset 
7835 \begin_inset Flex Code
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839
7840 \emph on
7841 emphasized
7842 \end_layout
7843
7844 \end_inset
7845
7846 .
7847  If the argument has a data type like 
7848 \begin_inset Quotes eld
7849 \end_inset
7850
7851 string
7852 \begin_inset Quotes erd
7853 \end_inset
7854
7855  or 
7856 \begin_inset Quotes eld
7857 \end_inset
7858
7859 float
7860 \begin_inset Quotes erd
7861 \end_inset
7862
7863 , the default is shown like this: 
7864 \begin_inset Flex Code
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 float=
7869 \emph on
7870 default
7871 \end_layout
7872
7873 \end_inset
7874
7875 .
7876 \end_layout
7877
7878 \begin_layout Subsection
7879 The document class declaration and classification
7880 \end_layout
7881
7882 \begin_layout Standard
7883 Lines in a layout file which begin with 
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 #
7889 \end_layout
7890
7891 \end_inset
7892
7893  are comments.
7894  There is one exception to this rule.
7895  All 
7896 \begin_inset Flex Code
7897 status collapsed
7898
7899 \begin_layout Plain Layout
7900 *.layout
7901 \end_layout
7902
7903 \end_inset
7904
7905  files should begin with lines like:
7906 \end_layout
7907
7908 \begin_layout LyX-Code
7909
7910 \size small
7911 #% Do not delete the line below; configure depends on this 
7912 \end_layout
7913
7914 \begin_layout LyX-Code
7915
7916 \size small
7917 #  
7918 \backslash
7919 DeclareLaTeXClass{Article (Standard Class)}
7920 \end_layout
7921
7922 \begin_layout LyX-Code
7923
7924 \size small
7925 #  
7926 \backslash
7927 DeclareCategory{Articles}
7928 \end_layout
7929
7930 \begin_layout Standard
7931 The second and third lines are used when you (re)configure \SpecialChar LyX
7932 .
7933  The layout file is read by the \SpecialChar LaTeX
7934  script 
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 chkconfig.ltx
7940 \end_layout
7941
7942 \end_inset
7943
7944 , in a special mode where 
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 #
7950 \end_layout
7951
7952 \end_inset
7953
7954  is ignored.
7955  The first line is just a \SpecialChar LaTeX
7956  comment, the second one contains the mandatory
7957  declaration of the text class and the third line contains the optional
7958  classification of the class.
7959  If these lines appear in a file named 
7960 \begin_inset Flex Code
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 article.layout
7965 \end_layout
7966
7967 \end_inset
7968
7969 , then they define a text class of name 
7970 \begin_inset Flex Code
7971 status collapsed
7972
7973 \begin_layout Plain Layout
7974 article
7975 \end_layout
7976
7977 \end_inset
7978
7979  (the name of the layout file) which uses the \SpecialChar LaTeX
7980  document class 
7981 \begin_inset Flex Code
7982 status collapsed
7983
7984 \begin_layout Plain Layout
7985 article.cls
7986 \end_layout
7987
7988 \end_inset
7989
7990  (the default is to use the same name as the layout).
7991  The string 
7992 \begin_inset Quotes eld
7993 \end_inset
7994
7995 Article (Standard Class)
7996 \begin_inset Quotes erd
7997 \end_inset
7998
7999  that appears above is used as a description of the text class in the 
8000 \begin_inset Flex Noun
8001 status collapsed
8002
8003 \begin_layout Plain Layout
8004 Document\SpecialChar menuseparator
8005 Settings
8006 \end_layout
8007
8008 \end_inset
8009
8010  dialog.
8011  The category (
8012 \begin_inset Quotes eld
8013 \end_inset
8014
8015 Articles
8016 \begin_inset Quotes erd
8017 \end_inset
8018
8019  in the example) is also used in the 
8020 \begin_inset Flex Noun
8021 status collapsed
8022
8023 \begin_layout Plain Layout
8024 Document\SpecialChar menuseparator
8025 Settings
8026 \end_layout
8027
8028 \end_inset
8029
8030  dialog: the text classes are grouped by these categories (which are usually
8031  genres, so typical categories are 
8032 \begin_inset Quotes eld
8033 \end_inset
8034
8035 Articles
8036 \begin_inset Quotes erd
8037 \end_inset
8038
8039
8040 \begin_inset Quotes eld
8041 \end_inset
8042
8043 Books
8044 \begin_inset Quotes erd
8045 \end_inset
8046
8047
8048 \begin_inset Quotes eld
8049 \end_inset
8050
8051 Reports
8052 \begin_inset Quotes erd
8053 \end_inset
8054
8055
8056 \begin_inset Quotes eld
8057 \end_inset
8058
8059 Letters
8060 \begin_inset Quotes erd
8061 \end_inset
8062
8063
8064 \begin_inset Quotes eld
8065 \end_inset
8066
8067 Presentations
8068 \begin_inset Quotes erd
8069 \end_inset
8070
8071
8072 \begin_inset Quotes eld
8073 \end_inset
8074
8075 Curricula Vitae
8076 \begin_inset Quotes erd
8077 \end_inset
8078
8079  etc.).
8080  If no category has been declared, the class will be put in the 
8081 \begin_inset Quotes eld
8082 \end_inset
8083
8084 Uncategorized
8085 \begin_inset Quotes erd
8086 \end_inset
8087
8088  group.
8089 \end_layout
8090
8091 \begin_layout Standard
8092 Let's assume that you wrote your own text class that uses the 
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 article.cls
8098 \end_layout
8099
8100 \end_inset
8101
8102  document class, but where you changed the appearance of the section headings.
8103  If you put it in a file 
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 myarticle.layout
8109 \end_layout
8110
8111 \end_inset
8112
8113 , the header of this file should be:
8114 \end_layout
8115
8116 \begin_layout LyX-Code
8117
8118 \size small
8119 #% Do not delete the line below; configure depends on this 
8120 \end_layout
8121
8122 \begin_layout LyX-Code
8123
8124 \size small
8125 #  
8126 \backslash
8127 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8128 \end_layout
8129
8130 \begin_layout LyX-Code
8131
8132 \size small
8133 #  
8134 \backslash
8135 DeclareCategory{Articles}
8136 \end_layout
8137
8138 \begin_layout Standard
8139 This declares a text class 
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 myarticle
8145 \end_layout
8146
8147 \end_inset
8148
8149 , associated with the \SpecialChar LaTeX
8150  document class 
8151 \begin_inset Flex Code
8152 status collapsed
8153
8154 \begin_layout Plain Layout
8155 article.cls
8156 \end_layout
8157
8158 \end_inset
8159
8160  and described as 
8161 \begin_inset Quotes eld
8162 \end_inset
8163
8164 Article (with My Own Headings)
8165 \begin_inset Quotes erd
8166 \end_inset
8167
8168 .
8169  If your text class depends on several packages, you can declare it as:
8170 \end_layout
8171
8172 \begin_layout LyX-Code
8173
8174 \size small
8175 #% Do not delete the line below; configure depends on this 
8176 \end_layout
8177
8178 \begin_layout LyX-Code
8179
8180 \size small
8181 #  
8182 \backslash
8183 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8184 \end_layout
8185
8186 \begin_layout LyX-Code
8187
8188 \size small
8189 #  
8190 \backslash
8191 DeclareCategory{Articles}
8192 \end_layout
8193
8194 \begin_layout Standard
8195 This indicates that your text class uses the 
8196 \begin_inset Flex Code
8197 status collapsed
8198
8199 \begin_layout Plain Layout
8200 foo.sty
8201 \end_layout
8202
8203 \end_inset
8204
8205  package.
8206  Finally, it is also possible to declare classes for DocBook code.
8207  Typical declarations will look like:
8208 \end_layout
8209
8210 \begin_layout LyX-Code
8211
8212 \size small
8213 #% Do not delete the line below; configure depends on this 
8214 \end_layout
8215
8216 \begin_layout LyX-Code
8217
8218 \size small
8219
8220 \backslash
8221 DeclareDocBookClass[article]{SGML (DocBook Article)}
8222 \end_layout
8223
8224 \begin_layout LyX-Code
8225
8226 \size small
8227
8228 \backslash
8229 DeclareCategory{Articles (DocBook)}
8230 \end_layout
8231
8232 \begin_layout Standard
8233 Note that these declarations can also be given an optional parameter declaring
8234  the name of the document class (but not a list).
8235 \end_layout
8236
8237 \begin_layout Standard
8238 So, to be as explicit as possible, the form of the layout declaration is:
8239 \end_layout
8240
8241 \begin_layout LyX-Code
8242
8243 \size small
8244 #  
8245 \backslash
8246 DeclareLaTeXClass[class,package.sty]{layout description}
8247 \end_layout
8248
8249 \begin_layout LyX-Code
8250
8251 \size small
8252 #  
8253 \backslash
8254 DeclareCategory{category}
8255 \end_layout
8256
8257 \begin_layout Standard
8258 The class need only be specified if the name of the \SpecialChar LaTeX
8259  class file and the
8260  name of the layout file are different or if there are packages to load.
8261  If the name of the class file is not specified, then \SpecialChar LyX
8262  will simply assume
8263  that it is the same as the name of the layout file.
8264 \end_layout
8265
8266 \begin_layout Standard
8267 When the text class has been modified to your taste, all you have to do
8268  is to copy it either to 
8269 \begin_inset Flex Code
8270 status collapsed
8271
8272 \begin_layout Plain Layout
8273 LyXDir/layouts/
8274 \end_layout
8275
8276 \end_inset
8277
8278  or to 
8279 \begin_inset Flex Code
8280 status collapsed
8281
8282 \begin_layout Plain Layout
8283 UserDir/layouts
8284 \end_layout
8285
8286 \end_inset
8287
8288 , run 
8289 \begin_inset Flex Noun
8290 status collapsed
8291
8292 \begin_layout Plain Layout
8293 Tools\SpecialChar menuseparator
8294 Reconfigure
8295 \end_layout
8296
8297 \end_inset
8298
8299 , exit \SpecialChar LyX
8300  and restart.
8301  Then your new text class should be available along with the others.
8302 \end_layout
8303
8304 \begin_layout Standard
8305 Once the layout file is installed, you can edit it and see your changes
8306  without having to reconfigure or to restart \SpecialChar LyX
8307 .
8308 \begin_inset Foot
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 In versions of \SpecialChar LyX
8313  prior to 1.6, this was not true.
8314  As a result, editing layout files was very time consuming, since you had
8315  constantly to restart \SpecialChar LyX
8316  to see changes.
8317 \end_layout
8318
8319 \end_inset
8320
8321  You can force a reload of the current layout by using the \SpecialChar LyX
8322  function 
8323 \begin_inset Flex Noun
8324 status collapsed
8325
8326 \begin_layout Plain Layout
8327 layout-reload
8328 \end_layout
8329
8330 \end_inset
8331
8332 .
8333  There is no default binding for this function—though, of course, you can
8334  bind it to a key yourself.
8335  But you will normally use this function simply by entering it in the mini-buffe
8336 r.
8337  
8338 \end_layout
8339
8340 \begin_layout Standard
8341
8342 \emph on
8343 Warning
8344 \emph default
8345
8346 \begin_inset Flex Noun
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 layout-reload
8351 \end_layout
8352
8353 \end_inset
8354
8355  is very much an `advanced feature'.
8356  It is 
8357 \emph on
8358 strongly
8359 \emph default
8360  recommended that you save your work before using this function.
8361  In fact, it is 
8362 \emph on
8363 strongly
8364 \emph default
8365  recommended that you not attempt to edit layout information while simultaneousl
8366 y working on a document that you care about.
8367  Use a test document.
8368  Syntax errors and the like in your layout file could cause peculiar behavior.
8369  In particular, such errors could cause \SpecialChar LyX
8370  to regard the current layout as
8371  invalid and to attempt to switch to some other layout.
8372 \begin_inset Foot
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376 Really bad syntax errors may even caused \SpecialChar LyX
8377  to exit.
8378  This is because certain sorts of errors may make \SpecialChar LyX
8379  unable to read 
8380 \emph on
8381 any
8382 \emph default
8383  layout information.
8384  Please be careful.
8385 \end_layout
8386
8387 \end_inset
8388
8389  The \SpecialChar LyX
8390  team strives to keep \SpecialChar LyX
8391  stable in such situations, but safe is better
8392  than sorry.
8393 \begin_inset Foot
8394 status collapsed
8395
8396 \begin_layout Plain Layout
8397 While we're giving advice: make regular backups.
8398  And be nice to your mother.
8399 \end_layout
8400
8401 \end_inset
8402
8403
8404 \end_layout
8405
8406 \begin_layout Subsection
8407 The Module declaration
8408 \end_layout
8409
8410 \begin_layout Standard
8411 A module must begin with a line like the following:
8412 \end_layout
8413
8414 \begin_layout LyX-Code
8415 #
8416 \backslash
8417 DeclareLyXModule[endnotes.sty]{Endnotes} 
8418 \end_layout
8419
8420 \begin_layout Standard
8421 The mandatory argument, in curly brackets, is the name of the module, as
8422  it should appear in 
8423 \begin_inset Flex Noun
8424 status collapsed
8425
8426 \begin_layout Plain Layout
8427 Document\SpecialChar menuseparator
8428 Settings\SpecialChar menuseparator
8429 Modules
8430 \end_layout
8431
8432 \end_inset
8433
8434 .
8435  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8436  packages
8437  on which the module depends.
8438  It is also possible to use the form 
8439 \begin_inset Flex Noun
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 from->to
8444 \end_layout
8445
8446 \end_inset
8447
8448  as an optional argument, which declares that the module can only be used
8449  when there exists a conversion chain between the formats `
8450 \begin_inset Flex Code
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454 from
8455 \end_layout
8456
8457 \end_inset
8458
8459 ' and `
8460 \begin_inset Flex Code
8461 status collapsed
8462
8463 \begin_layout Plain Layout
8464 to
8465 \end_layout
8466
8467 \end_inset
8468
8469 '.
8470 \end_layout
8471
8472 \begin_layout Standard
8473 The module declaration should then be followed by lines like the following:
8474 \begin_inset Foot
8475 status collapsed
8476
8477 \begin_layout Plain Layout
8478 Preferably in English if the module should be published with \SpecialChar LyX
8479 .
8480  This description will appear in the list of messages to be translated and
8481  will be thus translated with the next interface update.
8482 \end_layout
8483
8484 \end_inset
8485
8486
8487 \end_layout
8488
8489 \begin_layout LyX-Code
8490 #DescriptionBegin 
8491 \end_layout
8492
8493 \begin_layout LyX-Code
8494 #Adds an endnote command, in addition to footnotes.
8495  
8496 \end_layout
8497
8498 \begin_layout LyX-Code
8499 #You will need to add  
8500 \backslash
8501 theendnotes in TeX code where you 
8502 \end_layout
8503
8504 \begin_layout LyX-Code
8505 #want the endnotes to appear.
8506  
8507 \end_layout
8508
8509 \begin_layout LyX-Code
8510 #DescriptionEnd 
8511 \end_layout
8512
8513 \begin_layout LyX-Code
8514 #Requires: somemodule | othermodule
8515 \end_layout
8516
8517 \begin_layout LyX-Code
8518 #Excludes: badmodule
8519 \end_layout
8520
8521 \begin_layout Standard
8522 The description is used in 
8523 \begin_inset Flex Noun
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 Document\SpecialChar menuseparator
8528 Settings\SpecialChar menuseparator
8529 Modules
8530 \end_layout
8531
8532 \end_inset
8533
8534  to provide the user with information about what the module does.
8535  The 
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 Requires
8541 \end_layout
8542
8543 \end_inset
8544
8545  line is used to identify other modules with which this one must be used;
8546  the 
8547 \begin_inset Flex Code
8548 status collapsed
8549
8550 \begin_layout Plain Layout
8551 Excludes
8552 \end_layout
8553
8554 \end_inset
8555
8556  line is used to identify modules with which this one may not be used.
8557  Both are optional, and, as shown, multiple modules should be separated
8558  with the pipe symbol: |.
8559  Note that the required modules are treated disjunctively: 
8560 \emph on
8561 at least one
8562 \emph default
8563  of the required modules must be used.
8564  Similarly, 
8565 \emph on
8566 no
8567 \emph default
8568  excluded module may be used.
8569  Note that modules are identified here by their filenames without the 
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 .module
8575 \end_layout
8576
8577 \end_inset
8578
8579  extension.
8580  So 
8581 \begin_inset Flex Code
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 somemodule
8586 \end_layout
8587
8588 \end_inset
8589
8590  is really 
8591 \begin_inset Flex Code
8592 status collapsed
8593
8594 \begin_layout Plain Layout
8595 somemodule.module
8596 \end_layout
8597
8598 \end_inset
8599
8600 .
8601 \end_layout
8602
8603 \begin_layout Subsection
8604 The CiteEngine file declaration
8605 \end_layout
8606
8607 \begin_layout Standard
8608 A cite engine file must begin with a line like the following:
8609 \end_layout
8610
8611 \begin_layout LyX-Code
8612 #
8613 \backslash
8614 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8615 \end_layout
8616
8617 \begin_layout Standard
8618 The mandatory argument, in curly brackets, is the name of the cite style,
8619  as it should appear in 
8620 \begin_inset Flex Noun
8621 status collapsed
8622
8623 \begin_layout Plain Layout
8624 Document\SpecialChar menuseparator
8625 Settings\SpecialChar menuseparator
8626 Bibliography
8627 \end_layout
8628
8629 \end_inset
8630
8631 .
8632  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8633  packages
8634  on which the cite engine depends.
8635 \end_layout
8636
8637 \begin_layout Standard
8638 The cite engine declaration should then be followed by lines like the following:
8639 \begin_inset Foot
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 Preferably in English if the module should be published with \SpecialChar LyX
8644 .
8645  This description will appear in the list of messages to be translated and
8646  will be thus translated with the next interface update.
8647 \end_layout
8648
8649 \end_inset
8650
8651
8652 \end_layout
8653
8654 \begin_layout LyX-Code
8655 # DescriptionBegin
8656 \end_layout
8657
8658 \begin_layout LyX-Code
8659 #   Biblatex supports many author-year and numerical styles.
8660 \end_layout
8661
8662 \begin_layout LyX-Code
8663 #   It is mainly aimed at the Humanities.
8664  It is highly
8665 \end_layout
8666
8667 \begin_layout LyX-Code
8668 #   customizable, fully localized and provides many features
8669 \end_layout
8670
8671 \begin_layout LyX-Code
8672 #   that are not possible with BibTeX.
8673  The use of 'biber' as
8674 \end_layout
8675
8676 \begin_layout LyX-Code
8677 #   bibliography processor is advised.
8678 \end_layout
8679
8680 \begin_layout LyX-Code
8681 # DescriptionEnd
8682 \end_layout
8683
8684 \begin_layout Standard
8685 The description is used in 
8686 \begin_inset Flex Noun
8687 status collapsed
8688
8689 \begin_layout Plain Layout
8690 Document\SpecialChar menuseparator
8691 Settings\SpecialChar menuseparator
8692 Bibliography
8693 \end_layout
8694
8695 \end_inset
8696
8697  to provide the user with information about the cite engine.
8698 \end_layout
8699
8700 \begin_layout Subsection
8701 Format number
8702 \end_layout
8703
8704 \begin_layout Standard
8705 The first non-comment line of any layout file, included file, or module
8706  
8707 \emph on
8708 must
8709 \emph default
8710  contain the file format number:
8711 \end_layout
8712
8713 \begin_layout Description
8714 \begin_inset Flex Code
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 Format
8719 \end_layout
8720
8721 \end_inset
8722
8723  [
8724 \begin_inset Flex Code
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 int
8729 \end_layout
8730
8731 \end_inset
8732
8733 ] The format number of the layout file.
8734 \end_layout
8735
8736 \begin_layout Standard
8737 This tag was introduced with \SpecialChar LyX
8738
8739 \begin_inset space ~
8740 \end_inset
8741
8742 1.4.0.
8743  Layout files from older \SpecialChar LyX
8744  versions do not have an explicit file format and
8745  are considered to have 
8746 \begin_inset Flex Code
8747 status collapsed
8748
8749 \begin_layout Plain Layout
8750 Format
8751 \begin_inset space ~
8752 \end_inset
8753
8754 1
8755 \end_layout
8756
8757 \end_inset
8758
8759 .
8760  The format for the present version of \SpecialChar LyX
8761  is format 60.
8762  But each version of \SpecialChar LyX
8763  is capable of reading earlier versions' layout files,
8764  just as they are capable of reading files produced by earlier versions
8765  of \SpecialChar LyX
8766 .
8767  There is, however, no provision for converting to earlier formats.
8768 \end_layout
8769
8770 \begin_layout Subsection
8771 \begin_inset CommandInset label
8772 LatexCommand label
8773 name "subsec:General-text-class"
8774
8775 \end_inset
8776
8777 General text class parameters
8778 \end_layout
8779
8780 \begin_layout Standard
8781 These are general parameters that govern the behavior of an entire document
8782  class.
8783  (This does 
8784 \emph on
8785 not
8786 \emph default
8787  mean that they must appear in 
8788 \begin_inset Flex Code
8789 status collapsed
8790
8791 \begin_layout Plain Layout
8792 .layout
8793 \end_layout
8794
8795 \end_inset
8796
8797  files rather than in modules.
8798  A module can contain any layout tag.)
8799 \end_layout
8800
8801 \begin_layout Description
8802 \begin_inset Flex Code
8803 status collapsed
8804
8805 \begin_layout Plain Layout
8806 AddToHTMLPreamble
8807 \end_layout
8808
8809 \end_inset
8810
8811  Adds information that will be output in the 
8812 \begin_inset Flex Code
8813 status collapsed
8814
8815 \begin_layout Plain Layout
8816 <head>
8817 \end_layout
8818
8819 \end_inset
8820
8821  block when the document is output to XHTML.
8822  Typically, this would be used to output CSS style information, but it can
8823  be used for anything that can appear in 
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 <head>
8829 \end_layout
8830
8831 \end_inset
8832
8833 .
8834  Must end with 
8835 \begin_inset Quotes eld
8836 \end_inset
8837
8838
8839 \begin_inset Flex Code
8840 status collapsed
8841
8842 \begin_layout Plain Layout
8843 EndPreamble
8844 \end_layout
8845
8846 \end_inset
8847
8848
8849 \begin_inset Quotes erd
8850 \end_inset
8851
8852 .
8853 \end_layout
8854
8855 \begin_layout Description
8856 \begin_inset Flex Code
8857 status collapsed
8858
8859 \begin_layout Plain Layout
8860 AddToPreamble
8861 \end_layout
8862
8863 \end_inset
8864
8865  Adds information to the document preamble.
8866  Must end with
8867 \begin_inset Newline newline
8868 \end_inset
8869
8870
8871 \begin_inset Quotes eld
8872 \end_inset
8873
8874
8875 \begin_inset Flex Code
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 EndPreamble
8880 \end_layout
8881
8882 \end_inset
8883
8884
8885 \begin_inset Quotes erd
8886 \end_inset
8887
8888 .
8889 \end_layout
8890
8891 \begin_layout Description
8892 \begin_inset Flex Code
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 CiteEngine <engine>
8897 \end_layout
8898
8899 \end_inset
8900
8901  Defines the possibilities for displaying citation references.
8902  See 
8903 \begin_inset CommandInset ref
8904 LatexCommand ref
8905 reference "subsec:Citation-engine-description"
8906 plural "false"
8907 caps "false"
8908 noprefix "false"
8909
8910 \end_inset
8911
8912  for details.
8913  Must end with 
8914 \begin_inset Quotes eld
8915 \end_inset
8916
8917
8918 \begin_inset Flex Code
8919 status collapsed
8920
8921 \begin_layout Plain Layout
8922 End
8923 \end_layout
8924
8925 \end_inset
8926
8927
8928 \begin_inset Quotes erd
8929 \end_inset
8930
8931 .
8932  Primarily used in cite engine files (see 
8933 \begin_inset CommandInset ref
8934 LatexCommand ref
8935 reference "subsec:Cite-Engine-Files"
8936 plural "false"
8937 caps "false"
8938 noprefix "false"
8939
8940 \end_inset
8941
8942 ).
8943 \end_layout
8944
8945 \begin_layout Description
8946 \begin_inset Flex Code
8947 status collapsed
8948
8949 \begin_layout Plain Layout
8950 CiteFormat
8951 \end_layout
8952
8953 \end_inset
8954
8955  Defines formats for use in the display of bibliographic information.
8956  See 
8957 \begin_inset CommandInset ref
8958 LatexCommand ref
8959 reference "subsec:Citation-format-description"
8960
8961 \end_inset
8962
8963  for details.
8964  Must end with 
8965 \begin_inset Quotes eld
8966 \end_inset
8967
8968
8969 \begin_inset Flex Code
8970 status collapsed
8971
8972 \begin_layout Plain Layout
8973 End
8974 \end_layout
8975
8976 \end_inset
8977
8978
8979 \begin_inset Quotes erd
8980 \end_inset
8981
8982 .
8983  Primarily used in cite engine files (see 
8984 \begin_inset CommandInset ref
8985 LatexCommand ref
8986 reference "subsec:Cite-Engine-Files"
8987 plural "false"
8988 caps "false"
8989 noprefix "false"
8990
8991 \end_inset
8992
8993 ).
8994 \end_layout
8995
8996 \begin_layout Description
8997 \begin_inset Flex Code
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 CiteFramework
9002 \end_layout
9003
9004 \end_inset
9005
9006  [
9007 \begin_inset Flex Code
9008 status collapsed
9009
9010 \begin_layout Plain Layout
9011
9012 \emph on
9013 bibtex
9014 \end_layout
9015
9016 \end_inset
9017
9018 ,
9019 \begin_inset Flex Code
9020 status collapsed
9021
9022 \begin_layout Plain Layout
9023 biblatex
9024 \end_layout
9025
9026 \end_inset
9027
9028 ] Determines whether 
9029 \family sans
9030 Biblatex
9031 \family default
9032  or Bib\SpecialChar TeX
9033  is used to generate a Bibliography.
9034  Primarily used in cite engine files (see 
9035 \begin_inset CommandInset ref
9036 LatexCommand ref
9037 reference "subsec:Cite-Engine-Files"
9038 plural "false"
9039 caps "false"
9040 noprefix "false"
9041
9042 \end_inset
9043
9044 ).
9045 \end_layout
9046
9047 \begin_layout Description
9048 \begin_inset Flex Code
9049 status collapsed
9050
9051 \begin_layout Plain Layout
9052 ClassOptions
9053 \end_layout
9054
9055 \end_inset
9056
9057  Describes various global options supported by the document class.
9058  See 
9059 \begin_inset CommandInset ref
9060 LatexCommand ref
9061 reference "subsec:ClassOptions"
9062
9063 \end_inset
9064
9065  for a description.
9066  Must end with 
9067 \begin_inset Quotes eld
9068 \end_inset
9069
9070
9071 \begin_inset Flex Code
9072 status collapsed
9073
9074 \begin_layout Plain Layout
9075 End
9076 \end_layout
9077
9078 \end_inset
9079
9080
9081 \begin_inset Quotes erd
9082 \end_inset
9083
9084 .
9085 \end_layout
9086
9087 \begin_layout Description
9088 \begin_inset Flex Code
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 Columns
9093 \end_layout
9094
9095 \end_inset
9096
9097  [
9098 \begin_inset Flex Code
9099 status collapsed
9100
9101 \begin_layout Plain Layout
9102
9103 \emph on
9104 1
9105 \end_layout
9106
9107 \end_inset
9108
9109 ,
9110 \begin_inset space \thinspace{}
9111 \end_inset
9112
9113
9114 \begin_inset Flex Code
9115 status collapsed
9116
9117 \begin_layout Plain Layout
9118 2
9119 \end_layout
9120
9121 \end_inset
9122
9123 ] Whether the class should 
9124 \emph on
9125 default
9126 \emph default
9127  to having one or two columns.
9128  Can be changed in the 
9129 \begin_inset Flex Noun
9130 status collapsed
9131
9132 \begin_layout Plain Layout
9133 Document\SpecialChar menuseparator
9134 Settings
9135 \end_layout
9136
9137 \end_inset
9138
9139  dialog.
9140 \end_layout
9141
9142 \begin_layout Description
9143 \begin_inset Flex Code
9144 status collapsed
9145
9146 \begin_layout Plain Layout
9147 Counter
9148 \end_layout
9149
9150 \end_inset
9151
9152  [
9153 \begin_inset Flex Code
9154 status collapsed
9155
9156 \begin_layout Plain Layout
9157 string
9158 \end_layout
9159
9160 \end_inset
9161
9162 ] This sequence defines the properties for a counter.
9163  If the counter does not yet exist, it is created; if it does exist, it
9164  is modified.
9165  Must end with 
9166 \begin_inset Quotes eld
9167 \end_inset
9168
9169
9170 \begin_inset Flex Code
9171 status collapsed
9172
9173 \begin_layout Plain Layout
9174 End
9175 \end_layout
9176
9177 \end_inset
9178
9179
9180 \begin_inset Quotes erd
9181 \end_inset
9182
9183 .
9184 \begin_inset Newline newline
9185 \end_inset
9186
9187 See 
9188 \begin_inset CommandInset ref
9189 LatexCommand ref
9190 reference "subsec:Counters"
9191
9192 \end_inset
9193
9194  for details on counters.
9195 \end_layout
9196
9197 \begin_layout Description
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 DefaultFont
9203 \end_layout
9204
9205 \end_inset
9206
9207  Sets the default font used to display the document.
9208  See 
9209 \begin_inset CommandInset ref
9210 LatexCommand ref
9211 reference "subsec:Font-description"
9212
9213 \end_inset
9214
9215  for how to declare fonts.
9216  Must end with 
9217 \begin_inset Quotes eld
9218 \end_inset
9219
9220
9221 \begin_inset Flex Code
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 EndFont
9226 \end_layout
9227
9228 \end_inset
9229
9230
9231 \begin_inset Quotes erd
9232 \end_inset
9233
9234 .
9235 \end_layout
9236
9237 \begin_layout Description
9238 \begin_inset Flex Code
9239 status collapsed
9240
9241 \begin_layout Plain Layout
9242 DefaultModule
9243 \end_layout
9244
9245 \end_inset
9246
9247  [
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 <module>
9253 \end_layout
9254
9255 \end_inset
9256
9257 ] Specifies a module to be included by default with this document class.
9258  The module is specified as filename without the 
9259 \begin_inset Flex Code
9260 status collapsed
9261
9262 \begin_layout Plain Layout
9263 .module
9264 \end_layout
9265
9266 \end_inset
9267
9268  extension.
9269  The user can still remove the module, but it will be active at the outset.
9270  (This applies only when new files are created, or when this class is chosen
9271  for an existing document.)
9272 \end_layout
9273
9274 \begin_layout Description
9275 \begin_inset Flex Code
9276 status collapsed
9277
9278 \begin_layout Plain Layout
9279 DefaultStyle
9280 \end_layout
9281
9282 \end_inset
9283
9284  [
9285 \begin_inset Flex Code
9286 status collapsed
9287
9288 \begin_layout Plain Layout
9289 <style>
9290 \end_layout
9291
9292 \end_inset
9293
9294 ] This is the style that will be assigned to new paragraphs, usually 
9295 \begin_inset Flex Noun
9296 status collapsed
9297
9298 \begin_layout Plain Layout
9299 Standard
9300 \end_layout
9301
9302 \end_inset
9303
9304 .
9305  This will default to the first defined style if not given, but you are
9306  encouraged to use this directive.
9307 \end_layout
9308
9309 \begin_layout Description
9310 \begin_inset Flex Code
9311 status collapsed
9312
9313 \begin_layout Plain Layout
9314 ExcludesModule
9315 \end_layout
9316
9317 \end_inset
9318
9319  [
9320 \begin_inset Flex Code
9321 status collapsed
9322
9323 \begin_layout Plain Layout
9324 <module>
9325 \end_layout
9326
9327 \end_inset
9328
9329 ] This tag indicates that the module (which is specified by filename without
9330  the 
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 .module
9336 \end_layout
9337
9338 \end_inset
9339
9340  extension) cannot be used with this document class.
9341  This might be used in a journal-specific layout file to prevent, say, the
9342  use of the 
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 theorems-sec
9348 \end_layout
9349
9350 \end_inset
9351
9352  module that numbers theorems by section.
9353  This tag may 
9354 \emph on
9355 not
9356 \emph default
9357  be used in a module.
9358  Modules have their own way of excluding other modules (see 
9359 \begin_inset CommandInset ref
9360 LatexCommand ref
9361 reference "subsec:Layout-modules"
9362
9363 \end_inset
9364
9365 ).
9366 \end_layout
9367
9368 \begin_layout Description
9369 \begin_inset Flex Code
9370 status collapsed
9371
9372 \begin_layout Plain Layout
9373 Float
9374 \end_layout
9375
9376 \end_inset
9377
9378  Defines a new float.
9379  See 
9380 \begin_inset CommandInset ref
9381 LatexCommand ref
9382 reference "subsec:Floats"
9383
9384 \end_inset
9385
9386  for details.
9387  Must end with 
9388 \begin_inset Quotes eld
9389 \end_inset
9390
9391
9392 \begin_inset Flex Code
9393 status collapsed
9394
9395 \begin_layout Plain Layout
9396 End
9397 \end_layout
9398
9399 \end_inset
9400
9401
9402 \begin_inset Quotes erd
9403 \end_inset
9404
9405 .
9406 \end_layout
9407
9408 \begin_layout Description
9409 \begin_inset Flex Code
9410 status collapsed
9411
9412 \begin_layout Plain Layout
9413 HTMLPreamble
9414 \end_layout
9415
9416 \end_inset
9417
9418  Sets the information that will be output in the 
9419 \begin_inset Flex Code
9420 status collapsed
9421
9422 \begin_layout Plain Layout
9423 <head>
9424 \end_layout
9425
9426 \end_inset
9427
9428  block when this document class is output to XHTML.
9429  Note that this will completely override any prior 
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 HTMLPreamble
9435 \end_layout
9436
9437 \end_inset
9438
9439  or 
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 AddToHTMLPreamble
9445 \end_layout
9446
9447 \end_inset
9448
9449  declarations.
9450  (Use
9451 \begin_inset Newline newline
9452 \end_inset
9453
9454
9455 \begin_inset Flex Code
9456 status collapsed
9457
9458 \begin_layout Plain Layout
9459 AddToHTMLPreamble
9460 \end_layout
9461
9462 \end_inset
9463
9464  if you just want to add material to the preamble.) Must end with 
9465 \begin_inset Quotes eld
9466 \end_inset
9467
9468
9469 \begin_inset Flex Code
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 EndPreamble
9474 \end_layout
9475
9476 \end_inset
9477
9478
9479 \begin_inset Quotes erd
9480 \end_inset
9481
9482 .
9483 \end_layout
9484
9485 \begin_layout Description
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 HTMLTOCSection
9491 \end_layout
9492
9493 \end_inset
9494
9495  [
9496 \begin_inset Flex Code
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 <style>
9501 \end_layout
9502
9503 \end_inset
9504
9505 ] The style to use for the table of contents, bibliography, and so forth,
9506  when the document is output to HTML.
9507  For articles, this should normally be 
9508 \begin_inset Flex Code
9509 status collapsed
9510
9511 \begin_layout Plain Layout
9512 Section
9513 \end_layout
9514
9515 \end_inset
9516
9517 ; for books 
9518 \begin_inset Flex Code
9519 status collapsed
9520
9521 \begin_layout Plain Layout
9522 Chapter
9523 \end_layout
9524
9525 \end_inset
9526
9527 .
9528  If it is not given, then \SpecialChar LyX
9529  will attempt to figure out which layout to use.
9530 \end_layout
9531
9532 \begin_layout Description
9533 \begin_inset Flex Code
9534 status collapsed
9535
9536 \begin_layout Plain Layout
9537 IfCounter
9538 \end_layout
9539
9540 \end_inset
9541
9542  [
9543 \begin_inset Flex Code
9544 status collapsed
9545
9546 \begin_layout Plain Layout
9547 <counter>
9548 \end_layout
9549
9550 \end_inset
9551
9552 ] Modifies the properties of the given counter.
9553  If the counter does not exist, the statement is ignored.
9554  Must end with 
9555 \begin_inset Quotes eld
9556 \end_inset
9557
9558
9559 \begin_inset Flex Code
9560 status collapsed
9561
9562 \begin_layout Plain Layout
9563 End
9564 \end_layout
9565
9566 \end_inset
9567
9568
9569 \begin_inset Quotes erd
9570 \end_inset
9571
9572 .
9573 \begin_inset Newline newline
9574 \end_inset
9575
9576 See 
9577 \begin_inset CommandInset ref
9578 LatexCommand ref
9579 reference "subsec:Counters"
9580
9581 \end_inset
9582
9583  for details on counters.
9584 \end_layout
9585
9586 \begin_layout Description
9587 \begin_inset Flex Code
9588 status collapsed
9589
9590 \begin_layout Plain Layout
9591 Input
9592 \end_layout
9593
9594 \end_inset
9595
9596  [
9597 \begin_inset Flex Code
9598 status collapsed
9599
9600 \begin_layout Plain Layout
9601 <filename>
9602 \end_layout
9603
9604 \end_inset
9605
9606 ] This allows you to include another layout definition file within yours
9607  to avoid duplicating commands.
9608  Common examples are the standard layout files, for example, 
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 stdclass.inc
9614 \end_layout
9615
9616 \end_inset
9617
9618 , which contains most of the basic layouts.
9619 \end_layout
9620
9621 \begin_layout Description
9622 \begin_inset Flex Code
9623 status collapsed
9624
9625 \begin_layout Plain Layout
9626 InsetLayout
9627 \end_layout
9628
9629 \end_inset
9630
9631  [
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 <type>
9637 \end_layout
9638
9639 \end_inset
9640
9641 ] This section (re-)defines the layout of an inset.
9642  It can be applied to an existing inset or to a new, user-defined inset,
9643  e.g., a new character style.
9644  Must end with 
9645 \begin_inset Quotes eld
9646 \end_inset
9647
9648
9649 \begin_inset Flex Code
9650 status collapsed
9651
9652 \begin_layout Plain Layout
9653 End
9654 \end_layout
9655
9656 \end_inset
9657
9658
9659 \begin_inset Quotes erd
9660 \end_inset
9661
9662 .
9663 \begin_inset Newline newline
9664 \end_inset
9665
9666 See 
9667 \begin_inset CommandInset ref
9668 LatexCommand ref
9669 reference "subsec:Flex-insets-and"
9670
9671 \end_inset
9672
9673  for more information.
9674  
9675 \end_layout
9676
9677 \begin_layout Description
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 LeftMargin
9683 \end_layout
9684
9685 \end_inset
9686
9687  [
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 string
9693 \end_layout
9694
9695 \end_inset
9696
9697 ] A string that indicates the width of the left margin on the screen, for
9698  example, 
9699 \begin_inset Quotes eld
9700 \end_inset
9701
9702
9703 \begin_inset Flex Code
9704 status collapsed
9705
9706 \begin_layout Plain Layout
9707 MMMMM
9708 \end_layout
9709
9710 \end_inset
9711
9712
9713 \begin_inset Quotes erd
9714 \end_inset
9715
9716 .
9717  (Note that this is not a `length', like 
9718 \begin_inset Quotes eld
9719 \end_inset
9720
9721 2ex
9722 \begin_inset Quotes erd
9723 \end_inset
9724
9725 .)
9726 \end_layout
9727
9728 \begin_layout Description
9729 \begin_inset Flex Code
9730 status collapsed
9731
9732 \begin_layout Plain Layout
9733 MaxCiteNames
9734 \end_layout
9735
9736 \end_inset
9737
9738  [
9739 \begin_inset Flex Code
9740 status collapsed
9741
9742 \begin_layout Plain Layout
9743 integer
9744 \end_layout
9745
9746 \end_inset
9747
9748 ] An integer that determines the maximal number of names displayed in an
9749  author-year citation before the citation switches to 
9750 \begin_inset Quotes eld
9751 \end_inset
9752
9753 FirstAuthor et al.
9754 \begin_inset Quotes erd
9755 \end_inset
9756
9757 .
9758  Primarily used in cite engine files (see 
9759 \begin_inset CommandInset ref
9760 LatexCommand ref
9761 reference "subsec:Cite-Engine-Files"
9762 plural "false"
9763 caps "false"
9764 noprefix "false"
9765
9766 \end_inset
9767
9768 ).
9769 \end_layout
9770
9771 \begin_layout Description
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 ModifyStyle
9777 \end_layout
9778
9779 \end_inset
9780
9781  [
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 <style>
9787 \end_layout
9788
9789 \end_inset
9790
9791 ] Modifies the properties of the given paragraph style.
9792  If the style does not exist, this section is ignored.
9793  Must end with 
9794 \begin_inset Quotes eld
9795 \end_inset
9796
9797
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 End
9803 \end_layout
9804
9805 \end_inset
9806
9807
9808 \begin_inset Quotes erd
9809 \end_inset
9810
9811 .
9812 \end_layout
9813
9814 \begin_layout Description
9815 \begin_inset Flex Code
9816 status collapsed
9817
9818 \begin_layout Plain Layout
9819 NoCounter
9820 \end_layout
9821
9822 \end_inset
9823
9824  [
9825 \begin_inset Flex Code
9826 status collapsed
9827
9828 \begin_layout Plain Layout
9829 <counter>
9830 \end_layout
9831
9832 \end_inset
9833
9834 ] Deletes an existing counter, usually one defined in an included file.
9835 \end_layout
9836
9837 \begin_layout Description
9838 \begin_inset Flex Code
9839 status collapsed
9840
9841 \begin_layout Plain Layout
9842 NoFloat
9843 \end_layout
9844
9845 \end_inset
9846
9847  [
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 <float>
9853 \end_layout
9854
9855 \end_inset
9856
9857 ] Deletes an existing float.
9858  This is particularly useful when you want to suppress a float that has
9859  been defined in an input file.
9860 \end_layout
9861
9862 \begin_layout Description
9863 \begin_inset Flex Code
9864 status collapsed
9865
9866 \begin_layout Plain Layout
9867 NoStyle
9868 \end_layout
9869
9870 \end_inset
9871
9872  [
9873 \begin_inset Flex Code
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 <style>
9878 \end_layout
9879
9880 \end_inset
9881
9882 ] Deletes an existing style.
9883 \end_layout
9884
9885 \begin_layout Description
9886 \begin_inset Flex Code
9887 status collapsed
9888
9889 \begin_layout Plain Layout
9890 OutlinerName
9891 \end_layout
9892
9893 \end_inset
9894
9895  [
9896 \begin_inset Flex Code
9897 status collapsed
9898
9899 \begin_layout Plain Layout
9900 <type>
9901 \end_layout
9902
9903 \end_inset
9904
9905 ] [
9906 \begin_inset Flex Code
9907 status collapsed
9908
9909 \begin_layout Plain Layout
9910 <string>
9911 \end_layout
9912
9913 \end_inset
9914
9915 ] Define a new table of contents with type 
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 <type>
9921 \end_layout
9922
9923 \end_inset
9924
9925  and name 
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 <string>
9931 \end_layout
9932
9933 \end_inset
9934
9935 .
9936  See also the AddToToc commands.
9937 \end_layout
9938
9939 \begin_layout Description
9940 \begin_inset Flex Code
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944 OutputFormat
9945 \end_layout
9946
9947 \end_inset
9948
9949  [
9950 \begin_inset Flex Code
9951 status collapsed
9952
9953 \begin_layout Plain Layout
9954 <format>
9955 \end_layout
9956
9957 \end_inset
9958
9959 ] The file format (as defined in the \SpecialChar LyX
9960  preferences) produced by this document
9961  class.
9962  It is mainly useful when 
9963 \begin_inset Flex Code
9964 status collapsed
9965
9966 \begin_layout Plain Layout
9967 OutputType
9968 \end_layout
9969
9970 \end_inset
9971
9972  is 
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 literate
9978 \end_layout
9979
9980 \end_inset
9981
9982  and one wants to define a new type of literate document.
9983  The format is reset to 
9984 \begin_inset Quotes eld
9985 \end_inset
9986
9987
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992 docbook
9993 \end_layout
9994
9995 \end_inset
9996
9997
9998 \begin_inset Quotes erd
9999 \end_inset
10000
10001  or 
10002 \begin_inset Quotes eld
10003 \end_inset
10004
10005
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 latex
10011 \end_layout
10012
10013 \end_inset
10014
10015
10016 \begin_inset Quotes erd
10017 \end_inset
10018
10019  when the corresponding 
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024 OutputType
10025 \end_layout
10026
10027 \end_inset
10028
10029  parameter is encountered.
10030 \end_layout
10031
10032 \begin_layout Description
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 OutputType
10038 \end_layout
10039
10040 \end_inset
10041
10042  [
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047
10048 \emph on
10049 lat
10050 \emph default
10051 ex
10052 \end_layout
10053
10054 \end_inset
10055
10056
10057 \begin_inset Flex Code
10058 status collapsed
10059
10060 \begin_layout Plain Layout
10061 docbook
10062 \end_layout
10063
10064 \end_inset
10065
10066
10067 \begin_inset Flex Code
10068 status collapsed
10069
10070 \begin_layout Plain Layout
10071 literate
10072 \end_layout
10073
10074 \end_inset
10075
10076 ] Specifies what sort of output documents using this class will produce.
10077 \end_layout
10078
10079 \begin_layout Description
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 PackageOptions
10085 \end_layout
10086
10087 \end_inset
10088
10089  [
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 string
10095 \end_layout
10096
10097 \end_inset
10098
10099  
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 string
10105 \end_layout
10106
10107 \end_inset
10108
10109 ] Specifies options, given in the second string, for the package named by
10110  the first string.
10111  For example, 
10112 \begin_inset Quotes eld
10113 \end_inset
10114
10115
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 PackageOptions natbib square
10121 \end_layout
10122
10123 \end_inset
10124
10125
10126 \begin_inset Quotes erd
10127 \end_inset
10128
10129  will cause 
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 natbib
10135 \end_layout
10136
10137 \end_inset
10138
10139  to be loaded with the 
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 square
10145 \end_layout
10146
10147 \end_inset
10148
10149  option.
10150  (For \SpecialChar TeX
10151 perts, this causes \SpecialChar LyX
10152  to output: 
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157
10158 \backslash
10159 PassOptionsToPackage{natbib}{square}
10160 \end_layout
10161
10162 \end_inset
10163
10164  prior to loading 
10165 \begin_inset Flex Code
10166 status collapsed
10167
10168 \begin_layout Plain Layout
10169 natbib
10170 \end_layout
10171
10172 \end_inset
10173
10174 .)
10175 \end_layout
10176
10177 \begin_layout Description
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 PageStyle
10183 \end_layout
10184
10185 \end_inset
10186
10187  [
10188 \begin_inset Flex Code
10189 status collapsed
10190
10191 \begin_layout Plain Layout
10192
10193 \emph on
10194 plain
10195 \end_layout
10196
10197 \end_inset
10198
10199
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 empty
10205 \end_layout
10206
10207 \end_inset
10208
10209
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 headings
10215 \end_layout
10216
10217 \end_inset
10218
10219 ] The default pagestyle.
10220  Can be changed in the 
10221 \begin_inset Flex Noun
10222 status collapsed
10223
10224 \begin_layout Plain Layout
10225 Document\SpecialChar menuseparator
10226 Settings
10227 \end_layout
10228
10229 \end_inset
10230
10231  dialog.
10232 \end_layout
10233
10234 \begin_layout Description
10235 \begin_inset Flex Code
10236 status collapsed
10237
10238 \begin_layout Plain Layout
10239 Preamble
10240 \end_layout
10241
10242 \end_inset
10243
10244  Sets the preamble for the \SpecialChar LaTeX
10245  document.
10246  Note that this will completely override any prior 
10247 \begin_inset Flex Code
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 Preamble
10252 \end_layout
10253
10254 \end_inset
10255
10256  or 
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 AddToPreamble
10262 \end_layout
10263
10264 \end_inset
10265
10266  declarations.
10267  (Use 
10268 \begin_inset Flex Code
10269 status collapsed
10270
10271 \begin_layout Plain Layout
10272 AddToPreamble
10273 \end_layout
10274
10275 \end_inset
10276
10277  if you just want to add material to the preamble.) Must end with 
10278 \begin_inset Quotes eld
10279 \end_inset
10280
10281
10282 \begin_inset Flex Code
10283 status collapsed
10284
10285 \begin_layout Plain Layout
10286 EndPreamble
10287 \end_layout
10288
10289 \end_inset
10290
10291
10292 \begin_inset Quotes erd
10293 \end_inset
10294
10295 .
10296 \end_layout
10297
10298 \begin_layout Description
10299 \begin_inset Flex Code
10300 status collapsed
10301
10302 \begin_layout Plain Layout
10303 Provides
10304 \end_layout
10305
10306 \end_inset
10307
10308  [
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 string
10314 \end_layout
10315
10316 \end_inset
10317
10318 ] [
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323
10324 \emph on
10325 0
10326 \end_layout
10327
10328 \end_inset
10329
10330 ,
10331 \begin_inset space \thinspace{}
10332 \end_inset
10333
10334
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 1
10340 \end_layout
10341
10342 \end_inset
10343
10344 ] Whether the class already provides the feature 
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 string
10350 \end_layout
10351
10352 \end_inset
10353
10354 .
10355  A feature is in general the name of a package (e.
10356 \begin_inset space \thinspace{}
10357 \end_inset
10358
10359 g.
10360 \begin_inset space \space{}
10361 \end_inset
10362
10363
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 amsmath
10369 \end_layout
10370
10371 \end_inset
10372
10373  or 
10374 \begin_inset Flex Code
10375 status collapsed
10376
10377 \begin_layout Plain Layout
10378 makeidx
10379 \end_layout
10380
10381 \end_inset
10382
10383 ) or a macro (e.
10384 \begin_inset space \thinspace{}
10385 \end_inset
10386
10387 g.
10388 \begin_inset space \space{}
10389 \end_inset
10390
10391
10392 \begin_inset Flex Code
10393 status collapsed
10394
10395 \begin_layout Plain Layout
10396 url
10397 \end_layout
10398
10399 \end_inset
10400
10401  or 
10402 \begin_inset Flex Code
10403 status collapsed
10404
10405 \begin_layout Plain Layout
10406 boldsymbol
10407 \end_layout
10408
10409 \end_inset
10410
10411 ).
10412  See 
10413 \begin_inset CommandInset ref
10414 LatexCommand ref
10415 reference "chap:List-of-functions"
10416
10417 \end_inset
10418
10419  for the list of features.
10420 \end_layout
10421
10422 \begin_layout Description
10423 \begin_inset Flex Code
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427 ProvidesModule
10428 \end_layout
10429
10430 \end_inset
10431
10432  [
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 string
10438 \end_layout
10439
10440 \end_inset
10441
10442 ] Indicates that this layout provides the functionality of the module mentioned,
10443  which should be specified by the filename without the 
10444 \begin_inset Flex Code
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448 .module
10449 \end_layout
10450
10451 \end_inset
10452
10453  extension.
10454  This will typically be used if the layout includes the module directly,
10455  rather than using the 
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 DefaultModule
10461 \end_layout
10462
10463 \end_inset
10464
10465  tag to indicate that it ought to be used.
10466  It could also be used in a module that provided an alternate implementation
10467  of the same functionality.
10468 \end_layout
10469
10470 \begin_layout Description
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475 ProvideStyle
10476 \end_layout
10477
10478 \end_inset
10479
10480  [
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 <style>
10486 \end_layout
10487
10488 \end_inset
10489
10490 ] Creates a new paragraph style if it does not already exist.
10491  If the style does exist, this section is ignored.
10492  Must end with 
10493 \begin_inset Quotes eld
10494 \end_inset
10495
10496
10497 \begin_inset Flex Code
10498 status collapsed
10499
10500 \begin_layout Plain Layout
10501 End
10502 \end_layout
10503
10504 \end_inset
10505
10506
10507 \begin_inset Quotes erd
10508 \end_inset
10509
10510 .
10511 \end_layout
10512
10513 \begin_layout Description
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 Requires
10519 \end_layout
10520
10521 \end_inset
10522
10523  [
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528 string
10529 \end_layout
10530
10531 \end_inset
10532
10533 ] Whether the class requires the feature 
10534 \begin_inset Flex Code
10535 status collapsed
10536
10537 \begin_layout Plain Layout
10538 string
10539 \end_layout
10540
10541 \end_inset
10542
10543 .
10544  Multiple features must be separated by commas.
10545  Note that you can only request supported features.
10546  (See 
10547 \begin_inset CommandInset ref
10548 LatexCommand ref
10549 reference "chap:List-of-functions"
10550
10551 \end_inset
10552
10553  for the list of features.).
10554  If you require a package with specific options, you can additionally use
10555  
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 PackageOptions
10561 \end_layout
10562
10563 \end_inset
10564
10565 .
10566 \end_layout
10567
10568 \begin_layout Description
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 RightMargin
10574 \end_layout
10575
10576 \end_inset
10577
10578  [
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 string
10584 \end_layout
10585
10586 \end_inset
10587
10588 ] A string that indicates the width of the right margin on the screen, for
10589  example, 
10590 \begin_inset Quotes eld
10591 \end_inset
10592
10593
10594 \begin_inset Flex Code
10595 status collapsed
10596
10597 \begin_layout Plain Layout
10598 MMMMM
10599 \end_layout
10600
10601 \end_inset
10602
10603
10604 \begin_inset Quotes erd
10605 \end_inset
10606
10607 .
10608 \end_layout
10609
10610 \begin_layout Description
10611 \begin_inset Flex Code
10612 status collapsed
10613
10614 \begin_layout Plain Layout
10615 SecNumDepth
10616 \end_layout
10617
10618 \end_inset
10619
10620  [
10621 \begin_inset Flex Code
10622 status collapsed
10623
10624 \begin_layout Plain Layout
10625 int=3
10626 \end_layout
10627
10628 \end_inset
10629
10630 ] Sets which divisions get numbered.
10631  Corresponds to the
10632 \begin_inset Newline newline
10633 \end_inset
10634
10635
10636 \begin_inset Flex Code
10637 status collapsed
10638
10639 \begin_layout Plain Layout
10640 secnumdepth
10641 \end_layout
10642
10643 \end_inset
10644
10645  counter in \SpecialChar LaTeX
10646 .
10647 \end_layout
10648
10649 \begin_layout Description
10650 \begin_inset Flex Code
10651 status collapsed
10652
10653 \begin_layout Plain Layout
10654 Sides
10655 \end_layout
10656
10657 \end_inset
10658
10659  [
10660 \begin_inset Flex Code
10661 status collapsed
10662
10663 \begin_layout Plain Layout
10664
10665 \emph on
10666 1
10667 \end_layout
10668
10669 \end_inset
10670
10671 ,
10672 \begin_inset space \thinspace{}
10673 \end_inset
10674
10675
10676 \begin_inset Flex Code
10677 status collapsed
10678
10679 \begin_layout Plain Layout
10680 2
10681 \end_layout
10682
10683 \end_inset
10684
10685 ] Whether the class-default should be printing on one or both sides of the
10686  paper.
10687  Can be changed in the 
10688 \begin_inset Flex Noun
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 Document\SpecialChar menuseparator
10693 Settings
10694 \end_layout
10695
10696 \end_inset
10697
10698  dialog.
10699 \end_layout
10700
10701 \begin_layout Description
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 Style
10707 \end_layout
10708
10709 \end_inset
10710
10711  [
10712 \begin_inset Flex Code
10713 status collapsed
10714
10715 \begin_layout Plain Layout
10716 <name>
10717 \end_layout
10718
10719 \end_inset
10720
10721 ] This sequence defines a paragraph style.
10722  If the style does not yet exist, it is created; if it does exist, its parameter
10723 s are modified.
10724  Must end with 
10725 \begin_inset Quotes eld
10726 \end_inset
10727
10728
10729 \begin_inset Flex Code
10730 status collapsed
10731
10732 \begin_layout Plain Layout
10733 End
10734 \end_layout
10735
10736 \end_inset
10737
10738
10739 \begin_inset Quotes erd
10740 \end_inset
10741
10742 .
10743 \begin_inset Newline newline
10744 \end_inset
10745
10746 See 
10747 \begin_inset CommandInset ref
10748 LatexCommand ref
10749 reference "subsec:Paragraph-Styles"
10750
10751 \end_inset
10752
10753  for details on paragraph styles.
10754 \end_layout
10755
10756 \begin_layout Description
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 TitleLatexName
10762 \end_layout
10763
10764 \end_inset
10765
10766  [
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 string="maketitle"
10772 \end_layout
10773
10774 \end_inset
10775
10776 ] The name of the command or environment to be used with 
10777 \begin_inset Flex Code
10778 status collapsed
10779
10780 \begin_layout Plain Layout
10781 TitleLatexType
10782 \end_layout
10783
10784 \end_inset
10785
10786 .
10787 \end_layout
10788
10789 \begin_layout Description
10790 \begin_inset Flex Code
10791 status collapsed
10792
10793 \begin_layout Plain Layout
10794 TitleLatexType
10795 \end_layout
10796
10797 \end_inset
10798
10799  [
10800 \begin_inset Flex Code
10801 status collapsed
10802
10803 \begin_layout Plain Layout
10804
10805 \emph on
10806 CommandAfter
10807 \end_layout
10808
10809 \end_inset
10810
10811
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 Environment
10817 \end_layout
10818
10819 \end_inset
10820
10821 ] Indicates what kind of markup is used to define the title of a document.
10822  
10823 \begin_inset Flex Code
10824 status collapsed
10825
10826 \begin_layout Plain Layout
10827 CommandAfter
10828 \end_layout
10829
10830 \end_inset
10831
10832  means that the macro with name 
10833 \begin_inset Flex Code
10834 status collapsed
10835
10836 \begin_layout Plain Layout
10837 TitleLatexName
10838 \end_layout
10839
10840 \end_inset
10841
10842  will be inserted after the last layout which has 
10843 \begin_inset Quotes eld
10844 \end_inset
10845
10846
10847 \begin_inset Flex Code
10848 status collapsed
10849
10850 \begin_layout Plain Layout
10851 InTitle
10852 \begin_inset space ~
10853 \end_inset
10854
10855 1
10856 \end_layout
10857
10858 \end_inset
10859
10860
10861 \begin_inset Quotes erd
10862 \end_inset
10863
10864 .
10865  
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870 Environment
10871 \end_layout
10872
10873 \end_inset
10874
10875  corresponds to the case where all layouts which have 
10876 \begin_inset Quotes eld
10877 \end_inset
10878
10879
10880 \begin_inset Flex Code
10881 status collapsed
10882
10883 \begin_layout Plain Layout
10884 InTitle
10885 \begin_inset space ~
10886 \end_inset
10887
10888 1
10889 \end_layout
10890
10891 \end_inset
10892
10893
10894 \begin_inset Quotes erd
10895 \end_inset
10896
10897  should be enclosed into the 
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 TitleLatexName
10903 \end_layout
10904
10905 \end_inset
10906
10907  environment.
10908 \end_layout
10909
10910 \begin_layout Description
10911 \begin_inset Flex Code
10912 status collapsed
10913
10914 \begin_layout Plain Layout
10915 TocDepth
10916 \end_layout
10917
10918 \end_inset
10919
10920  [
10921 \begin_inset Flex Code
10922 status collapsed
10923
10924 \begin_layout Plain Layout
10925 int=3
10926 \end_layout
10927
10928 \end_inset
10929
10930 ] Sets which divisions are included in the table of contents.
10931  Corresponds to the 
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 tocdepth
10937 \end_layout
10938
10939 \end_inset
10940
10941  counter in \SpecialChar LaTeX
10942 .
10943 \end_layout
10944
10945 \begin_layout Subsection
10946 \begin_inset Flex Code
10947 status collapsed
10948
10949 \begin_layout Plain Layout
10950 ClassOptions
10951 \end_layout
10952
10953 \end_inset
10954
10955  section
10956 \begin_inset CommandInset label
10957 LatexCommand label
10958 name "subsec:ClassOptions"
10959
10960 \end_inset
10961
10962
10963 \end_layout
10964
10965 \begin_layout Standard
10966 The 
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 ClassOptions
10972 \end_layout
10973
10974 \end_inset
10975
10976  section can contain the following entries:
10977 \end_layout
10978
10979 \begin_layout Description
10980 \begin_inset Flex Code
10981 status collapsed
10982
10983 \begin_layout Plain Layout
10984 FontSize
10985 \end_layout
10986
10987 \end_inset
10988
10989  [
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 string="10|11|12"
10995 \end_layout
10996
10997 \end_inset
10998
10999 ] The list of available font sizes for the document's main font, separated
11000  by 
11001 \begin_inset Quotes eld
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 |
11010 \end_layout
11011
11012 \end_inset
11013
11014
11015 \begin_inset Quotes erd
11016 \end_inset
11017
11018 .
11019 \end_layout
11020
11021 \begin_layout Description
11022 \begin_inset Flex Code
11023 status collapsed
11024
11025 \begin_layout Plain Layout
11026 Header
11027 \end_layout
11028
11029 \end_inset
11030
11031  Used to set the DTD line with XML-based output classes.
11032  E.
11033 \begin_inset space \thinspace{}
11034 \end_inset
11035
11036 g.: PUBLIC 
11037 \begin_inset Quotes eld
11038 \end_inset
11039
11040 -//OASIS//DTD DocBook V4.2//EN
11041 \begin_inset Quotes erd
11042 \end_inset
11043
11044 .
11045 \end_layout
11046
11047 \begin_layout Description
11048 \begin_inset Flex Code
11049 status collapsed
11050
11051 \begin_layout Plain Layout
11052 PageStyle
11053 \end_layout
11054
11055 \end_inset
11056
11057  [
11058 \begin_inset Flex Code
11059 status collapsed
11060
11061 \begin_layout Plain Layout
11062 string="empty|plain|headings|fancy"
11063 \end_layout
11064
11065 \end_inset
11066
11067 ] The list of available page sty\SpecialChar softhyphen
11068 les, separated by 
11069 \begin_inset Quotes eld
11070 \end_inset
11071
11072
11073 \begin_inset Flex Code
11074 status collapsed
11075
11076 \begin_layout Plain Layout
11077 |
11078 \end_layout
11079
11080 \end_inset
11081
11082
11083 \begin_inset Quotes erd
11084 \end_inset
11085
11086 .
11087 \end_layout
11088
11089 \begin_layout Description
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 Other
11095 \end_layout
11096
11097 \end_inset
11098
11099  [
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 string=""
11105 \end_layout
11106
11107 \end_inset
11108
11109 ] Some document class options, separated by a comma, that will be added
11110  to the optional part of the 
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115
11116 \backslash
11117 documentclass
11118 \end_layout
11119
11120 \end_inset
11121
11122  command.
11123 \end_layout
11124
11125 \begin_layout Standard
11126 The 
11127 \begin_inset Flex Code
11128 status collapsed
11129
11130 \begin_layout Plain Layout
11131 ClassOptions
11132 \end_layout
11133
11134 \end_inset
11135
11136  section must end with 
11137 \begin_inset Quotes eld
11138 \end_inset
11139
11140
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145 End
11146 \end_layout
11147
11148 \end_inset
11149
11150
11151 \begin_inset Quotes erd
11152 \end_inset
11153
11154 .
11155 \end_layout
11156
11157 \begin_layout Subsection
11158 Paragraph styles
11159 \begin_inset CommandInset label
11160 LatexCommand label
11161 name "subsec:Paragraph-Styles"
11162
11163 \end_inset
11164
11165
11166 \end_layout
11167
11168 \begin_layout Standard
11169 A paragraph style description looks like this:
11170 \begin_inset Foot
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 Note that this will either define a new style or modify an existing one.
11175 \end_layout
11176
11177 \end_inset
11178
11179
11180 \end_layout
11181
11182 \begin_layout LyX-Code
11183 Style 
11184 \family roman
11185 \emph on
11186 name
11187 \end_layout
11188
11189 \begin_layout LyX-Code
11190  ...
11191 \end_layout
11192
11193 \begin_layout LyX-Code
11194 End
11195 \end_layout
11196
11197 \begin_layout Standard
11198 where the following commands are allowed:
11199 \end_layout
11200
11201 \begin_layout Description
11202 \begin_inset Flex Code
11203 status collapsed
11204
11205 \begin_layout Plain Layout
11206 AddToToc
11207 \end_layout
11208
11209 \end_inset
11210
11211  [
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 string
11217 \end_layout
11218
11219 \end_inset
11220
11221 =""] This paragraph will appear in the table of contents of the given type.
11222  An empty string disables.
11223  See also the OutlinerName and the IsTocCaption commands.
11224  Default: disabled.
11225 \end_layout
11226
11227 \begin_layout Description
11228 \begin_inset Flex Code
11229 status collapsed
11230
11231 \begin_layout Plain Layout
11232 Align
11233 \end_layout
11234
11235 \end_inset
11236
11237  [
11238 \begin_inset Flex Code
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242
11243 \emph on
11244 block
11245 \emph default
11246 , left, right, center
11247 \end_layout
11248
11249 \end_inset
11250
11251 ] Paragraph alignment.
11252 \end_layout
11253
11254 \begin_layout Description
11255 \begin_inset Flex Code
11256 status collapsed
11257
11258 \begin_layout Plain Layout
11259 AlignPossible
11260 \end_layout
11261
11262 \end_inset
11263
11264  [
11265 \begin_inset Flex Code
11266 status collapsed
11267
11268 \begin_layout Plain Layout
11269
11270 \emph on
11271 block
11272 \emph default
11273 , left, right, center
11274 \end_layout
11275
11276 \end_inset
11277
11278 ] A comma separated list of permitted alignments.
11279  (Some \SpecialChar LaTeX
11280  styles prohibit certain alignments, since those wouldn't make sense.
11281  For example a right-aligned or centered enumeration isn't possible.)
11282 \end_layout
11283
11284 \begin_layout Description
11285 \begin_inset Flex Code
11286 status collapsed
11287
11288 \begin_layout Plain Layout
11289 Argument
11290 \end_layout
11291
11292 \end_inset
11293
11294  [
11295 \begin_inset Flex Code
11296 status collapsed
11297
11298 \begin_layout Plain Layout
11299 int
11300 \end_layout
11301
11302 \end_inset
11303
11304 ] Defines argument number <int> of a command\SpecialChar breakableslash
11305 environment associated with
11306  the current style.
11307  This is useful for things like section headings, and only makes sense with
11308  \SpecialChar LaTeX
11309 .
11310  Every (optional or required) argument of a command or environment – except
11311  for the required argument that is associated with the content of the paragraph
11312  itself – has a separate definition, where the number specifies the order
11313  of the arguments.
11314  The definition must end with 
11315 \begin_inset Flex Code
11316 status collapsed
11317
11318 \begin_layout Plain Layout
11319 EndArgument
11320 \end_layout
11321
11322 \end_inset
11323
11324 .
11325  So a command with two optional arguments has:
11326 \end_layout
11327
11328 \begin_deeper
11329 \begin_layout Quote
11330
11331 \family typewriter
11332 Argument 1
11333 \end_layout
11334
11335 \begin_layout Quote
11336
11337 \family typewriter
11338 ...
11339 \end_layout
11340
11341 \begin_layout Quote
11342
11343 \family typewriter
11344 EndArgument
11345 \end_layout
11346
11347 \begin_layout Quote
11348
11349 \family typewriter
11350 Argument 2
11351 \end_layout
11352
11353 \begin_layout Quote
11354
11355 \family typewriter
11356 ...
11357 \end_layout
11358
11359 \begin_layout Quote
11360
11361 \family typewriter
11362 EndArgument
11363 \end_layout
11364
11365 \begin_layout Standard
11366 Inside the 
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371 Argument
11372 \end_layout
11373
11374 \end_inset
11375
11376  definition, the following specifications are possible:
11377 \end_layout
11378
11379 \begin_layout Itemize
11380 \begin_inset Flex Code
11381 status collapsed
11382
11383 \begin_layout Plain Layout
11384 LabelString
11385 \end_layout
11386
11387 \end_inset
11388
11389  
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 [string]
11395 \end_layout
11396
11397 \end_inset
11398
11399  The string that will appear both in the menu (to insert this argument)
11400  and on the argument inset button (unless you also specify a separate 
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405 MenuString
11406 \end_layout
11407
11408 \end_inset
11409
11410 ).
11411  For the menu, you can define an accelerator by appending the respective
11412  character to the string, divided by 
11413 \begin_inset Quotes eld
11414 \end_inset
11415
11416 |
11417 \begin_inset Quotes erd
11418 \end_inset
11419
11420  (e.
11421 \begin_inset space \thinspace{}
11422 \end_inset
11423
11424 g.
11425 \begin_inset space \space{}
11426 \end_inset
11427
11428
11429 \begin_inset Quotes eld
11430 \end_inset
11431
11432
11433 \begin_inset Flex Code
11434 status collapsed
11435
11436 \begin_layout Plain Layout
11437 Short Title|S
11438 \end_layout
11439
11440 \end_inset
11441
11442
11443 \begin_inset Quotes erd
11444 \end_inset
11445
11446 ).
11447 \end_layout
11448
11449 \begin_layout Itemize
11450 \begin_inset Flex Code
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 MenuString
11455 \end_layout
11456
11457 \end_inset
11458
11459  
11460 \begin_inset Flex Code
11461 status collapsed
11462
11463 \begin_layout Plain Layout
11464 [string]
11465 \end_layout
11466
11467 \end_inset
11468
11469  A separate string for the menu.
11470  You can define an accelerator by appending the respective character to
11471  the string, divided by 
11472 \begin_inset Quotes eld
11473 \end_inset
11474
11475 |
11476 \begin_inset Quotes erd
11477 \end_inset
11478
11479  (e.
11480 \begin_inset space \thinspace{}
11481 \end_inset
11482
11483 g.
11484 \begin_inset space \space{}
11485 \end_inset
11486
11487
11488 \begin_inset Quotes eld
11489 \end_inset
11490
11491
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 Short Title|S
11497 \end_layout
11498
11499 \end_inset
11500
11501
11502 \begin_inset Quotes erd
11503 \end_inset
11504
11505 ).
11506  This specification is optional.
11507  If it is not given the 
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 LabelString
11513 \end_layout
11514
11515 \end_inset
11516
11517  will be used instead for the menu.
11518 \end_layout
11519
11520 \begin_layout Itemize
11521 \begin_inset Flex Code
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 Tooltip
11526 \end_layout
11527
11528 \end_inset
11529
11530  
11531 \begin_inset Flex Code
11532 status collapsed
11533
11534 \begin_layout Plain Layout
11535 [string]
11536 \end_layout
11537
11538 \end_inset
11539
11540  A longer explanatory text that appears in the tooltip when hovering over
11541  the argument inset.
11542 \end_layout
11543
11544 \begin_layout Itemize
11545 \begin_inset Flex Code
11546 status collapsed
11547
11548 \begin_layout Plain Layout
11549 Mandatory
11550 \end_layout
11551
11552 \end_inset
11553
11554  [
11555 \begin_inset Flex Code
11556 status collapsed
11557
11558 \begin_layout Plain Layout
11559
11560 \emph on
11561 0
11562 \end_layout
11563
11564 \end_inset
11565
11566 ,
11567 \begin_inset space \thinspace{}
11568 \end_inset
11569
11570
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575 1
11576 \end_layout
11577
11578 \end_inset
11579
11580 ] Declare if this is a mandatory (1) or an optional (0) argument.
11581  Mandatory arguments will be output empty if not given, while optional arguments
11582  will not be output at all.
11583  By default, mandatory arguments are delimited by 
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588 {...}
11589 \end_layout
11590
11591 \end_inset
11592
11593 , while optional arguments are delimited by 
11594 \begin_inset Flex Code
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598 [...]
11599 \end_layout
11600
11601 \end_inset
11602
11603
11604 \end_layout
11605
11606 \begin_layout Itemize
11607 \begin_inset Flex Code
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 Requires
11612 \end_layout
11613
11614 \end_inset
11615
11616  
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 [int=0]
11622 \end_layout
11623
11624 \end_inset
11625
11626  defines another argument (by its number) which this argument requires to
11627  be output if it is itself output.
11628  E.
11629 \begin_inset space \thinspace{}
11630 \end_inset
11631
11632 g., in \SpecialChar LaTeX
11633  commands, optional arguments often require previous optional arguments
11634  to be output (at least empty), as in 
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639
11640 \backslash
11641 command[][argument]{text}
11642 \end_layout
11643
11644 \end_inset
11645
11646 .
11647  This can be achieved by the statement 
11648 \begin_inset Flex Code
11649 status collapsed
11650
11651 \begin_layout Plain Layout
11652 Requires 1
11653 \end_layout
11654
11655 \end_inset
11656
11657  within 
11658 \begin_inset Flex Code
11659 status collapsed
11660
11661 \begin_layout Plain Layout
11662 Argument 2
11663 \end_layout
11664
11665 \end_inset
11666
11667 .
11668 \end_layout
11669
11670 \begin_layout Itemize
11671 \begin_inset Flex Code
11672 status collapsed
11673
11674 \begin_layout Plain Layout
11675 LeftDelim
11676 \end_layout
11677
11678 \end_inset
11679
11680  
11681 \begin_inset Flex Code
11682 status collapsed
11683
11684 \begin_layout Plain Layout
11685 [string]
11686 \end_layout
11687
11688 \end_inset
11689
11690  defines a custom left delimiter (instead of 
11691 \begin_inset Flex Code
11692 status collapsed
11693
11694 \begin_layout Plain Layout
11695 {
11696 \end_layout
11697
11698 \end_inset
11699
11700  or 
11701 \begin_inset Flex Code
11702 status collapsed
11703
11704 \begin_layout Plain Layout
11705 [
11706 \end_layout
11707
11708 \end_inset
11709
11710 ).
11711  A line break in the output can be indicated by 
11712 \begin_inset Flex Code
11713 status collapsed
11714
11715 \begin_layout Plain Layout
11716 <br/>
11717 \end_layout
11718
11719 \end_inset
11720
11721 .
11722 \end_layout
11723
11724 \begin_layout Itemize
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729 RightDelim
11730 \end_layout
11731
11732 \end_inset
11733
11734  
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 [string]
11740 \end_layout
11741
11742 \end_inset
11743
11744  defines a custom right delimiter (instead of 
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 }
11750 \end_layout
11751
11752 \end_inset
11753
11754  or 
11755 \begin_inset Flex Code
11756 status collapsed
11757
11758 \begin_layout Plain Layout
11759 ]
11760 \end_layout
11761
11762 \end_inset
11763
11764 ).
11765  A line break in the output can be indicated by 
11766 \begin_inset Flex Code
11767 status collapsed
11768
11769 \begin_layout Plain Layout
11770 <br/>
11771 \end_layout
11772
11773 \end_inset
11774
11775 .
11776 \end_layout
11777
11778 \begin_layout Itemize
11779 \begin_inset Flex Code
11780 status collapsed
11781
11782 \begin_layout Plain Layout
11783 DefaultArg
11784 \end_layout
11785
11786 \end_inset
11787
11788  
11789 \begin_inset Flex Code
11790 status collapsed
11791
11792 \begin_layout Plain Layout
11793 [string]
11794 \end_layout
11795
11796 \end_inset
11797
11798  defines an argument that is inserted if and only if no user-specified arguments
11799  were given, i.
11800 \begin_inset space \thinspace{}
11801 \end_inset
11802
11803 e.
11804 \begin_inset space \space{}
11805 \end_inset
11806
11807 if no argument inset has been inserted (note that also an empty argument
11808  inset omits the DefaultArg).
11809  Multiple arguments need to be separated by comma.
11810 \end_layout
11811
11812 \begin_layout Itemize
11813 \begin_inset Flex Code
11814 status collapsed
11815
11816 \begin_layout Plain Layout
11817 PresetArg
11818 \end_layout
11819
11820 \end_inset
11821
11822  
11823 \begin_inset Flex Code
11824 status collapsed
11825
11826 \begin_layout Plain Layout
11827 [string]
11828 \end_layout
11829
11830 \end_inset
11831
11832  defines an argument that is inserted in any case (alone or in addition
11833  to user-specified arguments).
11834  Multiple arguments need to be separated by comma.
11835 \end_layout
11836
11837 \begin_layout Itemize
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 Font
11843 \end_layout
11844
11845 \end_inset
11846
11847  The font used for the argument content, see 
11848 \begin_inset CommandInset ref
11849 LatexCommand ref
11850 reference "subsec:Font-description"
11851
11852 \end_inset
11853
11854 .
11855 \end_layout
11856
11857 \begin_layout Itemize
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 LabelFont
11863 \end_layout
11864
11865 \end_inset
11866
11867  The font used for the label; see 
11868 \begin_inset CommandInset ref
11869 LatexCommand ref
11870 reference "subsec:Font-description"
11871
11872 \end_inset
11873
11874 .
11875 \end_layout
11876
11877 \begin_layout Itemize
11878 \begin_inset Flex Code
11879 status collapsed
11880
11881 \begin_layout Plain Layout
11882 Decoration
11883 \end_layout
11884
11885 \end_inset
11886
11887  [
11888 \begin_inset Flex Code
11889 status collapsed
11890
11891 \begin_layout Plain Layout
11892
11893 \emph on
11894 Classic
11895 \emph default
11896 , Minimalistic, Conglomerate
11897 \end_layout
11898
11899 \end_inset
11900
11901 ] describes the rendering style used for the inset's frame and buttons.
11902 \end_layout
11903
11904 \begin_layout Itemize
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 AutoInsert
11910 \end_layout
11911
11912 \end_inset
11913
11914  
11915 \begin_inset Flex Code
11916 status collapsed
11917
11918 \begin_layout Plain Layout
11919 [int=0]
11920 \end_layout
11921
11922 \end_inset
11923
11924  If this is set to 
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 1
11930 \end_layout
11931
11932 \end_inset
11933
11934 , this argument is automatically inserted when the respective style is selected.
11935  Currently, only one argument per style\SpecialChar breakableslash
11936 layout can be automatically inserted.
11937 \end_layout
11938
11939 \begin_layout Itemize
11940 \begin_inset Flex Code
11941 status collapsed
11942
11943 \begin_layout Plain Layout
11944 InsertCotext
11945 \end_layout
11946
11947 \end_inset
11948
11949  
11950 \begin_inset Flex Code
11951 status collapsed
11952
11953 \begin_layout Plain Layout
11954 [int=0]
11955 \end_layout
11956
11957 \end_inset
11958
11959  If this is set to 
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 1
11965 \end_layout
11966
11967 \end_inset
11968
11969 , this argument will be inserted with a copy of the co-text (either selected
11970  text or the whole paragraph) as content.
11971 \end_layout
11972
11973 \begin_layout Itemize
11974 \begin_inset Flex Code
11975 status collapsed
11976
11977 \begin_layout Plain Layout
11978 PassThru
11979 \end_layout
11980
11981 \end_inset
11982
11983  [
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988
11989 \emph on
11990 inherited
11991 \emph default
11992 , true, false
11993 \end_layout
11994
11995 \end_inset
11996
11997 ] Whether the contents of this argument should be output in raw form, meaning
11998  without special translations that \SpecialChar LaTeX
11999  would require.
12000  By default, the 
12001 \begin_inset Flex Code
12002 status collapsed
12003
12004 \begin_layout Plain Layout
12005 PassThru
12006 \end_layout
12007
12008 \end_inset
12009
12010  status is inherited by the inset or paragraph layout the argument belongs
12011  to, true and false change the status for the given argument only.
12012 \end_layout
12013
12014 \begin_layout Itemize
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 PassThruChars
12020 \end_layout
12021
12022 \end_inset
12023
12024  [
12025 \begin_inset Flex Code
12026 status collapsed
12027
12028 \begin_layout Plain Layout
12029 string of characters
12030 \end_layout
12031
12032 \end_inset
12033
12034 ]
12035 \family typewriter
12036  
12037 \family default
12038 Defines individual characters
12039 \begin_inset Newline linebreak
12040 \end_inset
12041
12042 that should be output in raw form, meaning without special translations
12043  that \SpecialChar LaTeX
12044  would require.
12045  Note that, contrary to PassThru, this needs to be explicitly defined for
12046  arguments.
12047  That is, arguments do not inherit PassThruChars from their parent inset
12048  or layout.
12049 \end_layout
12050
12051 \begin_layout Itemize
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 IsTocCaption
12057 \end_layout
12058
12059 \end_inset
12060
12061  [
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066
12067 \emph on
12068 0
12069 \end_layout
12070
12071 \end_inset
12072
12073 ,
12074 \begin_inset space \thinspace{}
12075 \end_inset
12076
12077
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 1
12083 \end_layout
12084
12085 \end_inset
12086
12087 ] If this is set to 1, the argument will output its content in the corresponding
12088  item in the table of contents.
12089  See AddToToc.
12090 \end_layout
12091
12092 \begin_layout Standard
12093 By default, the text entered in the \SpecialChar LyX
12094  workarea in the respective layout is
12095  the last (mandatory) argument of a command if the 
12096 \begin_inset Flex Code
12097 status collapsed
12098
12099 \begin_layout Plain Layout
12100 LatexType
12101 \end_layout
12102
12103 \end_inset
12104
12105  is 
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110 Command
12111 \end_layout
12112
12113 \end_inset
12114
12115 .
12116  However, arguments with the prefix 
12117 \begin_inset Flex Code
12118 status collapsed
12119
12120 \begin_layout Plain Layout
12121 post:
12122 \end_layout
12123
12124 \end_inset
12125
12126  are output after this workarea argument.
12127  Note that post-argument numbering restarts at 1, so the first argument
12128  following the workarea argument is 
12129 \begin_inset Flex Code
12130 status collapsed
12131
12132 \begin_layout Plain Layout
12133 post:1
12134 \end_layout
12135
12136 \end_inset
12137
12138 .
12139  Post-arguments are ignored in any other 
12140 \begin_inset Flex Code
12141 status collapsed
12142
12143 \begin_layout Plain Layout
12144 LatexType
12145 \end_layout
12146
12147 \end_inset
12148
12149  than 
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 Command
12155 \end_layout
12156
12157 \end_inset
12158
12159 .
12160 \end_layout
12161
12162 \begin_layout Standard
12163 Arguments for list 
12164 \begin_inset Flex Code
12165 status collapsed
12166
12167 \begin_layout Plain Layout
12168
12169 \backslash
12170 item
12171 \end_layout
12172
12173 \end_inset
12174
12175 s (as in 
12176 \begin_inset Flex Code
12177 status collapsed
12178
12179 \begin_layout Plain Layout
12180
12181 \backslash
12182 item[foo]
12183 \end_layout
12184
12185 \end_inset
12186
12187 ) have the prefix 
12188 \begin_inset Flex Code
12189 status collapsed
12190
12191 \begin_layout Plain Layout
12192 item:
12193 \end_layout
12194
12195 \end_inset
12196
12197  followed by the number (e.
12198 \begin_inset space \thinspace{}
12199 \end_inset
12200
12201 g.
12202 \begin_inset space \space{}
12203 \end_inset
12204
12205
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 Argument item:1
12211 \end_layout
12212
12213 \end_inset
12214
12215 ).
12216 \end_layout
12217
12218 \end_deeper
12219 \begin_layout Description
12220 \begin_inset Flex Code
12221 status collapsed
12222
12223 \begin_layout Plain Layout
12224 AutoNests
12225 \end_layout
12226
12227 \end_inset
12228
12229  Includes a comma-separated list of layouts that should be nested in and
12230  after the current layout.
12231  Only makes sense for nestable layouts (such as environments).
12232  Must be ended by 
12233 \begin_inset Quotes eld
12234 \end_inset
12235
12236
12237 \begin_inset Flex Code
12238 status collapsed
12239
12240 \begin_layout Plain Layout
12241 EndAutoNests
12242 \end_layout
12243
12244 \end_inset
12245
12246
12247 \begin_inset Quotes erd
12248 \end_inset
12249
12250 .
12251  See also 
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 IsAutoNestedBy
12257 \end_layout
12258
12259 \end_inset
12260
12261 .
12262 \end_layout
12263
12264 \begin_layout Description
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 BabelPreamble
12270 \end_layout
12271
12272 \end_inset
12273
12274  Note that this will completely override any prior 
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279 BabelPreamble
12280 \end_layout
12281
12282 \end_inset
12283
12284  declaration for this style.
12285  Must end with 
12286 \begin_inset Quotes eld
12287 \end_inset
12288
12289
12290 \begin_inset Flex Code
12291 status collapsed
12292
12293 \begin_layout Plain Layout
12294 EndBabelPreamble
12295 \end_layout
12296
12297 \end_inset
12298
12299
12300 \begin_inset Quotes erd
12301 \end_inset
12302
12303 .
12304  See 
12305 \begin_inset CommandInset ref
12306 LatexCommand ref
12307 reference "subsec:I18n"
12308
12309 \end_inset
12310
12311  for details on its use.
12312 \end_layout
12313
12314 \begin_layout Description
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 BottomSep
12320 \end_layout
12321
12322 \end_inset
12323
12324  [
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 float=0
12330 \end_layout
12331
12332 \end_inset
12333
12334 ]
12335 \begin_inset Foot
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 Note that a `float' here is a real number, such as: 1.5.
12340 \end_layout
12341
12342 \end_inset
12343
12344  The vertical space with which the last of a chain of paragraphs with this
12345  style is separated from the following paragraph.
12346  If the next paragraph has another style, the separations are not simply
12347  added, but the maximum is taken.
12348 \end_layout
12349
12350 \begin_layout Description
12351 \begin_inset Flex Code
12352 status collapsed
12353
12354 \begin_layout Plain Layout
12355 Category
12356 \end_layout
12357
12358 \end_inset
12359
12360  [
12361 \begin_inset Flex Code
12362 status collapsed
12363
12364 \begin_layout Plain Layout
12365 string
12366 \end_layout
12367
12368 \end_inset
12369
12370 ] The category for this style.
12371  This is used to group related styles in the style combobox on the toolbar.
12372  Any string can be used, but you may want to use existing categories with
12373  your own styles.
12374  
12375 \end_layout
12376
12377 \begin_layout Description
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382 CommandDepth
12383 \end_layout
12384
12385 \end_inset
12386
12387  Depth of XML command.
12388  Used only with XML-type formats.
12389 \end_layout
12390
12391 \begin_layout Description
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 CopyStyle
12397 \end_layout
12398
12399 \end_inset
12400
12401  [
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 string
12407 \end_layout
12408
12409 \end_inset
12410
12411 ] Copies all the features of an existing style into the current one.
12412  
12413 \end_layout
12414
12415 \begin_layout Description
12416 \begin_inset Flex Code
12417 status collapsed
12418
12419 \begin_layout Plain Layout
12420 DependsOn
12421 \end_layout
12422
12423 \end_inset
12424
12425  [
12426 \begin_inset Flex Code
12427 status collapsed
12428
12429 \begin_layout Plain Layout
12430 <name>
12431 \end_layout
12432
12433 \end_inset
12434
12435 ] The name of a style whose preamble should be output 
12436 \emph on
12437 before
12438 \emph default
12439  this one.
12440  This allows to ensure some ordering of the preamble snippets when macros
12441  definitions depend on one another.
12442 \begin_inset Foot
12443 status collapsed
12444
12445 \begin_layout Plain Layout
12446 Note that, besides that functionality, there is no way to ensure any ordering
12447  of preambles.
12448  The ordering that you see in a given version of \SpecialChar LyX
12449  may change without warning
12450  in later versions.
12451 \end_layout
12452
12453 \end_inset
12454
12455
12456 \end_layout
12457
12458 \begin_layout Description
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463 EndLabeltype
12464 \end_layout
12465
12466 \end_inset
12467
12468  [
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473
12474 \emph on
12475 No_Label
12476 \emph default
12477 , Box, Filled_Box, Static
12478 \end_layout
12479
12480 \end_inset
12481
12482 ] The type of label that stands at the end of the paragraph (or sequence
12483  of paragraphs if 
12484 \begin_inset Flex Code
12485 status collapsed
12486
12487 \begin_layout Plain Layout
12488 LatexType
12489 \end_layout
12490
12491 \end_inset
12492
12493  is
12494 \begin_inset Newline newline
12495 \end_inset
12496
12497
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 Environment
12503 \end_layout
12504
12505 \end_inset
12506
12507
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 Item_Environment
12513 \end_layout
12514
12515 \end_inset
12516
12517  or 
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 List_Environment
12523 \end_layout
12524
12525 \end_inset
12526
12527 ).
12528  
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 No_Label
12534 \end_layout
12535
12536 \end_inset
12537
12538  means 
12539 \begin_inset Quotes eld
12540 \end_inset
12541
12542 nothing
12543 \begin_inset Quotes erd
12544 \end_inset
12545
12546
12547 \begin_inset Flex Code
12548 status collapsed
12549
12550 \begin_layout Plain Layout
12551 Box
12552 \end_layout
12553
12554 \end_inset
12555
12556  (resp.
12557 \begin_inset space \space{}
12558 \end_inset
12559
12560
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 Filled_Box
12566 \end_layout
12567
12568 \end_inset
12569
12570 ) is a white (resp.
12571 \begin_inset space ~
12572 \end_inset
12573
12574 black) square suitable for end of proof markers, 
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 Static
12580 \end_layout
12581
12582 \end_inset
12583
12584  is an explicit text string.
12585 \end_layout
12586
12587 \begin_layout Description
12588 \begin_inset Flex Code
12589 status collapsed
12590
12591 \begin_layout Plain Layout
12592 EndLabelString
12593 \end_layout
12594
12595 \end_inset
12596
12597  [
12598 \begin_inset Flex Code
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 string=""
12603 \end_layout
12604
12605 \end_inset
12606
12607 ] The string used for a label with a 
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 Static
12613 \end_layout
12614
12615 \end_inset
12616
12617
12618 \begin_inset Newline newline
12619 \end_inset
12620
12621
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626 EndLabelType
12627 \end_layout
12628
12629 \end_inset
12630
12631 .
12632  
12633 \end_layout
12634
12635 \begin_layout Description
12636 \begin_inset Flex Code
12637 status collapsed
12638
12639 \begin_layout Plain Layout
12640 Font
12641 \end_layout
12642
12643 \end_inset
12644
12645  The font used for both the text body 
12646 \emph on
12647 and
12648 \emph default
12649  the label.
12650  See 
12651 \begin_inset CommandInset ref
12652 LatexCommand ref
12653 reference "subsec:Font-description"
12654
12655 \end_inset
12656
12657 .
12658  Note that defining this font automatically defines the 
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 LabelFont
12664 \end_layout
12665
12666 \end_inset
12667
12668  to the same value.
12669  So you should define this one first if you also want to define 
12670 \begin_inset Flex Code
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674 LabelFont
12675 \end_layout
12676
12677 \end_inset
12678
12679 .
12680 \end_layout
12681
12682 \begin_layout Description
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 ForceLocal
12688 \end_layout
12689
12690 \end_inset
12691
12692  [
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697 int=0
12698 \end_layout
12699
12700 \end_inset
12701
12702 ] Used for backporting new styles to stable \SpecialChar LyX
12703  versions.
12704  The first stable version that supports this tag is \SpecialChar LyX
12705  2.1.0.
12706  The argument is a number which may either be 0, -1 or any value greater
12707  than zero.
12708  If the 
12709 \begin_inset Flex Code
12710 status collapsed
12711
12712 \begin_layout Plain Layout
12713 ForceLocal
12714 \end_layout
12715
12716 \end_inset
12717
12718  flag of a style is greater than zero, it will always be written to the
12719  document header.
12720  If a .lyx file is read, the style definitions from the document header are
12721  added to the document class.
12722  Therefore even older \SpecialChar LyX
12723  versions can handle the style.
12724  The argument of 
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 ForceLocal
12730 \end_layout
12731
12732 \end_inset
12733
12734  is a version number: if the style is read, and the version number is less
12735  than the version number of the already existing style in the document class,
12736  the new style is ignored.
12737  If the version number is greater, the new style replaces the existing style.
12738  A value of -1 means an infinite version number, i.
12739 \begin_inset space \thinspace{}
12740 \end_inset
12741
12742 e.
12743 \begin_inset space \space{}
12744 \end_inset
12745
12746 the style is always used.
12747 \end_layout
12748
12749 \begin_layout Description
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 FreeSpacing
12755 \end_layout
12756
12757 \end_inset
12758
12759  [
12760 \begin_inset Flex Code
12761 status collapsed
12762
12763 \begin_layout Plain Layout
12764
12765 \emph on
12766 0
12767 \end_layout
12768
12769 \end_inset
12770
12771 ,
12772 \begin_inset space \thinspace{}
12773 \end_inset
12774
12775
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 1
12781 \end_layout
12782
12783 \end_inset
12784
12785 ] Usually \SpecialChar LyX
12786  does not allow you to insert more than one space between words,
12787  since a space is considered as the separation between two words, not a
12788  character or symbol of its own.
12789  This is a very fine thing but sometimes annoying, for example, when typing
12790  program code or plain \SpecialChar LaTeX
12791  code.
12792  For this reason, 
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797 FreeSpacing
12798 \end_layout
12799
12800 \end_inset
12801
12802  can be enabled.
12803  Note that \SpecialChar LyX
12804  will create protected blanks for the additional blanks when
12805  in another mode than \SpecialChar LaTeX
12806 -mode.
12807 \end_layout
12808
12809 \begin_layout Description
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 HTML*
12815 \end_layout
12816
12817 \end_inset
12818
12819  These tags are used with XHTML output.
12820  See 
12821 \begin_inset CommandInset ref
12822 LatexCommand ref
12823 reference "subsec:Paragraph-Style-XHTML"
12824
12825 \end_inset
12826
12827 .
12828 \end_layout
12829
12830 \begin_layout Description
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835 InnerTag
12836 \end_layout
12837
12838 \end_inset
12839
12840  [FIXME] (Used only with XML-type formats.)
12841 \end_layout
12842
12843 \begin_layout Description
12844 \begin_inset Flex Code
12845 status collapsed
12846
12847 \begin_layout Plain Layout
12848 InPreamble
12849 \end_layout
12850
12851 \end_inset
12852
12853  [
12854 \begin_inset Flex Code
12855 status collapsed
12856
12857 \begin_layout Plain Layout
12858
12859 \emph on
12860 0
12861 \end_layout
12862
12863 \end_inset
12864
12865 ,
12866 \begin_inset space \thinspace{}
12867 \end_inset
12868
12869
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874 1
12875 \end_layout
12876
12877 \end_inset
12878
12879 ] If 
12880 \begin_inset Flex Code
12881 status collapsed
12882
12883 \begin_layout Plain Layout
12884 1
12885 \end_layout
12886
12887 \end_inset
12888
12889 , marks the style as to be included in the document preamble and not in
12890  the document body.
12891  This is useful for document classes that want such information as the title
12892  and author to appear in the preamble.
12893  Note that this works only for styles for which the 
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 LatexType
12899 \end_layout
12900
12901 \end_inset
12902
12903  is 
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 Command
12909 \end_layout
12910
12911 \end_inset
12912
12913  or 
12914 \begin_inset Flex Code
12915 status collapsed
12916
12917 \begin_layout Plain Layout
12918 Paragraph
12919 \end_layout
12920
12921 \end_inset
12922
12923 .
12924 \end_layout
12925
12926 \begin_layout Description
12927 \begin_inset Flex Code
12928 status collapsed
12929
12930 \begin_layout Plain Layout
12931 InTitle
12932 \end_layout
12933
12934 \end_inset
12935
12936  [
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941
12942 \emph on
12943 0
12944 \end_layout
12945
12946 \end_inset
12947
12948 ,
12949 \begin_inset space \thinspace{}
12950 \end_inset
12951
12952
12953 \begin_inset Flex Code
12954 status collapsed
12955
12956 \begin_layout Plain Layout
12957 1
12958 \end_layout
12959
12960 \end_inset
12961
12962 ] If 
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 1
12968 \end_layout
12969
12970 \end_inset
12971
12972 , marks the style as being part of a title block (see also the 
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 TitleLatexType
12978 \end_layout
12979
12980 \end_inset
12981
12982  and 
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 TitleLatexName
12988 \end_layout
12989
12990 \end_inset
12991
12992  global entries).
12993 \end_layout
12994
12995 \begin_layout Description
12996 \begin_inset Flex Code
12997 status collapsed
12998
12999 \begin_layout Plain Layout
13000 IsAutoNestedBy
13001 \end_layout
13002
13003 \end_inset
13004
13005  Includes a comma-separated list of layouts after which this one should
13006  be nested.
13007  Only makes sense with regard to nestable layouts (such as environments).
13008  Must be ended by 
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012
13013 \begin_inset Flex Code
13014 status collapsed
13015
13016 \begin_layout Plain Layout
13017 EndIsAutoNestedBy
13018 \end_layout
13019
13020 \end_inset
13021
13022
13023 \begin_inset Quotes erd
13024 \end_inset
13025
13026 .
13027  See also 
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 AutoNests
13033 \end_layout
13034
13035 \end_inset
13036
13037 .
13038 \end_layout
13039
13040 \begin_layout Description
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045 IsTocCaption
13046 \end_layout
13047
13048 \end_inset
13049
13050  [
13051 \begin_inset Flex Code
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055
13056 \emph on
13057 0
13058 \end_layout
13059
13060 \end_inset
13061
13062 ,
13063 \begin_inset space \thinspace{}
13064 \end_inset
13065
13066
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071 1
13072 \end_layout
13073
13074 \end_inset
13075
13076 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13077  of its contents in its item in the table of contents.
13078  Otherwise, only the label, if it exists, appears.
13079 \end_layout
13080
13081 \begin_layout Description
13082 \begin_inset Flex Code
13083 status collapsed
13084
13085 \begin_layout Plain Layout
13086 ItemCommand
13087 \end_layout
13088
13089 \end_inset
13090
13091  [
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096 string="item"
13097 \end_layout
13098
13099 \end_inset
13100
13101 ] The \SpecialChar LaTeX
13102  command sequence declaring an item in a list.
13103  The command is to be defined without the preceding backslash (the default
13104  is 
13105 \begin_inset Quotes eld
13106 \end_inset
13107
13108 item
13109 \begin_inset Quotes erd
13110 \end_inset
13111
13112 , resulting in 
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117
13118 \backslash
13119 item
13120 \end_layout
13121
13122 \end_inset
13123
13124  in the \SpecialChar LaTeX
13125  output).
13126 \end_layout
13127
13128 \begin_layout Description
13129 \begin_inset Flex Code
13130 status collapsed
13131
13132 \begin_layout Plain Layout
13133 ItemSep
13134 \end_layout
13135
13136 \end_inset
13137
13138  [
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 float=0
13144 \end_layout
13145
13146 \end_inset
13147
13148 ] This provides extra space between paragraphs that have the same style.
13149  If you put other styles into an environment, each is separated with the
13150  environment's 
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 ParSep
13156 \end_layout
13157
13158 \end_inset
13159
13160 .
13161  But the whole items of the environment are additionally separated with
13162  this 
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167 ItemSep
13168 \end_layout
13169
13170 \end_inset
13171
13172 .
13173  Note that this is a
13174 \emph on
13175  multiplier.
13176 \end_layout
13177
13178 \begin_layout Description
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183 ItemTag
13184 \end_layout
13185
13186 \end_inset
13187
13188  [FIXME] (Used only with XML-type formats.)
13189 \end_layout
13190
13191 \begin_layout Description
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196 KeepEmpty
13197 \end_layout
13198
13199 \end_inset
13200
13201  [
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206
13207 \emph on
13208 0
13209 \end_layout
13210
13211 \end_inset
13212
13213 ,
13214 \begin_inset space \thinspace{}
13215 \end_inset
13216
13217
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 1
13223 \end_layout
13224
13225 \end_inset
13226
13227 ] Usually \SpecialChar LyX
13228  does not allow you to leave a paragraph empty, since it would
13229  lead to empty \SpecialChar LaTeX
13230  output.
13231  There are some cases where this could be desirable however: in a letter
13232  template, the required fields can be provided as empty fields, so that
13233  people do not forget them; in some special classes, a style can be used
13234  as some kind of break, which does not contain actual text.
13235 \end_layout
13236
13237 \begin_layout Description
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 LabelBottomsep
13243 \end_layout
13244
13245 \end_inset
13246
13247  [
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 float=0
13253 \end_layout
13254
13255 \end_inset
13256
13257 ] The vertical space between the label and the text body.
13258  Only used for labels that are above the text body (
13259 \begin_inset Flex Code
13260 status collapsed
13261
13262 \begin_layout Plain Layout
13263 Top_Environment
13264 \end_layout
13265
13266 \end_inset
13267
13268  and
13269 \begin_inset Newline newline
13270 \end_inset
13271
13272
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 Centered_Top_Environment
13278 \end_layout
13279
13280 \end_inset
13281
13282 ).
13283 \end_layout
13284
13285 \begin_layout Description
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 LabelCounter
13291 \end_layout
13292
13293 \end_inset
13294
13295  [
13296 \begin_inset Flex Code
13297 status collapsed
13298
13299 \begin_layout Plain Layout
13300 string=""
13301 \end_layout
13302
13303 \end_inset
13304
13305 ] The name of the counter for automatic numbering.
13306  In order to have the counter appear with your label, you will need to reference
13307  it in the 
13308 \begin_inset Flex Code
13309 status collapsed
13310
13311 \begin_layout Plain Layout
13312
13313 \family typewriter
13314 LabelString
13315 \end_layout
13316
13317 \end_inset
13318
13319 .
13320  This will work with 
13321 \begin_inset Flex Code
13322 status collapsed
13323
13324 \begin_layout Plain Layout
13325 LabelType
13326 \end_layout
13327
13328 \end_inset
13329
13330 s, 
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 Static
13336 \end_layout
13337
13338 \end_inset
13339
13340
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 Above
13346 \end_layout
13347
13348 \end_inset
13349
13350  and 
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 Centered
13356 \end_layout
13357
13358 \end_inset
13359
13360 , at least.
13361 \begin_inset Newline newline
13362 \end_inset
13363
13364 This 
13365 \emph on
13366 may
13367 \emph default
13368  also be given if 
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 LabelType
13374 \end_layout
13375
13376 \end_inset
13377
13378  is 
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 Enumerate
13384 \end_layout
13385
13386 \end_inset
13387
13388 , though this case is a bit complicated.
13389  Suppose you declare 
13390 \begin_inset Quotes eld
13391 \end_inset
13392
13393
13394 \begin_inset Flex Code
13395 status collapsed
13396
13397 \begin_layout Plain Layout
13398 LabelCounter myenum
13399 \end_layout
13400
13401 \end_inset
13402
13403
13404 \begin_inset Quotes erd
13405 \end_inset
13406
13407 .
13408  Then the actual counters used are 
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 myenumi
13414 \end_layout
13415
13416 \end_inset
13417
13418
13419 \begin_inset Flex Code
13420 status collapsed
13421
13422 \begin_layout Plain Layout
13423 myenumii
13424 \end_layout
13425
13426 \end_inset
13427
13428
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433 myenumiii
13434 \end_layout
13435
13436 \end_inset
13437
13438  and 
13439 \begin_inset Flex Code
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443 myenumiv
13444 \end_layout
13445
13446 \end_inset
13447
13448 , much as in \SpecialChar LaTeX
13449 .
13450  These counters must all be declared separately.
13451 \begin_inset Newline newline
13452 \end_inset
13453
13454 See 
13455 \begin_inset CommandInset ref
13456 LatexCommand ref
13457 reference "subsec:Counters"
13458
13459 \end_inset
13460
13461  for details on counters.
13462 \end_layout
13463
13464 \begin_layout Description
13465 \begin_inset Flex Code
13466 status collapsed
13467
13468 \begin_layout Plain Layout
13469 LabelFont
13470 \end_layout
13471
13472 \end_inset
13473
13474  The font used for the label.
13475  See 
13476 \begin_inset CommandInset ref
13477 LatexCommand ref
13478 reference "subsec:Font-description"
13479
13480 \end_inset
13481
13482 .
13483 \end_layout
13484
13485 \begin_layout Description
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 LabelIndent
13491 \end_layout
13492
13493 \end_inset
13494
13495  [
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 string=""
13501 \end_layout
13502
13503 \end_inset
13504
13505 ] Text that indicates how far a label should be indented.
13506 \end_layout
13507
13508 \begin_layout Description
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513 LabelSep
13514 \end_layout
13515
13516 \end_inset
13517
13518  [
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 string=""
13524 \end_layout
13525
13526 \end_inset
13527
13528 ] Text that indicates the amount of horizontal space between the label and
13529  the text body.
13530  Only used for labels that are not above the text body.
13531 \end_layout
13532
13533 \begin_layout Description
13534 \begin_inset Flex Code
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 LabelString
13539 \end_layout
13540
13541 \end_inset
13542
13543  [
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548 string=""
13549 \end_layout
13550
13551 \end_inset
13552
13553 ] The string used for the label.
13554  When 
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 LabelCounter
13560 \end_layout
13561
13562 \end_inset
13563
13564  is set, this string can be contain the special formatting commands described
13565  in 
13566 \begin_inset CommandInset ref
13567 LatexCommand ref
13568 reference "subsec:Counters"
13569
13570 \end_inset
13571
13572 .
13573 \end_layout
13574
13575 \begin_layout Description
13576 \begin_inset Flex Code
13577 status collapsed
13578
13579 \begin_layout Plain Layout
13580 LabelStringAppendix
13581 \end_layout
13582
13583 \end_inset
13584
13585  [
13586 \begin_inset Flex Code
13587 status collapsed
13588
13589 \begin_layout Plain Layout
13590 string=""
13591 \end_layout
13592
13593 \end_inset
13594
13595 ] This is used inside the appendix instead of
13596 \begin_inset Newline newline
13597 \end_inset
13598
13599
13600 \begin_inset Flex Code
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604 LabelString
13605 \end_layout
13606
13607 \end_inset
13608
13609 .
13610  Note that every 
13611 \begin_inset Flex Code
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615 LabelString
13616 \end_layout
13617
13618 \end_inset
13619
13620  statement resets
13621 \begin_inset Newline newline
13622 \end_inset
13623
13624
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 LabelStringAppendix
13630 \end_layout
13631
13632 \end_inset
13633
13634  too.
13635 \end_layout
13636
13637 \begin_layout Description
13638 \begin_inset Flex Code
13639 status collapsed
13640
13641 \begin_layout Plain Layout
13642 LabelTag
13643 \end_layout
13644
13645 \end_inset
13646
13647  [FIXME] (Used only with XML-type formats.)
13648 \end_layout
13649
13650 \begin_layout Description
13651 \begin_inset Flex Code
13652 status collapsed
13653
13654 \begin_layout Plain Layout
13655 LabelType
13656 \end_layout
13657
13658 \end_inset
13659
13660  [
13661 \begin_inset Flex Code
13662 status collapsed
13663
13664 \begin_layout Plain Layout
13665
13666 \emph on
13667 No_Label
13668 \emph default
13669 , Manual, Static, Above, 
13670 \begin_inset Newline newline
13671 \end_inset
13672
13673 Centered, Sensitive, Enumerate,
13674 \begin_inset Newline newline
13675 \end_inset
13676
13677 Itemize, Bibliography
13678 \end_layout
13679
13680 \end_inset
13681
13682 ]
13683 \end_layout
13684
13685 \begin_deeper
13686 \begin_layout Description
13687 \begin_inset Flex Code
13688 status collapsed
13689
13690 \begin_layout Plain Layout
13691 Manual
13692 \end_layout
13693
13694 \end_inset
13695
13696  means the label is the very first word (up to the first real blank).
13697  Use protected spaces if you want more than one word as the label.
13698  
13699 \end_layout
13700
13701 \begin_layout Description
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 Static
13707 \end_layout
13708
13709 \end_inset
13710
13711  means the label is simply what is declared as 
13712 \begin_inset Flex Code
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 LabelString
13717 \end_layout
13718
13719 \end_inset
13720
13721 .
13722  This will be displayed 
13723 \begin_inset Quotes eld
13724 \end_inset
13725
13726 inline
13727 \begin_inset Quotes erd
13728 \end_inset
13729
13730 , at the beginning of the paragraph.
13731  If the 
13732 \begin_inset Flex Code
13733 status collapsed
13734
13735 \begin_layout Plain Layout
13736 LatexType
13737 \end_layout
13738
13739 \end_inset
13740
13741  is 
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 Environment
13747 \end_layout
13748
13749 \end_inset
13750
13751 , then it will be displayed only in the first paragraph of any sequence
13752  of paragraphs with the same 
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757 Style
13758 \end_layout
13759
13760 \end_inset
13761
13762 .
13763 \end_layout
13764
13765 \begin_layout Description
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 Above
13771 \end_layout
13772
13773 \end_inset
13774
13775
13776 \begin_inset space ~
13777 \end_inset
13778
13779 and
13780 \begin_inset space ~
13781 \end_inset
13782
13783
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 Centered
13789 \end_layout
13790
13791 \end_inset
13792
13793  are special cases of 
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 Static
13799 \end_layout
13800
13801 \end_inset
13802
13803 .
13804  The label will be printed above the paragraph either at the beginning of
13805  the line or centered.
13806 \end_layout
13807
13808 \begin_layout Description
13809 \begin_inset Flex Code
13810 status collapsed
13811
13812 \begin_layout Plain Layout
13813 Sensitive
13814 \end_layout
13815
13816 \end_inset
13817
13818  is a special case for the caption-labels 
13819 \begin_inset Quotes eld
13820 \end_inset
13821
13822 Figure
13823 \begin_inset Quotes erd
13824 \end_inset
13825
13826  and 
13827 \begin_inset Quotes eld
13828 \end_inset
13829
13830 Table
13831 \begin_inset Quotes erd
13832 \end_inset
13833
13834 .
13835 \begin_inset Newline newline
13836 \end_inset
13837
13838
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 Sensitive
13844 \end_layout
13845
13846 \end_inset
13847
13848  means the (hardcoded) label string depends on the kind of float: It is
13849  hardcoded to be `FloatType N', where N is the value of the counter associated
13850  with the float.
13851  For the case that a caption is inserted outside of a float the 
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 LabelString
13857 \end_layout
13858
13859 \end_inset
13860
13861  will appear as 
13862 \begin_inset Quotes eld
13863 \end_inset
13864
13865 Senseless!
13866 \begin_inset Quotes erd
13867 \end_inset
13868
13869 .
13870 \end_layout
13871
13872 \begin_layout Description
13873 \begin_inset Flex Code
13874 status collapsed
13875
13876 \begin_layout Plain Layout
13877 Enumerate
13878 \end_layout
13879
13880 \end_inset
13881
13882  produces the usual sort of enumeration labels.
13883  The number type needs to be set in the 
13884 \family sans
13885 Counter
13886 \family default
13887 , see 
13888 \begin_inset CommandInset ref
13889 LatexCommand ref
13890 reference "subsec:Counters"
13891
13892 \end_inset
13893
13894 .
13895 \end_layout
13896
13897 \begin_layout Description
13898 \begin_inset Flex Code
13899 status collapsed
13900
13901 \begin_layout Plain Layout
13902 Itemize
13903 \end_layout
13904
13905 \end_inset
13906
13907  produces various bullets at the different levels.
13908  The bullet types displayed can be set via 
13909 \begin_inset Flex Noun
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 Document\SpecialChar menuseparator
13914 Settings\SpecialChar menuseparator
13915 Bullets
13916 \end_layout
13917
13918 \end_inset
13919
13920 .
13921 \end_layout
13922
13923 \begin_layout Description
13924 \begin_inset Flex Code
13925 status collapsed
13926
13927 \begin_layout Plain Layout
13928 Bibliography
13929 \end_layout
13930
13931 \end_inset
13932
13933  should be used only with 
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938 LatexType BibEnvironment
13939 \end_layout
13940
13941 \end_inset
13942
13943 .
13944 \end_layout
13945
13946 \end_deeper
13947 \begin_layout Description
13948 \begin_inset Flex Code
13949 status collapsed
13950
13951 \begin_layout Plain Layout
13952 LangPreamble
13953 \end_layout
13954
13955 \end_inset
13956
13957  Note that this will completely override any prior 
13958 \begin_inset Flex Code
13959 status collapsed
13960
13961 \begin_layout Plain Layout
13962 LangPreamble
13963 \end_layout
13964
13965 \end_inset
13966
13967  declaration for this style.
13968  Must end with 
13969 \begin_inset Quotes eld
13970 \end_inset
13971
13972
13973 \begin_inset Flex Code
13974 status collapsed
13975
13976 \begin_layout Plain Layout
13977 EndLangPreamble
13978 \end_layout
13979
13980 \end_inset
13981
13982
13983 \begin_inset Quotes erd
13984 \end_inset
13985
13986 .
13987  See 
13988 \begin_inset CommandInset ref
13989 LatexCommand ref
13990 reference "subsec:I18n"
13991
13992 \end_inset
13993
13994  for details on its use.
13995 \end_layout
13996
13997 \begin_layout Description
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 LatexName
14003 \end_layout
14004
14005 \end_inset
14006
14007  [
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 <name>
14013 \end_layout
14014
14015 \end_inset
14016
14017 ] The name of the corresponding \SpecialChar LaTeX
14018  stuff.
14019  Either the environment or command name.
14020 \end_layout
14021
14022 \begin_layout Description
14023 \begin_inset Flex Code
14024 status collapsed
14025
14026 \begin_layout Plain Layout
14027 LatexParam
14028 \end_layout
14029
14030 \end_inset
14031
14032  [
14033 \begin_inset Flex Code
14034 status collapsed
14035
14036 \begin_layout Plain Layout
14037 <parameter>
14038 \end_layout
14039
14040 \end_inset
14041
14042 ] An optional parameter for the corresponding 
14043 \begin_inset Flex Code
14044 status collapsed
14045
14046 \begin_layout Plain Layout
14047 LatexName
14048 \end_layout
14049
14050 \end_inset
14051
14052  stuff.
14053  This parameter cannot be changed from within \SpecialChar LyX
14054  (use 
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 Argument
14060 \end_layout
14061
14062 \end_inset
14063
14064  for customizable parameters).
14065  This will be output as is after all \SpecialChar LaTeX
14066  
14067 \begin_inset Flex Code
14068 status collapsed
14069
14070 \begin_layout Plain Layout
14071 Argument
14072 \end_layout
14073
14074 \end_inset
14075
14076 s.
14077 \end_layout
14078
14079 \begin_layout Description
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 LatexType
14085 \end_layout
14086
14087 \end_inset
14088
14089  [
14090 \begin_inset Flex Code
14091 status collapsed
14092
14093 \begin_layout Plain Layout
14094
14095 \emph on
14096 Paragraph
14097 \emph default
14098 , Command, Environment, Item_Environment,
14099 \begin_inset Newline newline
14100 \end_inset
14101
14102 List_Environment, Bib_Environment
14103 \end_layout
14104
14105 \end_inset
14106
14107 ] How the style should be translated into \SpecialChar LaTeX
14108 .
14109 \begin_inset Foot
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 LatexType
14118 \end_layout
14119
14120 \end_inset
14121
14122  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14123  Visit the SGML class files for specific examples.
14124 \end_layout
14125
14126 \end_inset
14127
14128
14129 \end_layout
14130
14131 \begin_deeper
14132 \begin_layout Description
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 Paragraph
14138 \end_layout
14139
14140 \end_inset
14141
14142  means nothing special.
14143 \end_layout
14144
14145 \begin_layout Description
14146 \begin_inset Flex Code
14147 status collapsed
14148
14149 \begin_layout Plain Layout
14150 Command
14151 \end_layout
14152
14153 \end_inset
14154
14155  means 
14156 \begin_inset Flex Code
14157 status collapsed
14158
14159 \begin_layout Plain Layout
14160
14161 \backslash
14162
14163 \emph on
14164 LatexName
14165 \emph default
14166 {\SpecialChar ldots
14167 }
14168 \end_layout
14169
14170 \end_inset
14171
14172 .
14173 \end_layout
14174
14175 \begin_layout Description
14176 \begin_inset Flex Code
14177 status collapsed
14178
14179 \begin_layout Plain Layout
14180 Environment
14181 \end_layout
14182
14183 \end_inset
14184
14185  means 
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190
14191 \backslash
14192 begin{
14193 \emph on
14194 LatexName
14195 \emph default
14196 }\SpecialChar ldots
14197
14198 \backslash
14199 end{
14200 \emph on
14201 LatexName
14202 \emph default
14203 }
14204 \end_layout
14205
14206 \end_inset
14207
14208 .
14209  
14210 \end_layout
14211
14212 \begin_layout Description
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 Item_Environment
14218 \end_layout
14219
14220 \end_inset
14221
14222  is the same as 
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 Environment
14228 \end_layout
14229
14230 \end_inset
14231
14232 , except that an 
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237
14238 \backslash
14239 item
14240 \end_layout
14241
14242 \end_inset
14243
14244  is generated for each paragraph of this environment.
14245  
14246 \end_layout
14247
14248 \begin_layout Description
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 List_Environment
14254 \end_layout
14255
14256 \end_inset
14257
14258  is the same as 
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 Item_Environment
14264 \end_layout
14265
14266 \end_inset
14267
14268 , except that
14269 \begin_inset Newline newline
14270 \end_inset
14271
14272
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 LabelWidthString
14278 \end_layout
14279
14280 \end_inset
14281
14282  is passed as an argument to the environment.
14283 \begin_inset Newline newline
14284 \end_inset
14285
14286
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 LabelWidthString
14292 \end_layout
14293
14294 \end_inset
14295
14296  can be defined in the 
14297 \begin_inset Flex Noun
14298 status collapsed
14299
14300 \begin_layout Plain Layout
14301 Edit\SpecialChar menuseparator
14302 Paragraph
14303 \begin_inset space ~
14304 \end_inset
14305
14306 settings
14307 \end_layout
14308
14309 \end_inset
14310
14311  dialog.
14312 \end_layout
14313
14314 \begin_layout Description
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 Bib_Environment
14320 \end_layout
14321
14322 \end_inset
14323
14324  is like 
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 Environment
14330 \end_layout
14331
14332 \end_inset
14333
14334  but adds the necessary mandatory argument (the longest label) to the begin
14335  statement of the bibliography environment:
14336 \begin_inset Newline newline
14337 \end_inset
14338
14339
14340 \begin_inset Flex Code
14341 status collapsed
14342
14343 \begin_layout Plain Layout
14344
14345 \backslash
14346 begin{thebibliography}{99}
14347 \end_layout
14348
14349 \end_inset
14350
14351 .
14352  It is therefore only useful for bibliography environments.
14353  The default longest label 
14354 \begin_inset Quotes eld
14355 \end_inset
14356
14357 99
14358 \begin_inset Quotes erd
14359 \end_inset
14360
14361  can be changed by the user in the paragraph settings of a bibliography
14362  item.
14363 \end_layout
14364
14365 \begin_layout Standard
14366 Putting the last few things together, the \SpecialChar LaTeX
14367  output will be either: 
14368 \end_layout
14369
14370 \begin_layout LyX-Code
14371
14372 \backslash
14373 LatexName[LatexParam]{\SpecialChar ldots
14374 }
14375 \end_layout
14376
14377 \begin_layout Standard
14378 or: 
14379 \end_layout
14380
14381 \begin_layout LyX-Code
14382
14383 \backslash
14384 begin{LatexName}[LatexParam] \SpecialChar ldots
14385  
14386 \backslash
14387 end{LatexName}.
14388 \end_layout
14389
14390 \begin_layout Standard
14391 depending upon the \SpecialChar LaTeX
14392  type.
14393 \end_layout
14394
14395 \end_deeper
14396 \begin_layout Description
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 LeftDelim
14402 \end_layout
14403
14404 \end_inset
14405
14406  [
14407 \begin_inset Flex Code
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411 string
14412 \end_layout
14413
14414 \end_inset
14415
14416 ] A string that is put at the beginning of the style content.
14417  A line break in the output can be indicated by 
14418 \begin_inset Flex Code
14419 status collapsed
14420
14421 \begin_layout Plain Layout
14422 <br/>
14423 \end_layout
14424
14425 \end_inset
14426
14427 .
14428 \end_layout
14429
14430 \begin_layout Description
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435 LeftMargin
14436 \end_layout
14437
14438 \end_inset
14439
14440  [
14441 \begin_inset Flex Code
14442 status collapsed
14443
14444 \begin_layout Plain Layout
14445 string=""
14446 \end_layout
14447
14448 \end_inset
14449
14450 ] If you put styles into environments, the different 
14451 \begin_inset Flex Code
14452 status collapsed
14453
14454 \begin_layout Plain Layout
14455 LeftMargin
14456 \end_layout
14457
14458 \end_inset
14459
14460  are not simply added, but added with a factor 
14461 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14462 \end_inset
14463
14464 .
14465  Note that this parameter is also used when 
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470 Margin
14471 \end_layout
14472
14473 \end_inset
14474
14475  is defined as 
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480 Manual
14481 \end_layout
14482
14483 \end_inset
14484
14485  or 
14486 \begin_inset Flex Code
14487 status collapsed
14488
14489 \begin_layout Plain Layout
14490 Dynamic
14491 \end_layout
14492
14493 \end_inset
14494
14495 .
14496  Then it is added to the manual or dynamic margin.
14497 \begin_inset Newline newline
14498 \end_inset
14499
14500 For example 
14501 \begin_inset Quotes eld
14502 \end_inset
14503
14504
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 MM
14510 \end_layout
14511
14512 \end_inset
14513
14514
14515 \begin_inset Quotes erd
14516 \end_inset
14517
14518  means that the paragraph is indented with the width of 
14519 \begin_inset Quotes eld
14520 \end_inset
14521
14522
14523 \begin_inset Flex Code
14524 status collapsed
14525
14526 \begin_layout Plain Layout
14527 MM
14528 \end_layout
14529
14530 \end_inset
14531
14532
14533 \begin_inset Quotes erd
14534 \end_inset
14535
14536  in the normal font.
14537  You can get a negative width by prefixing the string with 
14538 \begin_inset Quotes eld
14539 \end_inset
14540
14541
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 -
14547 \end_layout
14548
14549 \end_inset
14550
14551
14552 \begin_inset Quotes erd
14553 \end_inset
14554
14555 .
14556  This way was chosen so that the look is the same with each used screen
14557  font.
14558 \end_layout
14559
14560 \begin_layout Description
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 Margin
14566 \end_layout
14567
14568 \end_inset
14569
14570  [
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575
14576 \emph on
14577 Static
14578 \emph default
14579 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14580 \end_layout
14581
14582 \end_inset
14583
14584
14585 \begin_inset Newline newline
14586 \end_inset
14587
14588 The kind of margin that the style has on the left side.
14589 \end_layout
14590
14591 \begin_deeper
14592 \begin_layout Description
14593 \begin_inset Flex Code
14594 status collapsed
14595
14596 \begin_layout Plain Layout
14597 Static
14598 \end_layout
14599
14600 \end_inset
14601
14602  just means a fixed margin.
14603 \end_layout
14604
14605 \begin_layout Description
14606 \begin_inset Flex Code
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 Manual
14611 \end_layout
14612
14613 \end_inset
14614
14615  means that the left margin depends on the string entered in the 
14616 \begin_inset Flex Noun
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620 Edit\SpecialChar menuseparator
14621 Paragraph
14622 \begin_inset space ~
14623 \end_inset
14624
14625 Settings
14626 \end_layout
14627
14628 \end_inset
14629
14630  dialog.
14631  This is used to typeset nice lists without tabulators.
14632 \end_layout
14633
14634 \begin_layout Description
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 Dynamic
14640 \end_layout
14641
14642 \end_inset
14643
14644  means that the margin depends on the size of the label.
14645  This is used for automatic enumerated headlines.
14646  It is obvious that the headline 
14647 \begin_inset Quotes eld
14648 \end_inset
14649
14650 5.4.3.2.1 Very long headline
14651 \begin_inset Quotes erd
14652 \end_inset
14653
14654  must have a wider left margin (as wide as 
14655 \begin_inset Quotes eld
14656 \end_inset
14657
14658 5.4.3.2.1
14659 \begin_inset Quotes erd
14660 \end_inset
14661
14662  plus the space) than 
14663 \begin_inset Quotes eld
14664 \end_inset
14665
14666 3.2 Very long headline
14667 \begin_inset Quotes erd
14668 \end_inset
14669
14670 , even if standard 
14671 \begin_inset Quotes eld
14672 \end_inset
14673
14674 word processors
14675 \begin_inset Quotes erd
14676 \end_inset
14677
14678  are not able to do this.
14679 \end_layout
14680
14681 \begin_layout Description
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 First_Dynamic
14687 \end_layout
14688
14689 \end_inset
14690
14691  is similar, but only the very first row of the paragraph is dynamic, while
14692  the others are static; this is used, for example, for descriptions.
14693 \end_layout
14694
14695 \begin_layout Description
14696 \begin_inset Flex Code
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700 Right_Address_Box
14701 \end_layout
14702
14703 \end_inset
14704
14705  means the margin is chosen in a way that the longest row of this paragraph
14706  fits to the right margin.
14707  This is used to typeset an address on the right edge of the page.
14708 \end_layout
14709
14710 \end_deeper
14711 \begin_layout Description
14712 \begin_inset Flex Code
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716 NeedProtect
14717 \end_layout
14718
14719 \end_inset
14720
14721  [
14722 \begin_inset Flex Code
14723 status collapsed
14724
14725 \begin_layout Plain Layout
14726
14727 \emph on
14728 0
14729 \end_layout
14730
14731 \end_inset
14732
14733 ,
14734 \begin_inset space \thinspace{}
14735 \end_inset
14736
14737
14738 \begin_inset Flex Code
14739 status collapsed
14740
14741 \begin_layout Plain Layout
14742 1
14743 \end_layout
14744
14745 \end_inset
14746
14747 ] Whether fragile commands in this style should be 
14748 \begin_inset Flex Code
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752
14753 \backslash
14754 protect
14755 \end_layout
14756
14757 \end_inset
14758
14759 'ed.
14760  (Note: This is 
14761 \emph on
14762 not
14763 \emph default
14764  whether this command should itself be protected.)
14765 \end_layout
14766
14767 \begin_layout Description
14768 \begin_inset Flex Code
14769 status collapsed
14770
14771 \begin_layout Plain Layout
14772 Newline
14773 \end_layout
14774
14775 \end_inset
14776
14777  [
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782 0
14783 \end_layout
14784
14785 \end_inset
14786
14787 ,
14788 \begin_inset space \thinspace{}
14789 \end_inset
14790
14791
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796
14797 \emph on
14798 1
14799 \end_layout
14800
14801 \end_inset
14802
14803 ] Whether newlines are translated into \SpecialChar LaTeX
14804  newlines (
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809
14810 \backslash
14811
14812 \backslash
14813
14814 \end_layout
14815
14816 \end_inset
14817
14818 ) or not.
14819  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14820  editing
14821  inside \SpecialChar LyX
14822 .
14823 \end_layout
14824
14825 \begin_layout Description
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 NextNoIndent
14831 \end_layout
14832
14833 \end_inset
14834
14835  [
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840
14841 \emph on
14842 0
14843 \end_layout
14844
14845 \end_inset
14846
14847 ,
14848 \begin_inset space \thinspace{}
14849 \end_inset
14850
14851
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 1
14857 \end_layout
14858
14859 \end_inset
14860
14861 ] If set to true, and if 
14862 \begin_inset Flex Code
14863 status collapsed
14864
14865 \begin_layout Plain Layout
14866 DefaultStyle
14867 \end_layout
14868
14869 \end_inset
14870
14871  (usually 
14872 \begin_inset Flex Code
14873 status collapsed
14874
14875 \begin_layout Plain Layout
14876 Standard
14877 \end_layout
14878
14879 \end_inset
14880
14881 ) paragraphs are being indented, then the indentation of such a paragraph
14882  following one of this type will be suppressed.
14883  (So this will not affect the display of non-default paragraphs.)
14884 \end_layout
14885
14886 \begin_layout Description
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 ObsoletedBy
14892 \end_layout
14893
14894 \end_inset
14895
14896  [
14897 \begin_inset Flex Code
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901 <name>
14902 \end_layout
14903
14904 \end_inset
14905
14906 ] Name of a style that has replaced this style.
14907  This is used to rename a style, while keeping backward compatibility.
14908 \end_layout
14909
14910 \begin_layout Description
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 ParagraphGroup
14916 \end_layout
14917
14918 \end_inset
14919
14920  [
14921 \begin_inset Flex Code
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 0
14926 \end_layout
14927
14928 \end_inset
14929
14930 ,
14931 \begin_inset space \thinspace{}
14932 \end_inset
14933
14934
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 1
14940 \end_layout
14941
14942 \end_inset
14943
14944 ] Determines whether consecutive paragraphs of the same type are treated
14945  as belonging together.
14946  This has the effect that the 
14947 \begin_inset Flex Code
14948 status collapsed
14949
14950 \begin_layout Plain Layout
14951 GuiLabel
14952 \end_layout
14953
14954 \end_inset
14955
14956  is only printed once before such a group.
14957  By default, this is true for 
14958 \begin_inset Flex Code
14959 status collapsed
14960
14961 \begin_layout Plain Layout
14962 LaTeXType
14963 \end_layout
14964
14965 \end_inset
14966
14967  
14968 \begin_inset Flex Code
14969 status collapsed
14970
14971 \begin_layout Plain Layout
14972 Environment
14973 \end_layout
14974
14975 \end_inset
14976
14977  and 
14978 \begin_inset Flex Code
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982 Bib_Environment
14983 \end_layout
14984
14985 \end_inset
14986
14987  and false for all other types.
14988 \end_layout
14989
14990 \begin_layout Description
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 ParbreakIsNewline
14996 \end_layout
14997
14998 \end_inset
14999
15000  [
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005
15006 \emph on
15007 0
15008 \end_layout
15009
15010 \end_inset
15011
15012 ,
15013 \begin_inset space \thinspace{}
15014 \end_inset
15015
15016
15017 \begin_inset Flex Code
15018 status collapsed
15019
15020 \begin_layout Plain Layout
15021 1
15022 \end_layout
15023
15024 \end_inset
15025
15026 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15027  output,
15028  but only by a line break; together with 
15029 \begin_inset Flex Code
15030 status collapsed
15031
15032 \begin_layout Plain Layout
15033 PassThru 1
15034 \end_layout
15035
15036 \end_inset
15037
15038 , this allows to emulate a plain text editor (like the ERT inset).
15039 \end_layout
15040
15041 \begin_layout Description
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 ParIndent
15047 \end_layout
15048
15049 \end_inset
15050
15051  [
15052 \begin_inset Flex Code
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056 string=""
15057 \end_layout
15058
15059 \end_inset
15060
15061 ] The indent of the very first line of a paragraph.
15062  The
15063 \begin_inset Newline newline
15064 \end_inset
15065
15066
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 Parindent
15072 \end_layout
15073
15074 \end_inset
15075
15076  will be fixed for a certain style.
15077  The exception is the default style, since the indentation for these paragraphs
15078  can be prohibited with 
15079 \begin_inset Flex Code
15080 status collapsed
15081
15082 \begin_layout Plain Layout
15083 NextNoIndent
15084 \end_layout
15085
15086 \end_inset
15087
15088 .
15089  Also, 
15090 \begin_inset Flex Code
15091 status collapsed
15092
15093 \begin_layout Plain Layout
15094 Standard
15095 \end_layout
15096
15097 \end_inset
15098
15099  style paragraphs inside environments use the 
15100 \begin_inset Flex Code
15101 status collapsed
15102
15103 \begin_layout Plain Layout
15104 Parindent
15105 \end_layout
15106
15107 \end_inset
15108
15109  of the environment, not their native one.
15110  For example, 
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 Standard
15116 \end_layout
15117
15118 \end_inset
15119
15120  paragraphs inside an enumeration are not indented.
15121 \end_layout
15122
15123 \begin_layout Description
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128 ParSep
15129 \end_layout
15130
15131 \end_inset
15132
15133  [
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138 float=0
15139 \end_layout
15140
15141 \end_inset
15142
15143 ] The vertical space between two paragraphs of this style.
15144 \end_layout
15145
15146 \begin_layout Description
15147 \begin_inset Flex Code
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151 Parskip
15152 \end_layout
15153
15154 \end_inset
15155
15156  [
15157 \begin_inset Flex Code
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 float=0
15162 \end_layout
15163
15164 \end_inset
15165
15166 ] \SpecialChar LyX
15167  allows the user to choose either 
15168 \begin_inset Quotes eld
15169 \end_inset
15170
15171 indent
15172 \begin_inset Quotes erd
15173 \end_inset
15174
15175  or 
15176 \begin_inset Quotes eld
15177 \end_inset
15178
15179 skip
15180 \begin_inset Quotes erd
15181 \end_inset
15182
15183  to separate paragraphs.
15184  When 
15185 \begin_inset Quotes eld
15186 \end_inset
15187
15188 indent
15189 \begin_inset Quotes erd
15190 \end_inset
15191
15192  is chosen, 
15193 \begin_inset Flex Code
15194 status collapsed
15195
15196 \begin_layout Plain Layout
15197 Parskip
15198 \end_layout
15199
15200 \end_inset
15201
15202  is ignored.
15203  When 
15204 \begin_inset Quotes eld
15205 \end_inset
15206
15207 skip
15208 \begin_inset Quotes erd
15209 \end_inset
15210
15211  is chosen, 
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 ParIndent
15217 \end_layout
15218
15219 \end_inset
15220
15221  is ignored and all paragraphs are separated by the 
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 Parskip
15227 \end_layout
15228
15229 \end_inset
15230
15231  argument.
15232  The vertical space is calculated with 
15233 \begin_inset Flex Code
15234 status collapsed
15235
15236 \begin_layout Plain Layout
15237 Parskip
15238 \begin_inset space ~
15239 \end_inset
15240
15241 * DefaultHeight
15242 \end_layout
15243
15244 \end_inset
15245
15246  where 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 DefaultHeight
15252 \end_layout
15253
15254 \end_inset
15255
15256  is the height of a row with the normal font.
15257  This way, the look stays the same with different screen fonts.
15258 \end_layout
15259
15260 \begin_layout Description
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 PassThru
15266 \end_layout
15267
15268 \end_inset
15269
15270  [
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275
15276 \emph on
15277 0
15278 \end_layout
15279
15280 \end_inset
15281
15282 ,
15283 \begin_inset space \thinspace{}
15284 \end_inset
15285
15286
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 1
15292 \end_layout
15293
15294 \end_inset
15295
15296 ] Whether the contents of this paragraph should be output in raw form, meaning
15297  without special translations that \SpecialChar LaTeX
15298  would require.
15299 \end_layout
15300
15301 \begin_layout Description
15302 \begin_inset Flex Code
15303 status collapsed
15304
15305 \begin_layout Plain Layout
15306 PassThruChars
15307 \end_layout
15308
15309 \end_inset
15310
15311  [
15312 \begin_inset Flex Code
15313 status collapsed
15314
15315 \begin_layout Plain Layout
15316 string
15317 \end_layout
15318
15319 \end_inset
15320
15321 ]
15322 \family typewriter
15323  
15324 \family default
15325 Defines individual characters that should be output in raw form, meaning
15326  without special translations that \SpecialChar LaTeX
15327  would require.
15328 \end_layout
15329
15330 \begin_layout Description
15331 \begin_inset Flex Code
15332 status collapsed
15333
15334 \begin_layout Plain Layout
15335 Preamble
15336 \end_layout
15337
15338 \end_inset
15339
15340  Information to be included in the \SpecialChar LaTeX
15341  preamble when this style is used.
15342  Used to define macros, load packages, etc., required by this particular
15343  style.
15344  Must end with 
15345 \begin_inset Quotes eld
15346 \end_inset
15347
15348
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 EndPreamble
15354 \end_layout
15355
15356 \end_inset
15357
15358
15359 \begin_inset Quotes erd
15360 \end_inset
15361
15362 .
15363 \end_layout
15364
15365 \begin_layout Description
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 RefPrefix
15371 \end_layout
15372
15373 \end_inset
15374
15375  [
15376 \begin_inset Flex Code
15377 status collapsed
15378
15379 \begin_layout Plain Layout
15380 string
15381 \end_layout
15382
15383 \end_inset
15384
15385 ] The prefix to use when creating labels referring to paragraphs of this
15386  type.
15387  This allows the use of formatted references.
15388 \end_layout
15389
15390 \begin_layout Description
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395 Requires 
15396 \end_layout
15397
15398 \end_inset
15399
15400  [
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 string
15406 \end_layout
15407
15408 \end_inset
15409
15410 ] Whether the style requires the feature 
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 string
15416 \end_layout
15417
15418 \end_inset
15419
15420  (see 
15421 \begin_inset CommandInset ref
15422 LatexCommand ref
15423 reference "chap:List-of-functions"
15424
15425 \end_inset
15426
15427  for the list of features).
15428  If you require a package with specific options, you can additionally use
15429  
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 PackageOptions
15435 \end_layout
15436
15437 \end_inset
15438
15439  as a general text class parameter (see 
15440 \begin_inset CommandInset ref
15441 LatexCommand ref
15442 reference "subsec:General-text-class"
15443
15444 \end_inset
15445
15446 ).
15447 \end_layout
15448
15449 \begin_layout Description
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 ResetArgs
15455 \end_layout
15456
15457 \end_inset
15458
15459  [
15460 \begin_inset Flex Code
15461 status collapsed
15462
15463 \begin_layout Plain Layout
15464
15465 \emph on
15466 0
15467 \end_layout
15468
15469 \end_inset
15470
15471 ,
15472 \begin_inset Flex Code
15473 status collapsed
15474
15475 \begin_layout Plain Layout
15476 1
15477 \end_layout
15478
15479 \end_inset
15480
15481 ] Resets the \SpecialChar LaTeX
15482  arguments of this style (as defined via the 
15483 \begin_inset Flex Code
15484 status collapsed
15485
15486 \begin_layout Plain Layout
15487 Argument
15488 \end_layout
15489
15490 \end_inset
15491
15492  tag).
15493  This is useful if you have copied a style via 
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 CopyStyle
15499 \end_layout
15500
15501 \end_inset
15502
15503 , but you do not want to inherit its (required and optional) arguments.
15504 \end_layout
15505
15506 \begin_layout Description
15507 \begin_inset Flex Code
15508 status collapsed
15509
15510 \begin_layout Plain Layout
15511 ResumeCounter
15512 \end_layout
15513
15514 \end_inset
15515
15516  [
15517 \begin_inset Flex Code
15518 status collapsed
15519
15520 \begin_layout Plain Layout
15521
15522 \emph on
15523 0
15524 \end_layout
15525
15526 \end_inset
15527
15528 ,
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 1
15534 \end_layout
15535
15536 \end_inset
15537
15538 ] Resumes a counter that is usually reset at each new sequence of layouts.
15539  This is currently only useful when 
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 LabelType
15545 \end_layout
15546
15547 \end_inset
15548
15549  is 
15550 \begin_inset Flex Code
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 Enumerate
15555 \end_layout
15556
15557 \end_inset
15558
15559 .
15560 \end_layout
15561
15562 \begin_layout Description
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 RightDelim
15568 \end_layout
15569
15570 \end_inset
15571
15572  [
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 string
15578 \end_layout
15579
15580 \end_inset
15581
15582 ] A string that is put at the end of the layout content.
15583  A line break in the output can be indicated by 
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 <br/>
15589 \end_layout
15590
15591 \end_inset
15592
15593 .
15594 \end_layout
15595
15596 \begin_layout Description
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 RightMargin
15602 \end_layout
15603
15604 \end_inset
15605
15606  [
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611 string=""
15612 \end_layout
15613
15614 \end_inset
15615
15616 ] Similar to 
15617 \begin_inset Flex Code
15618 status collapsed
15619
15620 \begin_layout Plain Layout
15621 LeftMargin
15622 \end_layout
15623
15624 \end_inset
15625
15626 .
15627 \end_layout
15628
15629 \begin_layout Description
15630 \begin_inset Flex Code
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 Spacing
15635 \end_layout
15636
15637 \end_inset
15638
15639  [
15640 \begin_inset Flex Code
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644
15645 \emph on
15646 single
15647 \end_layout
15648
15649 \end_inset
15650
15651
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 onehalf
15657 \end_layout
15658
15659 \end_inset
15660
15661
15662 \begin_inset Flex Code
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666 double
15667 \end_layout
15668
15669 \end_inset
15670
15671
15672 \begin_inset Flex Code
15673 status collapsed
15674
15675 \begin_layout Plain Layout
15676 other
15677 \begin_inset space ~
15678 \end_inset
15679
15680 <value>
15681 \end_layout
15682
15683 \end_inset
15684
15685 ] This defines what the default spacing should be in the style.
15686  The arguments 
15687 \begin_inset Flex Code
15688 status collapsed
15689
15690 \begin_layout Plain Layout
15691 single
15692 \end_layout
15693
15694 \end_inset
15695
15696
15697 \begin_inset Flex Code
15698 status collapsed
15699
15700 \begin_layout Plain Layout
15701 onehalf
15702 \end_layout
15703
15704 \end_inset
15705
15706  and 
15707 \begin_inset Flex Code
15708 status collapsed
15709
15710 \begin_layout Plain Layout
15711 double
15712 \end_layout
15713
15714 \end_inset
15715
15716  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15717  If you specify the argument 
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 other
15723 \end_layout
15724
15725 \end_inset
15726
15727 , then you must also provide a value argument which will be the actual multiplie
15728 r value.
15729  Note that, contrary to other parameters, 
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 Spacing
15735 \end_layout
15736
15737 \end_inset
15738
15739  implies the generation of specific \SpecialChar LaTeX
15740  code, using the \SpecialChar LaTeX
15741  package 
15742 \family roman
15743
15744 \begin_inset Flex Code
15745 status collapsed
15746
15747 \begin_layout Plain Layout
15748 setspace
15749 \end_layout
15750
15751 \end_inset
15752
15753 .
15754 \end_layout
15755
15756 \begin_layout Description
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 Spellcheck
15762 \end_layout
15763
15764 \end_inset
15765
15766  [
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 0
15772 \end_layout
15773
15774 \end_inset
15775
15776 ,
15777 \begin_inset space \thinspace{}
15778 \end_inset
15779
15780
15781 \begin_inset Flex Code
15782 status collapsed
15783
15784 \begin_layout Plain Layout
15785
15786 \emph on
15787 1
15788 \end_layout
15789
15790 \end_inset
15791
15792 ] Allow spell-checking paragraphs of this style.
15793  Default is true.
15794 \end_layout
15795
15796 \begin_layout Description
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 StepMasterCounter
15802 \end_layout
15803
15804 \end_inset
15805
15806  [
15807 \begin_inset Flex Code
15808 status collapsed
15809
15810 \begin_layout Plain Layout
15811
15812 \emph on
15813 0
15814 \end_layout
15815
15816 \end_inset
15817
15818 ,
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823 1
15824 \end_layout
15825
15826 \end_inset
15827
15828 ] Steps the master counter of a given counter at the beginning of a new
15829  sequence of layouts.
15830  This is currently only useful when 
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 LabelType
15836 \end_layout
15837
15838 \end_inset
15839
15840  is 
15841 \begin_inset Flex Code
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845 Enumerate
15846 \end_layout
15847
15848 \end_inset
15849
15850 .
15851 \end_layout
15852
15853 \begin_layout Description
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 TextFont
15859 \end_layout
15860
15861 \end_inset
15862
15863  The font used for the text body .
15864  See 
15865 \begin_inset CommandInset ref
15866 LatexCommand ref
15867 reference "subsec:Font-description"
15868
15869 \end_inset
15870
15871 .
15872 \end_layout
15873
15874 \begin_layout Description
15875 \begin_inset Flex Code
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879 TocLevel
15880 \end_layout
15881
15882 \end_inset
15883
15884
15885 \series medium
15886  [
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891
15892 \series medium
15893 int=3
15894 \end_layout
15895
15896 \end_inset
15897
15898 ]
15899 \series default
15900  The level of the style in the table of contents.
15901  This is used for automatic numbering of section headings.
15902 \end_layout
15903
15904 \begin_layout Description
15905 \begin_inset Flex Code
15906 status collapsed
15907
15908 \begin_layout Plain Layout
15909 ToggleIndent
15910 \end_layout
15911
15912 \end_inset
15913
15914  [
15915 \emph on
15916
15917 \begin_inset Flex Code
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921
15922 \emph on
15923 default
15924 \end_layout
15925
15926 \end_inset
15927
15928
15929 \emph default
15930
15931 \begin_inset Flex Code
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 always
15936 \end_layout
15937
15938 \end_inset
15939
15940
15941 \begin_inset Flex Code
15942 status collapsed
15943
15944 \begin_layout Plain Layout
15945 never
15946 \end_layout
15947
15948 \end_inset
15949
15950 ] This tag determines whether the first line indentation of this paragraph
15951  can be toggled via the Paragraph settings dialog.
15952  If 
15953 \emph on
15954
15955 \begin_inset Flex Code
15956 status collapsed
15957
15958 \begin_layout Plain Layout
15959
15960 \emph off
15961 default
15962 \end_layout
15963
15964 \end_inset
15965
15966
15967 \emph default
15968  is set, indentation can be toggled if the document settings use 
15969 \begin_inset Quotes eld
15970 \end_inset
15971
15972 indent
15973 \begin_inset Quotes erd
15974 \end_inset
15975
15976  paragraph style, with 
15977 \begin_inset Flex Code
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 always
15982 \end_layout
15983
15984 \end_inset
15985
15986 , indentation can always be toggled, notwithstanding the document settings,
15987  with 
15988 \begin_inset Flex Code
15989 status collapsed
15990
15991 \begin_layout Plain Layout
15992 never
15993 \end_layout
15994
15995 \end_inset
15996
15997 , indentation can never be toggled.
15998 \end_layout
15999
16000 \begin_layout Description
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 TopSep
16006 \end_layout
16007
16008 \end_inset
16009
16010  [
16011 \begin_inset Flex Code
16012 status collapsed
16013
16014 \begin_layout Plain Layout
16015 float=0
16016 \end_layout
16017
16018 \end_inset
16019
16020 ] The vertical space with which the very first of a chain of paragraphs
16021  with this style is separated from the previous paragraph.
16022  If the previous paragraph has another style, the separations are not simply
16023  added, but the maximum is taken.
16024 \end_layout
16025
16026 \begin_layout Subsection
16027 \begin_inset CommandInset label
16028 LatexCommand label
16029 name "subsec:I18n"
16030
16031 \end_inset
16032
16033 Internationalization of Paragraph Styles
16034 \end_layout
16035
16036 \begin_layout Standard
16037 \SpecialChar LyX
16038  has long supported internationalization of layout information, but, until
16039  version 2.0, this applied only to the user interface and not to, say, PDF
16040  output.
16041  Thus, French authors were forced to resort to ugly hacks if they wanted
16042  `
16043 \lang french
16044 Théorème
16045 \lang english
16046  1' instead of `Theorem 1'.
16047  Thanks to Georg Baum, that is no longer the case.
16048 \end_layout
16049
16050 \begin_layout Standard
16051 If a 
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 Style
16057 \end_layout
16058
16059 \end_inset
16060
16061  defines text that is to appear in the typeset document, it may use 
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066 LangPreamble
16067 \end_layout
16068
16069 \end_inset
16070
16071  and 
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 BabelPreamble
16077 \end_layout
16078
16079 \end_inset
16080
16081  to support non-English and even multi-language documents correctly.
16082  The following excerpt (from the 
16083 \begin_inset Flex Code
16084 status collapsed
16085
16086 \begin_layout Plain Layout
16087 theorems-ams.inc
16088 \end_layout
16089
16090 \end_inset
16091
16092  file) shows how this works:
16093 \end_layout
16094
16095 \begin_layout LyX-Code
16096 Preamble
16097 \end_layout
16098
16099 \begin_deeper
16100 \begin_layout LyX-Code
16101   
16102 \backslash
16103 theoremstyle{remark}
16104 \end_layout
16105
16106 \begin_layout LyX-Code
16107   
16108 \backslash
16109 newtheorem{claim}[thm]{
16110 \backslash
16111 protect
16112 \backslash
16113 claimname}
16114 \end_layout
16115
16116 \begin_layout LyX-Code
16117 EndPreamble
16118 \end_layout
16119
16120 \begin_layout LyX-Code
16121 LangPreamble
16122 \end_layout
16123
16124 \begin_layout LyX-Code
16125   
16126 \backslash
16127 providecommand{
16128 \backslash
16129 claimname}{_(Claim)}
16130 \end_layout
16131
16132 \begin_layout LyX-Code
16133 EndLangPreamble
16134 \end_layout
16135
16136 \begin_layout LyX-Code
16137 BabelPreamble
16138 \end_layout
16139
16140 \begin_layout LyX-Code
16141     
16142 \backslash
16143 addto
16144 \backslash
16145 captions$$lang{
16146 \backslash
16147 renewcommand{
16148 \backslash
16149 claimname}{_(Claim)}}
16150 \end_layout
16151
16152 \begin_layout LyX-Code
16153 EndBabelPreamble
16154 \end_layout
16155
16156 \end_deeper
16157 \begin_layout Standard
16158 In principle, any legal \SpecialChar LaTeX
16159  may appear in the 
16160 \begin_inset Flex Code
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 LangPreamble
16165 \end_layout
16166
16167 \end_inset
16168
16169  and 
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 BabelPreamble
16175 \end_layout
16176
16177 \end_inset
16178
16179  tags, but in practice they will typically look as they do here.
16180  The key to correct translation of the typeset text is the definition of
16181  the \SpecialChar LaTeX
16182  command 
16183 \begin_inset Flex Code
16184 status collapsed
16185
16186 \begin_layout Plain Layout
16187
16188 \backslash
16189 claimname
16190 \end_layout
16191
16192 \end_inset
16193
16194  and its use in 
16195 \begin_inset Flex Code
16196 status collapsed
16197
16198 \begin_layout Plain Layout
16199
16200 \backslash
16201 newtheorem
16202 \end_layout
16203
16204 \end_inset
16205
16206 .
16207  
16208 \end_layout
16209
16210 \begin_layout Standard
16211 The 
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 LangPreamble
16217 \end_layout
16218
16219 \end_inset
16220
16221  tag provides for internationalization based upon the overall language of
16222  the document.
16223  The contents of the tag will be included in the preamble, just as with
16224  the 
16225 \begin_inset Flex Code
16226 status collapsed
16227
16228 \begin_layout Plain Layout
16229 Preamble
16230 \end_layout
16231
16232 \end_inset
16233
16234  tag.
16235  What makes it special is the use of the 
16236 \begin_inset Quotes eld
16237 \end_inset
16238
16239 function
16240 \begin_inset Quotes erd
16241 \end_inset
16242
16243  
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 _()
16249 \end_layout
16250
16251 \end_inset
16252
16253 , which will be replaced, when \SpecialChar LyX
16254  produces \SpecialChar LaTeX
16255  output, with the translation of
16256  its argument into the document language.
16257 \end_layout
16258
16259 \begin_layout Standard
16260 The 
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 BabelPreamble
16266 \end_layout
16267
16268 \end_inset
16269
16270  tag is more complex, since it is meant to provide support for multi-language
16271  documents and so offers an interface to the 
16272 \begin_inset Flex Code
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276 babel
16277 \end_layout
16278
16279 \end_inset
16280
16281  package.
16282  Its contents will be added to the preamble once for each language that
16283  appears in the document.
16284  In this case, the argument to 
16285 \begin_inset Flex Code
16286 status collapsed
16287
16288 \begin_layout Plain Layout
16289 _()
16290 \end_layout
16291
16292 \end_inset
16293
16294  will be replaced with its translation into the language in question; the
16295  expression 
16296 \begin_inset Flex Code
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300 $$lang
16301 \end_layout
16302
16303 \end_inset
16304
16305  is replaced by the language name (as used by the babel package).
16306 \end_layout
16307
16308 \begin_layout Standard
16309 A German document that also included a French section would thus have the
16310  following in the preamble:
16311 \end_layout
16312
16313 \begin_layout LyX-Code
16314
16315 \backslash
16316 addto
16317 \backslash
16318 captionsfrench{
16319 \backslash
16320 renewcommand{
16321 \backslash
16322 claimname}{Affirmation}}
16323 \begin_inset Newline newline
16324 \end_inset
16325
16326
16327 \backslash
16328 addto
16329 \backslash
16330 captionsngerman{
16331 \backslash
16332 renewcommand{
16333 \backslash
16334 claimname}{Behauptung}}
16335 \begin_inset Newline newline
16336 \end_inset
16337
16338
16339 \backslash
16340 providecommand{
16341 \backslash
16342 claimname}{Behauptung}
16343 \end_layout
16344
16345 \begin_layout Standard
16346 \SpecialChar LaTeX
16347  and 
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 babel
16353 \end_layout
16354
16355 \end_inset
16356
16357  will then conspire to produce the correct text in the output.
16358 \end_layout
16359
16360 \begin_layout Standard
16361 One important point to note here is that the translations are provided by
16362  \SpecialChar LyX
16363  itself, through the file 
16364 \begin_inset Flex Code
16365 status collapsed
16366
16367 \begin_layout Plain Layout
16368 layouttranslations
16369 \end_layout
16370
16371 \end_inset
16372
16373 .
16374  This means, in effect, that 
16375 \begin_inset Flex Code
16376 status collapsed
16377
16378 \begin_layout Plain Layout
16379 LangPreamble
16380 \end_layout
16381
16382 \end_inset
16383
16384  and 
16385 \begin_inset Flex Code
16386 status collapsed
16387
16388 \begin_layout Plain Layout
16389 BabelPreamble
16390 \end_layout
16391
16392 \end_inset
16393
16394  are really only of use in layout files that are provided with \SpecialChar LyX
16395 , since text
16396  entered in user-created layout files will not be seen by \SpecialChar LyX
16397 's internationalizatio
16398 n routines unless the 
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 layouttranslations
16404 \end_layout
16405
16406 \end_inset
16407
16408  file is modified accordingly.
16409  That said, however, any layout created with the intention that it will
16410  be included with \SpecialChar LyX
16411  should use these tags where appropriate.
16412  Please note that the paragraph style translations provided by \SpecialChar LyX
16413  will never
16414  change with a minor update (e.
16415 \begin_inset space \thinspace{}
16416 \end_inset
16417
16418 g.
16419 \begin_inset space \space{}
16420 \end_inset
16421
16422 from version 2.1.x to 2.1.y).
16423  It is however quite likely that a major update (e.
16424 \begin_inset space \thinspace{}
16425 \end_inset
16426
16427 g.
16428 \begin_inset space \space{}
16429 \end_inset
16430
16431 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16432 \end_layout
16433
16434 \begin_layout Subsection
16435 Floats
16436 \begin_inset CommandInset label
16437 LatexCommand label
16438 name "subsec:Floats"
16439
16440 \end_inset
16441
16442
16443 \end_layout
16444
16445 \begin_layout Standard
16446 It is necessary to define the floats (
16447 \begin_inset Flex Noun
16448 status collapsed
16449
16450 \begin_layout Plain Layout
16451 figure
16452 \end_layout
16453
16454 \end_inset
16455
16456
16457 \begin_inset Flex Noun
16458 status collapsed
16459
16460 \begin_layout Plain Layout
16461 table
16462 \end_layout
16463
16464 \end_inset
16465
16466 , \SpecialChar ldots
16467 ) in the text class itself.
16468  Standard floats are included in the file 
16469 \begin_inset Flex Code
16470 status collapsed
16471
16472 \begin_layout Plain Layout
16473 stdfloats.inc
16474 \end_layout
16475
16476 \end_inset
16477
16478 , so you may have to do no more than add
16479 \end_layout
16480
16481 \begin_layout LyX-Code
16482 Input stdfloats.inc
16483 \end_layout
16484
16485 \begin_layout Standard
16486 to your layout file.
16487  If you want to implement a text class that proposes some other float types
16488  (like the AGU class bundled with \SpecialChar LyX
16489 ), the information below will hopefully
16490  help you:
16491 \end_layout
16492
16493 \begin_layout Description
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498 AllowedPlacement
16499 \end_layout
16500
16501 \end_inset
16502
16503  [
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 string
16509 \end_layout
16510
16511 \end_inset
16512
16513 =!htbpH] Allowed placement options for this float type.
16514  The value is a string of placement characters.
16515  Possible characters include: 
16516 \emph on
16517 h
16518 \emph default
16519  (
16520 \begin_inset Quotes eld
16521 \end_inset
16522
16523 here if possible
16524 \begin_inset Quotes erd
16525 \end_inset
16526
16527 ), 
16528 \emph on
16529 t
16530 \emph default
16531  (
16532 \begin_inset Quotes eld
16533 \end_inset
16534
16535 top of page
16536 \begin_inset Quotes erd
16537 \end_inset
16538
16539 ), 
16540 \emph on
16541 b
16542 \emph default
16543  (
16544 \begin_inset Quotes eld
16545 \end_inset
16546
16547 bottom of page
16548 \begin_inset Quotes erd
16549 \end_inset
16550
16551 ), 
16552 \emph on
16553 p
16554 \emph default
16555  (
16556 \begin_inset Quotes eld
16557 \end_inset
16558
16559 page of floats
16560 \begin_inset Quotes erd
16561 \end_inset
16562
16563 ), 
16564 \emph on
16565 H
16566 \emph default
16567  (
16568 \begin_inset Quotes eld
16569 \end_inset
16570
16571 here definitely
16572 \begin_inset Quotes erd
16573 \end_inset
16574
16575 ) and 
16576 \emph on
16577 !
16578 \emph default
16579  (
16580 \begin_inset Quotes eld
16581 \end_inset
16582
16583 ignore LaTeX rules
16584 \begin_inset Quotes erd
16585 \end_inset
16586
16587 ).
16588  The order of the characters in the string does not matter.
16589  If no placement options are allowed, use the string 
16590 \emph on
16591 none
16592 \emph default
16593 .
16594 \end_layout
16595
16596 \begin_layout Description
16597 \begin_inset Flex Code
16598 status collapsed
16599
16600 \begin_layout Plain Layout
16601 AllowsSideways
16602 \end_layout
16603
16604 \end_inset
16605
16606  [
16607 \begin_inset Flex Code
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611
16612 \emph off
16613 0
16614 \end_layout
16615
16616 \end_inset
16617
16618 ,
16619 \begin_inset space \thinspace{}
16620 \end_inset
16621
16622
16623 \emph on
16624
16625 \begin_inset Flex Code
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629
16630 \emph on
16631 1
16632 \end_layout
16633
16634 \end_inset
16635
16636
16637 \emph default
16638 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16639 -package 
16640 \family typewriter
16641 rotfloat
16642 \family default
16643  (sidewaysfloat).
16644  Set to 
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649 0
16650 \end_layout
16651
16652 \end_inset
16653
16654  if the float does not support this feature.
16655 \end_layout
16656
16657 \begin_layout Description
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 AllowsWide
16663 \end_layout
16664
16665 \end_inset
16666
16667  [
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672
16673 \emph off
16674 0
16675 \end_layout
16676
16677 \end_inset
16678
16679 ,
16680 \begin_inset space \thinspace{}
16681 \end_inset
16682
16683
16684 \emph on
16685
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690
16691 \emph on
16692 1
16693 \end_layout
16694
16695 \end_inset
16696
16697
16698 \emph default
16699 ] Defines whether the float has a starred variant that spans columns in
16700  a two column paragraph.
16701  Set to 
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 0
16707 \end_layout
16708
16709 \end_inset
16710
16711  if the float does not support this feature.
16712 \end_layout
16713
16714 \begin_layout Description
16715 \begin_inset Flex Code
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719 Extension
16720 \end_layout
16721
16722 \end_inset
16723
16724  [
16725 \begin_inset Flex Code
16726 status collapsed
16727
16728 \begin_layout Plain Layout
16729 string
16730 \end_layout
16731
16732 \end_inset
16733
16734 =
16735 \begin_inset Quotes erd
16736 \end_inset
16737
16738
16739 \begin_inset Quotes erd
16740 \end_inset
16741
16742 ] The file name extension of an auxiliary file for the list of figures (or
16743  whatever).
16744  \SpecialChar LaTeX
16745  writes the captions to this file.
16746 \end_layout
16747
16748 \begin_layout Description
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 GuiName
16754 \end_layout
16755
16756 \end_inset
16757
16758  [
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 string
16764 \end_layout
16765
16766 \end_inset
16767
16768 =
16769 \begin_inset Quotes erd
16770 \end_inset
16771
16772
16773 \begin_inset Quotes erd
16774 \end_inset
16775
16776 ] The string that will be used in the menus and also for the caption.
16777  This is translated to the current language if babel is used.
16778 \end_layout
16779
16780 \begin_layout Description
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785 HTML*
16786 \end_layout
16787
16788 \end_inset
16789
16790  These tags control the XHTML output.
16791  See 
16792 \begin_inset CommandInset ref
16793 LatexCommand ref
16794 reference "sec:Tags-for-XHTML"
16795
16796 \end_inset
16797
16798 .
16799 \end_layout
16800
16801 \begin_layout Description
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 IsPredefined
16807 \end_layout
16808
16809 \end_inset
16810
16811  [
16812 \emph on
16813
16814 \begin_inset Flex Code
16815 status collapsed
16816
16817 \begin_layout Plain Layout
16818 0
16819 \end_layout
16820
16821 \end_inset
16822
16823
16824 \emph default
16825 ,
16826 \begin_inset space \thinspace{}
16827 \end_inset
16828
16829
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 1
16835 \end_layout
16836
16837 \end_inset
16838
16839 ] Indicates whether the float is already defined in the document class or
16840  if instead the \SpecialChar LaTeX
16841  package 
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 float
16847 \end_layout
16848
16849 \end_inset
16850
16851  needs to be loaded to define it on-the-fly.
16852  The default is 
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 0
16858 \end_layout
16859
16860 \end_inset
16861
16862 , which means: 
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 float
16868 \end_layout
16869
16870 \end_inset
16871
16872  is used.
16873  It should be set to 
16874 \begin_inset Flex Code
16875 status collapsed
16876
16877 \begin_layout Plain Layout
16878 1
16879 \end_layout
16880
16881 \end_inset
16882
16883  if the float is already defined by the \SpecialChar LaTeX
16884  document class.
16885 \end_layout
16886
16887 \begin_layout Description
16888 \begin_inset Flex Code
16889 status collapsed
16890
16891 \begin_layout Plain Layout
16892 ListCommand
16893 \end_layout
16894
16895 \end_inset
16896
16897  [
16898 \begin_inset Flex Code
16899 status collapsed
16900
16901 \begin_layout Plain Layout
16902 string
16903 \end_layout
16904
16905 \end_inset
16906
16907 =
16908 \begin_inset Quotes erd
16909 \end_inset
16910
16911
16912 \begin_inset Quotes erd
16913 \end_inset
16914
16915 ] The command used to generate a list of floats of this type; the leading
16916  `
16917 \backslash
16918 ' must be omitted.
16919  This 
16920 \emph on
16921 must
16922 \emph default
16923  be given if 
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 UsesFloatPkg
16929 \end_layout
16930
16931 \end_inset
16932
16933  is false, since there is no standard way to generate this command.
16934  It is ignored if 
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 UsesFloatPkg
16940 \end_layout
16941
16942 \end_inset
16943
16944  is true, since in that case there is a standard way to define the command.
16945 \end_layout
16946
16947 \begin_layout Description
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952 ListName
16953 \end_layout
16954
16955 \end_inset
16956
16957  [
16958 \begin_inset Flex Code
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962 string
16963 \end_layout
16964
16965 \end_inset
16966
16967 =
16968 \begin_inset Quotes erd
16969 \end_inset
16970
16971
16972 \begin_inset Quotes erd
16973 \end_inset
16974
16975 ] A title for a list of floats of this kind (list of figures, tables, or
16976  whatever).
16977  It is used for the screen label within \SpecialChar LyX
16978 , it is used by \SpecialChar LaTeX
16979  for the title and
16980  it is used as the title in the XHTML output.
16981  It will be translated to the document language.
16982 \end_layout
16983
16984 \begin_layout Description
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 NumberWithin
16990 \end_layout
16991
16992 \end_inset
16993
16994  [
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 string
17000 \end_layout
17001
17002 \end_inset
17003
17004 =
17005 \begin_inset Quotes erd
17006 \end_inset
17007
17008
17009 \begin_inset Quotes erd
17010 \end_inset
17011
17012 ] This (optional) argument determines whether floats of this class will
17013  be numbered within some sectional unit of the document.
17014  For example, if 
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 NumberWithin
17020 \end_layout
17021
17022 \end_inset
17023
17024  is set to 
17025 \begin_inset Quotes eld
17026 \end_inset
17027
17028
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 chapter
17034 \end_layout
17035
17036 \end_inset
17037
17038
17039 \begin_inset Quotes erd
17040 \end_inset
17041
17042 , the floats will be numbered within chapters.
17043  
17044 \end_layout
17045
17046 \begin_layout Description
17047 \begin_inset Flex Code
17048 status collapsed
17049
17050 \begin_layout Plain Layout
17051 Placement
17052 \end_layout
17053
17054 \end_inset
17055
17056  [
17057 \begin_inset Flex Code
17058 status collapsed
17059
17060 \begin_layout Plain Layout
17061 string
17062 \end_layout
17063
17064 \end_inset
17065
17066 =
17067 \begin_inset Quotes erd
17068 \end_inset
17069
17070
17071 \begin_inset Quotes erd
17072 \end_inset
17073
17074 ] The default placement for the given class of floats.
17075  The string should be as in standard \SpecialChar LaTeX
17076
17077 \begin_inset Flex Code
17078 status collapsed
17079
17080 \begin_layout Plain Layout
17081 t
17082 \end_layout
17083
17084 \end_inset
17085
17086
17087 \begin_inset Flex Code
17088 status collapsed
17089
17090 \begin_layout Plain Layout
17091 b
17092 \end_layout
17093
17094 \end_inset
17095
17096
17097 \begin_inset Flex Code
17098 status collapsed
17099
17100 \begin_layout Plain Layout
17101 p
17102 \end_layout
17103
17104 \end_inset
17105
17106  and 
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111 h
17112 \end_layout
17113
17114 \end_inset
17115
17116  for top, bottom, page, and here, respectively.
17117 \begin_inset Foot
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121 Note that the order of these letters in the string is irrelevant, like in
17122  \SpecialChar LaTeX
17123 .
17124 \end_layout
17125
17126 \end_inset
17127
17128  On top of that there is a new type, 
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 H
17134 \end_layout
17135
17136 \end_inset
17137
17138 , which does not really correspond to a float, since it means: put it 
17139 \begin_inset Quotes eld
17140 \end_inset
17141
17142 here
17143 \begin_inset Quotes erd
17144 \end_inset
17145
17146  and nowhere else.
17147  Note however that the 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 H
17153 \end_layout
17154
17155 \end_inset
17156
17157  specifier is special and, because of implementation details, cannot be
17158  used in non-built in float types.
17159  If you do not understand what this means, just use 
17160 \begin_inset Quotes eld
17161 \end_inset
17162
17163
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 tbp
17169 \end_layout
17170
17171 \end_inset
17172
17173
17174 \begin_inset Quotes erd
17175 \end_inset
17176
17177 .
17178 \end_layout
17179
17180 \begin_layout Description
17181 \begin_inset Flex Code
17182 status collapsed
17183
17184 \begin_layout Plain Layout
17185 RefPrefix
17186 \end_layout
17187
17188 \end_inset
17189
17190  [
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 string
17196 \end_layout
17197
17198 \end_inset
17199
17200 ] The prefix to use when creating labels referring to floats of this type.
17201  This allows the use of formatted references.
17202  Note that you can remove any 
17203 \begin_inset Flex Code
17204 status collapsed
17205
17206 \begin_layout Plain Layout
17207 RefPrefix
17208 \end_layout
17209
17210 \end_inset
17211
17212  set by a copied style by using the special value 
17213 \begin_inset Quotes eld
17214 \end_inset
17215
17216 OFF
17217 \begin_inset Quotes erd
17218 \end_inset
17219
17220 , which must be all caps.
17221 \end_layout
17222
17223 \begin_layout Description
17224 \begin_inset Flex Code
17225 status collapsed
17226
17227 \begin_layout Plain Layout
17228 Style
17229 \end_layout
17230
17231 \end_inset
17232
17233  [
17234 \begin_inset Flex Code
17235 status collapsed
17236
17237 \begin_layout Plain Layout
17238 string
17239 \end_layout
17240
17241 \end_inset
17242
17243 =
17244 \begin_inset Quotes erd
17245 \end_inset
17246
17247
17248 \begin_inset Quotes erd
17249 \end_inset
17250
17251 ] The style used when defining the float using 
17252 \begin_inset Flex Code
17253 status collapsed
17254
17255 \begin_layout Plain Layout
17256
17257 \backslash
17258 newfloat
17259 \end_layout
17260
17261 \end_inset
17262
17263 .
17264 \end_layout
17265
17266 \begin_layout Description
17267 \begin_inset Flex Code
17268 status collapsed
17269
17270 \begin_layout Plain Layout
17271 Type
17272 \end_layout
17273
17274 \end_inset
17275
17276  [
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 string
17282 \end_layout
17283
17284 \end_inset
17285
17286 =
17287 \begin_inset Quotes erd
17288 \end_inset
17289
17290
17291 \begin_inset Quotes erd
17292 \end_inset
17293
17294 ] The 
17295 \begin_inset Quotes eld
17296 \end_inset
17297
17298 type
17299 \begin_inset Quotes erd
17300 \end_inset
17301
17302  of the new class of floats, like program or algorithm.
17303  After the appropriate 
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308
17309 \backslash
17310 newfloat
17311 \end_layout
17312
17313 \end_inset
17314
17315 , commands such as 
17316 \begin_inset Flex Code
17317 status collapsed
17318
17319 \begin_layout Plain Layout
17320
17321 \backslash
17322 begin{program}
17323 \end_layout
17324
17325 \end_inset
17326
17327  or 
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332
17333 \backslash
17334 end{algorithm*}
17335 \end_layout
17336
17337 \end_inset
17338
17339  will be available.
17340 \end_layout
17341
17342 \begin_layout Description
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347 UsesFloatPkg
17348 \end_layout
17349
17350 \end_inset
17351
17352  [
17353 \begin_inset Flex Code
17354 status collapsed
17355
17356 \begin_layout Plain Layout
17357 0
17358 \end_layout
17359
17360 \end_inset
17361
17362 ,
17363 \begin_inset space \thinspace{}
17364 \end_inset
17365
17366
17367 \begin_inset Flex Code
17368 status collapsed
17369
17370 \begin_layout Plain Layout
17371
17372 \emph on
17373 1
17374 \end_layout
17375
17376 \end_inset
17377
17378 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17379  package 
17380 \begin_inset Flex Code
17381 status collapsed
17382
17383 \begin_layout Plain Layout
17384 float
17385 \end_layout
17386
17387 \end_inset
17388
17389 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17390  itself.
17391 \end_layout
17392
17393 \begin_layout Standard
17394 Note that defining a float with type 
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399
17400 \emph on
17401 type
17402 \end_layout
17403
17404 \end_inset
17405
17406  automatically defines the corresponding counter with name 
17407 \begin_inset Flex Code
17408 status collapsed
17409
17410 \begin_layout Plain Layout
17411
17412 \emph on
17413 type
17414 \end_layout
17415
17416 \end_inset
17417
17418 .
17419 \end_layout
17420
17421 \begin_layout Subsection
17422 Flex insets and InsetLayout
17423 \begin_inset CommandInset label
17424 LatexCommand label
17425 name "subsec:Flex-insets-and"
17426
17427 \end_inset
17428
17429
17430 \end_layout
17431
17432 \begin_layout Standard
17433 Flex insets come in three different kinds: 
17434 \end_layout
17435
17436 \begin_layout Itemize
17437 character style (
17438 \begin_inset Flex Code
17439 status collapsed
17440
17441 \begin_layout Plain Layout
17442 CharStyle
17443 \end_layout
17444
17445 \end_inset
17446
17447 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17448  commands as 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453
17454 \backslash
17455 noun
17456 \end_layout
17457
17458 \end_inset
17459
17460  and 
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465
17466 \backslash
17467 code
17468 \end_layout
17469
17470 \end_inset
17471
17472 .
17473 \end_layout
17474
17475 \begin_layout Itemize
17476 user custom (
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 Custom
17482 \end_layout
17483
17484 \end_inset
17485
17486 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17487  code,
17488  footnote, and the like.
17489  An obvious example is an endnote inset, which is defined in the 
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494 endnote
17495 \end_layout
17496
17497 \end_inset
17498
17499  module.
17500 \end_layout
17501
17502 \begin_layout Itemize
17503 XML elements (
17504 \begin_inset Flex Code
17505 status collapsed
17506
17507 \begin_layout Plain Layout
17508 Element
17509 \end_layout
17510
17511 \end_inset
17512
17513 ): For use with DocBook classes.
17514 \end_layout
17515
17516 \begin_layout Standard
17517 Flex insets are defined using the 
17518 \begin_inset Flex Code
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 InsetLayout
17523 \end_layout
17524
17525 \end_inset
17526
17527  tag, which shall be explained in a moment.
17528 \end_layout
17529
17530 \begin_layout Standard
17531 The 
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 InsetLayout
17537 \end_layout
17538
17539 \end_inset
17540
17541  tag also serves another function: It can be used to customize the general
17542  layout of many different types of insets.
17543  Currently, 
17544 \begin_inset Flex Code
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548 InsetLayout
17549 \end_layout
17550
17551 \end_inset
17552
17553  can be used to customize the layout parameters for footnotes, marginal
17554  notes, note insets, \SpecialChar TeX
17555  code (ERT) insets, branches, listings, indexes, boxes,
17556  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17557 \end_layout
17558
17559 \begin_layout Standard
17560 The 
17561 \begin_inset Flex Code
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 InsetLayout
17566 \end_layout
17567
17568 \end_inset
17569
17570  definition must begin with a line of the form:
17571 \end_layout
17572
17573 \begin_layout LyX-Code
17574 InsetLayout <type>
17575 \end_layout
17576
17577 \begin_layout Standard
17578 Here 
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 <Type>
17584 \end_layout
17585
17586 \end_inset
17587
17588  indicates the inset whose layout is being defined, and here there are four
17589  cases.
17590 \end_layout
17591
17592 \begin_layout Enumerate
17593 The layout for a pre-existing inset is being modified.
17594  In this case, can be 
17595 \begin_inset Flex Code
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599 <Type>
17600 \end_layout
17601
17602 \end_inset
17603
17604  any one of the following: 
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609 Algorithm
17610 \end_layout
17611
17612 \end_inset
17613
17614
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619 Branch
17620 \end_layout
17621
17622 \end_inset
17623
17624
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 Box
17630 \end_layout
17631
17632 \end_inset
17633
17634
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 Box:shaded
17640 \end_layout
17641
17642 \end_inset
17643
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 Caption:Standard
17650 \end_layout
17651
17652 \end_inset
17653
17654
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 ERT
17660 \end_layout
17661
17662 \end_inset
17663
17664
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 Figure
17670 \end_layout
17671
17672 \end_inset
17673
17674
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 Foot
17680 \end_layout
17681
17682 \end_inset
17683
17684
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 Index
17690 \end_layout
17691
17692 \end_inset
17693
17694
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 Info
17700 \end_layout
17701
17702 \end_inset
17703
17704
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 Info:menu
17710 \end_layout
17711
17712 \end_inset
17713
17714
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 Info:shortcut
17720 \end_layout
17721
17722 \end_inset
17723
17724
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 Info:shortcuts
17730 \end_layout
17731
17732 \end_inset
17733
17734
17735 \begin_inset Flex Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 Listings
17740 \end_layout
17741
17742 \end_inset
17743
17744
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 Marginal
17750 \end_layout
17751
17752 \end_inset
17753
17754
17755 \begin_inset Flex Code
17756 status collapsed
17757
17758 \begin_layout Plain Layout
17759 Note:Comment
17760 \end_layout
17761
17762 \end_inset
17763
17764
17765 \begin_inset Flex Code
17766 status collapsed
17767
17768 \begin_layout Plain Layout
17769 Note:Note
17770 \end_layout
17771
17772 \end_inset
17773
17774
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 Note:Greyedout
17780 \end_layout
17781
17782 \end_inset
17783
17784
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 Table
17790 \end_layout
17791
17792 \end_inset
17793
17794 , or 
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 URL
17800 \end_layout
17801
17802 \end_inset
17803
17804 .
17805 \end_layout
17806
17807 \begin_layout Enumerate
17808 The layout for a Flex inset is being defined.
17809  In this case, 
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 <Type>
17815 \end_layout
17816
17817 \end_inset
17818
17819  must be of the form 
17820 \begin_inset Quotes eld
17821 \end_inset
17822
17823
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 Flex:<name>
17829 \end_layout
17830
17831 \end_inset
17832
17833
17834 \begin_inset Quotes erd
17835 \end_inset
17836
17837 , where 
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 name
17843 \end_layout
17844
17845 \end_inset
17846
17847  may be be any valid identifier not used by a pre-existing Flex inset.
17848  The identifier may include spaces, but in that case the whole thing must
17849  be wrapped in quotes.
17850  Note that the definition of a flex inset 
17851 \emph on
17852 must 
17853 \emph default
17854 also include a 
17855 \begin_inset Flex Code
17856 status collapsed
17857
17858 \begin_layout Plain Layout
17859 LyXType
17860 \end_layout
17861
17862 \end_inset
17863
17864  entry, declaring which type of inset it defines.
17865 \end_layout
17866
17867 \begin_layout Enumerate
17868 The layout for user specific branch is being defined.
17869  In this case, 
17870 \begin_inset Flex Code
17871 status collapsed
17872
17873 \begin_layout Plain Layout
17874 <Type>
17875 \end_layout
17876
17877 \end_inset
17878
17879  must be of the form 
17880 \begin_inset Quotes eld
17881 \end_inset
17882
17883
17884 \begin_inset Flex Code
17885 status collapsed
17886
17887 \begin_layout Plain Layout
17888 Branch:<name>
17889 \end_layout
17890
17891 \end_inset
17892
17893
17894 \begin_inset Quotes erd
17895 \end_inset
17896
17897 , where 
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 name
17903 \end_layout
17904
17905 \end_inset
17906
17907  may be be any valid identifier of branch defined in user's document.
17908  The identifier may include spaces, but in that case the whole thing must
17909  be wrapped in quotes.
17910  The main purpose of this feature is to allow \SpecialChar LaTeX
17911  wrapping around specific
17912  branches as user needs.
17913 \end_layout
17914
17915 \begin_layout Enumerate
17916 The layout of a user (or class) specific caption is being defined.
17917  In this case, 
17918 \begin_inset Flex Code
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 <Type>
17923 \end_layout
17924
17925 \end_inset
17926
17927  must be of the form 
17928 \begin_inset Quotes eld
17929 \end_inset
17930
17931
17932 \begin_inset Flex Code
17933 status collapsed
17934
17935 \begin_layout Plain Layout
17936 Caption:<name>
17937 \end_layout
17938
17939 \end_inset
17940
17941
17942 \begin_inset Quotes erd
17943 \end_inset
17944
17945 , where 
17946 \begin_inset Flex Code
17947 status collapsed
17948
17949 \begin_layout Plain Layout
17950 name
17951 \end_layout
17952
17953 \end_inset
17954
17955  specifies the name of the caption as it appears in the menu.
17956  Have a look at the standard caption (
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 Caption:Standard
17962 \end_layout
17963
17964 \end_inset
17965
17966 ), the specific captions of the KOMA-Script classes (
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 Caption:Above
17972 \end_layout
17973
17974 \end_inset
17975
17976
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 Caption:Below
17982 \end_layout
17983
17984 \end_inset
17985
17986 ) or the module 
17987 \family sans
17988 Multilingual
17989 \begin_inset space ~
17990 \end_inset
17991
17992 Captions
17993 \begin_inset Newline linebreak
17994 \end_inset
17995
17996
17997 \family default
17998 (
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003 Caption:Bicaption
18004 \end_layout
18005
18006 \end_inset
18007
18008 ) for applications.
18009 \end_layout
18010
18011 \begin_layout Standard
18012 The 
18013 \begin_inset Flex Code
18014 status collapsed
18015
18016 \begin_layout Plain Layout
18017 InsetLayout
18018 \end_layout
18019
18020 \end_inset
18021
18022  definition can contain the following entries:
18023 \end_layout
18024
18025 \begin_layout Description
18026 \begin_inset Flex Code
18027 status collapsed
18028
18029 \begin_layout Plain Layout
18030 AddToToc
18031 \end_layout
18032
18033 \end_inset
18034
18035  [
18036 \begin_inset Flex Code
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040 string
18041 \end_layout
18042
18043 \end_inset
18044
18045 =""] This inset will appear in the table of contents of the given type.
18046  An empty string disables.
18047  See also the OutlinerName and the IsTocCaption commands.
18048  This is only implemented for Flex insets.
18049  Default: disabled.
18050 \end_layout
18051
18052 \begin_layout Description
18053 \begin_inset Flex Code
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 Argument
18058 \end_layout
18059
18060 \end_inset
18061
18062  [
18063 \begin_inset Flex Code
18064 status collapsed
18065
18066 \begin_layout Plain Layout
18067 int
18068 \end_layout
18069
18070 \end_inset
18071
18072 ] Defines argument number of a command\SpecialChar breakableslash
18073 environment associated with the current
18074  layout.
18075  The definition must end with 
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 EndArgument
18081 \end_layout
18082
18083 \end_inset
18084
18085 .
18086  See 
18087 \begin_inset CommandInset ref
18088 LatexCommand ref
18089 reference "subsec:Paragraph-Styles"
18090
18091 \end_inset
18092
18093  for details.
18094 \end_layout
18095
18096 \begin_layout Description
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 BabelPreamble
18102 \end_layout
18103
18104 \end_inset
18105
18106  Preamble for changing language commands; see 
18107 \begin_inset CommandInset ref
18108 LatexCommand ref
18109 reference "subsec:I18n"
18110
18111 \end_inset
18112
18113 .
18114 \end_layout
18115
18116 \begin_layout Description
18117 \begin_inset Flex Code
18118 status collapsed
18119
18120 \begin_layout Plain Layout
18121 BgColor
18122 \end_layout
18123
18124 \end_inset
18125
18126  [
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131 <name>
18132 \end_layout
18133
18134 \end_inset
18135
18136 ] The color for the inset's background.
18137  See 
18138 \begin_inset CommandInset ref
18139 LatexCommand ref
18140 reference "chap:Names-of-colors"
18141
18142 \end_inset
18143
18144  for a list of the available color names.
18145 \end_layout
18146
18147 \begin_layout Description
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 ContentAsLabel
18153 \end_layout
18154
18155 \end_inset
18156
18157  [
18158 \begin_inset Flex Code
18159 status collapsed
18160
18161 \begin_layout Plain Layout
18162
18163 \emph on
18164 0
18165 \end_layout
18166
18167 \end_inset
18168
18169 ,
18170 \begin_inset space \thinspace{}
18171 \end_inset
18172
18173
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 1
18179 \end_layout
18180
18181 \end_inset
18182
18183 ] Whether to use the content of the inset as the label, when the inset is
18184  closed.
18185  Default is false.
18186 \end_layout
18187
18188 \begin_layout Description
18189 \begin_inset Flex Code
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 CopyStyle
18194 \end_layout
18195
18196 \end_inset
18197
18198  [
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203 <type>
18204 \end_layout
18205
18206 \end_inset
18207
18208 ] As with paragraph styles, see 
18209 \begin_inset CommandInset ref
18210 LatexCommand ref
18211 reference "subsec:Paragraph-Styles"
18212
18213 \end_inset
18214
18215 .
18216  Note that you need to specify the complete type, e.
18217 \begin_inset space \thinspace{}
18218 \end_inset
18219
18220 g.
18221 \begin_inset space ~
18222 \end_inset
18223
18224
18225 \begin_inset Flex Code
18226 status collapsed
18227
18228 \begin_layout Plain Layout
18229 CopyStyle Flex:<name>
18230 \end_layout
18231
18232 \end_inset
18233
18234 .
18235 \end_layout
18236
18237 \begin_layout Description
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 CustomPars
18243 \end_layout
18244
18245 \end_inset
18246
18247  [
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252
18253 \emph on
18254 0
18255 \end_layout
18256
18257 \end_inset
18258
18259 ,
18260 \begin_inset space \thinspace{}
18261 \end_inset
18262
18263
18264 \begin_inset Flex Code
18265 status collapsed
18266
18267 \begin_layout Plain Layout
18268 1
18269 \end_layout
18270
18271 \end_inset
18272
18273 ] Indicates whether the user may employ the Paragraph Settings dialog to
18274  customize the paragraph.
18275 \end_layout
18276
18277 \begin_layout Description
18278 \begin_inset Flex Code
18279 status collapsed
18280
18281 \begin_layout Plain Layout
18282 Decoration
18283 \end_layout
18284
18285 \end_inset
18286
18287  can be 
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 Classic
18293 \end_layout
18294
18295 \end_inset
18296
18297
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 Minimalistic
18303 \end_layout
18304
18305 \end_inset
18306
18307 , or 
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 Conglomerate
18313 \end_layout
18314
18315 \end_inset
18316
18317 , describing the rendering style used for the inset's frame and buttons.
18318  Footnotes generally use 
18319 \begin_inset Flex Code
18320 status collapsed
18321
18322 \begin_layout Plain Layout
18323 Classic
18324 \end_layout
18325
18326 \end_inset
18327
18328 , ERT insets generally 
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 Minimalistic
18334 \end_layout
18335
18336 \end_inset
18337
18338 , and character styles 
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343 Conglomerate
18344 \end_layout
18345
18346 \end_inset
18347
18348 .
18349 \end_layout
18350
18351 \begin_layout Description
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 Display
18357 \end_layout
18358
18359 \end_inset
18360
18361  [
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 0
18367 \end_layout
18368
18369 \end_inset
18370
18371 ,
18372 \emph on
18373
18374 \begin_inset space \thinspace{}
18375 \end_inset
18376
18377
18378 \emph default
18379
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384
18385 \emph on
18386 1
18387 \end_layout
18388
18389 \end_inset
18390
18391 ] Only useful if 
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 LatexType
18397 \end_layout
18398
18399 \end_inset
18400
18401  is 
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 Environment
18407 \end_layout
18408
18409 \end_inset
18410
18411 .
18412  Indicates whether the environment will stand on its own in the output or
18413  will appear inline with the surrounding text.
18414  If set to false, it is supposed that the \SpecialChar LaTeX
18415  environment ignores white space
18416  (including one newline character) after the 
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421
18422 \backslash
18423 begin{
18424 \emph on
18425 LatexName
18426 \emph default
18427 }
18428 \end_layout
18429
18430 \end_inset
18431
18432  and 
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437
18438 \backslash
18439 end{
18440 \emph on
18441 LatexName
18442 \emph default
18443 }
18444 \end_layout
18445
18446 \end_inset
18447
18448  tags.
18449  Default is true.
18450 \end_layout
18451
18452 \begin_layout Description
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457 End
18458 \end_layout
18459
18460 \end_inset
18461
18462  Required at the end of the 
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 InsetLayout
18468 \end_layout
18469
18470 \end_inset
18471
18472  declarations.
18473 \end_layout
18474
18475 \begin_layout Description
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480 Font
18481 \end_layout
18482
18483 \end_inset
18484
18485  The font used for both the text body 
18486 \emph on
18487 and
18488 \emph default
18489  the label.
18490  See 
18491 \begin_inset CommandInset ref
18492 LatexCommand ref
18493 reference "subsec:Font-description"
18494
18495 \end_inset
18496
18497 .
18498  Note that defining this font automatically defines the 
18499 \begin_inset Flex Code
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503 LabelFont
18504 \end_layout
18505
18506 \end_inset
18507
18508  to the same value, so define this first and define 
18509 \begin_inset Flex Code
18510 status collapsed
18511
18512 \begin_layout Plain Layout
18513 LabelFont
18514 \end_layout
18515
18516 \end_inset
18517
18518  later if you want them to be different.
18519 \end_layout
18520
18521 \begin_layout Description
18522 \begin_inset Flex Code
18523 status collapsed
18524
18525 \begin_layout Plain Layout
18526 FixedWidthPreambleEncoding
18527 \end_layout
18528
18529 \end_inset
18530
18531  [
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536
18537 \emph on
18538 0
18539 \end_layout
18540
18541 \end_inset
18542
18543 ,
18544 \begin_inset space \thinspace{}
18545 \end_inset
18546
18547
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 1
18553 \end_layout
18554
18555 \end_inset
18556
18557 ] Force a fixed width encoding for the translated contents of 
18558 \begin_inset Flex Code
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 BabelPreamble
18563 \end_layout
18564
18565 \end_inset
18566
18567  and 
18568 \begin_inset Flex Code
18569 status collapsed
18570
18571 \begin_layout Plain Layout
18572 LangPreamble
18573 \end_layout
18574
18575 \end_inset
18576
18577  code generated by this layout.
18578  This is needed for special \SpecialChar LaTeX
18579 -packages like 
18580 \family typewriter
18581 listings
18582 \family default
18583  that do not work with variable width encodings such as 
18584 \family sans
18585 utf8
18586 \family default
18587 .
18588  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18589  backends such as Xe\SpecialChar TeX
18590  or
18591  Lua\SpecialChar TeX
18592  are used.
18593 \end_layout
18594
18595 \begin_layout Description
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 ForceLocalFontSwitch
18601 \end_layout
18602
18603 \end_inset
18604
18605  [
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610
18611 \emph on
18612 0
18613 \end_layout
18614
18615 \end_inset
18616
18617 ,
18618 \begin_inset space \thinspace{}
18619 \end_inset
18620
18621
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 1
18627 \end_layout
18628
18629 \end_inset
18630
18631 ] When using babel, always use a local font switch (
18632 \begin_inset Flex Code
18633 status collapsed
18634
18635 \begin_layout Plain Layout
18636
18637 \backslash
18638 foreignlanguage
18639 \end_layout
18640
18641 \end_inset
18642
18643 ), never a global one (such as 
18644 \begin_inset Flex Code
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648
18649 \backslash
18650 selectlanguage
18651 \end_layout
18652
18653 \end_inset
18654
18655 ).
18656 \end_layout
18657
18658 \begin_layout Description
18659 \begin_inset Flex Code
18660 status collapsed
18661
18662 \begin_layout Plain Layout
18663 ForceLTR
18664 \end_layout
18665
18666 \end_inset
18667
18668  [
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673
18674 \emph on
18675 0
18676 \end_layout
18677
18678 \end_inset
18679
18680 ,
18681 \begin_inset space \thinspace{}
18682 \end_inset
18683
18684
18685 \begin_inset Flex Code
18686 status collapsed
18687
18688 \begin_layout Plain Layout
18689 1
18690 \end_layout
18691
18692 \end_inset
18693
18694 ] Force the 
18695 \begin_inset Quotes eld
18696 \end_inset
18697
18698 latex
18699 \begin_inset Quotes erd
18700 \end_inset
18701
18702  language, leading to Left-to-Right (Latin) output, e.
18703 \begin_inset space \thinspace{}
18704 \end_inset
18705
18706 g.
18707 \begin_inset space \space{}
18708 \end_inset
18709
18710 in \SpecialChar TeX
18711  code or URL.
18712  A kludge.
18713 \end_layout
18714
18715 \begin_layout Description
18716 \begin_inset Flex Code
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 ForceOwnlines
18721 \end_layout
18722
18723 \end_inset
18724
18725  [
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730
18731 \emph on
18732 0
18733 \end_layout
18734
18735 \end_inset
18736
18737 ,
18738 \begin_inset space \thinspace{}
18739 \end_inset
18740
18741
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 1
18747 \end_layout
18748
18749 \end_inset
18750
18751 ] Force a a line break in the \SpecialChar LaTeX
18752  output before the inset starts and after
18753  the inset ends.
18754  This assures the inset itself is output on its own lines, for parsing purposes.
18755 \end_layout
18756
18757 \begin_layout Description
18758 \begin_inset Flex Code
18759 status collapsed
18760
18761 \begin_layout Plain Layout
18762 ForcePlain
18763 \end_layout
18764
18765 \end_inset
18766
18767  [
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772
18773 \emph on
18774 0
18775 \end_layout
18776
18777 \end_inset
18778
18779 ,
18780 \begin_inset space \thinspace{}
18781 \end_inset
18782
18783
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 1
18789 \end_layout
18790
18791 \end_inset
18792
18793 ] Indicates whether the 
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 PlainLayout
18799 \end_layout
18800
18801 \end_inset
18802
18803  should be used or, instead, the user can change the paragraph style used
18804  in the inset.
18805  Default is false.
18806 \end_layout
18807
18808 \begin_layout Description
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813 FreeSpacing
18814 \end_layout
18815
18816 \end_inset
18817
18818  [
18819 \begin_inset Flex Code
18820 status collapsed
18821
18822 \begin_layout Plain Layout
18823
18824 \emph on
18825 0
18826 \end_layout
18827
18828 \end_inset
18829
18830 ,
18831 \begin_inset space \thinspace{}
18832 \end_inset
18833
18834
18835 \begin_inset Flex Code
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 1
18840 \end_layout
18841
18842 \end_inset
18843
18844 ] As with paragraph styles, see 
18845 \begin_inset CommandInset ref
18846 LatexCommand ref
18847 reference "subsec:Paragraph-Styles"
18848
18849 \end_inset
18850
18851 .
18852 \end_layout
18853
18854 \begin_layout Description
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 HTML*
18860 \end_layout
18861
18862 \end_inset
18863
18864  These tags control the XHTML output.
18865  See 
18866 \begin_inset CommandInset ref
18867 LatexCommand ref
18868 reference "sec:Tags-for-XHTML"
18869
18870 \end_inset
18871
18872 .
18873 \end_layout
18874
18875 \begin_layout Description
18876 \begin_inset Flex Code
18877 status collapsed
18878
18879 \begin_layout Plain Layout
18880 InToc
18881 \end_layout
18882
18883 \end_inset
18884
18885  [
18886 \begin_inset Flex Code
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890
18891 \emph on
18892 0
18893 \end_layout
18894
18895 \end_inset
18896
18897 ,
18898 \begin_inset space \thinspace{}
18899 \end_inset
18900
18901
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 1
18907 \end_layout
18908
18909 \end_inset
18910
18911 ] Whether to include the contents of this inset in the strings generated
18912  for the `Outline' pane for all table of contents, regardless of the AddToToc
18913  setting.
18914  One would not, for example, want the content of a footnote in a section
18915  header to be included in the TOC displayed in the outline, but one would
18916  normally want the content of a character style displayed.
18917  Default is false: not to include.
18918 \end_layout
18919
18920 \begin_layout Description
18921 \begin_inset Flex Code
18922 status collapsed
18923
18924 \begin_layout Plain Layout
18925 IsTocCaption
18926 \end_layout
18927
18928 \end_inset
18929
18930  [
18931 \begin_inset Flex Code
18932 status collapsed
18933
18934 \begin_layout Plain Layout
18935
18936 \emph on
18937 0
18938 \end_layout
18939
18940 \end_inset
18941
18942 ,
18943 \begin_inset space \thinspace{}
18944 \end_inset
18945
18946
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 1
18952 \end_layout
18953
18954 \end_inset
18955
18956 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18957  of its contents in its item in the table of contents.
18958  Otherwise, only the label appears.
18959 \end_layout
18960
18961 \begin_layout Description
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 KeepEmpty
18967 \end_layout
18968
18969 \end_inset
18970
18971  [
18972 \emph on
18973
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 0
18979 \end_layout
18980
18981 \end_inset
18982
18983
18984 \emph default
18985 ,
18986 \begin_inset space \thinspace{}
18987 \end_inset
18988
18989
18990 \begin_inset Flex Code
18991 status collapsed
18992
18993 \begin_layout Plain Layout
18994 1
18995 \end_layout
18996
18997 \end_inset
18998
18999 ] As with paragraph styles, see 
19000 \begin_inset CommandInset ref
19001 LatexCommand ref
19002 reference "subsec:Paragraph-Styles"
19003
19004 \end_inset
19005
19006 .
19007 \end_layout
19008
19009 \begin_layout Description
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 LabelFont
19015 \end_layout
19016
19017 \end_inset
19018
19019  The font used for the label.
19020  See 
19021 \begin_inset CommandInset ref
19022 LatexCommand ref
19023 reference "subsec:Font-description"
19024
19025 \end_inset
19026
19027 .
19028  Note that this definition can never appear before 
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 Font
19034 \end_layout
19035
19036 \end_inset
19037
19038 , lest it be ineffective.
19039 \end_layout
19040
19041 \begin_layout Description
19042 \begin_inset Flex Code
19043 status collapsed
19044
19045 \begin_layout Plain Layout
19046 LabelString
19047 \end_layout
19048
19049 \end_inset
19050
19051  [
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 string
19057 \end_layout
19058
19059 \end_inset
19060
19061 =
19062 \begin_inset Quotes erd
19063 \end_inset
19064
19065
19066 \begin_inset Quotes erd
19067 \end_inset
19068
19069 ] What will be displayed on the button or elsewhere as the inset label.
19070  Some inset types (
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 \SpecialChar TeX
19076  code
19077 \end_layout
19078
19079 \end_inset
19080
19081  and 
19082 \begin_inset Flex Code
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 Branch
19087 \end_layout
19088
19089 \end_inset
19090
19091 ) modify this label on the fly.
19092 \end_layout
19093
19094 \begin_layout Description
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 LangPreamble
19100 \end_layout
19101
19102 \end_inset
19103
19104  Language dependent preamble; see 
19105 \begin_inset CommandInset ref
19106 LatexCommand ref
19107 reference "subsec:I18n"
19108
19109 \end_inset
19110
19111 .
19112 \end_layout
19113
19114 \begin_layout Description
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 LatexName
19120 \end_layout
19121
19122 \end_inset
19123
19124  [
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 <name>
19130 \end_layout
19131
19132 \end_inset
19133
19134 ] The name of the corresponding \SpecialChar LaTeX
19135  stuff.
19136  Either the environment or command name.
19137 \end_layout
19138
19139 \begin_layout Description
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 LatexParam
19145 \end_layout
19146
19147 \end_inset
19148
19149  [
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 <parameter>
19155 \end_layout
19156
19157 \end_inset
19158
19159 ] The optional parameter for the corresponding 
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 LatexName
19165 \end_layout
19166
19167 \end_inset
19168
19169  stuff, including possible bracket pairs like 
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 []
19175 \end_layout
19176
19177 \end_inset
19178
19179 .
19180  This parameter cannot be changed from within \SpecialChar LyX
19181  (use 
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 Argument
19187 \end_layout
19188
19189 \end_inset
19190
19191  for customizable parameters).
19192  It will be output as is after all \SpecialChar LaTeX
19193  
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 Argument
19199 \end_layout
19200
19201 \end_inset
19202
19203 s.
19204 \end_layout
19205
19206 \begin_layout Description
19207 \begin_inset Flex Code
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 LatexType
19212 \end_layout
19213
19214 \end_inset
19215
19216  [
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 Command, Environment, None
19222 \end_layout
19223
19224 \end_inset
19225
19226 ] How the style should be translated into \SpecialChar LaTeX
19227 .
19228 \begin_inset Foot
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 LatexType
19237 \end_layout
19238
19239 \end_inset
19240
19241  is perhaps a bit misleading, since these rules apply to SGML classes too.
19242  Visit the SGML class files for specific examples.
19243 \end_layout
19244
19245 \end_inset
19246
19247
19248 \end_layout
19249
19250 \begin_deeper
19251 \begin_layout Description
19252 \begin_inset Flex Code
19253 status collapsed
19254
19255 \begin_layout Plain Layout
19256 None
19257 \end_layout
19258
19259 \end_inset
19260
19261  means nothing special
19262 \end_layout
19263
19264 \begin_layout Description
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 Command
19270 \end_layout
19271
19272 \end_inset
19273
19274  means 
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279
19280 \backslash
19281
19282 \emph on
19283 LatexName
19284 \emph default
19285 {\SpecialChar ldots
19286 }
19287 \end_layout
19288
19289 \end_inset
19290
19291
19292 \end_layout
19293
19294 \begin_layout Description
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 Environment
19300 \end_layout
19301
19302 \end_inset
19303
19304  means 
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309
19310 \backslash
19311 begin{
19312 \emph on
19313 LatexName
19314 \emph default
19315 }\SpecialChar ldots
19316
19317 \backslash
19318 end{
19319 \emph on
19320 LatexName
19321 \emph default
19322 }
19323 \end_layout
19324
19325 \end_inset
19326
19327
19328 \end_layout
19329
19330 \begin_layout Standard
19331 Putting the last few things together, the \SpecialChar LaTeX
19332  output will be either: 
19333 \end_layout
19334
19335 \begin_layout LyX-Code
19336
19337 \backslash
19338 LatexName[LatexParam]{\SpecialChar ldots
19339 }
19340 \end_layout
19341
19342 \begin_layout Standard
19343 or: 
19344 \end_layout
19345
19346 \begin_layout LyX-Code
19347
19348 \backslash
19349 begin{LatexName}[LatexParam] \SpecialChar ldots
19350  
19351 \backslash
19352 end{LatexName}
19353 \end_layout
19354
19355 \begin_layout Standard
19356 depending upon the \SpecialChar LaTeX
19357  type.
19358 \end_layout
19359
19360 \end_deeper
19361 \begin_layout Description
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 LeftDelim
19367 \end_layout
19368
19369 \end_inset
19370
19371  [
19372 \begin_inset Flex Code
19373 status collapsed
19374
19375 \begin_layout Plain Layout
19376 string
19377 \end_layout
19378
19379 \end_inset
19380
19381 ] A string that is put at the beginning of the layout content.
19382  A line break in the output can be indicated by 
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 <br/>
19388 \end_layout
19389
19390 \end_inset
19391
19392 .
19393 \end_layout
19394
19395 \begin_layout Description
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 LyxType
19401 \end_layout
19402
19403 \end_inset
19404
19405  Can be 
19406 \begin_inset Flex Code
19407 status collapsed
19408
19409 \begin_layout Plain Layout
19410 charstyle
19411 \end_layout
19412
19413 \end_inset
19414
19415
19416 \begin_inset Flex Code
19417 status collapsed
19418
19419 \begin_layout Plain Layout
19420 custom
19421 \end_layout
19422
19423 \end_inset
19424
19425
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 element
19431 \end_layout
19432
19433 \end_inset
19434
19435  or 
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440 end
19441 \end_layout
19442
19443 \end_inset
19444
19445  (indicating a dummy definition ending definitions of charstyles, etc).
19446  This entry is required in and is only meaningful for Flex insets.
19447  Among other things, it determines on which menu this inset will appear.
19448  Setting 
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453 LyxType
19454 \end_layout
19455
19456 \end_inset
19457
19458  to 
19459 \begin_inset Flex Code
19460 status collapsed
19461
19462 \begin_layout Plain Layout
19463 charstyle
19464 \end_layout
19465
19466 \end_inset
19467
19468  will automatically set 
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 MultiPar
19474 \end_layout
19475
19476 \end_inset
19477
19478  to false and 
19479 \begin_inset Flex Code
19480 status collapsed
19481
19482 \begin_layout Plain Layout
19483 ForcePlain
19484 \end_layout
19485
19486 \end_inset
19487
19488  to true.
19489  
19490 \begin_inset Flex Code
19491 status collapsed
19492
19493 \begin_layout Plain Layout
19494 MultiPar
19495 \end_layout
19496
19497 \end_inset
19498
19499  can be set to true, or 
19500 \begin_inset Flex Code
19501 status collapsed
19502
19503 \begin_layout Plain Layout
19504 ForcePlain
19505 \end_layout
19506
19507 \end_inset
19508
19509  to false, for 
19510 \begin_inset Flex Code
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514 charstyle
19515 \end_layout
19516
19517 \end_inset
19518
19519  insets by setting it 
19520 \emph on
19521 after
19522 \emph default
19523  you set the 
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 LyxType
19529 \end_layout
19530
19531 \end_inset
19532
19533 .
19534 \end_layout
19535
19536 \begin_layout Description
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 MultiPar
19542 \end_layout
19543
19544 \end_inset
19545
19546  [
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551
19552 \emph on
19553 0
19554 \end_layout
19555
19556 \end_inset
19557
19558 ,
19559 \begin_inset space \thinspace{}
19560 \end_inset
19561
19562
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 1
19568 \end_layout
19569
19570 \end_inset
19571
19572 ] Whether multiple paragraphs are permitted in this inset.
19573  This will also set 
19574 \begin_inset Flex Code
19575 status collapsed
19576
19577 \begin_layout Plain Layout
19578 CustomPars
19579 \end_layout
19580
19581 \end_inset
19582
19583  to the same value and 
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 ForcePlain
19589 \end_layout
19590
19591 \end_inset
19592
19593  to the opposite value.
19594  These can be reset to other values, if they are used 
19595 \emph on
19596 after
19597 \emph default
19598  
19599 \begin_inset Flex Code
19600 status collapsed
19601
19602 \begin_layout Plain Layout
19603 MultiPar
19604 \end_layout
19605
19606 \end_inset
19607
19608 .
19609  Default is true.
19610 \end_layout
19611
19612 \begin_layout Description
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 NeedProtect
19618 \end_layout
19619
19620 \end_inset
19621
19622  [
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627
19628 \emph on
19629 0
19630 \end_layout
19631
19632 \end_inset
19633
19634 ,
19635 \begin_inset space \thinspace{}
19636 \end_inset
19637
19638
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 1
19644 \end_layout
19645
19646 \end_inset
19647
19648 ] Whether fragile commands in this inset should be 
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653
19654 \backslash
19655 protect
19656 \end_layout
19657
19658 \end_inset
19659
19660 'ed.
19661  (Note: This is 
19662 \emph on
19663 not
19664 \emph default
19665  whether the command should itself be protected.) Default is false.
19666 \change_inserted -712698321 1523633958
19667
19668 \end_layout
19669
19670 \begin_layout Description
19671
19672 \change_inserted -712698321 1523634088
19673 \begin_inset Flex Code
19674 status collapsed
19675
19676 \begin_layout Plain Layout
19677
19678 \change_inserted -712698321 1523633961
19679 NeedCProtect
19680 \end_layout
19681
19682 \end_inset
19683
19684  [
19685 \begin_inset Flex Code
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689
19690 \change_inserted -712698321 1523633958
19691
19692 \emph on
19693 0
19694 \end_layout
19695
19696 \end_inset
19697
19698 ,
19699 \begin_inset space \thinspace{}
19700 \end_inset
19701
19702
19703 \begin_inset Flex Code
19704 status collapsed
19705
19706 \begin_layout Plain Layout
19707
19708 \change_inserted -712698321 1523633958
19709 1
19710 \end_layout
19711
19712 \end_inset
19713
19714 ] This causes macros that contain this inset to be protected with 
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719
19720 \change_inserted -712698321 1523634038
19721
19722 \backslash
19723 cprotect
19724 \change_unchanged
19725
19726 \end_layout
19727
19728 \end_inset
19729
19730  (cf.
19731  package 
19732 \family sans
19733 cprotect
19734 \family default
19735 ) if necessary and thus allows (some) verbatim stuff in macros.
19736  Default is false.
19737 \change_unchanged
19738
19739 \end_layout
19740
19741 \begin_layout Description
19742 \begin_inset Flex Code
19743 status collapsed
19744
19745 \begin_layout Plain Layout
19746 NoInsetLayout
19747 \end_layout
19748
19749 \end_inset
19750
19751  [
19752 \begin_inset Flex Code
19753 status collapsed
19754
19755 \begin_layout Plain Layout
19756 <layout>
19757 \end_layout
19758
19759 \end_inset
19760
19761 ] Deletes an existing 
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 InsetLayout
19767 \end_layout
19768
19769 \end_inset
19770
19771 .
19772 \end_layout
19773
19774 \begin_layout Description
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 ObsoletedBy
19780 \end_layout
19781
19782 \end_inset
19783
19784  [
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 <layout>
19790 \end_layout
19791
19792 \end_inset
19793
19794 ] Name of an 
19795 \begin_inset Flex Code
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 InsetLayout
19800 \end_layout
19801
19802 \end_inset
19803
19804  that has replaced this 
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 InsetLayout
19810 \end_layout
19811
19812 \end_inset
19813
19814 .
19815  This is used to rename an 
19816 \begin_inset Flex Code
19817 status collapsed
19818
19819 \begin_layout Plain Layout
19820 InsetLayout
19821 \end_layout
19822
19823 \end_inset
19824
19825 , while keeping backward compatibility.
19826 \end_layout
19827
19828 \begin_layout Description
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833 ParbreakIsNewline
19834 \end_layout
19835
19836 \end_inset
19837
19838  [
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843
19844 \emph on
19845 0
19846 \end_layout
19847
19848 \end_inset
19849
19850 ,
19851 \begin_inset space \thinspace{}
19852 \end_inset
19853
19854
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859 1
19860 \end_layout
19861
19862 \end_inset
19863
19864 ] As with paragraph styles, see 
19865 \begin_inset CommandInset ref
19866 LatexCommand ref
19867 reference "subsec:Paragraph-Styles"
19868
19869 \end_inset
19870
19871 .
19872  Default is false.
19873 \end_layout
19874
19875 \begin_layout Description
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 PassThru
19881 \end_layout
19882
19883 \end_inset
19884
19885  [
19886 \begin_inset Flex Code
19887 status collapsed
19888
19889 \begin_layout Plain Layout
19890
19891 \emph on
19892 0
19893 \end_layout
19894
19895 \end_inset
19896
19897 ,
19898 \begin_inset space \thinspace{}
19899 \end_inset
19900
19901
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 1
19907 \end_layout
19908
19909 \end_inset
19910
19911 ] As with paragraph styles, see 
19912 \begin_inset CommandInset ref
19913 LatexCommand ref
19914 reference "subsec:Paragraph-Styles"
19915
19916 \end_inset
19917
19918 .
19919  Default is false.
19920 \end_layout
19921
19922 \begin_layout Description
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 Preamble
19928 \end_layout
19929
19930 \end_inset
19931
19932  As with paragraph styles, see 
19933 \begin_inset CommandInset ref
19934 LatexCommand ref
19935 reference "subsec:Paragraph-Styles"
19936
19937 \end_inset
19938
19939 .
19940 \end_layout
19941
19942 \begin_layout Description
19943 \begin_inset Flex Code
19944 status collapsed
19945
19946 \begin_layout Plain Layout
19947 RefPrefix
19948 \end_layout
19949
19950 \end_inset
19951
19952  [
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 string
19958 \end_layout
19959
19960 \end_inset
19961
19962 ] The prefix to use when creating labels referring to insets of this type.
19963  This allows the use of formatted references.
19964 \end_layout
19965
19966 \begin_layout Description
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 Requires
19972 \end_layout
19973
19974 \end_inset
19975
19976  [
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 string
19982 \end_layout
19983
19984 \end_inset
19985
19986 ] As with paragraph styles, see 
19987 \begin_inset CommandInset ref
19988 LatexCommand ref
19989 reference "subsec:Paragraph-Styles"
19990
19991 \end_inset
19992
19993 .
19994 \end_layout
19995
19996 \begin_layout Description
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 ResetArgs
20002 \end_layout
20003
20004 \end_inset
20005
20006  [
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011
20012 \emph on
20013 0
20014 \end_layout
20015
20016 \end_inset
20017
20018 ,
20019 \begin_inset space \thinspace{}
20020 \end_inset
20021
20022
20023 \begin_inset Flex Code
20024 status collapsed
20025
20026 \begin_layout Plain Layout
20027 1
20028 \end_layout
20029
20030 \end_inset
20031
20032 ] Resets the \SpecialChar LaTeX
20033  arguments of this layout (as defined via the 
20034 \begin_inset Flex Code
20035 status collapsed
20036
20037 \begin_layout Plain Layout
20038 Argument
20039 \end_layout
20040
20041 \end_inset
20042
20043  tag).
20044  This is useful if you have copied a style via 
20045 \begin_inset Flex Code
20046 status collapsed
20047
20048 \begin_layout Plain Layout
20049 CopyStyle
20050 \end_layout
20051
20052 \end_inset
20053
20054 , but you do not want to inherit its (required and optional) arguments.
20055 \end_layout
20056
20057 \begin_layout Description
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 ResetsFont
20063 \end_layout
20064
20065 \end_inset
20066
20067  [
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 0
20073 \end_layout
20074
20075 \end_inset
20076
20077 ,
20078 \begin_inset space \thinspace{}
20079 \end_inset
20080
20081
20082 \begin_inset Flex Code
20083 status collapsed
20084
20085 \begin_layout Plain Layout
20086
20087 \emph on
20088 1
20089 \end_layout
20090
20091 \end_inset
20092
20093 ] Whether this inset should use the font of its surrounding environment
20094  or uses its own.
20095  Default is false: use the font of the surrounding environment.
20096 \end_layout
20097
20098 \begin_layout Description
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 RightDelim
20104 \end_layout
20105
20106 \end_inset
20107
20108  [
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 string
20114 \end_layout
20115
20116 \end_inset
20117
20118 ] A string that is put at the end of the layout content.
20119  A line break in the output can be indicated by 
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 <br/>
20125 \end_layout
20126
20127 \end_inset
20128
20129 .
20130 \end_layout
20131
20132 \begin_layout Description
20133 \begin_inset Flex Code
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137 Spellcheck
20138 \end_layout
20139
20140 \end_inset
20141
20142  [
20143 \begin_inset Flex Code
20144 status collapsed
20145
20146 \begin_layout Plain Layout
20147 0
20148 \end_layout
20149
20150 \end_inset
20151
20152 ,
20153 \begin_inset space \thinspace{}
20154 \end_inset
20155
20156
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161
20162 \emph on
20163 1
20164 \end_layout
20165
20166 \end_inset
20167
20168 ] Allow spell-checking the contents of this inset.
20169  Default is true.
20170 \end_layout
20171
20172 \begin_layout Subsection
20173 Counters
20174 \begin_inset CommandInset label
20175 LatexCommand label
20176 name "subsec:Counters"
20177
20178 \end_inset
20179
20180
20181 \end_layout
20182
20183 \begin_layout Standard
20184 It is necessary to define the counters (
20185 \begin_inset Flex Noun
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 chapter
20190 \end_layout
20191
20192 \end_inset
20193
20194
20195 \begin_inset Flex Noun
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 figure
20200 \end_layout
20201
20202 \end_inset
20203
20204 , \SpecialChar ldots
20205 ) in the text class itself.
20206  The standard counters are defined in the file 
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 stdcounters.inc
20212 \end_layout
20213
20214 \end_inset
20215
20216 , so you may have to do no more than add
20217 \end_layout
20218
20219 \begin_layout LyX-Code
20220 Input stdcounters.inc
20221 \end_layout
20222
20223 \begin_layout Standard
20224 to your layout file to get them to work.
20225  But if you want to define custom counters, then you can do so.
20226  The counter declaration must begin with:
20227 \end_layout
20228
20229 \begin_layout LyX-Code
20230 Counter CounterName
20231 \end_layout
20232
20233 \begin_layout Standard
20234 where of course `
20235 \begin_inset Flex Code
20236 status collapsed
20237
20238 \begin_layout Plain Layout
20239 CounterName
20240 \end_layout
20241
20242 \end_inset
20243
20244 ' is replaced by the name of the counter.
20245  And it must end with 
20246 \begin_inset Quotes eld
20247 \end_inset
20248
20249
20250 \begin_inset Flex Code
20251 status collapsed
20252
20253 \begin_layout Plain Layout
20254 End
20255 \end_layout
20256
20257 \end_inset
20258
20259
20260 \begin_inset Quotes erd
20261 \end_inset
20262
20263 .
20264  The following parameters can also be used:
20265 \end_layout
20266
20267 \begin_layout Description
20268 \begin_inset Flex Code
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 InitialValue
20273 \end_layout
20274
20275 \end_inset
20276
20277  [
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 int=1
20283 \end_layout
20284
20285 \end_inset
20286
20287 ] Sets the initial value for the counter, to which it will be reset whenever
20288  that happens.
20289  Normally, one will want the default, 1.
20290 \end_layout
20291
20292 \begin_layout Description
20293 \begin_inset Flex Code
20294 status collapsed
20295
20296 \begin_layout Plain Layout
20297 LabelString
20298 \end_layout
20299
20300 \end_inset
20301
20302  [
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 string
20308 \end_layout
20309
20310 \end_inset
20311
20312 =
20313 \begin_inset Quotes erd
20314 \end_inset
20315
20316
20317 \begin_inset Quotes erd
20318 \end_inset
20319
20320 ] When defined, this string defines how the counter is displayed.
20321  Setting this value sets 
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 LabelStringAppendix
20327 \end_layout
20328
20329 \end_inset
20330
20331  to the same value.
20332  The following special constructs can be used in the string:
20333 \end_layout
20334
20335 \begin_deeper
20336 \begin_layout Itemize
20337 \begin_inset Flex Code
20338 status collapsed
20339
20340 \begin_layout Plain Layout
20341
20342 \backslash
20343 thecounter
20344 \end_layout
20345
20346 \end_inset
20347
20348  will be replaced by the expansion of the 
20349 \begin_inset Flex Code
20350 status collapsed
20351
20352 \begin_layout Plain Layout
20353 LabelString
20354 \end_layout
20355
20356 \end_inset
20357
20358  (or 
20359 \begin_inset Flex Code
20360 status collapsed
20361
20362 \begin_layout Plain Layout
20363 LabelStringAppendix
20364 \end_layout
20365
20366 \end_inset
20367
20368 ) of the counter 
20369 \begin_inset Flex Code
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373 counter
20374 \end_layout
20375
20376 \end_inset
20377
20378 .
20379  
20380 \end_layout
20381
20382 \begin_layout Itemize
20383 counter values can be expressed using \SpecialChar LaTeX
20384 -like macros
20385 \begin_inset Newline newline
20386 \end_inset
20387
20388
20389 \begin_inset Flex Code
20390 status collapsed
20391
20392 \begin_layout Plain Layout
20393
20394 \backslash
20395
20396 \emph on
20397 numbertype
20398 \emph default
20399 {
20400 \emph on
20401 counter
20402 \emph default
20403 }
20404 \end_layout
20405
20406 \end_inset
20407
20408 , where 
20409 \begin_inset Flex Code
20410 status collapsed
20411
20412 \begin_layout Plain Layout
20413
20414 \emph on
20415 numbertype
20416 \end_layout
20417
20418 \end_inset
20419
20420  can be:
20421 \begin_inset Foot
20422 status collapsed
20423
20424 \begin_layout Plain Layout
20425
20426 \family roman
20427 \series medium
20428 \shape up
20429 \size normal
20430 \emph off
20431 \bar no
20432 \noun off
20433 \color none
20434 Actually, the situation is a bit more complicated: any
20435 \family default
20436 \series default
20437 \shape default
20438 \emph default
20439 \bar default
20440  
20441 \size default
20442 \emph on
20443 \noun default
20444 \color inherit
20445 numbertype
20446 \family roman
20447 \series medium
20448 \shape up
20449 \size normal
20450 \emph off
20451 \bar no
20452 \noun off
20453  other than those described below will produce arabic numerals.
20454  It would not be surprising to see this change in the future.
20455 \end_layout
20456
20457 \end_inset
20458
20459  
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 arabic
20465 \end_layout
20466
20467 \end_inset
20468
20469 : 1, 2, 3,\SpecialChar ldots
20470
20471 \begin_inset Flex Code
20472 status collapsed
20473
20474 \begin_layout Plain Layout
20475 alph
20476 \end_layout
20477
20478 \end_inset
20479
20480  for lower-case letters: a, b, c, \SpecialChar ldots
20481
20482 \begin_inset Flex Code
20483 status collapsed
20484
20485 \begin_layout Plain Layout
20486 Alph
20487 \end_layout
20488
20489 \end_inset
20490
20491  for upper-case letters: A, B, C, \SpecialChar ldots
20492
20493 \begin_inset Flex Code
20494 status collapsed
20495
20496 \begin_layout Plain Layout
20497 roman
20498 \end_layout
20499
20500 \end_inset
20501
20502  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20503
20504 \begin_inset Flex Code
20505 status collapsed
20506
20507 \begin_layout Plain Layout
20508 Roman
20509 \end_layout
20510
20511 \end_inset
20512
20513  for upper-case roman numerals: I, II, III\SpecialChar ldots
20514
20515 \begin_inset Flex Code
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519 hebrew
20520 \end_layout
20521
20522 \end_inset
20523
20524  for hebrew numerals.
20525 \end_layout
20526
20527 \end_deeper
20528 \begin_layout Standard
20529 If LabelString is not defined, a default value is constructed as follows:
20530  if the counter has a master counter 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 master
20536 \end_layout
20537
20538 \end_inset
20539
20540  (defined via 
20541 \begin_inset Flex Code
20542 status collapsed
20543
20544 \begin_layout Plain Layout
20545 Within
20546 \end_layout
20547
20548 \end_inset
20549
20550 ), the string
20551 \begin_inset Newline newline
20552 \end_inset
20553
20554
20555 \begin_inset Flex Code
20556 status collapsed
20557
20558 \begin_layout Plain Layout
20559
20560 \backslash
20561 themaster.
20562 \backslash
20563 arabic{counter}
20564 \end_layout
20565
20566 \end_inset
20567
20568  is used; otherwise the string 
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573
20574 \backslash
20575 arabic{counter}
20576 \end_layout
20577
20578 \end_inset
20579
20580  is used.
20581 \end_layout
20582
20583 \begin_layout Description
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 LabelStringAppendix
20589 \end_layout
20590
20591 \end_inset
20592
20593  [
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 string
20599 \end_layout
20600
20601 \end_inset
20602
20603 =
20604 \begin_inset Quotes erd
20605 \end_inset
20606
20607
20608 \begin_inset Quotes erd
20609 \end_inset
20610
20611 ] Same as 
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 LabelString
20617 \end_layout
20618
20619 \end_inset
20620
20621 , but for use in the Appendix.
20622 \end_layout
20623
20624 \begin_layout Description
20625 \begin_inset Flex Code
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 PrettyFormat
20630 \end_layout
20631
20632 \end_inset
20633
20634  [
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 string
20640 \end_layout
20641
20642 \end_inset
20643
20644 =
20645 \begin_inset Quotes erd
20646 \end_inset
20647
20648
20649 \begin_inset Quotes erd
20650 \end_inset
20651
20652 ] A format for use with formatted references to this counter.
20653  For example, one might want to have references to section numbers appear
20654  as 
20655 \begin_inset Quotes eld
20656 \end_inset
20657
20658 Section 2.4
20659 \begin_inset Quotes erd
20660 \end_inset
20661
20662 .
20663  The string should contain 
20664 \begin_inset Quotes eld
20665 \end_inset
20666
20667 ##
20668 \begin_inset Quotes erd
20669 \end_inset
20670
20671 .
20672  This will be replaced by the counter number itself.
20673  So, for sections, it would be: Section ##.
20674 \end_layout
20675
20676 \begin_layout Description
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 Within
20682 \end_layout
20683
20684 \end_inset
20685
20686  [
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 string
20692 \end_layout
20693
20694 \end_inset
20695
20696 =
20697 \begin_inset Quotes erd
20698 \end_inset
20699
20700
20701 \begin_inset Quotes erd
20702 \end_inset
20703
20704 ] If this is set to the name of another counter, the present counter will
20705  be reset every time the other one is increased.
20706  For example, 
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 subsection
20712 \end_layout
20713
20714 \end_inset
20715
20716  is numbered inside 
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 section
20722 \end_layout
20723
20724 \end_inset
20725
20726 .
20727 \end_layout
20728
20729 \begin_layout Subsection
20730 Font description
20731 \begin_inset CommandInset label
20732 LatexCommand label
20733 name "subsec:Font-description"
20734
20735 \end_inset
20736
20737
20738 \end_layout
20739
20740 \begin_layout Standard
20741 A font description looks like this:
20742 \end_layout
20743
20744 \begin_layout LyX-Code
20745 Font 
20746 \family roman
20747 \emph on
20748 or
20749 \family default
20750 \emph default
20751  LabelFont
20752 \emph on
20753  
20754 \family roman
20755 or
20756 \family default
20757 \emph default
20758  DefaultFont
20759 \end_layout
20760
20761 \begin_layout LyX-Code
20762  ...
20763 \end_layout
20764
20765 \begin_layout LyX-Code
20766 EndFont
20767 \end_layout
20768
20769 \begin_layout Standard
20770 The following commands are available:
20771 \end_layout
20772
20773 \begin_layout Description
20774 \begin_inset Flex Code
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778 Color
20779 \end_layout
20780
20781 \end_inset
20782
20783  [
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788
20789 \emph on
20790 none
20791 \end_layout
20792
20793 \end_inset
20794
20795
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 black
20801 \end_layout
20802
20803 \end_inset
20804
20805
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 white
20811 \end_layout
20812
20813 \end_inset
20814
20815
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 red
20821 \end_layout
20822
20823 \end_inset
20824
20825
20826 \begin_inset Flex Code
20827 status collapsed
20828
20829 \begin_layout Plain Layout
20830 green
20831 \end_layout
20832
20833 \end_inset
20834
20835
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840 blue
20841 \end_layout
20842
20843 \end_inset
20844
20845
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 cyan
20851 \end_layout
20852
20853 \end_inset
20854
20855
20856 \begin_inset Flex Code
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 magenta
20861 \end_layout
20862
20863 \end_inset
20864
20865
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 yellow
20871 \end_layout
20872
20873 \end_inset
20874
20875
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 brown
20881 \end_layout
20882
20883 \end_inset
20884
20885
20886 \begin_inset Flex Code
20887 status collapsed
20888
20889 \begin_layout Plain Layout
20890 darkgray
20891 \end_layout
20892
20893 \end_inset
20894
20895
20896 \begin_inset Flex Code
20897 status collapsed
20898
20899 \begin_layout Plain Layout
20900 gray
20901 \end_layout
20902
20903 \end_inset
20904
20905
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 lightgray
20911 \end_layout
20912
20913 \end_inset
20914
20915
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 lime
20921 \end_layout
20922
20923 \end_inset
20924
20925
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 orange
20931 \end_layout
20932
20933 \end_inset
20934
20935
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 olive
20941 \end_layout
20942
20943 \end_inset
20944
20945
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 pink
20951 \end_layout
20952
20953 \end_inset
20954
20955
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 purple
20961 \end_layout
20962
20963 \end_inset
20964
20965
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 teal
20971 \end_layout
20972
20973 \end_inset
20974
20975
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980 violet
20981 \end_layout
20982
20983 \end_inset
20984
20985 ]
20986 \end_layout
20987
20988 \begin_layout Description
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 Family
20994 \end_layout
20995
20996 \end_inset
20997
20998  [
20999 \begin_inset Flex Code
21000 status collapsed
21001
21002 \begin_layout Plain Layout
21003
21004 \emph on
21005 Roman
21006 \end_layout
21007
21008 \end_inset
21009
21010
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 Sans
21016 \end_layout
21017
21018 \end_inset
21019
21020
21021 \begin_inset Flex Code
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 Typewriter
21026 \end_layout
21027
21028 \end_inset
21029
21030 ]
21031 \end_layout
21032
21033 \begin_layout Description
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 Misc
21039 \end_layout
21040
21041 \end_inset
21042
21043  [
21044 \begin_inset Flex Code
21045 status collapsed
21046
21047 \begin_layout Plain Layout
21048 string
21049 \end_layout
21050
21051 \end_inset
21052
21053 ] Valid arguments are: 
21054 \begin_inset Flex Code
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 emph
21059 \end_layout
21060
21061 \end_inset
21062
21063
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068 noun
21069 \end_layout
21070
21071 \end_inset
21072
21073
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078 strikeout
21079 \end_layout
21080
21081 \end_inset
21082
21083
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 underbar
21089 \end_layout
21090
21091 \end_inset
21092
21093
21094 \begin_inset Flex Code
21095 status collapsed
21096
21097 \begin_layout Plain Layout
21098 uuline
21099 \end_layout
21100
21101 \end_inset
21102
21103
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 uwave
21109 \end_layout
21110
21111 \end_inset
21112
21113
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 no_emph
21119 \end_layout
21120
21121 \end_inset
21122
21123
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 no_noun
21129 \end_layout
21130
21131 \end_inset
21132
21133
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 no_strikeout
21139 \end_layout
21140
21141 \end_inset
21142
21143
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 no_bar
21149 \end_layout
21150
21151 \end_inset
21152
21153
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 no_uuline
21159 \end_layout
21160
21161 \end_inset
21162
21163  and 
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 no_uwave
21169 \end_layout
21170
21171 \end_inset
21172
21173 .
21174  Each of these turns on or off the corresponding attribute.
21175  For example, 
21176 \begin_inset Flex Code
21177 status collapsed
21178
21179 \begin_layout Plain Layout
21180 emph
21181 \end_layout
21182
21183 \end_inset
21184
21185  turns on emphasis, and 
21186 \begin_inset Flex Code
21187 status collapsed
21188
21189 \begin_layout Plain Layout
21190 no_emph
21191 \end_layout
21192
21193 \end_inset
21194
21195  turns it off.
21196  
21197 \begin_inset Newline newline
21198 \end_inset
21199
21200 If the latter seems puzzling, remember that the font settings for the present
21201  context are generally inherited from the surrounding context.
21202  So 
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 no_emph
21208 \end_layout
21209
21210 \end_inset
21211
21212  would turn off the emphasis that was anyway in effect, say, in a theorem
21213  environment.
21214 \end_layout
21215
21216 \begin_layout Description
21217 \begin_inset Flex Code
21218 status collapsed
21219
21220 \begin_layout Plain Layout
21221 Series
21222 \end_layout
21223
21224 \end_inset
21225
21226  [
21227 \begin_inset Flex Code
21228 status collapsed
21229
21230 \begin_layout Plain Layout
21231
21232 \emph on
21233 Medium
21234 \end_layout
21235
21236 \end_inset
21237
21238
21239 \begin_inset Flex Code
21240 status collapsed
21241
21242 \begin_layout Plain Layout
21243 Bold
21244 \end_layout
21245
21246 \end_inset
21247
21248
21249 \end_layout
21250
21251 \begin_layout Description
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 Shape
21257 \end_layout
21258
21259 \end_inset
21260
21261  [
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266
21267 \emph on
21268 Up
21269 \end_layout
21270
21271 \end_inset
21272
21273
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 Italic
21279 \end_layout
21280
21281 \end_inset
21282
21283
21284 \begin_inset Flex Code
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 SmallCaps
21289 \end_layout
21290
21291 \end_inset
21292
21293
21294 \begin_inset Flex Code
21295 status collapsed
21296
21297 \begin_layout Plain Layout
21298 Slanted
21299 \end_layout
21300
21301 \end_inset
21302
21303
21304 \end_layout
21305
21306 \begin_layout Description
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 Size
21312 \end_layout
21313
21314 \end_inset
21315
21316  [
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 tiny
21322 \end_layout
21323
21324 \end_inset
21325
21326
21327 \begin_inset Flex Code
21328 status collapsed
21329
21330 \begin_layout Plain Layout
21331 small
21332 \end_layout
21333
21334 \end_inset
21335
21336
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 \emph on
21343 normal
21344 \end_layout
21345
21346 \end_inset
21347
21348
21349 \begin_inset Flex Code
21350 status collapsed
21351
21352 \begin_layout Plain Layout
21353 large
21354 \end_layout
21355
21356 \end_inset
21357
21358
21359 \begin_inset Flex Code
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 larger
21364 \end_layout
21365
21366 \end_inset
21367
21368
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 largest
21374 \end_layout
21375
21376 \end_inset
21377
21378
21379 \begin_inset Flex Code
21380 status collapsed
21381
21382 \begin_layout Plain Layout
21383 huge
21384 \end_layout
21385
21386 \end_inset
21387
21388
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 giant
21394 \end_layout
21395
21396 \end_inset
21397
21398 ]
21399 \end_layout
21400
21401 \begin_layout Subsection
21402 \begin_inset CommandInset label
21403 LatexCommand label
21404 name "subsec:Citation-engine-description"
21405
21406 \end_inset
21407
21408 Cite engine description
21409 \end_layout
21410
21411 \begin_layout Standard
21412 The 
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 CiteEngine
21418 \end_layout
21419
21420 \end_inset
21421
21422  blocks, as used mainly in cite engine files (see 
21423 \begin_inset CommandInset ref
21424 LatexCommand ref
21425 reference "subsec:Cite-Engine-Files"
21426 plural "false"
21427 caps "false"
21428 noprefix "false"
21429
21430 \end_inset
21431
21432 ), define the citation commands provided by a specific 
21433 \begin_inset Quotes eld
21434 \end_inset
21435
21436 cite engine
21437 \begin_inset Quotes erd
21438 \end_inset
21439
21440 .
21441  A cite engine, in \SpecialChar LyX
21442  terms, is way specific way to format citations, using
21443  numbers, author names and/or years.
21444  Currently, \SpecialChar LyX
21445  supports three such engine types, namely:
21446 \end_layout
21447
21448 \begin_layout Enumerate
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453 default
21454 \end_layout
21455
21456 \end_inset
21457
21458 : the default Bib\SpecialChar TeX
21459  way to format citations, a simple numeric style (e.
21460 \begin_inset space \thinspace{}
21461 \end_inset
21462
21463 g., 
21464 \begin_inset Quotes eld
21465 \end_inset
21466
21467 [1]
21468 \begin_inset Quotes erd
21469 \end_inset
21470
21471 )
21472 \end_layout
21473
21474 \begin_layout Enumerate
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 authoryear
21480 \end_layout
21481
21482 \end_inset
21483
21484 : Harvard-styled citations using author names and publication year (e.
21485 \begin_inset space \thinspace{}
21486 \end_inset
21487
21488 g., 
21489 \begin_inset Quotes eld
21490 \end_inset
21491
21492 Smith and Miller (2017b)
21493 \begin_inset Quotes erd
21494 \end_inset
21495
21496 )
21497 \end_layout
21498
21499 \begin_layout Enumerate
21500 \begin_inset Flex Code
21501 status collapsed
21502
21503 \begin_layout Plain Layout
21504 numerical
21505 \end_layout
21506
21507 \end_inset
21508
21509 : extended numerical citations that also allow for author or title next
21510  to the number (e.
21511 \begin_inset space \thinspace{}
21512 \end_inset
21513
21514 g., 
21515 \begin_inset Quotes eld
21516 \end_inset
21517
21518 Smith and Miller [1]
21519 \begin_inset Quotes erd
21520 \end_inset
21521
21522 )
21523 \end_layout
21524
21525 \begin_layout Standard
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 CiteEngine
21531 \end_layout
21532
21533 \end_inset
21534
21535  blocks look like this:
21536 \end_layout
21537
21538 \begin_layout LyX-Code
21539 CiteEngine default
21540 \end_layout
21541
21542 \begin_layout LyX-Code
21543  cite
21544 \end_layout
21545
21546 \begin_layout LyX-Code
21547  Citep*[][]
21548 \end_layout
21549
21550 \begin_layout LyX-Code
21551  citeyearpar[][]=parencite*
21552 \end_layout
21553
21554 \begin_layout LyX-Code
21555  ...
21556 \end_layout
21557
21558 \begin_layout LyX-Code
21559 End
21560 \end_layout
21561
21562 \begin_layout Standard
21563 The tag following 
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 CiteEngine
21569 \end_layout
21570
21571 \end_inset
21572
21573  denotes the engine.
21574  The individual lines respectively define a cite command or cite command
21575  paradigm supported by this engine.
21576  The line can be as simple as a cite command that is used both to name the
21577  respective \SpecialChar LyX
21578  command and the \SpecialChar LaTeX
21579  output or more complex in order to differentiate
21580  things.
21581  The full syntax is:
21582 \end_layout
21583
21584 \begin_layout LyX-Code
21585 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21586 \end_layout
21587
21588 \begin_layout Itemize
21589 \begin_inset Flex Code
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593 LyXName
21594 \end_layout
21595
21596 \end_inset
21597
21598 : The name as used in the 
21599 \begin_inset Flex Code
21600 status collapsed
21601
21602 \begin_layout Plain Layout
21603 *.lyx
21604 \end_layout
21605
21606 \end_inset
21607
21608  file.
21609 \end_layout
21610
21611 \begin_deeper
21612 \begin_layout Standard
21613 For portability reasons, we try to use the same name for same-formatted
21614  commands in different cite packages (thus many names stem from natbib,
21615  and thus we need to differentiate a 
21616 \begin_inset Flex Code
21617 status collapsed
21618
21619 \begin_layout Plain Layout
21620 latexcmd
21621 \end_layout
21622
21623 \end_inset
21624
21625  sometimes, if the \SpecialChar LaTeX
21626  command names differ).
21627 \end_layout
21628
21629 \end_deeper
21630 \begin_layout Itemize
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 alias
21636 \end_layout
21637
21638 \end_inset
21639
21640 : a (comma-separated) list of commands that fall back to the given 
21641 \begin_inset Flex Code
21642 status collapsed
21643
21644 \begin_layout Plain Layout
21645 LyXName
21646 \end_layout
21647
21648 \end_inset
21649
21650  in the current engine.
21651  This eases the switch of citation packages and engines.
21652  The 
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 alias
21658 \end_layout
21659
21660 \end_inset
21661
21662  can be compared to 
21663 \begin_inset Flex Code
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667 ObsoletedBy
21668 \end_layout
21669
21670 \end_inset
21671
21672  in layout definitions.
21673 \end_layout
21674
21675 \begin_layout Itemize
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 latexcmd
21681 \end_layout
21682
21683 \end_inset
21684
21685 : The actual \SpecialChar LaTeX
21686  command that is output.
21687  
21688 \end_layout
21689
21690 \begin_layout Standard
21691 \begin_inset Flex Code
21692 status collapsed
21693
21694 \begin_layout Plain Layout
21695 Alias
21696 \end_layout
21697
21698 \end_inset
21699
21700  and 
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 latexcmd
21706 \end_layout
21707
21708 \end_inset
21709
21710  are optional.
21711  If no 
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716 latexcmd
21717 \end_layout
21718
21719 \end_inset
21720
21721  is given, the 
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 LyXName
21727 \end_layout
21728
21729 \end_inset
21730
21731  will be output to \SpecialChar LaTeX
21732 .
21733 \end_layout
21734
21735 \begin_layout Standard
21736 Note further:
21737 \end_layout
21738
21739 \begin_layout Itemize
21740 Capitalization indicates that the command also has a capitalized form (
21741 \begin_inset Flex Code
21742 status collapsed
21743
21744 \begin_layout Plain Layout
21745
21746 \backslash
21747 Latexcmd
21748 \end_layout
21749
21750 \end_inset
21751
21752  vs.
21753  
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758
21759 \backslash
21760 latexcmd
21761 \end_layout
21762
21763 \end_inset
21764
21765 ).
21766  These usually enforce up-casing of name prefixes (
21767 \emph on
21768 von Goethe
21769 \emph default
21770  
21771 \begin_inset Formula $\Rightarrow$
21772 \end_inset
21773
21774  
21775 \emph on
21776 Von Goethe
21777 \emph default
21778 ).
21779 \end_layout
21780
21781 \begin_layout Itemize
21782 Brackets 
21783 \begin_inset Flex Code
21784 status collapsed
21785
21786 \begin_layout Plain Layout
21787 []
21788 \end_layout
21789
21790 \end_inset
21791
21792  indicate the number of optional arguments (there can be 0–2).
21793 \end_layout
21794
21795 \begin_layout Itemize
21796 A star 
21797 \begin_inset Flex Code
21798 status collapsed
21799
21800 \begin_layout Plain Layout
21801 *
21802 \end_layout
21803
21804 \end_inset
21805
21806  indicates there is a starred version of the command (
21807 \begin_inset Flex Code
21808 status collapsed
21809
21810 \begin_layout Plain Layout
21811
21812 \backslash
21813 latexcmd*
21814 \end_layout
21815
21816 \end_inset
21817
21818  vs.
21819  
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824
21825 \backslash
21826 latexcmd
21827 \end_layout
21828
21829 \end_inset
21830
21831 ).
21832  
21833 \end_layout
21834
21835 \begin_deeper
21836 \begin_layout Standard
21837 By default, the starred version means: Output all authors even if it should
21838  be shortened with 
21839 \begin_inset Quotes eld
21840 \end_inset
21841
21842 et al.
21843 \begin_inset Quotes erd
21844 \end_inset
21845
21846  due to the 
21847 \begin_inset Flex Code
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851 MaxCiteNames
21852 \end_layout
21853
21854 \end_inset
21855
21856  threshold.
21857 \end_layout
21858
21859 \begin_layout Standard
21860 If the star has a different meaning for a given command, it can be specified
21861  in angle brackets: 
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866 <!_stardesc!_stardesctooltip>
21867 \end_layout
21868
21869 \end_inset
21870
21871 .
21872  Maximal two translatable macro keywords, marked by the prefix 
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 !_
21878 \end_layout
21879
21880 \end_inset
21881
21882 , can be given.
21883  The first points to the string that replaces the 
21884 \begin_inset Quotes eld
21885 \end_inset
21886
21887 Full aut&hor list
21888 \begin_inset Quotes erd
21889 \end_inset
21890
21891  checkbox label in the citation dialog, the second one to an optional tool
21892  tip for this checkbox.
21893  
21894 \end_layout
21895
21896 \begin_layout Standard
21897 Note that these two macros have to be defined in a 
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902 CiteFormat
21903 \end_layout
21904
21905 \end_inset
21906
21907  (see next section), dropping the 
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 !
21913 \end_layout
21914
21915 \end_inset
21916
21917  from the prefix, like this: 
21918 \end_layout
21919
21920 \begin_layout LyX-Code
21921 _stardesc Sta&rred command label
21922 \end_layout
21923
21924 \begin_layout LyX-Code
21925 _stardesctooltip Tooltip for the starred command checkbox.
21926 \end_layout
21927
21928 \end_deeper
21929 \begin_layout Itemize
21930 A dollar sign 
21931 \begin_inset Flex Code
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 $
21936 \end_layout
21937
21938 \end_inset
21939
21940  indicates that this command features 
21941 \begin_inset Quotes eld
21942 \end_inset
21943
21944 qualified citation lists
21945 \begin_inset Quotes erd
21946 \end_inset
21947
21948 .
21949  This is a 
21950 \family sans
21951 Biblatex
21952 \family default
21953 -specific feature for multi-reference citations where an individual pre-
21954  and postnote can be given to each reference in the list.
21955  Please refer to the 
21956 \family sans
21957 Biblatex
21958 \family default
21959  manual for details.
21960 \end_layout
21961
21962 \begin_layout Subsection
21963 \begin_inset CommandInset label
21964 LatexCommand label
21965 name "subsec:Citation-format-description"
21966
21967 \end_inset
21968
21969 Cite format description
21970 \end_layout
21971
21972 \begin_layout Standard
21973 The 
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978 CiteFormat
21979 \end_layout
21980
21981 \end_inset
21982
21983  blocks are used to describe how bibliographic information should be displayed,
21984  both within \SpecialChar LyX
21985  itself (in the citation dialog and in tooltips, for example)
21986  and in XHTML output.
21987  Such a block might look like this:
21988 \end_layout
21989
21990 \begin_layout LyX-Code
21991 CiteFormat
21992 \end_layout
21993
21994 \begin_layout LyX-Code
21995  article ...
21996 \end_layout
21997
21998 \begin_layout LyX-Code
21999  book ...
22000 \end_layout
22001
22002 \begin_layout LyX-Code
22003 End
22004 \end_layout
22005
22006 \begin_layout Standard
22007 or
22008 \end_layout
22009
22010 \begin_layout LyX-Code
22011 CiteFormat
22012 \end_layout
22013
22014 \begin_layout LyX-Code
22015  cite ...
22016 \end_layout
22017
22018 \begin_layout LyX-Code
22019  citet*[][] ...
22020 \end_layout
22021
22022 \begin_layout LyX-Code
22023 End
22024 \end_layout
22025
22026 \begin_layout Standard
22027 In the first case, the individual lines define how the bibliographic information
22028  associated with an article or book, respectively, is to be displayed, and
22029  such a definition can be given for any 
22030 \begin_inset Quotes els
22031 \end_inset
22032
22033 entry type
22034 \begin_inset Quotes ers
22035 \end_inset
22036
22037  that might be present in a Bib\SpecialChar TeX
22038  file.
22039  \SpecialChar LyX
22040  defines a default format in the source code that will be used if no specific
22041  definition has been given.
22042  \SpecialChar LyX
22043  predefines several formats in the file 
22044 \begin_inset Flex Code
22045 status collapsed
22046
22047 \begin_layout Plain Layout
22048 stdciteformats.inc
22049 \end_layout
22050
22051 \end_inset
22052
22053 , which is included in most of \SpecialChar LyX
22054 's document classes.
22055 \end_layout
22056
22057 \begin_layout Standard
22058 In the second case, the lines define how a specific citation command (in
22059  the example 
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064
22065 \backslash
22066 cite
22067 \end_layout
22068
22069 \end_inset
22070
22071
22072 \begin_inset Flex Code
22073 status collapsed
22074
22075 \begin_layout Plain Layout
22076
22077 \backslash
22078 citet
22079 \end_layout
22080
22081 \end_inset
22082
22083 ) is to be displayed on the citation inset label, in the citation dialog,
22084  menu or XHTML output.
22085  \SpecialChar LyX
22086  defines such formats for the citation style variants it supports via 
22087 \family sans
22088 Document\SpecialChar menuseparator
22089 Setting\SpecialChar menuseparator
22090 Bibliography\SpecialChar ldots
22091
22092 \family default
22093  in specific 
22094 \begin_inset Flex Code
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098 *.citeengine
22099 \end_layout
22100
22101 \end_inset
22102
22103  files that are shipped with \SpecialChar LyX
22104  (see 
22105 \begin_inset CommandInset ref
22106 LatexCommand ref
22107 reference "subsec:Cite-Engine-Files"
22108 plural "false"
22109 caps "false"
22110 noprefix "false"
22111
22112 \end_inset
22113
22114 ).
22115 \end_layout
22116
22117 \begin_layout Standard
22118 The definitions use a simple language that allows Bib\SpecialChar TeX
22119  keys to be replaced
22120  with their values.
22121  Keys should be enclosed in 
22122 \begin_inset Flex Code
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 %
22127 \end_layout
22128
22129 \end_inset
22130
22131  signs, e.g.: 
22132 \begin_inset Flex Code
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136 %author%
22137 \end_layout
22138
22139 \end_inset
22140
22141 .
22142  So a simple definition might look like this:
22143 \end_layout
22144
22145 \begin_layout LyX-Code
22146 misc %author%, 
22147 \begin_inset Quotes eld
22148 \end_inset
22149
22150 %title%
22151 \begin_inset Quotes erd
22152 \end_inset
22153
22154 .
22155 \end_layout
22156
22157 \begin_layout Standard
22158 This would print the author, followed by a comma, followed by the title,
22159  in quotes, followed by a period.
22160 \end_layout
22161
22162 \begin_layout Standard
22163 Of course, sometimes you may want to print a key only if it exists.
22164  This can be done by using a conditional construction, such as: 
22165 \begin_inset Flex Code
22166 status collapsed
22167
22168 \begin_layout Plain Layout
22169 {%volume%[[vol.
22170 \begin_inset space ~
22171 \end_inset
22172
22173 %volume%]]}
22174 \end_layout
22175
22176 \end_inset
22177
22178 .
22179  This says: If the 
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184 volume
22185 \end_layout
22186
22187 \end_inset
22188
22189  key exists, then print 
22190 \begin_inset Quotes eld
22191 \end_inset
22192
22193 vol.
22194 \begin_inset space ~
22195 \end_inset
22196
22197
22198 \begin_inset Quotes erd
22199 \end_inset
22200
22201  followed by the volume key.
22202  It is also possible to have an else clause in the conditional, such as:
22203 \begin_inset Newline newline
22204 \end_inset
22205
22206
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 {%author%[[%author%]][[%editor%, ed.]]}
22212 \end_layout
22213
22214 \end_inset
22215
22216 .
22217 \begin_inset Newline newline
22218 \end_inset
22219
22220 Here, the 
22221 \begin_inset Flex Code
22222 status collapsed
22223
22224 \begin_layout Plain Layout
22225 author
22226 \end_layout
22227
22228 \end_inset
22229
22230  key is printed if it exists; otherwise, the editor key is printed, followed
22231  by 
22232 \begin_inset Quotes eld
22233 \end_inset
22234
22235 ,
22236 \begin_inset space ~
22237 \end_inset
22238
22239 ed.
22240 \begin_inset Quotes erd
22241 \end_inset
22242
22243  Note that the key is again enclosed in 
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248 %
22249 \end_layout
22250
22251 \end_inset
22252
22253  signs; the entire conditional is enclosed in braces; and the if and else
22254  clauses are enclosed in double brackets, 
22255 \begin_inset Quotes eld
22256 \end_inset
22257
22258
22259 \begin_inset Flex Code
22260 status collapsed
22261
22262 \begin_layout Plain Layout
22263 [[
22264 \end_layout
22265
22266 \end_inset
22267
22268
22269 \begin_inset Quotes eld
22270 \end_inset
22271
22272  and 
22273 \begin_inset Quotes eld
22274 \end_inset
22275
22276
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 ]]
22282 \end_layout
22283
22284 \end_inset
22285
22286
22287 \begin_inset Quotes erd
22288 \end_inset
22289
22290 .
22291  There must be no space between any of these.
22292 \end_layout
22293
22294 \begin_layout Standard
22295 Next to the entry keys, there are some special keys that can be used for
22296  these conditionals:
22297 \end_layout
22298
22299 \begin_layout Itemize
22300 \begin_inset Flex Code
22301 status collapsed
22302
22303 \begin_layout Plain Layout
22304 {%dialog%[[true]][[false]]}
22305 \end_layout
22306
22307 \end_inset
22308
22309 : process the 
22310 \begin_inset Quotes eld
22311 \end_inset
22312
22313 true
22314 \begin_inset Quotes erd
22315 \end_inset
22316
22317  part for dialogs and menus, the 
22318 \begin_inset Quotes eld
22319 \end_inset
22320
22321 false
22322 \begin_inset Quotes erd
22323 \end_inset
22324
22325  part for other contexts (workarea, export)
22326 \end_layout
22327
22328 \begin_layout Itemize
22329 \begin_inset Flex Code
22330 status collapsed
22331
22332 \begin_layout Plain Layout
22333 {%export%[[true]][[false]]}
22334 \end_layout
22335
22336 \end_inset
22337
22338 : process the 
22339 \begin_inset Quotes eld
22340 \end_inset
22341
22342 true
22343 \begin_inset Quotes erd
22344 \end_inset
22345
22346  part for export and menus, the 
22347 \begin_inset Quotes eld
22348 \end_inset
22349
22350 false
22351 \begin_inset Quotes erd
22352 \end_inset
22353
22354  part for other contexts (workarea, dialog)
22355 \end_layout
22356
22357 \begin_layout Itemize
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 {%next%[[true]]}
22363 \end_layout
22364
22365 \end_inset
22366
22367 : process the 
22368 \begin_inset Quotes eld
22369 \end_inset
22370
22371 true
22372 \begin_inset Quotes erd
22373 \end_inset
22374
22375  part if another item follows (e.
22376 \begin_inset space \thinspace{}
22377 \end_inset
22378
22379 g., in a citation with multiple keys)
22380 \end_layout
22381
22382 \begin_layout Itemize
22383 \begin_inset Flex Code
22384 status collapsed
22385
22386 \begin_layout Plain Layout
22387 {%second%[[true]][[false]]}
22388 \end_layout
22389
22390 \end_inset
22391
22392 : process the 
22393 \begin_inset Quotes eld
22394 \end_inset
22395
22396 true
22397 \begin_inset Quotes erd
22398 \end_inset
22399
22400  if this is the second of multiple items, else the 
22401 \begin_inset Quotes eld
22402 \end_inset
22403
22404 false
22405 \begin_inset Quotes erd
22406 \end_inset
22407
22408  part
22409 \end_layout
22410
22411 \begin_layout Itemize
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416 {%ifstar%[[true]][[false]]}
22417 \end_layout
22418
22419 \end_inset
22420
22421 : process the 
22422 \begin_inset Quotes eld
22423 \end_inset
22424
22425 true
22426 \begin_inset Quotes erd
22427 \end_inset
22428
22429  part for starred citation commands (such as 
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434
22435 \backslash
22436 cite*
22437 \end_layout
22438
22439 \end_inset
22440
22441 ), the false part for unstarred
22442 \end_layout
22443
22444 \begin_layout Itemize
22445 \begin_inset Flex Code
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 {%ifentrytype:<type>%[[true]][[false]]}
22450 \end_layout
22451
22452 \end_inset
22453
22454 : process the 
22455 \begin_inset Quotes eld
22456 \end_inset
22457
22458 true
22459 \begin_inset Quotes erd
22460 \end_inset
22461
22462  if the current entry type matches 
22463 \begin_inset Flex Code
22464 status collapsed
22465
22466 \begin_layout Plain Layout
22467 <type>
22468 \end_layout
22469
22470 \end_inset
22471
22472 , else the false part (e.g., in a citation definition: 
22473 \begin_inset Flex Code
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22478 \end_layout
22479
22480 \end_inset
22481
22482 )
22483 \end_layout
22484
22485 \begin_layout Itemize
22486 \begin_inset Flex Code
22487 status collapsed
22488
22489 \begin_layout Plain Layout
22490 {%ifmultiple:<authortype>%[[true]][[false]]}
22491 \end_layout
22492
22493 \end_inset
22494
22495 : process the 
22496 \begin_inset Quotes eld
22497 \end_inset
22498
22499 true
22500 \begin_inset Quotes erd
22501 \end_inset
22502
22503  if the current author type (author, editor etc.) has multiple authors, else
22504  the false part (e.g., in a bibliography definition: 
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 {%ifmultiple:editor%[[eds.]][[ed.]]}
22510 \end_layout
22511
22512 \end_inset
22513
22514 )
22515 \end_layout
22516
22517 \begin_layout Itemize
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 {%ifqualified%[[true]][[false]]}
22523 \end_layout
22524
22525 \end_inset
22526
22527 : process the 
22528 \begin_inset Quotes eld
22529 \end_inset
22530
22531 true
22532 \begin_inset Quotes erd
22533 \end_inset
22534
22535  part if the current citation is a qualified citation list (a specific 
22536 \family sans
22537 Biblatex
22538 \family default
22539  format for multi-reference citations), the false part if this is not the
22540  case.
22541 \end_layout
22542
22543 \begin_layout Standard
22544 We said that 
22545 \begin_inset Flex Code
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549 %author%
22550 \end_layout
22551
22552 \end_inset
22553
22554  prints the author key as it is recorded in the bibliography file.
22555  This might not be what you want, since it will result in a string such
22556  as 
22557 \begin_inset Quotes eld
22558 \end_inset
22559
22560 Miller, Peter and Smith, Mary and White, Jane
22561 \begin_inset Quotes erd
22562 \end_inset
22563
22564  (since 
22565 \begin_inset Quotes eld
22566 \end_inset
22567
22568 and
22569 \begin_inset Quotes erd
22570 \end_inset
22571
22572  is used by Bib\SpecialChar TeX
22573  to delimit authors).
22574  \SpecialChar LyX
22575  therefore provides some methods to get properly formatted name lists (which
22576  will also get translated).
22577  The following keys are provided:
22578 \end_layout
22579
22580 \begin_layout Enumerate
22581 For name lists with pre- and surname, suitable for the main authors/editors
22582  of a bibliography item.
22583  The 
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 <nametype>
22589 \end_layout
22590
22591 \end_inset
22592
22593  part denotes the kind of list that is requested (e.g.
22594  
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599 <nametype:author>
22600 \end_layout
22601
22602 \end_inset
22603
22604 ):
22605 \end_layout
22606
22607 \begin_deeper
22608 \begin_layout Itemize
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613 %abbrvnames:<nametype>%
22614 \end_layout
22615
22616 \end_inset
22617
22618 : Provides a name list which is abbreviated (with 
22619 \begin_inset Quotes eld
22620 \end_inset
22621
22622 et al.
22623 \begin_inset Quotes erd
22624 \end_inset
22625
22626 ) when 
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 MaxCiteNames
22632 \end_layout
22633
22634 \end_inset
22635
22636  is reached.
22637 \end_layout
22638
22639 \begin_layout Itemize
22640 \begin_inset Flex Code
22641 status collapsed
22642
22643 \begin_layout Plain Layout
22644 %fullnames:<nametype>%
22645 \end_layout
22646
22647 \end_inset
22648
22649 : Provides a full name list (never abbreviated with 
22650 \begin_inset Quotes eld
22651 \end_inset
22652
22653 et al.
22654 \begin_inset Quotes erd
22655 \end_inset
22656
22657 ).
22658 \end_layout
22659
22660 \begin_layout Itemize
22661 \begin_inset Flex Code
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 %forceabbrvnames:<nametype>%
22666 \end_layout
22667
22668 \end_inset
22669
22670 : Provides a name list which is always abbreviated (with 
22671 \begin_inset Quotes eld
22672 \end_inset
22673
22674 et al.
22675 \begin_inset Quotes erd
22676 \end_inset
22677
22678 ) irrespective of 
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 MaxCiteNames
22684 \end_layout
22685
22686 \end_inset
22687
22688 .
22689 \end_layout
22690
22691 \end_deeper
22692 \begin_layout Enumerate
22693 Alternative name lists with pre- and surname, if the order of pre- and surname
22694  inside the bibliography item differs (as in: 
22695 \begin_inset Quotes eld
22696 \end_inset
22697
22698 Miller, John: Some text, in: Mary Smith, ed.: A volume
22699 \begin_inset Quotes erd
22700 \end_inset
22701
22702 ):
22703 \end_layout
22704
22705 \begin_deeper
22706 \begin_layout Itemize
22707 \begin_inset Flex Code
22708 status collapsed
22709
22710 \begin_layout Plain Layout
22711 %abbrvbynames:<nametype>%
22712 \end_layout
22713
22714 \end_inset
22715
22716 : Provides a name list which is abbreviated (with 
22717 \begin_inset Quotes eld
22718 \end_inset
22719
22720 et al.
22721 \begin_inset Quotes erd
22722 \end_inset
22723
22724 ) when 
22725 \begin_inset Flex Code
22726 status collapsed
22727
22728 \begin_layout Plain Layout
22729 MaxCiteNames
22730 \end_layout
22731
22732 \end_inset
22733
22734  is reached.
22735 \end_layout
22736
22737 \begin_layout Itemize
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742 %fullbynames:<nametype>%
22743 \end_layout
22744
22745 \end_inset
22746
22747 : Provides a full name list (never abbreviated with 
22748 \begin_inset Quotes eld
22749 \end_inset
22750
22751 et al.
22752 \begin_inset Quotes erd
22753 \end_inset
22754
22755 ).
22756 \end_layout
22757
22758 \begin_layout Itemize
22759 \begin_inset Flex Code
22760 status collapsed
22761
22762 \begin_layout Plain Layout
22763 %forceabbrvbynames:<nametype>%
22764 \end_layout
22765
22766 \end_inset
22767
22768 : Provides a name list which is always abbreviated (with 
22769 \begin_inset Quotes eld
22770 \end_inset
22771
22772 et al.
22773 \begin_inset Quotes erd
22774 \end_inset
22775
22776 ) irrespective of 
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781 MaxCiteNames
22782 \end_layout
22783
22784 \end_inset
22785
22786 .
22787 \end_layout
22788
22789 \end_deeper
22790 \begin_layout Enumerate
22791 And finally name lists which consist of family names only, as used in author-yea
22792 r citation labels.
22793  These do not take a 
22794 \begin_inset Flex Code
22795 status collapsed
22796
22797 \begin_layout Plain Layout
22798 <nametype>
22799 \end_layout
22800
22801 \end_inset
22802
22803  part, but always return either an author list or, if this does not exist,
22804  an editor list (as common in author-year labels):
22805 \end_layout
22806
22807 \begin_deeper
22808 \begin_layout Itemize
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 %abbrvciteauthor%
22814 \end_layout
22815
22816 \end_inset
22817
22818 : Provides a name list which is abbreviated (with 
22819 \begin_inset Quotes eld
22820 \end_inset
22821
22822 et al.
22823 \begin_inset Quotes erd
22824 \end_inset
22825
22826 ) when 
22827 \begin_inset Flex Code
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 MaxCiteNames
22832 \end_layout
22833
22834 \end_inset
22835
22836  is reached.
22837 \end_layout
22838
22839 \begin_layout Itemize
22840 \begin_inset Flex Code
22841 status collapsed
22842
22843 \begin_layout Plain Layout
22844 %fullciteauthor%
22845 \end_layout
22846
22847 \end_inset
22848
22849 : Provides a full name list (never abbreviated with 
22850 \begin_inset Quotes eld
22851 \end_inset
22852
22853 et al.
22854 \begin_inset Quotes erd
22855 \end_inset
22856
22857 ).
22858 \end_layout
22859
22860 \begin_layout Itemize
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 %forceabbrvciteauthor%
22866 \end_layout
22867
22868 \end_inset
22869
22870 : Provides a name list which is always abbreviated (with 
22871 \begin_inset Quotes eld
22872 \end_inset
22873
22874 et al.
22875 \begin_inset Quotes erd
22876 \end_inset
22877
22878 ) irrespective of 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 MaxCiteNames
22884 \end_layout
22885
22886 \end_inset
22887
22888 .
22889 \end_layout
22890
22891 \end_deeper
22892 \begin_layout Standard
22893 The order of pre- and surname in the former two lists can be adjusted by
22894  these macros:
22895 \end_layout
22896
22897 \begin_layout Itemize
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902 !firstnameform %surname%, %prename%
22903 \end_layout
22904
22905 \end_inset
22906
22907  (first author in lists of type 1)
22908 \end_layout
22909
22910 \begin_layout Itemize
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 !othernameform %surname%, %prename%
22916 \end_layout
22917
22918 \end_inset
22919
22920  (other authors in lists of type 1)
22921 \end_layout
22922
22923 \begin_layout Itemize
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 !firstbynameform %prename% %surname%
22929 \end_layout
22930
22931 \end_inset
22932
22933  (first author in lists of type 2)
22934 \end_layout
22935
22936 \begin_layout Itemize
22937 \begin_inset Flex Code
22938 status collapsed
22939
22940 \begin_layout Plain Layout
22941 !otherbynameform %prename% %surname%
22942 \end_layout
22943
22944 \end_inset
22945
22946  (other authors in lists of type 2)
22947 \end_layout
22948
22949 \begin_layout Standard
22950 This allows you to configure namings like 
22951 \begin_inset Quotes eld
22952 \end_inset
22953
22954 Miller, Peter and Mary Smith: \SpecialChar ldots
22955 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22956
22957 \begin_inset Quotes erd
22958 \end_inset
22959
22960 .
22961 \end_layout
22962
22963 \begin_layout Standard
22964 There is one other piece of syntax available in definitions, which looks
22965  like this: 
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 {!<i>!}
22971 \end_layout
22972
22973 \end_inset
22974
22975 .
22976  This defines a piece of formatting information that is to be used when
22977  creating 
22978 \begin_inset Quotes eld
22979 \end_inset
22980
22981 rich text
22982 \begin_inset Quotes erd
22983 \end_inset
22984
22985 .
22986  Obviously, we do not want to output HTML tags when writing plain text,
22987  so they should be wrapped in 
22988 \begin_inset Quotes eld
22989 \end_inset
22990
22991 {!
22992 \begin_inset Quotes erd
22993 \end_inset
22994
22995  and 
22996 \begin_inset Quotes eld
22997 \end_inset
22998
22999 !}
23000 \begin_inset Quotes erd
23001 \end_inset
23002
23003 .
23004 \end_layout
23005
23006 \begin_layout Standard
23007 Two special sorts of definitions are also possible in a 
23008 \begin_inset Flex Code
23009 status collapsed
23010
23011 \begin_layout Plain Layout
23012 CiteFormat
23013 \end_layout
23014
23015 \end_inset
23016
23017  block.
23018  An example of the first would be:
23019 \end_layout
23020
23021 \begin_layout LyX-Code
23022 !quotetitle 
23023 \begin_inset Quotes eld
23024 \end_inset
23025
23026 %title%
23027 \begin_inset Quotes erd
23028 \end_inset
23029
23030
23031 \end_layout
23032
23033 \begin_layout Standard
23034 This is an abbreviation, or macro, and it can be used by treating it as
23035  if it were a key: 
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040 %!quotetitle%
23041 \end_layout
23042
23043 \end_inset
23044
23045 .
23046  \SpecialChar LyX
23047  will treat 
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 %!quotetitle%
23053 \end_layout
23054
23055 \end_inset
23056
23057  exactly as it would treat its definition.
23058  So, let us issue the obvious 
23059 \emph on
23060 warning
23061 \emph default
23062 .
23063  Do not do this:
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067 !funfun %funfun%
23068 \end_layout
23069
23070 \begin_layout Standard
23071 or anything like it.
23072  \SpecialChar LyX
23073  shouldn't go into an infinite loop, but it may go into a long one before
23074  it gives up.
23075 \end_layout
23076
23077 \begin_layout Standard
23078 The second sort of special definition might look like this:
23079 \end_layout
23080
23081 \begin_layout LyX-Code
23082 B_pptext pp.
23083 \end_layout
23084
23085 \begin_layout Standard
23086 This defines a translatable piece of text, which allows relevant parts of
23087  the bibliography or citation to be translated.
23088  It can be included in a definition by treating it as a key: 
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 %B_pptext%
23094 \end_layout
23095
23096 \end_inset
23097
23098 .
23099  Note that there are two different translation paths: All definitions starting
23100  with 
23101 \begin_inset Flex Code
23102 status collapsed
23103
23104 \begin_layout Plain Layout
23105 B_
23106 \end_layout
23107
23108 \end_inset
23109
23110 , such as in the example above, will be translated to the currently active
23111  buffer language (so the translation will match the generated document).
23112  All definitions starting with underscore only will be translated to the
23113  GUI language.
23114  This is the proper translation for strings that only occur in the dialogs
23115  or on buttons, such as this one:
23116 \end_layout
23117
23118 \begin_layout LyX-Code
23119 _addtobib Add to bibliography only.
23120 \end_layout
23121
23122 \begin_layout Standard
23123 Several of these translatable strings are predefined in 
23124 \begin_inset Flex Code
23125 status collapsed
23126
23127 \begin_layout Plain Layout
23128 stdciteformats.inc
23129 \end_layout
23130
23131 \end_inset
23132
23133  and the diverse 
23134 \begin_inset Flex Code
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138 *.citeengine
23139 \end_layout
23140
23141 \end_inset
23142
23143  files.
23144  Note that these are not macros, in the sense just defined.
23145  They will not be expanded.
23146 \end_layout
23147
23148 \begin_layout Standard
23149 So here then is an example that uses several of these features:
23150 \begin_inset VSpace defskip
23151 \end_inset
23152
23153
23154 \end_layout
23155
23156 \begin_layout Standard
23157 \noindent
23158
23159 \family sans
23160 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23161 \end_layout
23162
23163 \begin_layout Standard
23164 \begin_inset VSpace defskip
23165 \end_inset
23166
23167 This defines a macro that prints the author, followed by a comma, if the
23168  
23169 \begin_inset Flex Code
23170 status collapsed
23171
23172 \begin_layout Plain Layout
23173 author
23174 \end_layout
23175
23176 \end_inset
23177
23178  key is defined, or else prints the name of the editor, followed by the
23179  
23180 \begin_inset Flex Code
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 B_edtext
23185 \end_layout
23186
23187 \end_inset
23188
23189  or its translation (it is by default 
23190 \begin_inset Quotes eld
23191 \end_inset
23192
23193 ed.
23194 \begin_inset Quotes erd
23195 \end_inset
23196
23197 ), if the 
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202 editor
23203 \end_layout
23204
23205 \end_inset
23206
23207  key is defined.
23208  Note that this is in fact defined in 
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 stdciteformats.inc
23214 \end_layout
23215
23216 \end_inset
23217
23218 , so you can use it in your own definitions, or re-definitions, if you load
23219  that file first.
23220 \end_layout
23221
23222 \begin_layout Section
23223 \begin_inset CommandInset label
23224 LatexCommand label
23225 name "sec:Tags-for-XHTML"
23226
23227 \end_inset
23228
23229 Tags for XHTML output
23230 \end_layout
23231
23232 \begin_layout Standard
23233 As with \SpecialChar LaTeX
23234  or DocBook, the format of \SpecialChar LyX
23235 's XHTML output is also controlled by
23236  layout information.
23237  In general, \SpecialChar LyX
23238  provides sensible defaults and, as mentioned earlier, it will
23239  even construct default CSS style rules from the other layout tags.
23240  For example, \SpecialChar LyX
23241  will attempt to use the information provided in the 
23242 \begin_inset Flex Code
23243 status collapsed
23244
23245 \begin_layout Plain Layout
23246 Font
23247 \end_layout
23248
23249 \end_inset
23250
23251  declaration for the Chapter style to write CSS that will appropriately
23252  format chapter headings.
23253 \end_layout
23254
23255 \begin_layout Standard
23256 In many cases, then, you may not have to do anything at all to get acceptable
23257  XHTML output for your own environments, custom insets, and so forth.
23258  But in some cases you will, and so \SpecialChar LyX
23259  provides a number of layout tags that
23260  can be used to customize the XHTML and CSS that are generated.
23261 \end_layout
23262
23263 \begin_layout Standard
23264 Note that there are two tags, 
23265 \begin_inset Flex Code
23266 status collapsed
23267
23268 \begin_layout Plain Layout
23269 HTMLPreamble
23270 \end_layout
23271
23272 \end_inset
23273
23274  and 
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279 AddToHTMLPreamble
23280 \end_layout
23281
23282 \end_inset
23283
23284  that may appear outside style and inset declarations.
23285  See 
23286 \begin_inset CommandInset ref
23287 LatexCommand ref
23288 reference "subsec:General-text-class"
23289
23290 \end_inset
23291
23292  for details on these.
23293 \end_layout
23294
23295 \begin_layout Subsection
23296 \begin_inset CommandInset label
23297 LatexCommand label
23298 name "subsec:Paragraph-Style-XHTML"
23299
23300 \end_inset
23301
23302 Paragraph styles
23303 \end_layout
23304
23305 \begin_layout Standard
23306 The sort of XHTML \SpecialChar LyX
23307  outputs for a paragraph depends upon whether we are dealing
23308  with a normal paragraph, a command, or an environment, where this is itself
23309  determined by the contents of the corresponding 
23310 \begin_inset Flex Code
23311 status collapsed
23312
23313 \begin_layout Plain Layout
23314 \SpecialChar LaTeX
23315 Type
23316 \end_layout
23317
23318 \end_inset
23319
23320  tag.
23321  
23322 \end_layout
23323
23324 \begin_layout Standard
23325 For a command or normal paragraph, the output XHTML has the following form:
23326 \end_layout
23327
23328 \begin_layout LyX-Code
23329
23330 \family sans
23331 <tag attr=
23332 \begin_inset Quotes erd
23333 \end_inset
23334
23335 value
23336 \begin_inset Quotes erd
23337 \end_inset
23338
23339 >
23340 \end_layout
23341
23342 \begin_layout LyX-Code
23343
23344 \family sans
23345 <labeltag attr=
23346 \begin_inset Quotes erd
23347 \end_inset
23348
23349 value
23350 \begin_inset Quotes erd
23351 \end_inset
23352
23353 >Label</labeltag>
23354 \end_layout
23355
23356 \begin_layout LyX-Code
23357
23358 \family sans
23359 Contents of the paragraph.
23360 \end_layout
23361
23362 \begin_layout LyX-Code
23363
23364 \family sans
23365 </tag>
23366 \end_layout
23367
23368 \begin_layout Standard
23369 The label tags are of course omitted if the paragraph does not have a label.
23370 \end_layout
23371
23372 \begin_layout Standard
23373 For an environment that is not some sort of list, the XHTML takes this form:
23374 \end_layout
23375
23376 \begin_layout LyX-Code
23377
23378 \family sans
23379 <tag attr=
23380 \begin_inset Quotes erd
23381 \end_inset
23382
23383 value
23384 \begin_inset Quotes erd
23385 \end_inset
23386
23387 >
23388 \end_layout
23389
23390 \begin_layout LyX-Code
23391
23392 \family sans
23393 <itemtag attr=
23394 \begin_inset Quotes erd
23395 \end_inset
23396
23397 value
23398 \begin_inset Quotes erd
23399 \end_inset
23400
23401 ><labeltag attr=
23402 \begin_inset Quotes erd
23403 \end_inset
23404
23405 value
23406 \begin_inset Quotes erd
23407 \end_inset
23408
23409 >Environment Label</labeltag>First paragraph.</itemtag>
23410 \end_layout
23411
23412 \begin_layout LyX-Code
23413
23414 \family sans
23415 <itemtag>Second paragraph.</itemtag>
23416 \end_layout
23417
23418 \begin_layout LyX-Code
23419
23420 \family sans
23421 </tag>
23422 \end_layout
23423
23424 \begin_layout Standard
23425 Note that the label is output only for the first paragraph, as it should
23426  be for a theorem, for example.
23427  
23428 \end_layout
23429
23430 \begin_layout Standard
23431 For a list, we have one of these forms:
23432 \end_layout
23433
23434 \begin_layout LyX-Code
23435
23436 \family sans
23437 <tag attr=
23438 \begin_inset Quotes erd
23439 \end_inset
23440
23441 value
23442 \begin_inset Quotes erd
23443 \end_inset
23444
23445 >
23446 \end_layout
23447
23448 \begin_layout LyX-Code
23449
23450 \family sans
23451 <itemtag attr=
23452 \begin_inset Quotes erd
23453 \end_inset
23454
23455 value
23456 \begin_inset Quotes erd
23457 \end_inset
23458
23459 ><labeltag attr=
23460 \begin_inset Quotes erd
23461 \end_inset
23462
23463 value
23464 \begin_inset Quotes erd
23465 \end_inset
23466
23467 >List Label</labeltag>First item.</itemtag>
23468 \end_layout
23469
23470 \begin_layout LyX-Code
23471
23472 \family sans
23473 <itemtag attr=
23474 \begin_inset Quotes erd
23475 \end_inset
23476
23477 value
23478 \begin_inset Quotes erd
23479 \end_inset
23480
23481 ><labeltag attr=
23482 \begin_inset Quotes erd
23483 \end_inset
23484
23485 value
23486 \begin_inset Quotes erd
23487 \end_inset
23488
23489 >List Label</labeltag>Second item.</itemtag>
23490 \end_layout
23491
23492 \begin_layout LyX-Code
23493
23494 \family sans
23495 </tag>
23496 \end_layout
23497
23498 \begin_layout LyX-Code
23499
23500 \end_layout
23501
23502 \begin_layout LyX-Code
23503
23504 \family sans
23505 <tag attr=
23506 \begin_inset Quotes erd
23507 \end_inset
23508
23509 value
23510 \begin_inset Quotes erd
23511 \end_inset
23512
23513 >
23514 \end_layout
23515
23516 \begin_layout LyX-Code
23517
23518 \family sans
23519 <labeltag attr=
23520 \begin_inset Quotes erd
23521 \end_inset
23522
23523 value
23524 \begin_inset Quotes erd
23525 \end_inset
23526
23527 >List Label</labeltag><itemtag attr=
23528 \begin_inset Quotes erd
23529 \end_inset
23530
23531 value
23532 \begin_inset Quotes erd
23533 \end_inset
23534
23535 >First item.</itemtag>
23536 \end_layout
23537
23538 \begin_layout LyX-Code
23539
23540 \family sans
23541 <labeltag attr=
23542 \begin_inset Quotes erd
23543 \end_inset
23544
23545 value
23546 \begin_inset Quotes erd
23547 \end_inset
23548
23549 >List Label</labeltag><itemtag attr=
23550 \begin_inset Quotes erd
23551 \end_inset
23552
23553 value
23554 \begin_inset Quotes erd
23555 \end_inset
23556
23557 >Second item.</itemtag>
23558 \end_layout
23559
23560 \begin_layout LyX-Code
23561
23562 \family sans
23563 </tag>
23564 \end_layout
23565
23566 \begin_layout Standard
23567 Note the different orders of 
23568 \begin_inset Flex Code
23569 status collapsed
23570
23571 \begin_layout Plain Layout
23572 labeltag
23573 \end_layout
23574
23575 \end_inset
23576
23577  and 
23578 \begin_inset Flex Code
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582 itemtag
23583 \end_layout
23584
23585 \end_inset
23586
23587 .
23588  Which order we get depends upon the setting of 
23589 \begin_inset Flex Code
23590 status collapsed
23591
23592 \begin_layout Plain Layout
23593 HTMLLabelFirst
23594 \end_layout
23595
23596 \end_inset
23597
23598 : If 
23599 \begin_inset Flex Code
23600 status collapsed
23601
23602 \begin_layout Plain Layout
23603 HTMLLabelFirst
23604 \end_layout
23605
23606 \end_inset
23607
23608  is false (the default), you get the first of these, with the label within
23609  the item; if true, you get the second, with the label outside the item.
23610 \end_layout
23611
23612 \begin_layout Standard
23613 The specific tags and attributes output for each paragraph type can be controlle
23614 d by means of the layout tags we are about to describe.
23615  As mentioned earlier, however, \SpecialChar LyX
23616  uses sensible defaults for many of these,
23617  so you often may not need to do very much to get good XHTML output.
23618  Think of the available tags as there so you can tweak things to your liking.
23619 \end_layout
23620
23621 \begin_layout Description
23622 \begin_inset Flex Code
23623 status collapsed
23624
23625 \begin_layout Plain Layout
23626 HTMLAttr
23627 \end_layout
23628
23629 \end_inset
23630
23631  [
23632 \begin_inset Flex Code
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 string
23637 \end_layout
23638
23639 \end_inset
23640
23641 ] Specifies attribute information to be output with the main tag.
23642  For example, 
23643 \begin_inset Quotes eld
23644 \end_inset
23645
23646
23647 \begin_inset Flex Code
23648 status collapsed
23649
23650 \begin_layout Plain Layout
23651 class=`mydiv'
23652 \end_layout
23653
23654 \end_inset
23655
23656
23657 \begin_inset Quotes erd
23658 \end_inset
23659
23660 .
23661  By default, \SpecialChar LyX
23662  will output 
23663 \begin_inset Quotes eld
23664 \end_inset
23665
23666
23667 \begin_inset Flex Code
23668 status collapsed
23669
23670 \begin_layout Plain Layout
23671 class=`layoutname'
23672 \end_layout
23673
23674 \end_inset
23675
23676
23677 \begin_inset Quotes erd
23678 \end_inset
23679
23680 , where 
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685 layoutname
23686 \end_layout
23687
23688 \end_inset
23689
23690  is the \SpecialChar LyX
23691  name of the layout, made lowercase, for example: chapter.
23692  This should 
23693 \emph on
23694 not
23695 \emph default
23696  contain any style information.
23697  Use 
23698 \begin_inset Flex Code
23699 status collapsed
23700
23701 \begin_layout Plain Layout
23702 HTMLStyle
23703 \end_layout
23704
23705 \end_inset
23706
23707  for that purpose.
23708 \end_layout
23709
23710 \begin_layout Description
23711 \begin_inset Flex Code
23712 status collapsed
23713
23714 \begin_layout Plain Layout
23715 HTMLForceCSS
23716 \end_layout
23717
23718 \end_inset
23719
23720  [
23721 \begin_inset Flex Code
23722 status collapsed
23723
23724 \begin_layout Plain Layout
23725
23726 \emph on
23727 0
23728 \emph default
23729 ,1
23730 \end_layout
23731
23732 \end_inset
23733
23734 ] Whether to output the default CSS information \SpecialChar LyX
23735  generates for this layout,
23736  even if additional information is explicitly provided via 
23737 \begin_inset Flex Code
23738 status collapsed
23739
23740 \begin_layout Plain Layout
23741 HTMLStyle
23742 \end_layout
23743
23744 \end_inset
23745
23746 .
23747  Setting this to 
23748 \begin_inset Flex Code
23749 status collapsed
23750
23751 \begin_layout Plain Layout
23752 1
23753 \end_layout
23754
23755 \end_inset
23756
23757  allows you to alter or augment the generated CSS, rather than to override
23758  it completely.
23759  Default is 
23760 \begin_inset Flex Code
23761 status collapsed
23762
23763 \begin_layout Plain Layout
23764 0
23765 \end_layout
23766
23767 \end_inset
23768
23769 .
23770 \end_layout
23771
23772 \begin_layout Description
23773 \begin_inset Flex Code
23774 status collapsed
23775
23776 \begin_layout Plain Layout
23777 HTMLItem
23778 \end_layout
23779
23780 \end_inset
23781
23782  [
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 string
23788 \end_layout
23789
23790 \end_inset
23791
23792 ] The tag to be used for individual paragraphs of environments, replacing
23793  
23794 \begin_inset Flex Code
23795 status collapsed
23796
23797 \begin_layout Plain Layout
23798 itemtag
23799 \end_layout
23800
23801 \end_inset
23802
23803  in the examples above.
23804  Defaults to 
23805 \begin_inset Flex Code
23806 status collapsed
23807
23808 \begin_layout Plain Layout
23809 div
23810 \end_layout
23811
23812 \end_inset
23813
23814 .
23815 \end_layout
23816
23817 \begin_layout Description
23818 \begin_inset Flex Code
23819 status collapsed
23820
23821 \begin_layout Plain Layout
23822 HTMLItemAttr
23823 \end_layout
23824
23825 \end_inset
23826
23827  [
23828 \begin_inset Flex Code
23829 status collapsed
23830
23831 \begin_layout Plain Layout
23832 string
23833 \end_layout
23834
23835 \end_inset
23836
23837 ] Attributes for the item tag.
23838  Defaults to
23839 \begin_inset Newline newline
23840 \end_inset
23841
23842
23843 \begin_inset Quotes eld
23844 \end_inset
23845
23846
23847 \begin_inset Flex Code
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 class=`layoutname_item'
23852 \end_layout
23853
23854 \end_inset
23855
23856
23857 \begin_inset Quotes erd
23858 \end_inset
23859
23860 .
23861  This should 
23862 \emph on
23863 not
23864 \emph default
23865  contain any style information.
23866  Use 
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 HTMLStyle
23872 \end_layout
23873
23874 \end_inset
23875
23876  for that purpose.
23877 \end_layout
23878
23879 \begin_layout Description
23880 \begin_inset Flex Code
23881 status collapsed
23882
23883 \begin_layout Plain Layout
23884 HTMLLabel
23885 \end_layout
23886
23887 \end_inset
23888
23889  [
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 string
23895 \end_layout
23896
23897 \end_inset
23898
23899 ] The tag to be used for paragraph and item labels, replacing 
23900 \begin_inset Flex Code
23901 status collapsed
23902
23903 \begin_layout Plain Layout
23904 labeltag
23905 \end_layout
23906
23907 \end_inset
23908
23909  in the examples above.
23910  Defaults to 
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915 span
23916 \end_layout
23917
23918 \end_inset
23919
23920 , unless 
23921 \begin_inset Flex Code
23922 status collapsed
23923
23924 \begin_layout Plain Layout
23925 LabelType
23926 \end_layout
23927
23928 \end_inset
23929
23930  is either 
23931 \begin_inset Flex Code
23932 status collapsed
23933
23934 \begin_layout Plain Layout
23935 Top_Environment
23936 \end_layout
23937
23938 \end_inset
23939
23940  or 
23941 \begin_inset Flex Code
23942 status collapsed
23943
23944 \begin_layout Plain Layout
23945 Centered_Top_Environment
23946 \end_layout
23947
23948 \end_inset
23949
23950 , in which case it defaults to 
23951 \begin_inset Flex Code
23952 status collapsed
23953
23954 \begin_layout Plain Layout
23955 div
23956 \end_layout
23957
23958 \end_inset
23959
23960 .
23961 \end_layout
23962
23963 \begin_layout Description
23964 \begin_inset Flex Code
23965 status collapsed
23966
23967 \begin_layout Plain Layout
23968 HTMLLabelAttr
23969 \end_layout
23970
23971 \end_inset
23972
23973  [
23974 \begin_inset Flex Code
23975 status collapsed
23976
23977 \begin_layout Plain Layout
23978 string
23979 \end_layout
23980
23981 \end_inset
23982
23983 ] Attributes for the label tag.
23984  Defaults to
23985 \begin_inset Newline newline
23986 \end_inset
23987
23988
23989 \begin_inset Quotes eld
23990 \end_inset
23991
23992
23993 \begin_inset Flex Code
23994 status collapsed
23995
23996 \begin_layout Plain Layout
23997 class=`layoutname_label'
23998 \end_layout
23999
24000 \end_inset
24001
24002
24003 \begin_inset Quotes erd
24004 \end_inset
24005
24006 .
24007  This should 
24008 \emph on
24009 not
24010 \emph default
24011  contain any style information.
24012  Use 
24013 \begin_inset Flex Code
24014 status collapsed
24015
24016 \begin_layout Plain Layout
24017 HTMLStyle
24018 \end_layout
24019
24020 \end_inset
24021
24022  for that purpose.
24023 \end_layout
24024
24025 \begin_layout Description
24026 \begin_inset Flex Code
24027 status collapsed
24028
24029 \begin_layout Plain Layout
24030 HTMLLabelFirst
24031 \end_layout
24032
24033 \end_inset
24034
24035  [
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040
24041 \emph on
24042 0
24043 \emph default
24044 ,1
24045 \end_layout
24046
24047 \end_inset
24048
24049 ] Meaningful only for list-like environments, this tag controls whether
24050  the label tag is output before or inside the item tag.
24051  This is used, for example, in the description environment, where we want
24052  `
24053 \begin_inset Flex Code
24054 status collapsed
24055
24056 \begin_layout Plain Layout
24057 <dt>\SpecialChar ldots
24058 </dt><dd>\SpecialChar ldots
24059 </dd>
24060 \end_layout
24061
24062 \end_inset
24063
24064 .
24065  Default is 
24066 \begin_inset Flex Code
24067 status collapsed
24068
24069 \begin_layout Plain Layout
24070 0
24071 \end_layout
24072
24073 \end_inset
24074
24075 : The label tag is output inside the item tag.
24076 \end_layout
24077
24078 \begin_layout Description
24079 \begin_inset Flex Code
24080 status collapsed
24081
24082 \begin_layout Plain Layout
24083 HTMLPreamble
24084 \end_layout
24085
24086 \end_inset
24087
24088  Information to be output in the 
24089 \begin_inset Flex Code
24090 status collapsed
24091
24092 \begin_layout Plain Layout
24093 <head>
24094 \end_layout
24095
24096 \end_inset
24097
24098  section when this style is used.
24099  This might, for example, be used to include a 
24100 \begin_inset Flex Code
24101 status collapsed
24102
24103 \begin_layout Plain Layout
24104 <script>
24105 \end_layout
24106
24107 \end_inset
24108
24109  block defining an 
24110 \begin_inset Flex Code
24111 status collapsed
24112
24113 \begin_layout Plain Layout
24114 onclick
24115 \end_layout
24116
24117 \end_inset
24118
24119  handler.
24120 \end_layout
24121
24122 \begin_layout Description
24123 \begin_inset Flex Code
24124 status collapsed
24125
24126 \begin_layout Plain Layout
24127 HTMLStyle
24128 \end_layout
24129
24130 \end_inset
24131
24132  CSS style information to be included when this style is used.
24133  Note that this will automatically be wrapped in a layout-generated 
24134 \begin_inset Flex Code
24135 status collapsed
24136
24137 \begin_layout Plain Layout
24138 <style>
24139 \end_layout
24140
24141 \end_inset
24142
24143  block, so only the CSS itself need be included.
24144  Must end with 
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 EndHTMLStyle
24150 \end_layout
24151
24152 \end_inset
24153
24154 .
24155 \end_layout
24156
24157 \begin_layout Description
24158 \begin_inset Flex Code
24159 status collapsed
24160
24161 \begin_layout Plain Layout
24162 HTMLTag
24163 \end_layout
24164
24165 \end_inset
24166
24167  [
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 string
24173 \end_layout
24174
24175 \end_inset
24176
24177 ] The tag to be used for the main label, replacing 
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182 tag
24183 \end_layout
24184
24185 \end_inset
24186
24187  in the examples above.
24188  Defaults to 
24189 \begin_inset Flex Code
24190 status collapsed
24191
24192 \begin_layout Plain Layout
24193 div
24194 \end_layout
24195
24196 \end_inset
24197
24198 .
24199 \end_layout
24200
24201 \begin_layout Description
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 HTMLTitle
24207 \end_layout
24208
24209 \end_inset
24210
24211  [
24212 \begin_inset Flex Code
24213 status collapsed
24214
24215 \begin_layout Plain Layout
24216
24217 \emph on
24218 0
24219 \emph default
24220 ,1
24221 \end_layout
24222
24223 \end_inset
24224
24225 ] Marks this style as the one to be used to generate the 
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 <title>
24231 \end_layout
24232
24233 \end_inset
24234
24235  tag for the XHTML file.
24236  By default, it is false.
24237  The 
24238 \begin_inset Flex Code
24239 status collapsed
24240
24241 \begin_layout Plain Layout
24242 stdtitle.inc
24243 \end_layout
24244
24245 \end_inset
24246
24247  file sets it to true for the 
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252 title
24253 \end_layout
24254
24255 \end_inset
24256
24257  environment.
24258  
24259 \end_layout
24260
24261 \begin_layout Subsection
24262 InsetLayout XHTML
24263 \end_layout
24264
24265 \begin_layout Standard
24266 The XHTML output of insets can also be controlled by information in layout
24267  files.
24268 \begin_inset Foot
24269 status collapsed
24270
24271 \begin_layout Plain Layout
24272 At present, this is true only for 
24273 \begin_inset Quotes eld
24274 \end_inset
24275
24276 text
24277 \begin_inset Quotes erd
24278 \end_inset
24279
24280  insets (insets you can type into) and is not true for 
24281 \begin_inset Quotes eld
24282 \end_inset
24283
24284 command
24285 \begin_inset Quotes erd
24286 \end_inset
24287
24288  insets (insets that are associated with dialog boxes).
24289 \end_layout
24290
24291 \end_inset
24292
24293  Here, too, \SpecialChar LyX
24294  tries to provide sensible defaults, and it constructs default
24295  CSS style rules.
24296  But everything can be customized.
24297 \end_layout
24298
24299 \begin_layout Standard
24300 The XHTML \SpecialChar LyX
24301  outputs for an inset has the following form:
24302 \end_layout
24303
24304 \begin_layout LyX-Code
24305 <tag attr=
24306 \begin_inset Quotes erd
24307 \end_inset
24308
24309 value
24310 \begin_inset Quotes erd
24311 \end_inset
24312
24313 >
24314 \end_layout
24315
24316 \begin_layout LyX-Code
24317 <labeltag>Label</labeltag>
24318 \end_layout
24319
24320 \begin_layout LyX-Code
24321 <innertag attr=
24322 \begin_inset Quotes erd
24323 \end_inset
24324
24325 value
24326 \begin_inset Quotes erd
24327 \end_inset
24328
24329 >Contents of the inset.</innertag>
24330 \end_layout
24331
24332 \begin_layout LyX-Code
24333 </tag>
24334 \end_layout
24335
24336 \begin_layout Standard
24337 If the inset permits multiple paragraphs—that is, if 
24338 \begin_inset Flex Code
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342 MultiPar
24343 \end_layout
24344
24345 \end_inset
24346
24347  is true—then the contents of the inset will itself be output as paragraphs
24348  formatted according to the styles used for those paragraphs (standard,
24349  quote, and the like).
24350  The label tag is of course omitted if the paragraph does not have a label
24351  and, at present, is always 
24352 \begin_inset Flex Code
24353 status collapsed
24354
24355 \begin_layout Plain Layout
24356 span
24357 \end_layout
24358
24359 \end_inset
24360
24361 .
24362  The inner tag is optional and, by default, does not appear.
24363 \end_layout
24364
24365 \begin_layout Standard
24366 The specific tags and attributes output for each inset can be controlled
24367  by means of the following layout tags.
24368 \end_layout
24369
24370 \begin_layout Description
24371 \begin_inset Flex Code
24372 status collapsed
24373
24374 \begin_layout Plain Layout
24375 HTMLAttr
24376 \end_layout
24377
24378 \end_inset
24379
24380  [
24381 \begin_inset Flex Code
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385 string
24386 \end_layout
24387
24388 \end_inset
24389
24390 ] Specifies attribute information to be output with the main tag.
24391  For example, 
24392 \begin_inset Quotes eld
24393 \end_inset
24394
24395
24396 \begin_inset Flex Code
24397 status collapsed
24398
24399 \begin_layout Plain Layout
24400 class=`myinset' onclick=`\SpecialChar ldots
24401 '
24402 \end_layout
24403
24404 \end_inset
24405
24406
24407 \begin_inset Quotes erd
24408 \end_inset
24409
24410 .
24411  By default, \SpecialChar LyX
24412  will output 
24413 \begin_inset Quotes eld
24414 \end_inset
24415
24416
24417 \begin_inset Flex Code
24418 status collapsed
24419
24420 \begin_layout Plain Layout
24421 class=`insetname'
24422 \end_layout
24423
24424 \end_inset
24425
24426
24427 \begin_inset Quotes erd
24428 \end_inset
24429
24430 , where 
24431 \begin_inset Flex Code
24432 status collapsed
24433
24434 \begin_layout Plain Layout
24435 insetname
24436 \end_layout
24437
24438 \end_inset
24439
24440  is the \SpecialChar LyX
24441  name of the inset, made lowercase and with non-alphanumeric characters
24442  converted to underscores, for example: footnote.
24443 \end_layout
24444
24445 \begin_layout Description
24446 \begin_inset Flex Code
24447 status collapsed
24448
24449 \begin_layout Plain Layout
24450 HTMLForceCSS
24451 \end_layout
24452
24453 \end_inset
24454
24455  [
24456 \begin_inset Flex Code
24457 status collapsed
24458
24459 \begin_layout Plain Layout
24460
24461 \emph on
24462 0
24463 \emph default
24464 ,1
24465 \end_layout
24466
24467 \end_inset
24468
24469 ] Whether to output the default CSS information \SpecialChar LyX
24470  generates for this layout,
24471  even if additional information is explicitly provided via 
24472 \begin_inset Flex Code
24473 status collapsed
24474
24475 \begin_layout Plain Layout
24476 HTMLStyle
24477 \end_layout
24478
24479 \end_inset
24480
24481 .
24482  Setting this to 
24483 \begin_inset Flex Code
24484 status collapsed
24485
24486 \begin_layout Plain Layout
24487 1
24488 \end_layout
24489
24490 \end_inset
24491
24492  allows you to alter or augment the generated CSS, rather than to override
24493  it completely.
24494  Default is 0.
24495 \end_layout
24496
24497 \begin_layout Description
24498 \begin_inset Flex Code
24499 status collapsed
24500
24501 \begin_layout Plain Layout
24502 HTMLInnerAttr
24503 \end_layout
24504
24505 \end_inset
24506
24507  [
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512 string
24513 \end_layout
24514
24515 \end_inset
24516
24517 ] Attributes for the inner tag.
24518  Defaults to
24519 \begin_inset Newline newline
24520 \end_inset
24521
24522
24523 \begin_inset Quotes eld
24524 \end_inset
24525
24526
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531 class=`insetname_inner'
24532 \end_layout
24533
24534 \end_inset
24535
24536
24537 \begin_inset Quotes erd
24538 \end_inset
24539
24540 .
24541 \end_layout
24542
24543 \begin_layout Description
24544 \begin_inset Flex Code
24545 status collapsed
24546
24547 \begin_layout Plain Layout
24548 HTMLInnerTag
24549 \end_layout
24550
24551 \end_inset
24552
24553  [
24554 \begin_inset Flex Code
24555 status collapsed
24556
24557 \begin_layout Plain Layout
24558 string
24559 \end_layout
24560
24561 \end_inset
24562
24563 ] The inner tag, replacing 
24564 \begin_inset Flex Code
24565 status collapsed
24566
24567 \begin_layout Plain Layout
24568 innertag
24569 \end_layout
24570
24571 \end_inset
24572
24573  in the examples above.
24574  By default, there is none.
24575 \end_layout
24576
24577 \begin_layout Description
24578 \begin_inset Flex Code
24579 status collapsed
24580
24581 \begin_layout Plain Layout
24582 HTMLIsBlock
24583 \end_layout
24584
24585 \end_inset
24586
24587  [
24588 \begin_inset Flex Code
24589 status collapsed
24590
24591 \begin_layout Plain Layout
24592 0,
24593 \emph on
24594 1
24595 \end_layout
24596
24597 \end_inset
24598
24599 ] Whether this inset represents a standalone block of text (such as a footnote)
24600  or instead represents material that is included in the surrounding text
24601  (such as a branch).
24602  Defaults to 1.
24603 \end_layout
24604
24605 \begin_layout Description
24606 \begin_inset Flex Code
24607 status collapsed
24608
24609 \begin_layout Plain Layout
24610 HTMLLabel
24611 \end_layout
24612
24613 \end_inset
24614
24615  [
24616 \begin_inset Flex Code
24617 status collapsed
24618
24619 \begin_layout Plain Layout
24620 string
24621 \end_layout
24622
24623 \end_inset
24624
24625 ] A label for this inset, possibly including a reference to a counter.
24626  For example, for footnote, it might be: 
24627 \begin_inset Flex Code
24628 status collapsed
24629
24630 \begin_layout Plain Layout
24631
24632 \backslash
24633 arabic{footnote}
24634 \end_layout
24635
24636 \end_inset
24637
24638 .
24639  This is optional, and there is no default.
24640 \end_layout
24641
24642 \begin_layout Description
24643 \begin_inset Flex Code
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647 HTMLPreamble
24648 \end_layout
24649
24650 \end_inset
24651
24652  Information to be output in the 
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 <head>
24658 \end_layout
24659
24660 \end_inset
24661
24662  section when this style is used.
24663  This might, for example, be used to include a 
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 <script>
24669 \end_layout
24670
24671 \end_inset
24672
24673  block defining an 
24674 \begin_inset Flex Code
24675 status collapsed
24676
24677 \begin_layout Plain Layout
24678 onclick
24679 \end_layout
24680
24681 \end_inset
24682
24683  handler.
24684 \end_layout
24685
24686 \begin_layout Description
24687 \begin_inset Flex Code
24688 status collapsed
24689
24690 \begin_layout Plain Layout
24691 HTMLStyle
24692 \end_layout
24693
24694 \end_inset
24695
24696  CSS style information to be included when this style is used.
24697  Note that this will automatically be wrapped in a layout-generated 
24698 \begin_inset Flex Code
24699 status collapsed
24700
24701 \begin_layout Plain Layout
24702 <style>
24703 \end_layout
24704
24705 \end_inset
24706
24707  block, so only the CSS itself need be included.
24708 \end_layout
24709
24710 \begin_layout Description
24711 \begin_inset Flex Code
24712 status collapsed
24713
24714 \begin_layout Plain Layout
24715 HTMLTag
24716 \end_layout
24717
24718 \end_inset
24719
24720  [
24721 \begin_inset Flex Code
24722 status collapsed
24723
24724 \begin_layout Plain Layout
24725 string
24726 \end_layout
24727
24728 \end_inset
24729
24730 ] The tag to be used for the main label, replacing 
24731 \begin_inset Flex Code
24732 status collapsed
24733
24734 \begin_layout Plain Layout
24735 tag
24736 \end_layout
24737
24738 \end_inset
24739
24740  in the examples above.
24741  The default depends upon the setting of 
24742 \begin_inset Flex Code
24743 status collapsed
24744
24745 \begin_layout Plain Layout
24746 MultiPar
24747 \end_layout
24748
24749 \end_inset
24750
24751 : If 
24752 \begin_inset Flex Code
24753 status collapsed
24754
24755 \begin_layout Plain Layout
24756 MultiPar
24757 \end_layout
24758
24759 \end_inset
24760
24761  is true, the default is 
24762 \begin_inset Flex Code
24763 status collapsed
24764
24765 \begin_layout Plain Layout
24766 div
24767 \end_layout
24768
24769 \end_inset
24770
24771 ; if it is false, the default is 
24772 \begin_inset Flex Code
24773 status collapsed
24774
24775 \begin_layout Plain Layout
24776 span
24777 \end_layout
24778
24779 \end_inset
24780
24781 .
24782 \end_layout
24783
24784 \begin_layout Subsection
24785 Float XHTML
24786 \end_layout
24787
24788 \begin_layout Standard
24789 The XHTML output for floats too can be controlled by layout information.
24790  The output has the following form:
24791 \end_layout
24792
24793 \begin_layout LyX-Code
24794 <tag attr=
24795 \begin_inset Quotes erd
24796 \end_inset
24797
24798 value
24799 \begin_inset Quotes erd
24800 \end_inset
24801
24802 >
24803 \end_layout
24804
24805 \begin_layout LyX-Code
24806 Contents of the float.
24807 \end_layout
24808
24809 \begin_layout LyX-Code
24810 </tag>
24811 \end_layout
24812
24813 \begin_layout Standard
24814 The caption, if there is one, is a separate inset and will be output as
24815  such.
24816  Its appearance can be controlled via the InsetLayout for caption insets.
24817  
24818 \end_layout
24819
24820 \begin_layout Description
24821 \begin_inset Flex Code
24822 status collapsed
24823
24824 \begin_layout Plain Layout
24825 HTMLAttr
24826 \end_layout
24827
24828 \end_inset
24829
24830  [
24831 \begin_inset Flex Code
24832 status collapsed
24833
24834 \begin_layout Plain Layout
24835 string
24836 \end_layout
24837
24838 \end_inset
24839
24840 ] Specifies attribute information to be output with the main tag.
24841  For example, 
24842 \begin_inset Quotes eld
24843 \end_inset
24844
24845
24846 \begin_inset Flex Code
24847 status collapsed
24848
24849 \begin_layout Plain Layout
24850 class=`myfloat' onclick=`\SpecialChar ldots
24851 '
24852 \end_layout
24853
24854 \end_inset
24855
24856
24857 \begin_inset Quotes erd
24858 \end_inset
24859
24860 .
24861  By default, \SpecialChar LyX
24862  will output 
24863 \begin_inset Quotes eld
24864 \end_inset
24865
24866
24867 \begin_inset Flex Code
24868 status collapsed
24869
24870 \begin_layout Plain Layout
24871 class=`float float-floattype'
24872 \end_layout
24873
24874 \end_inset
24875
24876
24877 \begin_inset Quotes erd
24878 \end_inset
24879
24880 , where 
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 floattype
24886 \end_layout
24887
24888 \end_inset
24889
24890  is \SpecialChar LyX
24891 's name for this type of float, as determined by the float declaration
24892  (see 
24893 \begin_inset CommandInset ref
24894 LatexCommand ref
24895 reference "subsec:Floats"
24896
24897 \end_inset
24898
24899 ), though made lowercase and with non-alphanumeric characters converted
24900  to underscores, for example: float-table.
24901 \end_layout
24902
24903 \begin_layout Description
24904 \begin_inset Flex Code
24905 status collapsed
24906
24907 \begin_layout Plain Layout
24908 HTMLStyle
24909 \end_layout
24910
24911 \end_inset
24912
24913  CSS style information to be included when this float is used.
24914  Note that this will automatically be wrapped in a layout-generated 
24915 \begin_inset Flex Code
24916 status collapsed
24917
24918 \begin_layout Plain Layout
24919 <style>
24920 \end_layout
24921
24922 \end_inset
24923
24924  block, so only the CSS itself need be included.
24925 \end_layout
24926
24927 \begin_layout Description
24928 \begin_inset Flex Code
24929 status collapsed
24930
24931 \begin_layout Plain Layout
24932 HTMLTag
24933 \end_layout
24934
24935 \end_inset
24936
24937  [
24938 \begin_inset Flex Code
24939 status collapsed
24940
24941 \begin_layout Plain Layout
24942 string
24943 \end_layout
24944
24945 \end_inset
24946
24947 ] The tag to be used for this float, replacing 
24948 \begin_inset Quotes eld
24949 \end_inset
24950
24951
24952 \begin_inset Flex Code
24953 status collapsed
24954
24955 \begin_layout Plain Layout
24956 tag
24957 \end_layout
24958
24959 \end_inset
24960
24961
24962 \begin_inset Quotes erd
24963 \end_inset
24964
24965  in the example above.
24966  The default is 
24967 \begin_inset Flex Code
24968 status collapsed
24969
24970 \begin_layout Plain Layout
24971 div
24972 \end_layout
24973
24974 \end_inset
24975
24976  and will rarely need changing.
24977 \end_layout
24978
24979 \begin_layout Subsection
24980 Bibliography formatting
24981 \end_layout
24982
24983 \begin_layout Standard
24984 The bibliography can be formatted using 
24985 \begin_inset Flex Code
24986 status collapsed
24987
24988 \begin_layout Plain Layout
24989 CiteFormat
24990 \end_layout
24991
24992 \end_inset
24993
24994  blocks.
24995  See 
24996 \begin_inset CommandInset ref
24997 LatexCommand ref
24998 reference "subsec:Citation-format-description"
24999
25000 \end_inset
25001
25002  for the details.
25003 \end_layout
25004
25005 \begin_layout Subsection
25006 \SpecialChar LyX
25007 -generated CSS
25008 \end_layout
25009
25010 \begin_layout Standard
25011 We have several times mentioned that \SpecialChar LyX
25012  will generate default CSS style rules
25013  for both insets and paragraph styles, based upon the other layout information
25014  that is provided.
25015  In this section, we shall say a word about which layout information \SpecialChar LyX
25016  uses
25017  and how.
25018 \end_layout
25019
25020 \begin_layout Standard
25021 At present, \SpecialChar LyX
25022  auto-generates CSS only for font information, making use of
25023  the 
25024 \begin_inset Flex Code
25025 status collapsed
25026
25027 \begin_layout Plain Layout
25028 Family
25029 \end_layout
25030
25031 \end_inset
25032
25033
25034 \begin_inset Flex Code
25035 status collapsed
25036
25037 \begin_layout Plain Layout
25038 Series
25039 \end_layout
25040
25041 \end_inset
25042
25043
25044 \begin_inset Flex Code
25045 status collapsed
25046
25047 \begin_layout Plain Layout
25048 Shape
25049 \end_layout
25050
25051 \end_inset
25052
25053 , and 
25054 \begin_inset Flex Code
25055 status collapsed
25056
25057 \begin_layout Plain Layout
25058 Size
25059 \end_layout
25060
25061 \end_inset
25062
25063  specified in the 
25064 \begin_inset Flex Code
25065 status collapsed
25066
25067 \begin_layout Plain Layout
25068 Font
25069 \end_layout
25070
25071 \end_inset
25072
25073  declaration (see 
25074 \begin_inset CommandInset ref
25075 LatexCommand ref
25076 reference "subsec:Font-description"
25077
25078 \end_inset
25079
25080 ).
25081  The translation is mostly straightforward and obvious.
25082  For example, 
25083 \begin_inset Quotes eld
25084 \end_inset
25085
25086
25087 \begin_inset Flex Code
25088 status collapsed
25089
25090 \begin_layout Plain Layout
25091 Family Sans
25092 \end_layout
25093
25094 \end_inset
25095
25096
25097 \begin_inset Quotes erd
25098 \end_inset
25099
25100  becomes 
25101 \begin_inset Quotes eld
25102 \end_inset
25103
25104
25105 \begin_inset Flex Code
25106 status collapsed
25107
25108 \begin_layout Plain Layout
25109 font-family: sans-serif;
25110 \end_layout
25111
25112 \end_inset
25113
25114
25115 \begin_inset Quotes erd
25116 \end_inset
25117
25118 .
25119  The correspondence of \SpecialChar LyX
25120  sizes and CSS sizes is a little less obvious but
25121  nonetheless intuitive.
25122  See the 
25123 \begin_inset Flex Code
25124 status collapsed
25125
25126 \begin_layout Plain Layout
25127 getSizeCSS()
25128 \end_layout
25129
25130 \end_inset
25131
25132  function in 
25133 \begin_inset Flex URL
25134 status collapsed
25135
25136 \begin_layout Plain Layout
25137
25138 src/FontInfo.cpp
25139 \end_layout
25140
25141 \end_inset
25142
25143  for the details.
25144 \end_layout
25145
25146 \begin_layout Chapter
25147 Including External Material
25148 \begin_inset CommandInset label
25149 LatexCommand label
25150 name "chap:Including-External-Material"
25151
25152 \end_inset
25153
25154
25155 \end_layout
25156
25157 \begin_layout Standard
25158 \begin_inset Box Shadowbox
25159 position "t"
25160 hor_pos "c"
25161 has_inner_box 1
25162 inner_pos "t"
25163 use_parbox 0
25164 use_makebox 0
25165 width "100col%"
25166 special "none"
25167 height "1in"
25168 height_special "totalheight"
25169 thickness "0.4pt"
25170 separation "3pt"
25171 shadowsize "4pt"
25172 framecolor "black"
25173 backgroundcolor "none"
25174 status open
25175
25176 \begin_layout Plain Layout
25177 WARNING: This portion of the documentation has not been updated for some
25178  time.
25179  We certainly hope that it is still accurate, but there are no guarantees.
25180 \end_layout
25181
25182 \end_inset
25183
25184
25185 \end_layout
25186
25187 \begin_layout Standard
25188 The use of material from sources external to \SpecialChar LyX
25189  is covered in detail in the
25190  
25191 \emph on
25192 Embedded Objects
25193 \emph default
25194  manual.
25195  This part of the manual covers what needs to happen behind the scenes for
25196  new sorts of material to be included.
25197 \end_layout
25198
25199 \begin_layout Section
25200 How does it work?
25201 \end_layout
25202
25203 \begin_layout Standard
25204 The external material feature is based on the concept of a 
25205 \emph on
25206 template
25207 \emph default
25208 .
25209  A template is a specification of how \SpecialChar LyX
25210  should interface with a certain kind
25211  of material.
25212  As bundled, \SpecialChar LyX
25213  comes with predefined templates for Xfig figures, various
25214  raster format images, chess diagrams, and LilyPond music notation.
25215  You can check the actual list by using the menu 
25216 \begin_inset Flex Noun
25217 status collapsed
25218
25219 \begin_layout Plain Layout
25220 Insert\SpecialChar menuseparator
25221 File\SpecialChar menuseparator
25222 External Material
25223 \end_layout
25224
25225 \end_inset
25226
25227 .
25228  Furthermore, it is possible to roll your own template to support a specific
25229  kind of material.
25230  Later we'll describe in more detail what is involved, and hopefully you
25231  will submit all the templates you create so we can include them in a later
25232  \SpecialChar LyX
25233  version.
25234 \end_layout
25235
25236 \begin_layout Standard
25237 Another basic idea of the external material feature is to distinguish between
25238  the original file that serves as a base for final material and the produced
25239  file that is included in your exported or printed document.
25240  For example, consider the case of a figure produced with 
25241 \begin_inset Flex Code
25242 status collapsed
25243
25244 \begin_layout Plain Layout
25245 Xfig
25246 \end_layout
25247
25248 \end_inset
25249
25250 .
25251  The Xfig application itself works on an original file with the 
25252 \begin_inset Flex Code
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 .fig
25257 \end_layout
25258
25259 \end_inset
25260
25261  extension.
25262  Within Xfig, you create and change your figure, and when you are done,
25263  you save the 
25264 \begin_inset Flex Code
25265 status collapsed
25266
25267 \begin_layout Plain Layout
25268 fig
25269 \end_layout
25270
25271 \end_inset
25272
25273 -file.
25274  When you want to include the figure in your document, you invoke 
25275 \begin_inset Flex Code
25276 status collapsed
25277
25278 \begin_layout Plain Layout
25279 transfig
25280 \end_layout
25281
25282 \end_inset
25283
25284  in order to create a PostScript file that can readily be included in your
25285  \SpecialChar LaTeX
25286  file.
25287  In this case, the 
25288 \begin_inset Flex Code
25289 status collapsed
25290
25291 \begin_layout Plain Layout
25292 .fig
25293 \end_layout
25294
25295 \end_inset
25296
25297  file is the original file, and the PostScript file is the produced file.
25298 \end_layout
25299
25300 \begin_layout Standard
25301 This distinction is important in order to allow updating of the material
25302  while you are in the process of writing the document.
25303  Furthermore, it provides us with the flexibility that is needed to support
25304  multiple export formats.
25305  For instance, in the case of a plain text file, it is not exactly an award-winn
25306 ing idea to include the figure as raw PostScript.
25307  Instead, you would either prefer to just include a reference to the figure
25308  or try to invoke some graphics to ASCII converter to make the final result
25309  look similar to the real graphics.
25310  The external material management allows you to do this, because it is parametri
25311 zed on the different export formats that \SpecialChar LyX
25312  supports.
25313 \end_layout
25314
25315 \begin_layout Standard
25316 Besides supporting the production of different products according to the
25317  exported format, it supports tight integration with editing and viewing
25318  applications.
25319  In the case of an Xfig figure, you are able to invoke Xfig on the original
25320  file with a single click from within the external material dialog in \SpecialChar LyX
25321 ,
25322  and also preview the produced PostScript file with Ghostview with another
25323  click.
25324  No more fiddling around with the command line and/or file browsers to locate
25325  and manipulate the original or produced files.
25326  In this way, you are finally able to take full advantage of the many different
25327  applications that are relevant to use when you write your documents, and
25328  ultimately be more productive.
25329 \end_layout
25330
25331 \begin_layout Section
25332 The external template configuration files
25333 \end_layout
25334
25335 \begin_layout Standard
25336 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25337 .
25338  However, be aware that doing this in an careless manner most probably 
25339 \emph on
25340 will
25341 \emph default
25342  introduce an easily exploitable security hole.
25343  So before you do this, please read the discussion about security in 
25344 \begin_inset CommandInset ref
25345 LatexCommand ref
25346 reference "sec:Security-discussion"
25347
25348 \end_inset
25349
25350 .
25351 \end_layout
25352
25353 \begin_layout Standard
25354 Having said that, we encourage you to submit any interesting templates that
25355  you create.
25356  
25357 \end_layout
25358
25359 \begin_layout Standard
25360 The external templates are defined in the 
25361 \begin_inset Flex Code
25362 status collapsed
25363
25364 \begin_layout Plain Layout
25365 *.xtemplate
25366 \end_layout
25367
25368 \end_inset
25369
25370  files that are stored in the 
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 LyXDir/lib/xtemplates/
25376 \end_layout
25377
25378 \end_inset
25379
25380  directory.
25381  Each template is defined in a file of its own.
25382  You can place your own templates in 
25383 \begin_inset Flex Code
25384 status collapsed
25385
25386 \begin_layout Plain Layout
25387 UserDir/xtemplates/
25388 \end_layout
25389
25390 \end_inset
25391
25392  or copy existing templates to that directory in order to modify them.
25393 \end_layout
25394
25395 \begin_layout Standard
25396 A typical template looks like this:
25397 \end_layout
25398
25399 \begin_layout LyX-Code
25400 Template XFig
25401 \end_layout
25402
25403 \begin_layout LyX-Code
25404 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25405 \end_layout
25406
25407 \begin_layout LyX-Code
25408 HelpText
25409 \end_layout
25410
25411 \begin_layout LyX-Code
25412 An XFig figure.
25413 \end_layout
25414
25415 \begin_layout LyX-Code
25416 HelpTextEnd
25417 \end_layout
25418
25419 \begin_layout LyX-Code
25420 InputFormat fig
25421 \end_layout
25422
25423 \begin_layout LyX-Code
25424 FileFilter "*.fig"
25425 \end_layout
25426
25427 \begin_layout LyX-Code
25428 AutomaticProduction true
25429 \end_layout
25430
25431 \begin_layout LyX-Code
25432 Transform Rotate
25433 \end_layout
25434
25435 \begin_layout LyX-Code
25436 Transform Resize
25437 \end_layout
25438
25439 \begin_layout LyX-Code
25440 Format LaTeX
25441 \end_layout
25442
25443 \begin_layout LyX-Code
25444 TransformCommand Rotate RotationLatexCommand
25445 \end_layout
25446
25447 \begin_layout LyX-Code
25448 TransformCommand Resize ResizeLatexCommand
25449 \end_layout
25450
25451 \begin_layout LyX-Code
25452 Product "$$RotateFront$$ResizeFront
25453 \end_layout
25454
25455 \begin_layout LyX-Code
25456          
25457 \backslash
25458
25459 \backslash
25460 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25461 \end_layout
25462
25463 \begin_layout LyX-Code
25464          $$ResizeBack$$RotateBack"
25465 \end_layout
25466
25467 \begin_layout LyX-Code
25468 UpdateFormat pstex
25469 \end_layout
25470
25471 \begin_layout LyX-Code
25472 UpdateResult "$$AbsPath$$Basename.pstex_t"
25473 \end_layout
25474
25475 \begin_layout LyX-Code
25476 Requirement "graphicx"
25477 \end_layout
25478
25479 \begin_layout LyX-Code
25480 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25481 \end_layout
25482
25483 \begin_layout LyX-Code
25484 ReferencedFile latex "$$AbsPath$$Basename.eps"
25485 \end_layout
25486
25487 \begin_layout LyX-Code
25488 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25489 \end_layout
25490
25491 \begin_layout LyX-Code
25492 FormatEnd
25493 \end_layout
25494
25495 \begin_layout LyX-Code
25496 Format PDFLaTeX
25497 \end_layout
25498
25499 \begin_layout LyX-Code
25500 TransformCommand Rotate RotationLatexCommand
25501 \end_layout
25502
25503 \begin_layout LyX-Code
25504 TransformCommand Resize ResizeLatexCommand
25505 \end_layout
25506
25507 \begin_layout LyX-Code
25508 Product "$$RotateFront$$ResizeFront
25509 \end_layout
25510
25511 \begin_layout LyX-Code
25512          
25513 \backslash
25514
25515 \backslash
25516 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25517 \end_layout
25518
25519 \begin_layout LyX-Code
25520          $$ResizeBack$$RotateBack"
25521 \end_layout
25522
25523 \begin_layout LyX-Code
25524 UpdateFormat pdftex
25525 \end_layout
25526
25527 \begin_layout LyX-Code
25528 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25529 \end_layout
25530
25531 \begin_layout LyX-Code
25532 Requirement "graphicx"
25533 \end_layout
25534
25535 \begin_layout LyX-Code
25536 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25537 \end_layout
25538
25539 \begin_layout LyX-Code
25540 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25541 \end_layout
25542
25543 \begin_layout LyX-Code
25544 FormatEnd
25545 \end_layout
25546
25547 \begin_layout LyX-Code
25548 Format Ascii
25549 \end_layout
25550
25551 \begin_layout LyX-Code
25552 Product "[XFig: $$FName]"
25553 \end_layout
25554
25555 \begin_layout LyX-Code
25556 FormatEnd
25557 \end_layout
25558
25559 \begin_layout LyX-Code
25560 Format DocBook
25561 \end_layout
25562
25563 \begin_layout LyX-Code
25564 Product "<graphic fileref=
25565 \backslash
25566 "$$AbsOrRelPathMaster$$Basename.eps
25567 \backslash
25568 ">
25569 \end_layout
25570
25571 \begin_layout LyX-Code
25572          </graphic>"
25573 \end_layout
25574
25575 \begin_layout LyX-Code
25576 UpdateFormat eps
25577 \end_layout
25578
25579 \begin_layout LyX-Code
25580 UpdateResult "$$AbsPath$$Basename.eps"
25581 \end_layout
25582
25583 \begin_layout LyX-Code
25584 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25585 \end_layout
25586
25587 \begin_layout LyX-Code
25588 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25589 \end_layout
25590
25591 \begin_layout LyX-Code
25592 FormatEnd
25593 \end_layout
25594
25595 \begin_layout LyX-Code
25596 TemplateEnd
25597 \end_layout
25598
25599 \begin_layout Standard
25600 As you can see, the template is enclosed in 
25601 \begin_inset Flex Code
25602 status collapsed
25603
25604 \begin_layout Plain Layout
25605 Template
25606 \end_layout
25607
25608 \end_inset
25609
25610  \SpecialChar ldots
25611  
25612 \begin_inset Flex Code
25613 status collapsed
25614
25615 \begin_layout Plain Layout
25616 TemplateEnd
25617 \end_layout
25618
25619 \end_inset
25620
25621 .
25622  It contains a header specifying some general settings and, for each supported
25623  primary document file format, a section 
25624 \begin_inset Flex Code
25625 status collapsed
25626
25627 \begin_layout Plain Layout
25628 Format
25629 \end_layout
25630
25631 \end_inset
25632
25633  \SpecialChar ldots
25634  
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 FormatEnd
25640 \end_layout
25641
25642 \end_inset
25643
25644 .
25645 \end_layout
25646
25647 \begin_layout Subsection
25648 The template header
25649 \end_layout
25650
25651 \begin_layout Description
25652 \begin_inset Flex Code
25653 status collapsed
25654
25655 \begin_layout Plain Layout
25656 AutomaticProduction
25657 \begin_inset space ~
25658 \end_inset
25659
25660 true|false
25661 \end_layout
25662
25663 \end_inset
25664
25665  Whether the file represented by the template must be generated by \SpecialChar LyX
25666 .
25667  This command must occur exactly once.
25668 \end_layout
25669
25670 \begin_layout Description
25671 \begin_inset Flex Code
25672 status collapsed
25673
25674 \begin_layout Plain Layout
25675 FileFilter
25676 \begin_inset space ~
25677 \end_inset
25678
25679 <pattern>
25680 \end_layout
25681
25682 \end_inset
25683
25684  A glob pattern that is used in the file dialog to filter out the desired
25685  files.
25686  If there is more than one possible file extension (e.
25687 \begin_inset space \thinspace{}
25688 \end_inset
25689
25690 g.
25691 \begin_inset space \space{}
25692 \end_inset
25693
25694 tgif has 
25695 \begin_inset Flex Code
25696 status collapsed
25697
25698 \begin_layout Plain Layout
25699 .obj
25700 \end_layout
25701
25702 \end_inset
25703
25704  and 
25705 \begin_inset Flex Code
25706 status collapsed
25707
25708 \begin_layout Plain Layout
25709 .tgo
25710 \end_layout
25711
25712 \end_inset
25713
25714 ), use something like 
25715 \begin_inset Flex Code
25716 status collapsed
25717
25718 \begin_layout Plain Layout
25719 "*.{obj,tgo}"
25720 \end_layout
25721
25722 \end_inset
25723
25724 .
25725  This command must occur exactly once.
25726 \end_layout
25727
25728 \begin_layout Description
25729 \begin_inset Flex Code
25730 status collapsed
25731
25732 \begin_layout Plain Layout
25733 GuiName
25734 \begin_inset space ~
25735 \end_inset
25736
25737 <guiname>
25738 \end_layout
25739
25740 \end_inset
25741
25742  The text that is displayed on the button.
25743  This command must occur exactly once.
25744 \end_layout
25745
25746 \begin_layout Description
25747 \begin_inset Flex Code
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751 HelpText
25752 \begin_inset space ~
25753 \end_inset
25754
25755 <text>
25756 \begin_inset space ~
25757 \end_inset
25758
25759 HelpTextEnd
25760 \end_layout
25761
25762 \end_inset
25763
25764  The help text that is used in the External dialog.
25765  Provide enough information to explain to the user just what the template
25766  can provide him with.
25767  This command must occur exactly once.
25768 \end_layout
25769
25770 \begin_layout Description
25771 \begin_inset Flex Code
25772 status collapsed
25773
25774 \begin_layout Plain Layout
25775 InputFormat
25776 \begin_inset space ~
25777 \end_inset
25778
25779 <format>
25780 \end_layout
25781
25782 \end_inset
25783
25784  The file format of the original file.
25785  This must be the name of a format that is known to \SpecialChar LyX
25786  (see 
25787 \begin_inset CommandInset ref
25788 LatexCommand ref
25789 reference "sec:Formats"
25790
25791 \end_inset
25792
25793 ).
25794  Use 
25795 \begin_inset Quotes eld
25796 \end_inset
25797
25798
25799 \begin_inset Flex Code
25800 status collapsed
25801
25802 \begin_layout Plain Layout
25803 *
25804 \end_layout
25805
25806 \end_inset
25807
25808
25809 \begin_inset Quotes erd
25810 \end_inset
25811
25812  if the template can handle original files of more than one format.
25813  \SpecialChar LyX
25814  will attempt to interrogate the file itself in order to deduce its format
25815  in this case.
25816  This command must occur exactly once.
25817 \end_layout
25818
25819 \begin_layout Description
25820 \begin_inset Flex Code
25821 status collapsed
25822
25823 \begin_layout Plain Layout
25824 Template
25825 \begin_inset space ~
25826 \end_inset
25827
25828 <id>
25829 \end_layout
25830
25831 \end_inset
25832
25833  A unique name for the template.
25834  It must not contain substitution macros (see below).
25835 \end_layout
25836
25837 \begin_layout Description
25838 \begin_inset Flex Code
25839 status collapsed
25840
25841 \begin_layout Plain Layout
25842 Transform
25843 \begin_inset space ~
25844 \end_inset
25845
25846 Rotate|Resize|Clip|Extra
25847 \end_layout
25848
25849 \end_inset
25850
25851  This command specifies which transformations are supported by this template.
25852  It may occur zero or more times.
25853  This command enables the corresponding tabs in the external dialog.
25854  Each 
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 Transform
25860 \end_layout
25861
25862 \end_inset
25863
25864  command must have either a corresponding 
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 TransformCommand
25870 \end_layout
25871
25872 \end_inset
25873
25874  or a 
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 TransformOption
25880 \end_layout
25881
25882 \end_inset
25883
25884  command in the 
25885 \begin_inset Flex Code
25886 status collapsed
25887
25888 \begin_layout Plain Layout
25889 Format
25890 \end_layout
25891
25892 \end_inset
25893
25894  section.
25895  Otherwise the transformation will not be supported by that format.
25896 \end_layout
25897
25898 \begin_layout Subsection
25899 The Format section
25900 \end_layout
25901
25902 \begin_layout Description
25903 \begin_inset Flex Code
25904 status collapsed
25905
25906 \begin_layout Plain Layout
25907 Format
25908 \begin_inset space ~
25909 \end_inset
25910
25911 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25912 \end_layout
25913
25914 \end_inset
25915
25916  The primary document file format that this format definition is for.
25917  Not every template has a sensible representation in all document file formats.
25918  Please define nevertheless a 
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 Format
25924 \end_layout
25925
25926 \end_inset
25927
25928  section for all templates.
25929  Use a dummy text when no representation is available.
25930  Then you can at least see a reference to the external material in the exported
25931  document.
25932 \end_layout
25933
25934 \begin_layout Description
25935 \begin_inset Flex Code
25936 status collapsed
25937
25938 \begin_layout Plain Layout
25939 Option
25940 \begin_inset space ~
25941 \end_inset
25942
25943 <name>
25944 \begin_inset space ~
25945 \end_inset
25946
25947 <value>
25948 \end_layout
25949
25950 \end_inset
25951
25952  This command defines an additional macro 
25953 \begin_inset Flex Code
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957 $$<name>
25958 \end_layout
25959
25960 \end_inset
25961
25962  for substitution in 
25963 \begin_inset Flex Code
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 Product
25968 \end_layout
25969
25970 \end_inset
25971
25972 .
25973  
25974 \begin_inset Flex Code
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978 <value>
25979 \end_layout
25980
25981 \end_inset
25982
25983  itself may contain substitution macros.
25984  The advantage over using 
25985 \begin_inset Flex Code
25986 status collapsed
25987
25988 \begin_layout Plain Layout
25989 <value>
25990 \end_layout
25991
25992 \end_inset
25993
25994  directly in 
25995 \begin_inset Flex Code
25996 status collapsed
25997
25998 \begin_layout Plain Layout
25999 Product
26000 \end_layout
26001
26002 \end_inset
26003
26004  is that the substituted value of 
26005 \begin_inset Flex Code
26006 status collapsed
26007
26008 \begin_layout Plain Layout
26009 $$<name>
26010 \end_layout
26011
26012 \end_inset
26013
26014  is sanitized so that it is a valid optional argument in the document format.
26015  This command may occur zero or more times.
26016 \end_layout
26017
26018 \begin_layout Description
26019 \begin_inset Flex Code
26020 status collapsed
26021
26022 \begin_layout Plain Layout
26023 Product
26024 \begin_inset space ~
26025 \end_inset
26026
26027 <text>
26028 \end_layout
26029
26030 \end_inset
26031
26032  The text that is inserted in the exported document.
26033  This is actually the most important command and can be quite complex.
26034  This command must occur exactly once.
26035 \end_layout
26036
26037 \begin_layout Description
26038 \begin_inset Flex Code
26039 status collapsed
26040
26041 \begin_layout Plain Layout
26042 Preamble
26043 \begin_inset space ~
26044 \end_inset
26045
26046 <name>
26047 \end_layout
26048
26049 \end_inset
26050
26051  This command specifies a preamble snippet that will be included in the
26052  \SpecialChar LaTeX
26053  preamble.
26054  It has to be defined using 
26055 \begin_inset Flex Code
26056 status collapsed
26057
26058 \begin_layout Plain Layout
26059 PreambleDef
26060 \end_layout
26061
26062 \end_inset
26063
26064  \SpecialChar ldots
26065  
26066 \begin_inset Flex Code
26067 status collapsed
26068
26069 \begin_layout Plain Layout
26070 PreambleDefEnd
26071 \end_layout
26072
26073 \end_inset
26074
26075 .
26076  This command may occur zero or more times.
26077 \end_layout
26078
26079 \begin_layout Description
26080 \begin_inset Flex Code
26081 status collapsed
26082
26083 \begin_layout Plain Layout
26084 ReferencedFile
26085 \begin_inset space ~
26086 \end_inset
26087
26088 <format>
26089 \begin_inset space ~
26090 \end_inset
26091
26092 <filename>
26093 \end_layout
26094
26095 \end_inset
26096
26097  This command denotes files that are created by the conversion process and
26098  are needed for a particular export format.
26099  If the filename is relative, it is interpreted relative to the master document.
26100  This command may be given zero or more times.
26101 \end_layout
26102
26103 \begin_layout Description
26104 \begin_inset Flex Code
26105 status collapsed
26106
26107 \begin_layout Plain Layout
26108 Requirement
26109 \begin_inset space ~
26110 \end_inset
26111
26112 <package>
26113 \end_layout
26114
26115 \end_inset
26116
26117  The name of a required \SpecialChar LaTeX
26118  package.
26119  The package is included via 
26120 \begin_inset Flex Code
26121 status collapsed
26122
26123 \begin_layout Plain Layout
26124
26125 \backslash
26126 usepackage{}
26127 \end_layout
26128
26129 \end_inset
26130
26131  in the \SpecialChar LaTeX
26132  preamble.
26133  This command may occur zero or more times.
26134 \end_layout
26135
26136 \begin_layout Description
26137 \begin_inset Flex Code
26138 status collapsed
26139
26140 \begin_layout Plain Layout
26141 TransformCommand
26142 \begin_inset space ~
26143 \end_inset
26144
26145 Rotate
26146 \begin_inset space ~
26147 \end_inset
26148
26149 RotationLatexCommand
26150 \end_layout
26151
26152 \end_inset
26153
26154  This command specifies that the built in \SpecialChar LaTeX
26155  command should be used for rotation.
26156  This command may occur once or not at all.
26157 \end_layout
26158
26159 \begin_layout Description
26160 \begin_inset Flex Code
26161 status collapsed
26162
26163 \begin_layout Plain Layout
26164 TransformCommand
26165 \begin_inset space ~
26166 \end_inset
26167
26168 Resize
26169 \begin_inset space ~
26170 \end_inset
26171
26172 ResizeLatexCommand
26173 \end_layout
26174
26175 \end_inset
26176
26177  This command specifies that the built in \SpecialChar LaTeX
26178  command should be used for resizing.
26179  This command may occur once or not at all.
26180 \end_layout
26181
26182 \begin_layout Description
26183 \begin_inset Flex Code
26184 status collapsed
26185
26186 \begin_layout Plain Layout
26187 TransformOption
26188 \begin_inset space ~
26189 \end_inset
26190
26191 Rotate
26192 \begin_inset space ~
26193 \end_inset
26194
26195 RotationLatexOption
26196 \end_layout
26197
26198 \end_inset
26199
26200  This command specifies that rotation is done via an optional argument.
26201  This command may occur once or not at all.
26202 \end_layout
26203
26204 \begin_layout Description
26205 \begin_inset Flex Code
26206 status collapsed
26207
26208 \begin_layout Plain Layout
26209 TransformOption
26210 \begin_inset space ~
26211 \end_inset
26212
26213 Resize
26214 \begin_inset space ~
26215 \end_inset
26216
26217 ResizeLatexOption
26218 \end_layout
26219
26220 \end_inset
26221
26222  This command specifies that resizing is done via an optional argument.
26223  This command may occur once or not at all.
26224 \end_layout
26225
26226 \begin_layout Description
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 TransformOption
26232 \begin_inset space ~
26233 \end_inset
26234
26235 Clip
26236 \begin_inset space ~
26237 \end_inset
26238
26239 ClipLatexOption
26240 \end_layout
26241
26242 \end_inset
26243
26244  This command specifies that clipping is done via an optional argument.
26245  This command may occur once or not at all.
26246 \end_layout
26247
26248 \begin_layout Description
26249 \begin_inset Flex Code
26250 status collapsed
26251
26252 \begin_layout Plain Layout
26253 TransformOption
26254 \begin_inset space ~
26255 \end_inset
26256
26257 Extra
26258 \begin_inset space ~
26259 \end_inset
26260
26261 ExtraLatexOption
26262 \end_layout
26263
26264 \end_inset
26265
26266  This command specifies that an extra optional argument is used.
26267  This command may occur once or not at all.
26268 \end_layout
26269
26270 \begin_layout Description
26271 \begin_inset Flex Code
26272 status collapsed
26273
26274 \begin_layout Plain Layout
26275 UpdateFormat
26276 \begin_inset space ~
26277 \end_inset
26278
26279 <format>
26280 \end_layout
26281
26282 \end_inset
26283
26284  The file format of the converted file.
26285  This must be the name of a format that is known to \SpecialChar LyX
26286  (see the 
26287 \begin_inset Flex Noun
26288 status collapsed
26289
26290 \begin_layout Plain Layout
26291 Tools\SpecialChar menuseparator
26292 Preferences\SpecialChar menuseparator
26293 File Handling\SpecialChar menuseparator
26294 File Format
26295 \end_layout
26296
26297 \end_inset
26298
26299  dialog).
26300  This command must occur exactly once.
26301  If the resulting file format is PDF, you need to specify the format 
26302 \begin_inset Flex Code
26303 status collapsed
26304
26305 \begin_layout Plain Layout
26306 pdf6
26307 \end_layout
26308
26309 \end_inset
26310
26311 .
26312  This is the PDF format used for including graphics.
26313  The other defined PDF formats are for document export.
26314 \end_layout
26315
26316 \begin_layout Description
26317 \begin_inset Flex Code
26318 status collapsed
26319
26320 \begin_layout Plain Layout
26321 UpdateResult
26322 \begin_inset space ~
26323 \end_inset
26324
26325 <filename>
26326 \end_layout
26327
26328 \end_inset
26329
26330  The file name of the converted file.
26331  The file name must be absolute.
26332  This command must occur exactly once.
26333 \end_layout
26334
26335 \begin_layout Subsection
26336 Preamble definitions
26337 \end_layout
26338
26339 \begin_layout Standard
26340 The external template configuration file may contain additional preamble
26341  definitions enclosed by 
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 PreambleDef
26347 \end_layout
26348
26349 \end_inset
26350
26351  \SpecialChar ldots
26352  
26353 \begin_inset Flex Code
26354 status collapsed
26355
26356 \begin_layout Plain Layout
26357 PreambleDefEnd
26358 \end_layout
26359
26360 \end_inset
26361
26362 .
26363  They can be used by the templates in the 
26364 \begin_inset Flex Code
26365 status collapsed
26366
26367 \begin_layout Plain Layout
26368 Format
26369 \end_layout
26370
26371 \end_inset
26372
26373  section.
26374 \end_layout
26375
26376 \begin_layout Section
26377 The substitution mechanism
26378 \end_layout
26379
26380 \begin_layout Standard
26381 When the external material facility invokes an external program, it is done
26382  on the basis of a command defined in the template configuration file.
26383  These commands can contain various macros that are expanded before execution.
26384  Execution always take place in the directory of the containing document.
26385 \end_layout
26386
26387 \begin_layout Standard
26388 Also, whenever external material is to be displayed, the name will be produced
26389  by the substitution mechanism, and most other commands in the template
26390  definition support substitution as well.
26391 \end_layout
26392
26393 \begin_layout Standard
26394 The available macros are the following:
26395 \end_layout
26396
26397 \begin_layout Description
26398 \begin_inset Flex Code
26399 status collapsed
26400
26401 \begin_layout Plain Layout
26402 $$AbsOrRelPathMaster
26403 \end_layout
26404
26405 \end_inset
26406
26407  The file path, absolute or relative to the master \SpecialChar LyX
26408  document.
26409 \end_layout
26410
26411 \begin_layout Description
26412 \begin_inset Flex Code
26413 status collapsed
26414
26415 \begin_layout Plain Layout
26416 $$AbsOrRelPathParent
26417 \end_layout
26418
26419 \end_inset
26420
26421  The file path, absolute or relative to the \SpecialChar LyX
26422  document.
26423 \end_layout
26424
26425 \begin_layout Description
26426 \begin_inset Flex Code
26427 status collapsed
26428
26429 \begin_layout Plain Layout
26430 $$AbsPath
26431 \end_layout
26432
26433 \end_inset
26434
26435  The absolute file path.
26436 \end_layout
26437
26438 \begin_layout Description
26439 \begin_inset Flex Code
26440 status collapsed
26441
26442 \begin_layout Plain Layout
26443 $$Basename
26444 \end_layout
26445
26446 \end_inset
26447
26448  The filename without path and without the extension.
26449 \end_layout
26450
26451 \begin_layout Description
26452 \begin_inset Flex Code
26453 status collapsed
26454
26455 \begin_layout Plain Layout
26456 $$Contents(
26457 \begin_inset Quotes eld
26458 \end_inset
26459
26460 filename.ext
26461 \begin_inset Quotes erd
26462 \end_inset
26463
26464 )
26465 \end_layout
26466
26467 \end_inset
26468
26469  This macro will expand to the contents of the file with the name 
26470 \begin_inset Flex Code
26471 status collapsed
26472
26473 \begin_layout Plain Layout
26474 filename.ext
26475 \end_layout
26476
26477 \end_inset
26478
26479 .
26480 \end_layout
26481
26482 \begin_layout Description
26483 \begin_inset Flex Code
26484 status collapsed
26485
26486 \begin_layout Plain Layout
26487 $$Extension
26488 \end_layout
26489
26490 \end_inset
26491
26492  The file extension (including the dot).
26493 \end_layout
26494
26495 \begin_layout Description
26496 \begin_inset Flex Code
26497 status collapsed
26498
26499 \begin_layout Plain Layout
26500 $$pngOrjpg
26501 \end_layout
26502
26503 \end_inset
26504
26505  This will be the string 
26506 \begin_inset Quotes eld
26507 \end_inset
26508
26509 jpg
26510 \begin_inset Quotes erd
26511 \end_inset
26512
26513  if the file is in JPEG format, otherwise it will be the string 
26514 \begin_inset Quotes eld
26515 \end_inset
26516
26517 png
26518 \begin_inset Quotes erd
26519 \end_inset
26520
26521 .
26522  This is useful to avoid uneeded conversions for output formats that support
26523  both PNG and JPEG fomats.
26524  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26525  output
26526  format.
26527 \end_layout
26528
26529 \begin_layout Description
26530 \begin_inset Flex Code
26531 status collapsed
26532
26533 \begin_layout Plain Layout
26534 $$FName
26535 \end_layout
26536
26537 \end_inset
26538
26539  The filename of the file specified in the external material dialog.
26540  This is either an absolute name, or it is relative to the \SpecialChar LyX
26541  document.
26542 \end_layout
26543
26544 \begin_layout Description
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549 $$FPath
26550 \end_layout
26551
26552 \end_inset
26553
26554  The path part of 
26555 \begin_inset Flex Code
26556 status collapsed
26557
26558 \begin_layout Plain Layout
26559 $$FName
26560 \end_layout
26561
26562 \end_inset
26563
26564  (absolute name or relative to the \SpecialChar LyX
26565  document).
26566 \end_layout
26567
26568 \begin_layout Description
26569 \begin_inset Flex Code
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 $$RelPathMaster
26574 \end_layout
26575
26576 \end_inset
26577
26578  The file path, relative to the master \SpecialChar LyX
26579  document.
26580 \end_layout
26581
26582 \begin_layout Description
26583 \begin_inset Flex Code
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 $$RelPathParent
26588 \end_layout
26589
26590 \end_inset
26591
26592  The file path, relative to the \SpecialChar LyX
26593  document.
26594 \end_layout
26595
26596 \begin_layout Description
26597 \begin_inset Flex Code
26598 status collapsed
26599
26600 \begin_layout Plain Layout
26601 $$Sysdir
26602 \end_layout
26603
26604 \end_inset
26605
26606  This macro will expand to the absolute path of the system directory.
26607  This is typically used to point to the various helper scripts that are
26608  bundled with \SpecialChar LyX
26609 .
26610 \end_layout
26611
26612 \begin_layout Description
26613 \begin_inset Flex Code
26614 status collapsed
26615
26616 \begin_layout Plain Layout
26617 $$Tempname
26618 \end_layout
26619
26620 \end_inset
26621
26622  A name and full path to a temporary file which will be automatically deleted
26623  whenever the containing document is closed, or the external material insertion
26624  deleted.
26625 \end_layout
26626
26627 \begin_layout Standard
26628 All path macros contain a trailing directory separator, so you can construct
26629  e.
26630 \begin_inset space \thinspace{}
26631 \end_inset
26632
26633 g.
26634 \begin_inset space \space{}
26635 \end_inset
26636
26637 the absolute filename with 
26638 \begin_inset Flex Code
26639 status collapsed
26640
26641 \begin_layout Plain Layout
26642 $$AbsPath$$Basename$$Extension
26643 \end_layout
26644
26645 \end_inset
26646
26647 .
26648 \end_layout
26649
26650 \begin_layout Standard
26651 The macros above are substituted in all commands unless otherwise noted.
26652  The command 
26653 \begin_inset Flex Code
26654 status collapsed
26655
26656 \begin_layout Plain Layout
26657 Product
26658 \end_layout
26659
26660 \end_inset
26661
26662  supports additionally the following substitutions if they are enabled by
26663  the 
26664 \begin_inset Flex Code
26665 status collapsed
26666
26667 \begin_layout Plain Layout
26668 Transform
26669 \end_layout
26670
26671 \end_inset
26672
26673  and 
26674 \begin_inset Flex Code
26675 status collapsed
26676
26677 \begin_layout Plain Layout
26678 TransformCommand
26679 \end_layout
26680
26681 \end_inset
26682
26683  commands:
26684 \end_layout
26685
26686 \begin_layout Description
26687 \begin_inset Flex Code
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691 $$ResizeFront
26692 \end_layout
26693
26694 \end_inset
26695
26696  The front part of the resize command.
26697 \end_layout
26698
26699 \begin_layout Description
26700 \begin_inset Flex Code
26701 status collapsed
26702
26703 \begin_layout Plain Layout
26704 $$ResizeBack
26705 \end_layout
26706
26707 \end_inset
26708
26709  The back part of the resize command.
26710 \end_layout
26711
26712 \begin_layout Description
26713 \begin_inset Flex Code
26714 status collapsed
26715
26716 \begin_layout Plain Layout
26717 $$RotateFront
26718 \end_layout
26719
26720 \end_inset
26721
26722  The front part of the rotation command.
26723 \end_layout
26724
26725 \begin_layout Description
26726 \begin_inset Flex Code
26727 status collapsed
26728
26729 \begin_layout Plain Layout
26730 $$RotateBack
26731 \end_layout
26732
26733 \end_inset
26734
26735  The back part of the rotation command.
26736 \end_layout
26737
26738 \begin_layout Standard
26739 The value string of the 
26740 \begin_inset Flex Code
26741 status collapsed
26742
26743 \begin_layout Plain Layout
26744 Option
26745 \end_layout
26746
26747 \end_inset
26748
26749  command supports additionally the following substitutions if they are enabled
26750  by the 
26751 \begin_inset Flex Code
26752 status collapsed
26753
26754 \begin_layout Plain Layout
26755 Transform
26756 \end_layout
26757
26758 \end_inset
26759
26760  and 
26761 \begin_inset Flex Code
26762 status collapsed
26763
26764 \begin_layout Plain Layout
26765 TransformOption
26766 \end_layout
26767
26768 \end_inset
26769
26770  commands:
26771 \end_layout
26772
26773 \begin_layout Description
26774 \begin_inset Flex Code
26775 status collapsed
26776
26777 \begin_layout Plain Layout
26778 $$Clip
26779 \end_layout
26780
26781 \end_inset
26782
26783  The clip option.
26784 \end_layout
26785
26786 \begin_layout Description
26787 \begin_inset Flex Code
26788 status collapsed
26789
26790 \begin_layout Plain Layout
26791 $$Extra
26792 \end_layout
26793
26794 \end_inset
26795
26796  The extra option.
26797 \end_layout
26798
26799 \begin_layout Description
26800 \begin_inset Flex Code
26801 status collapsed
26802
26803 \begin_layout Plain Layout
26804 $$Resize
26805 \end_layout
26806
26807 \end_inset
26808
26809  The resize option.
26810 \end_layout
26811
26812 \begin_layout Description
26813 \begin_inset Flex Code
26814 status collapsed
26815
26816 \begin_layout Plain Layout
26817 $$Rotate
26818 \end_layout
26819
26820 \end_inset
26821
26822  The rotation option.
26823 \end_layout
26824
26825 \begin_layout Standard
26826 You may ask why there are so many path macros.
26827  There are mainly two reasons:
26828 \end_layout
26829
26830 \begin_layout Enumerate
26831 Relative and absolute file names should remain relative or absolute, respectivel
26832 y.
26833  Users may have reasons to prefer either form.
26834  Relative names are useful for portable documents that should work on different
26835  machines, for example.
26836  Absolute names may be required by some programs.
26837 \end_layout
26838
26839 \begin_layout Enumerate
26840 \SpecialChar LaTeX
26841  treats relative file names differently than \SpecialChar LyX
26842  and other programs in nested
26843  included files.
26844  For \SpecialChar LyX
26845 , a relative file name is always relative to the document that contains
26846  the file name.
26847  For \SpecialChar LaTeX
26848 , it is always relative to the master document.
26849  These two definitions are identical if you have only one document, but
26850  differ if you have a master document that includes part documents.
26851  That means that relative filenames must be transformed when presented to
26852  \SpecialChar LaTeX
26853 .
26854  Fortunately \SpecialChar LyX
26855  does this automatically for you if you choose the right macros.
26856 \end_layout
26857
26858 \begin_layout Standard
26859 So which path macro should be used in new template definitions? The rule
26860  is not difficult:
26861 \end_layout
26862
26863 \begin_layout Itemize
26864 Use 
26865 \begin_inset Flex Code
26866 status collapsed
26867
26868 \begin_layout Plain Layout
26869 $$AbsPath
26870 \end_layout
26871
26872 \end_inset
26873
26874  if an absolute path is required.
26875 \end_layout
26876
26877 \begin_layout Itemize
26878 Use 
26879 \begin_inset Flex Code
26880 status collapsed
26881
26882 \begin_layout Plain Layout
26883 $$AbsOrRelPathMaster
26884 \end_layout
26885
26886 \end_inset
26887
26888  if the substituted string is some kind of \SpecialChar LaTeX
26889  input.
26890 \end_layout
26891
26892 \begin_layout Itemize
26893 Else use 
26894 \begin_inset Flex Code
26895 status collapsed
26896
26897 \begin_layout Plain Layout
26898 $$AbsOrRelPathParent
26899 \end_layout
26900
26901 \end_inset
26902
26903  in order to preserve the user's choice.
26904 \end_layout
26905
26906 \begin_layout Standard
26907 There are special cases where this rule does not work and e.
26908 \begin_inset space \thinspace{}
26909 \end_inset
26910
26911 g.
26912 \begin_inset space \space{}
26913 \end_inset
26914
26915 relative names are needed, but normally it will work just fine.
26916  One example for such a case is the command 
26917 \begin_inset Flex Code
26918 status collapsed
26919
26920 \begin_layout Plain Layout
26921 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26922 \end_layout
26923
26924 \end_inset
26925
26926  in the XFig template above: We can't use the absolute name because the
26927  copier for 
26928 \begin_inset Flex Code
26929 status collapsed
26930
26931 \begin_layout Plain Layout
26932 .pstex_t
26933 \end_layout
26934
26935 \end_inset
26936
26937  files needs the relative name in order to rewrite the file content.
26938 \end_layout
26939
26940 \begin_layout Section
26941 Security discussion
26942 \begin_inset CommandInset label
26943 LatexCommand label
26944 name "sec:Security-discussion"
26945
26946 \end_inset
26947
26948
26949 \end_layout
26950
26951 \begin_layout Standard
26952 The external material feature interfaces with a lot of external programs
26953  and does so automatically, so we have to consider the security implications
26954  of this.
26955  In particular, since you have the option of including your own filenames
26956  and/or parameter strings and those are expanded into a command, it seems
26957  that it would be possible to create a malicious document which executes
26958  arbitrary commands when a user views or prints the document.
26959  This is something we definitely want to avoid.
26960 \end_layout
26961
26962 \begin_layout Standard
26963 However, since the external program commands are specified in the template
26964  configuration file only, there are no security issues if \SpecialChar LyX
26965  is properly configure
26966 d with safe templates only.
26967  This is so because the external programs are invoked with the 
26968 \begin_inset Flex Code
26969 status collapsed
26970
26971 \begin_layout Plain Layout
26972 execvp
26973 \end_layout
26974
26975 \end_inset
26976
26977 -system call rather than the 
26978 \begin_inset Flex Code
26979 status collapsed
26980
26981 \begin_layout Plain Layout
26982 system
26983 \end_layout
26984
26985 \end_inset
26986
26987  system-call, so it's not possible to execute arbitrary commands from the
26988  filename or parameter section via the shell.
26989 \end_layout
26990
26991 \begin_layout Standard
26992 This also implies that you are restricted in what command strings you can
26993  use in the external material templates.
26994  In particular, pipes and redirection are not readily available.
26995  This has to be so if \SpecialChar LyX
26996  should remain safe.
26997  If you want to use some of the shell features, you should write a safe
26998  script to do this in a controlled manner, and then invoke the script from
26999  the command string.
27000  
27001 \end_layout
27002
27003 \begin_layout Standard
27004 It is possible to design a template that interacts directly with the shell,
27005  but since this would allow a malicious user to execute arbitrary commands
27006  by writing clever filenames and/or parameters, we generally recommend that
27007  you only use safe scripts that work with the 
27008 \begin_inset Flex Code
27009 status collapsed
27010
27011 \begin_layout Plain Layout
27012 execvp
27013 \end_layout
27014
27015 \end_inset
27016
27017  system call in a controlled manner.
27018  Of course, for use in a controlled environment, it can be tempting to just
27019  fall back to use ordinary shell scripts.
27020  If you do so, be aware that you 
27021 \emph on
27022 will
27023 \emph default
27024  provide an easily exploitable security hole in your system.
27025  Of course it stands to reason that such unsafe templates will never be
27026  included in the standard \SpecialChar LyX
27027  distribution, although we do encourage people
27028  to submit new templates in the open source tradition.
27029  But \SpecialChar LyX
27030  as shipped from the official distribution channels will never have
27031  unsafe templates.
27032 \end_layout
27033
27034 \begin_layout Standard
27035 Including external material provides a lot of power, and you have to be
27036  careful not to introduce security hazards with this power.
27037  A subtle error in a single line in an innocent looking script can open
27038  the door to huge security problems.
27039  So if you do not fully understand the issues, we recommend that you consult
27040  a knowledgeable security professional or the \SpecialChar LyX
27041  development team if you have
27042  any questions about whether a given template is safe or not.
27043  And do this before you use it in an uncontrolled environment.
27044 \end_layout
27045
27046 \begin_layout Chapter
27047 \start_of_appendix
27048 List of supported \SpecialChar LyX
27049  functions to be used in layouts
27050 \begin_inset CommandInset label
27051 LatexCommand label
27052 name "chap:List-of-functions"
27053
27054 \end_inset
27055
27056
27057 \end_layout
27058
27059 \begin_layout Standard
27060 \align center
27061 \begin_inset Tabular
27062 <lyxtabular version="3" rows="11" columns="8">
27063 <features tabularvalignment="middle">
27064 <column alignment="left" valignment="top">
27065 <column alignment="left" valignment="top">
27066 <column alignment="left" valignment="top">
27067 <column alignment="left" valignment="top">
27068 <column alignment="left" valignment="top">
27069 <column alignment="left" valignment="top">
27070 <column alignment="left" valignment="top">
27071 <column alignment="left" valignment="top">
27072 <row>
27073 <cell alignment="left" valignment="top" usebox="none">
27074 \begin_inset Text
27075
27076 \begin_layout Plain Layout
27077 accents
27078 \end_layout
27079
27080 \end_inset
27081 </cell>
27082 <cell alignment="left" valignment="top" usebox="none">
27083 \begin_inset Text
27084
27085 \begin_layout Plain Layout
27086 booktabs
27087 \end_layout
27088
27089 \end_inset
27090 </cell>
27091 <cell alignment="left" valignment="top" usebox="none">
27092 \begin_inset Text
27093
27094 \begin_layout Plain Layout
27095 feyn
27096 \end_layout
27097
27098 \end_inset
27099 </cell>
27100 <cell alignment="left" valignment="top" usebox="none">
27101 \begin_inset Text
27102
27103 \begin_layout Plain Layout
27104 listings
27105 \end_layout
27106
27107 \end_inset
27108 </cell>
27109 <cell alignment="center" valignment="top" usebox="none">
27110 \begin_inset Text
27111
27112 \begin_layout Plain Layout
27113 natbib
27114 \end_layout
27115
27116 \end_inset
27117 </cell>
27118 <cell alignment="center" valignment="top" usebox="none">
27119 \begin_inset Text
27120
27121 \begin_layout Plain Layout
27122 rotfloat
27123 \end_layout
27124
27125 \end_inset
27126 </cell>
27127 <cell alignment="center" valignment="top" usebox="none">
27128 \begin_inset Text
27129
27130 \begin_layout Plain Layout
27131 tfrupee
27132 \end_layout
27133
27134 \end_inset
27135 </cell>
27136 <cell alignment="center" valignment="top" usebox="none">
27137 \begin_inset Text
27138
27139 \begin_layout Plain Layout
27140 wasysym
27141 \end_layout
27142
27143 \end_inset
27144 </cell>
27145 </row>
27146 <row>
27147 <cell alignment="left" valignment="top" usebox="none">
27148 \begin_inset Text
27149
27150 \begin_layout Plain Layout
27151 amsbsy
27152 \end_layout
27153
27154 \end_inset
27155 </cell>
27156 <cell alignment="left" valignment="top" usebox="none">
27157 \begin_inset Text
27158
27159 \begin_layout Plain Layout
27160 calc
27161 \end_layout
27162
27163 \end_inset
27164 </cell>
27165 <cell alignment="left" valignment="top" usebox="none">
27166 \begin_inset Text
27167
27168 \begin_layout Plain Layout
27169 fixltx2e
27170 \end_layout
27171
27172 \end_inset
27173 </cell>
27174 <cell alignment="left" valignment="top" usebox="none">
27175 \begin_inset Text
27176
27177 \begin_layout Plain Layout
27178 longtable
27179 \end_layout
27180
27181 \end_inset
27182 </cell>
27183 <cell alignment="center" valignment="top" usebox="none">
27184 \begin_inset Text
27185
27186 \begin_layout Plain Layout
27187 nomencl
27188 \end_layout
27189
27190 \end_inset
27191 </cell>
27192 <cell alignment="center" valignment="top" usebox="none">
27193 \begin_inset Text
27194
27195 \begin_layout Plain Layout
27196 rsphrase
27197 \end_layout
27198
27199 \end_inset
27200 </cell>
27201 <cell alignment="center" valignment="top" usebox="none">
27202 \begin_inset Text
27203
27204 \begin_layout Plain Layout
27205 tipa
27206 \end_layout
27207
27208 \end_inset
27209 </cell>
27210 <cell alignment="center" valignment="top" usebox="none">
27211 \begin_inset Text
27212
27213 \begin_layout Plain Layout
27214 wrapfig
27215 \end_layout
27216
27217 \end_inset
27218 </cell>
27219 </row>
27220 <row>
27221 <cell alignment="left" valignment="top" usebox="none">
27222 \begin_inset Text
27223
27224 \begin_layout Plain Layout
27225 amscd
27226 \end_layout
27227
27228 \end_inset
27229 </cell>
27230 <cell alignment="left" valignment="top" usebox="none">
27231 \begin_inset Text
27232
27233 \begin_layout Plain Layout
27234 CJK
27235 \end_layout
27236
27237 \end_inset
27238 </cell>
27239 <cell alignment="left" valignment="top" usebox="none">
27240 \begin_inset Text
27241
27242 \begin_layout Plain Layout
27243 float
27244 \end_layout
27245
27246 \end_inset
27247 </cell>
27248 <cell alignment="left" valignment="top" usebox="none">
27249 \begin_inset Text
27250
27251 \begin_layout Plain Layout
27252 lyxskak
27253 \end_layout
27254
27255 \end_inset
27256 </cell>
27257 <cell alignment="center" valignment="top" usebox="none">
27258 \begin_inset Text
27259
27260 \begin_layout Plain Layout
27261 pdfcolmk
27262 \end_layout
27263
27264 \end_inset
27265 </cell>
27266 <cell alignment="center" valignment="top" usebox="none">
27267 \begin_inset Text
27268
27269 \begin_layout Plain Layout
27270 setspace
27271 \end_layout
27272
27273 \end_inset
27274 </cell>
27275 <cell alignment="center" valignment="top" usebox="none">
27276 \begin_inset Text
27277
27278 \begin_layout Plain Layout
27279 tipx
27280 \end_layout
27281
27282 \end_inset
27283 </cell>
27284 <cell alignment="center" valignment="top" usebox="none">
27285 \begin_inset Text
27286
27287 \begin_layout Plain Layout
27288 xargs
27289 \end_layout
27290
27291 \end_inset
27292 </cell>
27293 </row>
27294 <row>
27295 <cell alignment="left" valignment="top" usebox="none">
27296 \begin_inset Text
27297
27298 \begin_layout Plain Layout
27299 amsmath
27300 \end_layout
27301
27302 \end_inset
27303 </cell>
27304 <cell alignment="left" valignment="top" usebox="none">
27305 \begin_inset Text
27306
27307 \begin_layout Plain Layout
27308 color
27309 \end_layout
27310
27311 \end_inset
27312 </cell>
27313 <cell alignment="left" valignment="top" usebox="none">
27314 \begin_inset Text
27315
27316 \begin_layout Plain Layout
27317 framed
27318 \end_layout
27319
27320 \end_inset
27321 </cell>
27322 <cell alignment="left" valignment="top" usebox="none">
27323 \begin_inset Text
27324
27325 \begin_layout Plain Layout
27326 makeidx
27327 \end_layout
27328
27329 \end_inset
27330 </cell>
27331 <cell alignment="center" valignment="top" usebox="none">
27332 \begin_inset Text
27333
27334 \begin_layout Plain Layout
27335 pdfpages
27336 \end_layout
27337
27338 \end_inset
27339 </cell>
27340 <cell alignment="center" valignment="top" usebox="none">
27341 \begin_inset Text
27342
27343 \begin_layout Plain Layout
27344 shapepar
27345 \end_layout
27346
27347 \end_inset
27348 </cell>
27349 <cell alignment="center" valignment="top" usebox="none">
27350 \begin_inset Text
27351
27352 \begin_layout Plain Layout
27353 tone
27354 \end_layout
27355
27356 \end_inset
27357 </cell>
27358 <cell alignment="center" valignment="top" usebox="none">
27359 \begin_inset Text
27360
27361 \begin_layout Plain Layout
27362 xcolor
27363 \end_layout
27364
27365 \end_inset
27366 </cell>
27367 </row>
27368 <row>
27369 <cell alignment="left" valignment="top" usebox="none">
27370 \begin_inset Text
27371
27372 \begin_layout Plain Layout
27373 amssymb
27374 \end_layout
27375
27376 \end_inset
27377 </cell>
27378 <cell alignment="left" valignment="top" usebox="none">
27379 \begin_inset Text
27380
27381 \begin_layout Plain Layout
27382 covington
27383 \end_layout
27384
27385 \end_inset
27386 </cell>
27387 <cell alignment="left" valignment="top" usebox="none">
27388 \begin_inset Text
27389
27390 \begin_layout Plain Layout
27391 graphicx
27392 \end_layout
27393
27394 \end_inset
27395 </cell>
27396 <cell alignment="left" valignment="top" usebox="none">
27397 \begin_inset Text
27398
27399 \begin_layout Plain Layout
27400 marvosym
27401 \end_layout
27402
27403 \end_inset
27404 </cell>
27405 <cell alignment="center" valignment="top" usebox="none">
27406 \begin_inset Text
27407
27408 \begin_layout Plain Layout
27409 pifont
27410 \end_layout
27411
27412 \end_inset
27413 </cell>
27414 <cell alignment="center" valignment="top" usebox="none">
27415 \begin_inset Text
27416
27417 \begin_layout Plain Layout
27418 slashed
27419 \end_layout
27420
27421 \end_inset
27422 </cell>
27423 <cell alignment="center" valignment="top" usebox="none">
27424 \begin_inset Text
27425
27426 \begin_layout Plain Layout
27427 txfonts
27428 \end_layout
27429
27430 \end_inset
27431 </cell>
27432 <cell alignment="center" valignment="top" usebox="none">
27433 \begin_inset Text
27434
27435 \begin_layout Plain Layout
27436 xy
27437 \end_layout
27438
27439 \end_inset
27440 </cell>
27441 </row>
27442 <row>
27443 <cell alignment="left" valignment="top" usebox="none">
27444 \begin_inset Text
27445
27446 \begin_layout Plain Layout
27447 amstext
27448 \end_layout
27449
27450 \end_inset
27451 </cell>
27452 <cell alignment="left" valignment="top" usebox="none">
27453 \begin_inset Text
27454
27455 \begin_layout Plain Layout
27456 csquotes
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 hhline
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 mathdesign
27475 \end_layout
27476
27477 \end_inset
27478 </cell>
27479 <cell alignment="center" valignment="top" usebox="none">
27480 \begin_inset Text
27481
27482 \begin_layout Plain Layout
27483 pmboxdraw
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 soul
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 ulem
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 yhmath
27511 \end_layout
27512
27513 \end_inset
27514 </cell>
27515 </row>
27516 <row>
27517 <cell alignment="left" valignment="top" usebox="none">
27518 \begin_inset Text
27519
27520 \begin_layout Plain Layout
27521 amsthm
27522 \end_layout
27523
27524 \end_inset
27525 </cell>
27526 <cell alignment="left" valignment="top" usebox="none">
27527 \begin_inset Text
27528
27529 \begin_layout Plain Layout
27530 dvipost
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 hyperref
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 mathdots
27549 \end_layout
27550
27551 \end_inset
27552 </cell>
27553 <cell alignment="center" valignment="top" usebox="none">
27554 \begin_inset Text
27555
27556 \begin_layout Plain Layout
27557 polyglossia
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 splitidx
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 undertilde
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
27585 \end_layout
27586
27587 \end_inset
27588 </cell>
27589 </row>
27590 <row>
27591 <cell alignment="left" valignment="top" usebox="none">
27592 \begin_inset Text
27593
27594 \begin_layout Plain Layout
27595 array
27596 \end_layout
27597
27598 \end_inset
27599 </cell>
27600 <cell alignment="left" valignment="top" usebox="none">
27601 \begin_inset Text
27602
27603 \begin_layout Plain Layout
27604 endnotes
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 ifsym
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 mathrsfs
27623 \end_layout
27624
27625 \end_inset
27626 </cell>
27627 <cell alignment="center" valignment="top" usebox="none">
27628 \begin_inset Text
27629
27630 \begin_layout Plain Layout
27631 prettyref
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 subfig
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 units
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
27659 \end_layout
27660
27661 \end_inset
27662 </cell>
27663 </row>
27664 <row>
27665 <cell alignment="left" valignment="top" usebox="none">
27666 \begin_inset Text
27667
27668 \begin_layout Plain Layout
27669 ascii
27670 \end_layout
27671
27672 \end_inset
27673 </cell>
27674 <cell alignment="left" valignment="top" usebox="none">
27675 \begin_inset Text
27676
27677 \begin_layout Plain Layout
27678 enumitem
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 ifthen
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 mhchem
27697 \end_layout
27698
27699 \end_inset
27700 </cell>
27701 <cell alignment="center" valignment="top" usebox="none">
27702 \begin_inset Text
27703
27704 \begin_layout Plain Layout
27705 pxfonts
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 subscript
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 url
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
27733 \end_layout
27734
27735 \end_inset
27736 </cell>
27737 </row>
27738 <row>
27739 <cell alignment="left" valignment="top" usebox="none">
27740 \begin_inset Text
27741
27742 \begin_layout Plain Layout
27743 bbding
27744 \end_layout
27745
27746 \end_inset
27747 </cell>
27748 <cell alignment="left" valignment="top" usebox="none">
27749 \begin_inset Text
27750
27751 \begin_layout Plain Layout
27752 esint
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 jurabib
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 multicol
27771 \end_layout
27772
27773 \end_inset
27774 </cell>
27775 <cell alignment="center" valignment="top" usebox="none">
27776 \begin_inset Text
27777
27778 \begin_layout Plain Layout
27779 refstyle
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 textcomp
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 varioref
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
27807 \end_layout
27808
27809 \end_inset
27810 </cell>
27811 </row>
27812 <row>
27813 <cell alignment="center" valignment="top" usebox="none">
27814 \begin_inset Text
27815
27816 \begin_layout Plain Layout
27817 bm
27818 \end_layout
27819
27820 \end_inset
27821 </cell>
27822 <cell alignment="center" valignment="top" usebox="none">
27823 \begin_inset Text
27824
27825 \begin_layout Plain Layout
27826 fancybox
27827 \end_layout
27828
27829 \end_inset
27830 </cell>
27831 <cell alignment="center" valignment="top" usebox="none">
27832 \begin_inset Text
27833
27834 \begin_layout Plain Layout
27835 latexsym
27836 \end_layout
27837
27838 \end_inset
27839 </cell>
27840 <cell alignment="center" valignment="top" usebox="none">
27841 \begin_inset Text
27842
27843 \begin_layout Plain Layout
27844 multirow
27845 \end_layout
27846
27847 \end_inset
27848 </cell>
27849 <cell alignment="center" valignment="top" usebox="none">
27850 \begin_inset Text
27851
27852 \begin_layout Plain Layout
27853 rotating
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 textgreek
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 verbatim
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
27881 \end_layout
27882
27883 \end_inset
27884 </cell>
27885 </row>
27886 </lyxtabular>
27887
27888 \end_inset
27889
27890
27891 \end_layout
27892
27893 \begin_layout Chapter
27894 Names of available colors to be used in layouts
27895 \begin_inset CommandInset label
27896 LatexCommand label
27897 name "chap:Names-of-colors"
27898
27899 \end_inset
27900
27901
27902 \end_layout
27903
27904 \begin_layout Standard
27905 The colors listed below are the standard colors and those that you can adjust
27906  in the \SpecialChar LyX
27907  preferences.
27908 \end_layout
27909
27910 \begin_layout Section
27911 Color functions
27912 \end_layout
27913
27914 \begin_layout Standard
27915 The following are no real colors, but rather act on color definitions:
27916 \end_layout
27917
27918 \begin_layout Description
27919 ignore The color is ignored
27920 \end_layout
27921
27922 \begin_layout Description
27923 inherit The color is inherited
27924 \end_layout
27925
27926 \begin_layout Description
27927 none
27928 \family roman
27929 \series medium
27930 \shape up
27931 \size normal
27932 \emph off
27933 \bar no
27934 \strikeout off
27935 \uuline off
27936 \uwave off
27937 \noun off
27938 \color none
27939  No particular color – clear or default
27940 \end_layout
27941
27942 \begin_layout Section
27943 Static colors
27944 \end_layout
27945
27946 \begin_layout Standard
27947 These are fixed colors that cannot me customized:
27948 \end_layout
27949
27950 \begin_layout Description
27951 black
27952 \end_layout
27953
27954 \begin_layout Description
27955 white
27956 \end_layout
27957
27958 \begin_layout Description
27959 blue
27960 \end_layout
27961
27962 \begin_layout Description
27963 brown
27964 \end_layout
27965
27966 \begin_layout Description
27967 cyan
27968 \end_layout
27969
27970 \begin_layout Description
27971 darkgray
27972 \end_layout
27973
27974 \begin_layout Description
27975 gray
27976 \end_layout
27977
27978 \begin_layout Description
27979 green
27980 \end_layout
27981
27982 \begin_layout Description
27983 lightgray
27984 \end_layout
27985
27986 \begin_layout Description
27987 lime
27988 \end_layout
27989
27990 \begin_layout Description
27991 magenta
27992 \end_layout
27993
27994 \begin_layout Description
27995 olive
27996 \end_layout
27997
27998 \begin_layout Description
27999 orange
28000 \end_layout
28001
28002 \begin_layout Description
28003 pink
28004 \end_layout
28005
28006 \begin_layout Description
28007 purple
28008 \end_layout
28009
28010 \begin_layout Description
28011 red
28012 \end_layout
28013
28014 \begin_layout Description
28015 teal
28016 \end_layout
28017
28018 \begin_layout Description
28019 violet
28020 \end_layout
28021
28022 \begin_layout Description
28023 yellow
28024 \end_layout
28025
28026 \begin_layout Section
28027 Dynamic colors
28028 \end_layout
28029
28030 \begin_layout Standard
28031 These are the colors allocated to specific elements in 
28032 \begin_inset Info
28033 type  "menu"
28034 arg   "dialog-show prefs"
28035 \end_inset
28036
28037 :
28038 \end_layout
28039
28040 \begin_layout Description
28041 added_space Added space color
28042 \end_layout
28043
28044 \begin_layout Description
28045 addedtext Added text color
28046 \end_layout
28047
28048 \begin_layout Description
28049 appendix Appendix marker color
28050 \end_layout
28051
28052 \begin_layout Description
28053 background Background color
28054 \end_layout
28055
28056 \begin_layout Description
28057 bottomarea Bottom area color
28058 \end_layout
28059
28060 \begin_layout Description
28061 branchlabel Label color for branches
28062 \end_layout
28063
28064 \begin_layout Description
28065 buttonbg Color used for button background
28066 \end_layout
28067
28068 \begin_layout Description
28069 buttonframe Color for inset button frames
28070 \end_layout
28071
28072 \begin_layout Description
28073 buttonhoverbg Color used for button background under focus
28074 \end_layout
28075
28076 \begin_layout Description
28077 changebar Changebar color
28078 \end_layout
28079
28080 \begin_layout Description
28081 changedtextauthor1 Changed text color author 1
28082 \end_layout
28083
28084 \begin_layout Description
28085 changedtextauthor2 Changed text color author 2
28086 \end_layout
28087
28088 \begin_layout Description
28089 changedtextauthor3 Changed text color author 3
28090 \end_layout
28091
28092 \begin_layout Description
28093 changedtextauthor4 Changed text color author 4
28094 \end_layout
28095
28096 \begin_layout Description
28097 changedtextauthor5 Changed text color author 5
28098 \end_layout
28099
28100 \begin_layout Description
28101 collapsible Collapsible insets text color
28102 \end_layout
28103
28104 \begin_layout Description
28105 collapsibleframe Collapsible insets framecolor
28106 \end_layout
28107
28108 \begin_layout Description
28109 command Text color for command insets
28110 \end_layout
28111
28112 \begin_layout Description
28113 commandbg Background color for command insets
28114 \end_layout
28115
28116 \begin_layout Description
28117 commandframe Frame color for command insets
28118 \end_layout
28119
28120 \begin_layout Description
28121 comment Label color for comments
28122 \end_layout
28123
28124 \begin_layout Description
28125 commentbg Background color of comments
28126 \end_layout
28127
28128 \begin_layout Description
28129 cursor Cursor color
28130 \end_layout
28131
28132 \begin_layout Description
28133 deletedtext Deleted text color
28134 \end_layout
28135
28136 \begin_layout Description
28137 deletedtextmodifier Deleted text modifying color
28138 \end_layout
28139
28140 \begin_layout Description
28141 depthbar Color for the depth bars in the margin
28142 \end_layout
28143
28144 \begin_layout Description
28145 eolmarker End of line marker color
28146 \end_layout
28147
28148 \begin_layout Description
28149 error Color of the \SpecialChar LaTeX
28150  error box
28151 \end_layout
28152
28153 \begin_layout Description
28154 footlabel Label color for footnotes
28155 \end_layout
28156
28157 \begin_layout Description
28158 foreground Foreground color
28159 \end_layout
28160
28161 \begin_layout Description
28162 graphicsbg Graphics inset background color
28163 \end_layout
28164
28165 \begin_layout Description
28166 greyedoutbg Background color of greyedout inset
28167 \end_layout
28168
28169 \begin_layout Description
28170 greyedoutlabel Label color for greyedout insets
28171 \end_layout
28172
28173 \begin_layout Description
28174 greyedouttext Color for greyedout inset text
28175 \end_layout
28176
28177 \begin_layout Description
28178 indexlabel Label color for index insets
28179 \end_layout
28180
28181 \begin_layout Description
28182 inlinecompletion Inline completion color
28183 \end_layout
28184
28185 \begin_layout Description
28186 insetbg Inset marker background color
28187 \end_layout
28188
28189 \begin_layout Description
28190 insetframe Inset marker frame color
28191 \end_layout
28192
28193 \begin_layout Description
28194 language Color for marking foreign language words
28195 \end_layout
28196
28197 \begin_layout Description
28198 latex Text color in \SpecialChar LaTeX
28199  mode
28200 \end_layout
28201
28202 \begin_layout Description
28203 listingsbg Background color of listings inset
28204 \end_layout
28205
28206 \begin_layout Description
28207 marginlabel Label color for margin notes
28208 \end_layout
28209
28210 \begin_layout Description
28211 math Math inset text color
28212 \end_layout
28213
28214 \begin_layout Description
28215 mathbg Math inset background color
28216 \end_layout
28217
28218 \begin_layout Description
28219 mathcorners Math inset frame color not under focus
28220 \end_layout
28221
28222 \begin_layout Description
28223 mathframe Math inset frame color under focus
28224 \end_layout
28225
28226 \begin_layout Description
28227 mathline Math line color
28228 \end_layout
28229
28230 \begin_layout Description
28231 mathmacrobg Macro math inset background color
28232 \end_layout
28233
28234 \begin_layout Description
28235 mathmacroblend Macro math blended color
28236 \end_layout
28237
28238 \begin_layout Description
28239 mathmacroframe Macro math frame color
28240 \end_layout
28241
28242 \begin_layout Description
28243 mathmacrohoverbg Macro math inset background color hovered
28244 \end_layout
28245
28246 \begin_layout Description
28247 mathmacrolabel Macro math label color
28248 \end_layout
28249
28250 \begin_layout Description
28251 mathmacronewarg Macro template color for new parameters
28252 \end_layout
28253
28254 \begin_layout Description
28255 mathmacrooldarg Macro template color for old parameters
28256 \end_layout
28257
28258 \begin_layout Description
28259 newpage New page color
28260 \end_layout
28261
28262 \begin_layout Description
28263 nonunique_inlinecompletion Inline completion color for the non-unique part
28264 \end_layout
28265
28266 \begin_layout Description
28267 note Label color for notes
28268 \end_layout
28269
28270 \begin_layout Description
28271 notebg Background color of notes
28272 \end_layout
28273
28274 \begin_layout Description
28275 pagebreak Page break/line break color
28276 \end_layout
28277
28278 \begin_layout Description
28279 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28280 \end_layout
28281
28282 \begin_layout Description
28283 phantomtext Text color for phantom insets
28284 \end_layout
28285
28286 \begin_layout Description
28287 preview The color used for previews
28288 \end_layout
28289
28290 \begin_layout Description
28291 previewframe Preview frame color
28292 \end_layout
28293
28294 \begin_layout Description
28295 regexpframe Color for regexp frame
28296 \end_layout
28297
28298 \begin_layout Description
28299 scroll Color that indicates when a row can be scrolled 
28300 \end_layout
28301
28302 \begin_layout Description
28303 selection Background color of selected text
28304 \end_layout
28305
28306 \begin_layout Description
28307 selectiontext Foreground color of selected text
28308 \end_layout
28309
28310 \begin_layout Description
28311 shadedbg Background color of shaded box
28312 \end_layout
28313
28314 \begin_layout Description
28315 special Special chars text color
28316 \end_layout
28317
28318 \begin_layout Description
28319 tabularline Table line color
28320 \end_layout
28321
28322 \begin_layout Description
28323 tabularonoffline Table line color
28324 \end_layout
28325
28326 \begin_layout Description
28327 urllabel Label color for URL insets
28328 \end_layout
28329
28330 \begin_layout Description
28331 urltext Color for URL inset text
28332 \end_layout
28333
28334 \end_body
28335 \end_document