]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
French Additional.lyx: sync with branch
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \end_header
134
135 \begin_body
136
137 \begin_layout Title
138 Customizing \SpecialChar LyX
139 : Features for the Advanced User
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 If you have comments or error corrections, please send them to the \SpecialChar LyX
151  Documentatio
152 n mailing list, 
153 \begin_inset CommandInset href
154 LatexCommand href
155 target "lyx-docs@lists.lyx.org"
156 type "mailto:"
157 literal "false"
158
159 \end_inset
160
161 .
162  Include 
163 \begin_inset Quotes eld
164 \end_inset
165
166 [Customization]
167 \begin_inset Quotes erd
168 \end_inset
169
170  in the subject header, and please cc the current maintainer of this file,
171  Richard Heck <rgheck@comcast.net>.
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184 Version 2.3.x 
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Standard
197 \begin_inset Note Note
198 status open
199
200 \begin_layout Plain Layout
201 Please use change tracking when modifying this document.
202  This makes it easier for our translators to recognize things that have
203  been changed, and it helps the maintainer keep up-to-date with what's been
204  done.
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Chapter
213 Introduction
214 \end_layout
215
216 \begin_layout Standard
217 This manual covers the customization features present in \SpecialChar LyX
218 .
219  In it, we discuss issues like keyboard shortcuts, screen previewing options,
220  printer options, sending commands to \SpecialChar LyX
221  via the \SpecialChar LyX
222  Server, internationalization,
223  installing new \SpecialChar LaTeX
224  classes and \SpecialChar LyX
225  layouts, etc.
226  We can't possibly hope to touch on everything you can change—our developers
227  add new features faster than we can document them—but we will explain the
228  most common customizations and hopefully point you in the right direction
229  for some of the more obscure ones.
230 \end_layout
231
232 \begin_layout Standard
233 \begin_inset Branch OutDated
234 inverted 0
235 status collapsed
236
237 \begin_layout Standard
238 Information from previous versions of this document that now seems to be
239  outdated is contained in the OutDated branch of this document.
240  By default, this information will not appear in the \SpecialChar LaTeX
241  output.
242 \end_layout
243
244 \end_inset
245
246
247 \end_layout
248
249 \begin_layout Chapter
250 \SpecialChar LyX
251  configuration files
252 \end_layout
253
254 \begin_layout Standard
255 This chapter aims to help you to find your way through the \SpecialChar LyX
256  configuration
257  files.
258  Before continuing to read this chapter, you should find out where your
259  \SpecialChar LyX
260  library and user directories are by using 
261 \begin_inset Flex Noun
262 status collapsed
263
264 \begin_layout Plain Layout
265 Help\SpecialChar menuseparator
266 About
267 \begin_inset space ~
268 \end_inset
269
270 LyX
271 \end_layout
272
273 \end_inset
274
275 .
276  The library directory is the place where \SpecialChar LyX
277  places its system-wide configuration
278  files; the user directory is where you can place your modified versions.
279  We will call the former 
280 \begin_inset Flex Code
281 status collapsed
282
283 \begin_layout Plain Layout
284 LyXDir
285 \end_layout
286
287 \end_inset
288
289  and the latter 
290 \begin_inset Flex Noun
291 status collapsed
292
293 \begin_layout Plain Layout
294 UserDir
295 \end_layout
296
297 \end_inset
298
299  in the remainder of this document.
300  
301 \end_layout
302
303 \begin_layout Section
304 What's in 
305 \begin_inset Flex Code
306 status collapsed
307
308 \begin_layout Plain Layout
309 LyXDir
310 \end_layout
311
312 \end_inset
313
314 ?
315 \end_layout
316
317 \begin_layout Standard
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327  and its sub-directories contain a number of files and that can be used
328  to customize \SpecialChar LyX
329 's behavior.
330  You can change many of these files from within \SpecialChar LyX
331  itself through the 
332 \begin_inset Flex Noun
333 status collapsed
334
335 \begin_layout Plain Layout
336 Tools\SpecialChar menuseparator
337 Preferences
338 \end_layout
339
340 \end_inset
341
342  dialog.
343  Most customization that you will want to do in \SpecialChar LyX
344  is possible through this
345  dialog.
346  However, many other inner aspects of \SpecialChar LyX
347  can be customized by modifying the
348  files in 
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358 .
359  These files fall in different categories, described in the following subsection
360 s.
361 \end_layout
362
363 \begin_layout Subsection
364 Automatically generated files
365 \end_layout
366
367 \begin_layout Standard
368 The files, which are to be found in 
369 \begin_inset Flex Noun
370 status collapsed
371
372 \begin_layout Plain Layout
373 UserDir
374 \end_layout
375
376 \end_inset
377
378 , are generated when you configure \SpecialChar LyX
379 .
380  They contain various default values that are guessed by inspection.
381  In general, it is not a good idea to modify them, since they might be overwritt
382 en at any time.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  contains defaults for various commands.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  contains the list of packages that have been recognized by \SpecialChar LyX
411 .
412  It is currently unused by the \SpecialChar LyX
413  program itself, but the information extracted,
414  and more, is made available with 
415 \begin_inset Flex Noun
416 status collapsed
417
418 \begin_layout Plain Layout
419 Help\SpecialChar menuseparator
420 \SpecialChar LaTeX
421
422 \begin_inset space ~
423 \end_inset
424
425 Configuration
426 \end_layout
427
428 \end_inset
429
430 .
431 \end_layout
432
433 \begin_layout Labeling
434 \labelwidthstring 00.00.0000
435 \begin_inset Flex Code
436 status collapsed
437
438 \begin_layout Plain Layout
439 textclass.lst
440 \end_layout
441
442 \end_inset
443
444  the list of text classes that have been found in your 
445 \begin_inset Flex Code
446 status collapsed
447
448 \begin_layout Plain Layout
449 layout/
450 \end_layout
451
452 \end_inset
453
454  directories, along with the associated \SpecialChar LaTeX
455  document class and their description.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 lyxmodules.lst
465 \end_layout
466
467 \end_inset
468
469  the list of layout modules found in your 
470 \begin_inset Flex Code
471 status collapsed
472
473 \begin_layout Plain Layout
474 layout/
475 \end_layout
476
477 \end_inset
478
479  directories
480 \end_layout
481
482 \begin_layout Labeling
483 \labelwidthstring 00.00.0000
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 *files.lst
489 \end_layout
490
491 \end_inset
492
493  lists of various sorts of \SpecialChar LaTeX
494 -related files found on your system
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 doc/\SpecialChar LaTeX
504 Config.lyx
505 \end_layout
506
507 \end_inset
508
509  is automatically generated during configuration from the file 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 \SpecialChar LaTeX
515 Config.lyx.in
516 \end_layout
517
518 \end_inset
519
520 .
521  It contains information on your \SpecialChar LaTeX
522  configuration.
523 \end_layout
524
525 \begin_layout Subsection
526 Directories
527 \end_layout
528
529 \begin_layout Standard
530 These directories are duplicated between 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 LyXDir
536 \end_layout
537
538 \end_inset
539
540  and 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 UserDir
546 \end_layout
547
548 \end_inset
549
550 .
551  If a particular files exists in both places, the one in 
552 \begin_inset Flex Code
553 status collapsed
554
555 \begin_layout Plain Layout
556 UserDir
557 \end_layout
558
559 \end_inset
560
561  will be used.
562 \end_layout
563
564 \begin_layout Labeling
565 \labelwidthstring 00.00.0000
566 \begin_inset Flex Code
567 status collapsed
568
569 \begin_layout Plain Layout
570 bind/
571 \end_layout
572
573 \end_inset
574
575  this directory contains files with the extension 
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 .bind
581 \end_layout
582
583 \end_inset
584
585  that define the keybindings used in \SpecialChar LyX
586 .
587  If there exists an internationalized version of the bind file named 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 $LANG_xxx.bind
593 \end_layout
594
595 \end_inset
596
597 , that will be used first.
598 \end_layout
599
600 \begin_layout Labeling
601 \labelwidthstring 00.00.0000
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 citeengines/
607 \end_layout
608
609 \end_inset
610
611  contains files with the extension 
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 .citeengine
617 \end_layout
618
619 \end_inset
620
621  which define the diverse citation possibilities (natbib, biblatex etc.).
622  See 
623 \begin_inset CommandInset ref
624 LatexCommand ref
625 reference "subsec:Cite-Engine-Files"
626 plural "false"
627 caps "false"
628 noprefix "false"
629
630 \end_inset
631
632  for details.
633 \end_layout
634
635 \begin_layout Labeling
636 \labelwidthstring 00.00.0000
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 clipart/
642 \end_layout
643
644 \end_inset
645
646  contains graphics files that can be included in documents.
647  
648 \end_layout
649
650 \begin_layout Labeling
651 \labelwidthstring 00.00.0000
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656 doc/
657 \end_layout
658
659 \end_inset
660
661  contains \SpecialChar LyX
662  documentation files (including the one you are currently reading).
663  The file 
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 \SpecialChar LaTeX
669 Config.lyx
670 \end_layout
671
672 \end_inset
673
674  deserves special attention, as noted above.
675  The internationalized help docs are in subdirectories 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 doc/xx
681 \end_layout
682
683 \end_inset
684
685  where 
686 \begin_inset Quotes eld
687 \end_inset
688
689 xx
690 \begin_inset Quotes erd
691 \end_inset
692
693  is the ISO language code.
694  See 
695 \begin_inset CommandInset ref
696 LatexCommand ref
697 reference "cha:Internationalizing-LyX"
698
699 \end_inset
700
701  for details.
702 \end_layout
703
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
707 status collapsed
708
709 \begin_layout Plain Layout
710 examples/
711 \end_layout
712
713 \end_inset
714
715  contains example files that explain how to use some features.
716  In the file browser, press the 
717 \begin_inset Flex Noun
718 status collapsed
719
720 \begin_layout Plain Layout
721 Examples
722 \end_layout
723
724 \end_inset
725
726  button to get there.
727 \end_layout
728
729 \begin_layout Labeling
730 \labelwidthstring 00.00.0000
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 images/
736 \end_layout
737
738 \end_inset
739
740  contains image files that are used by the 
741 \begin_inset Flex Noun
742 status collapsed
743
744 \begin_layout Plain Layout
745 Document
746 \end_layout
747
748 \end_inset
749
750  dialog.
751  In addition, it also contains the individual icons used in the toolbar
752  and the banners that can be shown when \SpecialChar LyX
753  is launched.
754 \end_layout
755
756 \begin_layout Labeling
757 \labelwidthstring 00.00.0000
758 \begin_inset Flex Code
759 status collapsed
760
761 \begin_layout Plain Layout
762 kbd/
763 \end_layout
764
765 \end_inset
766
767  contains keyboard keymapping files.
768  See 
769 \begin_inset CommandInset ref
770 LatexCommand ref
771 reference "sec:International-Keymap-Stuff"
772
773 \end_inset
774
775  for details.
776 \end_layout
777
778 \begin_layout Labeling
779 \labelwidthstring 00.00.0000
780 \begin_inset Flex Code
781 status collapsed
782
783 \begin_layout Plain Layout
784 layouts/
785 \end_layout
786
787 \end_inset
788
789  contains the text class and module files described in 
790 \begin_inset CommandInset ref
791 LatexCommand ref
792 reference "cha:Installing-New-Document"
793
794 \end_inset
795
796 .
797 \end_layout
798
799 \begin_layout Labeling
800 \labelwidthstring 00.00.0000
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 lyx2lyx
806 \end_layout
807
808 \end_inset
809
810  contains the 
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 lyx2lyx
816 \end_layout
817
818 \end_inset
819
820  Python scripts used to convert between \SpecialChar LyX
821  versions.
822  These can be run from the command line if, say, you want to batch-convert
823  files.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 scripts/
833 \end_layout
834
835 \end_inset
836
837  contains some files that demonstrate the capabilities of the 
838 \begin_inset Flex Noun
839 status collapsed
840
841 \begin_layout Plain Layout
842 External
843 \begin_inset space ~
844 \end_inset
845
846 Template
847 \end_layout
848
849 \end_inset
850
851  feature.
852  Also contains some scripts used by \SpecialChar LyX
853  itself.
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 templates/
863 \end_layout
864
865 \end_inset
866
867  contains the standard \SpecialChar LyX
868  template files described in 
869 \begin_inset CommandInset ref
870 LatexCommand ref
871 reference "subsec:Creating-Templates"
872
873 \end_inset
874
875 .
876 \end_layout
877
878 \begin_layout Labeling
879 \labelwidthstring 00.00.0000
880 \begin_inset Flex Code
881 status collapsed
882
883 \begin_layout Plain Layout
884 ui/
885 \end_layout
886
887 \end_inset
888
889  contains files with the extension 
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 .ui
895 \end_layout
896
897 \end_inset
898
899  that define the user interface to \SpecialChar LyX
900 .
901  That is, the files define which items appear in which menus and the items
902  appearing on the toolbar.
903 \end_layout
904
905 \begin_layout Labeling
906 \labelwidthstring 00.00.0000
907 \begin_inset Flex Code
908 status collapsed
909
910 \begin_layout Plain Layout
911 xtemplates/
912 \end_layout
913
914 \end_inset
915
916  contains files with the extension 
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 .xtemplate
922 \end_layout
923
924 \end_inset
925
926  which define the templates for the insertion of external material to a
927  \SpecialChar LyX
928  document; see 
929 \begin_inset CommandInset ref
930 LatexCommand ref
931 reference "chap:Including-External-Material"
932
933 \end_inset
934
935 .
936 \end_layout
937
938 \begin_layout Subsection
939 Files you don't want to modify
940 \end_layout
941
942 \begin_layout Standard
943 These files are used internally by \SpecialChar LyX
944  and you generally do not need to modify
945  them unless you are a developer.
946 \end_layout
947
948 \begin_layout Labeling
949 \labelwidthstring 00.00.0000
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954 CREDITS
955 \end_layout
956
957 \end_inset
958
959  this file contains the list of \SpecialChar LyX
960  developers.
961  The contents are displayed with the menu entry 
962 \begin_inset Flex Noun
963 status collapsed
964
965 \begin_layout Plain Layout
966 Help\SpecialChar menuseparator
967 About
968 \begin_inset space ~
969 \end_inset
970
971 LyX
972 \end_layout
973
974 \end_inset
975
976 .
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 chkconfig.ltx
986 \end_layout
987
988 \end_inset
989
990  this is a \SpecialChar LaTeX
991  script used during the configuration process.
992  Do not run directly.
993 \end_layout
994
995 \begin_layout Labeling
996 \labelwidthstring 00.00.0000
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 configure.py
1002 \end_layout
1003
1004 \end_inset
1005
1006  this is a Python script that is used to re-configure \SpecialChar LyX
1007 .
1008  It creates configuration files in the directory it was run from.
1009 \end_layout
1010
1011 \begin_layout Subsection
1012 Other files needing a line or two
1013 \end_layout
1014
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 encodings
1022 \end_layout
1023
1024 \end_inset
1025
1026  this contains tables describing how different character encodings can be
1027  mapped to Unicode
1028 \end_layout
1029
1030 \begin_layout Labeling
1031 \labelwidthstring 00.00.0000
1032 \begin_inset Flex Code
1033 status collapsed
1034
1035 \begin_layout Plain Layout
1036 languages
1037 \end_layout
1038
1039 \end_inset
1040
1041  this file contains a list of all the languages currently supported by \SpecialChar LyX
1042 .
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 latexfonts
1052 \end_layout
1053
1054 \end_inset
1055
1056  contains information about the supported fonts.
1057 \end_layout
1058
1059 \begin_layout Labeling
1060 \labelwidthstring 00.00.0000
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065 layouttranslations
1066 \end_layout
1067
1068 \end_inset
1069
1070  this file contains translations for internationalized paragraph styles
1071  (see 
1072 \begin_inset CommandInset ref
1073 LatexCommand ref
1074 reference "subsec:I18n"
1075
1076 \end_inset
1077
1078 ).
1079 \end_layout
1080
1081 \begin_layout Labeling
1082 \labelwidthstring 00.00.0000
1083 \begin_inset Flex Code
1084 status collapsed
1085
1086 \begin_layout Plain Layout
1087 unicodesymbols
1088 \end_layout
1089
1090 \end_inset
1091
1092  this file contains information about Unicode-encoded glyphs and the way
1093  they are supported by \SpecialChar LyX
1094  via \SpecialChar LaTeX
1095 .
1096 \end_layout
1097
1098 \begin_layout Section
1099 Your local configuration directory
1100 \end_layout
1101
1102 \begin_layout Standard
1103 Even if you are using \SpecialChar LyX
1104  as an unprivileged user, you might want to change
1105  \SpecialChar LyX
1106  configuration for your own use.
1107  The 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 UserDir
1113 \end_layout
1114
1115 \end_inset
1116
1117  directory contains all your personal configuration files.
1118  This is the directory described as 
1119 \begin_inset Quotes eld
1120 \end_inset
1121
1122 user directory
1123 \begin_inset Quotes erd
1124 \end_inset
1125
1126  in 
1127 \begin_inset Flex Noun
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 Help\SpecialChar menuseparator
1132 About
1133 \begin_inset space ~
1134 \end_inset
1135
1136 LyX
1137 \end_layout
1138
1139 \end_inset
1140
1141 .
1142  This directory is used as a mirror of 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 LyXDir
1148 \end_layout
1149
1150 \end_inset
1151
1152 , which means that every file in 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 UserDir
1158 \end_layout
1159
1160 \end_inset
1161
1162  is a replacement for the corresponding file in 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 LyXDir
1168 \end_layout
1169
1170 \end_inset
1171
1172 .
1173  Any configuration file described in the above sections can be placed either
1174  in the system-wide directory, in which case it will affect all users, or
1175  in your local directory for your own use.
1176 \end_layout
1177
1178 \begin_layout Standard
1179 To make things clearer, let's provide a few examples:
1180 \end_layout
1181
1182 \begin_layout Itemize
1183 The preferences set in the 
1184 \begin_inset Flex Noun
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 Tools\SpecialChar menuseparator
1189 Preferences
1190 \end_layout
1191
1192 \end_inset
1193
1194  dialog are saved to a file 
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 preferences
1200 \end_layout
1201
1202 \end_inset
1203
1204  in 
1205 \begin_inset Flex Code
1206 status collapsed
1207
1208 \begin_layout Plain Layout
1209 UserDir
1210 \end_layout
1211
1212 \end_inset
1213
1214 .
1215 \end_layout
1216
1217 \begin_layout Itemize
1218 When you reconfigure using 
1219 \begin_inset Flex Noun
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 Tools\SpecialChar menuseparator
1224 Reconfigure
1225 \end_layout
1226
1227 \end_inset
1228
1229 , \SpecialChar LyX
1230  runs the 
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 configure.py
1236 \end_layout
1237
1238 \end_inset
1239
1240  script, and the resulting files are written in your local configuration
1241  directory.
1242  This means that any additional text class file that you might have added
1243  in 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 UserDir/layouts
1249 \end_layout
1250
1251 \end_inset
1252
1253  will be added to the list of classes in the 
1254 \begin_inset Flex Noun
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 Document\SpecialChar menuseparator
1259 Settings
1260 \end_layout
1261
1262 \end_inset
1263
1264  dialog.
1265 \end_layout
1266
1267 \begin_layout Itemize
1268 If you get some updated documentation from \SpecialChar LyX
1269  ftp site and cannot install
1270  it because you do not have sysadmin rights on your system, you can just
1271  copy the files in 
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 UserDir/doc/
1277 \end_layout
1278
1279 \end_inset
1280
1281  and the items in the 
1282 \begin_inset Flex Noun
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 Help
1287 \end_layout
1288
1289 \end_inset
1290
1291  menu will open them!
1292 \end_layout
1293
1294 \begin_layout Section
1295 Running \SpecialChar LyX
1296  with multiple configurations
1297 \end_layout
1298
1299 \begin_layout Standard
1300 The configuration freedom of the local configuration directory may not suffice
1301  if you want to have more than one configuration at your disposal.
1302  For example, you may want to be use different key bindings or printer settings
1303  at different times.
1304  You can achieve this by having several such directories.
1305  You then specify which directory to use at run-time.
1306 \end_layout
1307
1308 \begin_layout Standard
1309 Invoking \SpecialChar LyX
1310  with the command line switch 
1311 \begin_inset Flex Code
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 -userdir
1316 \end_layout
1317
1318 \end_inset
1319
1320  
1321 \emph on
1322 <some directory>
1323 \emph default
1324  instructs the program to read the configuration from that directory, and
1325  not from the default directory.
1326  (You can determine the default directory by running \SpecialChar LyX
1327  without the 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 -userdir
1333 \end_layout
1334
1335 \end_inset
1336
1337  switch.) If the specified directory does not exist, \SpecialChar LyX
1338  offers to create it
1339  for you, just like it does for the default directory on the first time
1340  you run the program.
1341  You can modify the configuration options in this additional user directory
1342  exactly as you would for the default directory.
1343  These directories are completely independent (but read on).
1344  Note that setting the environment variable 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349 LYX_USERDIR_VER
1350 \end_layout
1351
1352 \end_inset
1353
1354  to some value has exactly the same effect.
1355 \end_layout
1356
1357 \begin_layout Standard
1358 Having several configurations also requires more maintenance: if you want
1359  to add a new layout to 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 NewUserDir/layouts
1365 \end_layout
1366
1367 \end_inset
1368
1369  which you want available from all your configurations, you must add it
1370  to each directory separately.
1371  You can avoid this with the following trick: after \SpecialChar LyX
1372  creates the additional
1373  directory, most of the subdirectories (see above) are empty.
1374  If you want the new configuration to mirror an existing one, replace the
1375  empty subdirectory with a symbolic link to the matching subdirectory in
1376  the existing configuration.
1377  Take care with the 
1378 \begin_inset Flex Code
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 doc/
1383 \end_layout
1384
1385 \end_inset
1386
1387  subdirectory, however, since it contains a file written by the configuration
1388  script (also accessible through 
1389 \begin_inset Flex Noun
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 Tools\SpecialChar menuseparator
1394 Reconfigure
1395 \end_layout
1396
1397 \end_inset
1398
1399 ) which is configuration-specific.
1400 \end_layout
1401
1402 \begin_layout Chapter
1403 The Preferences dialog
1404 \end_layout
1405
1406 \begin_layout Standard
1407 All options of the preferences dialog are described in the Appendix 
1408 \emph on
1409 The Preferences Dialog
1410 \emph default
1411  in the 
1412 \emph on
1413 User's Guide
1414 \emph default
1415 .
1416  For some options you might find here more details.
1417 \end_layout
1418
1419 \begin_layout Section
1420 Formats
1421 \begin_inset CommandInset label
1422 LatexCommand label
1423 name "sec:Formats"
1424
1425 \end_inset
1426
1427
1428 \end_layout
1429
1430 \begin_layout Standard
1431 The first step is to define your file formats if they are not already defined.
1432  To do so, open the 
1433 \begin_inset Flex Noun
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437 Tools\SpecialChar menuseparator
1438 Preferences
1439 \end_layout
1440
1441 \end_inset
1442
1443  dialog.
1444  Under 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 File Handling\SpecialChar menuseparator
1450 File formats
1451 \end_layout
1452
1453 \end_inset
1454
1455  press the 
1456 \begin_inset Flex Noun
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 New
1461 \end_layout
1462
1463 \end_inset
1464
1465  button to define your new format.
1466  The 
1467 \begin_inset Flex Noun
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 Format
1472 \end_layout
1473
1474 \end_inset
1475
1476  field contains the name used to identify the format in the GUI.
1477  The 
1478 \begin_inset Flex Noun
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 Short Name
1483 \end_layout
1484
1485 \end_inset
1486
1487  is used to identify the format internally.
1488  You will also need to enter a file extension.
1489  These are all required.
1490  The optional 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Shortcut
1496 \end_layout
1497
1498 \end_inset
1499
1500  field is used to provide a keyboard shortcut on the menus.
1501  (For example, pressing 
1502 \begin_inset Flex Noun
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 Ctrl+D
1507 \end_layout
1508
1509 \end_inset
1510
1511  will 
1512 \begin_inset Flex Noun
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 Document\SpecialChar menuseparator
1517 View (Other Formats)\SpecialChar menuseparator
1518 DVI
1519 \end_layout
1520
1521 \end_inset
1522
1523 .) 
1524 \end_layout
1525
1526 \begin_layout Standard
1527 A Format can have a 
1528 \begin_inset Flex Noun
1529 status collapsed
1530
1531 \begin_layout Plain Layout
1532 Viewer
1533 \end_layout
1534
1535 \end_inset
1536
1537  and an 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Editor
1543 \end_layout
1544
1545 \end_inset
1546
1547  associated with it.
1548  For example, you might want to use 
1549 \begin_inset Flex Noun
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 Ghostview
1554 \end_layout
1555
1556 \end_inset
1557
1558  to view PostScript files.
1559  You can enter the command needed to start the program in the corresponding
1560  fields.
1561  In defining this command, you can use the four variables listed in the
1562  next section.
1563  The viewer is launched when you view an image in \SpecialChar LyX
1564  or use the 
1565 \begin_inset Flex Noun
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 Document\SpecialChar menuseparator
1570 View
1571 \end_layout
1572
1573 \end_inset
1574
1575  menu.
1576  The editor is for example launched when you right-click on an image and
1577  choose 
1578 \begin_inset Flex Noun
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 Edit externally
1583 \end_layout
1584
1585 \end_inset
1586
1587  in the appearing context menu.
1588 \end_layout
1589
1590 \begin_layout Standard
1591 The 
1592 \begin_inset Flex Noun
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 MIME
1597 \end_layout
1598
1599 \end_inset
1600
1601  type of a format is optional, but if it is specified, it must be unique
1602  across all formats.
1603  It is used to detect files of this format from the file contents.
1604  For some important file formats there is no MIME type officially registered
1605  with the 
1606 \begin_inset CommandInset href
1607 LatexCommand href
1608 name "IANA"
1609 target "http://www.iana.org/assignments/media-types/"
1610 literal "false"
1611
1612 \end_inset
1613
1614 .
1615  Therefore \SpecialChar LyX
1616  uses the extended list of MIME types as specified by 
1617 \begin_inset CommandInset href
1618 LatexCommand href
1619 name "freedesktop.org"
1620 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1621 literal "false"
1622
1623 \end_inset
1624
1625 .
1626 \end_layout
1627
1628 \begin_layout Standard
1629 The 
1630 \begin_inset Flex Noun
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 Document format
1635 \end_layout
1636
1637 \end_inset
1638
1639  option tells \SpecialChar LyX
1640  that a format is suitable for document export.
1641  If this is set and if a suitable conversion route exists (see 
1642 \begin_inset CommandInset ref
1643 LatexCommand ref
1644 reference "sec:Converters"
1645
1646 \end_inset
1647
1648 ), the format will appear in the 
1649 \begin_inset Flex Noun
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 File\SpecialChar menuseparator
1654 Export
1655 \end_layout
1656
1657 \end_inset
1658
1659  menu.
1660  The format will also appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 Document\SpecialChar menuseparator
1666 View
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu if a viewer is specified for the format.
1672  Pure image formats, such as 
1673 \begin_inset Flex Code
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 png
1678 \end_layout
1679
1680 \end_inset
1681
1682 , should not use this option.
1683  Formats that can both represent vector graphics and documents like 
1684 \begin_inset Flex Code
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 pdf
1689 \end_layout
1690
1691 \end_inset
1692
1693  should use it.
1694 \end_layout
1695
1696 \begin_layout Standard
1697 The option 
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Vector graphics format
1703 \end_layout
1704
1705 \end_inset
1706
1707  tells \SpecialChar LyX
1708  that a format can contain vector graphics.
1709  This information is used to determine the target format of included graphics
1710  for 
1711 \begin_inset Flex Noun
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 pdflatex
1716 \end_layout
1717
1718 \end_inset
1719
1720  export.
1721  Included graphics may need to be converted to either 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 pdf
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 png
1737 \end_layout
1738
1739 \end_inset
1740
1741 , or 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 jpg
1747 \end_layout
1748
1749 \end_inset
1750
1751 , since 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 pdflatex
1757 \end_layout
1758
1759 \end_inset
1760
1761  cannot handle other image formats.
1762  If an included graphic is not already in 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 pdf
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Flex Noun
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 png
1778 \end_layout
1779
1780 \end_inset
1781
1782 , or 
1783 \begin_inset Flex Noun
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 jpg
1788 \end_layout
1789
1790 \end_inset
1791
1792  format, it is converted to 
1793 \begin_inset Flex Noun
1794 status collapsed
1795
1796 \begin_layout Plain Layout
1797 pdf
1798 \end_layout
1799
1800 \end_inset
1801
1802  if the vector format option is set, and otherwise to 
1803 \begin_inset Flex Noun
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 png
1808 \end_layout
1809
1810 \end_inset
1811
1812 .
1813 \end_layout
1814
1815 \begin_layout Section
1816 Copiers
1817 \end_layout
1818
1819 \begin_layout Standard
1820 Since all conversions from one format to another take place in \SpecialChar LyX
1821 's temporary
1822  directory, it is sometimes necessary to modify a file before copying it
1823  to the temporary directory in order that the conversion may be performed.
1824 \begin_inset Foot
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 For example, the file may refer to other files—images, for example—using
1829  relative file names, and these may become invalid when the file is copied
1830  to the temporary directory.
1831 \end_layout
1832
1833 \end_inset
1834
1835  This is done by a Copier: It copies a file to (or from) the temporary directory
1836  and may modify it in the process.
1837 \end_layout
1838
1839 \begin_layout Standard
1840 The definitions of the copiers may use eight variables:
1841 \end_layout
1842
1843 \begin_layout Labeling
1844 \labelwidthstring 00.00.0000
1845 \begin_inset Flex Code
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 $$s
1850 \end_layout
1851
1852 \end_inset
1853
1854  The \SpecialChar LyX
1855  system directory (e.
1856 \begin_inset space \thinspace{}
1857 \end_inset
1858
1859 g.
1860 \begin_inset space \space{}
1861 \end_inset
1862
1863
1864 \begin_inset Flex Noun
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 /usr/share/lyx
1869 \end_layout
1870
1871 \end_inset
1872
1873 ).
1874 \end_layout
1875
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 $$i
1883 \end_layout
1884
1885 \end_inset
1886
1887  The input file
1888 \end_layout
1889
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 $$o
1897 \end_layout
1898
1899 \end_inset
1900
1901  The output file
1902 \end_layout
1903
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Flex Code
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 $$b
1911 \end_layout
1912
1913 \end_inset
1914
1915  The base name (without filename extension) in the \SpecialChar LyX
1916  temporary directory
1917 \end_layout
1918
1919 \begin_layout Labeling
1920 \labelwidthstring 00.00.0000
1921 \begin_inset Flex Code
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 $$p
1926 \end_layout
1927
1928 \end_inset
1929
1930  The full directory path of the \SpecialChar LyX
1931  temporary directory
1932 \end_layout
1933
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 $$r
1941 \end_layout
1942
1943 \end_inset
1944
1945  The full pathname to the original \SpecialChar LyX
1946  file being processed
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$f
1956 \end_layout
1957
1958 \end_inset
1959
1960  The filename (without any directory path) of the \SpecialChar LyX
1961  file.
1962 \end_layout
1963
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 $$l
1971 \end_layout
1972
1973 \end_inset
1974
1975  The `\SpecialChar LaTeX
1976  name'
1977 \end_layout
1978
1979 \begin_layout Standard
1980 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1981 's 
1982 \series bold
1983
1984 \backslash
1985 include
1986 \series default
1987  command.
1988  It is relevant only when exporting files suitable for such inclusion.
1989 \end_layout
1990
1991 \begin_layout Standard
1992 Copiers can be used to do almost anything with output files.
1993  For example, suppose you want generated pdf files to be copied to a special
1994  directory, 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 /home/you/pdf/
2000 \end_layout
2001
2002 \end_inset
2003
2004 .
2005  Then you could write a shell script such as this one:
2006 \end_layout
2007
2008 \begin_layout Standard
2009 \begin_inset listings
2010 inline false
2011 status open
2012
2013 \begin_layout Plain Layout
2014
2015 #!/bin/bash
2016 \end_layout
2017
2018 \begin_layout Plain Layout
2019
2020 FROMFILE=$1
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 TOFILE=`basename $2`
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 cp $FROMFILE /home/you/pdf/$TOFILE
2031 \end_layout
2032
2033 \end_inset
2034
2035 Save it in your local \SpecialChar LyX
2036  directory—say, 
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 /home/you/.lyx/scripts/pdfcopier.sh
2042 \end_layout
2043
2044 \end_inset
2045
2046 —and make it executable, if you need to do so on your platform.
2047  Then, in the 
2048 \begin_inset Flex Noun
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Tools\SpecialChar menuseparator
2053 Preferences
2054 \end_layout
2055
2056 \end_inset
2057
2058  dialog, select under 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 File Handling\SpecialChar menuseparator
2064 File formats
2065 \end_layout
2066
2067 \end_inset
2068
2069  the 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 PDF(pdflatex)
2075 \end_layout
2076
2077 \end_inset
2078
2079  format—or one of the other pdf formats—and enter 
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 pdfcopier.sh $$i $$o
2085 \end_layout
2086
2087 \end_inset
2088
2089  into the 
2090 \begin_inset Flex Noun
2091 status collapsed
2092
2093 \begin_layout Plain Layout
2094 Copier
2095 \end_layout
2096
2097 \end_inset
2098
2099  field.
2100  
2101 \end_layout
2102
2103 \begin_layout Standard
2104 Copiers are used by \SpecialChar LyX
2105  in various of its own conversions.
2106  For example, if appropriate programs are found, \SpecialChar LyX
2107  will automatically install
2108  copiers for the 
2109 \begin_inset Flex Noun
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 HTML
2114 \end_layout
2115
2116 \end_inset
2117
2118  and 
2119 \begin_inset Flex Noun
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 HTML
2124 \begin_inset space ~
2125 \end_inset
2126
2127 (MS Word)
2128 \end_layout
2129
2130 \end_inset
2131
2132  formats.
2133  When these formats are exported, the copier sees that not just the main
2134  HTML file but various associated files (style files, images, etc.) are also
2135  copied.
2136  All these files are written to a subdirectory of the directory in which
2137  the original \SpecialChar LyX
2138  file was found.
2139 \begin_inset Foot
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 This copier can be customized.
2144  The optional 
2145 \begin_inset Quotes eld
2146 \end_inset
2147
2148 -e
2149 \begin_inset Quotes erd
2150 \end_inset
2151
2152  argument takes a comma-separated list of extensions to be copied; if it
2153  is omitted, all files will be copied.
2154  The 
2155 \begin_inset Quotes eld
2156 \end_inset
2157
2158 -t
2159 \begin_inset Quotes erd
2160 \end_inset
2161
2162  argument determines the extension added to the generated directory.
2163  By default, it is 
2164 \begin_inset Quotes eld
2165 \end_inset
2166
2167
2168 \begin_inset Flex Noun
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 LyXconv
2173 \end_layout
2174
2175 \end_inset
2176
2177
2178 \begin_inset Quotes erd
2179 \end_inset
2180
2181 , so HTML generated from 
2182 \begin_inset Flex Noun
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 /path/to/filename.lyx
2187 \end_layout
2188
2189 \end_inset
2190
2191  will end up in 
2192 \begin_inset Flex Noun
2193 status collapsed
2194
2195 \begin_layout Plain Layout
2196 /path/to/filename.html.LyXconv
2197 \end_layout
2198
2199 \end_inset
2200
2201 .
2202  
2203 \end_layout
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \begin_layout Section
2211 Converters
2212 \begin_inset CommandInset label
2213 LatexCommand label
2214 name "sec:Converters"
2215
2216 \end_inset
2217
2218
2219 \end_layout
2220
2221 \begin_layout Standard
2222 You can define your own Converters to convert files between different formats.
2223  This is done in the 
2224 \begin_inset Flex Noun
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 Tools\SpecialChar menuseparator
2229 Preferences\SpecialChar menuseparator
2230 File Handling\SpecialChar menuseparator
2231 Converters
2232 \end_layout
2233
2234 \end_inset
2235
2236  dialog.
2237 \end_layout
2238
2239 \begin_layout Standard
2240 To define a new converter, select the 
2241 \begin_inset Flex Noun
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 From
2246 \begin_inset space ~
2247 \end_inset
2248
2249 format
2250 \end_layout
2251
2252 \end_inset
2253
2254  and 
2255 \begin_inset Flex Noun
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 To
2260 \begin_inset space ~
2261 \end_inset
2262
2263 format
2264 \end_layout
2265
2266 \end_inset
2267
2268  from the drop-down lists, enter the command needed for the conversion,
2269  and then press the 
2270 \begin_inset Flex Noun
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 Add
2275 \end_layout
2276
2277 \end_inset
2278
2279  button.
2280  Several variables can be used in the definition of converters:
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$s
2290 \end_layout
2291
2292 \end_inset
2293
2294  The \SpecialChar LyX
2295  system directory
2296 \end_layout
2297
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 $$i
2305 \end_layout
2306
2307 \end_inset
2308
2309  The input file
2310 \end_layout
2311
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 $$o
2319 \end_layout
2320
2321 \end_inset
2322
2323  The output file
2324 \end_layout
2325
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332 $$b
2333 \end_layout
2334
2335 \end_inset
2336
2337  The base filename of the input file (i.
2338 \begin_inset space \thinspace{}
2339 \end_inset
2340
2341 g., without the extension)
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 $$p
2351 \end_layout
2352
2353 \end_inset
2354
2355  The path to the input file
2356 \end_layout
2357
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 $$r
2365 \end_layout
2366
2367 \end_inset
2368
2369  The path to the original input file (this is different from $$p when a
2370  chain of converters is called)
2371 \end_layout
2372
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Flex Code
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379 $$e
2380 \end_layout
2381
2382 \end_inset
2383
2384  The iconv name for the encoding of the document.
2385 \end_layout
2386
2387 \begin_layout Standard
2388 In the 
2389 \begin_inset Flex Noun
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393 Extra
2394 \begin_inset space ~
2395 \end_inset
2396
2397 Flag
2398 \end_layout
2399
2400 \end_inset
2401
2402  field you can enter the following flags, separated by commas:
2403 \end_layout
2404
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 latex
2412 \end_layout
2413
2414 \end_inset
2415
2416  This converter runs some form of \SpecialChar LaTeX
2417 .
2418  This will make \SpecialChar LyX
2419 's \SpecialChar LaTeX
2420  error logs available.
2421 \end_layout
2422
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Flex Code
2426 status collapsed
2427
2428 \begin_layout Plain Layout
2429 needaux
2430 \end_layout
2431
2432 \end_inset
2433
2434  Needs the \SpecialChar LaTeX
2435  
2436 \begin_inset Flex Noun
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 .aux
2441 \end_layout
2442
2443 \end_inset
2444
2445  file for the conversion.
2446 \end_layout
2447
2448 \begin_layout Labeling
2449 \labelwidthstring 00.00.0000
2450 \begin_inset Flex Code
2451 status collapsed
2452
2453 \begin_layout Plain Layout
2454 nice
2455 \end_layout
2456
2457 \end_inset
2458
2459  Needs a 
2460 \begin_inset Quotes eld
2461 \end_inset
2462
2463 nice
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467  file from the backend, which in practice means a \SpecialChar LaTeX
2468  file like the one we
2469  would export, without 
2470 \begin_inset Flex Code
2471 status collapsed
2472
2473 \begin_layout Plain Layout
2474 input@path
2475 \end_layout
2476
2477 \end_inset
2478
2479 .
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 xml
2489 \end_layout
2490
2491 \end_inset
2492
2493  Output is XML.
2494 \end_layout
2495
2496 \begin_layout Standard
2497 The following three flags are not really flags at all because they take
2498  an argument in the 
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 key
2504 \begin_inset space ~
2505 \end_inset
2506
2507 =
2508 \begin_inset space ~
2509 \end_inset
2510
2511 value
2512 \end_layout
2513
2514 \end_inset
2515
2516  format:
2517 \end_layout
2518
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521 \begin_inset Flex Code
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 parselog
2526 \end_layout
2527
2528 \end_inset
2529
2530  If set, the converter's standard error will be redirected to a file 
2531 \begin_inset Flex Code
2532 status collapsed
2533
2534 \begin_layout Plain Layout
2535 infile.out
2536 \end_layout
2537
2538 \end_inset
2539
2540 , and the script given as argument will be run as: 
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 script < infile.out > infile.log
2546 \end_layout
2547
2548 \end_inset
2549
2550 .
2551  The argument may contain 
2552 \begin_inset Flex Code
2553 status collapsed
2554
2555 \begin_layout Plain Layout
2556 $$s
2557 \end_layout
2558
2559 \end_inset
2560
2561 .
2562 \end_layout
2563
2564 \begin_layout Labeling
2565 \labelwidthstring 00.00.0000
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 resultdir
2571 \end_layout
2572
2573 \end_inset
2574
2575  The name of the directory in which the converter will dump the generated
2576  files.
2577  \SpecialChar LyX
2578  will not create this directory, and it does not copy anything into it,
2579  though it will copy this directory to the destination.
2580  The argument may contain 
2581 \begin_inset Flex Code
2582 status collapsed
2583
2584 \begin_layout Plain Layout
2585 $$b
2586 \end_layout
2587
2588 \end_inset
2589
2590 , which will be replaced by the base name of the input and output files,
2591  respectively, when the directory is copied.
2592 \begin_inset Newline newline
2593 \end_inset
2594
2595 Note that resultdir and usetempdir make no sense together.
2596  The latter will be ignored if the former is given.
2597 \end_layout
2598
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 resultfile
2606 \end_layout
2607
2608 \end_inset
2609
2610  Determines the output file name and may, contain 
2611 \begin_inset Flex Code
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 $$b
2616 \end_layout
2617
2618 \end_inset
2619
2620 .
2621  Sensible only with resultdir and optional even then; if not given, it defaults
2622  to `index'.
2623 \end_layout
2624
2625 \begin_layout Standard
2626 None of these last three are presently used in any of the converters that
2627  are installed with \SpecialChar LyX
2628 .
2629  
2630 \end_layout
2631
2632 \begin_layout Standard
2633 You do not have to define converters for all formats between which you want
2634  to convert.
2635  For example, you will note that there is no `\SpecialChar LyX
2636  to PostScript' converter,
2637  but \SpecialChar LyX
2638  will export PostScript.
2639  It does so by first creating a \SpecialChar LaTeX
2640  file (no converter needs to be defined
2641  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2642  to DVI' converter,
2643  and finally converting the resulting DVI file to PostScript.
2644  \SpecialChar LyX
2645  finds such `chains' of converters automatically, and it will always choose
2646  the shortest possible chain.
2647  You can, though, still define multiple conversion methods between file
2648  formats.
2649  For example, the standard \SpecialChar LyX
2650  configuration provides five ways to convert
2651  \SpecialChar LaTeX
2652  to PDF:
2653 \end_layout
2654
2655 \begin_layout Enumerate
2656 Directly, using 
2657 \begin_inset Flex Noun
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 pdflatex
2662 \end_layout
2663
2664 \end_inset
2665
2666
2667 \end_layout
2668
2669 \begin_layout Enumerate
2670 via (DVI and) PostScript, using 
2671 \begin_inset Flex Noun
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 ps2pdf
2676 \end_layout
2677
2678 \end_inset
2679
2680
2681 \end_layout
2682
2683 \begin_layout Enumerate
2684 via DVI, using 
2685 \begin_inset Flex Noun
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 dvipdfm
2690 \end_layout
2691
2692 \end_inset
2693
2694
2695 \end_layout
2696
2697 \begin_layout Enumerate
2698 directly using 
2699 \begin_inset Flex Noun
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 Xe\SpecialChar TeX
2704
2705 \end_layout
2706
2707 \end_inset
2708
2709
2710 \end_layout
2711
2712 \begin_layout Enumerate
2713 directly using 
2714 \begin_inset Flex Noun
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Lua\SpecialChar TeX
2719
2720 \end_layout
2721
2722 \end_inset
2723
2724
2725 \end_layout
2726
2727 \begin_layout Standard
2728 To define such alternate chains, you must define multiple target `file formats',
2729  as described in 
2730 \begin_inset CommandInset ref
2731 LatexCommand ref
2732 reference "sec:Formats"
2733
2734 \end_inset
2735
2736 .
2737  For example, in the standard configuration, the formats named 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 pdf
2743 \end_layout
2744
2745 \end_inset
2746
2747  (for 
2748 \begin_inset Flex Noun
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 ps2pdf
2753 \end_layout
2754
2755 \end_inset
2756
2757 ), 
2758 \begin_inset Flex Noun
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 pdf2
2763 \end_layout
2764
2765 \end_inset
2766
2767  (for 
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 pdflatex
2773 \end_layout
2774
2775 \end_inset
2776
2777 ), 
2778 \begin_inset Flex Noun
2779 status collapsed
2780
2781 \begin_layout Plain Layout
2782 pdf3
2783 \end_layout
2784
2785 \end_inset
2786
2787  (for 
2788 \begin_inset Flex Noun
2789 status collapsed
2790
2791 \begin_layout Plain Layout
2792 dvipdfm
2793 \end_layout
2794
2795 \end_inset
2796
2797 ), 
2798 \begin_inset Flex Noun
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 pdf4
2803 \end_layout
2804
2805 \end_inset
2806
2807  (for 
2808 \begin_inset Flex Noun
2809 status collapsed
2810
2811 \begin_layout Plain Layout
2812 Xe\SpecialChar TeX
2813
2814 \end_layout
2815
2816 \end_inset
2817
2818 ), and 
2819 \begin_inset Flex Noun
2820 status collapsed
2821
2822 \begin_layout Plain Layout
2823 pdf5
2824 \end_layout
2825
2826 \end_inset
2827
2828  (for 
2829 \begin_inset Flex Noun
2830 status collapsed
2831
2832 \begin_layout Plain Layout
2833 Lua\SpecialChar TeX
2834
2835 \end_layout
2836
2837 \end_inset
2838
2839 ) are defined, all of which share the extension 
2840 \begin_inset Flex Noun
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 .pdf
2845 \end_layout
2846
2847 \end_inset
2848
2849 , and which correspond to the conversion methods just mentioned.
2850 \end_layout
2851
2852 \begin_layout Chapter
2853 Internationalizing \SpecialChar LyX
2854
2855 \begin_inset CommandInset label
2856 LatexCommand label
2857 name "cha:Internationalizing-LyX"
2858
2859 \end_inset
2860
2861
2862 \end_layout
2863
2864 \begin_layout Standard
2865 \SpecialChar LyX
2866  supports using a translated interface.
2867  Last time we checked, \SpecialChar LyX
2868  provided text in thirty languages.
2869  The language of choice is called your 
2870 \emph on
2871 locale
2872 \emph default
2873 .
2874  (For further reading on locale settings, see also the documentation for
2875  locale that comes with your operating system.
2876  For Linux, the manual page for 
2877 \begin_inset Flex Code
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 locale(5)
2882 \end_layout
2883
2884 \end_inset
2885
2886  could be a good place to start).
2887 \end_layout
2888
2889 \begin_layout Standard
2890 Notice that these translations will work, but do contain a few flaws.
2891  In particular, all dialogs have been designed with the English text in
2892  mind, which means that some of the translated text will be too large to
2893  fit within the space allocated.
2894  This is only a display problem and will not cause any harm.
2895  Also, you will find that some of the translations do not define shortcut
2896  keys for everything.
2897  Sometimes, there are simply not enough free letters to do it.
2898  Other times, the translator just hasn't got around to doing it yet.
2899  Our localization team, which you may wish to join,
2900 \begin_inset Foot
2901 status collapsed
2902
2903 \begin_layout Plain Layout
2904 If you are a fluent speaker of a language other than English, joining these
2905  teams is a great way to give back to the \SpecialChar LyX
2906  community!
2907 \end_layout
2908
2909 \end_inset
2910
2911  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2912 .
2913 \end_layout
2914
2915 \begin_layout Section
2916 Translating \SpecialChar LyX
2917
2918 \end_layout
2919
2920 \begin_layout Subsection
2921 Translating the graphical user interface (text messages).
2922 \end_layout
2923
2924 \begin_layout Standard
2925 \SpecialChar LyX
2926  uses the GNU 
2927 \begin_inset Flex Code
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 gettext
2932 \end_layout
2933
2934 \end_inset
2935
2936  library to handle the internationalization of the interface.
2937  To have \SpecialChar LyX
2938  speak your favorite language in all menus and dialogs, you need
2939  a 
2940 \begin_inset Flex Code
2941 status collapsed
2942
2943 \begin_layout Plain Layout
2944 po
2945 \end_layout
2946
2947 \end_inset
2948
2949 -file for that language.
2950  When this is available, you'll have to generate a 
2951 \begin_inset Flex Code
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 mo
2956 \end_layout
2957
2958 \end_inset
2959
2960 -file from it and install the 
2961 \begin_inset Flex Code
2962 status collapsed
2963
2964 \begin_layout Plain Layout
2965 mo
2966 \end_layout
2967
2968 \end_inset
2969
2970 -file.
2971  The process of doing all of this is explained in the documentation for
2972  GNU 
2973 \begin_inset Flex Code
2974 status collapsed
2975
2976 \begin_layout Plain Layout
2977 gettext
2978 \end_layout
2979
2980 \end_inset
2981
2982 .
2983  It is possible to do this just for yourself, but if you're going to do
2984  it, you might as well share the results of your labors with the rest of
2985  the \SpecialChar LyX
2986  community.
2987  Send a message to the \SpecialChar LyX
2988  developers' list for more information about how
2989  to proceed.
2990 \end_layout
2991
2992 \begin_layout Standard
2993 In short, this is what you should do (xx denotes the language code):
2994 \end_layout
2995
2996 \begin_layout Itemize
2997 Check out the \SpecialChar LyX
2998  source code.
2999  (See the 
3000 \begin_inset CommandInset href
3001 LatexCommand href
3002 name "information on the web"
3003 target "https://www.lyx.org/HowToUseGIT"
3004 literal "false"
3005
3006 \end_inset
3007
3008 .)
3009 \end_layout
3010
3011 \begin_layout Itemize
3012 Copy the file 
3013 \begin_inset Flex Code
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 lyx.pot
3018 \end_layout
3019
3020 \end_inset
3021
3022  to the folder of the 
3023 \begin_inset Flex Code
3024 status collapsed
3025
3026 \begin_layout Plain Layout
3027 **.po
3028 \end_layout
3029
3030 \end_inset
3031
3032  files.
3033  Then rename it to 
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 xx.po
3039 \end_layout
3040
3041 \end_inset
3042
3043 .
3044  (If 
3045 \begin_inset Flex Code
3046 status collapsed
3047
3048 \begin_layout Plain Layout
3049 lyx.pot
3050 \end_layout
3051
3052 \end_inset
3053
3054  doesn't exist anywhere, it can be remade with the console command 
3055 \begin_inset Flex Code
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059 make lyx.pot
3060 \end_layout
3061
3062 \end_inset
3063
3064  in that directory, or you can use an existing po-file for some other language
3065  as a template).
3066 \end_layout
3067
3068 \begin_layout Itemize
3069 Edit 
3070 \begin_inset Flex Code
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 xx.po
3075 \end_layout
3076
3077 \end_inset
3078
3079 .
3080 \begin_inset Foot
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084 This is just a text file, so it can be edited in any text editor.
3085  But there are also specialized programs that support such editing, such
3086  as 
3087 \family typewriter
3088 Poedit
3089 \family default
3090  (for all platforms) or 
3091 \family typewriter
3092 KBabel
3093 \family default
3094  (for KDE).
3095  
3096 \family typewriter
3097 Emacs
3098 \family default
3099  contains a `mode' for editing 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 po
3105 \end_layout
3106
3107 \end_inset
3108
3109  files, as well, see 
3110 \begin_inset Flex URL
3111 status open
3112
3113 \begin_layout Plain Layout
3114
3115 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3116 \backslash
3117 #PO-Mode
3118 \end_layout
3119
3120 \end_inset
3121
3122 .
3123 \end_layout
3124
3125 \end_inset
3126
3127  For some menu- and widget-labels, there are also shortcut keys that should
3128  be translated.
3129  Those keys are marked after a `|', and should be translated according to
3130  the words and phrases of the language.
3131  You should also fill also out the information at the beginning of the new
3132  
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 po
3138 \end_layout
3139
3140 \end_inset
3141
3142 -file with your email-address, etc., so people know where to reach you with
3143  suggestions and entertaining flames.
3144 \end_layout
3145
3146 \begin_layout Standard
3147 If you are just doing this on your own, then:
3148 \end_layout
3149
3150 \begin_layout Itemize
3151 Generate 
3152 \begin_inset Flex Code
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 xx.mo
3157 \end_layout
3158
3159 \end_inset
3160
3161 .
3162  This can be done with 
3163 \begin_inset Flex Code
3164 status collapsed
3165
3166 \begin_layout Plain Layout
3167 msgfmt -o xx.mo < xx.po
3168 \end_layout
3169
3170 \end_inset
3171
3172 .
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 Copy the 
3177 \begin_inset Flex Code
3178 status collapsed
3179
3180 \begin_layout Plain Layout
3181 mo
3182 \end_layout
3183
3184 \end_inset
3185
3186 -file to your locale-tree, at the correct directory for application messages
3187  for the language
3188 \series bold
3189  
3190 \series default
3191 xx, and under the name 
3192 \begin_inset Flex Code
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 lyx.mo
3197 \end_layout
3198
3199 \end_inset
3200
3201  (e.
3202 \begin_inset space \thinspace{}
3203 \end_inset
3204
3205 g.
3206 \begin_inset space \space{}
3207 \end_inset
3208
3209
3210 \begin_inset Flex Code
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3215 \end_layout
3216
3217 \end_inset
3218
3219
3220 \series bold
3221 .
3222 \end_layout
3223
3224 \begin_layout Standard
3225 As said, however, it would be best if the new 
3226 \begin_inset Flex Code
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230 po
3231 \end_layout
3232
3233 \end_inset
3234
3235  file could be added to the \SpecialChar LyX
3236  distribution, so others can use it.
3237  Adding it involves making additional changes to \SpecialChar LyX
3238 .
3239  So send an email to the developers' mailing list if you're interested in
3240  doing that.
3241 \end_layout
3242
3243 \begin_layout Subsubsection
3244 Ambiguous messages
3245 \end_layout
3246
3247 \begin_layout Standard
3248 Sometimes it turns out that one English message needs to be translated into
3249  different messages in the target language.
3250  One example is the message 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 To
3256 \end_layout
3257
3258 \end_inset
3259
3260  which has the German translation 
3261 \lang german
3262 Nach
3263 \lang english
3264  or 
3265 \lang german
3266 Bis
3267 \lang english
3268 , depending upon exactly what the English 
3269 \begin_inset Quotes eld
3270 \end_inset
3271
3272 to
3273 \begin_inset Quotes erd
3274 \end_inset
3275
3276  means.
3277  GNU 
3278 \begin_inset Flex Code
3279 status collapsed
3280
3281 \begin_layout Plain Layout
3282 gettext
3283 \end_layout
3284
3285 \end_inset
3286
3287  does not handle such ambiguous translations.
3288  Therefore you have to add some context information to the message: Instead
3289  of 
3290 \begin_inset Flex Code
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 To
3295 \end_layout
3296
3297 \end_inset
3298
3299  it becomes 
3300 \begin_inset Flex Code
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 To[[as in 'From format x to format y']]
3305 \end_layout
3306
3307 \end_inset
3308
3309  and 
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314 To[[as in 'From page x to page y']].
3315 \end_layout
3316
3317 \end_inset
3318
3319  Now the two occurrences of 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 To
3325 \end_layout
3326
3327 \end_inset
3328
3329  are different for 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 gettext
3335 \end_layout
3336
3337 \end_inset
3338
3339  and can be translated correctly to 
3340 \lang german
3341 Nach
3342 \lang english
3343  and 
3344 \lang german
3345 Bis
3346 \lang english
3347 , respectively.
3348 \end_layout
3349
3350 \begin_layout Standard
3351 Of course the context information needs to be stripped off the original
3352  message when no translation is used.
3353  Therefore you have to put it in double square brackets at the end of the
3354  message (see the example above).
3355  The translation mechanism of \SpecialChar LyX
3356  ensures that everything in double square
3357  brackets at the end of messages is removed before displaying the message.
3358 \end_layout
3359
3360 \begin_layout Subsection
3361 Translating the documentation.
3362 \end_layout
3363
3364 \begin_layout Standard
3365 The online documentation (in the 
3366 \begin_inset Flex Noun
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 Help
3371 \end_layout
3372
3373 \end_inset
3374
3375 -menu) can (and should!) be translated.
3376  If there are translated versions of the documentation available
3377 \begin_inset Foot
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 As of March 2008, at least some of the documents have been translated into
3382  fourteen languages, with the Tutorial available in a few more.
3383 \end_layout
3384
3385 \end_inset
3386
3387  and the locale is set accordingly, these will be used automagically by
3388  \SpecialChar LyX
3389 .
3390  \SpecialChar LyX
3391  looks for translated versions as 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 LyXDir/doc/xx/DocName.lyx
3397 \end_layout
3398
3399 \end_inset
3400
3401 , where 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 xx
3407 \end_layout
3408
3409 \end_inset
3410
3411  is the code for the language currently in use.
3412  If there are no translated documents, the default English versions will
3413  be displayed.
3414  Note that the translated versions must have the same filenames (
3415 \begin_inset Flex Code
3416 status collapsed
3417
3418 \begin_layout Plain Layout
3419 DocName
3420 \end_layout
3421
3422 \end_inset
3423
3424  above) as the original.
3425  If you feel up to translating the documentation (an excellent way to proof-read
3426  the original documentation by the way!), there are a few things you should
3427  do right away:
3428 \end_layout
3429
3430 \begin_layout Itemize
3431 Check out the documentation translation web page at 
3432 \begin_inset CommandInset href
3433 LatexCommand href
3434 name "https://www.lyx.org/Translation"
3435 target "https://www.lyx.org/Translation"
3436 literal "false"
3437
3438 \end_inset
3439
3440 .
3441  That way, you can find out which (if any) documents have already been translate
3442 d into your language.
3443  You can also find out who (if anyone) is organizing the effort to translate
3444  the documentation into your language.
3445  If no one is organizing the effort, please let us know that you're interested.
3446 \end_layout
3447
3448 \begin_layout Standard
3449 Once you get to actually translating, here's a few hints for you that may
3450  save you trouble:
3451 \end_layout
3452
3453 \begin_layout Itemize
3454 Join the documentation team! There is information on how to do that in 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459 Intro.lyx
3460 \end_layout
3461
3462 \end_inset
3463
3464  (
3465 \begin_inset Flex Noun
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 Help\SpecialChar menuseparator
3470 Introduction
3471 \end_layout
3472
3473 \end_inset
3474
3475 ), which by the way is the first document you should translate.
3476 \end_layout
3477
3478 \begin_layout Itemize
3479 Learn the typographic conventions for the language you are translating to.
3480  Typography is an ancient art and over the centuries, a great variety of
3481  conventions have developed throughout different parts of the world.
3482  Also study the professional terminology amongst typographers in your country.
3483  Inventing your own terminology will only confuse the users.
3484  
3485 \emph on
3486 (Warning! Typography is addictive!)
3487 \end_layout
3488
3489 \begin_layout Itemize
3490 Make a copy of the document.
3491  This will be your working copy.
3492  You can use this as your personal translated help-file by placing it in
3493  your 
3494 \begin_inset Flex Code
3495 status collapsed
3496
3497 \begin_layout Plain Layout
3498 UserDir/doc/xx/
3499 \end_layout
3500
3501 \end_inset
3502
3503  directory.
3504 \begin_inset Note Greyedout
3505 status open
3506
3507 \begin_layout Plain Layout
3508
3509 \series bold
3510 Note:
3511 \series default
3512  For a complex document with external material (images, etc.), if you make
3513  a copy e.
3514 \begin_inset space \thinspace{}
3515 \end_inset
3516
3517 g.
3518 \begin_inset space \space{}
3519 \end_inset
3520
3521 in a temp dir, beware that the links to external material may be broken
3522  when the document is moved to a different place.
3523  The best way is to retrieve the \SpecialChar LyX
3524  tree from git (see 
3525 \begin_inset Flex URL
3526 status collapsed
3527
3528 \begin_layout Plain Layout
3529
3530 https://www.lyx.org/HowToUseGIT
3531 \end_layout
3532
3533 \end_inset
3534
3535 ) and to edit the doc file in place.
3536 \end_layout
3537
3538 \end_inset
3539
3540
3541 \end_layout
3542
3543 \begin_layout Itemize
3544 Sometimes the original document (from the \SpecialChar LyX
3545  team) will be updated.
3546  Use the source viewer at 
3547 \begin_inset CommandInset href
3548 LatexCommand href
3549 name "https://www.lyx.org/trac/timeline"
3550 target "https://www.lyx.org/trac/timeline"
3551 literal "false"
3552
3553 \end_inset
3554
3555  to see what has been changed.
3556  That way you can easily see which parts of the translated document need
3557  to be updated.
3558 \end_layout
3559
3560 \begin_layout Standard
3561 If you ever find an error in the original document, fix it and notify the
3562  rest of the documentation team of the changes! (You didn't forget to join
3563  the documentation team, did you?)
3564 \end_layout
3565
3566 \begin_layout Standard
3567 \begin_inset Branch OutDated
3568 inverted 0
3569 status collapsed
3570
3571 \begin_layout Section
3572 International Keyboard Support
3573 \end_layout
3574
3575 \begin_layout Standard
3576
3577 \emph on
3578 [Editor's Note: The following section is by
3579 \emph default
3580  
3581 \shape smallcaps
3582 \emph on
3583 Ivan Schreter
3584 \shape default
3585 .
3586  It needs to be fixed to conform to the new Documentation Style sheet and
3587  to make use of the new v1.0 features.
3588  The whole thing also needs to be merged with the section following it.-jw
3589  It may also be badly out of date.-rh (2008)]
3590 \end_layout
3591
3592 \begin_layout Subsection
3593 Defining Own Keymaps: Keymap File Format
3594 \end_layout
3595
3596 \begin_layout Standard
3597 Let's look at a keyboard definition file a little closer.
3598  It is a plain text file defining
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 key-to-key or key-to-string translations
3603 \end_layout
3604
3605 \begin_layout Itemize
3606 dead keys
3607 \end_layout
3608
3609 \begin_layout Itemize
3610 dead keys exceptions
3611 \end_layout
3612
3613 \begin_layout Standard
3614 To define key-to-key or key-to-string translation, use this command:
3615 \end_layout
3616
3617 \begin_layout Quotation
3618 \begin_inset Flex Code
3619 status collapsed
3620
3621 \begin_layout Plain Layout
3622
3623 \backslash
3624 kmap
3625 \end_layout
3626
3627 \end_inset
3628
3629  
3630 \begin_inset Flex Code
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634 key
3635 \end_layout
3636
3637 \end_inset
3638
3639  outstring 
3640 \end_layout
3641
3642 \begin_layout Standard
3643 where 
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 key
3649 \end_layout
3650
3651 \end_inset
3652
3653  is the key to be translated and 
3654 \begin_inset Flex Code
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 outstring
3659 \end_layout
3660
3661 \end_inset
3662
3663  is the string to be inserted into the document.
3664  To define dead keys, use:
3665 \end_layout
3666
3667 \begin_layout Quotation
3668 \begin_inset Flex Code
3669 status collapsed
3670
3671 \begin_layout Plain Layout
3672
3673 \backslash
3674 kmod
3675 \end_layout
3676
3677 \end_inset
3678
3679  
3680 \begin_inset Flex Code
3681 status collapsed
3682
3683 \begin_layout Plain Layout
3684 key
3685 \end_layout
3686
3687 \end_inset
3688
3689  deadkey
3690 \end_layout
3691
3692 \begin_layout Standard
3693 where 
3694 \begin_inset Flex Code
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698 key
3699 \end_layout
3700
3701 \end_inset
3702
3703  is a keyboard key and 
3704 \begin_inset Flex Code
3705 status collapsed
3706
3707 \begin_layout Plain Layout
3708 deadkey
3709 \end_layout
3710
3711 \end_inset
3712
3713  is dead key name.
3714  The following dead keys are supported (shortcut name is in parentheses):
3715 \end_layout
3716
3717 \begin_layout Quotation
3718
3719 \emph on
3720 Name
3721 \begin_inset space \hfill{}
3722 \end_inset
3723
3724 Example
3725 \end_layout
3726
3727 \begin_layout Quotation
3728 acute (acu)
3729 \begin_inset space \hfill{}
3730 \end_inset
3731
3732 áéíóú
3733 \end_layout
3734
3735 \begin_layout Quotation
3736 grave (gra)
3737 \begin_inset space \hfill{}
3738 \end_inset
3739
3740 àèìòù
3741 \end_layout
3742
3743 \begin_layout Quotation
3744 macron (mac)
3745 \begin_inset space \hfill{}
3746 \end_inset
3747
3748  ō
3749 \end_layout
3750
3751 \begin_layout Quotation
3752 tilde (til)
3753 \begin_inset space \hfill{}
3754 \end_inset
3755
3756 ñÑ
3757 \end_layout
3758
3759 \begin_layout Quotation
3760 underbar (underb)
3761 \begin_inset space \hfill{}
3762 \end_inset
3763
3764
3765 \begin_inset ERT
3766 status open
3767
3768 \begin_layout Plain Layout
3769
3770
3771 \backslash
3772 b o
3773 \end_layout
3774
3775 \end_inset
3776
3777
3778 \end_layout
3779
3780 \begin_layout Quotation
3781 cedilla (ced)
3782 \begin_inset space \hfill{}
3783 \end_inset
3784
3785 çÇ
3786 \end_layout
3787
3788 \begin_layout Quotation
3789 underdot (underd)
3790 \begin_inset space \hfill{}
3791 \end_inset
3792
3793
3794 \begin_inset ERT
3795 status open
3796
3797 \begin_layout Plain Layout
3798
3799
3800 \backslash
3801 d o
3802 \end_layout
3803
3804 \end_inset
3805
3806
3807 \end_layout
3808
3809 \begin_layout Quotation
3810 circumflex (circu)
3811 \begin_inset space \hfill{}
3812 \end_inset
3813
3814 âêîôû
3815 \end_layout
3816
3817 \begin_layout Quotation
3818 circle (circl)
3819 \begin_inset space \hfill{}
3820 \end_inset
3821
3822 ÅůŮ
3823 \end_layout
3824
3825 \begin_layout Quotation
3826 tie (tie)
3827 \begin_inset space \hfill{}
3828 \end_inset
3829
3830
3831 \begin_inset ERT
3832 status open
3833
3834 \begin_layout Plain Layout
3835
3836
3837 \backslash
3838 t o
3839 \end_layout
3840
3841 \end_inset
3842
3843
3844 \end_layout
3845
3846 \begin_layout Quotation
3847 breve (bre)
3848 \begin_inset space \hfill{}
3849 \end_inset
3850
3851 ă
3852 \begin_inset ERT
3853 status open
3854
3855 \begin_layout Plain Layout
3856
3857
3858 \backslash
3859 u o
3860 \end_layout
3861
3862 \end_inset
3863
3864
3865 \end_layout
3866
3867 \begin_layout Quotation
3868 caron (car)
3869 \begin_inset space \hfill{}
3870 \end_inset
3871
3872 čšž
3873 \end_layout
3874
3875 \begin_layout Quotation
3876 hungarian umlaut (hug)
3877 \begin_inset space \hfill{}
3878 \end_inset
3879
3880 őű
3881 \end_layout
3882
3883 \begin_layout Quotation
3884 umlaut (uml)
3885 \begin_inset space \hfill{}
3886 \end_inset
3887
3888 äöü
3889 \end_layout
3890
3891 \begin_layout Quotation
3892 dot (dot)
3893 \begin_inset space \hfill{}
3894 \end_inset
3895
3896 ż
3897 \begin_inset ERT
3898 status open
3899
3900 \begin_layout Plain Layout
3901
3902
3903 \backslash
3904 .s
3905 \end_layout
3906
3907 \end_inset
3908
3909
3910 \end_layout
3911
3912 \begin_layout Standard
3913 Since in many international keyboards there are exceptions to what some
3914  dead keys should do, you can define them using
3915 \end_layout
3916
3917 \begin_layout Quotation
3918 \begin_inset Flex Code
3919 status collapsed
3920
3921 \begin_layout Plain Layout
3922
3923 \backslash
3924 kxmod
3925 \end_layout
3926
3927 \end_inset
3928
3929  deadkey key outstring
3930 \end_layout
3931
3932 \begin_layout Standard
3933 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3934 , so you put in
3935 \end_layout
3936
3937 \begin_layout Quotation
3938 \begin_inset Flex Code
3939 status collapsed
3940
3941 \begin_layout Plain Layout
3942
3943 \backslash
3944 kxmod
3945 \end_layout
3946
3947 \end_inset
3948
3949  caron o "
3950 \backslash
3951 ^o"
3952 \end_layout
3953
3954 \begin_layout Standard
3955 to make it work correctly.
3956  Also, you have to define as exceptions dead keys over i and j, to remove
3957  the dot from them before inserting an accent mark.
3958  I will change this when the time comes, but so far I haven't had time.
3959 \end_layout
3960
3961 \begin_layout Standard
3962 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3963  double backslash.
3964  Also, quotes and 
3965 \begin_inset Flex Code
3966 status collapsed
3967
3968 \begin_layout Plain Layout
3969 #
3970 \end_layout
3971
3972 \end_inset
3973
3974  have different meaning.
3975  
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 #
3981 \end_layout
3982
3983 \end_inset
3984
3985  marks comments, quotes start and end \SpecialChar LaTeX
3986 -style commands.
3987  To enter quote, you'll need to use 
3988 \begin_inset Flex Code
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992
3993 \backslash
3994 "
3995 \end_layout
3996
3997 \end_inset
3998
3999 , to enter 
4000 \begin_inset Flex Code
4001 status collapsed
4002
4003 \begin_layout Plain Layout
4004 #
4005 \end_layout
4006
4007 \end_inset
4008
4009 , use 
4010 \begin_inset Flex Code
4011 status collapsed
4012
4013 \begin_layout Plain Layout
4014
4015 \backslash
4016 #
4017 \end_layout
4018
4019 \end_inset
4020
4021 .
4022 \end_layout
4023
4024 \begin_layout Standard
4025 If you make a keyboard description file that works for your language, please
4026  mail it to me, so I can include it in the next keymap distribution.
4027 \end_layout
4028
4029 \begin_layout Standard
4030 More keywords will be supported in keymap configuration file in future,
4031  like
4032 \end_layout
4033
4034 \begin_layout Itemize
4035 \begin_inset Flex Code
4036 status collapsed
4037
4038 \begin_layout Plain Layout
4039
4040 \backslash
4041 kinclude filename
4042 \end_layout
4043
4044 \end_inset
4045
4046
4047 \emph on
4048
4049 \begin_inset space \hfill{}
4050 \end_inset
4051
4052
4053 \begin_inset Flex Code
4054 status collapsed
4055
4056 \begin_layout Plain Layout
4057 include
4058 \end_layout
4059
4060 \end_inset
4061
4062  another file
4063 \end_layout
4064
4065 \begin_layout Itemize
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070
4071 \backslash
4072 kprog program
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \emph on
4079
4080 \begin_inset space \hfill{}
4081 \end_inset
4082
4083
4084 \begin_inset Flex Code
4085 status collapsed
4086
4087 \begin_layout Plain Layout
4088 define
4089 \end_layout
4090
4091 \end_inset
4092
4093  an external keymap translation program 
4094 \end_layout
4095
4096 \begin_layout Standard
4097 Also, it should look into 
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102 lyxrc
4103 \end_layout
4104
4105 \end_inset
4106
4107  file for defaults, too (for example, a 
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112
4113 \backslash
4114 kinclude
4115 \end_layout
4116
4117 \end_inset
4118
4119  option to include default keyboard).
4120 \end_layout
4121
4122 \end_inset
4123
4124
4125 \end_layout
4126
4127 \begin_layout Section
4128 International Keymap Stuff
4129 \begin_inset CommandInset label
4130 LatexCommand label
4131 name "sec:International-Keymap-Stuff"
4132
4133 \end_inset
4134
4135
4136 \end_layout
4137
4138 \begin_layout Standard
4139 \begin_inset Note Note
4140 status open
4141
4142 \begin_layout Plain Layout
4143 In doing the revisions on this document in March 2008, I did not look over
4144  this stuff, as I do not understand it.
4145  It would be good if someone else could do so.
4146  (RH)
4147 \end_layout
4148
4149 \end_inset
4150
4151
4152 \end_layout
4153
4154 \begin_layout Standard
4155 The next two sections describe the 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \shape up
4162 .kmap
4163 \end_layout
4164
4165 \end_inset
4166
4167  and 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172
4173 \shape up
4174 .cdef
4175 \end_layout
4176
4177 \end_inset
4178
4179  file syntax in detail.
4180  These sections should help you design your own key map if the ones provided
4181  do not meet your needs.
4182 \end_layout
4183
4184 \begin_layout Subsection
4185 The .kmap File
4186 \end_layout
4187
4188 \begin_layout Standard
4189
4190 \shape up
4191 .
4192 \begin_inset Flex Code
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196 kmap
4197 \end_layout
4198
4199 \end_inset
4200
4201  file maps keystrokes to characters or strings.
4202  As the name suggests, it sets a keyboard mapping.
4203  The 
4204 \begin_inset Flex Code
4205 status collapsed
4206
4207 \begin_layout Plain Layout
4208 .kmap
4209 \end_layout
4210
4211 \end_inset
4212
4213
4214 \shape default
4215  file keywords 
4216 \shape up
4217
4218 \begin_inset Flex Code
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222
4223 \shape up
4224 kmap
4225 \end_layout
4226
4227 \end_inset
4228
4229
4230 \shape default
4231 ,
4232 \shape up
4233  
4234 \shape default
4235
4236 \begin_inset Flex Code
4237 status collapsed
4238
4239 \begin_layout Plain Layout
4240
4241 \shape up
4242 kmod
4243 \end_layout
4244
4245 \end_inset
4246
4247 ,
4248 \shape up
4249  
4250 \shape default
4251
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256
4257 \shape up
4258 kxmod
4259 \end_layout
4260
4261 \end_inset
4262
4263 , and 
4264 \begin_inset Flex Code
4265 status collapsed
4266
4267 \begin_layout Plain Layout
4268
4269 \shape up
4270 kcomb
4271 \end_layout
4272
4273 \end_inset
4274
4275  are described in this section.
4276 \end_layout
4277
4278 \begin_layout Labeling
4279 \labelwidthstring 00.00.0000
4280 \begin_inset Flex Code
4281 status collapsed
4282
4283 \begin_layout Plain Layout
4284
4285 \shape up
4286 kmap
4287 \end_layout
4288
4289 \end_inset
4290
4291  Map a character to a string
4292 \end_layout
4293
4294 \begin_layout LyX-Code
4295
4296 \backslash
4297 kmap 
4298 \family roman
4299 \emph on
4300 char
4301 \family default
4302 \emph default
4303  
4304 \family roman
4305 \emph on
4306 string
4307 \end_layout
4308
4309 \begin_layout Standard
4310 This will ma
4311 \family roman
4312 p
4313 \family default
4314  
4315 \family roman
4316 \emph on
4317 char
4318 \family default
4319 \emph default
4320  
4321 \family roman
4322 to
4323 \family default
4324  
4325 \family roman
4326 \emph on
4327 string
4328 \emph default
4329 .
4330  Note that in
4331 \family default
4332  
4333 \family roman
4334 \emph on
4335 string
4336 \emph default
4337 ,
4338 \family default
4339  
4340 \family roman
4341 \shape up
4342 the double-quote (")
4343 \family default
4344 \shape default
4345  
4346 \family roman
4347 and
4348 \family default
4349  
4350 \family roman
4351 \shape up
4352 the backslash (
4353 \backslash
4354 )
4355 \family default
4356 \shape default
4357  
4358 \family roman
4359 must be escaped with a preceding backslash (
4360 \shape up
4361
4362 \backslash
4363
4364 \shape default
4365 )
4366 \family default
4367 .
4368 \end_layout
4369
4370 \begin_layout Standard
4371 An example of a 
4372 \begin_inset Flex Noun
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376
4377 \shape up
4378 kmap
4379 \end_layout
4380
4381 \end_inset
4382
4383  statement to cause the symbol 
4384 \begin_inset Flex Noun
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388
4389 \shape up
4390 /
4391 \end_layout
4392
4393 \end_inset
4394
4395  to be output for the keystroke 
4396 \begin_inset Flex Noun
4397 status collapsed
4398
4399 \begin_layout Plain Layout
4400
4401 \shape up
4402 &
4403 \end_layout
4404
4405 \end_inset
4406
4407  is:
4408 \end_layout
4409
4410 \begin_layout LyX-Code
4411
4412 \backslash
4413 kmap & /
4414 \end_layout
4415
4416 \begin_layout Labeling
4417 \labelwidthstring 00.00.0000
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422
4423 \shape up
4424 kmod
4425 \end_layout
4426
4427 \end_inset
4428
4429  Specify an accent character
4430 \end_layout
4431
4432 \begin_layout LyX-Code
4433
4434 \backslash
4435 kmod 
4436 \family roman
4437 \emph on
4438 char accent allowed
4439 \end_layout
4440
4441 \begin_layout Standard
4442 This will make the cha
4443 \family roman
4444 racter
4445 \family default
4446  
4447 \family roman
4448 \emph on
4449 char
4450 \family default
4451 \emph default
4452  
4453 \family roman
4454 \shape up
4455 \emph on
4456 be an accent
4457 \family default
4458 \shape default
4459 \emph default
4460  
4461 \family roman
4462 \shape up
4463 on the
4464 \family default
4465 \shape default
4466  
4467 \family roman
4468 \shape up
4469 \emph on
4470 allowed
4471 \family default
4472 \shape default
4473 \emph default
4474  
4475 \family roman
4476 \shape up
4477 cha
4478 \family default
4479 racter(s).
4480  This is the dead key
4481 \begin_inset Foot
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 The term 
4486 \family roman
4487 \emph on
4488 dead key
4489 \family default
4490 \emph default
4491  refers to a key that does not produce a character by itself, but when followed
4492  with another key, produces the desired accent character.
4493  For example, a German characte
4494 \family roman
4495 r with an umlaut like
4496 \family default
4497  
4498 \family roman
4499 \emph on
4500 ä
4501 \family default
4502 \emph default
4503  
4504 \family roman
4505 can be produced in this manner.
4506 \end_layout
4507
4508 \end_inset
4509
4510  mechanism.
4511  
4512 \end_layout
4513
4514 \begin_layout Standard
4515 If you 
4516 \family roman
4517 hit
4518 \family default
4519  
4520 \family roman
4521 \emph on
4522 char
4523 \family default
4524 \emph default
4525  
4526 \family roman
4527 and then another key not in
4528 \family default
4529  
4530 \family roman
4531 \emph on
4532 allowed
4533 \emph default
4534 , you will get a
4535 \family default
4536  
4537 \family roman
4538 \emph on
4539 char
4540 \family default
4541 \emph default
4542  
4543 \family roman
4544 followed by the other, not allowed key, as output.
4545
4546 \family default
4547  Note that a 
4548 \begin_inset Flex Noun
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552
4553 \shape up
4554 Backspace
4555 \end_layout
4556
4557 \end_inset
4558
4559  cancels a dead key, so if 
4560 \family roman
4561 you hit
4562 \family default
4563  
4564 \family roman
4565 \emph on
4566 char
4567 \family default
4568 \emph default
4569  
4570 \begin_inset Flex Noun
4571 status collapsed
4572
4573 \begin_layout Plain Layout
4574
4575 \shape up
4576 \emph on
4577 Backspace
4578 \end_layout
4579
4580 \end_inset
4581
4582 , the cursor will not go one position backwards but will instead cancel
4583  the effect t
4584 \family roman
4585 hat
4586 \family default
4587  
4588 \family roman
4589 \shape up
4590 \emph on
4591 char
4592 \family default
4593 \shape default
4594 \emph default
4595  
4596 \family roman
4597 \shape up
4598 might have had on the next keystroke.
4599  
4600 \end_layout
4601
4602 \begin_layout Standard
4603 The following example specifies that the character ' is to be an acute accent,
4604  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4605 \end_layout
4606
4607 \begin_layout LyX-Code
4608
4609 \backslash
4610 kmod ' acute aeiouAEIOU
4611 \end_layout
4612
4613 \begin_layout Labeling
4614 \labelwidthstring 00.00.0000
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 kxmod
4620 \end_layout
4621
4622 \end_inset
4623
4624  Specify an exception to the accent character
4625 \end_layout
4626
4627 \begin_layout LyX-Code
4628
4629 \backslash
4630 kxmod  
4631 \family roman
4632 \emph on
4633 accent char result
4634 \end_layout
4635
4636 \begin_layout Standard
4637 This defines an exce
4638 \family roman
4639 ption for
4640 \family default
4641  
4642 \family roman
4643 \emph on
4644 accent
4645 \family default
4646 \emph default
4647  
4648 \family roman
4649 on
4650 \family default
4651  
4652 \family roman
4653 \emph on
4654 char
4655 \emph default
4656 .
4657  T
4658 \shape up
4659 he
4660 \family default
4661 \shape default
4662  
4663 \family roman
4664 \shape up
4665 \emph on
4666 accent
4667 \family default
4668 \shape default
4669 \emph default
4670  
4671 \family roman
4672 \shape up
4673 must
4674 \family default
4675 \shape default
4676  
4677 \shape up
4678 have been assigned a keystroke with a previous
4679 \shape default
4680  
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685
4686 \shape up
4687
4688 \backslash
4689 kmo
4690 \shape default
4691 d
4692 \end_layout
4693
4694 \end_inset
4695
4696  declar
4697 \family roman
4698 ation and
4699 \family default
4700  
4701 \family roman
4702 \emph on
4703 char
4704 \family default
4705 \emph default
4706  
4707 \family roman
4708 must not belong in the
4709 \family default
4710  
4711 \family roman
4712 \emph on
4713 allowed
4714 \family default
4715 \emph default
4716  
4717 \family roman
4718 set of
4719 \family default
4720  
4721 \family roman
4722 \emph on
4723 accent
4724 \emph default
4725 .
4726  When
4727 \family default
4728  
4729 \family roman
4730 \shape up
4731 you enter the
4732 \family default
4733 \shape default
4734  
4735 \family roman
4736 \shape up
4737 \emph on
4738 accent char
4739 \family default
4740 \shape default
4741 \emph default
4742  
4743 \family roman
4744 \shape up
4745 sequence,
4746 \family default
4747 \shape default
4748  
4749 \family roman
4750 \shape up
4751 \emph on
4752 result
4753 \emph default
4754  is produced.
4755  If such a declaration does not exist in
4756 \family default
4757 \shape default
4758  
4759 \shape up
4760 the
4761 \shape default
4762  
4763 \begin_inset Flex Code
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767
4768 \shape up
4769 .kmap
4770 \end_layout
4771
4772 \end_inset
4773
4774  file and yo
4775 \family roman
4776 u enter
4777 \family default
4778  
4779 \family roman
4780 \emph on
4781 accent char
4782 \emph default
4783 , you get
4784 \family default
4785  
4786 \family roman
4787 \emph on
4788 accent_key char
4789 \emph default
4790  where
4791 \family default
4792  
4793 \family roman
4794 \emph on
4795 accent_key
4796 \emph default
4797  is the first arg
4798 \family default
4799 ument of the 
4800 \begin_inset Flex Code
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804
4805 \shape up
4806
4807 \backslash
4808 kmod
4809 \end_layout
4810
4811 \end_inset
4812
4813  declaration.
4814  
4815 \end_layout
4816
4817 \begin_layout Standard
4818 The following command produces causes äi to be produced when you enter acute-i
4819  ('i):
4820 \end_layout
4821
4822 \begin_layout LyX-Code
4823
4824 \backslash
4825 kxmod acute i "
4826 \backslash
4827
4828 \backslash
4829 '{
4830 \backslash
4831
4832 \backslash
4833 i}"
4834 \end_layout
4835
4836 \begin_layout Labeling
4837 \labelwidthstring 00.00.0000
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842 kcomb
4843 \end_layout
4844
4845 \end_inset
4846
4847  Combine two accent characters
4848 \end_layout
4849
4850 \begin_layout LyX-Code
4851
4852 \backslash
4853 kcomb 
4854 \family roman
4855 \emph on
4856 accent1 accent2 allowed
4857 \end_layout
4858
4859 \begin_layout Standard
4860 This one is getting pretty esoteric.
4861  It allows you to combine the effect 
4862 \family roman
4863 of
4864 \family default
4865  
4866 \family roman
4867 \emph on
4868 accent1
4869 \family default
4870 \emph default
4871  
4872 \family roman
4873 and
4874 \family default
4875  
4876 \family roman
4877 \emph on
4878 accent2
4879 \family default
4880 \emph default
4881  
4882 \family roman
4883 (in that order!) on
4884 \family default
4885  
4886 \family roman
4887 \emph on
4888 allowed
4889 \family default
4890 \emph default
4891  
4892 \family roman
4893 chars.
4894  The keystrokes for
4895 \family default
4896  
4897 \family roman
4898 \emph on
4899 accent1
4900 \family default
4901 \emph default
4902  
4903 \family roman
4904 and
4905 \family default
4906  
4907 \family roman
4908 \emph on
4909 accent2
4910 \family default
4911 \emph default
4912  
4913 \family roman
4914 must have be
4915 \family default
4916 en set with a 
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921
4922 \shape up
4923
4924 \backslash
4925 kmod
4926 \end_layout
4927
4928 \end_inset
4929
4930  command at 
4931 \family roman
4932 a
4933 \family default
4934  
4935 \family roman
4936 \emph on
4937 previous
4938 \family default
4939 \emph default
4940  
4941 \family roman
4942 point in the
4943 \family default
4944  file.
4945  
4946 \end_layout
4947
4948 \begin_layout Standard
4949 Consider this example from the 
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954
4955 \shape up
4956 greek.kmap
4957 \end_layout
4958
4959 \end_inset
4960
4961  file:
4962 \end_layout
4963
4964 \begin_layout LyX-Code
4965
4966 \backslash
4967 kmod ; acute aeioyvhAEIOYVH 
4968 \backslash
4969 kmod : umlaut iyIY 
4970 \backslash
4971 kcomb acute umlaut iyIY
4972 \end_layout
4973
4974 \begin_layout Standard
4975 This allows you to press 
4976 \begin_inset Flex Noun
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \shape up
4982 ;:i
4983 \end_layout
4984
4985 \end_inset
4986
4987  and get the effect of 
4988 \begin_inset Flex Code
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992
4993 \shape up
4994
4995 \backslash
4996 '{
4997 \backslash
4998 "{i}}
4999 \end_layout
5000
5001 \end_inset
5002
5003 .
5004  
5005 \family roman
5006 \shape up
5007 A backspace
5008 \family default
5009 \shape default
5010  in this case cancels the last dead key, so if you press 
5011 \begin_inset Flex Noun
5012 status collapsed
5013
5014 \begin_layout Plain Layout
5015
5016 \shape up
5017 ;: Backspace i
5018 \end_layout
5019
5020 \end_inset
5021
5022  you get 
5023 \begin_inset Flex Code
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027
5028 \shape up
5029
5030 \backslash
5031 '{i}
5032 \end_layout
5033
5034 \end_inset
5035
5036 .
5037 \end_layout
5038
5039 \begin_layout Subsection
5040 The .cdef File
5041 \end_layout
5042
5043 \begin_layout Standard
5044 After the 
5045 \begin_inset Flex Code
5046 status collapsed
5047
5048 \begin_layout Plain Layout
5049
5050 \shape up
5051 .kmap
5052 \end_layout
5053
5054 \end_inset
5055
5056  mapping is performed, a 
5057 \begin_inset Flex Code
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061
5062 \shape up
5063 .cde
5064 \shape default
5065 f
5066 \end_layout
5067
5068 \end_inset
5069
5070  file maps the strings that the symbols generate to characters in the current
5071  font.
5072  The \SpecialChar LyX
5073  distribution currently includes at least the 
5074 \begin_inset Flex Code
5075 status collapsed
5076
5077 \begin_layout Plain Layout
5078
5079 \shape up
5080 iso8859-1.cdef
5081 \end_layout
5082
5083 \end_inset
5084
5085  and 
5086 \begin_inset Flex Code
5087 status collapsed
5088
5089 \begin_layout Plain Layout
5090
5091 \shape up
5092 iso8859-2.cdef
5093 \end_layout
5094
5095 \end_inset
5096
5097  files.
5098 \end_layout
5099
5100 \begin_layout Standard
5101 In general the 
5102 \begin_inset Flex Code
5103 status collapsed
5104
5105 \begin_layout Plain Layout
5106
5107 \shape up
5108 .cdef
5109 \end_layout
5110
5111 \end_inset
5112
5113  file is a sequence of declarations of the form
5114 \end_layout
5115
5116 \begin_layout LyX-Code
5117
5118 \family roman
5119 \emph on
5120 char_index_in_set
5121 \family default
5122 \emph default
5123  
5124 \family roman
5125 \emph on
5126  string
5127 \end_layout
5128
5129 \begin_layout Standard
5130 For example, in order to map 
5131 \begin_inset Flex Noun
5132 status collapsed
5133
5134 \begin_layout Plain Layout
5135
5136 \shape up
5137
5138 \backslash
5139 '{e}
5140 \end_layout
5141
5142 \end_inset
5143
5144  to the corresponding character in the iso-8859-1 set (233), the following
5145  declaration is used
5146 \end_layout
5147
5148 \begin_layout LyX-Code
5149 233 "
5150 \backslash
5151
5152 \backslash
5153 '{e}"
5154 \end_layout
5155
5156 \begin_layout Standard
5157 with 
5158 \begin_inset Flex Code
5159 status collapsed
5160
5161 \begin_layout Plain Layout
5162
5163 \backslash
5164
5165 \end_layout
5166
5167 \end_inset
5168
5169  and 
5170 \begin_inset Flex Code
5171 status collapsed
5172
5173 \begin_layout Plain Layout
5174 "
5175 \end_layout
5176
5177 \end_inset
5178
5179  being escap
5180 \family roman
5181 ed in
5182 \family default
5183  
5184 \family roman
5185 \emph on
5186 string
5187 \emph default
5188 .
5189  Note that
5190 \family default
5191  the same character can apply to more than one string.
5192  In the 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197 i
5198 \shape up
5199 so-8859-7.cdef
5200 \end_layout
5201
5202 \end_inset
5203
5204  file you have
5205 \end_layout
5206
5207 \begin_layout LyX-Code
5208 192 "
5209 \backslash
5210
5211 \backslash
5212 '{
5213 \backslash
5214
5215 \backslash
5216
5217 \backslash
5218 "{i}}"
5219 \begin_inset Newline newline
5220 \end_inset
5221
5222 192 "
5223 \backslash
5224
5225 \backslash
5226
5227 \backslash
5228 "{
5229 \backslash
5230
5231 \backslash
5232 '{i}}"
5233 \end_layout
5234
5235 \begin_layout Standard
5236 If \SpecialChar LyX
5237  cannot find a mapping for the string produced by the keystroke or a
5238  deadkey sequence, it will check if it looks like an accented char and try
5239  to draw an accent over the character on screen.
5240 \end_layout
5241
5242 \begin_layout Subsection
5243 Dead Keys
5244 \end_layout
5245
5246 \begin_layout Standard
5247 There is a second way to add support for international characters through
5248  so-called dead-keys.
5249  A dead-key works in combination with a letter to produce an accented character.
5250  Here, we'll explain how to create a really simple dead-key to illustrate
5251  how they work.
5252 \end_layout
5253
5254 \begin_layout Standard
5255 Suppose you happen to need the circumflex character, 
5256 \begin_inset Quotes eld
5257 \end_inset
5258
5259  ̂
5260 \begin_inset Quotes erd
5261 \end_inset
5262
5263 .
5264  You could bind the 
5265 \begin_inset Flex Noun
5266 status collapsed
5267
5268 \begin_layout Plain Layout
5269 ^
5270 \end_layout
5271
5272 \end_inset
5273
5274 -key [a.k.a.
5275 \begin_inset space ~
5276 \end_inset
5277
5278
5279 \begin_inset Flex Noun
5280 status collapsed
5281
5282 \begin_layout Plain Layout
5283 Shift-6
5284 \end_layout
5285
5286 \end_inset
5287
5288 ] to the \SpecialChar LyX
5289  command 
5290 \begin_inset Flex Code
5291 status collapsed
5292
5293 \begin_layout Plain Layout
5294 accent-circumflex
5295 \end_layout
5296
5297 \end_inset
5298
5299  in your 
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304 lyxrc
5305 \end_layout
5306
5307 \end_inset
5308
5309  file.
5310  Now, whenever you type the 
5311 \begin_inset Flex Noun
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315 ^
5316 \end_layout
5317
5318 \end_inset
5319
5320 -key followed by a letter, that letter will have a circumflex accent on
5321  it.
5322  For example, the sequence 
5323 \begin_inset Quotes eld
5324 \end_inset
5325
5326
5327 \begin_inset Flex Noun
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331 ^e
5332 \end_layout
5333
5334 \end_inset
5335
5336
5337 \begin_inset Quotes erd
5338 \end_inset
5339
5340  produces the letter: 
5341 \begin_inset Quotes eld
5342 \end_inset
5343
5344 ê
5345 \begin_inset Quotes erd
5346 \end_inset
5347
5348 .
5349  If you tried to type 
5350 \begin_inset Quotes eld
5351 \end_inset
5352
5353
5354 \begin_inset Flex Noun
5355 status collapsed
5356
5357 \begin_layout Plain Layout
5358 ^t
5359 \end_layout
5360
5361 \end_inset
5362
5363
5364 \begin_inset Quotes erd
5365 \end_inset
5366
5367 , however, \SpecialChar LyX
5368  will complain with a beep, since a 
5369 \begin_inset Quotes eld
5370 \end_inset
5371
5372
5373 \begin_inset Flex Noun
5374 status collapsed
5375
5376 \begin_layout Plain Layout
5377 t
5378 \end_layout
5379
5380 \end_inset
5381
5382
5383 \begin_inset Quotes erd
5384 \end_inset
5385
5386  never takes a circumflex accent.
5387  Hitting 
5388 \begin_inset Flex Noun
5389 status collapsed
5390
5391 \begin_layout Plain Layout
5392 Space
5393 \end_layout
5394
5395 \end_inset
5396
5397  after a dead-key produces the bare-accent.
5398  Please note this last point! If you bind a key to a dead-key, you'll need
5399  to rebind the character on that key to yet another key.
5400  Binding the 
5401 \begin_inset Flex Noun
5402 status collapsed
5403
5404 \begin_layout Plain Layout
5405 ,-key
5406 \end_layout
5407
5408 \end_inset
5409
5410  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5411 \end_layout
5412
5413 \begin_layout Standard
5414 One common way to bind dead-keys is to use 
5415 \begin_inset Flex Noun
5416 status collapsed
5417
5418 \begin_layout Plain Layout
5419 Meta-
5420 \end_layout
5421
5422 \end_inset
5423
5424
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429 Ctrl-
5430 \end_layout
5431
5432 \end_inset
5433
5434 , and 
5435 \begin_inset Flex Noun
5436 status collapsed
5437
5438 \begin_layout Plain Layout
5439 Shift-
5440 \end_layout
5441
5442 \end_inset
5443
5444  in combination with an accent, like 
5445 \begin_inset Quotes eld
5446 \end_inset
5447
5448
5449 \begin_inset Flex Noun
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 ~
5454 \end_layout
5455
5456 \end_inset
5457
5458
5459 \begin_inset Quotes erd
5460 \end_inset
5461
5462  or 
5463 \begin_inset Quotes eld
5464 \end_inset
5465
5466
5467 \begin_inset Flex Noun
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 ,
5472 \end_layout
5473
5474 \end_inset
5475
5476
5477 \begin_inset Quotes erd
5478 \end_inset
5479
5480  or 
5481 \begin_inset Quotes eld
5482 \end_inset
5483
5484
5485 \begin_inset Flex Noun
5486 status collapsed
5487
5488 \begin_layout Plain Layout
5489 ^
5490 \end_layout
5491
5492 \end_inset
5493
5494
5495 \begin_inset Quotes erd
5496 \end_inset
5497
5498 .
5499  Another way involves using 
5500 \begin_inset Flex Code
5501 status collapsed
5502
5503 \begin_layout Plain Layout
5504 xmodmap
5505 \end_layout
5506
5507 \end_inset
5508
5509  and 
5510 \begin_inset Flex Code
5511 status collapsed
5512
5513 \begin_layout Plain Layout
5514 xkeycaps
5515 \end_layout
5516
5517 \end_inset
5518
5519  to set up the special 
5520 \begin_inset Flex Code
5521 status collapsed
5522
5523 \begin_layout Plain Layout
5524 Mode_Switch
5525 \end_layout
5526
5527 \end_inset
5528
5529  key.
5530  The 
5531 \begin_inset Flex Code
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 Mode_Switch
5536 \end_layout
5537
5538 \end_inset
5539
5540  acts in some ways just like 
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 Shift
5546 \end_layout
5547
5548 \end_inset
5549
5550  and permits you to bind keys to accented characters.
5551  You can also turn keys into dead-keys by binding them to something like
5552  
5553 \begin_inset Flex Code
5554 status collapsed
5555
5556 \begin_layout Plain Layout
5557 usldead_cedilla
5558 \end_layout
5559
5560 \end_inset
5561
5562  and then binding this symbolic key to the corresponding \SpecialChar LyX
5563  command.
5564 \begin_inset Foot
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 Note from 
5569 \noun on
5570 John Weiss
5571 \noun default
5572 : This is exactly what I do in my 
5573 \begin_inset Flex Code
5574 status collapsed
5575
5576 \begin_layout Plain Layout
5577 ~/.lyx/lyxrc
5578 \end_layout
5579
5580 \end_inset
5581
5582  and my 
5583 \begin_inset Flex Code
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 ~/.xmodmap
5588 \end_layout
5589
5590 \end_inset
5591
5592  files.
5593  I have my 
5594 \begin_inset Flex Noun
5595 status collapsed
5596
5597 \begin_layout Plain Layout
5598 Scroll
5599 \begin_inset space ~
5600 \end_inset
5601
5602 Lock
5603 \end_layout
5604
5605 \end_inset
5606
5607  key set up as 
5608 \begin_inset Flex Code
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612 Mode_Shift
5613 \end_layout
5614
5615 \end_inset
5616
5617  and a bunch of these 
5618 \begin_inset Quotes eld
5619 \end_inset
5620
5621
5622 \begin_inset Flex Code
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 usldead_*
5627 \end_layout
5628
5629 \end_inset
5630
5631
5632 \begin_inset Quotes erd
5633 \end_inset
5634
5635  symbolic keys bound such things as 
5636 \begin_inset Flex Noun
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 Scroll
5641 \begin_inset space ~
5642 \end_inset
5643
5644 Lock-^
5645 \end_layout
5646
5647 \end_inset
5648
5649  and 
5650 \begin_inset Flex Noun
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 Scroll
5655 \begin_inset space ~
5656 \end_inset
5657
5658 Lock-~
5659 \end_layout
5660
5661 \end_inset
5662
5663 .
5664  This is how I produce my accented characters.
5665 \end_layout
5666
5667 \end_inset
5668
5669  You can make just about anything into the 
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 Mode_Switch
5675 \end_layout
5676
5677 \end_inset
5678
5679  key: One of the 
5680 \begin_inset Flex Noun
5681 status collapsed
5682
5683 \begin_layout Plain Layout
5684 Ctrl-
5685 \end_layout
5686
5687 \end_inset
5688
5689  keys, a spare function key, etc.
5690  As for the \SpecialChar LyX
5691  commands that produce accents, check the entry for 
5692 \begin_inset Flex Code
5693 status collapsed
5694
5695 \begin_layout Plain Layout
5696 accent-acute
5697 \end_layout
5698
5699 \end_inset
5700
5701  in the 
5702 \emph on
5703 Reference Manual
5704 \emph default
5705 .
5706  You'll find the complete list there.
5707 \end_layout
5708
5709 \begin_layout Subsection
5710 Saving your Language Configuration
5711 \end_layout
5712
5713 \begin_layout Standard
5714 You can edit your preferences so that your desired language environment
5715  is automatically configured when \SpecialChar LyX
5716  starts up, via the 
5717 \begin_inset Flex Noun
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 Edit\SpecialChar menuseparator
5722 Preferences
5723 \end_layout
5724
5725 \end_inset
5726
5727  dialog.
5728 \end_layout
5729
5730 \begin_layout Chapter
5731 Installing New Document Classes, Layouts, and Templates
5732 \begin_inset CommandInset label
5733 LatexCommand label
5734 name "cha:Installing-New-Document"
5735
5736 \end_inset
5737
5738
5739 \begin_inset Argument 1
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 Installing New Document Classes
5744 \end_layout
5745
5746 \end_inset
5747
5748
5749 \end_layout
5750
5751 \begin_layout Standard
5752 In this chapter, we describe the procedures for creating and installing
5753  new \SpecialChar LyX
5754  layout and template files, as well as offer a refresher on correctly
5755  installing new \SpecialChar LaTeX
5756  document classes.
5757  
5758 \end_layout
5759
5760 \begin_layout Standard
5761 First, let us a say a few words about how one ought to think about the relation
5762  between \SpecialChar LyX
5763  and \SpecialChar LaTeX
5764 .
5765  The thing to understand is that, in a certain sense, \SpecialChar LyX
5766  doesn't know anything
5767  about \SpecialChar LaTeX
5768 .
5769  Indeed, from \SpecialChar LyX
5770 's point of view, \SpecialChar LaTeX
5771  is just one of several 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775 backend formats
5776 \begin_inset Quotes erd
5777 \end_inset
5778
5779  in which it is capable of producing output.
5780  Other such formats are DocBook, plaintext, and XHTML.
5781  \SpecialChar LaTeX
5782  is, of course, a particularly important format, but very little of the
5783  information \SpecialChar LyX
5784  has about \SpecialChar LaTeX
5785  is actually contained in the program itself.
5786 \begin_inset Foot
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 Some commands are sufficiently complex that they are 
5791 \begin_inset Quotes eld
5792 \end_inset
5793
5794 hardcoded
5795 \begin_inset Quotes erd
5796 \end_inset
5797
5798  into \SpecialChar LyX
5799 .
5800  But the developers generally regard this as a Bad Thing.
5801 \end_layout
5802
5803 \end_inset
5804
5805  Rather, that information, even for the standard classes like 
5806 \begin_inset Flex Code
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 article.cls
5811 \end_layout
5812
5813 \end_inset
5814
5815 , is contained in `layout files'.
5816  Similarly, \SpecialChar LyX
5817  itself does not know much about DocBook or XHTML.
5818  What it knows is contained in layout files.
5819 \end_layout
5820
5821 \begin_layout Standard
5822 You can think of the layout file for a given document class as a translation
5823  manual between \SpecialChar LyX
5824  constructs—paragraphs with their corresponding styles,
5825  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5826 , DocBook, or XHTML
5827  constructs.
5828  Almost everything \SpecialChar LyX
5829  knows about 
5830 \begin_inset Flex Code
5831 status collapsed
5832
5833 \begin_layout Plain Layout
5834 article.cls
5835 \end_layout
5836
5837 \end_inset
5838
5839 , for example, is contained in the file 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 article.layout
5845 \end_layout
5846
5847 \end_inset
5848
5849  and in various other files it includes.
5850  For this reason, anyone intending to write layout files should plan to
5851  study the existing files.
5852  A good place to start is with 
5853 \begin_inset Flex Code
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 stdsections.inc
5858 \end_layout
5859
5860 \end_inset
5861
5862 , which is included in 
5863 \begin_inset Flex Code
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 article.layout
5868 \end_layout
5869
5870 \end_inset
5871
5872
5873 \begin_inset Flex Code
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877 book.layout
5878 \end_layout
5879
5880 \end_inset
5881
5882 , and many of the other layout files for document classes.
5883  This file is where sections and the like are defined: 
5884 \begin_inset Flex Code
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 stdsections.inc
5889 \end_layout
5890
5891 \end_inset
5892
5893  tells \SpecialChar LyX
5894  how paragraphs that are marked with the Section, Subsection, etc,
5895  styles can be translated into corresponding \SpecialChar LaTeX
5896 , DocBook, and XHTML commands
5897  and tags.
5898  The 
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 article.layout
5904 \end_layout
5905
5906 \end_inset
5907
5908  file basically just includes several of these 
5909 \begin_inset Flex Code
5910 status collapsed
5911
5912 \begin_layout Plain Layout
5913 std*.inc
5914 \end_layout
5915
5916 \end_inset
5917
5918  files.
5919 \end_layout
5920
5921 \begin_layout Standard
5922 Defining the \SpecialChar LyX
5923 –\SpecialChar LaTeX
5924  correspondence is not the only thing layout files do, though.
5925  Their other job is to define how the \SpecialChar LyX
5926  constructs themselves will appear
5927  on-screen.
5928  The fact that layout files have these two jobs is often a source of confusion,
5929  because they are completely separate.
5930  Telling \SpecialChar LyX
5931  how to translate a certain paragraph style into \SpecialChar LaTeX
5932  does not tell
5933  \SpecialChar LyX
5934  how to display it; conversely, telling \SpecialChar LyX
5935  how to display a certain paragraph
5936  style does not tell \SpecialChar LyX
5937  how to translate it into \SpecialChar LaTeX
5938  (let alone tell \SpecialChar LaTeX
5939  how to
5940  display it).
5941  So, in general, when you define a new \SpecialChar LyX
5942  construct, you must always do two
5943  quite separate things: (i)
5944 \begin_inset space ~
5945 \end_inset
5946
5947 tell \SpecialChar LyX
5948  how to translate it into \SpecialChar LaTeX
5949  and (ii)
5950 \begin_inset space ~
5951 \end_inset
5952
5953 tell \SpecialChar LyX
5954  how to display it.
5955 \end_layout
5956
5957 \begin_layout Standard
5958 Much the same is true, of course, as regards \SpecialChar LyX
5959 's other backend formats, though
5960  XHTML is in some ways different, because in that case \SpecialChar LyX
5961  
5962 \emph on
5963 is
5964 \emph default
5965  able, to some extent, to use information about how it should display a
5966  paragraph on the screen to output information (in the form of CSS) about
5967  how the paragraph should be displayed in a browser.
5968  Even in this case, however, the distinction between what \SpecialChar LyX
5969  does internally
5970  and how things are rendered externally remains in force, and the two can
5971  be controlled separately.
5972  See 
5973 \begin_inset CommandInset ref
5974 LatexCommand ref
5975 reference "sec:Tags-for-XHTML"
5976
5977 \end_inset
5978
5979  for the details.
5980 \end_layout
5981
5982 \begin_layout Section
5983 Installing new \SpecialChar LaTeX
5984  files
5985 \end_layout
5986
5987 \begin_layout Standard
5988 Some installations may not include a \SpecialChar LaTeX
5989  package or class file that you would
5990  like to use within \SpecialChar LyX
5991 .
5992  For example, you might need Foil\SpecialChar TeX
5993 , a package for preparing slides for overhead
5994  projectors.
5995  Modern \SpecialChar LaTeX
5996  distributions like \SpecialChar TeX
5997 Live (2008 or newer) or MiK\SpecialChar TeX
5998  provide a user interface
5999  for installing such packages.
6000  For example, with MiK\SpecialChar TeX
6001 , you start the program 
6002 \begin_inset Quotes eld
6003 \end_inset
6004
6005 Package
6006 \begin_inset space ~
6007 \end_inset
6008
6009 Manager
6010 \begin_inset Quotes erd
6011 \end_inset
6012
6013  to get a list of available packages.
6014  To install one of them, right click on it or use the corresponding toolbar
6015  button.
6016 \end_layout
6017
6018 \begin_layout Standard
6019 If your \SpecialChar LaTeX
6020  distribution does not provide such a `package manager', or if the
6021  package is not available from your distribution, then follow these steps
6022  to install it manually:
6023 \end_layout
6024
6025 \begin_layout Enumerate
6026 Get the package from 
6027 \begin_inset CommandInset href
6028 LatexCommand href
6029 name "CTAN"
6030 target "http://www.ctan.org/"
6031 literal "false"
6032
6033 \end_inset
6034
6035  or wherever.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 If the package contains a file with the ending 
6040 \begin_inset Quotes eld
6041 \end_inset
6042
6043
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 .ins
6049 \end_layout
6050
6051 \end_inset
6052
6053
6054 \begin_inset Quotes erd
6055 \end_inset
6056
6057  (is the case for Foil\SpecialChar TeX
6058 ) then open a console, change to the folder of this
6059  file and execute the command 
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 latex foiltex.ins
6065 \end_layout
6066
6067 \end_inset
6068
6069 .
6070  You have now unpacked the package and have all files to install it.
6071  Most \SpecialChar LaTeX
6072 -packages are not packed and you can skip this step.
6073 \end_layout
6074
6075 \begin_layout Enumerate
6076 Now you need to decide if the package should be available for all users
6077  or only for you.
6078 \end_layout
6079
6080 \begin_deeper
6081 \begin_layout Enumerate
6082 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6083  for all users on your system, then install it in your `local' \SpecialChar TeX
6084  tree, otherwise
6085  install it in your own `user' \SpecialChar TeX
6086  tree.
6087  Where these trees should be created, if they do not already exist, depends
6088  on your system.
6089  To find this out, look in the file 
6090 \begin_inset Flex Code
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 texmf.cnf
6095 \end_layout
6096
6097 \end_inset
6098
6099 .
6100 \begin_inset Foot
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 This is usually in the directory 
6105 \begin_inset Flex Code
6106 status collapsed
6107
6108 \begin_layout Plain Layout
6109 $TEXMF/web2c
6110 \end_layout
6111
6112 \end_inset
6113
6114 , though you can execute the command 
6115 \begin_inset Flex Code
6116 status collapsed
6117
6118 \begin_layout Plain Layout
6119 kpsewhich texmf.cnf
6120 \end_layout
6121
6122 \end_inset
6123
6124  to locate it.
6125 \end_layout
6126
6127 \end_inset
6128
6129  The location of the `local' \SpecialChar TeX
6130  tree is defined by the 
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 TEXMFLOCAL
6136 \end_layout
6137
6138 \end_inset
6139
6140  variable; this is usually somewhere like 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 /usr/local/share/texmf
6146 \end_layout
6147
6148 \end_inset
6149
6150  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6151 Live
6152  distribution.
6153  The location of the `user' \SpecialChar TeX
6154  tree is defined by 
6155 \begin_inset Flex Code
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 TEXMFHOME
6160 \end_layout
6161
6162 \end_inset
6163
6164  and is commonly 
6165 \begin_inset Flex Code
6166 status collapsed
6167
6168 \begin_layout Plain Layout
6169 $HOME/texmf
6170 \end_layout
6171
6172 \end_inset
6173
6174  or 
6175 \begin_inset Flex Code
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179
6180 \family sans
6181 $HOME/.texliveXXXX
6182 \end_layout
6183
6184 \end_inset
6185
6186 .
6187  (If these variables are not predefined, you have to define them.) You'll
6188  probably need root permissions to create or modify the `local' tree, but
6189  not for your `user' tree.
6190 \begin_inset Newline newline
6191 \end_inset
6192
6193 In general, it is recommended to install in the user tree because your user
6194  will not be modified or even overwritten when you upgrade your system.
6195  It will typically also be backed up together with everything else when
6196  you backup your home directory (which, of course, you do on a regular basis).
6197 \end_layout
6198
6199 \begin_layout Enumerate
6200 On Windows, if you want the new package to be available for all users on
6201  your system, change to the folder where \SpecialChar LaTeX
6202  is installed and then change to
6203  the subfolder 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 ~
6209 \backslash
6210 tex
6211 \backslash
6212 latex
6213 \end_layout
6214
6215 \end_inset
6216
6217 .
6218  (For MiK\SpecialChar TeX
6219 , this would be by default the folder 
6220 \begin_inset Flex Code
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 ~:
6225 \backslash
6226 Programs
6227 \backslash
6228 MiKTeX
6229 \backslash
6230 tex
6231 \backslash
6232 latex
6233 \end_layout
6234
6235 \end_inset
6236
6237 .)
6238 \begin_inset Foot
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 Note that this will be the correct path only on English installations.
6243  On a German one, it would be 
6244 \begin_inset Flex Code
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248 ~:
6249 \backslash
6250 Programme
6251 \backslash
6252 MiKTeX
6253 \backslash
6254 tex
6255 \backslash
6256 latex
6257 \end_layout
6258
6259 \end_inset
6260
6261 , and similarly for other languages.
6262 \end_layout
6263
6264 \end_inset
6265
6266  Create there a new folder 
6267 \begin_inset Flex Code
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 foiltex
6272 \end_layout
6273
6274 \end_inset
6275
6276  and copy all files of the package into it.
6277  
6278 \begin_inset Newline newline
6279 \end_inset
6280
6281 If the package should only available for you or you don't have admin permissions
6282 , do the same, but in the local \SpecialChar LaTeX
6283  folder.
6284  E.
6285 \begin_inset space \thinspace{}
6286 \end_inset
6287
6288 g., for MiK\SpecialChar TeX
6289
6290 \begin_inset space ~
6291 \end_inset
6292
6293 2.8 under Windows XP, this would be the folder:
6294 \begin_inset Newline newline
6295 \end_inset
6296
6297
6298 \family sans
6299
6300 \begin_inset Flex Code
6301 status collapsed
6302
6303 \begin_layout Plain Layout
6304 ~:
6305 \backslash
6306 Documents and Settings
6307 \backslash
6308 <username>
6309 \backslash
6310 Application Data
6311 \backslash
6312
6313 \end_layout
6314
6315 \end_inset
6316
6317
6318 \begin_inset Newline newline
6319 \end_inset
6320
6321
6322 \family default
6323
6324 \begin_inset Phantom HPhantom
6325 status open
6326
6327 \begin_layout Plain Layout
6328
6329 \family sans
6330 ~:
6331 \backslash
6332
6333 \end_layout
6334
6335 \end_inset
6336
6337
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 MiKTeX
6343 \backslash
6344 2.8
6345 \backslash
6346 tex
6347 \backslash
6348 latex
6349 \end_layout
6350
6351 \end_inset
6352
6353
6354 \begin_inset Newline newline
6355 \end_inset
6356
6357 On Vista, it would be:
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 ~:
6367 \backslash
6368 Users
6369 \backslash
6370 <username>
6371 \backslash
6372 AppData
6373 \backslash
6374 Roaming
6375 \backslash
6376 2.8
6377 \backslash
6378 MiKTeX
6379 \backslash
6380 tex
6381 \backslash
6382 latex
6383 \end_layout
6384
6385 \end_inset
6386
6387
6388 \end_layout
6389
6390 \end_deeper
6391 \begin_layout Enumerate
6392 Now one only need to tell \SpecialChar LaTeX
6393  that there are new files.
6394  This depends on the used \SpecialChar LaTeX
6395 -Distribution:
6396 \end_layout
6397
6398 \begin_deeper
6399 \begin_layout Enumerate
6400 For \SpecialChar TeX
6401 Live execute the command 
6402 \begin_inset Flex Code
6403 status collapsed
6404
6405 \begin_layout Plain Layout
6406 texhash
6407 \end_layout
6408
6409 \end_inset
6410
6411  from a console.
6412  If you installed the package for all users, then you will probably need
6413  to have root permissions for that.
6414 \end_layout
6415
6416 \begin_layout Enumerate
6417 For MiK\SpecialChar TeX
6418 , if you have installed the package for all users, start the program
6419  
6420 \begin_inset Quotes eld
6421 \end_inset
6422
6423 Settings
6424 \begin_inset space ~
6425 \end_inset
6426
6427 (Admin)
6428 \begin_inset Quotes erd
6429 \end_inset
6430
6431  and press the button marked 
6432 \begin_inset Quotes eld
6433 \end_inset
6434
6435 Refresh FNDB
6436 \begin_inset Quotes erd
6437 \end_inset
6438
6439 .
6440  Otherwise start the program 
6441 \begin_inset Quotes eld
6442 \end_inset
6443
6444 Settings
6445 \begin_inset Quotes erd
6446 \end_inset
6447
6448  and do the same.
6449 \end_layout
6450
6451 \end_deeper
6452 \begin_layout Enumerate
6453 Finally, you need to tell \SpecialChar LyX
6454  that there are new packages available.
6455  So, in \SpecialChar LyX
6456 , use the menu 
6457 \begin_inset Flex Noun
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 Tools
6462 \family sans
6463 \SpecialChar menuseparator
6464 Reconfigure
6465 \end_layout
6466
6467 \end_inset
6468
6469  and then restart \SpecialChar LyX
6470 .
6471 \end_layout
6472
6473 \begin_layout Standard
6474 Now the package is installed.
6475  In our example, the document class 
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 FoilTex
6481 \end_layout
6482
6483 \end_inset
6484
6485  will now be available under 
6486 \begin_inset Flex Noun
6487 status collapsed
6488
6489 \begin_layout Plain Layout
6490 Document\SpecialChar menuseparator
6491 Settings\SpecialChar menuseparator
6492 Document Class
6493 \end_layout
6494
6495 \end_inset
6496
6497  (in the 
6498 \begin_inset Quotes eld
6499 \end_inset
6500
6501 Presentations
6502 \begin_inset Quotes erd
6503 \end_inset
6504
6505  category).
6506  
6507 \end_layout
6508
6509 \begin_layout Standard
6510 If you would like to use a \SpecialChar LaTeX
6511  document class that is not even listed in the
6512  menu 
6513 \begin_inset Flex Noun
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 Document\SpecialChar menuseparator
6518 Settings\SpecialChar menuseparator
6519 Document Class
6520 \end_layout
6521
6522 \end_inset
6523
6524 , then you need to create a `layout' file for it.
6525  That is the topic of the next section.
6526 \end_layout
6527
6528 \begin_layout Section
6529 Types of layout files
6530 \end_layout
6531
6532 \begin_layout Standard
6533 This section describes the various sorts of \SpecialChar LyX
6534  files that contain layout informati
6535 on.
6536  These files describe various paragraph and character styles, determining
6537  how \SpecialChar LyX
6538  should display them and how they should be translated into \SpecialChar LaTeX
6539 , DocBook,
6540  XHTML, or whatever output format is being used.
6541  
6542 \end_layout
6543
6544 \begin_layout Standard
6545 We shall try to provide a thorough description of the process of writing
6546  layout files here.
6547  However, there are so many different types of documents supported even
6548  by just \SpecialChar LaTeX
6549  that we can't hope to cover every different possibility or problem
6550  you might encounter.
6551  The \SpecialChar LyX
6552  users' list is frequented by people with lots of experience with layout
6553  design who are willing to share what they've learned, so please feel free
6554  to ask questions there.
6555 \end_layout
6556
6557 \begin_layout Standard
6558 As you prepare to write a new layout, it is extremely helpful to look at
6559  the layouts distributed with \SpecialChar LyX
6560 .
6561  If you write a \SpecialChar LyX
6562  layout for a \SpecialChar LaTeX
6563  document class that might also be used by
6564  others, or write a module that might be useful to others, then you should
6565  consider posting your layout to the 
6566 \begin_inset CommandInset href
6567 LatexCommand href
6568 name "layout section on the LyX wiki"
6569 target "https://wiki.lyx.org/Layouts/Layouts"
6570 literal "false"
6571
6572 \end_inset
6573
6574  or even to the \SpecialChar LyX
6575  developers' list, so that it might be included in \SpecialChar LyX
6576  itself.
6577 \begin_inset Foot
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 Note that \SpecialChar LyX
6582  is licensed under the General Public License, so any material
6583  that is contributed to \SpecialChar LyX
6584  must be similarly licensed.
6585 \end_layout
6586
6587 \end_inset
6588
6589
6590 \end_layout
6591
6592 \begin_layout Subsection
6593 Layout modules
6594 \begin_inset CommandInset label
6595 LatexCommand label
6596 name "subsec:Layout-modules"
6597
6598 \end_inset
6599
6600
6601 \end_layout
6602
6603 \begin_layout Standard
6604 We have spoken to this point about `layout files'.
6605  But there are different sorts of files that contain layout information.
6606  Layout files, strictly so called, have the 
6607 \begin_inset Flex Code
6608 status collapsed
6609
6610 \begin_layout Plain Layout
6611 .layout
6612 \end_layout
6613
6614 \end_inset
6615
6616  extension and provide \SpecialChar LyX
6617  with information about document classes.
6618  Since \SpecialChar LyX
6619  1.6 layout information can also be contained in layout 
6620 \emph on
6621 modules
6622 \emph default
6623 , which have the 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 .module
6629 \end_layout
6630
6631 \end_inset
6632
6633  extension.
6634  Modules are to \SpecialChar LaTeX
6635  packages much as layouts are to \SpecialChar LaTeX
6636  classes, and some modules—such
6637  as the 
6638 \begin_inset Flex Code
6639 status collapsed
6640
6641 \begin_layout Plain Layout
6642 endnotes
6643 \end_layout
6644
6645 \end_inset
6646
6647  module—specifically provide support for one package.
6648  In a sense, layout modules are similar to included
6649 \begin_inset Foot
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 These can have any extension, but by convention have the 
6654 \begin_inset Flex Code
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 .inc
6659 \end_layout
6660
6661 \end_inset
6662
6663  extension.
6664 \end_layout
6665
6666 \end_inset
6667
6668  files—files like 
6669 \begin_inset Flex Code
6670 status collapsed
6671
6672 \begin_layout Plain Layout
6673 stdsections.inc
6674 \end_layout
6675
6676 \end_inset
6677
6678 —in that modules are not specific to a given document class but may be used
6679  with many different classes.
6680  The difference is that using an included file with 
6681 \begin_inset Flex Code
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 article.cls
6686 \end_layout
6687
6688 \end_inset
6689
6690  requires editing that file.
6691  Modules, by contrast, are selected in the 
6692 \begin_inset Flex Noun
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 Document\SpecialChar menuseparator
6697 Settings
6698 \end_layout
6699
6700 \end_inset
6701
6702  dialog.
6703 \end_layout
6704
6705 \begin_layout Standard
6706 Building modules is the easiest way to get started with layout editing,
6707  since it can be as simple as adding a single new paragraph style or flex
6708  inset.
6709  But modules may, in principle, contain anything a layout file can contain.
6710 \end_layout
6711
6712 \begin_layout Standard
6713 After creating a new module and copying it to the 
6714 \begin_inset Flex Code
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 layouts/
6719 \end_layout
6720
6721 \end_inset
6722
6723  folder, you will need to reconfigure and then restart \SpecialChar LyX
6724  for the module to
6725  appear in the menu.
6726  However, changes you make to the module will be seen immediately, if you
6727  open 
6728 \begin_inset Flex Noun
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732 Document\SpecialChar menuseparator
6733 Settings
6734 \end_layout
6735
6736 \end_inset
6737
6738 , highlight something, and then hit 
6739 \begin_inset Quotes eld
6740 \end_inset
6741
6742 OK
6743 \begin_inset Quotes erd
6744 \end_inset
6745
6746 .
6747  
6748 \emph on
6749 It is strongly recommended that you save your work before doing this
6750 \emph default
6751 .
6752  In fact, 
6753 \emph on
6754 it is strongly recommended that you not attempt to edit modules while simultaneo
6755 usly working on actual documents
6756 \emph default
6757 .
6758  Though of course the developers strive to keep \SpecialChar LyX
6759  stable in such situations,
6760  syntax errors and the like in your module file could cause strange behavior.
6761 \end_layout
6762
6763 \begin_layout Subsubsection
6764 Local Layout
6765 \end_layout
6766
6767 \begin_layout Standard
6768 Modules are to \SpecialChar LyX
6769  as packages are to \SpecialChar LaTeX
6770 .
6771  Sometimes, however, you find yourself wanting a specific inset or character
6772  style just for one document and writing a module that will also be available
6773  to other documents makes little sense.
6774  What you need is \SpecialChar LyX
6775 's 
6776 \begin_inset Quotes eld
6777 \end_inset
6778
6779 Local Layout
6780 \begin_inset Quotes erd
6781 \end_inset
6782
6783 .
6784 \end_layout
6785
6786 \begin_layout Standard
6787 You will find it under 
6788 \family sans
6789 Document\SpecialChar menuseparator
6790 Settings\SpecialChar menuseparator
6791 Local Layout
6792 \family default
6793 .
6794  The large text box allows you to enter anything that you might enter in
6795  a layout file or module.
6796  You can think of a document's local layout, in fact, as a module that belongs
6797  just to it.
6798  So, in particular, you must enter a 
6799 \begin_inset Flex Code
6800 status collapsed
6801
6802 \begin_layout Plain Layout
6803 Format
6804 \end_layout
6805
6806 \end_inset
6807
6808  tag.
6809  Any format is acceptable, but one would normally use the format current
6810  at the time.
6811  (In \SpecialChar LyX
6812  2.3, the current layout format is 63.)
6813 \end_layout
6814
6815 \begin_layout Standard
6816 When you have entered something in the 
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 Local Layout
6822 \end_layout
6823
6824 \end_inset
6825
6826  pane, \SpecialChar LyX
6827  will enable the 
6828 \begin_inset Quotes eld
6829 \end_inset
6830
6831 Validate
6832 \begin_inset Quotes erd
6833 \end_inset
6834
6835  button at the bottom.
6836  Clicking this button will cause \SpecialChar LyX
6837  to determine whether what you have entered
6838  is valid layout information for the chosen format.
6839  \SpecialChar LyX
6840  will report the result but, unfortunately, will not tell you what errors
6841  there might have been.
6842  These will be written to the terminal, however, if \SpecialChar LyX
6843  is started from a terminal.
6844  You will not be permitted to save your local layout until you have entered
6845  something valid.
6846 \end_layout
6847
6848 \begin_layout Standard
6849 The warnings at the end of the previous section apply here, too.
6850  Do not play with local layout while you are actually working, especially
6851  if you have not saved your document.
6852  That said, using local layout with a test document can be a very convenient
6853  way to try out layout ideas, or even to start developing a module.
6854 \end_layout
6855
6856 \begin_layout Subsection
6857 Layout for 
6858 \begin_inset Flex Noun
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 .sty
6863 \end_layout
6864
6865 \end_inset
6866
6867  files
6868 \end_layout
6869
6870 \begin_layout Standard
6871 There are two situations you are likely to encounter when wanting to support
6872  a new \SpecialChar LaTeX
6873  document class, involving style (
6874 \begin_inset Flex Code
6875 status collapsed
6876
6877 \begin_layout Plain Layout
6878 .sty
6879 \end_layout
6880
6881 \end_inset
6882
6883 ) files and \SpecialChar LaTeX2e
6884  class (
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 .cls
6890 \end_layout
6891
6892 \end_inset
6893
6894 ) .
6895  Supporting a style file is usually fairly easy.
6896  Supporting a new class file is a bit harder.
6897  We'll discuss the former in this section and the latter in the next.
6898  Similar remarks apply, of course, if you want to support a new DocBook
6899  DTD.
6900 \end_layout
6901
6902 \begin_layout Standard
6903 The easier case is the one in which your new document class is provided
6904  as a style file that is to be used in conjunction with an already supported
6905  document class.
6906  For the sake of the example, we'll assume that the style file is called
6907  
6908 \begin_inset Flex Noun
6909 status collapsed
6910
6911 \begin_layout Plain Layout
6912 myclass.sty
6913 \end_layout
6914
6915 \end_inset
6916
6917  and that it is meant to be used with 
6918 \begin_inset Flex Noun
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 report.cls
6923 \end_layout
6924
6925 \end_inset
6926
6927 , which is a standard class.
6928  
6929 \end_layout
6930
6931 \begin_layout Standard
6932 Start by copying the existing class's layout file into your local directory:
6933 \begin_inset Foot
6934 status collapsed
6935
6936 \begin_layout Plain Layout
6937 Of course, which directory is your local directory will vary by platform,
6938  and \SpecialChar LyX
6939  allows you to specify your local directory on startup, too, using
6940  the 
6941 \begin_inset Flex Code
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 -userdir
6946 \end_layout
6947
6948 \end_inset
6949
6950  option.
6951 \end_layout
6952
6953 \end_inset
6954
6955
6956 \end_layout
6957
6958 \begin_layout LyX-Code
6959 cp report.layout ~/.lyx/layouts/myclass.layout
6960 \end_layout
6961
6962 \begin_layout Standard
6963 Then edit 
6964 \begin_inset Flex Code
6965 status collapsed
6966
6967 \begin_layout Plain Layout
6968 myclass.layout
6969 \end_layout
6970
6971 \end_inset
6972
6973  and change the line: 
6974 \end_layout
6975
6976 \begin_layout LyX-Code
6977
6978 \backslash
6979 DeclareLaTeXClass{Report (Standard Class)}
6980 \end_layout
6981
6982 \begin_layout Standard
6983 to read
6984 \end_layout
6985
6986 \begin_layout LyX-Code
6987
6988 \backslash
6989 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
6990 \end_layout
6991
6992 \begin_layout Standard
6993 Then add:
6994 \end_layout
6995
6996 \begin_layout LyX-Code
6997 Preamble 
6998 \begin_inset Newline newline
6999 \end_inset
7000
7001     
7002 \backslash
7003 usepackage{myclass}
7004 \begin_inset Newline newline
7005 \end_inset
7006
7007 EndPreamble
7008 \end_layout
7009
7010 \begin_layout Standard
7011 near the top of the file.
7012 \end_layout
7013
7014 \begin_layout Standard
7015 Start \SpecialChar LyX
7016  and select 
7017 \begin_inset Flex Noun
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021 Tools\SpecialChar menuseparator
7022 Reconfigure
7023 \end_layout
7024
7025 \end_inset
7026
7027 .
7028  Then restart \SpecialChar LyX
7029  and try creating a new document.
7030  You should see "
7031 \begin_inset Flex Noun
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 Report (My Class)
7036 \end_layout
7037
7038 \end_inset
7039
7040 " as a document class option in the 
7041 \begin_inset Flex Noun
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 Document\SpecialChar menuseparator
7046 Settings
7047 \end_layout
7048
7049 \end_inset
7050
7051  dialog.
7052  It is likely that some of the sectioning commands and such in your new
7053  class will work differently from how they worked in the base class—
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 report
7059 \end_layout
7060
7061 \end_inset
7062
7063  in this example—so you can fiddle around with the settings for the different
7064  sections if you wish.
7065  The layout information for sections is contained in 
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 stdsections.inc
7071 \end_layout
7072
7073 \end_inset
7074
7075 , but you do not need to copy and change this file.
7076  Instead, you can simply add your changes to your layout file, after the
7077  line 
7078 \begin_inset Flex Code
7079 status collapsed
7080
7081 \begin_layout Plain Layout
7082 Input stdclass.inc
7083 \end_layout
7084
7085 \end_inset
7086
7087 , which itself includes 
7088 \begin_inset Flex Code
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 stdsections.inc
7093 \end_layout
7094
7095 \end_inset
7096
7097 .
7098  For example, you might add these lines:
7099 \end_layout
7100
7101 \begin_layout LyX-Code
7102 Style Chapter
7103 \end_layout
7104
7105 \begin_layout LyX-Code
7106     Font
7107 \end_layout
7108
7109 \begin_layout LyX-Code
7110         Family Sans
7111 \end_layout
7112
7113 \begin_layout LyX-Code
7114     EndFont
7115 \end_layout
7116
7117 \begin_layout LyX-Code
7118 End
7119 \end_layout
7120
7121 \begin_layout Standard
7122 to change the font for chapter headings to sans-serif.
7123  This will override (or, in this case, add to) the existing declaration
7124  for the Chapter style.
7125  
7126 \end_layout
7127
7128 \begin_layout Standard
7129 Your new package may also provide commands or environments not present in
7130  the base class.
7131  In this case, you will want to add these to the layout file.
7132  See 
7133 \begin_inset CommandInset ref
7134 LatexCommand ref
7135 reference "sec:TextClass"
7136
7137 \end_inset
7138
7139  for information on how to do so.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 If 
7144 \begin_inset Flex Noun
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 myclass.sty
7149 \end_layout
7150
7151 \end_inset
7152
7153  can be used with several different document classes, and even if it cannot,
7154  you might find it easiest just to write a module that you can load with
7155  the base class.
7156  The simplest possible such module would be:
7157 \end_layout
7158
7159 \begin_layout LyX-Code
7160 #
7161 \backslash
7162 DeclareLyXModule{My Class} 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166 #DescriptionBegin 
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170 #Support for myclass.sty.
7171 \end_layout
7172
7173 \begin_layout LyX-Code
7174 #DescriptionEnd
7175 \begin_inset Newline newline
7176 \end_inset
7177
7178
7179 \end_layout
7180
7181 \begin_layout LyX-Code
7182 Format 63
7183 \begin_inset Newline newline
7184 \end_inset
7185
7186
7187 \end_layout
7188
7189 \begin_layout LyX-Code
7190 Preamble
7191 \begin_inset Newline newline
7192 \end_inset
7193
7194     
7195 \backslash
7196 usepackage{myclass}
7197 \begin_inset Newline newline
7198 \end_inset
7199
7200 EndPreamble
7201 \end_layout
7202
7203 \begin_layout Standard
7204 A more complex module might modify the behavior of some existing constructs
7205  or define some new ones.
7206  Again, see 
7207 \begin_inset CommandInset ref
7208 LatexCommand ref
7209 reference "sec:TextClass"
7210
7211 \end_inset
7212
7213  for discussion.
7214 \end_layout
7215
7216 \begin_layout Subsection
7217 Layout for 
7218 \begin_inset Flex Noun
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 .cls
7223 \end_layout
7224
7225 \end_inset
7226
7227  files
7228 \end_layout
7229
7230 \begin_layout Standard
7231 There are two possibilities here.
7232  One is that the class file is itself based upon an existing document class.
7233  For example, many thesis classes are based upon 
7234 \begin_inset Flex Noun
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 book.cls
7239 \end_layout
7240
7241 \end_inset
7242
7243 .
7244  To see whether yours is, look for a line like
7245 \end_layout
7246
7247 \begin_layout LyX-Code
7248
7249 \backslash
7250 LoadClass{book}
7251 \end_layout
7252
7253 \begin_layout Standard
7254 in the file.
7255  If so, then you may proceed largely as in the previous section, though
7256  the 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 Declare\SpecialChar LaTeX
7262 Class
7263 \end_layout
7264
7265 \end_inset
7266
7267  line will be different.
7268  If your new class is 
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 thesis
7274 \end_layout
7275
7276 \end_inset
7277
7278  and it is based upon 
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 book
7284 \end_layout
7285
7286 \end_inset
7287
7288 , then the line should read:
7289 \begin_inset Foot
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 And it will be easiest if you save the file to 
7294 \begin_inset Flex Code
7295 status collapsed
7296
7297 \begin_layout Plain Layout
7298 thesis.layout
7299 \end_layout
7300
7301 \end_inset
7302
7303 : \SpecialChar LyX
7304  assumes that the document class has the same name as the layout file.
7305  
7306 \end_layout
7307
7308 \end_inset
7309
7310
7311 \end_layout
7312
7313 \begin_layout LyX-Code
7314
7315 \backslash
7316 DeclareLaTeXClass[thesis,book]{thesis}
7317 \end_layout
7318
7319 \begin_layout Standard
7320 If, on the other hand, the new class is not based upon an existing class,
7321  you will probably have to 
7322 \begin_inset Quotes eld
7323 \end_inset
7324
7325 roll your own
7326 \begin_inset Quotes erd
7327 \end_inset
7328
7329  layout.
7330  We strongly suggest copying an existing layout file which uses a similar
7331  \SpecialChar LaTeX
7332  class and then modifying it, if you can do so.
7333  At least use an existing file as a starting point so you can find out what
7334  items you need to worry about.
7335  Again, the specifics are covered below.
7336 \end_layout
7337
7338 \begin_layout Subsection
7339 Creating templates
7340 \begin_inset CommandInset label
7341 LatexCommand label
7342 name "subsec:Creating-Templates"
7343
7344 \end_inset
7345
7346
7347 \end_layout
7348
7349 \begin_layout Standard
7350 Once you have written a layout file for a new document class, you might
7351  want to consider writing a 
7352 \emph on
7353 template
7354 \emph default
7355  for it, too.
7356  A template acts as a kind of tutorial for your layout, showing how it might
7357  be used, though containing dummy content.
7358  You can of course look at the various templates included with \SpecialChar LyX
7359  for ideas.
7360 \end_layout
7361
7362 \begin_layout Standard
7363 Templates are created just like usual documents: using \SpecialChar LyX
7364 .
7365  The only difference is that usual documents contain all possible settings,
7366  including the font scheme and the paper size.
7367  Usually a user doesn't want a template to overwrite his preferred settings
7368  for such parameters.
7369  For that reason, the designer of a template should remove the corresponding
7370  commands like 
7371 \begin_inset Flex Code
7372 status collapsed
7373
7374 \begin_layout Plain Layout
7375
7376 \backslash
7377 font_roman
7378 \end_layout
7379
7380 \end_inset
7381
7382  or 
7383 \begin_inset Flex Code
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387
7388 \backslash
7389 papersize
7390 \end_layout
7391
7392 \end_inset
7393
7394  from the template \SpecialChar LyX
7395  file.
7396  This can be done with any simple text-editor, for example 
7397 \begin_inset Flex Code
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 vi
7402 \end_layout
7403
7404 \end_inset
7405
7406  or 
7407 \begin_inset Flex Code
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 notepad
7412 \end_layout
7413
7414 \end_inset
7415
7416 .
7417 \end_layout
7418
7419 \begin_layout Standard
7420 Put the edited template files you create in 
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425 UserDir/templates/
7426 \end_layout
7427
7428 \end_inset
7429
7430 , copy the ones you use from the global template directory in 
7431 \begin_inset Flex Code
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 LyXDir/templates/
7436 \end_layout
7437
7438 \end_inset
7439
7440  to the same place, and redefine the template path in the 
7441 \begin_inset Flex Noun
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 Tools\SpecialChar menuseparator
7446 Preferences\SpecialChar menuseparator
7447 Paths
7448 \end_layout
7449
7450 \end_inset
7451
7452  dialog.
7453 \end_layout
7454
7455 \begin_layout Standard
7456 Note, by the way, that there is a template which has a particular meaning:
7457 \begin_inset Newline linebreak
7458 \end_inset
7459
7460
7461 \begin_inset Flex Code
7462 status collapsed
7463
7464 \begin_layout Plain Layout
7465 defaults.lyx
7466 \end_layout
7467
7468 \end_inset
7469
7470 .
7471  This template is loaded every time you create a new document with 
7472 \begin_inset Flex Noun
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 File\SpecialChar menuseparator
7477 New
7478 \end_layout
7479
7480 \end_inset
7481
7482  in order to provide useful defaults.
7483  To create this template from inside \SpecialChar LyX
7484 , all you have to do is to open a document
7485  with the correct settings, and use the 
7486 \begin_inset Flex Noun
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 Save as Document Defaults
7491 \end_layout
7492
7493 \end_inset
7494
7495  button.
7496 \end_layout
7497
7498 \begin_layout Subsection
7499 Upgrading old layout files
7500 \end_layout
7501
7502 \begin_layout Standard
7503 The format of layout files changes with each \SpecialChar LyX
7504  release, so old layout files
7505  need to be converted to the new format.
7506  If \SpecialChar LyX
7507  reads a layout file in an older format, it automatically calls the
7508  script 
7509 \begin_inset Flex Code
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 layout2layout.py
7514 \end_layout
7515
7516 \end_inset
7517
7518  to convert it to a temporary file in current format.
7519  The original file is left untouched.
7520  If you use the layout file often, then, you may want to convert it permanently,
7521  so that \SpecialChar LyX
7522  does not have to do so itself every time.
7523  To do this, you can call the converter manually:
7524 \end_layout
7525
7526 \begin_layout Enumerate
7527 rename the file 
7528 \begin_inset Flex Code
7529 status collapsed
7530
7531 \begin_layout Plain Layout
7532 myclass.layout
7533 \end_layout
7534
7535 \end_inset
7536
7537  to 
7538 \begin_inset Flex Code
7539 status collapsed
7540
7541 \begin_layout Plain Layout
7542 myclass.old
7543 \end_layout
7544
7545 \end_inset
7546
7547
7548 \end_layout
7549
7550 \begin_layout Enumerate
7551 Call the command
7552 \begin_inset Newline newline
7553 \end_inset
7554
7555
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7561 \end_layout
7562
7563 \end_inset
7564
7565
7566 \begin_inset Newline newline
7567 \end_inset
7568
7569 where 
7570 \begin_inset Flex Code
7571 status collapsed
7572
7573 \begin_layout Plain Layout
7574 LyXDir
7575 \end_layout
7576
7577 \end_inset
7578
7579  is the name of your \SpecialChar LyX
7580  system directory.
7581 \end_layout
7582
7583 \begin_layout Standard
7584 Note that manual conversion does not affect included files, so these will
7585  have to be converted separately.
7586 \end_layout
7587
7588 \begin_layout Subsection
7589 \begin_inset CommandInset label
7590 LatexCommand label
7591 name "subsec:Cite-Engine-Files"
7592
7593 \end_inset
7594
7595 Cite engine files
7596 \end_layout
7597
7598 \begin_layout Standard
7599 A specific form of layout files are the so-called 
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 *.citeengine
7605 \end_layout
7606
7607 \end_inset
7608
7609  files that are located in the 
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 citeengines/
7615 \end_layout
7616
7617 \end_inset
7618
7619  sub-directory.
7620  Their purpose is to define the specifics of \SpecialChar LaTeX
7621  packages aimed at bibliography
7622  generation, such as 
7623 \family sans
7624 natbib
7625 \family default
7626 ,
7627 \family sans
7628  jurabib
7629 \family default
7630  or 
7631 \family sans
7632 biblatex
7633 \family default
7634 , but also the way how normal Bib\SpecialChar TeX
7635  citations (without additional packages)
7636  are handled in \SpecialChar LyX
7637  is defined in such a file.
7638  
7639 \end_layout
7640
7641 \begin_layout Standard
7642 More specifically, it is defined which packages \SpecialChar LyX
7643  needs to load, which citation
7644  commands are available, how these are to be displayed in \SpecialChar LyX
7645  (in the workarea,
7646  the dialogs, the context menus) as well as in the XHTML and plain text
7647  output.
7648  Furthermore, the files specify available style variants (author-year, numerical
7649 , etc.) and their specifics.
7650  The cite engine files are also used to generate the options that are available
7651  in 
7652 \family sans
7653 Document\SpecialChar menuseparator
7654 Settings\SpecialChar menuseparator
7655 Bibliography\SpecialChar menuseparator
7656 Style engine
7657 \family default
7658 .
7659 \end_layout
7660
7661 \begin_layout Standard
7662 Even though a cite engine file is essentially a normal layout file that
7663  could theoretically include any layout information, it usually primarily
7664  includes some specific parameters such as 
7665 \begin_inset Flex Code
7666 status collapsed
7667
7668 \begin_layout Plain Layout
7669 MaxCiteNames
7670 \end_layout
7671
7672 \end_inset
7673
7674
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 CiteFramework
7680 \end_layout
7681
7682 \end_inset
7683
7684
7685 \begin_inset Flex Code
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 CiteEngine
7690 \end_layout
7691
7692 \end_inset
7693
7694  and 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 CiteFormat
7700 \end_layout
7701
7702 \end_inset
7703
7704  blocks.
7705  The syntax of the latter two is described in 
7706 \begin_inset CommandInset ref
7707 LatexCommand ref
7708 reference "subsec:Citation-engine-description"
7709 plural "false"
7710 caps "false"
7711 noprefix "false"
7712
7713 \end_inset
7714
7715  and 
7716 \begin_inset CommandInset ref
7717 LatexCommand ref
7718 reference "subsec:Citation-format-description"
7719
7720 \end_inset
7721
7722 , as well as in the files themselves.
7723 \end_layout
7724
7725 \begin_layout Section
7726 \begin_inset CommandInset label
7727 LatexCommand label
7728 name "sec:TextClass"
7729
7730 \end_inset
7731
7732 The layout file format
7733 \end_layout
7734
7735 \begin_layout Standard
7736 The following sections describe how layout files are structured and written.
7737  Our advice is to go slowly, save and test often.
7738  It is really not that hard, except that the multitude of options can become
7739  overwhelming, especially if you try to check out too many at once.
7740  It becomes easier if you use existing layouts of \SpecialChar LyX
7741  as examples/reference
7742  or if you modify an existing layout to your needs.
7743 \end_layout
7744
7745 \begin_layout Standard
7746 Note that all the tags used in layout files are case-insensitive.
7747  This means that 
7748 \begin_inset Flex Code
7749 status collapsed
7750
7751 \begin_layout Plain Layout
7752 Style
7753 \end_layout
7754
7755 \end_inset
7756
7757
7758 \begin_inset Flex Code
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 style
7763 \end_layout
7764
7765 \end_inset
7766
7767  and 
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 StYlE
7773 \end_layout
7774
7775 \end_inset
7776
7777  are really the same tag.
7778  The possible arguments are printed in brackets after the tag's name.
7779  The default argument is typeset 
7780 \begin_inset Flex Code
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784
7785 \emph on
7786 emphasized
7787 \end_layout
7788
7789 \end_inset
7790
7791 .
7792  If the argument has a data type like 
7793 \begin_inset Quotes eld
7794 \end_inset
7795
7796 string
7797 \begin_inset Quotes erd
7798 \end_inset
7799
7800  or 
7801 \begin_inset Quotes eld
7802 \end_inset
7803
7804 float
7805 \begin_inset Quotes erd
7806 \end_inset
7807
7808 , the default is shown like this: 
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 float=
7814 \emph on
7815 default
7816 \end_layout
7817
7818 \end_inset
7819
7820 .
7821 \end_layout
7822
7823 \begin_layout Subsection
7824 The document class declaration and classification
7825 \end_layout
7826
7827 \begin_layout Standard
7828 Lines in a layout file which begin with 
7829 \begin_inset Flex Code
7830 status collapsed
7831
7832 \begin_layout Plain Layout
7833 #
7834 \end_layout
7835
7836 \end_inset
7837
7838  are comments.
7839  There is one exception to this rule.
7840  All 
7841 \begin_inset Flex Code
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845 *.layout
7846 \end_layout
7847
7848 \end_inset
7849
7850  files should begin with lines like:
7851 \end_layout
7852
7853 \begin_layout LyX-Code
7854
7855 \size small
7856 #% Do not delete the line below; configure depends on this 
7857 \end_layout
7858
7859 \begin_layout LyX-Code
7860
7861 \size small
7862 #  
7863 \backslash
7864 DeclareLaTeXClass{Article (Standard Class)}
7865 \end_layout
7866
7867 \begin_layout LyX-Code
7868
7869 \size small
7870 #  
7871 \backslash
7872 DeclareCategory{Articles}
7873 \end_layout
7874
7875 \begin_layout Standard
7876 The second and third lines are used when you (re)configure \SpecialChar LyX
7877 .
7878  The layout file is read by the \SpecialChar LaTeX
7879  script 
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 chkconfig.ltx
7885 \end_layout
7886
7887 \end_inset
7888
7889 , in a special mode where 
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 #
7895 \end_layout
7896
7897 \end_inset
7898
7899  is ignored.
7900  The first line is just a \SpecialChar LaTeX
7901  comment, the second one contains the mandatory
7902  declaration of the text class and the third line contains the optional
7903  classification of the class.
7904  If these lines appear in a file named 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 article.layout
7910 \end_layout
7911
7912 \end_inset
7913
7914 , then they define a text class of name 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 article
7920 \end_layout
7921
7922 \end_inset
7923
7924  (the name of the layout file) which uses the \SpecialChar LaTeX
7925  document class 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 article.cls
7931 \end_layout
7932
7933 \end_inset
7934
7935  (the default is to use the same name as the layout).
7936  The string 
7937 \begin_inset Quotes eld
7938 \end_inset
7939
7940 Article (Standard Class)
7941 \begin_inset Quotes erd
7942 \end_inset
7943
7944  that appears above is used as a description of the text class in the 
7945 \begin_inset Flex Noun
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 Document\SpecialChar menuseparator
7950 Settings
7951 \end_layout
7952
7953 \end_inset
7954
7955  dialog.
7956  The category (
7957 \begin_inset Quotes eld
7958 \end_inset
7959
7960 Articles
7961 \begin_inset Quotes erd
7962 \end_inset
7963
7964  in the example) is also used in the 
7965 \begin_inset Flex Noun
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 Document\SpecialChar menuseparator
7970 Settings
7971 \end_layout
7972
7973 \end_inset
7974
7975  dialog: the text classes are grouped by these categories (which are usually
7976  genres, so typical categories are 
7977 \begin_inset Quotes eld
7978 \end_inset
7979
7980 Articles
7981 \begin_inset Quotes erd
7982 \end_inset
7983
7984
7985 \begin_inset Quotes eld
7986 \end_inset
7987
7988 Books
7989 \begin_inset Quotes erd
7990 \end_inset
7991
7992
7993 \begin_inset Quotes eld
7994 \end_inset
7995
7996 Reports
7997 \begin_inset Quotes erd
7998 \end_inset
7999
8000
8001 \begin_inset Quotes eld
8002 \end_inset
8003
8004 Letters
8005 \begin_inset Quotes erd
8006 \end_inset
8007
8008
8009 \begin_inset Quotes eld
8010 \end_inset
8011
8012 Presentations
8013 \begin_inset Quotes erd
8014 \end_inset
8015
8016
8017 \begin_inset Quotes eld
8018 \end_inset
8019
8020 Curricula Vitae
8021 \begin_inset Quotes erd
8022 \end_inset
8023
8024  etc.).
8025  If no category has been declared, the class will be put in the 
8026 \begin_inset Quotes eld
8027 \end_inset
8028
8029 Uncategorized
8030 \begin_inset Quotes erd
8031 \end_inset
8032
8033  group.
8034 \end_layout
8035
8036 \begin_layout Standard
8037 Let's assume that you wrote your own text class that uses the 
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 article.cls
8043 \end_layout
8044
8045 \end_inset
8046
8047  document class, but where you changed the appearance of the section headings.
8048  If you put it in a file 
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 myarticle.layout
8054 \end_layout
8055
8056 \end_inset
8057
8058 , the header of this file should be:
8059 \end_layout
8060
8061 \begin_layout LyX-Code
8062
8063 \size small
8064 #% Do not delete the line below; configure depends on this 
8065 \end_layout
8066
8067 \begin_layout LyX-Code
8068
8069 \size small
8070 #  
8071 \backslash
8072 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8073 \end_layout
8074
8075 \begin_layout LyX-Code
8076
8077 \size small
8078 #  
8079 \backslash
8080 DeclareCategory{Articles}
8081 \end_layout
8082
8083 \begin_layout Standard
8084 This declares a text class 
8085 \begin_inset Flex Code
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 myarticle
8090 \end_layout
8091
8092 \end_inset
8093
8094 , associated with the \SpecialChar LaTeX
8095  document class 
8096 \begin_inset Flex Code
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 article.cls
8101 \end_layout
8102
8103 \end_inset
8104
8105  and described as 
8106 \begin_inset Quotes eld
8107 \end_inset
8108
8109 Article (with My Own Headings)
8110 \begin_inset Quotes erd
8111 \end_inset
8112
8113 .
8114  If your text class depends on several packages, you can declare it as:
8115 \end_layout
8116
8117 \begin_layout LyX-Code
8118
8119 \size small
8120 #% Do not delete the line below; configure depends on this 
8121 \end_layout
8122
8123 \begin_layout LyX-Code
8124
8125 \size small
8126 #  
8127 \backslash
8128 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8129 \end_layout
8130
8131 \begin_layout LyX-Code
8132
8133 \size small
8134 #  
8135 \backslash
8136 DeclareCategory{Articles}
8137 \end_layout
8138
8139 \begin_layout Standard
8140 This indicates that your text class uses the 
8141 \begin_inset Flex Code
8142 status collapsed
8143
8144 \begin_layout Plain Layout
8145 foo.sty
8146 \end_layout
8147
8148 \end_inset
8149
8150  package.
8151  Finally, it is also possible to declare classes for DocBook code.
8152  Typical declarations will look like:
8153 \end_layout
8154
8155 \begin_layout LyX-Code
8156
8157 \size small
8158 #% Do not delete the line below; configure depends on this 
8159 \end_layout
8160
8161 \begin_layout LyX-Code
8162
8163 \size small
8164
8165 \backslash
8166 DeclareDocBookClass[article]{SGML (DocBook Article)}
8167 \end_layout
8168
8169 \begin_layout LyX-Code
8170
8171 \size small
8172
8173 \backslash
8174 DeclareCategory{Articles (DocBook)}
8175 \end_layout
8176
8177 \begin_layout Standard
8178 Note that these declarations can also be given an optional parameter declaring
8179  the name of the document class (but not a list).
8180 \end_layout
8181
8182 \begin_layout Standard
8183 So, to be as explicit as possible, the form of the layout declaration is:
8184 \end_layout
8185
8186 \begin_layout LyX-Code
8187
8188 \size small
8189 #  
8190 \backslash
8191 DeclareLaTeXClass[class,package.sty]{layout description}
8192 \end_layout
8193
8194 \begin_layout LyX-Code
8195
8196 \size small
8197 #  
8198 \backslash
8199 DeclareCategory{category}
8200 \end_layout
8201
8202 \begin_layout Standard
8203 The class need only be specified if the name of the \SpecialChar LaTeX
8204  class file and the
8205  name of the layout file are different or if there are packages to load.
8206  If the name of the class file is not specified, then \SpecialChar LyX
8207  will simply assume
8208  that it is the same as the name of the layout file.
8209 \end_layout
8210
8211 \begin_layout Standard
8212 When the text class has been modified to your taste, all you have to do
8213  is to copy it either to 
8214 \begin_inset Flex Code
8215 status collapsed
8216
8217 \begin_layout Plain Layout
8218 LyXDir/layouts/
8219 \end_layout
8220
8221 \end_inset
8222
8223  or to 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 UserDir/layouts
8229 \end_layout
8230
8231 \end_inset
8232
8233 , run 
8234 \begin_inset Flex Noun
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 Tools\SpecialChar menuseparator
8239 Reconfigure
8240 \end_layout
8241
8242 \end_inset
8243
8244 , exit \SpecialChar LyX
8245  and restart.
8246  Then your new text class should be available along with the others.
8247 \end_layout
8248
8249 \begin_layout Standard
8250 Once the layout file is installed, you can edit it and see your changes
8251  without having to reconfigure or to restart \SpecialChar LyX
8252 .
8253 \begin_inset Foot
8254 status collapsed
8255
8256 \begin_layout Plain Layout
8257 In versions of \SpecialChar LyX
8258  prior to 1.6, this was not true.
8259  As a result, editing layout files was very time consuming, since you had
8260  constantly to restart \SpecialChar LyX
8261  to see changes.
8262 \end_layout
8263
8264 \end_inset
8265
8266  You can force a reload of the current layout by using the \SpecialChar LyX
8267  function 
8268 \begin_inset Flex Noun
8269 status collapsed
8270
8271 \begin_layout Plain Layout
8272 layout-reload
8273 \end_layout
8274
8275 \end_inset
8276
8277 .
8278  There is no default binding for this function—though, of course, you can
8279  bind it to a key yourself.
8280  But you will normally use this function simply by entering it in the mini-buffe
8281 r.
8282  
8283 \end_layout
8284
8285 \begin_layout Standard
8286
8287 \emph on
8288 Warning
8289 \emph default
8290
8291 \begin_inset Flex Noun
8292 status collapsed
8293
8294 \begin_layout Plain Layout
8295 layout-reload
8296 \end_layout
8297
8298 \end_inset
8299
8300  is very much an `advanced feature'.
8301  It is 
8302 \emph on
8303 strongly
8304 \emph default
8305  recommended that you save your work before using this function.
8306  In fact, it is 
8307 \emph on
8308 strongly
8309 \emph default
8310  recommended that you not attempt to edit layout information while simultaneousl
8311 y working on a document that you care about.
8312  Use a test document.
8313  Syntax errors and the like in your layout file could cause peculiar behavior.
8314  In particular, such errors could cause \SpecialChar LyX
8315  to regard the current layout as
8316  invalid and to attempt to switch to some other layout.
8317 \begin_inset Foot
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 Really bad syntax errors may even caused \SpecialChar LyX
8322  to exit.
8323  This is because certain sorts of errors may make \SpecialChar LyX
8324  unable to read 
8325 \emph on
8326 any
8327 \emph default
8328  layout information.
8329  Please be careful.
8330 \end_layout
8331
8332 \end_inset
8333
8334  The \SpecialChar LyX
8335  team strives to keep \SpecialChar LyX
8336  stable in such situations, but safe is better
8337  than sorry.
8338 \begin_inset Foot
8339 status collapsed
8340
8341 \begin_layout Plain Layout
8342 While we're giving advice: make regular backups.
8343  And be nice to your mother.
8344 \end_layout
8345
8346 \end_inset
8347
8348
8349 \end_layout
8350
8351 \begin_layout Subsection
8352 The Module declaration
8353 \end_layout
8354
8355 \begin_layout Standard
8356 A module must begin with a line like the following:
8357 \end_layout
8358
8359 \begin_layout LyX-Code
8360 #
8361 \backslash
8362 DeclareLyXModule[endnotes.sty]{Endnotes} 
8363 \end_layout
8364
8365 \begin_layout Standard
8366 The mandatory argument, in curly brackets, is the name of the module, as
8367  it should appear in 
8368 \begin_inset Flex Noun
8369 status collapsed
8370
8371 \begin_layout Plain Layout
8372 Document\SpecialChar menuseparator
8373 Settings\SpecialChar menuseparator
8374 Modules
8375 \end_layout
8376
8377 \end_inset
8378
8379 .
8380  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8381  packages
8382  on which the module depends.
8383  It is also possible to use the form 
8384 \begin_inset Flex Noun
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 from->to
8389 \end_layout
8390
8391 \end_inset
8392
8393  as an optional argument, which declares that the module can only be used
8394  when there exists a conversion chain between the formats `
8395 \begin_inset Flex Code
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 from
8400 \end_layout
8401
8402 \end_inset
8403
8404 ' and `
8405 \begin_inset Flex Code
8406 status collapsed
8407
8408 \begin_layout Plain Layout
8409 to
8410 \end_layout
8411
8412 \end_inset
8413
8414 '.
8415 \end_layout
8416
8417 \begin_layout Standard
8418 The module declaration should then be followed by lines like the following:
8419 \begin_inset Foot
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Preferably in English if the module should be published with \SpecialChar LyX
8424 .
8425  This description will appear in the list of messages to be translated and
8426  will be thus translated with the next interface update.
8427 \end_layout
8428
8429 \end_inset
8430
8431
8432 \end_layout
8433
8434 \begin_layout LyX-Code
8435 #DescriptionBegin 
8436 \end_layout
8437
8438 \begin_layout LyX-Code
8439 #Adds an endnote command, in addition to footnotes.
8440  
8441 \end_layout
8442
8443 \begin_layout LyX-Code
8444 #You will need to add  
8445 \backslash
8446 theendnotes in TeX code where you 
8447 \end_layout
8448
8449 \begin_layout LyX-Code
8450 #want the endnotes to appear.
8451  
8452 \end_layout
8453
8454 \begin_layout LyX-Code
8455 #DescriptionEnd 
8456 \end_layout
8457
8458 \begin_layout LyX-Code
8459 #Requires: somemodule | othermodule
8460 \end_layout
8461
8462 \begin_layout LyX-Code
8463 #Excludes: badmodule
8464 \end_layout
8465
8466 \begin_layout Standard
8467 The description is used in 
8468 \begin_inset Flex Noun
8469 status collapsed
8470
8471 \begin_layout Plain Layout
8472 Document\SpecialChar menuseparator
8473 Settings\SpecialChar menuseparator
8474 Modules
8475 \end_layout
8476
8477 \end_inset
8478
8479  to provide the user with information about what the module does.
8480  The 
8481 \begin_inset Flex Code
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 Requires
8486 \end_layout
8487
8488 \end_inset
8489
8490  line is used to identify other modules with which this one must be used;
8491  the 
8492 \begin_inset Flex Code
8493 status collapsed
8494
8495 \begin_layout Plain Layout
8496 Excludes
8497 \end_layout
8498
8499 \end_inset
8500
8501  line is used to identify modules with which this one may not be used.
8502  Both are optional, and, as shown, multiple modules should be separated
8503  with the pipe symbol: |.
8504  Note that the required modules are treated disjunctively: 
8505 \emph on
8506 at least one
8507 \emph default
8508  of the required modules must be used.
8509  Similarly, 
8510 \emph on
8511 no
8512 \emph default
8513  excluded module may be used.
8514  Note that modules are identified here by their filenames without the 
8515 \begin_inset Flex Code
8516 status collapsed
8517
8518 \begin_layout Plain Layout
8519 .module
8520 \end_layout
8521
8522 \end_inset
8523
8524  extension.
8525  So 
8526 \begin_inset Flex Code
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 somemodule
8531 \end_layout
8532
8533 \end_inset
8534
8535  is really 
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 somemodule.module
8541 \end_layout
8542
8543 \end_inset
8544
8545 .
8546 \end_layout
8547
8548 \begin_layout Subsection
8549 The CiteEngine file declaration
8550 \end_layout
8551
8552 \begin_layout Standard
8553 A cite engine file must begin with a line like the following:
8554 \end_layout
8555
8556 \begin_layout LyX-Code
8557 #
8558 \backslash
8559 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8560 \end_layout
8561
8562 \begin_layout Standard
8563 The mandatory argument, in curly brackets, is the name of the cite style,
8564  as it should appear in 
8565 \begin_inset Flex Noun
8566 status collapsed
8567
8568 \begin_layout Plain Layout
8569 Document\SpecialChar menuseparator
8570 Settings\SpecialChar menuseparator
8571 Bibliography
8572 \end_layout
8573
8574 \end_inset
8575
8576 .
8577  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8578  packages
8579  on which the cite engine depends.
8580 \end_layout
8581
8582 \begin_layout Standard
8583 The cite engine declaration should then be followed by lines like the following:
8584 \begin_inset Foot
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588 Preferably in English if the module should be published with \SpecialChar LyX
8589 .
8590  This description will appear in the list of messages to be translated and
8591  will be thus translated with the next interface update.
8592 \end_layout
8593
8594 \end_inset
8595
8596
8597 \end_layout
8598
8599 \begin_layout LyX-Code
8600 # DescriptionBegin
8601 \end_layout
8602
8603 \begin_layout LyX-Code
8604 #   Biblatex supports many author-year and numerical styles.
8605 \end_layout
8606
8607 \begin_layout LyX-Code
8608 #   It is mainly aimed at the Humanities.
8609  It is highly
8610 \end_layout
8611
8612 \begin_layout LyX-Code
8613 #   customizable, fully localized and provides many features
8614 \end_layout
8615
8616 \begin_layout LyX-Code
8617 #   that are not possible with BibTeX.
8618  The use of 'biber' as
8619 \end_layout
8620
8621 \begin_layout LyX-Code
8622 #   bibliography processor is advised.
8623 \end_layout
8624
8625 \begin_layout LyX-Code
8626 # DescriptionEnd
8627 \end_layout
8628
8629 \begin_layout Standard
8630 The description is used in 
8631 \begin_inset Flex Noun
8632 status collapsed
8633
8634 \begin_layout Plain Layout
8635 Document\SpecialChar menuseparator
8636 Settings\SpecialChar menuseparator
8637 Bibliography
8638 \end_layout
8639
8640 \end_inset
8641
8642  to provide the user with information about the cite engine.
8643 \end_layout
8644
8645 \begin_layout Subsection
8646 Format number
8647 \end_layout
8648
8649 \begin_layout Standard
8650 The first non-comment line of any layout file, included file, or module
8651  
8652 \emph on
8653 must
8654 \emph default
8655  contain the file format number:
8656 \end_layout
8657
8658 \begin_layout Description
8659 \begin_inset Flex Code
8660 status collapsed
8661
8662 \begin_layout Plain Layout
8663 Format
8664 \end_layout
8665
8666 \end_inset
8667
8668  [
8669 \begin_inset Flex Code
8670 status collapsed
8671
8672 \begin_layout Plain Layout
8673 int
8674 \end_layout
8675
8676 \end_inset
8677
8678 ] The format number of the layout file.
8679 \end_layout
8680
8681 \begin_layout Standard
8682 This tag was introduced with \SpecialChar LyX
8683
8684 \begin_inset space ~
8685 \end_inset
8686
8687 1.4.0.
8688  Layout files from older \SpecialChar LyX
8689  versions do not have an explicit file format and
8690  are considered to have 
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 Format
8696 \begin_inset space ~
8697 \end_inset
8698
8699 1
8700 \end_layout
8701
8702 \end_inset
8703
8704 .
8705  The format for the present version of \SpecialChar LyX
8706  is format 60.
8707  But each version of \SpecialChar LyX
8708  is capable of reading earlier versions' layout files,
8709  just as they are capable of reading files produced by earlier versions
8710  of \SpecialChar LyX
8711 .
8712  There is, however, no provision for converting to earlier formats.
8713 \end_layout
8714
8715 \begin_layout Subsection
8716 \begin_inset CommandInset label
8717 LatexCommand label
8718 name "subsec:General-text-class"
8719
8720 \end_inset
8721
8722 General text class parameters
8723 \end_layout
8724
8725 \begin_layout Standard
8726 These are general parameters that govern the behavior of an entire document
8727  class.
8728  (This does 
8729 \emph on
8730 not
8731 \emph default
8732  mean that they must appear in 
8733 \begin_inset Flex Code
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 .layout
8738 \end_layout
8739
8740 \end_inset
8741
8742  files rather than in modules.
8743  A module can contain any layout tag.)
8744 \end_layout
8745
8746 \begin_layout Description
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 AddToHTMLPreamble
8752 \end_layout
8753
8754 \end_inset
8755
8756  Adds information that will be output in the 
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 <head>
8762 \end_layout
8763
8764 \end_inset
8765
8766  block when the document is output to XHTML.
8767  Typically, this would be used to output CSS style information, but it can
8768  be used for anything that can appear in 
8769 \begin_inset Flex Code
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 <head>
8774 \end_layout
8775
8776 \end_inset
8777
8778 .
8779  Must end with 
8780 \begin_inset Quotes eld
8781 \end_inset
8782
8783
8784 \begin_inset Flex Code
8785 status collapsed
8786
8787 \begin_layout Plain Layout
8788 EndPreamble
8789 \end_layout
8790
8791 \end_inset
8792
8793
8794 \begin_inset Quotes erd
8795 \end_inset
8796
8797 .
8798 \end_layout
8799
8800 \begin_layout Description
8801 \begin_inset Flex Code
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 AddToPreamble
8806 \end_layout
8807
8808 \end_inset
8809
8810  Adds information to the document preamble.
8811  Must end with
8812 \begin_inset Newline newline
8813 \end_inset
8814
8815
8816 \begin_inset Quotes eld
8817 \end_inset
8818
8819
8820 \begin_inset Flex Code
8821 status collapsed
8822
8823 \begin_layout Plain Layout
8824 EndPreamble
8825 \end_layout
8826
8827 \end_inset
8828
8829
8830 \begin_inset Quotes erd
8831 \end_inset
8832
8833 .
8834 \end_layout
8835
8836 \begin_layout Description
8837 \begin_inset Flex Code
8838 status collapsed
8839
8840 \begin_layout Plain Layout
8841 CiteEngine <engine>
8842 \end_layout
8843
8844 \end_inset
8845
8846  Defines the possibilities for displaying citation references.
8847  See 
8848 \begin_inset CommandInset ref
8849 LatexCommand ref
8850 reference "subsec:Citation-engine-description"
8851 plural "false"
8852 caps "false"
8853 noprefix "false"
8854
8855 \end_inset
8856
8857  for details.
8858  Must end with 
8859 \begin_inset Quotes eld
8860 \end_inset
8861
8862
8863 \begin_inset Flex Code
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867 End
8868 \end_layout
8869
8870 \end_inset
8871
8872
8873 \begin_inset Quotes erd
8874 \end_inset
8875
8876 .
8877  Primarily used in cite engine files (see 
8878 \begin_inset CommandInset ref
8879 LatexCommand ref
8880 reference "subsec:Cite-Engine-Files"
8881 plural "false"
8882 caps "false"
8883 noprefix "false"
8884
8885 \end_inset
8886
8887 ).
8888 \end_layout
8889
8890 \begin_layout Description
8891 \begin_inset Flex Code
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 CiteFormat
8896 \end_layout
8897
8898 \end_inset
8899
8900  Defines formats for use in the display of bibliographic information.
8901  See 
8902 \begin_inset CommandInset ref
8903 LatexCommand ref
8904 reference "subsec:Citation-format-description"
8905
8906 \end_inset
8907
8908  for details.
8909  Must end with 
8910 \begin_inset Quotes eld
8911 \end_inset
8912
8913
8914 \begin_inset Flex Code
8915 status collapsed
8916
8917 \begin_layout Plain Layout
8918 End
8919 \end_layout
8920
8921 \end_inset
8922
8923
8924 \begin_inset Quotes erd
8925 \end_inset
8926
8927 .
8928  Primarily used in cite engine files (see 
8929 \begin_inset CommandInset ref
8930 LatexCommand ref
8931 reference "subsec:Cite-Engine-Files"
8932 plural "false"
8933 caps "false"
8934 noprefix "false"
8935
8936 \end_inset
8937
8938 ).
8939 \end_layout
8940
8941 \begin_layout Description
8942 \begin_inset Flex Code
8943 status collapsed
8944
8945 \begin_layout Plain Layout
8946 CiteFramework
8947 \end_layout
8948
8949 \end_inset
8950
8951  [
8952 \begin_inset Flex Code
8953 status collapsed
8954
8955 \begin_layout Plain Layout
8956
8957 \emph on
8958 bibtex
8959 \end_layout
8960
8961 \end_inset
8962
8963 ,
8964 \begin_inset Flex Code
8965 status collapsed
8966
8967 \begin_layout Plain Layout
8968 biblatex
8969 \end_layout
8970
8971 \end_inset
8972
8973 ] Determines whether 
8974 \family sans
8975 Biblatex
8976 \family default
8977  or Bib\SpecialChar TeX
8978  is used to generate a Bibliography.
8979  Primarily used in cite engine files (see 
8980 \begin_inset CommandInset ref
8981 LatexCommand ref
8982 reference "subsec:Cite-Engine-Files"
8983 plural "false"
8984 caps "false"
8985 noprefix "false"
8986
8987 \end_inset
8988
8989 ).
8990 \end_layout
8991
8992 \begin_layout Description
8993 \begin_inset Flex Code
8994 status collapsed
8995
8996 \begin_layout Plain Layout
8997 ClassOptions
8998 \end_layout
8999
9000 \end_inset
9001
9002  Describes various global options supported by the document class.
9003  See 
9004 \begin_inset CommandInset ref
9005 LatexCommand ref
9006 reference "subsec:ClassOptions"
9007
9008 \end_inset
9009
9010  for a description.
9011  Must end with 
9012 \begin_inset Quotes eld
9013 \end_inset
9014
9015
9016 \begin_inset Flex Code
9017 status collapsed
9018
9019 \begin_layout Plain Layout
9020 End
9021 \end_layout
9022
9023 \end_inset
9024
9025
9026 \begin_inset Quotes erd
9027 \end_inset
9028
9029 .
9030 \end_layout
9031
9032 \begin_layout Description
9033 \begin_inset Flex Code
9034 status collapsed
9035
9036 \begin_layout Plain Layout
9037 Columns
9038 \end_layout
9039
9040 \end_inset
9041
9042  [
9043 \begin_inset Flex Code
9044 status collapsed
9045
9046 \begin_layout Plain Layout
9047
9048 \emph on
9049 1
9050 \end_layout
9051
9052 \end_inset
9053
9054 ,
9055 \begin_inset space \thinspace{}
9056 \end_inset
9057
9058
9059 \begin_inset Flex Code
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 2
9064 \end_layout
9065
9066 \end_inset
9067
9068 ] Whether the class should 
9069 \emph on
9070 default
9071 \emph default
9072  to having one or two columns.
9073  Can be changed in the 
9074 \begin_inset Flex Noun
9075 status collapsed
9076
9077 \begin_layout Plain Layout
9078 Document\SpecialChar menuseparator
9079 Settings
9080 \end_layout
9081
9082 \end_inset
9083
9084  dialog.
9085 \end_layout
9086
9087 \begin_layout Description
9088 \begin_inset Flex Code
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 Counter
9093 \end_layout
9094
9095 \end_inset
9096
9097  [
9098 \begin_inset Flex Code
9099 status collapsed
9100
9101 \begin_layout Plain Layout
9102 string
9103 \end_layout
9104
9105 \end_inset
9106
9107 ] This sequence defines the properties for a counter.
9108  If the counter does not yet exist, it is created; if it does exist, it
9109  is modified.
9110  Must end with 
9111 \begin_inset Quotes eld
9112 \end_inset
9113
9114
9115 \begin_inset Flex Code
9116 status collapsed
9117
9118 \begin_layout Plain Layout
9119 End
9120 \end_layout
9121
9122 \end_inset
9123
9124
9125 \begin_inset Quotes erd
9126 \end_inset
9127
9128 .
9129 \begin_inset Newline newline
9130 \end_inset
9131
9132 See 
9133 \begin_inset CommandInset ref
9134 LatexCommand ref
9135 reference "subsec:Counters"
9136
9137 \end_inset
9138
9139  for details on counters.
9140 \end_layout
9141
9142 \begin_layout Description
9143 \begin_inset Flex Code
9144 status collapsed
9145
9146 \begin_layout Plain Layout
9147 DefaultFont
9148 \end_layout
9149
9150 \end_inset
9151
9152  Sets the default font used to display the document.
9153  See 
9154 \begin_inset CommandInset ref
9155 LatexCommand ref
9156 reference "subsec:Font-description"
9157
9158 \end_inset
9159
9160  for how to declare fonts.
9161  Must end with 
9162 \begin_inset Quotes eld
9163 \end_inset
9164
9165
9166 \begin_inset Flex Code
9167 status collapsed
9168
9169 \begin_layout Plain Layout
9170 EndFont
9171 \end_layout
9172
9173 \end_inset
9174
9175
9176 \begin_inset Quotes erd
9177 \end_inset
9178
9179 .
9180 \end_layout
9181
9182 \begin_layout Description
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 DefaultModule
9188 \end_layout
9189
9190 \end_inset
9191
9192  [
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197 <module>
9198 \end_layout
9199
9200 \end_inset
9201
9202 ] Specifies a module to be included by default with this document class.
9203  The module is specified as filename without the 
9204 \begin_inset Flex Code
9205 status collapsed
9206
9207 \begin_layout Plain Layout
9208 .module
9209 \end_layout
9210
9211 \end_inset
9212
9213  extension.
9214  The user can still remove the module, but it will be active at the outset.
9215  (This applies only when new files are created, or when this class is chosen
9216  for an existing document.)
9217 \end_layout
9218
9219 \begin_layout Description
9220 \begin_inset Flex Code
9221 status collapsed
9222
9223 \begin_layout Plain Layout
9224 DefaultStyle
9225 \end_layout
9226
9227 \end_inset
9228
9229  [
9230 \begin_inset Flex Code
9231 status collapsed
9232
9233 \begin_layout Plain Layout
9234 <style>
9235 \end_layout
9236
9237 \end_inset
9238
9239 ] This is the style that will be assigned to new paragraphs, usually 
9240 \begin_inset Flex Noun
9241 status collapsed
9242
9243 \begin_layout Plain Layout
9244 Standard
9245 \end_layout
9246
9247 \end_inset
9248
9249 .
9250  This will default to the first defined style if not given, but you are
9251  encouraged to use this directive.
9252 \end_layout
9253
9254 \begin_layout Description
9255 \begin_inset Flex Code
9256 status collapsed
9257
9258 \begin_layout Plain Layout
9259 ExcludesModule
9260 \end_layout
9261
9262 \end_inset
9263
9264  [
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 <module>
9270 \end_layout
9271
9272 \end_inset
9273
9274 ] This tag indicates that the module (which is specified by filename without
9275  the 
9276 \begin_inset Flex Code
9277 status collapsed
9278
9279 \begin_layout Plain Layout
9280 .module
9281 \end_layout
9282
9283 \end_inset
9284
9285  extension) cannot be used with this document class.
9286  This might be used in a journal-specific layout file to prevent, say, the
9287  use of the 
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 theorems-sec
9293 \end_layout
9294
9295 \end_inset
9296
9297  module that numbers theorems by section.
9298  This tag may 
9299 \emph on
9300 not
9301 \emph default
9302  be used in a module.
9303  Modules have their own way of excluding other modules (see 
9304 \begin_inset CommandInset ref
9305 LatexCommand ref
9306 reference "subsec:Layout-modules"
9307
9308 \end_inset
9309
9310 ).
9311 \end_layout
9312
9313 \begin_layout Description
9314 \begin_inset Flex Code
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 Float
9319 \end_layout
9320
9321 \end_inset
9322
9323  Defines a new float.
9324  See 
9325 \begin_inset CommandInset ref
9326 LatexCommand ref
9327 reference "subsec:Floats"
9328
9329 \end_inset
9330
9331  for details.
9332  Must end with 
9333 \begin_inset Quotes eld
9334 \end_inset
9335
9336
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341 End
9342 \end_layout
9343
9344 \end_inset
9345
9346
9347 \begin_inset Quotes erd
9348 \end_inset
9349
9350 .
9351 \end_layout
9352
9353 \begin_layout Description
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 HTMLPreamble
9359 \end_layout
9360
9361 \end_inset
9362
9363  Sets the information that will be output in the 
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 <head>
9369 \end_layout
9370
9371 \end_inset
9372
9373  block when this document class is output to XHTML.
9374  Note that this will completely override any prior 
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 HTMLPreamble
9380 \end_layout
9381
9382 \end_inset
9383
9384  or 
9385 \begin_inset Flex Code
9386 status collapsed
9387
9388 \begin_layout Plain Layout
9389 AddToHTMLPreamble
9390 \end_layout
9391
9392 \end_inset
9393
9394  declarations.
9395  (Use
9396 \begin_inset Newline newline
9397 \end_inset
9398
9399
9400 \begin_inset Flex Code
9401 status collapsed
9402
9403 \begin_layout Plain Layout
9404 AddToHTMLPreamble
9405 \end_layout
9406
9407 \end_inset
9408
9409  if you just want to add material to the preamble.) Must end with 
9410 \begin_inset Quotes eld
9411 \end_inset
9412
9413
9414 \begin_inset Flex Code
9415 status collapsed
9416
9417 \begin_layout Plain Layout
9418 EndPreamble
9419 \end_layout
9420
9421 \end_inset
9422
9423
9424 \begin_inset Quotes erd
9425 \end_inset
9426
9427 .
9428 \end_layout
9429
9430 \begin_layout Description
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435 HTMLTOCSection
9436 \end_layout
9437
9438 \end_inset
9439
9440  [
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 <style>
9446 \end_layout
9447
9448 \end_inset
9449
9450 ] The style to use for the table of contents, bibliography, and so forth,
9451  when the document is output to HTML.
9452  For articles, this should normally be 
9453 \begin_inset Flex Code
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 Section
9458 \end_layout
9459
9460 \end_inset
9461
9462 ; for books 
9463 \begin_inset Flex Code
9464 status collapsed
9465
9466 \begin_layout Plain Layout
9467 Chapter
9468 \end_layout
9469
9470 \end_inset
9471
9472 .
9473  If it is not given, then \SpecialChar LyX
9474  will attempt to figure out which layout to use.
9475 \end_layout
9476
9477 \begin_layout Description
9478 \begin_inset Flex Code
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482 IfCounter
9483 \end_layout
9484
9485 \end_inset
9486
9487  [
9488 \begin_inset Flex Code
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492 <counter>
9493 \end_layout
9494
9495 \end_inset
9496
9497 ] Modifies the properties of the given counter.
9498  If the counter does not exist, the statement is ignored.
9499  Must end with 
9500 \begin_inset Quotes eld
9501 \end_inset
9502
9503
9504 \begin_inset Flex Code
9505 status collapsed
9506
9507 \begin_layout Plain Layout
9508 End
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \begin_inset Quotes erd
9515 \end_inset
9516
9517 .
9518 \begin_inset Newline newline
9519 \end_inset
9520
9521 See 
9522 \begin_inset CommandInset ref
9523 LatexCommand ref
9524 reference "subsec:Counters"
9525
9526 \end_inset
9527
9528  for details on counters.
9529 \end_layout
9530
9531 \begin_layout Description
9532 \begin_inset Flex Code
9533 status collapsed
9534
9535 \begin_layout Plain Layout
9536 Input
9537 \end_layout
9538
9539 \end_inset
9540
9541  [
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 <filename>
9547 \end_layout
9548
9549 \end_inset
9550
9551 ] This allows you to include another layout definition file within yours
9552  to avoid duplicating commands.
9553  Common examples are the standard layout files, for example, 
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558 stdclass.inc
9559 \end_layout
9560
9561 \end_inset
9562
9563 , which contains most of the basic layouts.
9564 \end_layout
9565
9566 \begin_layout Description
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 InsetLayout
9572 \end_layout
9573
9574 \end_inset
9575
9576  [
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 <type>
9582 \end_layout
9583
9584 \end_inset
9585
9586 ] This section (re-)defines the layout of an inset.
9587  It can be applied to an existing inset or to a new, user-defined inset,
9588  e.g., a new character style.
9589  Must end with 
9590 \begin_inset Quotes eld
9591 \end_inset
9592
9593
9594 \begin_inset Flex Code
9595 status collapsed
9596
9597 \begin_layout Plain Layout
9598 End
9599 \end_layout
9600
9601 \end_inset
9602
9603
9604 \begin_inset Quotes erd
9605 \end_inset
9606
9607 .
9608 \begin_inset Newline newline
9609 \end_inset
9610
9611 See 
9612 \begin_inset CommandInset ref
9613 LatexCommand ref
9614 reference "subsec:Flex-insets-and"
9615
9616 \end_inset
9617
9618  for more information.
9619  
9620 \end_layout
9621
9622 \begin_layout Description
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 LeftMargin
9628 \end_layout
9629
9630 \end_inset
9631
9632  [
9633 \begin_inset Flex Code
9634 status collapsed
9635
9636 \begin_layout Plain Layout
9637 string
9638 \end_layout
9639
9640 \end_inset
9641
9642 ] A string that indicates the width of the left margin on the screen, for
9643  example, 
9644 \begin_inset Quotes eld
9645 \end_inset
9646
9647
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 MMMMM
9653 \end_layout
9654
9655 \end_inset
9656
9657
9658 \begin_inset Quotes erd
9659 \end_inset
9660
9661 .
9662  (Note that this is not a `length', like 
9663 \begin_inset Quotes eld
9664 \end_inset
9665
9666 2ex
9667 \begin_inset Quotes erd
9668 \end_inset
9669
9670 .)
9671 \end_layout
9672
9673 \begin_layout Description
9674 \begin_inset Flex Code
9675 status collapsed
9676
9677 \begin_layout Plain Layout
9678 MaxCiteNames
9679 \end_layout
9680
9681 \end_inset
9682
9683  [
9684 \begin_inset Flex Code
9685 status collapsed
9686
9687 \begin_layout Plain Layout
9688 integer
9689 \end_layout
9690
9691 \end_inset
9692
9693 ] An integer that determines the maximal number of names displayed in an
9694  author-year citation before the citation switches to 
9695 \begin_inset Quotes eld
9696 \end_inset
9697
9698 FirstAuthor et al.
9699 \begin_inset Quotes erd
9700 \end_inset
9701
9702 .
9703  Primarily used in cite engine files (see 
9704 \begin_inset CommandInset ref
9705 LatexCommand ref
9706 reference "subsec:Cite-Engine-Files"
9707 plural "false"
9708 caps "false"
9709 noprefix "false"
9710
9711 \end_inset
9712
9713 ).
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 ModifyStyle
9722 \end_layout
9723
9724 \end_inset
9725
9726  [
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 <style>
9732 \end_layout
9733
9734 \end_inset
9735
9736 ] Modifies the properties of the given paragraph style.
9737  If the style does not exist, this section is ignored.
9738  Must end with 
9739 \begin_inset Quotes eld
9740 \end_inset
9741
9742
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 End
9748 \end_layout
9749
9750 \end_inset
9751
9752
9753 \begin_inset Quotes erd
9754 \end_inset
9755
9756 .
9757 \end_layout
9758
9759 \begin_layout Description
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 NoCounter
9765 \end_layout
9766
9767 \end_inset
9768
9769  [
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 <counter>
9775 \end_layout
9776
9777 \end_inset
9778
9779 ] Deletes an existing counter, usually one defined in an included file.
9780 \end_layout
9781
9782 \begin_layout Description
9783 \begin_inset Flex Code
9784 status collapsed
9785
9786 \begin_layout Plain Layout
9787 NoFloat
9788 \end_layout
9789
9790 \end_inset
9791
9792  [
9793 \begin_inset Flex Code
9794 status collapsed
9795
9796 \begin_layout Plain Layout
9797 <float>
9798 \end_layout
9799
9800 \end_inset
9801
9802 ] Deletes an existing float.
9803  This is particularly useful when you want to suppress a float that has
9804  been defined in an input file.
9805 \end_layout
9806
9807 \begin_layout Description
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 NoStyle
9813 \end_layout
9814
9815 \end_inset
9816
9817  [
9818 \begin_inset Flex Code
9819 status collapsed
9820
9821 \begin_layout Plain Layout
9822 <style>
9823 \end_layout
9824
9825 \end_inset
9826
9827 ] Deletes an existing style.
9828 \end_layout
9829
9830 \begin_layout Description
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 OutlinerName
9836 \end_layout
9837
9838 \end_inset
9839
9840  [
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 <type>
9846 \end_layout
9847
9848 \end_inset
9849
9850 ] [
9851 \begin_inset Flex Code
9852 status collapsed
9853
9854 \begin_layout Plain Layout
9855 <string>
9856 \end_layout
9857
9858 \end_inset
9859
9860 ] Define a new table of contents with type 
9861 \begin_inset Flex Code
9862 status collapsed
9863
9864 \begin_layout Plain Layout
9865 <type>
9866 \end_layout
9867
9868 \end_inset
9869
9870  and name 
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875 <string>
9876 \end_layout
9877
9878 \end_inset
9879
9880 .
9881  See also the AddToToc commands.
9882 \end_layout
9883
9884 \begin_layout Description
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 OutputFormat
9890 \end_layout
9891
9892 \end_inset
9893
9894  [
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 <format>
9900 \end_layout
9901
9902 \end_inset
9903
9904 ] The file format (as defined in the \SpecialChar LyX
9905  preferences) produced by this document
9906  class.
9907  It is mainly useful when 
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 OutputType
9913 \end_layout
9914
9915 \end_inset
9916
9917  is 
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 literate
9923 \end_layout
9924
9925 \end_inset
9926
9927  and one wants to define a new type of literate document.
9928  The format is reset to 
9929 \begin_inset Quotes eld
9930 \end_inset
9931
9932
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 docbook
9938 \end_layout
9939
9940 \end_inset
9941
9942
9943 \begin_inset Quotes erd
9944 \end_inset
9945
9946  or 
9947 \begin_inset Quotes eld
9948 \end_inset
9949
9950
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 latex
9956 \end_layout
9957
9958 \end_inset
9959
9960
9961 \begin_inset Quotes erd
9962 \end_inset
9963
9964  when the corresponding 
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969 OutputType
9970 \end_layout
9971
9972 \end_inset
9973
9974  parameter is encountered.
9975 \end_layout
9976
9977 \begin_layout Description
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 OutputType
9983 \end_layout
9984
9985 \end_inset
9986
9987  [
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992
9993 \emph on
9994 lat
9995 \emph default
9996 ex
9997 \end_layout
9998
9999 \end_inset
10000
10001
10002 \begin_inset Flex Code
10003 status collapsed
10004
10005 \begin_layout Plain Layout
10006 docbook
10007 \end_layout
10008
10009 \end_inset
10010
10011
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 literate
10017 \end_layout
10018
10019 \end_inset
10020
10021 ] Specifies what sort of output documents using this class will produce.
10022 \end_layout
10023
10024 \begin_layout Description
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 PackageOptions
10030 \end_layout
10031
10032 \end_inset
10033
10034  [
10035 \begin_inset Flex Code
10036 status collapsed
10037
10038 \begin_layout Plain Layout
10039 string
10040 \end_layout
10041
10042 \end_inset
10043
10044  
10045 \begin_inset Flex Code
10046 status collapsed
10047
10048 \begin_layout Plain Layout
10049 string
10050 \end_layout
10051
10052 \end_inset
10053
10054 ] Specifies options, given in the second string, for the package named by
10055  the first string.
10056  For example, 
10057 \begin_inset Quotes eld
10058 \end_inset
10059
10060
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 PackageOptions natbib square
10066 \end_layout
10067
10068 \end_inset
10069
10070
10071 \begin_inset Quotes erd
10072 \end_inset
10073
10074  will cause 
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 natbib
10080 \end_layout
10081
10082 \end_inset
10083
10084  to be loaded with the 
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 square
10090 \end_layout
10091
10092 \end_inset
10093
10094  option.
10095  (For \SpecialChar TeX
10096 perts, this causes \SpecialChar LyX
10097  to output: 
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102
10103 \backslash
10104 PassOptionsToPackage{natbib}{square}
10105 \end_layout
10106
10107 \end_inset
10108
10109  prior to loading 
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 natbib
10115 \end_layout
10116
10117 \end_inset
10118
10119 .)
10120 \end_layout
10121
10122 \begin_layout Description
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 PageStyle
10128 \end_layout
10129
10130 \end_inset
10131
10132  [
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137
10138 \emph on
10139 plain
10140 \end_layout
10141
10142 \end_inset
10143
10144
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 empty
10150 \end_layout
10151
10152 \end_inset
10153
10154
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 headings
10160 \end_layout
10161
10162 \end_inset
10163
10164 ] The default pagestyle.
10165  Can be changed in the 
10166 \begin_inset Flex Noun
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170 Document\SpecialChar menuseparator
10171 Settings
10172 \end_layout
10173
10174 \end_inset
10175
10176  dialog.
10177 \end_layout
10178
10179 \begin_layout Description
10180 \begin_inset Flex Code
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 Preamble
10185 \end_layout
10186
10187 \end_inset
10188
10189  Sets the preamble for the \SpecialChar LaTeX
10190  document.
10191  Note that this will completely override any prior 
10192 \begin_inset Flex Code
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 Preamble
10197 \end_layout
10198
10199 \end_inset
10200
10201  or 
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206 AddToPreamble
10207 \end_layout
10208
10209 \end_inset
10210
10211  declarations.
10212  (Use 
10213 \begin_inset Flex Code
10214 status collapsed
10215
10216 \begin_layout Plain Layout
10217 AddToPreamble
10218 \end_layout
10219
10220 \end_inset
10221
10222  if you just want to add material to the preamble.) Must end with 
10223 \begin_inset Quotes eld
10224 \end_inset
10225
10226
10227 \begin_inset Flex Code
10228 status collapsed
10229
10230 \begin_layout Plain Layout
10231 EndPreamble
10232 \end_layout
10233
10234 \end_inset
10235
10236
10237 \begin_inset Quotes erd
10238 \end_inset
10239
10240 .
10241 \end_layout
10242
10243 \begin_layout Description
10244 \begin_inset Flex Code
10245 status collapsed
10246
10247 \begin_layout Plain Layout
10248 Provides
10249 \end_layout
10250
10251 \end_inset
10252
10253  [
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 string
10259 \end_layout
10260
10261 \end_inset
10262
10263 ] [
10264 \begin_inset Flex Code
10265 status collapsed
10266
10267 \begin_layout Plain Layout
10268
10269 \emph on
10270 0
10271 \end_layout
10272
10273 \end_inset
10274
10275 ,
10276 \begin_inset space \thinspace{}
10277 \end_inset
10278
10279
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 1
10285 \end_layout
10286
10287 \end_inset
10288
10289 ] Whether the class already provides the feature 
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 string
10295 \end_layout
10296
10297 \end_inset
10298
10299 .
10300  A feature is in general the name of a package (e.
10301 \begin_inset space \thinspace{}
10302 \end_inset
10303
10304 g.
10305 \begin_inset space \space{}
10306 \end_inset
10307
10308
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 amsmath
10314 \end_layout
10315
10316 \end_inset
10317
10318  or 
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 makeidx
10324 \end_layout
10325
10326 \end_inset
10327
10328 ) or a macro (e.
10329 \begin_inset space \thinspace{}
10330 \end_inset
10331
10332 g.
10333 \begin_inset space \space{}
10334 \end_inset
10335
10336
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 url
10342 \end_layout
10343
10344 \end_inset
10345
10346  or 
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 boldsymbol
10352 \end_layout
10353
10354 \end_inset
10355
10356 ).
10357  See 
10358 \begin_inset CommandInset ref
10359 LatexCommand ref
10360 reference "chap:List-of-functions"
10361
10362 \end_inset
10363
10364  for the list of features.
10365 \end_layout
10366
10367 \begin_layout Description
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 ProvidesModule
10373 \end_layout
10374
10375 \end_inset
10376
10377  [
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 string
10383 \end_layout
10384
10385 \end_inset
10386
10387 ] Indicates that this layout provides the functionality of the module mentioned,
10388  which should be specified by the filename without the 
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393 .module
10394 \end_layout
10395
10396 \end_inset
10397
10398  extension.
10399  This will typically be used if the layout includes the module directly,
10400  rather than using the 
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 DefaultModule
10406 \end_layout
10407
10408 \end_inset
10409
10410  tag to indicate that it ought to be used.
10411  It could also be used in a module that provided an alternate implementation
10412  of the same functionality.
10413 \end_layout
10414
10415 \begin_layout Description
10416 \begin_inset Flex Code
10417 status collapsed
10418
10419 \begin_layout Plain Layout
10420 ProvideStyle
10421 \end_layout
10422
10423 \end_inset
10424
10425  [
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 <style>
10431 \end_layout
10432
10433 \end_inset
10434
10435 ] Creates a new paragraph style if it does not already exist.
10436  If the style does exist, this section is ignored.
10437  Must end with 
10438 \begin_inset Quotes eld
10439 \end_inset
10440
10441
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 End
10447 \end_layout
10448
10449 \end_inset
10450
10451
10452 \begin_inset Quotes erd
10453 \end_inset
10454
10455 .
10456 \end_layout
10457
10458 \begin_layout Description
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 Requires
10464 \end_layout
10465
10466 \end_inset
10467
10468  [
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 string
10474 \end_layout
10475
10476 \end_inset
10477
10478 ] Whether the class requires the feature 
10479 \begin_inset Flex Code
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483 string
10484 \end_layout
10485
10486 \end_inset
10487
10488 .
10489  Multiple features must be separated by commas.
10490  Note that you can only request supported features.
10491  (See 
10492 \begin_inset CommandInset ref
10493 LatexCommand ref
10494 reference "chap:List-of-functions"
10495
10496 \end_inset
10497
10498  for the list of features.).
10499  If you require a package with specific options, you can additionally use
10500  
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 PackageOptions
10506 \end_layout
10507
10508 \end_inset
10509
10510 .
10511 \end_layout
10512
10513 \begin_layout Description
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 RightMargin
10519 \end_layout
10520
10521 \end_inset
10522
10523  [
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528 string
10529 \end_layout
10530
10531 \end_inset
10532
10533 ] A string that indicates the width of the right margin on the screen, for
10534  example, 
10535 \begin_inset Quotes eld
10536 \end_inset
10537
10538
10539 \begin_inset Flex Code
10540 status collapsed
10541
10542 \begin_layout Plain Layout
10543 MMMMM
10544 \end_layout
10545
10546 \end_inset
10547
10548
10549 \begin_inset Quotes erd
10550 \end_inset
10551
10552 .
10553 \end_layout
10554
10555 \begin_layout Description
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 SecNumDepth
10561 \end_layout
10562
10563 \end_inset
10564
10565  [
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 int=3
10571 \end_layout
10572
10573 \end_inset
10574
10575 ] Sets which divisions get numbered.
10576  Corresponds to the
10577 \begin_inset Newline newline
10578 \end_inset
10579
10580
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 secnumdepth
10586 \end_layout
10587
10588 \end_inset
10589
10590  counter in \SpecialChar LaTeX
10591 .
10592 \end_layout
10593
10594 \begin_layout Description
10595 \begin_inset Flex Code
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 Sides
10600 \end_layout
10601
10602 \end_inset
10603
10604  [
10605 \begin_inset Flex Code
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609
10610 \emph on
10611 1
10612 \end_layout
10613
10614 \end_inset
10615
10616 ,
10617 \begin_inset space \thinspace{}
10618 \end_inset
10619
10620
10621 \begin_inset Flex Code
10622 status collapsed
10623
10624 \begin_layout Plain Layout
10625 2
10626 \end_layout
10627
10628 \end_inset
10629
10630 ] Whether the class-default should be printing on one or both sides of the
10631  paper.
10632  Can be changed in the 
10633 \begin_inset Flex Noun
10634 status collapsed
10635
10636 \begin_layout Plain Layout
10637 Document\SpecialChar menuseparator
10638 Settings
10639 \end_layout
10640
10641 \end_inset
10642
10643  dialog.
10644 \end_layout
10645
10646 \begin_layout Description
10647 \begin_inset Flex Code
10648 status collapsed
10649
10650 \begin_layout Plain Layout
10651 Style
10652 \end_layout
10653
10654 \end_inset
10655
10656  [
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 <name>
10662 \end_layout
10663
10664 \end_inset
10665
10666 ] This sequence defines a paragraph style.
10667  If the style does not yet exist, it is created; if it does exist, its parameter
10668 s are modified.
10669  Must end with 
10670 \begin_inset Quotes eld
10671 \end_inset
10672
10673
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678 End
10679 \end_layout
10680
10681 \end_inset
10682
10683
10684 \begin_inset Quotes erd
10685 \end_inset
10686
10687 .
10688 \begin_inset Newline newline
10689 \end_inset
10690
10691 See 
10692 \begin_inset CommandInset ref
10693 LatexCommand ref
10694 reference "subsec:Paragraph-Styles"
10695
10696 \end_inset
10697
10698  for details on paragraph styles.
10699 \end_layout
10700
10701 \begin_layout Description
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 TitleLatexName
10707 \end_layout
10708
10709 \end_inset
10710
10711  [
10712 \begin_inset Flex Code
10713 status collapsed
10714
10715 \begin_layout Plain Layout
10716 string="maketitle"
10717 \end_layout
10718
10719 \end_inset
10720
10721 ] The name of the command or environment to be used with 
10722 \begin_inset Flex Code
10723 status collapsed
10724
10725 \begin_layout Plain Layout
10726 TitleLatexType
10727 \end_layout
10728
10729 \end_inset
10730
10731 .
10732 \end_layout
10733
10734 \begin_layout Description
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 TitleLatexType
10740 \end_layout
10741
10742 \end_inset
10743
10744  [
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749
10750 \emph on
10751 CommandAfter
10752 \end_layout
10753
10754 \end_inset
10755
10756
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 Environment
10762 \end_layout
10763
10764 \end_inset
10765
10766 ] Indicates what kind of markup is used to define the title of a document.
10767  
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 CommandAfter
10773 \end_layout
10774
10775 \end_inset
10776
10777  means that the macro with name 
10778 \begin_inset Flex Code
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 TitleLatexName
10783 \end_layout
10784
10785 \end_inset
10786
10787  will be inserted after the last layout which has 
10788 \begin_inset Quotes eld
10789 \end_inset
10790
10791
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 InTitle
10797 \begin_inset space ~
10798 \end_inset
10799
10800 1
10801 \end_layout
10802
10803 \end_inset
10804
10805
10806 \begin_inset Quotes erd
10807 \end_inset
10808
10809 .
10810  
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815 Environment
10816 \end_layout
10817
10818 \end_inset
10819
10820  corresponds to the case where all layouts which have 
10821 \begin_inset Quotes eld
10822 \end_inset
10823
10824
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 InTitle
10830 \begin_inset space ~
10831 \end_inset
10832
10833 1
10834 \end_layout
10835
10836 \end_inset
10837
10838
10839 \begin_inset Quotes erd
10840 \end_inset
10841
10842  should be enclosed into the 
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 TitleLatexName
10848 \end_layout
10849
10850 \end_inset
10851
10852  environment.
10853 \end_layout
10854
10855 \begin_layout Description
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 TocDepth
10861 \end_layout
10862
10863 \end_inset
10864
10865  [
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870 int=3
10871 \end_layout
10872
10873 \end_inset
10874
10875 ] Sets which divisions are included in the table of contents.
10876  Corresponds to the 
10877 \begin_inset Flex Code
10878 status collapsed
10879
10880 \begin_layout Plain Layout
10881 tocdepth
10882 \end_layout
10883
10884 \end_inset
10885
10886  counter in \SpecialChar LaTeX
10887 .
10888 \end_layout
10889
10890 \begin_layout Subsection
10891 \begin_inset Flex Code
10892 status collapsed
10893
10894 \begin_layout Plain Layout
10895 ClassOptions
10896 \end_layout
10897
10898 \end_inset
10899
10900  section
10901 \begin_inset CommandInset label
10902 LatexCommand label
10903 name "subsec:ClassOptions"
10904
10905 \end_inset
10906
10907
10908 \end_layout
10909
10910 \begin_layout Standard
10911 The 
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 ClassOptions
10917 \end_layout
10918
10919 \end_inset
10920
10921  section can contain the following entries:
10922 \end_layout
10923
10924 \begin_layout Description
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 FontSize
10930 \end_layout
10931
10932 \end_inset
10933
10934  [
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 string="10|11|12"
10940 \end_layout
10941
10942 \end_inset
10943
10944 ] The list of available font sizes for the document's main font, separated
10945  by 
10946 \begin_inset Quotes eld
10947 \end_inset
10948
10949
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 |
10955 \end_layout
10956
10957 \end_inset
10958
10959
10960 \begin_inset Quotes erd
10961 \end_inset
10962
10963 .
10964 \end_layout
10965
10966 \begin_layout Description
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 Header
10972 \end_layout
10973
10974 \end_inset
10975
10976  Used to set the DTD line with XML-based output classes.
10977  E.
10978 \begin_inset space \thinspace{}
10979 \end_inset
10980
10981 g.: PUBLIC 
10982 \begin_inset Quotes eld
10983 \end_inset
10984
10985 -//OASIS//DTD DocBook V4.2//EN
10986 \begin_inset Quotes erd
10987 \end_inset
10988
10989 .
10990 \end_layout
10991
10992 \begin_layout Description
10993 \begin_inset Flex Code
10994 status collapsed
10995
10996 \begin_layout Plain Layout
10997 PageStyle
10998 \end_layout
10999
11000 \end_inset
11001
11002  [
11003 \begin_inset Flex Code
11004 status collapsed
11005
11006 \begin_layout Plain Layout
11007 string="empty|plain|headings|fancy"
11008 \end_layout
11009
11010 \end_inset
11011
11012 ] The list of available page sty\SpecialChar softhyphen
11013 les, separated by 
11014 \begin_inset Quotes eld
11015 \end_inset
11016
11017
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 |
11023 \end_layout
11024
11025 \end_inset
11026
11027
11028 \begin_inset Quotes erd
11029 \end_inset
11030
11031 .
11032 \end_layout
11033
11034 \begin_layout Description
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039 Other
11040 \end_layout
11041
11042 \end_inset
11043
11044  [
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 string=""
11050 \end_layout
11051
11052 \end_inset
11053
11054 ] Some document class options, separated by a comma, that will be added
11055  to the optional part of the 
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060
11061 \backslash
11062 documentclass
11063 \end_layout
11064
11065 \end_inset
11066
11067  command.
11068 \end_layout
11069
11070 \begin_layout Standard
11071 The 
11072 \begin_inset Flex Code
11073 status collapsed
11074
11075 \begin_layout Plain Layout
11076 ClassOptions
11077 \end_layout
11078
11079 \end_inset
11080
11081  section must end with 
11082 \begin_inset Quotes eld
11083 \end_inset
11084
11085
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 End
11091 \end_layout
11092
11093 \end_inset
11094
11095
11096 \begin_inset Quotes erd
11097 \end_inset
11098
11099 .
11100 \end_layout
11101
11102 \begin_layout Subsection
11103 Paragraph styles
11104 \begin_inset CommandInset label
11105 LatexCommand label
11106 name "subsec:Paragraph-Styles"
11107
11108 \end_inset
11109
11110
11111 \end_layout
11112
11113 \begin_layout Standard
11114 A paragraph style description looks like this:
11115 \begin_inset Foot
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 Note that this will either define a new style or modify an existing one.
11120 \end_layout
11121
11122 \end_inset
11123
11124
11125 \end_layout
11126
11127 \begin_layout LyX-Code
11128 Style 
11129 \family roman
11130 \emph on
11131 name
11132 \end_layout
11133
11134 \begin_layout LyX-Code
11135  ...
11136 \end_layout
11137
11138 \begin_layout LyX-Code
11139 End
11140 \end_layout
11141
11142 \begin_layout Standard
11143 where the following commands are allowed:
11144 \end_layout
11145
11146 \begin_layout Description
11147 \begin_inset Flex Code
11148 status collapsed
11149
11150 \begin_layout Plain Layout
11151 AddToToc
11152 \end_layout
11153
11154 \end_inset
11155
11156  [
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 string
11162 \end_layout
11163
11164 \end_inset
11165
11166 =""] This paragraph will appear in the table of contents of the given type.
11167  An empty string disables.
11168  See also the OutlinerName and the IsTocCaption commands.
11169  Default: disabled.
11170 \end_layout
11171
11172 \begin_layout Description
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 Align
11178 \end_layout
11179
11180 \end_inset
11181
11182  [
11183 \begin_inset Flex Code
11184 status collapsed
11185
11186 \begin_layout Plain Layout
11187
11188 \emph on
11189 block
11190 \emph default
11191 , left, right, center
11192 \end_layout
11193
11194 \end_inset
11195
11196 ] Paragraph alignment.
11197 \end_layout
11198
11199 \begin_layout Description
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 AlignPossible
11205 \end_layout
11206
11207 \end_inset
11208
11209  [
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214
11215 \emph on
11216 block
11217 \emph default
11218 , left, right, center
11219 \end_layout
11220
11221 \end_inset
11222
11223 ] A comma separated list of permitted alignments.
11224  (Some \SpecialChar LaTeX
11225  styles prohibit certain alignments, since those wouldn't make sense.
11226  For example a right-aligned or centered enumeration isn't possible.)
11227 \end_layout
11228
11229 \begin_layout Description
11230 \begin_inset Flex Code
11231 status collapsed
11232
11233 \begin_layout Plain Layout
11234 Argument
11235 \end_layout
11236
11237 \end_inset
11238
11239  [
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 int
11245 \end_layout
11246
11247 \end_inset
11248
11249 ] Defines argument number <int> of a command\SpecialChar breakableslash
11250 environment associated with
11251  the current style.
11252  This is useful for things like section headings, and only makes sense with
11253  \SpecialChar LaTeX
11254 .
11255  Every (optional or required) argument of a command or environment – except
11256  for the required argument that is associated with the content of the paragraph
11257  itself – has a separate definition, where the number specifies the order
11258  of the arguments.
11259  The definition must end with 
11260 \begin_inset Flex Code
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264 EndArgument
11265 \end_layout
11266
11267 \end_inset
11268
11269 .
11270  So a command with two optional arguments has:
11271 \end_layout
11272
11273 \begin_deeper
11274 \begin_layout Quote
11275
11276 \family typewriter
11277 Argument 1
11278 \end_layout
11279
11280 \begin_layout Quote
11281
11282 \family typewriter
11283 ...
11284 \end_layout
11285
11286 \begin_layout Quote
11287
11288 \family typewriter
11289 EndArgument
11290 \end_layout
11291
11292 \begin_layout Quote
11293
11294 \family typewriter
11295 Argument 2
11296 \end_layout
11297
11298 \begin_layout Quote
11299
11300 \family typewriter
11301 ...
11302 \end_layout
11303
11304 \begin_layout Quote
11305
11306 \family typewriter
11307 EndArgument
11308 \end_layout
11309
11310 \begin_layout Standard
11311 Inside the 
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 Argument
11317 \end_layout
11318
11319 \end_inset
11320
11321  definition, the following specifications are possible:
11322 \end_layout
11323
11324 \begin_layout Itemize
11325 \begin_inset Flex Code
11326 status collapsed
11327
11328 \begin_layout Plain Layout
11329 LabelString
11330 \end_layout
11331
11332 \end_inset
11333
11334  
11335 \begin_inset Flex Code
11336 status collapsed
11337
11338 \begin_layout Plain Layout
11339 [string]
11340 \end_layout
11341
11342 \end_inset
11343
11344  The string that will appear both in the menu (to insert this argument)
11345  and on the argument inset button (unless you also specify a separate 
11346 \begin_inset Flex Code
11347 status collapsed
11348
11349 \begin_layout Plain Layout
11350 MenuString
11351 \end_layout
11352
11353 \end_inset
11354
11355 ).
11356  For the menu, you can define an accelerator by appending the respective
11357  character to the string, divided by 
11358 \begin_inset Quotes eld
11359 \end_inset
11360
11361 |
11362 \begin_inset Quotes erd
11363 \end_inset
11364
11365  (e.
11366 \begin_inset space \thinspace{}
11367 \end_inset
11368
11369 g.
11370 \begin_inset space \space{}
11371 \end_inset
11372
11373
11374 \begin_inset Quotes eld
11375 \end_inset
11376
11377
11378 \begin_inset Flex Code
11379 status collapsed
11380
11381 \begin_layout Plain Layout
11382 Short Title|S
11383 \end_layout
11384
11385 \end_inset
11386
11387
11388 \begin_inset Quotes erd
11389 \end_inset
11390
11391 ).
11392 \end_layout
11393
11394 \begin_layout Itemize
11395 \begin_inset Flex Code
11396 status collapsed
11397
11398 \begin_layout Plain Layout
11399 MenuString
11400 \end_layout
11401
11402 \end_inset
11403
11404  
11405 \begin_inset Flex Code
11406 status collapsed
11407
11408 \begin_layout Plain Layout
11409 [string]
11410 \end_layout
11411
11412 \end_inset
11413
11414  A separate string for the menu.
11415  You can define an accelerator by appending the respective character to
11416  the string, divided by 
11417 \begin_inset Quotes eld
11418 \end_inset
11419
11420 |
11421 \begin_inset Quotes erd
11422 \end_inset
11423
11424  (e.
11425 \begin_inset space \thinspace{}
11426 \end_inset
11427
11428 g.
11429 \begin_inset space \space{}
11430 \end_inset
11431
11432
11433 \begin_inset Quotes eld
11434 \end_inset
11435
11436
11437 \begin_inset Flex Code
11438 status collapsed
11439
11440 \begin_layout Plain Layout
11441 Short Title|S
11442 \end_layout
11443
11444 \end_inset
11445
11446
11447 \begin_inset Quotes erd
11448 \end_inset
11449
11450 ).
11451  This specification is optional.
11452  If it is not given the 
11453 \begin_inset Flex Code
11454 status collapsed
11455
11456 \begin_layout Plain Layout
11457 LabelString
11458 \end_layout
11459
11460 \end_inset
11461
11462  will be used instead for the menu.
11463 \end_layout
11464
11465 \begin_layout Itemize
11466 \begin_inset Flex Code
11467 status collapsed
11468
11469 \begin_layout Plain Layout
11470 Tooltip
11471 \end_layout
11472
11473 \end_inset
11474
11475  
11476 \begin_inset Flex Code
11477 status collapsed
11478
11479 \begin_layout Plain Layout
11480 [string]
11481 \end_layout
11482
11483 \end_inset
11484
11485  A longer explanatory text that appears in the tooltip when hovering over
11486  the argument inset.
11487 \end_layout
11488
11489 \begin_layout Itemize
11490 \begin_inset Flex Code
11491 status collapsed
11492
11493 \begin_layout Plain Layout
11494 Mandatory
11495 \end_layout
11496
11497 \end_inset
11498
11499  [
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504
11505 \emph on
11506 0
11507 \end_layout
11508
11509 \end_inset
11510
11511 ,
11512 \begin_inset space \thinspace{}
11513 \end_inset
11514
11515
11516 \begin_inset Flex Code
11517 status collapsed
11518
11519 \begin_layout Plain Layout
11520 1
11521 \end_layout
11522
11523 \end_inset
11524
11525 ] Declare if this is a mandatory (1) or an optional (0) argument.
11526  Mandatory arguments will be output empty if not given, while optional arguments
11527  will not be output at all.
11528  By default, mandatory arguments are delimited by 
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 {...}
11534 \end_layout
11535
11536 \end_inset
11537
11538 , while optional arguments are delimited by 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 [...]
11544 \end_layout
11545
11546 \end_inset
11547
11548
11549 \end_layout
11550
11551 \begin_layout Itemize
11552 \begin_inset Flex Code
11553 status collapsed
11554
11555 \begin_layout Plain Layout
11556 Requires
11557 \end_layout
11558
11559 \end_inset
11560
11561  
11562 \begin_inset Flex Code
11563 status collapsed
11564
11565 \begin_layout Plain Layout
11566 [int=0]
11567 \end_layout
11568
11569 \end_inset
11570
11571  defines another argument (by its number) which this argument requires to
11572  be output if it is itself output.
11573  E.
11574 \begin_inset space \thinspace{}
11575 \end_inset
11576
11577 g., in \SpecialChar LaTeX
11578  commands, optional arguments often require previous optional arguments
11579  to be output (at least empty), as in 
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584
11585 \backslash
11586 command[][argument]{text}
11587 \end_layout
11588
11589 \end_inset
11590
11591 .
11592  This can be achieved by the statement 
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597 Requires 1
11598 \end_layout
11599
11600 \end_inset
11601
11602  within 
11603 \begin_inset Flex Code
11604 status collapsed
11605
11606 \begin_layout Plain Layout
11607 Argument 2
11608 \end_layout
11609
11610 \end_inset
11611
11612 .
11613 \end_layout
11614
11615 \begin_layout Itemize
11616 \begin_inset Flex Code
11617 status collapsed
11618
11619 \begin_layout Plain Layout
11620 LeftDelim
11621 \end_layout
11622
11623 \end_inset
11624
11625  
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 [string]
11631 \end_layout
11632
11633 \end_inset
11634
11635  defines a custom left delimiter (instead of 
11636 \begin_inset Flex Code
11637 status collapsed
11638
11639 \begin_layout Plain Layout
11640 {
11641 \end_layout
11642
11643 \end_inset
11644
11645  or 
11646 \begin_inset Flex Code
11647 status collapsed
11648
11649 \begin_layout Plain Layout
11650 [
11651 \end_layout
11652
11653 \end_inset
11654
11655 ).
11656  A line break in the output can be indicated by 
11657 \begin_inset Flex Code
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661 <br/>
11662 \end_layout
11663
11664 \end_inset
11665
11666 .
11667 \end_layout
11668
11669 \begin_layout Itemize
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 RightDelim
11675 \end_layout
11676
11677 \end_inset
11678
11679  
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684 [string]
11685 \end_layout
11686
11687 \end_inset
11688
11689  defines a custom right delimiter (instead of 
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694 }
11695 \end_layout
11696
11697 \end_inset
11698
11699  or 
11700 \begin_inset Flex Code
11701 status collapsed
11702
11703 \begin_layout Plain Layout
11704 ]
11705 \end_layout
11706
11707 \end_inset
11708
11709 ).
11710  A line break in the output can be indicated by 
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 <br/>
11716 \end_layout
11717
11718 \end_inset
11719
11720 .
11721 \end_layout
11722
11723 \begin_layout Itemize
11724 \begin_inset Flex Code
11725 status collapsed
11726
11727 \begin_layout Plain Layout
11728 DefaultArg
11729 \end_layout
11730
11731 \end_inset
11732
11733  
11734 \begin_inset Flex Code
11735 status collapsed
11736
11737 \begin_layout Plain Layout
11738 [string]
11739 \end_layout
11740
11741 \end_inset
11742
11743  defines an argument that is inserted if and only if no user-specified arguments
11744  were given, i.
11745 \begin_inset space \thinspace{}
11746 \end_inset
11747
11748 e.
11749 \begin_inset space \space{}
11750 \end_inset
11751
11752 if no argument inset has been inserted (note that also an empty argument
11753  inset omits the DefaultArg).
11754  Multiple arguments need to be separated by comma.
11755 \end_layout
11756
11757 \begin_layout Itemize
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 PresetArg
11763 \end_layout
11764
11765 \end_inset
11766
11767  
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 [string]
11773 \end_layout
11774
11775 \end_inset
11776
11777  defines an argument that is inserted in any case (alone or in addition
11778  to user-specified arguments).
11779  Multiple arguments need to be separated by comma.
11780 \end_layout
11781
11782 \begin_layout Itemize
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787 Font
11788 \end_layout
11789
11790 \end_inset
11791
11792  The font used for the argument content, see 
11793 \begin_inset CommandInset ref
11794 LatexCommand ref
11795 reference "subsec:Font-description"
11796
11797 \end_inset
11798
11799 .
11800 \end_layout
11801
11802 \begin_layout Itemize
11803 \begin_inset Flex Code
11804 status collapsed
11805
11806 \begin_layout Plain Layout
11807 LabelFont
11808 \end_layout
11809
11810 \end_inset
11811
11812  The font used for the label; see 
11813 \begin_inset CommandInset ref
11814 LatexCommand ref
11815 reference "subsec:Font-description"
11816
11817 \end_inset
11818
11819 .
11820 \end_layout
11821
11822 \begin_layout Itemize
11823 \begin_inset Flex Code
11824 status collapsed
11825
11826 \begin_layout Plain Layout
11827 Decoration
11828 \end_layout
11829
11830 \end_inset
11831
11832  [
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837
11838 \emph on
11839 Classic
11840 \emph default
11841 , Minimalistic, Conglomerate
11842 \end_layout
11843
11844 \end_inset
11845
11846 ] describes the rendering style used for the inset's frame and buttons.
11847 \end_layout
11848
11849 \begin_layout Itemize
11850 \begin_inset Flex Code
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 AutoInsert
11855 \end_layout
11856
11857 \end_inset
11858
11859  
11860 \begin_inset Flex Code
11861 status collapsed
11862
11863 \begin_layout Plain Layout
11864 [int=0]
11865 \end_layout
11866
11867 \end_inset
11868
11869  If this is set to 
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 1
11875 \end_layout
11876
11877 \end_inset
11878
11879 , this argument is automatically inserted when the respective style is selected.
11880  Currently, only one argument per style\SpecialChar breakableslash
11881 layout can be automatically inserted.
11882 \end_layout
11883
11884 \begin_layout Itemize
11885 \begin_inset Flex Code
11886 status collapsed
11887
11888 \begin_layout Plain Layout
11889 InsertCotext
11890 \end_layout
11891
11892 \end_inset
11893
11894  
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899 [int=0]
11900 \end_layout
11901
11902 \end_inset
11903
11904  If this is set to 
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 1
11910 \end_layout
11911
11912 \end_inset
11913
11914 , this argument will be inserted with a copy of the co-text (either selected
11915  text or the whole paragraph) as content.
11916 \end_layout
11917
11918 \begin_layout Itemize
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 PassThru
11924 \end_layout
11925
11926 \end_inset
11927
11928  [
11929 \begin_inset Flex Code
11930 status collapsed
11931
11932 \begin_layout Plain Layout
11933
11934 \emph on
11935 inherited
11936 \emph default
11937 , true, false
11938 \end_layout
11939
11940 \end_inset
11941
11942 ] Whether the contents of this argument should be output in raw form, meaning
11943  without special translations that \SpecialChar LaTeX
11944  would require.
11945  By default, the 
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 PassThru
11951 \end_layout
11952
11953 \end_inset
11954
11955  status is inherited by the inset or paragraph layout the argument belongs
11956  to, true and false change the status for the given argument only.
11957 \end_layout
11958
11959 \begin_layout Itemize
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 PassThruChars
11965 \end_layout
11966
11967 \end_inset
11968
11969  [
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 string of characters
11975 \end_layout
11976
11977 \end_inset
11978
11979 ]
11980 \family typewriter
11981  
11982 \family default
11983 Defines individual characters
11984 \begin_inset Newline linebreak
11985 \end_inset
11986
11987 that should be output in raw form, meaning without special translations
11988  that \SpecialChar LaTeX
11989  would require.
11990  Note that, contrary to PassThru, this needs to be explicitly defined for
11991  arguments.
11992  That is, arguments do not inherit PassThruChars from their parent inset
11993  or layout.
11994 \end_layout
11995
11996 \begin_layout Itemize
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 IsTocCaption
12002 \end_layout
12003
12004 \end_inset
12005
12006  [
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011
12012 \emph on
12013 0
12014 \end_layout
12015
12016 \end_inset
12017
12018 ,
12019 \begin_inset space \thinspace{}
12020 \end_inset
12021
12022
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 1
12028 \end_layout
12029
12030 \end_inset
12031
12032 ] If this is set to 1, the argument will output its content in the corresponding
12033  item in the table of contents.
12034  See AddToToc.
12035 \end_layout
12036
12037 \begin_layout Standard
12038 By default, the text entered in the \SpecialChar LyX
12039  workarea in the respective layout is
12040  the last (mandatory) argument of a command if the 
12041 \begin_inset Flex Code
12042 status collapsed
12043
12044 \begin_layout Plain Layout
12045 LatexType
12046 \end_layout
12047
12048 \end_inset
12049
12050  is 
12051 \begin_inset Flex Code
12052 status collapsed
12053
12054 \begin_layout Plain Layout
12055 Command
12056 \end_layout
12057
12058 \end_inset
12059
12060 .
12061  However, arguments with the prefix 
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 post:
12067 \end_layout
12068
12069 \end_inset
12070
12071  are output after this workarea argument.
12072  Note that post-argument numbering restarts at 1, so the first argument
12073  following the workarea argument is 
12074 \begin_inset Flex Code
12075 status collapsed
12076
12077 \begin_layout Plain Layout
12078 post:1
12079 \end_layout
12080
12081 \end_inset
12082
12083 .
12084  Post-arguments are ignored in any other 
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 LatexType
12090 \end_layout
12091
12092 \end_inset
12093
12094  than 
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 Command
12100 \end_layout
12101
12102 \end_inset
12103
12104 .
12105 \end_layout
12106
12107 \begin_layout Standard
12108 Arguments for list 
12109 \begin_inset Flex Code
12110 status collapsed
12111
12112 \begin_layout Plain Layout
12113
12114 \backslash
12115 item
12116 \end_layout
12117
12118 \end_inset
12119
12120 s (as in 
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125
12126 \backslash
12127 item[foo]
12128 \end_layout
12129
12130 \end_inset
12131
12132 ) have the prefix 
12133 \begin_inset Flex Code
12134 status collapsed
12135
12136 \begin_layout Plain Layout
12137 item:
12138 \end_layout
12139
12140 \end_inset
12141
12142  followed by the number (e.
12143 \begin_inset space \thinspace{}
12144 \end_inset
12145
12146 g.
12147 \begin_inset space \space{}
12148 \end_inset
12149
12150
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 Argument item:1
12156 \end_layout
12157
12158 \end_inset
12159
12160 ).
12161 \end_layout
12162
12163 \end_deeper
12164 \begin_layout Description
12165 \begin_inset Flex Code
12166 status collapsed
12167
12168 \begin_layout Plain Layout
12169 AutoNests
12170 \end_layout
12171
12172 \end_inset
12173
12174  Includes a comma-separated list of layouts that should be nested in and
12175  after the current layout.
12176  Only makes sense for nestable layouts (such as environments).
12177  Must be ended by 
12178 \begin_inset Quotes eld
12179 \end_inset
12180
12181
12182 \begin_inset Flex Code
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186 EndAutoNests
12187 \end_layout
12188
12189 \end_inset
12190
12191
12192 \begin_inset Quotes erd
12193 \end_inset
12194
12195 .
12196  See also 
12197 \begin_inset Flex Code
12198 status collapsed
12199
12200 \begin_layout Plain Layout
12201 IsAutoNestedBy
12202 \end_layout
12203
12204 \end_inset
12205
12206 .
12207 \end_layout
12208
12209 \begin_layout Description
12210 \begin_inset Flex Code
12211 status collapsed
12212
12213 \begin_layout Plain Layout
12214 BabelPreamble
12215 \end_layout
12216
12217 \end_inset
12218
12219  Note that this will completely override any prior 
12220 \begin_inset Flex Code
12221 status collapsed
12222
12223 \begin_layout Plain Layout
12224 BabelPreamble
12225 \end_layout
12226
12227 \end_inset
12228
12229  declaration for this style.
12230  Must end with 
12231 \begin_inset Quotes eld
12232 \end_inset
12233
12234
12235 \begin_inset Flex Code
12236 status collapsed
12237
12238 \begin_layout Plain Layout
12239 EndBabelPreamble
12240 \end_layout
12241
12242 \end_inset
12243
12244
12245 \begin_inset Quotes erd
12246 \end_inset
12247
12248 .
12249  See 
12250 \begin_inset CommandInset ref
12251 LatexCommand ref
12252 reference "subsec:I18n"
12253
12254 \end_inset
12255
12256  for details on its use.
12257 \end_layout
12258
12259 \begin_layout Description
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264 BottomSep
12265 \end_layout
12266
12267 \end_inset
12268
12269  [
12270 \begin_inset Flex Code
12271 status collapsed
12272
12273 \begin_layout Plain Layout
12274 float=0
12275 \end_layout
12276
12277 \end_inset
12278
12279 ]
12280 \begin_inset Foot
12281 status collapsed
12282
12283 \begin_layout Plain Layout
12284 Note that a `float' here is a real number, such as: 1.5.
12285 \end_layout
12286
12287 \end_inset
12288
12289  The vertical space with which the last of a chain of paragraphs with this
12290  style is separated from the following paragraph.
12291  If the next paragraph has another style, the separations are not simply
12292  added, but the maximum is taken.
12293 \end_layout
12294
12295 \begin_layout Description
12296 \begin_inset Flex Code
12297 status collapsed
12298
12299 \begin_layout Plain Layout
12300 Category
12301 \end_layout
12302
12303 \end_inset
12304
12305  [
12306 \begin_inset Flex Code
12307 status collapsed
12308
12309 \begin_layout Plain Layout
12310 string
12311 \end_layout
12312
12313 \end_inset
12314
12315 ] The category for this style.
12316  This is used to group related styles in the style combobox on the toolbar.
12317  Any string can be used, but you may want to use existing categories with
12318  your own styles.
12319  
12320 \end_layout
12321
12322 \begin_layout Description
12323 \begin_inset Flex Code
12324 status collapsed
12325
12326 \begin_layout Plain Layout
12327 CommandDepth
12328 \end_layout
12329
12330 \end_inset
12331
12332  Depth of XML command.
12333  Used only with XML-type formats.
12334 \end_layout
12335
12336 \begin_layout Description
12337 \begin_inset Flex Code
12338 status collapsed
12339
12340 \begin_layout Plain Layout
12341 CopyStyle
12342 \end_layout
12343
12344 \end_inset
12345
12346  [
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351 string
12352 \end_layout
12353
12354 \end_inset
12355
12356 ] Copies all the features of an existing style into the current one.
12357  
12358 \end_layout
12359
12360 \begin_layout Description
12361 \begin_inset Flex Code
12362 status collapsed
12363
12364 \begin_layout Plain Layout
12365 DependsOn
12366 \end_layout
12367
12368 \end_inset
12369
12370  [
12371 \begin_inset Flex Code
12372 status collapsed
12373
12374 \begin_layout Plain Layout
12375 <name>
12376 \end_layout
12377
12378 \end_inset
12379
12380 ] The name of a style whose preamble should be output 
12381 \emph on
12382 before
12383 \emph default
12384  this one.
12385  This allows to ensure some ordering of the preamble snippets when macros
12386  definitions depend on one another.
12387 \begin_inset Foot
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391 Note that, besides that functionality, there is no way to ensure any ordering
12392  of preambles.
12393  The ordering that you see in a given version of \SpecialChar LyX
12394  may change without warning
12395  in later versions.
12396 \end_layout
12397
12398 \end_inset
12399
12400
12401 \end_layout
12402
12403 \begin_layout Description
12404 \begin_inset Flex Code
12405 status collapsed
12406
12407 \begin_layout Plain Layout
12408 EndLabeltype
12409 \end_layout
12410
12411 \end_inset
12412
12413  [
12414 \begin_inset Flex Code
12415 status collapsed
12416
12417 \begin_layout Plain Layout
12418
12419 \emph on
12420 No_Label
12421 \emph default
12422 , Box, Filled_Box, Static
12423 \end_layout
12424
12425 \end_inset
12426
12427 ] The type of label that stands at the end of the paragraph (or sequence
12428  of paragraphs if 
12429 \begin_inset Flex Code
12430 status collapsed
12431
12432 \begin_layout Plain Layout
12433 LatexType
12434 \end_layout
12435
12436 \end_inset
12437
12438  is
12439 \begin_inset Newline newline
12440 \end_inset
12441
12442
12443 \begin_inset Flex Code
12444 status collapsed
12445
12446 \begin_layout Plain Layout
12447 Environment
12448 \end_layout
12449
12450 \end_inset
12451
12452
12453 \begin_inset Flex Code
12454 status collapsed
12455
12456 \begin_layout Plain Layout
12457 Item_Environment
12458 \end_layout
12459
12460 \end_inset
12461
12462  or 
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 List_Environment
12468 \end_layout
12469
12470 \end_inset
12471
12472 ).
12473  
12474 \begin_inset Flex Code
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478 No_Label
12479 \end_layout
12480
12481 \end_inset
12482
12483  means 
12484 \begin_inset Quotes eld
12485 \end_inset
12486
12487 nothing
12488 \begin_inset Quotes erd
12489 \end_inset
12490
12491
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496 Box
12497 \end_layout
12498
12499 \end_inset
12500
12501  (resp.
12502 \begin_inset space \space{}
12503 \end_inset
12504
12505
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510 Filled_Box
12511 \end_layout
12512
12513 \end_inset
12514
12515 ) is a white (resp.
12516 \begin_inset space ~
12517 \end_inset
12518
12519 black) square suitable for end of proof markers, 
12520 \begin_inset Flex Code
12521 status collapsed
12522
12523 \begin_layout Plain Layout
12524 Static
12525 \end_layout
12526
12527 \end_inset
12528
12529  is an explicit text string.
12530 \end_layout
12531
12532 \begin_layout Description
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 EndLabelString
12538 \end_layout
12539
12540 \end_inset
12541
12542  [
12543 \begin_inset Flex Code
12544 status collapsed
12545
12546 \begin_layout Plain Layout
12547 string=""
12548 \end_layout
12549
12550 \end_inset
12551
12552 ] The string used for a label with a 
12553 \begin_inset Flex Code
12554 status collapsed
12555
12556 \begin_layout Plain Layout
12557 Static
12558 \end_layout
12559
12560 \end_inset
12561
12562
12563 \begin_inset Newline newline
12564 \end_inset
12565
12566
12567 \begin_inset Flex Code
12568 status collapsed
12569
12570 \begin_layout Plain Layout
12571 EndLabelType
12572 \end_layout
12573
12574 \end_inset
12575
12576 .
12577  
12578 \end_layout
12579
12580 \begin_layout Description
12581 \begin_inset Flex Code
12582 status collapsed
12583
12584 \begin_layout Plain Layout
12585 Font
12586 \end_layout
12587
12588 \end_inset
12589
12590  The font used for both the text body 
12591 \emph on
12592 and
12593 \emph default
12594  the label.
12595  See 
12596 \begin_inset CommandInset ref
12597 LatexCommand ref
12598 reference "subsec:Font-description"
12599
12600 \end_inset
12601
12602 .
12603  Note that defining this font automatically defines the 
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 LabelFont
12609 \end_layout
12610
12611 \end_inset
12612
12613  to the same value.
12614  So you should define this one first if you also want to define 
12615 \begin_inset Flex Code
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 LabelFont
12620 \end_layout
12621
12622 \end_inset
12623
12624 .
12625 \end_layout
12626
12627 \begin_layout Description
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 ForceLocal
12633 \end_layout
12634
12635 \end_inset
12636
12637  [
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 int=0
12643 \end_layout
12644
12645 \end_inset
12646
12647 ] Used for backporting new styles to stable \SpecialChar LyX
12648  versions.
12649  The first stable version that supports this tag is \SpecialChar LyX
12650  2.1.0.
12651  The argument is a number which may either be 0, -1 or any value greater
12652  than zero.
12653  If the 
12654 \begin_inset Flex Code
12655 status collapsed
12656
12657 \begin_layout Plain Layout
12658 ForceLocal
12659 \end_layout
12660
12661 \end_inset
12662
12663  flag of a style is greater than zero, it will always be written to the
12664  document header.
12665  If a .lyx file is read, the style definitions from the document header are
12666  added to the document class.
12667  Therefore even older \SpecialChar LyX
12668  versions can handle the style.
12669  The argument of 
12670 \begin_inset Flex Code
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674 ForceLocal
12675 \end_layout
12676
12677 \end_inset
12678
12679  is a version number: if the style is read, and the version number is less
12680  than the version number of the already existing style in the document class,
12681  the new style is ignored.
12682  If the version number is greater, the new style replaces the existing style.
12683  A value of -1 means an infinite version number, i.
12684 \begin_inset space \thinspace{}
12685 \end_inset
12686
12687 e.
12688 \begin_inset space \space{}
12689 \end_inset
12690
12691 the style is always used.
12692 \end_layout
12693
12694 \begin_layout Description
12695 \begin_inset Flex Code
12696 status collapsed
12697
12698 \begin_layout Plain Layout
12699 FreeSpacing
12700 \end_layout
12701
12702 \end_inset
12703
12704  [
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709
12710 \emph on
12711 0
12712 \end_layout
12713
12714 \end_inset
12715
12716 ,
12717 \begin_inset space \thinspace{}
12718 \end_inset
12719
12720
12721 \begin_inset Flex Code
12722 status collapsed
12723
12724 \begin_layout Plain Layout
12725 1
12726 \end_layout
12727
12728 \end_inset
12729
12730 ] Usually \SpecialChar LyX
12731  does not allow you to insert more than one space between words,
12732  since a space is considered as the separation between two words, not a
12733  character or symbol of its own.
12734  This is a very fine thing but sometimes annoying, for example, when typing
12735  program code or plain \SpecialChar LaTeX
12736  code.
12737  For this reason, 
12738 \begin_inset Flex Code
12739 status collapsed
12740
12741 \begin_layout Plain Layout
12742 FreeSpacing
12743 \end_layout
12744
12745 \end_inset
12746
12747  can be enabled.
12748  Note that \SpecialChar LyX
12749  will create protected blanks for the additional blanks when
12750  in another mode than \SpecialChar LaTeX
12751 -mode.
12752 \end_layout
12753
12754 \begin_layout Description
12755 \begin_inset Flex Code
12756 status collapsed
12757
12758 \begin_layout Plain Layout
12759 HTML*
12760 \end_layout
12761
12762 \end_inset
12763
12764  These tags are used with XHTML output.
12765  See 
12766 \begin_inset CommandInset ref
12767 LatexCommand ref
12768 reference "subsec:Paragraph-Style-XHTML"
12769
12770 \end_inset
12771
12772 .
12773 \end_layout
12774
12775 \begin_layout Description
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 InnerTag
12781 \end_layout
12782
12783 \end_inset
12784
12785  [FIXME] (Used only with XML-type formats.)
12786 \end_layout
12787
12788 \begin_layout Description
12789 \begin_inset Flex Code
12790 status collapsed
12791
12792 \begin_layout Plain Layout
12793 InPreamble
12794 \end_layout
12795
12796 \end_inset
12797
12798  [
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803
12804 \emph on
12805 0
12806 \end_layout
12807
12808 \end_inset
12809
12810 ,
12811 \begin_inset space \thinspace{}
12812 \end_inset
12813
12814
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819 1
12820 \end_layout
12821
12822 \end_inset
12823
12824 ] If 
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 1
12830 \end_layout
12831
12832 \end_inset
12833
12834 , marks the style as to be included in the document preamble and not in
12835  the document body.
12836  This is useful for document classes that want such information as the title
12837  and author to appear in the preamble.
12838  Note that this works only for styles for which the 
12839 \begin_inset Flex Code
12840 status collapsed
12841
12842 \begin_layout Plain Layout
12843 LatexType
12844 \end_layout
12845
12846 \end_inset
12847
12848  is 
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 Command
12854 \end_layout
12855
12856 \end_inset
12857
12858  or 
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 Paragraph
12864 \end_layout
12865
12866 \end_inset
12867
12868 .
12869 \end_layout
12870
12871 \begin_layout Description
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 InTitle
12877 \end_layout
12878
12879 \end_inset
12880
12881  [
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886
12887 \emph on
12888 0
12889 \end_layout
12890
12891 \end_inset
12892
12893 ,
12894 \begin_inset space \thinspace{}
12895 \end_inset
12896
12897
12898 \begin_inset Flex Code
12899 status collapsed
12900
12901 \begin_layout Plain Layout
12902 1
12903 \end_layout
12904
12905 \end_inset
12906
12907 ] If 
12908 \begin_inset Flex Code
12909 status collapsed
12910
12911 \begin_layout Plain Layout
12912 1
12913 \end_layout
12914
12915 \end_inset
12916
12917 , marks the style as being part of a title block (see also the 
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922 TitleLatexType
12923 \end_layout
12924
12925 \end_inset
12926
12927  and 
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 TitleLatexName
12933 \end_layout
12934
12935 \end_inset
12936
12937  global entries).
12938 \end_layout
12939
12940 \begin_layout Description
12941 \begin_inset Flex Code
12942 status collapsed
12943
12944 \begin_layout Plain Layout
12945 IsAutoNestedBy
12946 \end_layout
12947
12948 \end_inset
12949
12950  Includes a comma-separated list of layouts after which this one should
12951  be nested.
12952  Only makes sense with regard to nestable layouts (such as environments).
12953  Must be ended by 
12954 \begin_inset Quotes eld
12955 \end_inset
12956
12957
12958 \begin_inset Flex Code
12959 status collapsed
12960
12961 \begin_layout Plain Layout
12962 EndIsAutoNestedBy
12963 \end_layout
12964
12965 \end_inset
12966
12967
12968 \begin_inset Quotes erd
12969 \end_inset
12970
12971 .
12972  See also 
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 AutoNests
12978 \end_layout
12979
12980 \end_inset
12981
12982 .
12983 \end_layout
12984
12985 \begin_layout Description
12986 \begin_inset Flex Code
12987 status collapsed
12988
12989 \begin_layout Plain Layout
12990 IsTocCaption
12991 \end_layout
12992
12993 \end_inset
12994
12995  [
12996 \begin_inset Flex Code
12997 status collapsed
12998
12999 \begin_layout Plain Layout
13000
13001 \emph on
13002 0
13003 \end_layout
13004
13005 \end_inset
13006
13007 ,
13008 \begin_inset space \thinspace{}
13009 \end_inset
13010
13011
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 1
13017 \end_layout
13018
13019 \end_inset
13020
13021 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13022  of its contents in its item in the table of contents.
13023  Otherwise, only the label, if it exists, appears.
13024 \end_layout
13025
13026 \begin_layout Description
13027 \begin_inset Flex Code
13028 status collapsed
13029
13030 \begin_layout Plain Layout
13031 ItemCommand
13032 \end_layout
13033
13034 \end_inset
13035
13036  [
13037 \begin_inset Flex Code
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041 string="item"
13042 \end_layout
13043
13044 \end_inset
13045
13046 ] The \SpecialChar LaTeX
13047  command sequence declaring an item in a list.
13048  The command is to be defined without the preceding backslash (the default
13049  is 
13050 \begin_inset Quotes eld
13051 \end_inset
13052
13053 item
13054 \begin_inset Quotes erd
13055 \end_inset
13056
13057 , resulting in 
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062
13063 \backslash
13064 item
13065 \end_layout
13066
13067 \end_inset
13068
13069  in the \SpecialChar LaTeX
13070  output).
13071 \end_layout
13072
13073 \begin_layout Description
13074 \begin_inset Flex Code
13075 status collapsed
13076
13077 \begin_layout Plain Layout
13078 ItemSep
13079 \end_layout
13080
13081 \end_inset
13082
13083  [
13084 \begin_inset Flex Code
13085 status collapsed
13086
13087 \begin_layout Plain Layout
13088 float=0
13089 \end_layout
13090
13091 \end_inset
13092
13093 ] This provides extra space between paragraphs that have the same style.
13094  If you put other styles into an environment, each is separated with the
13095  environment's 
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100 ParSep
13101 \end_layout
13102
13103 \end_inset
13104
13105 .
13106  But the whole items of the environment are additionally separated with
13107  this 
13108 \begin_inset Flex Code
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112 ItemSep
13113 \end_layout
13114
13115 \end_inset
13116
13117 .
13118  Note that this is a
13119 \emph on
13120  multiplier.
13121 \end_layout
13122
13123 \begin_layout Description
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 ItemTag
13129 \end_layout
13130
13131 \end_inset
13132
13133  [FIXME] (Used only with XML-type formats.)
13134 \end_layout
13135
13136 \begin_layout Description
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 KeepEmpty
13142 \end_layout
13143
13144 \end_inset
13145
13146  [
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151
13152 \emph on
13153 0
13154 \end_layout
13155
13156 \end_inset
13157
13158 ,
13159 \begin_inset space \thinspace{}
13160 \end_inset
13161
13162
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167 1
13168 \end_layout
13169
13170 \end_inset
13171
13172 ] Usually \SpecialChar LyX
13173  does not allow you to leave a paragraph empty, since it would
13174  lead to empty \SpecialChar LaTeX
13175  output.
13176  There are some cases where this could be desirable however: in a letter
13177  template, the required fields can be provided as empty fields, so that
13178  people do not forget them; in some special classes, a style can be used
13179  as some kind of break, which does not contain actual text.
13180 \end_layout
13181
13182 \begin_layout Description
13183 \begin_inset Flex Code
13184 status collapsed
13185
13186 \begin_layout Plain Layout
13187 LabelBottomsep
13188 \end_layout
13189
13190 \end_inset
13191
13192  [
13193 \begin_inset Flex Code
13194 status collapsed
13195
13196 \begin_layout Plain Layout
13197 float=0
13198 \end_layout
13199
13200 \end_inset
13201
13202 ] The vertical space between the label and the text body.
13203  Only used for labels that are above the text body (
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 Top_Environment
13209 \end_layout
13210
13211 \end_inset
13212
13213  and
13214 \begin_inset Newline newline
13215 \end_inset
13216
13217
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 Centered_Top_Environment
13223 \end_layout
13224
13225 \end_inset
13226
13227 ).
13228 \end_layout
13229
13230 \begin_layout Description
13231 \begin_inset Flex Code
13232 status collapsed
13233
13234 \begin_layout Plain Layout
13235 LabelCounter
13236 \end_layout
13237
13238 \end_inset
13239
13240  [
13241 \begin_inset Flex Code
13242 status collapsed
13243
13244 \begin_layout Plain Layout
13245 string=""
13246 \end_layout
13247
13248 \end_inset
13249
13250 ] The name of the counter for automatic numbering.
13251  In order to have the counter appear with your label, you will need to reference
13252  it in the 
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257
13258 \family typewriter
13259 LabelString
13260 \end_layout
13261
13262 \end_inset
13263
13264 .
13265  This will work with 
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 LabelType
13271 \end_layout
13272
13273 \end_inset
13274
13275 s, 
13276 \begin_inset Flex Code
13277 status collapsed
13278
13279 \begin_layout Plain Layout
13280 Static
13281 \end_layout
13282
13283 \end_inset
13284
13285
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 Above
13291 \end_layout
13292
13293 \end_inset
13294
13295  and 
13296 \begin_inset Flex Code
13297 status collapsed
13298
13299 \begin_layout Plain Layout
13300 Centered
13301 \end_layout
13302
13303 \end_inset
13304
13305 , at least.
13306 \begin_inset Newline newline
13307 \end_inset
13308
13309 This 
13310 \emph on
13311 may
13312 \emph default
13313  also be given if 
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 LabelType
13319 \end_layout
13320
13321 \end_inset
13322
13323  is 
13324 \begin_inset Flex Code
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 Enumerate
13329 \end_layout
13330
13331 \end_inset
13332
13333 , though this case is a bit complicated.
13334  Suppose you declare 
13335 \begin_inset Quotes eld
13336 \end_inset
13337
13338
13339 \begin_inset Flex Code
13340 status collapsed
13341
13342 \begin_layout Plain Layout
13343 LabelCounter myenum
13344 \end_layout
13345
13346 \end_inset
13347
13348
13349 \begin_inset Quotes erd
13350 \end_inset
13351
13352 .
13353  Then the actual counters used are 
13354 \begin_inset Flex Code
13355 status collapsed
13356
13357 \begin_layout Plain Layout
13358 myenumi
13359 \end_layout
13360
13361 \end_inset
13362
13363
13364 \begin_inset Flex Code
13365 status collapsed
13366
13367 \begin_layout Plain Layout
13368 myenumii
13369 \end_layout
13370
13371 \end_inset
13372
13373
13374 \begin_inset Flex Code
13375 status collapsed
13376
13377 \begin_layout Plain Layout
13378 myenumiii
13379 \end_layout
13380
13381 \end_inset
13382
13383  and 
13384 \begin_inset Flex Code
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388 myenumiv
13389 \end_layout
13390
13391 \end_inset
13392
13393 , much as in \SpecialChar LaTeX
13394 .
13395  These counters must all be declared separately.
13396 \begin_inset Newline newline
13397 \end_inset
13398
13399 See 
13400 \begin_inset CommandInset ref
13401 LatexCommand ref
13402 reference "subsec:Counters"
13403
13404 \end_inset
13405
13406  for details on counters.
13407 \end_layout
13408
13409 \begin_layout Description
13410 \begin_inset Flex Code
13411 status collapsed
13412
13413 \begin_layout Plain Layout
13414 LabelFont
13415 \end_layout
13416
13417 \end_inset
13418
13419  The font used for the label.
13420  See 
13421 \begin_inset CommandInset ref
13422 LatexCommand ref
13423 reference "subsec:Font-description"
13424
13425 \end_inset
13426
13427 .
13428 \end_layout
13429
13430 \begin_layout Description
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 LabelIndent
13436 \end_layout
13437
13438 \end_inset
13439
13440  [
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 string=""
13446 \end_layout
13447
13448 \end_inset
13449
13450 ] Text that indicates how far a label should be indented.
13451 \end_layout
13452
13453 \begin_layout Description
13454 \begin_inset Flex Code
13455 status collapsed
13456
13457 \begin_layout Plain Layout
13458 LabelSep
13459 \end_layout
13460
13461 \end_inset
13462
13463  [
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 string=""
13469 \end_layout
13470
13471 \end_inset
13472
13473 ] Text that indicates the amount of horizontal space between the label and
13474  the text body.
13475  Only used for labels that are not above the text body.
13476 \end_layout
13477
13478 \begin_layout Description
13479 \begin_inset Flex Code
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483 LabelString
13484 \end_layout
13485
13486 \end_inset
13487
13488  [
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 string=""
13494 \end_layout
13495
13496 \end_inset
13497
13498 ] The string used for the label.
13499  When 
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 LabelCounter
13505 \end_layout
13506
13507 \end_inset
13508
13509  is set, this string can be contain the special formatting commands described
13510  in 
13511 \begin_inset CommandInset ref
13512 LatexCommand ref
13513 reference "subsec:Counters"
13514
13515 \end_inset
13516
13517 .
13518 \end_layout
13519
13520 \begin_layout Description
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 LabelStringAppendix
13526 \end_layout
13527
13528 \end_inset
13529
13530  [
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 string=""
13536 \end_layout
13537
13538 \end_inset
13539
13540 ] This is used inside the appendix instead of
13541 \begin_inset Newline newline
13542 \end_inset
13543
13544
13545 \begin_inset Flex Code
13546 status collapsed
13547
13548 \begin_layout Plain Layout
13549 LabelString
13550 \end_layout
13551
13552 \end_inset
13553
13554 .
13555  Note that every 
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 LabelString
13561 \end_layout
13562
13563 \end_inset
13564
13565  statement resets
13566 \begin_inset Newline newline
13567 \end_inset
13568
13569
13570 \begin_inset Flex Code
13571 status collapsed
13572
13573 \begin_layout Plain Layout
13574 LabelStringAppendix
13575 \end_layout
13576
13577 \end_inset
13578
13579  too.
13580 \end_layout
13581
13582 \begin_layout Description
13583 \begin_inset Flex Code
13584 status collapsed
13585
13586 \begin_layout Plain Layout
13587 LabelTag
13588 \end_layout
13589
13590 \end_inset
13591
13592  [FIXME] (Used only with XML-type formats.)
13593 \end_layout
13594
13595 \begin_layout Description
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 LabelType
13601 \end_layout
13602
13603 \end_inset
13604
13605  [
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610
13611 \emph on
13612 No_Label
13613 \emph default
13614 , Manual, Static, Above, 
13615 \begin_inset Newline newline
13616 \end_inset
13617
13618 Centered, Sensitive, Enumerate,
13619 \begin_inset Newline newline
13620 \end_inset
13621
13622 Itemize, Bibliography
13623 \end_layout
13624
13625 \end_inset
13626
13627 ]
13628 \end_layout
13629
13630 \begin_deeper
13631 \begin_layout Description
13632 \begin_inset Flex Code
13633 status collapsed
13634
13635 \begin_layout Plain Layout
13636 Manual
13637 \end_layout
13638
13639 \end_inset
13640
13641  means the label is the very first word (up to the first real blank).
13642  Use protected spaces if you want more than one word as the label.
13643  
13644 \end_layout
13645
13646 \begin_layout Description
13647 \begin_inset Flex Code
13648 status collapsed
13649
13650 \begin_layout Plain Layout
13651 Static
13652 \end_layout
13653
13654 \end_inset
13655
13656  means the label is simply what is declared as 
13657 \begin_inset Flex Code
13658 status collapsed
13659
13660 \begin_layout Plain Layout
13661 LabelString
13662 \end_layout
13663
13664 \end_inset
13665
13666 .
13667  This will be displayed 
13668 \begin_inset Quotes eld
13669 \end_inset
13670
13671 inline
13672 \begin_inset Quotes erd
13673 \end_inset
13674
13675 , at the beginning of the paragraph.
13676  If the 
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681 LatexType
13682 \end_layout
13683
13684 \end_inset
13685
13686  is 
13687 \begin_inset Flex Code
13688 status collapsed
13689
13690 \begin_layout Plain Layout
13691 Environment
13692 \end_layout
13693
13694 \end_inset
13695
13696 , then it will be displayed only in the first paragraph of any sequence
13697  of paragraphs with the same 
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 Style
13703 \end_layout
13704
13705 \end_inset
13706
13707 .
13708 \end_layout
13709
13710 \begin_layout Description
13711 \begin_inset Flex Code
13712 status collapsed
13713
13714 \begin_layout Plain Layout
13715 Above
13716 \end_layout
13717
13718 \end_inset
13719
13720
13721 \begin_inset space ~
13722 \end_inset
13723
13724 and
13725 \begin_inset space ~
13726 \end_inset
13727
13728
13729 \begin_inset Flex Code
13730 status collapsed
13731
13732 \begin_layout Plain Layout
13733 Centered
13734 \end_layout
13735
13736 \end_inset
13737
13738  are special cases of 
13739 \begin_inset Flex Code
13740 status collapsed
13741
13742 \begin_layout Plain Layout
13743 Static
13744 \end_layout
13745
13746 \end_inset
13747
13748 .
13749  The label will be printed above the paragraph either at the beginning of
13750  the line or centered.
13751 \end_layout
13752
13753 \begin_layout Description
13754 \begin_inset Flex Code
13755 status collapsed
13756
13757 \begin_layout Plain Layout
13758 Sensitive
13759 \end_layout
13760
13761 \end_inset
13762
13763  is a special case for the caption-labels 
13764 \begin_inset Quotes eld
13765 \end_inset
13766
13767 Figure
13768 \begin_inset Quotes erd
13769 \end_inset
13770
13771  and 
13772 \begin_inset Quotes eld
13773 \end_inset
13774
13775 Table
13776 \begin_inset Quotes erd
13777 \end_inset
13778
13779 .
13780 \begin_inset Newline newline
13781 \end_inset
13782
13783
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 Sensitive
13789 \end_layout
13790
13791 \end_inset
13792
13793  means the (hardcoded) label string depends on the kind of float: It is
13794  hardcoded to be `FloatType N', where N is the value of the counter associated
13795  with the float.
13796  For the case that a caption is inserted outside of a float the 
13797 \begin_inset Flex Code
13798 status collapsed
13799
13800 \begin_layout Plain Layout
13801 LabelString
13802 \end_layout
13803
13804 \end_inset
13805
13806  will appear as 
13807 \begin_inset Quotes eld
13808 \end_inset
13809
13810 Senseless!
13811 \begin_inset Quotes erd
13812 \end_inset
13813
13814 .
13815 \end_layout
13816
13817 \begin_layout Description
13818 \begin_inset Flex Code
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822 Enumerate
13823 \end_layout
13824
13825 \end_inset
13826
13827  produces the usual sort of enumeration labels.
13828  The number type needs to be set in the 
13829 \family sans
13830 Counter
13831 \family default
13832 , see 
13833 \begin_inset CommandInset ref
13834 LatexCommand ref
13835 reference "subsec:Counters"
13836
13837 \end_inset
13838
13839 .
13840 \end_layout
13841
13842 \begin_layout Description
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 Itemize
13848 \end_layout
13849
13850 \end_inset
13851
13852  produces various bullets at the different levels.
13853  The bullet types displayed can be set via 
13854 \begin_inset Flex Noun
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858 Document\SpecialChar menuseparator
13859 Settings\SpecialChar menuseparator
13860 Bullets
13861 \end_layout
13862
13863 \end_inset
13864
13865 .
13866 \end_layout
13867
13868 \begin_layout Description
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 Bibliography
13874 \end_layout
13875
13876 \end_inset
13877
13878  should be used only with 
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 LatexType BibEnvironment
13884 \end_layout
13885
13886 \end_inset
13887
13888 .
13889 \end_layout
13890
13891 \end_deeper
13892 \begin_layout Description
13893 \begin_inset Flex Code
13894 status collapsed
13895
13896 \begin_layout Plain Layout
13897 LangPreamble
13898 \end_layout
13899
13900 \end_inset
13901
13902  Note that this will completely override any prior 
13903 \begin_inset Flex Code
13904 status collapsed
13905
13906 \begin_layout Plain Layout
13907 LangPreamble
13908 \end_layout
13909
13910 \end_inset
13911
13912  declaration for this style.
13913  Must end with 
13914 \begin_inset Quotes eld
13915 \end_inset
13916
13917
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 EndLangPreamble
13923 \end_layout
13924
13925 \end_inset
13926
13927
13928 \begin_inset Quotes erd
13929 \end_inset
13930
13931 .
13932  See 
13933 \begin_inset CommandInset ref
13934 LatexCommand ref
13935 reference "subsec:I18n"
13936
13937 \end_inset
13938
13939  for details on its use.
13940 \end_layout
13941
13942 \begin_layout Description
13943 \begin_inset Flex Code
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 LatexName
13948 \end_layout
13949
13950 \end_inset
13951
13952  [
13953 \begin_inset Flex Code
13954 status collapsed
13955
13956 \begin_layout Plain Layout
13957 <name>
13958 \end_layout
13959
13960 \end_inset
13961
13962 ] The name of the corresponding \SpecialChar LaTeX
13963  stuff.
13964  Either the environment or command name.
13965 \end_layout
13966
13967 \begin_layout Description
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 LatexParam
13973 \end_layout
13974
13975 \end_inset
13976
13977  [
13978 \begin_inset Flex Code
13979 status collapsed
13980
13981 \begin_layout Plain Layout
13982 <parameter>
13983 \end_layout
13984
13985 \end_inset
13986
13987 ] An optional parameter for the corresponding 
13988 \begin_inset Flex Code
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992 LatexName
13993 \end_layout
13994
13995 \end_inset
13996
13997  stuff.
13998  This parameter cannot be changed from within \SpecialChar LyX
13999  (use 
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 Argument
14005 \end_layout
14006
14007 \end_inset
14008
14009  for customizable parameters).
14010  This will be output as is after all \SpecialChar LaTeX
14011  
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 Argument
14017 \end_layout
14018
14019 \end_inset
14020
14021 s.
14022 \end_layout
14023
14024 \begin_layout Description
14025 \begin_inset Flex Code
14026 status collapsed
14027
14028 \begin_layout Plain Layout
14029 LatexType
14030 \end_layout
14031
14032 \end_inset
14033
14034  [
14035 \begin_inset Flex Code
14036 status collapsed
14037
14038 \begin_layout Plain Layout
14039
14040 \emph on
14041 Paragraph
14042 \emph default
14043 , Command, Environment, Item_Environment,
14044 \begin_inset Newline newline
14045 \end_inset
14046
14047 List_Environment, Bib_Environment
14048 \end_layout
14049
14050 \end_inset
14051
14052 ] How the style should be translated into \SpecialChar LaTeX
14053 .
14054 \begin_inset Foot
14055 status collapsed
14056
14057 \begin_layout Plain Layout
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 LatexType
14063 \end_layout
14064
14065 \end_inset
14066
14067  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14068  Visit the SGML class files for specific examples.
14069 \end_layout
14070
14071 \end_inset
14072
14073
14074 \end_layout
14075
14076 \begin_deeper
14077 \begin_layout Description
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082 Paragraph
14083 \end_layout
14084
14085 \end_inset
14086
14087  means nothing special.
14088 \end_layout
14089
14090 \begin_layout Description
14091 \begin_inset Flex Code
14092 status collapsed
14093
14094 \begin_layout Plain Layout
14095 Command
14096 \end_layout
14097
14098 \end_inset
14099
14100  means 
14101 \begin_inset Flex Code
14102 status collapsed
14103
14104 \begin_layout Plain Layout
14105
14106 \backslash
14107
14108 \emph on
14109 LatexName
14110 \emph default
14111 {\SpecialChar ldots
14112 }
14113 \end_layout
14114
14115 \end_inset
14116
14117 .
14118 \end_layout
14119
14120 \begin_layout Description
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 Environment
14126 \end_layout
14127
14128 \end_inset
14129
14130  means 
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135
14136 \backslash
14137 begin{
14138 \emph on
14139 LatexName
14140 \emph default
14141 }\SpecialChar ldots
14142
14143 \backslash
14144 end{
14145 \emph on
14146 LatexName
14147 \emph default
14148 }
14149 \end_layout
14150
14151 \end_inset
14152
14153 .
14154  
14155 \end_layout
14156
14157 \begin_layout Description
14158 \begin_inset Flex Code
14159 status collapsed
14160
14161 \begin_layout Plain Layout
14162 Item_Environment
14163 \end_layout
14164
14165 \end_inset
14166
14167  is the same as 
14168 \begin_inset Flex Code
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172 Environment
14173 \end_layout
14174
14175 \end_inset
14176
14177 , except that an 
14178 \begin_inset Flex Code
14179 status collapsed
14180
14181 \begin_layout Plain Layout
14182
14183 \backslash
14184 item
14185 \end_layout
14186
14187 \end_inset
14188
14189  is generated for each paragraph of this environment.
14190  
14191 \end_layout
14192
14193 \begin_layout Description
14194 \begin_inset Flex Code
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198 List_Environment
14199 \end_layout
14200
14201 \end_inset
14202
14203  is the same as 
14204 \begin_inset Flex Code
14205 status collapsed
14206
14207 \begin_layout Plain Layout
14208 Item_Environment
14209 \end_layout
14210
14211 \end_inset
14212
14213 , except that
14214 \begin_inset Newline newline
14215 \end_inset
14216
14217
14218 \begin_inset Flex Code
14219 status collapsed
14220
14221 \begin_layout Plain Layout
14222 LabelWidthString
14223 \end_layout
14224
14225 \end_inset
14226
14227  is passed as an argument to the environment.
14228 \begin_inset Newline newline
14229 \end_inset
14230
14231
14232 \begin_inset Flex Code
14233 status collapsed
14234
14235 \begin_layout Plain Layout
14236 LabelWidthString
14237 \end_layout
14238
14239 \end_inset
14240
14241  can be defined in the 
14242 \begin_inset Flex Noun
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 Edit\SpecialChar menuseparator
14247 Paragraph
14248 \begin_inset space ~
14249 \end_inset
14250
14251 settings
14252 \end_layout
14253
14254 \end_inset
14255
14256  dialog.
14257 \end_layout
14258
14259 \begin_layout Description
14260 \begin_inset Flex Code
14261 status collapsed
14262
14263 \begin_layout Plain Layout
14264 Bib_Environment
14265 \end_layout
14266
14267 \end_inset
14268
14269  is like 
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 Environment
14275 \end_layout
14276
14277 \end_inset
14278
14279  but adds the necessary mandatory argument (the longest label) to the begin
14280  statement of the bibliography environment:
14281 \begin_inset Newline newline
14282 \end_inset
14283
14284
14285 \begin_inset Flex Code
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289
14290 \backslash
14291 begin{thebibliography}{99}
14292 \end_layout
14293
14294 \end_inset
14295
14296 .
14297  It is therefore only useful for bibliography environments.
14298  The default longest label 
14299 \begin_inset Quotes eld
14300 \end_inset
14301
14302 99
14303 \begin_inset Quotes erd
14304 \end_inset
14305
14306  can be changed by the user in the paragraph settings of a bibliography
14307  item.
14308 \end_layout
14309
14310 \begin_layout Standard
14311 Putting the last few things together, the \SpecialChar LaTeX
14312  output will be either: 
14313 \end_layout
14314
14315 \begin_layout LyX-Code
14316
14317 \backslash
14318 LatexName[LatexParam]{\SpecialChar ldots
14319 }
14320 \end_layout
14321
14322 \begin_layout Standard
14323 or: 
14324 \end_layout
14325
14326 \begin_layout LyX-Code
14327
14328 \backslash
14329 begin{LatexName}[LatexParam] \SpecialChar ldots
14330  
14331 \backslash
14332 end{LatexName}.
14333 \end_layout
14334
14335 \begin_layout Standard
14336 depending upon the \SpecialChar LaTeX
14337  type.
14338 \end_layout
14339
14340 \end_deeper
14341 \begin_layout Description
14342 \begin_inset Flex Code
14343 status collapsed
14344
14345 \begin_layout Plain Layout
14346 LeftDelim
14347 \end_layout
14348
14349 \end_inset
14350
14351  [
14352 \begin_inset Flex Code
14353 status collapsed
14354
14355 \begin_layout Plain Layout
14356 string
14357 \end_layout
14358
14359 \end_inset
14360
14361 ] A string that is put at the beginning of the style content.
14362  A line break in the output can be indicated by 
14363 \begin_inset Flex Code
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367 <br/>
14368 \end_layout
14369
14370 \end_inset
14371
14372 .
14373 \end_layout
14374
14375 \begin_layout Description
14376 \begin_inset Flex Code
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 LeftMargin
14381 \end_layout
14382
14383 \end_inset
14384
14385  [
14386 \begin_inset Flex Code
14387 status collapsed
14388
14389 \begin_layout Plain Layout
14390 string=""
14391 \end_layout
14392
14393 \end_inset
14394
14395 ] If you put styles into environments, the different 
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 LeftMargin
14401 \end_layout
14402
14403 \end_inset
14404
14405  are not simply added, but added with a factor 
14406 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14407 \end_inset
14408
14409 .
14410  Note that this parameter is also used when 
14411 \begin_inset Flex Code
14412 status collapsed
14413
14414 \begin_layout Plain Layout
14415 Margin
14416 \end_layout
14417
14418 \end_inset
14419
14420  is defined as 
14421 \begin_inset Flex Code
14422 status collapsed
14423
14424 \begin_layout Plain Layout
14425 Manual
14426 \end_layout
14427
14428 \end_inset
14429
14430  or 
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435 Dynamic
14436 \end_layout
14437
14438 \end_inset
14439
14440 .
14441  Then it is added to the manual or dynamic margin.
14442 \begin_inset Newline newline
14443 \end_inset
14444
14445 For example 
14446 \begin_inset Quotes eld
14447 \end_inset
14448
14449
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454 MM
14455 \end_layout
14456
14457 \end_inset
14458
14459
14460 \begin_inset Quotes erd
14461 \end_inset
14462
14463  means that the paragraph is indented with the width of 
14464 \begin_inset Quotes eld
14465 \end_inset
14466
14467
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 MM
14473 \end_layout
14474
14475 \end_inset
14476
14477
14478 \begin_inset Quotes erd
14479 \end_inset
14480
14481  in the normal font.
14482  You can get a negative width by prefixing the string with 
14483 \begin_inset Quotes eld
14484 \end_inset
14485
14486
14487 \begin_inset Flex Code
14488 status collapsed
14489
14490 \begin_layout Plain Layout
14491 -
14492 \end_layout
14493
14494 \end_inset
14495
14496
14497 \begin_inset Quotes erd
14498 \end_inset
14499
14500 .
14501  This way was chosen so that the look is the same with each used screen
14502  font.
14503 \end_layout
14504
14505 \begin_layout Description
14506 \begin_inset Flex Code
14507 status collapsed
14508
14509 \begin_layout Plain Layout
14510 Margin
14511 \end_layout
14512
14513 \end_inset
14514
14515  [
14516 \begin_inset Flex Code
14517 status collapsed
14518
14519 \begin_layout Plain Layout
14520
14521 \emph on
14522 Static
14523 \emph default
14524 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14525 \end_layout
14526
14527 \end_inset
14528
14529
14530 \begin_inset Newline newline
14531 \end_inset
14532
14533 The kind of margin that the style has on the left side.
14534 \end_layout
14535
14536 \begin_deeper
14537 \begin_layout Description
14538 \begin_inset Flex Code
14539 status collapsed
14540
14541 \begin_layout Plain Layout
14542 Static
14543 \end_layout
14544
14545 \end_inset
14546
14547  just means a fixed margin.
14548 \end_layout
14549
14550 \begin_layout Description
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 Manual
14556 \end_layout
14557
14558 \end_inset
14559
14560  means that the left margin depends on the string entered in the 
14561 \begin_inset Flex Noun
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 Edit\SpecialChar menuseparator
14566 Paragraph
14567 \begin_inset space ~
14568 \end_inset
14569
14570 Settings
14571 \end_layout
14572
14573 \end_inset
14574
14575  dialog.
14576  This is used to typeset nice lists without tabulators.
14577 \end_layout
14578
14579 \begin_layout Description
14580 \begin_inset Flex Code
14581 status collapsed
14582
14583 \begin_layout Plain Layout
14584 Dynamic
14585 \end_layout
14586
14587 \end_inset
14588
14589  means that the margin depends on the size of the label.
14590  This is used for automatic enumerated headlines.
14591  It is obvious that the headline 
14592 \begin_inset Quotes eld
14593 \end_inset
14594
14595 5.4.3.2.1 Very long headline
14596 \begin_inset Quotes erd
14597 \end_inset
14598
14599  must have a wider left margin (as wide as 
14600 \begin_inset Quotes eld
14601 \end_inset
14602
14603 5.4.3.2.1
14604 \begin_inset Quotes erd
14605 \end_inset
14606
14607  plus the space) than 
14608 \begin_inset Quotes eld
14609 \end_inset
14610
14611 3.2 Very long headline
14612 \begin_inset Quotes erd
14613 \end_inset
14614
14615 , even if standard 
14616 \begin_inset Quotes eld
14617 \end_inset
14618
14619 word processors
14620 \begin_inset Quotes erd
14621 \end_inset
14622
14623  are not able to do this.
14624 \end_layout
14625
14626 \begin_layout Description
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631 First_Dynamic
14632 \end_layout
14633
14634 \end_inset
14635
14636  is similar, but only the very first row of the paragraph is dynamic, while
14637  the others are static; this is used, for example, for descriptions.
14638 \end_layout
14639
14640 \begin_layout Description
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 Right_Address_Box
14646 \end_layout
14647
14648 \end_inset
14649
14650  means the margin is chosen in a way that the longest row of this paragraph
14651  fits to the right margin.
14652  This is used to typeset an address on the right edge of the page.
14653 \end_layout
14654
14655 \end_deeper
14656 \begin_layout Description
14657 \begin_inset Flex Code
14658 status collapsed
14659
14660 \begin_layout Plain Layout
14661 NeedProtect
14662 \end_layout
14663
14664 \end_inset
14665
14666  [
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671
14672 \emph on
14673 0
14674 \end_layout
14675
14676 \end_inset
14677
14678 ,
14679 \begin_inset space \thinspace{}
14680 \end_inset
14681
14682
14683 \begin_inset Flex Code
14684 status collapsed
14685
14686 \begin_layout Plain Layout
14687 1
14688 \end_layout
14689
14690 \end_inset
14691
14692 ] Whether fragile commands in this style should be 
14693 \begin_inset Flex Code
14694 status collapsed
14695
14696 \begin_layout Plain Layout
14697
14698 \backslash
14699 protect
14700 \end_layout
14701
14702 \end_inset
14703
14704 'ed.
14705  (Note: This is 
14706 \emph on
14707 not
14708 \emph default
14709  whether this command should itself be protected.)
14710 \end_layout
14711
14712 \begin_layout Description
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 Newline
14718 \end_layout
14719
14720 \end_inset
14721
14722  [
14723 \begin_inset Flex Code
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727 0
14728 \end_layout
14729
14730 \end_inset
14731
14732 ,
14733 \begin_inset space \thinspace{}
14734 \end_inset
14735
14736
14737 \begin_inset Flex Code
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741
14742 \emph on
14743 1
14744 \end_layout
14745
14746 \end_inset
14747
14748 ] Whether newlines are translated into \SpecialChar LaTeX
14749  newlines (
14750 \begin_inset Flex Code
14751 status collapsed
14752
14753 \begin_layout Plain Layout
14754
14755 \backslash
14756
14757 \backslash
14758
14759 \end_layout
14760
14761 \end_inset
14762
14763 ) or not.
14764  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14765  editing
14766  inside \SpecialChar LyX
14767 .
14768 \end_layout
14769
14770 \begin_layout Description
14771 \begin_inset Flex Code
14772 status collapsed
14773
14774 \begin_layout Plain Layout
14775 NextNoIndent
14776 \end_layout
14777
14778 \end_inset
14779
14780  [
14781 \begin_inset Flex Code
14782 status collapsed
14783
14784 \begin_layout Plain Layout
14785
14786 \emph on
14787 0
14788 \end_layout
14789
14790 \end_inset
14791
14792 ,
14793 \begin_inset space \thinspace{}
14794 \end_inset
14795
14796
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 1
14802 \end_layout
14803
14804 \end_inset
14805
14806 ] If set to true, and if 
14807 \begin_inset Flex Code
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 DefaultStyle
14812 \end_layout
14813
14814 \end_inset
14815
14816  (usually 
14817 \begin_inset Flex Code
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 Standard
14822 \end_layout
14823
14824 \end_inset
14825
14826 ) paragraphs are being indented, then the indentation of such a paragraph
14827  following one of this type will be suppressed.
14828  (So this will not affect the display of non-default paragraphs.)
14829 \end_layout
14830
14831 \begin_layout Description
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 ObsoletedBy
14837 \end_layout
14838
14839 \end_inset
14840
14841  [
14842 \begin_inset Flex Code
14843 status collapsed
14844
14845 \begin_layout Plain Layout
14846 <name>
14847 \end_layout
14848
14849 \end_inset
14850
14851 ] Name of a style that has replaced this style.
14852  This is used to rename a style, while keeping backward compatibility.
14853 \end_layout
14854
14855 \begin_layout Description
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 ParagraphGroup
14861 \end_layout
14862
14863 \end_inset
14864
14865  [
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 0
14871 \end_layout
14872
14873 \end_inset
14874
14875 ,
14876 \begin_inset space \thinspace{}
14877 \end_inset
14878
14879
14880 \begin_inset Flex Code
14881 status collapsed
14882
14883 \begin_layout Plain Layout
14884 1
14885 \end_layout
14886
14887 \end_inset
14888
14889 ] Determines whether consecutive paragraphs of the same type are treated
14890  as belonging together.
14891  This has the effect that the 
14892 \begin_inset Flex Code
14893 status collapsed
14894
14895 \begin_layout Plain Layout
14896 GuiLabel
14897 \end_layout
14898
14899 \end_inset
14900
14901  is only printed once before such a group.
14902  By default, this is true for 
14903 \begin_inset Flex Code
14904 status collapsed
14905
14906 \begin_layout Plain Layout
14907 LaTeXType
14908 \end_layout
14909
14910 \end_inset
14911
14912  
14913 \begin_inset Flex Code
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917 Environment
14918 \end_layout
14919
14920 \end_inset
14921
14922  and 
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 Bib_Environment
14928 \end_layout
14929
14930 \end_inset
14931
14932  and false for all other types.
14933 \end_layout
14934
14935 \begin_layout Description
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 ParbreakIsNewline
14941 \end_layout
14942
14943 \end_inset
14944
14945  [
14946 \begin_inset Flex Code
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950
14951 \emph on
14952 0
14953 \end_layout
14954
14955 \end_inset
14956
14957 ,
14958 \begin_inset space \thinspace{}
14959 \end_inset
14960
14961
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 1
14967 \end_layout
14968
14969 \end_inset
14970
14971 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14972  output,
14973  but only by a line break; together with 
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 PassThru 1
14979 \end_layout
14980
14981 \end_inset
14982
14983 , this allows to emulate a plain text editor (like the ERT inset).
14984 \end_layout
14985
14986 \begin_layout Description
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 ParIndent
14992 \end_layout
14993
14994 \end_inset
14995
14996  [
14997 \begin_inset Flex Code
14998 status collapsed
14999
15000 \begin_layout Plain Layout
15001 string=""
15002 \end_layout
15003
15004 \end_inset
15005
15006 ] The indent of the very first line of a paragraph.
15007  The
15008 \begin_inset Newline newline
15009 \end_inset
15010
15011
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 Parindent
15017 \end_layout
15018
15019 \end_inset
15020
15021  will be fixed for a certain style.
15022  The exception is the default style, since the indentation for these paragraphs
15023  can be prohibited with 
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 NextNoIndent
15029 \end_layout
15030
15031 \end_inset
15032
15033 .
15034  Also, 
15035 \begin_inset Flex Code
15036 status collapsed
15037
15038 \begin_layout Plain Layout
15039 Standard
15040 \end_layout
15041
15042 \end_inset
15043
15044  style paragraphs inside environments use the 
15045 \begin_inset Flex Code
15046 status collapsed
15047
15048 \begin_layout Plain Layout
15049 Parindent
15050 \end_layout
15051
15052 \end_inset
15053
15054  of the environment, not their native one.
15055  For example, 
15056 \begin_inset Flex Code
15057 status collapsed
15058
15059 \begin_layout Plain Layout
15060 Standard
15061 \end_layout
15062
15063 \end_inset
15064
15065  paragraphs inside an enumeration are not indented.
15066 \end_layout
15067
15068 \begin_layout Description
15069 \begin_inset Flex Code
15070 status collapsed
15071
15072 \begin_layout Plain Layout
15073 ParSep
15074 \end_layout
15075
15076 \end_inset
15077
15078  [
15079 \begin_inset Flex Code
15080 status collapsed
15081
15082 \begin_layout Plain Layout
15083 float=0
15084 \end_layout
15085
15086 \end_inset
15087
15088 ] The vertical space between two paragraphs of this style.
15089 \end_layout
15090
15091 \begin_layout Description
15092 \begin_inset Flex Code
15093 status collapsed
15094
15095 \begin_layout Plain Layout
15096 Parskip
15097 \end_layout
15098
15099 \end_inset
15100
15101  [
15102 \begin_inset Flex Code
15103 status collapsed
15104
15105 \begin_layout Plain Layout
15106 float=0
15107 \end_layout
15108
15109 \end_inset
15110
15111 ] \SpecialChar LyX
15112  allows the user to choose either 
15113 \begin_inset Quotes eld
15114 \end_inset
15115
15116 indent
15117 \begin_inset Quotes erd
15118 \end_inset
15119
15120  or 
15121 \begin_inset Quotes eld
15122 \end_inset
15123
15124 skip
15125 \begin_inset Quotes erd
15126 \end_inset
15127
15128  to separate paragraphs.
15129  When 
15130 \begin_inset Quotes eld
15131 \end_inset
15132
15133 indent
15134 \begin_inset Quotes erd
15135 \end_inset
15136
15137  is chosen, 
15138 \begin_inset Flex Code
15139 status collapsed
15140
15141 \begin_layout Plain Layout
15142 Parskip
15143 \end_layout
15144
15145 \end_inset
15146
15147  is ignored.
15148  When 
15149 \begin_inset Quotes eld
15150 \end_inset
15151
15152 skip
15153 \begin_inset Quotes erd
15154 \end_inset
15155
15156  is chosen, 
15157 \begin_inset Flex Code
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 ParIndent
15162 \end_layout
15163
15164 \end_inset
15165
15166  is ignored and all paragraphs are separated by the 
15167 \begin_inset Flex Code
15168 status collapsed
15169
15170 \begin_layout Plain Layout
15171 Parskip
15172 \end_layout
15173
15174 \end_inset
15175
15176  argument.
15177  The vertical space is calculated with 
15178 \begin_inset Flex Code
15179 status collapsed
15180
15181 \begin_layout Plain Layout
15182 Parskip
15183 \begin_inset space ~
15184 \end_inset
15185
15186 * DefaultHeight
15187 \end_layout
15188
15189 \end_inset
15190
15191  where 
15192 \begin_inset Flex Code
15193 status collapsed
15194
15195 \begin_layout Plain Layout
15196 DefaultHeight
15197 \end_layout
15198
15199 \end_inset
15200
15201  is the height of a row with the normal font.
15202  This way, the look stays the same with different screen fonts.
15203 \end_layout
15204
15205 \begin_layout Description
15206 \begin_inset Flex Code
15207 status collapsed
15208
15209 \begin_layout Plain Layout
15210 PassThru
15211 \end_layout
15212
15213 \end_inset
15214
15215  [
15216 \begin_inset Flex Code
15217 status collapsed
15218
15219 \begin_layout Plain Layout
15220
15221 \emph on
15222 0
15223 \end_layout
15224
15225 \end_inset
15226
15227 ,
15228 \begin_inset space \thinspace{}
15229 \end_inset
15230
15231
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236 1
15237 \end_layout
15238
15239 \end_inset
15240
15241 ] Whether the contents of this paragraph should be output in raw form, meaning
15242  without special translations that \SpecialChar LaTeX
15243  would require.
15244 \end_layout
15245
15246 \begin_layout Description
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 PassThruChars
15252 \end_layout
15253
15254 \end_inset
15255
15256  [
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 string
15262 \end_layout
15263
15264 \end_inset
15265
15266 ]
15267 \family typewriter
15268  
15269 \family default
15270 Defines individual characters that should be output in raw form, meaning
15271  without special translations that \SpecialChar LaTeX
15272  would require.
15273 \end_layout
15274
15275 \begin_layout Description
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 Preamble
15281 \end_layout
15282
15283 \end_inset
15284
15285  Information to be included in the \SpecialChar LaTeX
15286  preamble when this style is used.
15287  Used to define macros, load packages, etc., required by this particular
15288  style.
15289  Must end with 
15290 \begin_inset Quotes eld
15291 \end_inset
15292
15293
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 EndPreamble
15299 \end_layout
15300
15301 \end_inset
15302
15303
15304 \begin_inset Quotes erd
15305 \end_inset
15306
15307 .
15308 \end_layout
15309
15310 \begin_layout Description
15311 \begin_inset Flex Code
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 RefPrefix
15316 \end_layout
15317
15318 \end_inset
15319
15320  [
15321 \begin_inset Flex Code
15322 status collapsed
15323
15324 \begin_layout Plain Layout
15325 string
15326 \end_layout
15327
15328 \end_inset
15329
15330 ] The prefix to use when creating labels referring to paragraphs of this
15331  type.
15332  This allows the use of formatted references.
15333 \end_layout
15334
15335 \begin_layout Description
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 Requires 
15341 \end_layout
15342
15343 \end_inset
15344
15345  [
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 string
15351 \end_layout
15352
15353 \end_inset
15354
15355 ] Whether the style requires the feature 
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 string
15361 \end_layout
15362
15363 \end_inset
15364
15365  (see 
15366 \begin_inset CommandInset ref
15367 LatexCommand ref
15368 reference "chap:List-of-functions"
15369
15370 \end_inset
15371
15372  for the list of features).
15373  If you require a package with specific options, you can additionally use
15374  
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 PackageOptions
15380 \end_layout
15381
15382 \end_inset
15383
15384  as a general text class parameter (see 
15385 \begin_inset CommandInset ref
15386 LatexCommand ref
15387 reference "subsec:General-text-class"
15388
15389 \end_inset
15390
15391 ).
15392 \end_layout
15393
15394 \begin_layout Description
15395 \begin_inset Flex Code
15396 status collapsed
15397
15398 \begin_layout Plain Layout
15399 ResetArgs
15400 \end_layout
15401
15402 \end_inset
15403
15404  [
15405 \begin_inset Flex Code
15406 status collapsed
15407
15408 \begin_layout Plain Layout
15409
15410 \emph on
15411 0
15412 \end_layout
15413
15414 \end_inset
15415
15416 ,
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 1
15422 \end_layout
15423
15424 \end_inset
15425
15426 ] Resets the \SpecialChar LaTeX
15427  arguments of this style (as defined via the 
15428 \begin_inset Flex Code
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 Argument
15433 \end_layout
15434
15435 \end_inset
15436
15437  tag).
15438  This is useful if you have copied a style via 
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 CopyStyle
15444 \end_layout
15445
15446 \end_inset
15447
15448 , but you do not want to inherit its (required and optional) arguments.
15449 \end_layout
15450
15451 \begin_layout Description
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 ResumeCounter
15457 \end_layout
15458
15459 \end_inset
15460
15461  [
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466
15467 \emph on
15468 0
15469 \end_layout
15470
15471 \end_inset
15472
15473 ,
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 1
15479 \end_layout
15480
15481 \end_inset
15482
15483 ] Resumes a counter that is usually reset at each new sequence of layouts.
15484  This is currently only useful when 
15485 \begin_inset Flex Code
15486 status collapsed
15487
15488 \begin_layout Plain Layout
15489 LabelType
15490 \end_layout
15491
15492 \end_inset
15493
15494  is 
15495 \begin_inset Flex Code
15496 status collapsed
15497
15498 \begin_layout Plain Layout
15499 Enumerate
15500 \end_layout
15501
15502 \end_inset
15503
15504 .
15505 \end_layout
15506
15507 \begin_layout Description
15508 \begin_inset Flex Code
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512 RightDelim
15513 \end_layout
15514
15515 \end_inset
15516
15517  [
15518 \begin_inset Flex Code
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522 string
15523 \end_layout
15524
15525 \end_inset
15526
15527 ] A string that is put at the end of the layout content.
15528  A line break in the output can be indicated by 
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 <br/>
15534 \end_layout
15535
15536 \end_inset
15537
15538 .
15539 \end_layout
15540
15541 \begin_layout Description
15542 \begin_inset Flex Code
15543 status collapsed
15544
15545 \begin_layout Plain Layout
15546 RightMargin
15547 \end_layout
15548
15549 \end_inset
15550
15551  [
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 string=""
15557 \end_layout
15558
15559 \end_inset
15560
15561 ] Similar to 
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 LeftMargin
15567 \end_layout
15568
15569 \end_inset
15570
15571 .
15572 \end_layout
15573
15574 \begin_layout Description
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 Spacing
15580 \end_layout
15581
15582 \end_inset
15583
15584  [
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589
15590 \emph on
15591 single
15592 \end_layout
15593
15594 \end_inset
15595
15596
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 onehalf
15602 \end_layout
15603
15604 \end_inset
15605
15606
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611 double
15612 \end_layout
15613
15614 \end_inset
15615
15616
15617 \begin_inset Flex Code
15618 status collapsed
15619
15620 \begin_layout Plain Layout
15621 other
15622 \begin_inset space ~
15623 \end_inset
15624
15625 <value>
15626 \end_layout
15627
15628 \end_inset
15629
15630 ] This defines what the default spacing should be in the style.
15631  The arguments 
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 single
15637 \end_layout
15638
15639 \end_inset
15640
15641
15642 \begin_inset Flex Code
15643 status collapsed
15644
15645 \begin_layout Plain Layout
15646 onehalf
15647 \end_layout
15648
15649 \end_inset
15650
15651  and 
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 double
15657 \end_layout
15658
15659 \end_inset
15660
15661  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15662  If you specify the argument 
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 other
15668 \end_layout
15669
15670 \end_inset
15671
15672 , then you must also provide a value argument which will be the actual multiplie
15673 r value.
15674  Note that, contrary to other parameters, 
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 Spacing
15680 \end_layout
15681
15682 \end_inset
15683
15684  implies the generation of specific \SpecialChar LaTeX
15685  code, using the \SpecialChar LaTeX
15686  package 
15687 \family roman
15688
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 setspace
15694 \end_layout
15695
15696 \end_inset
15697
15698 .
15699 \end_layout
15700
15701 \begin_layout Description
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706 Spellcheck
15707 \end_layout
15708
15709 \end_inset
15710
15711  [
15712 \begin_inset Flex Code
15713 status collapsed
15714
15715 \begin_layout Plain Layout
15716 0
15717 \end_layout
15718
15719 \end_inset
15720
15721 ,
15722 \begin_inset space \thinspace{}
15723 \end_inset
15724
15725
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730
15731 \emph on
15732 1
15733 \end_layout
15734
15735 \end_inset
15736
15737 ] Allow spell-checking paragraphs of this style.
15738  Default is true.
15739 \end_layout
15740
15741 \begin_layout Description
15742 \begin_inset Flex Code
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746 StepMasterCounter
15747 \end_layout
15748
15749 \end_inset
15750
15751  [
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756
15757 \emph on
15758 0
15759 \end_layout
15760
15761 \end_inset
15762
15763 ,
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 1
15769 \end_layout
15770
15771 \end_inset
15772
15773 ] Steps the master counter of a given counter at the beginning of a new
15774  sequence of layouts.
15775  This is currently only useful when 
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 LabelType
15781 \end_layout
15782
15783 \end_inset
15784
15785  is 
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 Enumerate
15791 \end_layout
15792
15793 \end_inset
15794
15795 .
15796 \end_layout
15797
15798 \begin_layout Description
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 TextFont
15804 \end_layout
15805
15806 \end_inset
15807
15808  The font used for the text body .
15809  See 
15810 \begin_inset CommandInset ref
15811 LatexCommand ref
15812 reference "subsec:Font-description"
15813
15814 \end_inset
15815
15816 .
15817 \end_layout
15818
15819 \begin_layout Description
15820 \begin_inset Flex Code
15821 status collapsed
15822
15823 \begin_layout Plain Layout
15824 TocLevel
15825 \end_layout
15826
15827 \end_inset
15828
15829
15830 \series medium
15831  [
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836
15837 \series medium
15838 int=3
15839 \end_layout
15840
15841 \end_inset
15842
15843 ]
15844 \series default
15845  The level of the style in the table of contents.
15846  This is used for automatic numbering of section headings.
15847 \end_layout
15848
15849 \begin_layout Description
15850 \begin_inset Flex Code
15851 status collapsed
15852
15853 \begin_layout Plain Layout
15854 ToggleIndent
15855 \end_layout
15856
15857 \end_inset
15858
15859  [
15860 \emph on
15861
15862 \begin_inset Flex Code
15863 status collapsed
15864
15865 \begin_layout Plain Layout
15866
15867 \emph on
15868 default
15869 \end_layout
15870
15871 \end_inset
15872
15873
15874 \emph default
15875
15876 \begin_inset Flex Code
15877 status collapsed
15878
15879 \begin_layout Plain Layout
15880 always
15881 \end_layout
15882
15883 \end_inset
15884
15885
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 never
15891 \end_layout
15892
15893 \end_inset
15894
15895 ] This tag determines whether the first line indentation of this paragraph
15896  can be toggled via the Paragraph settings dialog.
15897  If 
15898 \emph on
15899
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904
15905 \emph off
15906 default
15907 \end_layout
15908
15909 \end_inset
15910
15911
15912 \emph default
15913  is set, indentation can be toggled if the document settings use 
15914 \begin_inset Quotes eld
15915 \end_inset
15916
15917 indent
15918 \begin_inset Quotes erd
15919 \end_inset
15920
15921  paragraph style, with 
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 always
15927 \end_layout
15928
15929 \end_inset
15930
15931 , indentation can always be toggled, notwithstanding the document settings,
15932  with 
15933 \begin_inset Flex Code
15934 status collapsed
15935
15936 \begin_layout Plain Layout
15937 never
15938 \end_layout
15939
15940 \end_inset
15941
15942 , indentation can never be toggled.
15943 \end_layout
15944
15945 \begin_layout Description
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 TopSep
15951 \end_layout
15952
15953 \end_inset
15954
15955  [
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 float=0
15961 \end_layout
15962
15963 \end_inset
15964
15965 ] The vertical space with which the very first of a chain of paragraphs
15966  with this style is separated from the previous paragraph.
15967  If the previous paragraph has another style, the separations are not simply
15968  added, but the maximum is taken.
15969 \end_layout
15970
15971 \begin_layout Subsection
15972 \begin_inset CommandInset label
15973 LatexCommand label
15974 name "subsec:I18n"
15975
15976 \end_inset
15977
15978 Internationalization of Paragraph Styles
15979 \end_layout
15980
15981 \begin_layout Standard
15982 \SpecialChar LyX
15983  has long supported internationalization of layout information, but, until
15984  version 2.0, this applied only to the user interface and not to, say, PDF
15985  output.
15986  Thus, French authors were forced to resort to ugly hacks if they wanted
15987  `
15988 \lang french
15989 Théorème
15990 \lang english
15991  1' instead of `Theorem 1'.
15992  Thanks to Georg Baum, that is no longer the case.
15993 \end_layout
15994
15995 \begin_layout Standard
15996 If a 
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 Style
16002 \end_layout
16003
16004 \end_inset
16005
16006  defines text that is to appear in the typeset document, it may use 
16007 \begin_inset Flex Code
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011 LangPreamble
16012 \end_layout
16013
16014 \end_inset
16015
16016  and 
16017 \begin_inset Flex Code
16018 status collapsed
16019
16020 \begin_layout Plain Layout
16021 BabelPreamble
16022 \end_layout
16023
16024 \end_inset
16025
16026  to support non-English and even multi-language documents correctly.
16027  The following excerpt (from the 
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 theorems-ams.inc
16033 \end_layout
16034
16035 \end_inset
16036
16037  file) shows how this works:
16038 \end_layout
16039
16040 \begin_layout LyX-Code
16041 Preamble
16042 \end_layout
16043
16044 \begin_deeper
16045 \begin_layout LyX-Code
16046   
16047 \backslash
16048 theoremstyle{remark}
16049 \end_layout
16050
16051 \begin_layout LyX-Code
16052   
16053 \backslash
16054 newtheorem{claim}[thm]{
16055 \backslash
16056 protect
16057 \backslash
16058 claimname}
16059 \end_layout
16060
16061 \begin_layout LyX-Code
16062 EndPreamble
16063 \end_layout
16064
16065 \begin_layout LyX-Code
16066 LangPreamble
16067 \end_layout
16068
16069 \begin_layout LyX-Code
16070   
16071 \backslash
16072 providecommand{
16073 \backslash
16074 claimname}{_(Claim)}
16075 \end_layout
16076
16077 \begin_layout LyX-Code
16078 EndLangPreamble
16079 \end_layout
16080
16081 \begin_layout LyX-Code
16082 BabelPreamble
16083 \end_layout
16084
16085 \begin_layout LyX-Code
16086     
16087 \backslash
16088 addto
16089 \backslash
16090 captions$$lang{
16091 \backslash
16092 renewcommand{
16093 \backslash
16094 claimname}{_(Claim)}}
16095 \end_layout
16096
16097 \begin_layout LyX-Code
16098 EndBabelPreamble
16099 \end_layout
16100
16101 \end_deeper
16102 \begin_layout Standard
16103 In principle, any legal \SpecialChar LaTeX
16104  may appear in the 
16105 \begin_inset Flex Code
16106 status collapsed
16107
16108 \begin_layout Plain Layout
16109 LangPreamble
16110 \end_layout
16111
16112 \end_inset
16113
16114  and 
16115 \begin_inset Flex Code
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119 BabelPreamble
16120 \end_layout
16121
16122 \end_inset
16123
16124  tags, but in practice they will typically look as they do here.
16125  The key to correct translation of the typeset text is the definition of
16126  the \SpecialChar LaTeX
16127  command 
16128 \begin_inset Flex Code
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132
16133 \backslash
16134 claimname
16135 \end_layout
16136
16137 \end_inset
16138
16139  and its use in 
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144
16145 \backslash
16146 newtheorem
16147 \end_layout
16148
16149 \end_inset
16150
16151 .
16152  
16153 \end_layout
16154
16155 \begin_layout Standard
16156 The 
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 LangPreamble
16162 \end_layout
16163
16164 \end_inset
16165
16166  tag provides for internationalization based upon the overall language of
16167  the document.
16168  The contents of the tag will be included in the preamble, just as with
16169  the 
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 Preamble
16175 \end_layout
16176
16177 \end_inset
16178
16179  tag.
16180  What makes it special is the use of the 
16181 \begin_inset Quotes eld
16182 \end_inset
16183
16184 function
16185 \begin_inset Quotes erd
16186 \end_inset
16187
16188  
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193 _()
16194 \end_layout
16195
16196 \end_inset
16197
16198 , which will be replaced, when \SpecialChar LyX
16199  produces \SpecialChar LaTeX
16200  output, with the translation of
16201  its argument into the document language.
16202 \end_layout
16203
16204 \begin_layout Standard
16205 The 
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210 BabelPreamble
16211 \end_layout
16212
16213 \end_inset
16214
16215  tag is more complex, since it is meant to provide support for multi-language
16216  documents and so offers an interface to the 
16217 \begin_inset Flex Code
16218 status collapsed
16219
16220 \begin_layout Plain Layout
16221 babel
16222 \end_layout
16223
16224 \end_inset
16225
16226  package.
16227  Its contents will be added to the preamble once for each language that
16228  appears in the document.
16229  In this case, the argument to 
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 _()
16235 \end_layout
16236
16237 \end_inset
16238
16239  will be replaced with its translation into the language in question; the
16240  expression 
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 $$lang
16246 \end_layout
16247
16248 \end_inset
16249
16250  is replaced by the language name (as used by the babel package).
16251 \end_layout
16252
16253 \begin_layout Standard
16254 A German document that also included a French section would thus have the
16255  following in the preamble:
16256 \end_layout
16257
16258 \begin_layout LyX-Code
16259
16260 \backslash
16261 addto
16262 \backslash
16263 captionsfrench{
16264 \backslash
16265 renewcommand{
16266 \backslash
16267 claimname}{Affirmation}}
16268 \begin_inset Newline newline
16269 \end_inset
16270
16271
16272 \backslash
16273 addto
16274 \backslash
16275 captionsngerman{
16276 \backslash
16277 renewcommand{
16278 \backslash
16279 claimname}{Behauptung}}
16280 \begin_inset Newline newline
16281 \end_inset
16282
16283
16284 \backslash
16285 providecommand{
16286 \backslash
16287 claimname}{Behauptung}
16288 \end_layout
16289
16290 \begin_layout Standard
16291 \SpecialChar LaTeX
16292  and 
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 babel
16298 \end_layout
16299
16300 \end_inset
16301
16302  will then conspire to produce the correct text in the output.
16303 \end_layout
16304
16305 \begin_layout Standard
16306 One important point to note here is that the translations are provided by
16307  \SpecialChar LyX
16308  itself, through the file 
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313 layouttranslations
16314 \end_layout
16315
16316 \end_inset
16317
16318 .
16319  This means, in effect, that 
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 LangPreamble
16325 \end_layout
16326
16327 \end_inset
16328
16329  and 
16330 \begin_inset Flex Code
16331 status collapsed
16332
16333 \begin_layout Plain Layout
16334 BabelPreamble
16335 \end_layout
16336
16337 \end_inset
16338
16339  are really only of use in layout files that are provided with \SpecialChar LyX
16340 , since text
16341  entered in user-created layout files will not be seen by \SpecialChar LyX
16342 's internationalizatio
16343 n routines unless the 
16344 \begin_inset Flex Code
16345 status collapsed
16346
16347 \begin_layout Plain Layout
16348 layouttranslations
16349 \end_layout
16350
16351 \end_inset
16352
16353  file is modified accordingly.
16354  That said, however, any layout created with the intention that it will
16355  be included with \SpecialChar LyX
16356  should use these tags where appropriate.
16357  Please note that the paragraph style translations provided by \SpecialChar LyX
16358  will never
16359  change with a minor update (e.
16360 \begin_inset space \thinspace{}
16361 \end_inset
16362
16363 g.
16364 \begin_inset space \space{}
16365 \end_inset
16366
16367 from version 2.1.x to 2.1.y).
16368  It is however quite likely that a major update (e.
16369 \begin_inset space \thinspace{}
16370 \end_inset
16371
16372 g.
16373 \begin_inset space \space{}
16374 \end_inset
16375
16376 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16377 \end_layout
16378
16379 \begin_layout Subsection
16380 Floats
16381 \begin_inset CommandInset label
16382 LatexCommand label
16383 name "subsec:Floats"
16384
16385 \end_inset
16386
16387
16388 \end_layout
16389
16390 \begin_layout Standard
16391 It is necessary to define the floats (
16392 \begin_inset Flex Noun
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 figure
16397 \end_layout
16398
16399 \end_inset
16400
16401
16402 \begin_inset Flex Noun
16403 status collapsed
16404
16405 \begin_layout Plain Layout
16406 table
16407 \end_layout
16408
16409 \end_inset
16410
16411 , \SpecialChar ldots
16412 ) in the text class itself.
16413  Standard floats are included in the file 
16414 \begin_inset Flex Code
16415 status collapsed
16416
16417 \begin_layout Plain Layout
16418 stdfloats.inc
16419 \end_layout
16420
16421 \end_inset
16422
16423 , so you may have to do no more than add
16424 \end_layout
16425
16426 \begin_layout LyX-Code
16427 Input stdfloats.inc
16428 \end_layout
16429
16430 \begin_layout Standard
16431 to your layout file.
16432  If you want to implement a text class that proposes some other float types
16433  (like the AGU class bundled with \SpecialChar LyX
16434 ), the information below will hopefully
16435  help you:
16436 \end_layout
16437
16438 \begin_layout Description
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443 AllowedPlacement
16444 \end_layout
16445
16446 \end_inset
16447
16448  [
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 string
16454 \end_layout
16455
16456 \end_inset
16457
16458 =!htbpH] Allowed placement options for this float type.
16459  The value is a string of placement characters.
16460  Possible characters include: 
16461 \emph on
16462 h
16463 \emph default
16464  (
16465 \begin_inset Quotes eld
16466 \end_inset
16467
16468 here if possible
16469 \begin_inset Quotes erd
16470 \end_inset
16471
16472 ), 
16473 \emph on
16474 t
16475 \emph default
16476  (
16477 \begin_inset Quotes eld
16478 \end_inset
16479
16480 top of page
16481 \begin_inset Quotes erd
16482 \end_inset
16483
16484 ), 
16485 \emph on
16486 b
16487 \emph default
16488  (
16489 \begin_inset Quotes eld
16490 \end_inset
16491
16492 bottom of page
16493 \begin_inset Quotes erd
16494 \end_inset
16495
16496 ), 
16497 \emph on
16498 p
16499 \emph default
16500  (
16501 \begin_inset Quotes eld
16502 \end_inset
16503
16504 page of floats
16505 \begin_inset Quotes erd
16506 \end_inset
16507
16508 ), 
16509 \emph on
16510 H
16511 \emph default
16512  (
16513 \begin_inset Quotes eld
16514 \end_inset
16515
16516 here definitely
16517 \begin_inset Quotes erd
16518 \end_inset
16519
16520 ) and 
16521 \emph on
16522 !
16523 \emph default
16524  (
16525 \begin_inset Quotes eld
16526 \end_inset
16527
16528 ignore LaTeX rules
16529 \begin_inset Quotes erd
16530 \end_inset
16531
16532 ).
16533  The order of the characters in the string does not matter.
16534  If no placement options are allowed, use the string 
16535 \emph on
16536 none
16537 \emph default
16538 .
16539 \end_layout
16540
16541 \begin_layout Description
16542 \begin_inset Flex Code
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546 AllowsSideways
16547 \end_layout
16548
16549 \end_inset
16550
16551  [
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556
16557 \emph off
16558 0
16559 \end_layout
16560
16561 \end_inset
16562
16563 ,
16564 \begin_inset space \thinspace{}
16565 \end_inset
16566
16567
16568 \emph on
16569
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574
16575 \emph on
16576 1
16577 \end_layout
16578
16579 \end_inset
16580
16581
16582 \emph default
16583 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16584 -package 
16585 \family typewriter
16586 rotfloat
16587 \family default
16588  (sidewaysfloat).
16589  Set to 
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 0
16595 \end_layout
16596
16597 \end_inset
16598
16599  if the float does not support this feature.
16600 \end_layout
16601
16602 \begin_layout Description
16603 \begin_inset Flex Code
16604 status collapsed
16605
16606 \begin_layout Plain Layout
16607 AllowsWide
16608 \end_layout
16609
16610 \end_inset
16611
16612  [
16613 \begin_inset Flex Code
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617
16618 \emph off
16619 0
16620 \end_layout
16621
16622 \end_inset
16623
16624 ,
16625 \begin_inset space \thinspace{}
16626 \end_inset
16627
16628
16629 \emph on
16630
16631 \begin_inset Flex Code
16632 status collapsed
16633
16634 \begin_layout Plain Layout
16635
16636 \emph on
16637 1
16638 \end_layout
16639
16640 \end_inset
16641
16642
16643 \emph default
16644 ] Defines whether the float has a starred variant that spans columns in
16645  a two column paragraph.
16646  Set to 
16647 \begin_inset Flex Code
16648 status collapsed
16649
16650 \begin_layout Plain Layout
16651 0
16652 \end_layout
16653
16654 \end_inset
16655
16656  if the float does not support this feature.
16657 \end_layout
16658
16659 \begin_layout Description
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 Extension
16665 \end_layout
16666
16667 \end_inset
16668
16669  [
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674 string
16675 \end_layout
16676
16677 \end_inset
16678
16679 =
16680 \begin_inset Quotes erd
16681 \end_inset
16682
16683
16684 \begin_inset Quotes erd
16685 \end_inset
16686
16687 ] The file name extension of an auxiliary file for the list of figures (or
16688  whatever).
16689  \SpecialChar LaTeX
16690  writes the captions to this file.
16691 \end_layout
16692
16693 \begin_layout Description
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 GuiName
16699 \end_layout
16700
16701 \end_inset
16702
16703  [
16704 \begin_inset Flex Code
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708 string
16709 \end_layout
16710
16711 \end_inset
16712
16713 =
16714 \begin_inset Quotes erd
16715 \end_inset
16716
16717
16718 \begin_inset Quotes erd
16719 \end_inset
16720
16721 ] The string that will be used in the menus and also for the caption.
16722  This is translated to the current language if babel is used.
16723 \end_layout
16724
16725 \begin_layout Description
16726 \begin_inset Flex Code
16727 status collapsed
16728
16729 \begin_layout Plain Layout
16730 HTML*
16731 \end_layout
16732
16733 \end_inset
16734
16735  These tags control the XHTML output.
16736  See 
16737 \begin_inset CommandInset ref
16738 LatexCommand ref
16739 reference "sec:Tags-for-XHTML"
16740
16741 \end_inset
16742
16743 .
16744 \end_layout
16745
16746 \begin_layout Description
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751 IsPredefined
16752 \end_layout
16753
16754 \end_inset
16755
16756  [
16757 \emph on
16758
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 0
16764 \end_layout
16765
16766 \end_inset
16767
16768
16769 \emph default
16770 ,
16771 \begin_inset space \thinspace{}
16772 \end_inset
16773
16774
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779 1
16780 \end_layout
16781
16782 \end_inset
16783
16784 ] Indicates whether the float is already defined in the document class or
16785  if instead the \SpecialChar LaTeX
16786  package 
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 float
16792 \end_layout
16793
16794 \end_inset
16795
16796  needs to be loaded to define it on-the-fly.
16797  The default is 
16798 \begin_inset Flex Code
16799 status collapsed
16800
16801 \begin_layout Plain Layout
16802 0
16803 \end_layout
16804
16805 \end_inset
16806
16807 , which means: 
16808 \begin_inset Flex Code
16809 status collapsed
16810
16811 \begin_layout Plain Layout
16812 float
16813 \end_layout
16814
16815 \end_inset
16816
16817  is used.
16818  It should be set to 
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823 1
16824 \end_layout
16825
16826 \end_inset
16827
16828  if the float is already defined by the \SpecialChar LaTeX
16829  document class.
16830 \end_layout
16831
16832 \begin_layout Description
16833 \begin_inset Flex Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 ListCommand
16838 \end_layout
16839
16840 \end_inset
16841
16842  [
16843 \begin_inset Flex Code
16844 status collapsed
16845
16846 \begin_layout Plain Layout
16847 string
16848 \end_layout
16849
16850 \end_inset
16851
16852 =
16853 \begin_inset Quotes erd
16854 \end_inset
16855
16856
16857 \begin_inset Quotes erd
16858 \end_inset
16859
16860 ] The command used to generate a list of floats of this type; the leading
16861  `
16862 \backslash
16863 ' must be omitted.
16864  This 
16865 \emph on
16866 must
16867 \emph default
16868  be given if 
16869 \begin_inset Flex Code
16870 status collapsed
16871
16872 \begin_layout Plain Layout
16873 UsesFloatPkg
16874 \end_layout
16875
16876 \end_inset
16877
16878  is false, since there is no standard way to generate this command.
16879  It is ignored if 
16880 \begin_inset Flex Code
16881 status collapsed
16882
16883 \begin_layout Plain Layout
16884 UsesFloatPkg
16885 \end_layout
16886
16887 \end_inset
16888
16889  is true, since in that case there is a standard way to define the command.
16890 \end_layout
16891
16892 \begin_layout Description
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 ListName
16898 \end_layout
16899
16900 \end_inset
16901
16902  [
16903 \begin_inset Flex Code
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 string
16908 \end_layout
16909
16910 \end_inset
16911
16912 =
16913 \begin_inset Quotes erd
16914 \end_inset
16915
16916
16917 \begin_inset Quotes erd
16918 \end_inset
16919
16920 ] A title for a list of floats of this kind (list of figures, tables, or
16921  whatever).
16922  It is used for the screen label within \SpecialChar LyX
16923 , it is used by \SpecialChar LaTeX
16924  for the title and
16925  it is used as the title in the XHTML output.
16926  It will be translated to the document language.
16927 \end_layout
16928
16929 \begin_layout Description
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934 NumberWithin
16935 \end_layout
16936
16937 \end_inset
16938
16939  [
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 string
16945 \end_layout
16946
16947 \end_inset
16948
16949 =
16950 \begin_inset Quotes erd
16951 \end_inset
16952
16953
16954 \begin_inset Quotes erd
16955 \end_inset
16956
16957 ] This (optional) argument determines whether floats of this class will
16958  be numbered within some sectional unit of the document.
16959  For example, if 
16960 \begin_inset Flex Code
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964 NumberWithin
16965 \end_layout
16966
16967 \end_inset
16968
16969  is set to 
16970 \begin_inset Quotes eld
16971 \end_inset
16972
16973
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978 chapter
16979 \end_layout
16980
16981 \end_inset
16982
16983
16984 \begin_inset Quotes erd
16985 \end_inset
16986
16987 , the floats will be numbered within chapters.
16988  
16989 \end_layout
16990
16991 \begin_layout Description
16992 \begin_inset Flex Code
16993 status collapsed
16994
16995 \begin_layout Plain Layout
16996 Placement
16997 \end_layout
16998
16999 \end_inset
17000
17001  [
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 string
17007 \end_layout
17008
17009 \end_inset
17010
17011 =
17012 \begin_inset Quotes erd
17013 \end_inset
17014
17015
17016 \begin_inset Quotes erd
17017 \end_inset
17018
17019 ] The default placement for the given class of floats.
17020  The string should be as in standard \SpecialChar LaTeX
17021
17022 \begin_inset Flex Code
17023 status collapsed
17024
17025 \begin_layout Plain Layout
17026 t
17027 \end_layout
17028
17029 \end_inset
17030
17031
17032 \begin_inset Flex Code
17033 status collapsed
17034
17035 \begin_layout Plain Layout
17036 b
17037 \end_layout
17038
17039 \end_inset
17040
17041
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 p
17047 \end_layout
17048
17049 \end_inset
17050
17051  and 
17052 \begin_inset Flex Code
17053 status collapsed
17054
17055 \begin_layout Plain Layout
17056 h
17057 \end_layout
17058
17059 \end_inset
17060
17061  for top, bottom, page, and here, respectively.
17062 \begin_inset Foot
17063 status collapsed
17064
17065 \begin_layout Plain Layout
17066 Note that the order of these letters in the string is irrelevant, like in
17067  \SpecialChar LaTeX
17068 .
17069 \end_layout
17070
17071 \end_inset
17072
17073  On top of that there is a new type, 
17074 \begin_inset Flex Code
17075 status collapsed
17076
17077 \begin_layout Plain Layout
17078 H
17079 \end_layout
17080
17081 \end_inset
17082
17083 , which does not really correspond to a float, since it means: put it 
17084 \begin_inset Quotes eld
17085 \end_inset
17086
17087 here
17088 \begin_inset Quotes erd
17089 \end_inset
17090
17091  and nowhere else.
17092  Note however that the 
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 H
17098 \end_layout
17099
17100 \end_inset
17101
17102  specifier is special and, because of implementation details, cannot be
17103  used in non-built in float types.
17104  If you do not understand what this means, just use 
17105 \begin_inset Quotes eld
17106 \end_inset
17107
17108
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 tbp
17114 \end_layout
17115
17116 \end_inset
17117
17118
17119 \begin_inset Quotes erd
17120 \end_inset
17121
17122 .
17123 \end_layout
17124
17125 \begin_layout Description
17126 \begin_inset Flex Code
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130 RefPrefix
17131 \end_layout
17132
17133 \end_inset
17134
17135  [
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 string
17141 \end_layout
17142
17143 \end_inset
17144
17145 ] The prefix to use when creating labels referring to floats of this type.
17146  This allows the use of formatted references.
17147  Note that you can remove any 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 RefPrefix
17153 \end_layout
17154
17155 \end_inset
17156
17157  set by a copied style by using the special value 
17158 \begin_inset Quotes eld
17159 \end_inset
17160
17161 OFF
17162 \begin_inset Quotes erd
17163 \end_inset
17164
17165 , which must be all caps.
17166 \end_layout
17167
17168 \begin_layout Description
17169 \begin_inset Flex Code
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173 Style
17174 \end_layout
17175
17176 \end_inset
17177
17178  [
17179 \begin_inset Flex Code
17180 status collapsed
17181
17182 \begin_layout Plain Layout
17183 string
17184 \end_layout
17185
17186 \end_inset
17187
17188 =
17189 \begin_inset Quotes erd
17190 \end_inset
17191
17192
17193 \begin_inset Quotes erd
17194 \end_inset
17195
17196 ] The style used when defining the float using 
17197 \begin_inset Flex Code
17198 status collapsed
17199
17200 \begin_layout Plain Layout
17201
17202 \backslash
17203 newfloat
17204 \end_layout
17205
17206 \end_inset
17207
17208 .
17209 \end_layout
17210
17211 \begin_layout Description
17212 \begin_inset Flex Code
17213 status collapsed
17214
17215 \begin_layout Plain Layout
17216 Type
17217 \end_layout
17218
17219 \end_inset
17220
17221  [
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226 string
17227 \end_layout
17228
17229 \end_inset
17230
17231 =
17232 \begin_inset Quotes erd
17233 \end_inset
17234
17235
17236 \begin_inset Quotes erd
17237 \end_inset
17238
17239 ] The 
17240 \begin_inset Quotes eld
17241 \end_inset
17242
17243 type
17244 \begin_inset Quotes erd
17245 \end_inset
17246
17247  of the new class of floats, like program or algorithm.
17248  After the appropriate 
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253
17254 \backslash
17255 newfloat
17256 \end_layout
17257
17258 \end_inset
17259
17260 , commands such as 
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265
17266 \backslash
17267 begin{program}
17268 \end_layout
17269
17270 \end_inset
17271
17272  or 
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277
17278 \backslash
17279 end{algorithm*}
17280 \end_layout
17281
17282 \end_inset
17283
17284  will be available.
17285 \end_layout
17286
17287 \begin_layout Description
17288 \begin_inset Flex Code
17289 status collapsed
17290
17291 \begin_layout Plain Layout
17292 UsesFloatPkg
17293 \end_layout
17294
17295 \end_inset
17296
17297  [
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302 0
17303 \end_layout
17304
17305 \end_inset
17306
17307 ,
17308 \begin_inset space \thinspace{}
17309 \end_inset
17310
17311
17312 \begin_inset Flex Code
17313 status collapsed
17314
17315 \begin_layout Plain Layout
17316
17317 \emph on
17318 1
17319 \end_layout
17320
17321 \end_inset
17322
17323 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17324  package 
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 float
17330 \end_layout
17331
17332 \end_inset
17333
17334 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17335  itself.
17336 \end_layout
17337
17338 \begin_layout Standard
17339 Note that defining a float with type 
17340 \begin_inset Flex Code
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344
17345 \emph on
17346 type
17347 \end_layout
17348
17349 \end_inset
17350
17351  automatically defines the corresponding counter with name 
17352 \begin_inset Flex Code
17353 status collapsed
17354
17355 \begin_layout Plain Layout
17356
17357 \emph on
17358 type
17359 \end_layout
17360
17361 \end_inset
17362
17363 .
17364 \end_layout
17365
17366 \begin_layout Subsection
17367 Flex insets and InsetLayout
17368 \begin_inset CommandInset label
17369 LatexCommand label
17370 name "subsec:Flex-insets-and"
17371
17372 \end_inset
17373
17374
17375 \end_layout
17376
17377 \begin_layout Standard
17378 Flex insets come in three different kinds: 
17379 \end_layout
17380
17381 \begin_layout Itemize
17382 character style (
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387 CharStyle
17388 \end_layout
17389
17390 \end_inset
17391
17392 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17393  commands as 
17394 \begin_inset Flex Code
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398
17399 \backslash
17400 noun
17401 \end_layout
17402
17403 \end_inset
17404
17405  and 
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410
17411 \backslash
17412 code
17413 \end_layout
17414
17415 \end_inset
17416
17417 .
17418 \end_layout
17419
17420 \begin_layout Itemize
17421 user custom (
17422 \begin_inset Flex Code
17423 status collapsed
17424
17425 \begin_layout Plain Layout
17426 Custom
17427 \end_layout
17428
17429 \end_inset
17430
17431 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17432  code,
17433  footnote, and the like.
17434  An obvious example is an endnote inset, which is defined in the 
17435 \begin_inset Flex Code
17436 status collapsed
17437
17438 \begin_layout Plain Layout
17439 endnote
17440 \end_layout
17441
17442 \end_inset
17443
17444  module.
17445 \end_layout
17446
17447 \begin_layout Itemize
17448 XML elements (
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 Element
17454 \end_layout
17455
17456 \end_inset
17457
17458 ): For use with DocBook classes.
17459 \end_layout
17460
17461 \begin_layout Standard
17462 Flex insets are defined using the 
17463 \begin_inset Flex Code
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467 InsetLayout
17468 \end_layout
17469
17470 \end_inset
17471
17472  tag, which shall be explained in a moment.
17473 \end_layout
17474
17475 \begin_layout Standard
17476 The 
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 InsetLayout
17482 \end_layout
17483
17484 \end_inset
17485
17486  tag also serves another function: It can be used to customize the general
17487  layout of many different types of insets.
17488  Currently, 
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493 InsetLayout
17494 \end_layout
17495
17496 \end_inset
17497
17498  can be used to customize the layout parameters for footnotes, marginal
17499  notes, note insets, \SpecialChar TeX
17500  code (ERT) insets, branches, listings, indexes, boxes,
17501  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17502 \end_layout
17503
17504 \begin_layout Standard
17505 The 
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 InsetLayout
17511 \end_layout
17512
17513 \end_inset
17514
17515  definition must begin with a line of the form:
17516 \end_layout
17517
17518 \begin_layout LyX-Code
17519 InsetLayout <type>
17520 \end_layout
17521
17522 \begin_layout Standard
17523 Here 
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 <Type>
17529 \end_layout
17530
17531 \end_inset
17532
17533  indicates the inset whose layout is being defined, and here there are four
17534  cases.
17535 \end_layout
17536
17537 \begin_layout Enumerate
17538 The layout for a pre-existing inset is being modified.
17539  In this case, can be 
17540 \begin_inset Flex Code
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 <Type>
17545 \end_layout
17546
17547 \end_inset
17548
17549  any one of the following: 
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 Algorithm
17555 \end_layout
17556
17557 \end_inset
17558
17559
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 Branch
17565 \end_layout
17566
17567 \end_inset
17568
17569
17570 \begin_inset Flex Code
17571 status collapsed
17572
17573 \begin_layout Plain Layout
17574 Box
17575 \end_layout
17576
17577 \end_inset
17578
17579
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 Box:shaded
17585 \end_layout
17586
17587 \end_inset
17588
17589
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 Caption:Standard
17595 \end_layout
17596
17597 \end_inset
17598
17599
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 ERT
17605 \end_layout
17606
17607 \end_inset
17608
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 Figure
17615 \end_layout
17616
17617 \end_inset
17618
17619
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 Foot
17625 \end_layout
17626
17627 \end_inset
17628
17629
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 Index
17635 \end_layout
17636
17637 \end_inset
17638
17639
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 Info
17645 \end_layout
17646
17647 \end_inset
17648
17649
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 Info:menu
17655 \end_layout
17656
17657 \end_inset
17658
17659
17660 \begin_inset Flex Code
17661 status collapsed
17662
17663 \begin_layout Plain Layout
17664 Info:shortcut
17665 \end_layout
17666
17667 \end_inset
17668
17669
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 Info:shortcuts
17675 \end_layout
17676
17677 \end_inset
17678
17679
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 Listings
17685 \end_layout
17686
17687 \end_inset
17688
17689
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694 Marginal
17695 \end_layout
17696
17697 \end_inset
17698
17699
17700 \begin_inset Flex Code
17701 status collapsed
17702
17703 \begin_layout Plain Layout
17704 Note:Comment
17705 \end_layout
17706
17707 \end_inset
17708
17709
17710 \begin_inset Flex Code
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 Note:Note
17715 \end_layout
17716
17717 \end_inset
17718
17719
17720 \begin_inset Flex Code
17721 status collapsed
17722
17723 \begin_layout Plain Layout
17724 Note:Greyedout
17725 \end_layout
17726
17727 \end_inset
17728
17729
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734 Table
17735 \end_layout
17736
17737 \end_inset
17738
17739 , or 
17740 \begin_inset Flex Code
17741 status collapsed
17742
17743 \begin_layout Plain Layout
17744 URL
17745 \end_layout
17746
17747 \end_inset
17748
17749 .
17750 \end_layout
17751
17752 \begin_layout Enumerate
17753 The layout for a Flex inset is being defined.
17754  In this case, 
17755 \begin_inset Flex Code
17756 status collapsed
17757
17758 \begin_layout Plain Layout
17759 <Type>
17760 \end_layout
17761
17762 \end_inset
17763
17764  must be of the form 
17765 \begin_inset Quotes eld
17766 \end_inset
17767
17768
17769 \begin_inset Flex Code
17770 status collapsed
17771
17772 \begin_layout Plain Layout
17773 Flex:<name>
17774 \end_layout
17775
17776 \end_inset
17777
17778
17779 \begin_inset Quotes erd
17780 \end_inset
17781
17782 , where 
17783 \begin_inset Flex Code
17784 status collapsed
17785
17786 \begin_layout Plain Layout
17787 name
17788 \end_layout
17789
17790 \end_inset
17791
17792  may be be any valid identifier not used by a pre-existing Flex inset.
17793  The identifier may include spaces, but in that case the whole thing must
17794  be wrapped in quotes.
17795  Note that the definition of a flex inset 
17796 \emph on
17797 must 
17798 \emph default
17799 also include a 
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 LyXType
17805 \end_layout
17806
17807 \end_inset
17808
17809  entry, declaring which type of inset it defines.
17810 \end_layout
17811
17812 \begin_layout Enumerate
17813 The layout for user specific branch is being defined.
17814  In this case, 
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 <Type>
17820 \end_layout
17821
17822 \end_inset
17823
17824  must be of the form 
17825 \begin_inset Quotes eld
17826 \end_inset
17827
17828
17829 \begin_inset Flex Code
17830 status collapsed
17831
17832 \begin_layout Plain Layout
17833 Branch:<name>
17834 \end_layout
17835
17836 \end_inset
17837
17838
17839 \begin_inset Quotes erd
17840 \end_inset
17841
17842 , where 
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 name
17848 \end_layout
17849
17850 \end_inset
17851
17852  may be be any valid identifier of branch defined in user's document.
17853  The identifier may include spaces, but in that case the whole thing must
17854  be wrapped in quotes.
17855  The main purpose of this feature is to allow \SpecialChar LaTeX
17856  wrapping around specific
17857  branches as user needs.
17858 \end_layout
17859
17860 \begin_layout Enumerate
17861 The layout of a user (or class) specific caption is being defined.
17862  In this case, 
17863 \begin_inset Flex Code
17864 status collapsed
17865
17866 \begin_layout Plain Layout
17867 <Type>
17868 \end_layout
17869
17870 \end_inset
17871
17872  must be of the form 
17873 \begin_inset Quotes eld
17874 \end_inset
17875
17876
17877 \begin_inset Flex Code
17878 status collapsed
17879
17880 \begin_layout Plain Layout
17881 Caption:<name>
17882 \end_layout
17883
17884 \end_inset
17885
17886
17887 \begin_inset Quotes erd
17888 \end_inset
17889
17890 , where 
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 name
17896 \end_layout
17897
17898 \end_inset
17899
17900  specifies the name of the caption as it appears in the menu.
17901  Have a look at the standard caption (
17902 \begin_inset Flex Code
17903 status collapsed
17904
17905 \begin_layout Plain Layout
17906 Caption:Standard
17907 \end_layout
17908
17909 \end_inset
17910
17911 ), the specific captions of the KOMA-Script classes (
17912 \begin_inset Flex Code
17913 status collapsed
17914
17915 \begin_layout Plain Layout
17916 Caption:Above
17917 \end_layout
17918
17919 \end_inset
17920
17921
17922 \begin_inset Flex Code
17923 status collapsed
17924
17925 \begin_layout Plain Layout
17926 Caption:Below
17927 \end_layout
17928
17929 \end_inset
17930
17931 ) or the module 
17932 \family sans
17933 Multilingual
17934 \begin_inset space ~
17935 \end_inset
17936
17937 Captions
17938 \begin_inset Newline linebreak
17939 \end_inset
17940
17941
17942 \family default
17943 (
17944 \begin_inset Flex Code
17945 status collapsed
17946
17947 \begin_layout Plain Layout
17948 Caption:Bicaption
17949 \end_layout
17950
17951 \end_inset
17952
17953 ) for applications.
17954 \end_layout
17955
17956 \begin_layout Standard
17957 The 
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962 InsetLayout
17963 \end_layout
17964
17965 \end_inset
17966
17967  definition can contain the following entries:
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 AddToToc
17976 \end_layout
17977
17978 \end_inset
17979
17980  [
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 string
17986 \end_layout
17987
17988 \end_inset
17989
17990 =""] This inset will appear in the table of contents of the given type.
17991  An empty string disables.
17992  See also the OutlinerName and the IsTocCaption commands.
17993  This is only implemented for Flex insets.
17994  Default: disabled.
17995 \end_layout
17996
17997 \begin_layout Description
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 Argument
18003 \end_layout
18004
18005 \end_inset
18006
18007  [
18008 \begin_inset Flex Code
18009 status collapsed
18010
18011 \begin_layout Plain Layout
18012 int
18013 \end_layout
18014
18015 \end_inset
18016
18017 ] Defines argument number of a command\SpecialChar breakableslash
18018 environment associated with the current
18019  layout.
18020  The definition must end with 
18021 \begin_inset Flex Code
18022 status collapsed
18023
18024 \begin_layout Plain Layout
18025 EndArgument
18026 \end_layout
18027
18028 \end_inset
18029
18030 .
18031  See 
18032 \begin_inset CommandInset ref
18033 LatexCommand ref
18034 reference "subsec:Paragraph-Styles"
18035
18036 \end_inset
18037
18038  for details.
18039 \end_layout
18040
18041 \begin_layout Description
18042 \begin_inset Flex Code
18043 status collapsed
18044
18045 \begin_layout Plain Layout
18046 BabelPreamble
18047 \end_layout
18048
18049 \end_inset
18050
18051  Preamble for changing language commands; see 
18052 \begin_inset CommandInset ref
18053 LatexCommand ref
18054 reference "subsec:I18n"
18055
18056 \end_inset
18057
18058 .
18059 \end_layout
18060
18061 \begin_layout Description
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 BgColor
18067 \end_layout
18068
18069 \end_inset
18070
18071  [
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 <name>
18077 \end_layout
18078
18079 \end_inset
18080
18081 ] The color for the inset's background.
18082  See 
18083 \begin_inset CommandInset ref
18084 LatexCommand ref
18085 reference "chap:Names-of-colors"
18086
18087 \end_inset
18088
18089  for a list of the available color names.
18090 \end_layout
18091
18092 \begin_layout Description
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 ContentAsLabel
18098 \end_layout
18099
18100 \end_inset
18101
18102  [
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107
18108 \emph on
18109 0
18110 \end_layout
18111
18112 \end_inset
18113
18114 ,
18115 \begin_inset space \thinspace{}
18116 \end_inset
18117
18118
18119 \begin_inset Flex Code
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 1
18124 \end_layout
18125
18126 \end_inset
18127
18128 ] Whether to use the content of the inset as the label, when the inset is
18129  closed.
18130  Default is false.
18131 \end_layout
18132
18133 \begin_layout Description
18134 \begin_inset Flex Code
18135 status collapsed
18136
18137 \begin_layout Plain Layout
18138 CopyStyle
18139 \end_layout
18140
18141 \end_inset
18142
18143  [
18144 \begin_inset Flex Code
18145 status collapsed
18146
18147 \begin_layout Plain Layout
18148 <type>
18149 \end_layout
18150
18151 \end_inset
18152
18153 ] As with paragraph styles, see 
18154 \begin_inset CommandInset ref
18155 LatexCommand ref
18156 reference "subsec:Paragraph-Styles"
18157
18158 \end_inset
18159
18160 .
18161  Note that you need to specify the complete type, e.
18162 \begin_inset space \thinspace{}
18163 \end_inset
18164
18165 g.
18166 \begin_inset space ~
18167 \end_inset
18168
18169
18170 \begin_inset Flex Code
18171 status collapsed
18172
18173 \begin_layout Plain Layout
18174 CopyStyle Flex:<name>
18175 \end_layout
18176
18177 \end_inset
18178
18179 .
18180 \end_layout
18181
18182 \begin_layout Description
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 CustomPars
18188 \end_layout
18189
18190 \end_inset
18191
18192  [
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197
18198 \emph on
18199 0
18200 \end_layout
18201
18202 \end_inset
18203
18204 ,
18205 \begin_inset space \thinspace{}
18206 \end_inset
18207
18208
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 1
18214 \end_layout
18215
18216 \end_inset
18217
18218 ] Indicates whether the user may employ the Paragraph Settings dialog to
18219  customize the paragraph.
18220 \end_layout
18221
18222 \begin_layout Description
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Decoration
18228 \end_layout
18229
18230 \end_inset
18231
18232  can be 
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 Classic
18238 \end_layout
18239
18240 \end_inset
18241
18242
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 Minimalistic
18248 \end_layout
18249
18250 \end_inset
18251
18252 , or 
18253 \begin_inset Flex Code
18254 status collapsed
18255
18256 \begin_layout Plain Layout
18257 Conglomerate
18258 \end_layout
18259
18260 \end_inset
18261
18262 , describing the rendering style used for the inset's frame and buttons.
18263  Footnotes generally use 
18264 \begin_inset Flex Code
18265 status collapsed
18266
18267 \begin_layout Plain Layout
18268 Classic
18269 \end_layout
18270
18271 \end_inset
18272
18273 , ERT insets generally 
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 Minimalistic
18279 \end_layout
18280
18281 \end_inset
18282
18283 , and character styles 
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 Conglomerate
18289 \end_layout
18290
18291 \end_inset
18292
18293 .
18294 \end_layout
18295
18296 \begin_layout Description
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 Display
18302 \end_layout
18303
18304 \end_inset
18305
18306  [
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 0
18312 \end_layout
18313
18314 \end_inset
18315
18316 ,
18317 \emph on
18318
18319 \begin_inset space \thinspace{}
18320 \end_inset
18321
18322
18323 \emph default
18324
18325 \begin_inset Flex Code
18326 status collapsed
18327
18328 \begin_layout Plain Layout
18329
18330 \emph on
18331 1
18332 \end_layout
18333
18334 \end_inset
18335
18336 ] Only useful if 
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 LatexType
18342 \end_layout
18343
18344 \end_inset
18345
18346  is 
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 Environment
18352 \end_layout
18353
18354 \end_inset
18355
18356 .
18357  Indicates whether the environment will stand on its own in the output or
18358  will appear inline with the surrounding text.
18359  If set to false, it is supposed that the \SpecialChar LaTeX
18360  environment ignores white space
18361  (including one newline character) after the 
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366
18367 \backslash
18368 begin{
18369 \emph on
18370 LatexName
18371 \emph default
18372 }
18373 \end_layout
18374
18375 \end_inset
18376
18377  and 
18378 \begin_inset Flex Code
18379 status collapsed
18380
18381 \begin_layout Plain Layout
18382
18383 \backslash
18384 end{
18385 \emph on
18386 LatexName
18387 \emph default
18388 }
18389 \end_layout
18390
18391 \end_inset
18392
18393  tags.
18394  Default is true.
18395 \end_layout
18396
18397 \begin_layout Description
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 End
18403 \end_layout
18404
18405 \end_inset
18406
18407  Required at the end of the 
18408 \begin_inset Flex Code
18409 status collapsed
18410
18411 \begin_layout Plain Layout
18412 InsetLayout
18413 \end_layout
18414
18415 \end_inset
18416
18417  declarations.
18418 \end_layout
18419
18420 \begin_layout Description
18421 \begin_inset Flex Code
18422 status collapsed
18423
18424 \begin_layout Plain Layout
18425 Font
18426 \end_layout
18427
18428 \end_inset
18429
18430  The font used for both the text body 
18431 \emph on
18432 and
18433 \emph default
18434  the label.
18435  See 
18436 \begin_inset CommandInset ref
18437 LatexCommand ref
18438 reference "subsec:Font-description"
18439
18440 \end_inset
18441
18442 .
18443  Note that defining this font automatically defines the 
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448 LabelFont
18449 \end_layout
18450
18451 \end_inset
18452
18453  to the same value, so define this first and define 
18454 \begin_inset Flex Code
18455 status collapsed
18456
18457 \begin_layout Plain Layout
18458 LabelFont
18459 \end_layout
18460
18461 \end_inset
18462
18463  later if you want them to be different.
18464 \end_layout
18465
18466 \begin_layout Description
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471 FixedWidthPreambleEncoding
18472 \end_layout
18473
18474 \end_inset
18475
18476  [
18477 \begin_inset Flex Code
18478 status collapsed
18479
18480 \begin_layout Plain Layout
18481
18482 \emph on
18483 0
18484 \end_layout
18485
18486 \end_inset
18487
18488 ,
18489 \begin_inset space \thinspace{}
18490 \end_inset
18491
18492
18493 \begin_inset Flex Code
18494 status collapsed
18495
18496 \begin_layout Plain Layout
18497 1
18498 \end_layout
18499
18500 \end_inset
18501
18502 ] Force a fixed width encoding for the translated contents of 
18503 \begin_inset Flex Code
18504 status collapsed
18505
18506 \begin_layout Plain Layout
18507 BabelPreamble
18508 \end_layout
18509
18510 \end_inset
18511
18512  and 
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517 LangPreamble
18518 \end_layout
18519
18520 \end_inset
18521
18522  code generated by this layout.
18523  This is needed for special \SpecialChar LaTeX
18524 -packages like 
18525 \family typewriter
18526 listings
18527 \family default
18528  that do not work with variable width encodings such as 
18529 \family sans
18530 utf8
18531 \family default
18532 .
18533  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18534  backends such as Xe\SpecialChar TeX
18535  or
18536  Lua\SpecialChar TeX
18537  are used.
18538 \end_layout
18539
18540 \begin_layout Description
18541 \begin_inset Flex Code
18542 status collapsed
18543
18544 \begin_layout Plain Layout
18545 ForceLocalFontSwitch
18546 \end_layout
18547
18548 \end_inset
18549
18550  [
18551 \begin_inset Flex Code
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555
18556 \emph on
18557 0
18558 \end_layout
18559
18560 \end_inset
18561
18562 ,
18563 \begin_inset space \thinspace{}
18564 \end_inset
18565
18566
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 1
18572 \end_layout
18573
18574 \end_inset
18575
18576 ] When using babel, always use a local font switch (
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581
18582 \backslash
18583 foreignlanguage
18584 \end_layout
18585
18586 \end_inset
18587
18588 ), never a global one (such as 
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593
18594 \backslash
18595 selectlanguage
18596 \end_layout
18597
18598 \end_inset
18599
18600 ).
18601 \end_layout
18602
18603 \begin_layout Description
18604 \begin_inset Flex Code
18605 status collapsed
18606
18607 \begin_layout Plain Layout
18608 ForceLTR
18609 \end_layout
18610
18611 \end_inset
18612
18613  [
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618
18619 \emph on
18620 0
18621 \end_layout
18622
18623 \end_inset
18624
18625 ,
18626 \begin_inset space \thinspace{}
18627 \end_inset
18628
18629
18630 \begin_inset Flex Code
18631 status collapsed
18632
18633 \begin_layout Plain Layout
18634 1
18635 \end_layout
18636
18637 \end_inset
18638
18639 ] Force the 
18640 \begin_inset Quotes eld
18641 \end_inset
18642
18643 latex
18644 \begin_inset Quotes erd
18645 \end_inset
18646
18647  language, leading to Left-to-Right (Latin) output, e.
18648 \begin_inset space \thinspace{}
18649 \end_inset
18650
18651 g.
18652 \begin_inset space \space{}
18653 \end_inset
18654
18655 in \SpecialChar TeX
18656  code or URL.
18657  A kludge.
18658 \end_layout
18659
18660 \begin_layout Description
18661 \begin_inset Flex Code
18662 status collapsed
18663
18664 \begin_layout Plain Layout
18665 ForceOwnlines
18666 \end_layout
18667
18668 \end_inset
18669
18670  [
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675
18676 \emph on
18677 0
18678 \end_layout
18679
18680 \end_inset
18681
18682 ,
18683 \begin_inset space \thinspace{}
18684 \end_inset
18685
18686
18687 \begin_inset Flex Code
18688 status collapsed
18689
18690 \begin_layout Plain Layout
18691 1
18692 \end_layout
18693
18694 \end_inset
18695
18696 ] Force a a line break in the \SpecialChar LaTeX
18697  output before the inset starts and after
18698  the inset ends.
18699  This assures the inset itself is output on its own lines, for parsing purposes.
18700 \end_layout
18701
18702 \begin_layout Description
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707 ForcePlain
18708 \end_layout
18709
18710 \end_inset
18711
18712  [
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717
18718 \emph on
18719 0
18720 \end_layout
18721
18722 \end_inset
18723
18724 ,
18725 \begin_inset space \thinspace{}
18726 \end_inset
18727
18728
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 1
18734 \end_layout
18735
18736 \end_inset
18737
18738 ] Indicates whether the 
18739 \begin_inset Flex Code
18740 status collapsed
18741
18742 \begin_layout Plain Layout
18743 PlainLayout
18744 \end_layout
18745
18746 \end_inset
18747
18748  should be used or, instead, the user can change the paragraph style used
18749  in the inset.
18750  Default is false.
18751 \end_layout
18752
18753 \begin_layout Description
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 FreeSpacing
18759 \end_layout
18760
18761 \end_inset
18762
18763  [
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768
18769 \emph on
18770 0
18771 \end_layout
18772
18773 \end_inset
18774
18775 ,
18776 \begin_inset space \thinspace{}
18777 \end_inset
18778
18779
18780 \begin_inset Flex Code
18781 status collapsed
18782
18783 \begin_layout Plain Layout
18784 1
18785 \end_layout
18786
18787 \end_inset
18788
18789 ] As with paragraph styles, see 
18790 \begin_inset CommandInset ref
18791 LatexCommand ref
18792 reference "subsec:Paragraph-Styles"
18793
18794 \end_inset
18795
18796 .
18797 \end_layout
18798
18799 \begin_layout Description
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 HTML*
18805 \end_layout
18806
18807 \end_inset
18808
18809  These tags control the XHTML output.
18810  See 
18811 \begin_inset CommandInset ref
18812 LatexCommand ref
18813 reference "sec:Tags-for-XHTML"
18814
18815 \end_inset
18816
18817 .
18818 \end_layout
18819
18820 \begin_layout Description
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 InToc
18826 \end_layout
18827
18828 \end_inset
18829
18830  [
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835
18836 \emph on
18837 0
18838 \end_layout
18839
18840 \end_inset
18841
18842 ,
18843 \begin_inset space \thinspace{}
18844 \end_inset
18845
18846
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 1
18852 \end_layout
18853
18854 \end_inset
18855
18856 ] Whether to include the contents of this inset in the strings generated
18857  for the `Outline' pane for all table of contents, regardless of the AddToToc
18858  setting.
18859  One would not, for example, want the content of a footnote in a section
18860  header to be included in the TOC displayed in the outline, but one would
18861  normally want the content of a character style displayed.
18862  Default is false: not to include.
18863 \end_layout
18864
18865 \begin_layout Description
18866 \begin_inset Flex Code
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 IsTocCaption
18871 \end_layout
18872
18873 \end_inset
18874
18875  [
18876 \begin_inset Flex Code
18877 status collapsed
18878
18879 \begin_layout Plain Layout
18880
18881 \emph on
18882 0
18883 \end_layout
18884
18885 \end_inset
18886
18887 ,
18888 \begin_inset space \thinspace{}
18889 \end_inset
18890
18891
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896 1
18897 \end_layout
18898
18899 \end_inset
18900
18901 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18902  of its contents in its item in the table of contents.
18903  Otherwise, only the label appears.
18904 \end_layout
18905
18906 \begin_layout Description
18907 \begin_inset Flex Code
18908 status collapsed
18909
18910 \begin_layout Plain Layout
18911 KeepEmpty
18912 \end_layout
18913
18914 \end_inset
18915
18916  [
18917 \emph on
18918
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 0
18924 \end_layout
18925
18926 \end_inset
18927
18928
18929 \emph default
18930 ,
18931 \begin_inset space \thinspace{}
18932 \end_inset
18933
18934
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939 1
18940 \end_layout
18941
18942 \end_inset
18943
18944 ] As with paragraph styles, see 
18945 \begin_inset CommandInset ref
18946 LatexCommand ref
18947 reference "subsec:Paragraph-Styles"
18948
18949 \end_inset
18950
18951 .
18952 \end_layout
18953
18954 \begin_layout Description
18955 \begin_inset Flex Code
18956 status collapsed
18957
18958 \begin_layout Plain Layout
18959 LabelFont
18960 \end_layout
18961
18962 \end_inset
18963
18964  The font used for the label.
18965  See 
18966 \begin_inset CommandInset ref
18967 LatexCommand ref
18968 reference "subsec:Font-description"
18969
18970 \end_inset
18971
18972 .
18973  Note that this definition can never appear before 
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 Font
18979 \end_layout
18980
18981 \end_inset
18982
18983 , lest it be ineffective.
18984 \end_layout
18985
18986 \begin_layout Description
18987 \begin_inset Flex Code
18988 status collapsed
18989
18990 \begin_layout Plain Layout
18991 LabelString
18992 \end_layout
18993
18994 \end_inset
18995
18996  [
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 string
19002 \end_layout
19003
19004 \end_inset
19005
19006 =
19007 \begin_inset Quotes erd
19008 \end_inset
19009
19010
19011 \begin_inset Quotes erd
19012 \end_inset
19013
19014 ] What will be displayed on the button or elsewhere as the inset label.
19015  Some inset types (
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 \SpecialChar TeX
19021  code
19022 \end_layout
19023
19024 \end_inset
19025
19026  and 
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 Branch
19032 \end_layout
19033
19034 \end_inset
19035
19036 ) modify this label on the fly.
19037 \end_layout
19038
19039 \begin_layout Description
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 LangPreamble
19045 \end_layout
19046
19047 \end_inset
19048
19049  Language dependent preamble; see 
19050 \begin_inset CommandInset ref
19051 LatexCommand ref
19052 reference "subsec:I18n"
19053
19054 \end_inset
19055
19056 .
19057 \end_layout
19058
19059 \begin_layout Description
19060 \begin_inset Flex Code
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 LatexName
19065 \end_layout
19066
19067 \end_inset
19068
19069  [
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 <name>
19075 \end_layout
19076
19077 \end_inset
19078
19079 ] The name of the corresponding \SpecialChar LaTeX
19080  stuff.
19081  Either the environment or command name.
19082 \end_layout
19083
19084 \begin_layout Description
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 LatexParam
19090 \end_layout
19091
19092 \end_inset
19093
19094  [
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 <parameter>
19100 \end_layout
19101
19102 \end_inset
19103
19104 ] The optional parameter for the corresponding 
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 LatexName
19110 \end_layout
19111
19112 \end_inset
19113
19114  stuff, including possible bracket pairs like 
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 []
19120 \end_layout
19121
19122 \end_inset
19123
19124 .
19125  This parameter cannot be changed from within \SpecialChar LyX
19126  (use 
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 Argument
19132 \end_layout
19133
19134 \end_inset
19135
19136  for customizable parameters).
19137  It will be output as is after all \SpecialChar LaTeX
19138  
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 Argument
19144 \end_layout
19145
19146 \end_inset
19147
19148 s.
19149 \end_layout
19150
19151 \begin_layout Description
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 LatexType
19157 \end_layout
19158
19159 \end_inset
19160
19161  [
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 Command, Environment, None
19167 \end_layout
19168
19169 \end_inset
19170
19171 ] How the style should be translated into \SpecialChar LaTeX
19172 .
19173 \begin_inset Foot
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 LatexType
19182 \end_layout
19183
19184 \end_inset
19185
19186  is perhaps a bit misleading, since these rules apply to SGML classes too.
19187  Visit the SGML class files for specific examples.
19188 \end_layout
19189
19190 \end_inset
19191
19192
19193 \end_layout
19194
19195 \begin_deeper
19196 \begin_layout Description
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201 None
19202 \end_layout
19203
19204 \end_inset
19205
19206  means nothing special
19207 \end_layout
19208
19209 \begin_layout Description
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 Command
19215 \end_layout
19216
19217 \end_inset
19218
19219  means 
19220 \begin_inset Flex Code
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224
19225 \backslash
19226
19227 \emph on
19228 LatexName
19229 \emph default
19230 {\SpecialChar ldots
19231 }
19232 \end_layout
19233
19234 \end_inset
19235
19236
19237 \end_layout
19238
19239 \begin_layout Description
19240 \begin_inset Flex Code
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 Environment
19245 \end_layout
19246
19247 \end_inset
19248
19249  means 
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254
19255 \backslash
19256 begin{
19257 \emph on
19258 LatexName
19259 \emph default
19260 }\SpecialChar ldots
19261
19262 \backslash
19263 end{
19264 \emph on
19265 LatexName
19266 \emph default
19267 }
19268 \end_layout
19269
19270 \end_inset
19271
19272
19273 \end_layout
19274
19275 \begin_layout Standard
19276 Putting the last few things together, the \SpecialChar LaTeX
19277  output will be either: 
19278 \end_layout
19279
19280 \begin_layout LyX-Code
19281
19282 \backslash
19283 LatexName[LatexParam]{\SpecialChar ldots
19284 }
19285 \end_layout
19286
19287 \begin_layout Standard
19288 or: 
19289 \end_layout
19290
19291 \begin_layout LyX-Code
19292
19293 \backslash
19294 begin{LatexName}[LatexParam] \SpecialChar ldots
19295  
19296 \backslash
19297 end{LatexName}
19298 \end_layout
19299
19300 \begin_layout Standard
19301 depending upon the \SpecialChar LaTeX
19302  type.
19303 \end_layout
19304
19305 \end_deeper
19306 \begin_layout Description
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 LeftDelim
19312 \end_layout
19313
19314 \end_inset
19315
19316  [
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 string
19322 \end_layout
19323
19324 \end_inset
19325
19326 ] A string that is put at the beginning of the layout content.
19327  A line break in the output can be indicated by 
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 <br/>
19333 \end_layout
19334
19335 \end_inset
19336
19337 .
19338 \end_layout
19339
19340 \begin_layout Description
19341 \begin_inset Flex Code
19342 status collapsed
19343
19344 \begin_layout Plain Layout
19345 LyxType
19346 \end_layout
19347
19348 \end_inset
19349
19350  Can be 
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 charstyle
19356 \end_layout
19357
19358 \end_inset
19359
19360
19361 \begin_inset Flex Code
19362 status collapsed
19363
19364 \begin_layout Plain Layout
19365 custom
19366 \end_layout
19367
19368 \end_inset
19369
19370
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 element
19376 \end_layout
19377
19378 \end_inset
19379
19380  or 
19381 \begin_inset Flex Code
19382 status collapsed
19383
19384 \begin_layout Plain Layout
19385 end
19386 \end_layout
19387
19388 \end_inset
19389
19390  (indicating a dummy definition ending definitions of charstyles, etc).
19391  This entry is required in and is only meaningful for Flex insets.
19392  Among other things, it determines on which menu this inset will appear.
19393  Setting 
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 LyxType
19399 \end_layout
19400
19401 \end_inset
19402
19403  to 
19404 \begin_inset Flex Code
19405 status collapsed
19406
19407 \begin_layout Plain Layout
19408 charstyle
19409 \end_layout
19410
19411 \end_inset
19412
19413  will automatically set 
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 MultiPar
19419 \end_layout
19420
19421 \end_inset
19422
19423  to false and 
19424 \begin_inset Flex Code
19425 status collapsed
19426
19427 \begin_layout Plain Layout
19428 ForcePlain
19429 \end_layout
19430
19431 \end_inset
19432
19433  to true.
19434  
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 MultiPar
19440 \end_layout
19441
19442 \end_inset
19443
19444  can be set to true, or 
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 ForcePlain
19450 \end_layout
19451
19452 \end_inset
19453
19454  to false, for 
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459 charstyle
19460 \end_layout
19461
19462 \end_inset
19463
19464  insets by setting it 
19465 \emph on
19466 after
19467 \emph default
19468  you set the 
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 LyxType
19474 \end_layout
19475
19476 \end_inset
19477
19478 .
19479 \end_layout
19480
19481 \begin_layout Description
19482 \begin_inset Flex Code
19483 status collapsed
19484
19485 \begin_layout Plain Layout
19486 MultiPar
19487 \end_layout
19488
19489 \end_inset
19490
19491  [
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496
19497 \emph on
19498 0
19499 \end_layout
19500
19501 \end_inset
19502
19503 ,
19504 \begin_inset space \thinspace{}
19505 \end_inset
19506
19507
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 1
19513 \end_layout
19514
19515 \end_inset
19516
19517 ] Whether multiple paragraphs are permitted in this inset.
19518  This will also set 
19519 \begin_inset Flex Code
19520 status collapsed
19521
19522 \begin_layout Plain Layout
19523 CustomPars
19524 \end_layout
19525
19526 \end_inset
19527
19528  to the same value and 
19529 \begin_inset Flex Code
19530 status collapsed
19531
19532 \begin_layout Plain Layout
19533 ForcePlain
19534 \end_layout
19535
19536 \end_inset
19537
19538  to the opposite value.
19539  These can be reset to other values, if they are used 
19540 \emph on
19541 after
19542 \emph default
19543  
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 MultiPar
19549 \end_layout
19550
19551 \end_inset
19552
19553 .
19554  Default is true.
19555 \end_layout
19556
19557 \begin_layout Description
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 NeedProtect
19563 \end_layout
19564
19565 \end_inset
19566
19567  [
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572
19573 \emph on
19574 0
19575 \end_layout
19576
19577 \end_inset
19578
19579 ,
19580 \begin_inset space \thinspace{}
19581 \end_inset
19582
19583
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 1
19589 \end_layout
19590
19591 \end_inset
19592
19593 ] Whether fragile commands in this inset should be 
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598
19599 \backslash
19600 protect
19601 \end_layout
19602
19603 \end_inset
19604
19605 'ed.
19606  (Note: This is 
19607 \emph on
19608 not
19609 \emph default
19610  whether the command should itself be protected.) Default is false.
19611 \end_layout
19612
19613 \begin_layout Description
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 NoInsetLayout
19619 \end_layout
19620
19621 \end_inset
19622
19623  [
19624 \begin_inset Flex Code
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 <layout>
19629 \end_layout
19630
19631 \end_inset
19632
19633 ] Deletes an existing 
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 InsetLayout
19639 \end_layout
19640
19641 \end_inset
19642
19643 .
19644 \end_layout
19645
19646 \begin_layout Description
19647 \begin_inset Flex Code
19648 status collapsed
19649
19650 \begin_layout Plain Layout
19651 ObsoletedBy
19652 \end_layout
19653
19654 \end_inset
19655
19656  [
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 <layout>
19662 \end_layout
19663
19664 \end_inset
19665
19666 ] Name of an 
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671 InsetLayout
19672 \end_layout
19673
19674 \end_inset
19675
19676  that has replaced this 
19677 \begin_inset Flex Code
19678 status collapsed
19679
19680 \begin_layout Plain Layout
19681 InsetLayout
19682 \end_layout
19683
19684 \end_inset
19685
19686 .
19687  This is used to rename an 
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 InsetLayout
19693 \end_layout
19694
19695 \end_inset
19696
19697 , while keeping backward compatibility.
19698 \end_layout
19699
19700 \begin_layout Description
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 ParbreakIsNewline
19706 \end_layout
19707
19708 \end_inset
19709
19710  [
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715
19716 \emph on
19717 0
19718 \end_layout
19719
19720 \end_inset
19721
19722 ,
19723 \begin_inset space \thinspace{}
19724 \end_inset
19725
19726
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 1
19732 \end_layout
19733
19734 \end_inset
19735
19736 ] As with paragraph styles, see 
19737 \begin_inset CommandInset ref
19738 LatexCommand ref
19739 reference "subsec:Paragraph-Styles"
19740
19741 \end_inset
19742
19743 .
19744  Default is false.
19745 \end_layout
19746
19747 \begin_layout Description
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 PassThru
19753 \end_layout
19754
19755 \end_inset
19756
19757  [
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762
19763 \emph on
19764 0
19765 \end_layout
19766
19767 \end_inset
19768
19769 ,
19770 \begin_inset space \thinspace{}
19771 \end_inset
19772
19773
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 1
19779 \end_layout
19780
19781 \end_inset
19782
19783 ] As with paragraph styles, see 
19784 \begin_inset CommandInset ref
19785 LatexCommand ref
19786 reference "subsec:Paragraph-Styles"
19787
19788 \end_inset
19789
19790 .
19791  Default is false.
19792 \end_layout
19793
19794 \begin_layout Description
19795 \begin_inset Flex Code
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 Preamble
19800 \end_layout
19801
19802 \end_inset
19803
19804  As with paragraph styles, see 
19805 \begin_inset CommandInset ref
19806 LatexCommand ref
19807 reference "subsec:Paragraph-Styles"
19808
19809 \end_inset
19810
19811 .
19812 \end_layout
19813
19814 \begin_layout Description
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 RefPrefix
19820 \end_layout
19821
19822 \end_inset
19823
19824  [
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 string
19830 \end_layout
19831
19832 \end_inset
19833
19834 ] The prefix to use when creating labels referring to insets of this type.
19835  This allows the use of formatted references.
19836 \end_layout
19837
19838 \begin_layout Description
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843 Requires
19844 \end_layout
19845
19846 \end_inset
19847
19848  [
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 string
19854 \end_layout
19855
19856 \end_inset
19857
19858 ] As with paragraph styles, see 
19859 \begin_inset CommandInset ref
19860 LatexCommand ref
19861 reference "subsec:Paragraph-Styles"
19862
19863 \end_inset
19864
19865 .
19866 \end_layout
19867
19868 \begin_layout Description
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 ResetArgs
19874 \end_layout
19875
19876 \end_inset
19877
19878  [
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883
19884 \emph on
19885 0
19886 \end_layout
19887
19888 \end_inset
19889
19890 ,
19891 \begin_inset space \thinspace{}
19892 \end_inset
19893
19894
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 1
19900 \end_layout
19901
19902 \end_inset
19903
19904 ] Resets the \SpecialChar LaTeX
19905  arguments of this layout (as defined via the 
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910 Argument
19911 \end_layout
19912
19913 \end_inset
19914
19915  tag).
19916  This is useful if you have copied a style via 
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 CopyStyle
19922 \end_layout
19923
19924 \end_inset
19925
19926 , but you do not want to inherit its (required and optional) arguments.
19927 \end_layout
19928
19929 \begin_layout Description
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 ResetsFont
19935 \end_layout
19936
19937 \end_inset
19938
19939  [
19940 \begin_inset Flex Code
19941 status collapsed
19942
19943 \begin_layout Plain Layout
19944 0
19945 \end_layout
19946
19947 \end_inset
19948
19949 ,
19950 \begin_inset space \thinspace{}
19951 \end_inset
19952
19953
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958
19959 \emph on
19960 1
19961 \end_layout
19962
19963 \end_inset
19964
19965 ] Whether this inset should use the font of its surrounding environment
19966  or uses its own.
19967  Default is false: use the font of the surrounding environment.
19968 \end_layout
19969
19970 \begin_layout Description
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975 RightDelim
19976 \end_layout
19977
19978 \end_inset
19979
19980  [
19981 \begin_inset Flex Code
19982 status collapsed
19983
19984 \begin_layout Plain Layout
19985 string
19986 \end_layout
19987
19988 \end_inset
19989
19990 ] A string that is put at the end of the layout content.
19991  A line break in the output can be indicated by 
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 <br/>
19997 \end_layout
19998
19999 \end_inset
20000
20001 .
20002 \end_layout
20003
20004 \begin_layout Description
20005 \begin_inset Flex Code
20006 status collapsed
20007
20008 \begin_layout Plain Layout
20009 Spellcheck
20010 \end_layout
20011
20012 \end_inset
20013
20014  [
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 0
20020 \end_layout
20021
20022 \end_inset
20023
20024 ,
20025 \begin_inset space \thinspace{}
20026 \end_inset
20027
20028
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033
20034 \emph on
20035 1
20036 \end_layout
20037
20038 \end_inset
20039
20040 ] Allow spell-checking the contents of this inset.
20041  Default is true.
20042 \end_layout
20043
20044 \begin_layout Subsection
20045 Counters
20046 \begin_inset CommandInset label
20047 LatexCommand label
20048 name "subsec:Counters"
20049
20050 \end_inset
20051
20052
20053 \end_layout
20054
20055 \begin_layout Standard
20056 It is necessary to define the counters (
20057 \begin_inset Flex Noun
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 chapter
20062 \end_layout
20063
20064 \end_inset
20065
20066
20067 \begin_inset Flex Noun
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 figure
20072 \end_layout
20073
20074 \end_inset
20075
20076 , \SpecialChar ldots
20077 ) in the text class itself.
20078  The standard counters are defined in the file 
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 stdcounters.inc
20084 \end_layout
20085
20086 \end_inset
20087
20088 , so you may have to do no more than add
20089 \end_layout
20090
20091 \begin_layout LyX-Code
20092 Input stdcounters.inc
20093 \end_layout
20094
20095 \begin_layout Standard
20096 to your layout file to get them to work.
20097  But if you want to define custom counters, then you can do so.
20098  The counter declaration must begin with:
20099 \end_layout
20100
20101 \begin_layout LyX-Code
20102 Counter CounterName
20103 \end_layout
20104
20105 \begin_layout Standard
20106 where of course `
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 CounterName
20112 \end_layout
20113
20114 \end_inset
20115
20116 ' is replaced by the name of the counter.
20117  And it must end with 
20118 \begin_inset Quotes eld
20119 \end_inset
20120
20121
20122 \begin_inset Flex Code
20123 status collapsed
20124
20125 \begin_layout Plain Layout
20126 End
20127 \end_layout
20128
20129 \end_inset
20130
20131
20132 \begin_inset Quotes erd
20133 \end_inset
20134
20135 .
20136  The following parameters can also be used:
20137 \end_layout
20138
20139 \begin_layout Description
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 InitialValue
20145 \end_layout
20146
20147 \end_inset
20148
20149  [
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 int=1
20155 \end_layout
20156
20157 \end_inset
20158
20159 ] Sets the initial value for the counter, to which it will be reset whenever
20160  that happens.
20161  Normally, one will want the default, 1.
20162 \end_layout
20163
20164 \begin_layout Description
20165 \begin_inset Flex Code
20166 status collapsed
20167
20168 \begin_layout Plain Layout
20169 LabelString
20170 \end_layout
20171
20172 \end_inset
20173
20174  [
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 string
20180 \end_layout
20181
20182 \end_inset
20183
20184 =
20185 \begin_inset Quotes erd
20186 \end_inset
20187
20188
20189 \begin_inset Quotes erd
20190 \end_inset
20191
20192 ] When defined, this string defines how the counter is displayed.
20193  Setting this value sets 
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 LabelStringAppendix
20199 \end_layout
20200
20201 \end_inset
20202
20203  to the same value.
20204  The following special constructs can be used in the string:
20205 \end_layout
20206
20207 \begin_deeper
20208 \begin_layout Itemize
20209 \begin_inset Flex Code
20210 status collapsed
20211
20212 \begin_layout Plain Layout
20213
20214 \backslash
20215 thecounter
20216 \end_layout
20217
20218 \end_inset
20219
20220  will be replaced by the expansion of the 
20221 \begin_inset Flex Code
20222 status collapsed
20223
20224 \begin_layout Plain Layout
20225 LabelString
20226 \end_layout
20227
20228 \end_inset
20229
20230  (or 
20231 \begin_inset Flex Code
20232 status collapsed
20233
20234 \begin_layout Plain Layout
20235 LabelStringAppendix
20236 \end_layout
20237
20238 \end_inset
20239
20240 ) of the counter 
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 counter
20246 \end_layout
20247
20248 \end_inset
20249
20250 .
20251  
20252 \end_layout
20253
20254 \begin_layout Itemize
20255 counter values can be expressed using \SpecialChar LaTeX
20256 -like macros
20257 \begin_inset Newline newline
20258 \end_inset
20259
20260
20261 \begin_inset Flex Code
20262 status collapsed
20263
20264 \begin_layout Plain Layout
20265
20266 \backslash
20267
20268 \emph on
20269 numbertype
20270 \emph default
20271 {
20272 \emph on
20273 counter
20274 \emph default
20275 }
20276 \end_layout
20277
20278 \end_inset
20279
20280 , where 
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285
20286 \emph on
20287 numbertype
20288 \end_layout
20289
20290 \end_inset
20291
20292  can be:
20293 \begin_inset Foot
20294 status collapsed
20295
20296 \begin_layout Plain Layout
20297
20298 \family roman
20299 \series medium
20300 \shape up
20301 \size normal
20302 \emph off
20303 \bar no
20304 \noun off
20305 \color none
20306 Actually, the situation is a bit more complicated: any
20307 \family default
20308 \series default
20309 \shape default
20310 \emph default
20311 \bar default
20312  
20313 \size default
20314 \emph on
20315 \noun default
20316 \color inherit
20317 numbertype
20318 \family roman
20319 \series medium
20320 \shape up
20321 \size normal
20322 \emph off
20323 \bar no
20324 \noun off
20325  other than those described below will produce arabic numerals.
20326  It would not be surprising to see this change in the future.
20327 \end_layout
20328
20329 \end_inset
20330
20331  
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 arabic
20337 \end_layout
20338
20339 \end_inset
20340
20341 : 1, 2, 3,\SpecialChar ldots
20342
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 alph
20348 \end_layout
20349
20350 \end_inset
20351
20352  for lower-case letters: a, b, c, \SpecialChar ldots
20353
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 Alph
20359 \end_layout
20360
20361 \end_inset
20362
20363  for upper-case letters: A, B, C, \SpecialChar ldots
20364
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 roman
20370 \end_layout
20371
20372 \end_inset
20373
20374  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20375
20376 \begin_inset Flex Code
20377 status collapsed
20378
20379 \begin_layout Plain Layout
20380 Roman
20381 \end_layout
20382
20383 \end_inset
20384
20385  for upper-case roman numerals: I, II, III\SpecialChar ldots
20386
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 hebrew
20392 \end_layout
20393
20394 \end_inset
20395
20396  for hebrew numerals.
20397 \end_layout
20398
20399 \end_deeper
20400 \begin_layout Standard
20401 If LabelString is not defined, a default value is constructed as follows:
20402  if the counter has a master counter 
20403 \begin_inset Flex Code
20404 status collapsed
20405
20406 \begin_layout Plain Layout
20407 master
20408 \end_layout
20409
20410 \end_inset
20411
20412  (defined via 
20413 \begin_inset Flex Code
20414 status collapsed
20415
20416 \begin_layout Plain Layout
20417 Within
20418 \end_layout
20419
20420 \end_inset
20421
20422 ), the string
20423 \begin_inset Newline newline
20424 \end_inset
20425
20426
20427 \begin_inset Flex Code
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431
20432 \backslash
20433 themaster.
20434 \backslash
20435 arabic{counter}
20436 \end_layout
20437
20438 \end_inset
20439
20440  is used; otherwise the string 
20441 \begin_inset Flex Code
20442 status collapsed
20443
20444 \begin_layout Plain Layout
20445
20446 \backslash
20447 arabic{counter}
20448 \end_layout
20449
20450 \end_inset
20451
20452  is used.
20453 \end_layout
20454
20455 \begin_layout Description
20456 \begin_inset Flex Code
20457 status collapsed
20458
20459 \begin_layout Plain Layout
20460 LabelStringAppendix
20461 \end_layout
20462
20463 \end_inset
20464
20465  [
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 string
20471 \end_layout
20472
20473 \end_inset
20474
20475 =
20476 \begin_inset Quotes erd
20477 \end_inset
20478
20479
20480 \begin_inset Quotes erd
20481 \end_inset
20482
20483 ] Same as 
20484 \begin_inset Flex Code
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 LabelString
20489 \end_layout
20490
20491 \end_inset
20492
20493 , but for use in the Appendix.
20494 \end_layout
20495
20496 \begin_layout Description
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 PrettyFormat
20502 \end_layout
20503
20504 \end_inset
20505
20506  [
20507 \begin_inset Flex Code
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 string
20512 \end_layout
20513
20514 \end_inset
20515
20516 =
20517 \begin_inset Quotes erd
20518 \end_inset
20519
20520
20521 \begin_inset Quotes erd
20522 \end_inset
20523
20524 ] A format for use with formatted references to this counter.
20525  For example, one might want to have references to section numbers appear
20526  as 
20527 \begin_inset Quotes eld
20528 \end_inset
20529
20530 Section 2.4
20531 \begin_inset Quotes erd
20532 \end_inset
20533
20534 .
20535  The string should contain 
20536 \begin_inset Quotes eld
20537 \end_inset
20538
20539 ##
20540 \begin_inset Quotes erd
20541 \end_inset
20542
20543 .
20544  This will be replaced by the counter number itself.
20545  So, for sections, it would be: Section ##.
20546 \end_layout
20547
20548 \begin_layout Description
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 Within
20554 \end_layout
20555
20556 \end_inset
20557
20558  [
20559 \begin_inset Flex Code
20560 status collapsed
20561
20562 \begin_layout Plain Layout
20563 string
20564 \end_layout
20565
20566 \end_inset
20567
20568 =
20569 \begin_inset Quotes erd
20570 \end_inset
20571
20572
20573 \begin_inset Quotes erd
20574 \end_inset
20575
20576 ] If this is set to the name of another counter, the present counter will
20577  be reset every time the other one is increased.
20578  For example, 
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 subsection
20584 \end_layout
20585
20586 \end_inset
20587
20588  is numbered inside 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 section
20594 \end_layout
20595
20596 \end_inset
20597
20598 .
20599 \end_layout
20600
20601 \begin_layout Subsection
20602 Font description
20603 \begin_inset CommandInset label
20604 LatexCommand label
20605 name "subsec:Font-description"
20606
20607 \end_inset
20608
20609
20610 \end_layout
20611
20612 \begin_layout Standard
20613 A font description looks like this:
20614 \end_layout
20615
20616 \begin_layout LyX-Code
20617 Font 
20618 \family roman
20619 \emph on
20620 or
20621 \family default
20622 \emph default
20623  LabelFont
20624 \emph on
20625  
20626 \family roman
20627 or
20628 \family default
20629 \emph default
20630  DefaultFont
20631 \end_layout
20632
20633 \begin_layout LyX-Code
20634  ...
20635 \end_layout
20636
20637 \begin_layout LyX-Code
20638 EndFont
20639 \end_layout
20640
20641 \begin_layout Standard
20642 The following commands are available:
20643 \end_layout
20644
20645 \begin_layout Description
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 Color
20651 \end_layout
20652
20653 \end_inset
20654
20655  [
20656 \begin_inset Flex Code
20657 status collapsed
20658
20659 \begin_layout Plain Layout
20660
20661 \emph on
20662 none
20663 \end_layout
20664
20665 \end_inset
20666
20667
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672 black
20673 \end_layout
20674
20675 \end_inset
20676
20677
20678 \begin_inset Flex Code
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682 white
20683 \end_layout
20684
20685 \end_inset
20686
20687
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 red
20693 \end_layout
20694
20695 \end_inset
20696
20697
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 green
20703 \end_layout
20704
20705 \end_inset
20706
20707
20708 \begin_inset Flex Code
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712 blue
20713 \end_layout
20714
20715 \end_inset
20716
20717
20718 \begin_inset Flex Code
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722 cyan
20723 \end_layout
20724
20725 \end_inset
20726
20727
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732 magenta
20733 \end_layout
20734
20735 \end_inset
20736
20737
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 yellow
20743 \end_layout
20744
20745 \end_inset
20746
20747
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 brown
20753 \end_layout
20754
20755 \end_inset
20756
20757
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 darkgray
20763 \end_layout
20764
20765 \end_inset
20766
20767
20768 \begin_inset Flex Code
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 gray
20773 \end_layout
20774
20775 \end_inset
20776
20777
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782 lightgray
20783 \end_layout
20784
20785 \end_inset
20786
20787
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 lime
20793 \end_layout
20794
20795 \end_inset
20796
20797
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802 orange
20803 \end_layout
20804
20805 \end_inset
20806
20807
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 olive
20813 \end_layout
20814
20815 \end_inset
20816
20817
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 pink
20823 \end_layout
20824
20825 \end_inset
20826
20827
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 purple
20833 \end_layout
20834
20835 \end_inset
20836
20837
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 teal
20843 \end_layout
20844
20845 \end_inset
20846
20847
20848 \begin_inset Flex Code
20849 status collapsed
20850
20851 \begin_layout Plain Layout
20852 violet
20853 \end_layout
20854
20855 \end_inset
20856
20857 ]
20858 \end_layout
20859
20860 \begin_layout Description
20861 \begin_inset Flex Code
20862 status collapsed
20863
20864 \begin_layout Plain Layout
20865 Family
20866 \end_layout
20867
20868 \end_inset
20869
20870  [
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875
20876 \emph on
20877 Roman
20878 \end_layout
20879
20880 \end_inset
20881
20882
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 Sans
20888 \end_layout
20889
20890 \end_inset
20891
20892
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 Typewriter
20898 \end_layout
20899
20900 \end_inset
20901
20902 ]
20903 \end_layout
20904
20905 \begin_layout Description
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 Misc
20911 \end_layout
20912
20913 \end_inset
20914
20915  [
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 string
20921 \end_layout
20922
20923 \end_inset
20924
20925 ] Valid arguments are: 
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 emph
20931 \end_layout
20932
20933 \end_inset
20934
20935
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 noun
20941 \end_layout
20942
20943 \end_inset
20944
20945
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 strikeout
20951 \end_layout
20952
20953 \end_inset
20954
20955
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 underbar
20961 \end_layout
20962
20963 \end_inset
20964
20965
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 uuline
20971 \end_layout
20972
20973 \end_inset
20974
20975
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980 uwave
20981 \end_layout
20982
20983 \end_inset
20984
20985
20986 \begin_inset Flex Code
20987 status collapsed
20988
20989 \begin_layout Plain Layout
20990 no_emph
20991 \end_layout
20992
20993 \end_inset
20994
20995
20996 \begin_inset Flex Code
20997 status collapsed
20998
20999 \begin_layout Plain Layout
21000 no_noun
21001 \end_layout
21002
21003 \end_inset
21004
21005
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010 no_strikeout
21011 \end_layout
21012
21013 \end_inset
21014
21015
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020 no_bar
21021 \end_layout
21022
21023 \end_inset
21024
21025
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 no_uuline
21031 \end_layout
21032
21033 \end_inset
21034
21035  and 
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 no_uwave
21041 \end_layout
21042
21043 \end_inset
21044
21045 .
21046  Each of these turns on or off the corresponding attribute.
21047  For example, 
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 emph
21053 \end_layout
21054
21055 \end_inset
21056
21057  turns on emphasis, and 
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062 no_emph
21063 \end_layout
21064
21065 \end_inset
21066
21067  turns it off.
21068  
21069 \begin_inset Newline newline
21070 \end_inset
21071
21072 If the latter seems puzzling, remember that the font settings for the present
21073  context are generally inherited from the surrounding context.
21074  So 
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 no_emph
21080 \end_layout
21081
21082 \end_inset
21083
21084  would turn off the emphasis that was anyway in effect, say, in a theorem
21085  environment.
21086 \end_layout
21087
21088 \begin_layout Description
21089 \begin_inset Flex Code
21090 status collapsed
21091
21092 \begin_layout Plain Layout
21093 Series
21094 \end_layout
21095
21096 \end_inset
21097
21098  [
21099 \begin_inset Flex Code
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103
21104 \emph on
21105 Medium
21106 \end_layout
21107
21108 \end_inset
21109
21110
21111 \begin_inset Flex Code
21112 status collapsed
21113
21114 \begin_layout Plain Layout
21115 Bold
21116 \end_layout
21117
21118 \end_inset
21119
21120
21121 \end_layout
21122
21123 \begin_layout Description
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 Shape
21129 \end_layout
21130
21131 \end_inset
21132
21133  [
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138
21139 \emph on
21140 Up
21141 \end_layout
21142
21143 \end_inset
21144
21145
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 Italic
21151 \end_layout
21152
21153 \end_inset
21154
21155
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 SmallCaps
21161 \end_layout
21162
21163 \end_inset
21164
21165
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 Slanted
21171 \end_layout
21172
21173 \end_inset
21174
21175
21176 \end_layout
21177
21178 \begin_layout Description
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 Size
21184 \end_layout
21185
21186 \end_inset
21187
21188  [
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 tiny
21194 \end_layout
21195
21196 \end_inset
21197
21198
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 small
21204 \end_layout
21205
21206 \end_inset
21207
21208
21209 \begin_inset Flex Code
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213
21214 \emph on
21215 normal
21216 \end_layout
21217
21218 \end_inset
21219
21220
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 large
21226 \end_layout
21227
21228 \end_inset
21229
21230
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235 larger
21236 \end_layout
21237
21238 \end_inset
21239
21240
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 largest
21246 \end_layout
21247
21248 \end_inset
21249
21250
21251 \begin_inset Flex Code
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 huge
21256 \end_layout
21257
21258 \end_inset
21259
21260
21261 \begin_inset Flex Code
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 giant
21266 \end_layout
21267
21268 \end_inset
21269
21270 ]
21271 \end_layout
21272
21273 \begin_layout Subsection
21274 \begin_inset CommandInset label
21275 LatexCommand label
21276 name "subsec:Citation-engine-description"
21277
21278 \end_inset
21279
21280 Cite engine description
21281 \end_layout
21282
21283 \begin_layout Standard
21284 The 
21285 \begin_inset Flex Code
21286 status collapsed
21287
21288 \begin_layout Plain Layout
21289 CiteEngine
21290 \end_layout
21291
21292 \end_inset
21293
21294  blocks, as used mainly in cite engine files (see 
21295 \begin_inset CommandInset ref
21296 LatexCommand ref
21297 reference "subsec:Cite-Engine-Files"
21298 plural "false"
21299 caps "false"
21300 noprefix "false"
21301
21302 \end_inset
21303
21304 ), define the citation commands provided by a specific 
21305 \begin_inset Quotes eld
21306 \end_inset
21307
21308 cite engine
21309 \begin_inset Quotes erd
21310 \end_inset
21311
21312 .
21313  A cite engine, in \SpecialChar LyX
21314  terms, is way specific way to format citations, using
21315  numbers, author names and/or years.
21316  Currently, \SpecialChar LyX
21317  supports three such engine types, namely:
21318 \end_layout
21319
21320 \begin_layout Enumerate
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 default
21326 \end_layout
21327
21328 \end_inset
21329
21330 : the default Bib\SpecialChar TeX
21331  way to format citations, a simple numeric style (e.
21332 \begin_inset space \thinspace{}
21333 \end_inset
21334
21335 g., 
21336 \begin_inset Quotes eld
21337 \end_inset
21338
21339 [1]
21340 \begin_inset Quotes erd
21341 \end_inset
21342
21343 )
21344 \end_layout
21345
21346 \begin_layout Enumerate
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 authoryear
21352 \end_layout
21353
21354 \end_inset
21355
21356 : Harvard-styled citations using author names and publication year (e.
21357 \begin_inset space \thinspace{}
21358 \end_inset
21359
21360 g., 
21361 \begin_inset Quotes eld
21362 \end_inset
21363
21364 Smith and Miller (2017b)
21365 \begin_inset Quotes erd
21366 \end_inset
21367
21368 )
21369 \end_layout
21370
21371 \begin_layout Enumerate
21372 \begin_inset Flex Code
21373 status collapsed
21374
21375 \begin_layout Plain Layout
21376 numerical
21377 \end_layout
21378
21379 \end_inset
21380
21381 : extended numerical citations that also allow for author or title next
21382  to the number (e.
21383 \begin_inset space \thinspace{}
21384 \end_inset
21385
21386 g., 
21387 \begin_inset Quotes eld
21388 \end_inset
21389
21390 Smith and Miller [1]
21391 \begin_inset Quotes erd
21392 \end_inset
21393
21394 )
21395 \end_layout
21396
21397 \begin_layout Standard
21398 \begin_inset Flex Code
21399 status collapsed
21400
21401 \begin_layout Plain Layout
21402 CiteEngine
21403 \end_layout
21404
21405 \end_inset
21406
21407  blocks look like this:
21408 \end_layout
21409
21410 \begin_layout LyX-Code
21411 CiteEngine default
21412 \end_layout
21413
21414 \begin_layout LyX-Code
21415  cite
21416 \end_layout
21417
21418 \begin_layout LyX-Code
21419  Citep*[][]
21420 \end_layout
21421
21422 \begin_layout LyX-Code
21423  citeyearpar[][]=parencite*
21424 \end_layout
21425
21426 \begin_layout LyX-Code
21427  ...
21428 \end_layout
21429
21430 \begin_layout LyX-Code
21431 End
21432 \end_layout
21433
21434 \begin_layout Standard
21435 The tag following 
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 CiteEngine
21441 \end_layout
21442
21443 \end_inset
21444
21445  denotes the engine.
21446  The individual lines respectively define a cite command or cite command
21447  paradigm supported by this engine.
21448  The line can be as simple as a cite command that is used both to name the
21449  respective \SpecialChar LyX
21450  command and the \SpecialChar LaTeX
21451  output or more complex in order to differentiate
21452  things.
21453  The full syntax is:
21454 \end_layout
21455
21456 \begin_layout LyX-Code
21457 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21458 \end_layout
21459
21460 \begin_layout Itemize
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 LyXName
21466 \end_layout
21467
21468 \end_inset
21469
21470 : The name as used in the 
21471 \begin_inset Flex Code
21472 status collapsed
21473
21474 \begin_layout Plain Layout
21475 *.lyx
21476 \end_layout
21477
21478 \end_inset
21479
21480  file.
21481 \end_layout
21482
21483 \begin_deeper
21484 \begin_layout Standard
21485 For portability reasons, we try to use the same name for same-formatted
21486  commands in different cite packages (thus many names stem from natbib,
21487  and thus we need to differentiate a 
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 latexcmd
21493 \end_layout
21494
21495 \end_inset
21496
21497  sometimes, if the \SpecialChar LaTeX
21498  command names differ).
21499 \end_layout
21500
21501 \end_deeper
21502 \begin_layout Itemize
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507 alias
21508 \end_layout
21509
21510 \end_inset
21511
21512 : a (comma-separated) list of commands that fall back to the given 
21513 \begin_inset Flex Code
21514 status collapsed
21515
21516 \begin_layout Plain Layout
21517 LyXName
21518 \end_layout
21519
21520 \end_inset
21521
21522  in the current engine.
21523  This eases the switch of citation packages and engines.
21524  The 
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 alias
21530 \end_layout
21531
21532 \end_inset
21533
21534  can be compared to 
21535 \begin_inset Flex Code
21536 status collapsed
21537
21538 \begin_layout Plain Layout
21539 ObsoletedBy
21540 \end_layout
21541
21542 \end_inset
21543
21544  in layout definitions.
21545 \end_layout
21546
21547 \begin_layout Itemize
21548 \begin_inset Flex Code
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552 latexcmd
21553 \end_layout
21554
21555 \end_inset
21556
21557 : The actual \SpecialChar LaTeX
21558  command that is output.
21559  
21560 \end_layout
21561
21562 \begin_layout Standard
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567 Alias
21568 \end_layout
21569
21570 \end_inset
21571
21572  and 
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577 latexcmd
21578 \end_layout
21579
21580 \end_inset
21581
21582  are optional.
21583  If no 
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588 latexcmd
21589 \end_layout
21590
21591 \end_inset
21592
21593  is given, the 
21594 \begin_inset Flex Code
21595 status collapsed
21596
21597 \begin_layout Plain Layout
21598 LyXName
21599 \end_layout
21600
21601 \end_inset
21602
21603  will be output to \SpecialChar LaTeX
21604 .
21605 \end_layout
21606
21607 \begin_layout Standard
21608 Note further:
21609 \end_layout
21610
21611 \begin_layout Itemize
21612 Capitalization indicates that the command also has a capitalized form (
21613 \begin_inset Flex Code
21614 status collapsed
21615
21616 \begin_layout Plain Layout
21617
21618 \backslash
21619 Latexcmd
21620 \end_layout
21621
21622 \end_inset
21623
21624  vs.
21625  
21626 \begin_inset Flex Code
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630
21631 \backslash
21632 latexcmd
21633 \end_layout
21634
21635 \end_inset
21636
21637 ).
21638  These usually enforce up-casing of name prefixes (
21639 \emph on
21640 von Goethe
21641 \emph default
21642  
21643 \begin_inset Formula $\Rightarrow$
21644 \end_inset
21645
21646  
21647 \emph on
21648 Von Goethe
21649 \emph default
21650 ).
21651 \end_layout
21652
21653 \begin_layout Itemize
21654 Brackets 
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 []
21660 \end_layout
21661
21662 \end_inset
21663
21664  indicate the number of optional arguments (there can be 0–2).
21665 \end_layout
21666
21667 \begin_layout Itemize
21668 A star 
21669 \begin_inset Flex Code
21670 status collapsed
21671
21672 \begin_layout Plain Layout
21673 *
21674 \end_layout
21675
21676 \end_inset
21677
21678  indicates there is a starred version of the command (
21679 \begin_inset Flex Code
21680 status collapsed
21681
21682 \begin_layout Plain Layout
21683
21684 \backslash
21685 latexcmd*
21686 \end_layout
21687
21688 \end_inset
21689
21690  vs.
21691  
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696
21697 \backslash
21698 latexcmd
21699 \end_layout
21700
21701 \end_inset
21702
21703 ).
21704  
21705 \end_layout
21706
21707 \begin_deeper
21708 \begin_layout Standard
21709 By default, the starred version means: Output all authors even if it should
21710  be shortened with 
21711 \begin_inset Quotes eld
21712 \end_inset
21713
21714 et al.
21715 \begin_inset Quotes erd
21716 \end_inset
21717
21718  due to the 
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 MaxCiteNames
21724 \end_layout
21725
21726 \end_inset
21727
21728  threshold.
21729 \end_layout
21730
21731 \begin_layout Standard
21732 If the star has a different meaning for a given command, it can be specified
21733  in angle brackets: 
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 <!_stardesc!_stardesctooltip>
21739 \end_layout
21740
21741 \end_inset
21742
21743 .
21744  Maximal two translatable macro keywords, marked by the prefix 
21745 \begin_inset Flex Code
21746 status collapsed
21747
21748 \begin_layout Plain Layout
21749 !_
21750 \end_layout
21751
21752 \end_inset
21753
21754 , can be given.
21755  The first points to the string that replaces the 
21756 \begin_inset Quotes eld
21757 \end_inset
21758
21759 Full aut&hor list
21760 \begin_inset Quotes erd
21761 \end_inset
21762
21763  checkbox label in the citation dialog, the second one to an optional tool
21764  tip for this checkbox.
21765  
21766 \end_layout
21767
21768 \begin_layout Standard
21769 Note that these two macros have to be defined in a 
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 CiteFormat
21775 \end_layout
21776
21777 \end_inset
21778
21779  (see next section), dropping the 
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784 !
21785 \end_layout
21786
21787 \end_inset
21788
21789  from the prefix, like this: 
21790 \end_layout
21791
21792 \begin_layout LyX-Code
21793 _stardesc Sta&rred command label
21794 \end_layout
21795
21796 \begin_layout LyX-Code
21797 _stardesctooltip Tooltip for the starred command checkbox.
21798 \end_layout
21799
21800 \end_deeper
21801 \begin_layout Itemize
21802 A dollar sign 
21803 \begin_inset Flex Code
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807 $
21808 \end_layout
21809
21810 \end_inset
21811
21812  indicates that this command features 
21813 \begin_inset Quotes eld
21814 \end_inset
21815
21816 qualified citation lists
21817 \begin_inset Quotes erd
21818 \end_inset
21819
21820 .
21821  This is a 
21822 \family sans
21823 Biblatex
21824 \family default
21825 -specific feature for multi-reference citations where an individual pre-
21826  and postnote can be given to each reference in the list.
21827  Please refer to the 
21828 \family sans
21829 Biblatex
21830 \family default
21831  manual for details.
21832 \end_layout
21833
21834 \begin_layout Subsection
21835 \begin_inset CommandInset label
21836 LatexCommand label
21837 name "subsec:Citation-format-description"
21838
21839 \end_inset
21840
21841 Cite format description
21842 \end_layout
21843
21844 \begin_layout Standard
21845 The 
21846 \begin_inset Flex Code
21847 status collapsed
21848
21849 \begin_layout Plain Layout
21850 CiteFormat
21851 \end_layout
21852
21853 \end_inset
21854
21855  blocks are used to describe how bibliographic information should be displayed,
21856  both within \SpecialChar LyX
21857  itself (in the citation dialog and in tooltips, for example)
21858  and in XHTML output.
21859  Such a block might look like this:
21860 \end_layout
21861
21862 \begin_layout LyX-Code
21863 CiteFormat
21864 \end_layout
21865
21866 \begin_layout LyX-Code
21867  article ...
21868 \end_layout
21869
21870 \begin_layout LyX-Code
21871  book ...
21872 \end_layout
21873
21874 \begin_layout LyX-Code
21875 End
21876 \end_layout
21877
21878 \begin_layout Standard
21879 or
21880 \end_layout
21881
21882 \begin_layout LyX-Code
21883 CiteFormat
21884 \end_layout
21885
21886 \begin_layout LyX-Code
21887  cite ...
21888 \end_layout
21889
21890 \begin_layout LyX-Code
21891  citet*[][] ...
21892 \end_layout
21893
21894 \begin_layout LyX-Code
21895 End
21896 \end_layout
21897
21898 \begin_layout Standard
21899 In the first case, the individual lines define how the bibliographic information
21900  associated with an article or book, respectively, is to be displayed, and
21901  such a definition can be given for any 
21902 \begin_inset Quotes els
21903 \end_inset
21904
21905 entry type
21906 \begin_inset Quotes ers
21907 \end_inset
21908
21909  that might be present in a Bib\SpecialChar TeX
21910  file.
21911  \SpecialChar LyX
21912  defines a default format in the source code that will be used if no specific
21913  definition has been given.
21914  \SpecialChar LyX
21915  predefines several formats in the file 
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920 stdciteformats.inc
21921 \end_layout
21922
21923 \end_inset
21924
21925 , which is included in most of \SpecialChar LyX
21926 's document classes.
21927 \end_layout
21928
21929 \begin_layout Standard
21930 In the second case, the lines define how a specific citation command (in
21931  the example 
21932 \begin_inset Flex Code
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936
21937 \backslash
21938 cite
21939 \end_layout
21940
21941 \end_inset
21942
21943
21944 \begin_inset Flex Code
21945 status collapsed
21946
21947 \begin_layout Plain Layout
21948
21949 \backslash
21950 citet
21951 \end_layout
21952
21953 \end_inset
21954
21955 ) is to be displayed on the citation inset label, in the citation dialog,
21956  menu or XHTML output.
21957  \SpecialChar LyX
21958  defines such formats for the citation style variants it supports via 
21959 \family sans
21960 Document\SpecialChar menuseparator
21961 Setting\SpecialChar menuseparator
21962 Bibliography\SpecialChar ldots
21963
21964 \family default
21965  in specific 
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 *.citeengine
21971 \end_layout
21972
21973 \end_inset
21974
21975  files that are shipped with \SpecialChar LyX
21976  (see 
21977 \begin_inset CommandInset ref
21978 LatexCommand ref
21979 reference "subsec:Cite-Engine-Files"
21980 plural "false"
21981 caps "false"
21982 noprefix "false"
21983
21984 \end_inset
21985
21986 ).
21987 \end_layout
21988
21989 \begin_layout Standard
21990 The definitions use a simple language that allows Bib\SpecialChar TeX
21991  keys to be replaced
21992  with their values.
21993  Keys should be enclosed in 
21994 \begin_inset Flex Code
21995 status collapsed
21996
21997 \begin_layout Plain Layout
21998 %
21999 \end_layout
22000
22001 \end_inset
22002
22003  signs, e.g.: 
22004 \begin_inset Flex Code
22005 status collapsed
22006
22007 \begin_layout Plain Layout
22008 %author%
22009 \end_layout
22010
22011 \end_inset
22012
22013 .
22014  So a simple definition might look like this:
22015 \end_layout
22016
22017 \begin_layout LyX-Code
22018 misc %author%, 
22019 \begin_inset Quotes eld
22020 \end_inset
22021
22022 %title%
22023 \begin_inset Quotes erd
22024 \end_inset
22025
22026 .
22027 \end_layout
22028
22029 \begin_layout Standard
22030 This would print the author, followed by a comma, followed by the title,
22031  in quotes, followed by a period.
22032 \end_layout
22033
22034 \begin_layout Standard
22035 Of course, sometimes you may want to print a key only if it exists.
22036  This can be done by using a conditional construction, such as: 
22037 \begin_inset Flex Code
22038 status collapsed
22039
22040 \begin_layout Plain Layout
22041 {%volume%[[vol.
22042 \begin_inset space ~
22043 \end_inset
22044
22045 %volume%]]}
22046 \end_layout
22047
22048 \end_inset
22049
22050 .
22051  This says: If the 
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 volume
22057 \end_layout
22058
22059 \end_inset
22060
22061  key exists, then print 
22062 \begin_inset Quotes eld
22063 \end_inset
22064
22065 vol.
22066 \begin_inset space ~
22067 \end_inset
22068
22069
22070 \begin_inset Quotes erd
22071 \end_inset
22072
22073  followed by the volume key.
22074  It is also possible to have an else clause in the conditional, such as:
22075 \begin_inset Newline newline
22076 \end_inset
22077
22078
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 {%author%[[%author%]][[%editor%, ed.]]}
22084 \end_layout
22085
22086 \end_inset
22087
22088 .
22089 \begin_inset Newline newline
22090 \end_inset
22091
22092 Here, the 
22093 \begin_inset Flex Code
22094 status collapsed
22095
22096 \begin_layout Plain Layout
22097 author
22098 \end_layout
22099
22100 \end_inset
22101
22102  key is printed if it exists; otherwise, the editor key is printed, followed
22103  by 
22104 \begin_inset Quotes eld
22105 \end_inset
22106
22107 ,
22108 \begin_inset space ~
22109 \end_inset
22110
22111 ed.
22112 \begin_inset Quotes erd
22113 \end_inset
22114
22115  Note that the key is again enclosed in 
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 %
22121 \end_layout
22122
22123 \end_inset
22124
22125  signs; the entire conditional is enclosed in braces; and the if and else
22126  clauses are enclosed in double brackets, 
22127 \begin_inset Quotes eld
22128 \end_inset
22129
22130
22131 \begin_inset Flex Code
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135 [[
22136 \end_layout
22137
22138 \end_inset
22139
22140
22141 \begin_inset Quotes eld
22142 \end_inset
22143
22144  and 
22145 \begin_inset Quotes eld
22146 \end_inset
22147
22148
22149 \begin_inset Flex Code
22150 status collapsed
22151
22152 \begin_layout Plain Layout
22153 ]]
22154 \end_layout
22155
22156 \end_inset
22157
22158
22159 \begin_inset Quotes erd
22160 \end_inset
22161
22162 .
22163  There must be no space between any of these.
22164 \end_layout
22165
22166 \begin_layout Standard
22167 Next to the entry keys, there are some special keys that can be used for
22168  these conditionals:
22169 \end_layout
22170
22171 \begin_layout Itemize
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 {%dialog%[[true]][[false]]}
22177 \end_layout
22178
22179 \end_inset
22180
22181 : process the 
22182 \begin_inset Quotes eld
22183 \end_inset
22184
22185 true
22186 \begin_inset Quotes erd
22187 \end_inset
22188
22189  part for dialogs and menus, the 
22190 \begin_inset Quotes eld
22191 \end_inset
22192
22193 false
22194 \begin_inset Quotes erd
22195 \end_inset
22196
22197  part for other contexts (workarea, export)
22198 \end_layout
22199
22200 \begin_layout Itemize
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 {%export%[[true]][[false]]}
22206 \end_layout
22207
22208 \end_inset
22209
22210 : process the 
22211 \begin_inset Quotes eld
22212 \end_inset
22213
22214 true
22215 \begin_inset Quotes erd
22216 \end_inset
22217
22218  part for export and menus, the 
22219 \begin_inset Quotes eld
22220 \end_inset
22221
22222 false
22223 \begin_inset Quotes erd
22224 \end_inset
22225
22226  part for other contexts (workarea, dialog)
22227 \end_layout
22228
22229 \begin_layout Itemize
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 {%next%[[true]]}
22235 \end_layout
22236
22237 \end_inset
22238
22239 : process the 
22240 \begin_inset Quotes eld
22241 \end_inset
22242
22243 true
22244 \begin_inset Quotes erd
22245 \end_inset
22246
22247  part if another item follows (e.
22248 \begin_inset space \thinspace{}
22249 \end_inset
22250
22251 g., in a citation with multiple keys)
22252 \end_layout
22253
22254 \begin_layout Itemize
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259 {%second%[[true]][[false]]}
22260 \end_layout
22261
22262 \end_inset
22263
22264 : process the 
22265 \begin_inset Quotes eld
22266 \end_inset
22267
22268 true
22269 \begin_inset Quotes erd
22270 \end_inset
22271
22272  if this is the second of multiple items, else the 
22273 \begin_inset Quotes eld
22274 \end_inset
22275
22276 false
22277 \begin_inset Quotes erd
22278 \end_inset
22279
22280  part
22281 \end_layout
22282
22283 \begin_layout Itemize
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 {%ifstar%[[true]][[false]]}
22289 \end_layout
22290
22291 \end_inset
22292
22293 : process the 
22294 \begin_inset Quotes eld
22295 \end_inset
22296
22297 true
22298 \begin_inset Quotes erd
22299 \end_inset
22300
22301  part for starred citation commands (such as 
22302 \begin_inset Flex Code
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306
22307 \backslash
22308 cite*
22309 \end_layout
22310
22311 \end_inset
22312
22313 ), the false part for unstarred
22314 \end_layout
22315
22316 \begin_layout Itemize
22317 \begin_inset Flex Code
22318 status collapsed
22319
22320 \begin_layout Plain Layout
22321 {%ifentrytype:<type>%[[true]][[false]]}
22322 \end_layout
22323
22324 \end_inset
22325
22326 : process the 
22327 \begin_inset Quotes eld
22328 \end_inset
22329
22330 true
22331 \begin_inset Quotes erd
22332 \end_inset
22333
22334  if the current entry type matches 
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339 <type>
22340 \end_layout
22341
22342 \end_inset
22343
22344 , else the false part (e.g., in a citation definition: 
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22350 \end_layout
22351
22352 \end_inset
22353
22354 )
22355 \end_layout
22356
22357 \begin_layout Itemize
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 {%ifmultiple:<authortype>%[[true]][[false]]}
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  if the current author type (author, editor etc.) has multiple authors, else
22376  the false part (e.g., in a bibliography definition: 
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 {%ifmultiple:editor%[[eds.]][[ed.]]}
22382 \end_layout
22383
22384 \end_inset
22385
22386 )
22387 \end_layout
22388
22389 \begin_layout Itemize
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 {%ifqualified%[[true]][[false]]}
22395 \end_layout
22396
22397 \end_inset
22398
22399 : process the 
22400 \begin_inset Quotes eld
22401 \end_inset
22402
22403 true
22404 \begin_inset Quotes erd
22405 \end_inset
22406
22407  part if the current citation is a qualified citation list (a specific 
22408 \family sans
22409 Biblatex
22410 \family default
22411  format for multi-reference citations), the false part if this is not the
22412  case.
22413 \end_layout
22414
22415 \begin_layout Standard
22416 We said that 
22417 \begin_inset Flex Code
22418 status collapsed
22419
22420 \begin_layout Plain Layout
22421 %author%
22422 \end_layout
22423
22424 \end_inset
22425
22426  prints the author key as it is recorded in the bibliography file.
22427  This might not be what you want, since it will result in a string such
22428  as 
22429 \begin_inset Quotes eld
22430 \end_inset
22431
22432 Miller, Peter and Smith, Mary and White, Jane
22433 \begin_inset Quotes erd
22434 \end_inset
22435
22436  (since 
22437 \begin_inset Quotes eld
22438 \end_inset
22439
22440 and
22441 \begin_inset Quotes erd
22442 \end_inset
22443
22444  is used by Bib\SpecialChar TeX
22445  to delimit authors).
22446  \SpecialChar LyX
22447  therefore provides some methods to get properly formatted name lists (which
22448  will also get translated).
22449  The following keys are provided:
22450 \end_layout
22451
22452 \begin_layout Enumerate
22453 For name lists with pre- and surname, suitable for the main authors/editors
22454  of a bibliography item.
22455  The 
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 <nametype>
22461 \end_layout
22462
22463 \end_inset
22464
22465  part denotes the kind of list that is requested (e.g.
22466  
22467 \begin_inset Flex Code
22468 status collapsed
22469
22470 \begin_layout Plain Layout
22471 <nametype:author>
22472 \end_layout
22473
22474 \end_inset
22475
22476 ):
22477 \end_layout
22478
22479 \begin_deeper
22480 \begin_layout Itemize
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 %abbrvnames:<nametype>%
22486 \end_layout
22487
22488 \end_inset
22489
22490 : Provides a name list which is abbreviated (with 
22491 \begin_inset Quotes eld
22492 \end_inset
22493
22494 et al.
22495 \begin_inset Quotes erd
22496 \end_inset
22497
22498 ) when 
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 MaxCiteNames
22504 \end_layout
22505
22506 \end_inset
22507
22508  is reached.
22509 \end_layout
22510
22511 \begin_layout Itemize
22512 \begin_inset Flex Code
22513 status collapsed
22514
22515 \begin_layout Plain Layout
22516 %fullnames:<nametype>%
22517 \end_layout
22518
22519 \end_inset
22520
22521 : Provides a full name list (never abbreviated with 
22522 \begin_inset Quotes eld
22523 \end_inset
22524
22525 et al.
22526 \begin_inset Quotes erd
22527 \end_inset
22528
22529 ).
22530 \end_layout
22531
22532 \begin_layout Itemize
22533 \begin_inset Flex Code
22534 status collapsed
22535
22536 \begin_layout Plain Layout
22537 %forceabbrvnames:<nametype>%
22538 \end_layout
22539
22540 \end_inset
22541
22542 : Provides a name list which is always abbreviated (with 
22543 \begin_inset Quotes eld
22544 \end_inset
22545
22546 et al.
22547 \begin_inset Quotes erd
22548 \end_inset
22549
22550 ) irrespective of 
22551 \begin_inset Flex Code
22552 status collapsed
22553
22554 \begin_layout Plain Layout
22555 MaxCiteNames
22556 \end_layout
22557
22558 \end_inset
22559
22560 .
22561 \end_layout
22562
22563 \end_deeper
22564 \begin_layout Enumerate
22565 Alternative name lists with pre- and surname, if the order of pre- and surname
22566  inside the bibliography item differs (as in: 
22567 \begin_inset Quotes eld
22568 \end_inset
22569
22570 Miller, John: Some text, in: Mary Smith, ed.: A volume
22571 \begin_inset Quotes erd
22572 \end_inset
22573
22574 ):
22575 \end_layout
22576
22577 \begin_deeper
22578 \begin_layout Itemize
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 %abbrvbynames:<nametype>%
22584 \end_layout
22585
22586 \end_inset
22587
22588 : Provides a name list which is abbreviated (with 
22589 \begin_inset Quotes eld
22590 \end_inset
22591
22592 et al.
22593 \begin_inset Quotes erd
22594 \end_inset
22595
22596 ) when 
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 MaxCiteNames
22602 \end_layout
22603
22604 \end_inset
22605
22606  is reached.
22607 \end_layout
22608
22609 \begin_layout Itemize
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614 %fullbynames:<nametype>%
22615 \end_layout
22616
22617 \end_inset
22618
22619 : Provides a full name list (never abbreviated with 
22620 \begin_inset Quotes eld
22621 \end_inset
22622
22623 et al.
22624 \begin_inset Quotes erd
22625 \end_inset
22626
22627 ).
22628 \end_layout
22629
22630 \begin_layout Itemize
22631 \begin_inset Flex Code
22632 status collapsed
22633
22634 \begin_layout Plain Layout
22635 %forceabbrvbynames:<nametype>%
22636 \end_layout
22637
22638 \end_inset
22639
22640 : Provides a name list which is always abbreviated (with 
22641 \begin_inset Quotes eld
22642 \end_inset
22643
22644 et al.
22645 \begin_inset Quotes erd
22646 \end_inset
22647
22648 ) irrespective of 
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 MaxCiteNames
22654 \end_layout
22655
22656 \end_inset
22657
22658 .
22659 \end_layout
22660
22661 \end_deeper
22662 \begin_layout Enumerate
22663 And finally name lists which consist of family names only, as used in author-yea
22664 r citation labels.
22665  These do not take a 
22666 \begin_inset Flex Code
22667 status collapsed
22668
22669 \begin_layout Plain Layout
22670 <nametype>
22671 \end_layout
22672
22673 \end_inset
22674
22675  part, but always return either an author list or, if this does not exist,
22676  an editor list (as common in author-year labels):
22677 \end_layout
22678
22679 \begin_deeper
22680 \begin_layout Itemize
22681 \begin_inset Flex Code
22682 status collapsed
22683
22684 \begin_layout Plain Layout
22685 %abbrvciteauthor%
22686 \end_layout
22687
22688 \end_inset
22689
22690 : Provides a name list which is abbreviated (with 
22691 \begin_inset Quotes eld
22692 \end_inset
22693
22694 et al.
22695 \begin_inset Quotes erd
22696 \end_inset
22697
22698 ) when 
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 MaxCiteNames
22704 \end_layout
22705
22706 \end_inset
22707
22708  is reached.
22709 \end_layout
22710
22711 \begin_layout Itemize
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 %fullciteauthor%
22717 \end_layout
22718
22719 \end_inset
22720
22721 : Provides a full name list (never abbreviated with 
22722 \begin_inset Quotes eld
22723 \end_inset
22724
22725 et al.
22726 \begin_inset Quotes erd
22727 \end_inset
22728
22729 ).
22730 \end_layout
22731
22732 \begin_layout Itemize
22733 \begin_inset Flex Code
22734 status collapsed
22735
22736 \begin_layout Plain Layout
22737 %forceabbrvciteauthor%
22738 \end_layout
22739
22740 \end_inset
22741
22742 : Provides a name list which is always abbreviated (with 
22743 \begin_inset Quotes eld
22744 \end_inset
22745
22746 et al.
22747 \begin_inset Quotes erd
22748 \end_inset
22749
22750 ) irrespective of 
22751 \begin_inset Flex Code
22752 status collapsed
22753
22754 \begin_layout Plain Layout
22755 MaxCiteNames
22756 \end_layout
22757
22758 \end_inset
22759
22760 .
22761 \end_layout
22762
22763 \end_deeper
22764 \begin_layout Standard
22765 The order of pre- and surname in the former two lists can be adjusted by
22766  these macros:
22767 \end_layout
22768
22769 \begin_layout Itemize
22770 \begin_inset Flex Code
22771 status collapsed
22772
22773 \begin_layout Plain Layout
22774 !firstnameform %surname%, %prename%
22775 \end_layout
22776
22777 \end_inset
22778
22779  (first author in lists of type 1)
22780 \end_layout
22781
22782 \begin_layout Itemize
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 !othernameform %surname%, %prename%
22788 \end_layout
22789
22790 \end_inset
22791
22792  (other authors in lists of type 1)
22793 \end_layout
22794
22795 \begin_layout Itemize
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800 !firstbynameform %prename% %surname%
22801 \end_layout
22802
22803 \end_inset
22804
22805  (first author in lists of type 2)
22806 \end_layout
22807
22808 \begin_layout Itemize
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 !otherbynameform %prename% %surname%
22814 \end_layout
22815
22816 \end_inset
22817
22818  (other authors in lists of type 2)
22819 \end_layout
22820
22821 \begin_layout Standard
22822 This allows you to configure namings like 
22823 \begin_inset Quotes eld
22824 \end_inset
22825
22826 Miller, Peter and Mary Smith: \SpecialChar ldots
22827 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22828
22829 \begin_inset Quotes erd
22830 \end_inset
22831
22832 .
22833 \end_layout
22834
22835 \begin_layout Standard
22836 There is one other piece of syntax available in definitions, which looks
22837  like this: 
22838 \begin_inset Flex Code
22839 status collapsed
22840
22841 \begin_layout Plain Layout
22842 {!<i>!}
22843 \end_layout
22844
22845 \end_inset
22846
22847 .
22848  This defines a piece of formatting information that is to be used when
22849  creating 
22850 \begin_inset Quotes eld
22851 \end_inset
22852
22853 rich text
22854 \begin_inset Quotes erd
22855 \end_inset
22856
22857 .
22858  Obviously, we do not want to output HTML tags when writing plain text,
22859  so they should be wrapped in 
22860 \begin_inset Quotes eld
22861 \end_inset
22862
22863 {!
22864 \begin_inset Quotes erd
22865 \end_inset
22866
22867  and 
22868 \begin_inset Quotes eld
22869 \end_inset
22870
22871 !}
22872 \begin_inset Quotes erd
22873 \end_inset
22874
22875 .
22876 \end_layout
22877
22878 \begin_layout Standard
22879 Two special sorts of definitions are also possible in a 
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884 CiteFormat
22885 \end_layout
22886
22887 \end_inset
22888
22889  block.
22890  An example of the first would be:
22891 \end_layout
22892
22893 \begin_layout LyX-Code
22894 !quotetitle 
22895 \begin_inset Quotes eld
22896 \end_inset
22897
22898 %title%
22899 \begin_inset Quotes erd
22900 \end_inset
22901
22902
22903 \end_layout
22904
22905 \begin_layout Standard
22906 This is an abbreviation, or macro, and it can be used by treating it as
22907  if it were a key: 
22908 \begin_inset Flex Code
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 %!quotetitle%
22913 \end_layout
22914
22915 \end_inset
22916
22917 .
22918  \SpecialChar LyX
22919  will treat 
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924 %!quotetitle%
22925 \end_layout
22926
22927 \end_inset
22928
22929  exactly as it would treat its definition.
22930  So, let us issue the obvious 
22931 \emph on
22932 warning
22933 \emph default
22934 .
22935  Do not do this:
22936 \end_layout
22937
22938 \begin_layout LyX-Code
22939 !funfun %funfun%
22940 \end_layout
22941
22942 \begin_layout Standard
22943 or anything like it.
22944  \SpecialChar LyX
22945  shouldn't go into an infinite loop, but it may go into a long one before
22946  it gives up.
22947 \end_layout
22948
22949 \begin_layout Standard
22950 The second sort of special definition might look like this:
22951 \end_layout
22952
22953 \begin_layout LyX-Code
22954
22955 \change_inserted -712698321 1517060160
22956 B
22957 \change_unchanged
22958 _pptext pp.
22959 \end_layout
22960
22961 \begin_layout Standard
22962 This defines a translatable piece of text, which allows relevant parts of
22963  the bibliography or citation to be translated.
22964  It can be included in a definition by treating it as a key: 
22965 \begin_inset Flex Code
22966 status collapsed
22967
22968 \begin_layout Plain Layout
22969 %
22970 \change_inserted -712698321 1517060167
22971 B
22972 \change_unchanged
22973 _pptext%
22974 \end_layout
22975
22976 \end_inset
22977
22978 .
22979  
22980 \change_inserted -712698321 1517060791
22981 Note that there are two different translation paths: All definitions starting
22982  with 
22983 \begin_inset Flex Code
22984 status collapsed
22985
22986 \begin_layout Plain Layout
22987
22988 \change_inserted -712698321 1517060380
22989 B_
22990 \change_unchanged
22991
22992 \end_layout
22993
22994 \end_inset
22995
22996 , such as in the example above, will be translated to the currently active
22997  buffer language (so the translation will match the generated document).
22998  All definitions starting with underscore only will be translated to the
22999  GUI language.
23000  This is the proper translation for strings that only occur in the dialogs
23001  or on buttons, such as this one:
23002 \end_layout
23003
23004 \begin_layout LyX-Code
23005
23006 \change_inserted -712698321 1517060574
23007 _addtobib Add to bibliography only.
23008 \change_unchanged
23009
23010 \end_layout
23011
23012 \begin_layout Standard
23013 Several of these 
23014 \change_inserted -712698321 1517060688
23015 translatable strings 
23016 \change_unchanged
23017 are predefined in 
23018 \begin_inset Flex Code
23019 status collapsed
23020
23021 \begin_layout Plain Layout
23022 stdciteformats.inc
23023 \end_layout
23024
23025 \end_inset
23026
23027  and the diverse 
23028 \begin_inset Flex Code
23029 status collapsed
23030
23031 \begin_layout Plain Layout
23032 *.citeengine
23033 \end_layout
23034
23035 \end_inset
23036
23037  files.
23038  Note that these are not macros, in the sense just defined.
23039  They will not be expanded.
23040 \end_layout
23041
23042 \begin_layout Standard
23043 So here then is an example that use
23044 \change_inserted -712698321 1517061156
23045 s
23046 \change_unchanged
23047  
23048 \change_deleted -712698321 1517061147
23049 all
23050 \change_inserted -712698321 1517061148
23051 several of
23052 \change_unchanged
23053  these features:
23054 \begin_inset VSpace defskip
23055 \end_inset
23056
23057
23058 \end_layout
23059
23060 \begin_layout Standard
23061 \noindent
23062
23063 \family sans
23064 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %
23065 \change_inserted -712698321 1517060173
23066 B
23067 \change_unchanged
23068 _edtext%, ]]}]]}
23069 \end_layout
23070
23071 \begin_layout Standard
23072 \begin_inset VSpace defskip
23073 \end_inset
23074
23075 This defines a macro that prints the author, followed by a comma, if the
23076  
23077 \begin_inset Flex Code
23078 status collapsed
23079
23080 \begin_layout Plain Layout
23081 author
23082 \end_layout
23083
23084 \end_inset
23085
23086  key is defined, or else prints the name of the editor, followed by the
23087  
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092
23093 \change_inserted -712698321 1517060231
23094 B
23095 \change_unchanged
23096 _edtext
23097 \end_layout
23098
23099 \end_inset
23100
23101  or its translation (it is by default 
23102 \begin_inset Quotes eld
23103 \end_inset
23104
23105 ed.
23106 \begin_inset Quotes erd
23107 \end_inset
23108
23109 ), if the 
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 editor
23115 \end_layout
23116
23117 \end_inset
23118
23119  key is defined.
23120  Note that this is in fact defined in 
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 stdciteformats.inc
23126 \end_layout
23127
23128 \end_inset
23129
23130 , so you can use it in your own definitions, or re-definitions, if you load
23131  that file first.
23132 \end_layout
23133
23134 \begin_layout Section
23135 \begin_inset CommandInset label
23136 LatexCommand label
23137 name "sec:Tags-for-XHTML"
23138
23139 \end_inset
23140
23141 Tags for XHTML output
23142 \end_layout
23143
23144 \begin_layout Standard
23145 As with \SpecialChar LaTeX
23146  or DocBook, the format of \SpecialChar LyX
23147 's XHTML output is also controlled by
23148  layout information.
23149  In general, \SpecialChar LyX
23150  provides sensible defaults and, as mentioned earlier, it will
23151  even construct default CSS style rules from the other layout tags.
23152  For example, \SpecialChar LyX
23153  will attempt to use the information provided in the 
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 Font
23159 \end_layout
23160
23161 \end_inset
23162
23163  declaration for the Chapter style to write CSS that will appropriately
23164  format chapter headings.
23165 \end_layout
23166
23167 \begin_layout Standard
23168 In many cases, then, you may not have to do anything at all to get acceptable
23169  XHTML output for your own environments, custom insets, and so forth.
23170  But in some cases you will, and so \SpecialChar LyX
23171  provides a number of layout tags that
23172  can be used to customize the XHTML and CSS that are generated.
23173 \end_layout
23174
23175 \begin_layout Standard
23176 Note that there are two tags, 
23177 \begin_inset Flex Code
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181 HTMLPreamble
23182 \end_layout
23183
23184 \end_inset
23185
23186  and 
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 AddToHTMLPreamble
23192 \end_layout
23193
23194 \end_inset
23195
23196  that may appear outside style and inset declarations.
23197  See 
23198 \begin_inset CommandInset ref
23199 LatexCommand ref
23200 reference "subsec:General-text-class"
23201
23202 \end_inset
23203
23204  for details on these.
23205 \end_layout
23206
23207 \begin_layout Subsection
23208 \begin_inset CommandInset label
23209 LatexCommand label
23210 name "subsec:Paragraph-Style-XHTML"
23211
23212 \end_inset
23213
23214 Paragraph styles
23215 \end_layout
23216
23217 \begin_layout Standard
23218 The sort of XHTML \SpecialChar LyX
23219  outputs for a paragraph depends upon whether we are dealing
23220  with a normal paragraph, a command, or an environment, where this is itself
23221  determined by the contents of the corresponding 
23222 \begin_inset Flex Code
23223 status collapsed
23224
23225 \begin_layout Plain Layout
23226 \SpecialChar LaTeX
23227 Type
23228 \end_layout
23229
23230 \end_inset
23231
23232  tag.
23233  
23234 \end_layout
23235
23236 \begin_layout Standard
23237 For a command or normal paragraph, the output XHTML has the following form:
23238 \end_layout
23239
23240 \begin_layout LyX-Code
23241
23242 \family sans
23243 <tag attr=
23244 \begin_inset Quotes erd
23245 \end_inset
23246
23247 value
23248 \begin_inset Quotes erd
23249 \end_inset
23250
23251 >
23252 \end_layout
23253
23254 \begin_layout LyX-Code
23255
23256 \family sans
23257 <labeltag attr=
23258 \begin_inset Quotes erd
23259 \end_inset
23260
23261 value
23262 \begin_inset Quotes erd
23263 \end_inset
23264
23265 >Label</labeltag>
23266 \end_layout
23267
23268 \begin_layout LyX-Code
23269
23270 \family sans
23271 Contents of the paragraph.
23272 \end_layout
23273
23274 \begin_layout LyX-Code
23275
23276 \family sans
23277 </tag>
23278 \end_layout
23279
23280 \begin_layout Standard
23281 The label tags are of course omitted if the paragraph does not have a label.
23282 \end_layout
23283
23284 \begin_layout Standard
23285 For an environment that is not some sort of list, the XHTML takes this form:
23286 \end_layout
23287
23288 \begin_layout LyX-Code
23289
23290 \family sans
23291 <tag attr=
23292 \begin_inset Quotes erd
23293 \end_inset
23294
23295 value
23296 \begin_inset Quotes erd
23297 \end_inset
23298
23299 >
23300 \end_layout
23301
23302 \begin_layout LyX-Code
23303
23304 \family sans
23305 <itemtag attr=
23306 \begin_inset Quotes erd
23307 \end_inset
23308
23309 value
23310 \begin_inset Quotes erd
23311 \end_inset
23312
23313 ><labeltag attr=
23314 \begin_inset Quotes erd
23315 \end_inset
23316
23317 value
23318 \begin_inset Quotes erd
23319 \end_inset
23320
23321 >Environment Label</labeltag>First paragraph.</itemtag>
23322 \end_layout
23323
23324 \begin_layout LyX-Code
23325
23326 \family sans
23327 <itemtag>Second paragraph.</itemtag>
23328 \end_layout
23329
23330 \begin_layout LyX-Code
23331
23332 \family sans
23333 </tag>
23334 \end_layout
23335
23336 \begin_layout Standard
23337 Note that the label is output only for the first paragraph, as it should
23338  be for a theorem, for example.
23339  
23340 \end_layout
23341
23342 \begin_layout Standard
23343 For a list, we have one of these forms:
23344 \end_layout
23345
23346 \begin_layout LyX-Code
23347
23348 \family sans
23349 <tag attr=
23350 \begin_inset Quotes erd
23351 \end_inset
23352
23353 value
23354 \begin_inset Quotes erd
23355 \end_inset
23356
23357 >
23358 \end_layout
23359
23360 \begin_layout LyX-Code
23361
23362 \family sans
23363 <itemtag attr=
23364 \begin_inset Quotes erd
23365 \end_inset
23366
23367 value
23368 \begin_inset Quotes erd
23369 \end_inset
23370
23371 ><labeltag attr=
23372 \begin_inset Quotes erd
23373 \end_inset
23374
23375 value
23376 \begin_inset Quotes erd
23377 \end_inset
23378
23379 >List Label</labeltag>First item.</itemtag>
23380 \end_layout
23381
23382 \begin_layout LyX-Code
23383
23384 \family sans
23385 <itemtag attr=
23386 \begin_inset Quotes erd
23387 \end_inset
23388
23389 value
23390 \begin_inset Quotes erd
23391 \end_inset
23392
23393 ><labeltag attr=
23394 \begin_inset Quotes erd
23395 \end_inset
23396
23397 value
23398 \begin_inset Quotes erd
23399 \end_inset
23400
23401 >List Label</labeltag>Second item.</itemtag>
23402 \end_layout
23403
23404 \begin_layout LyX-Code
23405
23406 \family sans
23407 </tag>
23408 \end_layout
23409
23410 \begin_layout LyX-Code
23411
23412 \end_layout
23413
23414 \begin_layout LyX-Code
23415
23416 \family sans
23417 <tag attr=
23418 \begin_inset Quotes erd
23419 \end_inset
23420
23421 value
23422 \begin_inset Quotes erd
23423 \end_inset
23424
23425 >
23426 \end_layout
23427
23428 \begin_layout LyX-Code
23429
23430 \family sans
23431 <labeltag attr=
23432 \begin_inset Quotes erd
23433 \end_inset
23434
23435 value
23436 \begin_inset Quotes erd
23437 \end_inset
23438
23439 >List Label</labeltag><itemtag attr=
23440 \begin_inset Quotes erd
23441 \end_inset
23442
23443 value
23444 \begin_inset Quotes erd
23445 \end_inset
23446
23447 >First item.</itemtag>
23448 \end_layout
23449
23450 \begin_layout LyX-Code
23451
23452 \family sans
23453 <labeltag attr=
23454 \begin_inset Quotes erd
23455 \end_inset
23456
23457 value
23458 \begin_inset Quotes erd
23459 \end_inset
23460
23461 >List Label</labeltag><itemtag attr=
23462 \begin_inset Quotes erd
23463 \end_inset
23464
23465 value
23466 \begin_inset Quotes erd
23467 \end_inset
23468
23469 >Second item.</itemtag>
23470 \end_layout
23471
23472 \begin_layout LyX-Code
23473
23474 \family sans
23475 </tag>
23476 \end_layout
23477
23478 \begin_layout Standard
23479 Note the different orders of 
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484 labeltag
23485 \end_layout
23486
23487 \end_inset
23488
23489  and 
23490 \begin_inset Flex Code
23491 status collapsed
23492
23493 \begin_layout Plain Layout
23494 itemtag
23495 \end_layout
23496
23497 \end_inset
23498
23499 .
23500  Which order we get depends upon the setting of 
23501 \begin_inset Flex Code
23502 status collapsed
23503
23504 \begin_layout Plain Layout
23505 HTMLLabelFirst
23506 \end_layout
23507
23508 \end_inset
23509
23510 : If 
23511 \begin_inset Flex Code
23512 status collapsed
23513
23514 \begin_layout Plain Layout
23515 HTMLLabelFirst
23516 \end_layout
23517
23518 \end_inset
23519
23520  is false (the default), you get the first of these, with the label within
23521  the item; if true, you get the second, with the label outside the item.
23522 \end_layout
23523
23524 \begin_layout Standard
23525 The specific tags and attributes output for each paragraph type can be controlle
23526 d by means of the layout tags we are about to describe.
23527  As mentioned earlier, however, \SpecialChar LyX
23528  uses sensible defaults for many of these,
23529  so you often may not need to do very much to get good XHTML output.
23530  Think of the available tags as there so you can tweak things to your liking.
23531 \end_layout
23532
23533 \begin_layout Description
23534 \begin_inset Flex Code
23535 status collapsed
23536
23537 \begin_layout Plain Layout
23538 HTMLAttr
23539 \end_layout
23540
23541 \end_inset
23542
23543  [
23544 \begin_inset Flex Code
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548 string
23549 \end_layout
23550
23551 \end_inset
23552
23553 ] Specifies attribute information to be output with the main tag.
23554  For example, 
23555 \begin_inset Quotes eld
23556 \end_inset
23557
23558
23559 \begin_inset Flex Code
23560 status collapsed
23561
23562 \begin_layout Plain Layout
23563 class=`mydiv'
23564 \end_layout
23565
23566 \end_inset
23567
23568
23569 \begin_inset Quotes erd
23570 \end_inset
23571
23572 .
23573  By default, \SpecialChar LyX
23574  will output 
23575 \begin_inset Quotes eld
23576 \end_inset
23577
23578
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583 class=`layoutname'
23584 \end_layout
23585
23586 \end_inset
23587
23588
23589 \begin_inset Quotes erd
23590 \end_inset
23591
23592 , where 
23593 \begin_inset Flex Code
23594 status collapsed
23595
23596 \begin_layout Plain Layout
23597 layoutname
23598 \end_layout
23599
23600 \end_inset
23601
23602  is the \SpecialChar LyX
23603  name of the layout, made lowercase, for example: chapter.
23604  This should 
23605 \emph on
23606 not
23607 \emph default
23608  contain any style information.
23609  Use 
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 HTMLStyle
23615 \end_layout
23616
23617 \end_inset
23618
23619  for that purpose.
23620 \end_layout
23621
23622 \begin_layout Description
23623 \begin_inset Flex Code
23624 status collapsed
23625
23626 \begin_layout Plain Layout
23627 HTMLForceCSS
23628 \end_layout
23629
23630 \end_inset
23631
23632  [
23633 \begin_inset Flex Code
23634 status collapsed
23635
23636 \begin_layout Plain Layout
23637
23638 \emph on
23639 0
23640 \emph default
23641 ,1
23642 \end_layout
23643
23644 \end_inset
23645
23646 ] Whether to output the default CSS information \SpecialChar LyX
23647  generates for this layout,
23648  even if additional information is explicitly provided via 
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 HTMLStyle
23654 \end_layout
23655
23656 \end_inset
23657
23658 .
23659  Setting this to 
23660 \begin_inset Flex Code
23661 status collapsed
23662
23663 \begin_layout Plain Layout
23664 1
23665 \end_layout
23666
23667 \end_inset
23668
23669  allows you to alter or augment the generated CSS, rather than to override
23670  it completely.
23671  Default is 
23672 \begin_inset Flex Code
23673 status collapsed
23674
23675 \begin_layout Plain Layout
23676 0
23677 \end_layout
23678
23679 \end_inset
23680
23681 .
23682 \end_layout
23683
23684 \begin_layout Description
23685 \begin_inset Flex Code
23686 status collapsed
23687
23688 \begin_layout Plain Layout
23689 HTMLItem
23690 \end_layout
23691
23692 \end_inset
23693
23694  [
23695 \begin_inset Flex Code
23696 status collapsed
23697
23698 \begin_layout Plain Layout
23699 string
23700 \end_layout
23701
23702 \end_inset
23703
23704 ] The tag to be used for individual paragraphs of environments, replacing
23705  
23706 \begin_inset Flex Code
23707 status collapsed
23708
23709 \begin_layout Plain Layout
23710 itemtag
23711 \end_layout
23712
23713 \end_inset
23714
23715  in the examples above.
23716  Defaults to 
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 div
23722 \end_layout
23723
23724 \end_inset
23725
23726 .
23727 \end_layout
23728
23729 \begin_layout Description
23730 \begin_inset Flex Code
23731 status collapsed
23732
23733 \begin_layout Plain Layout
23734 HTMLItemAttr
23735 \end_layout
23736
23737 \end_inset
23738
23739  [
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 string
23745 \end_layout
23746
23747 \end_inset
23748
23749 ] Attributes for the item tag.
23750  Defaults to
23751 \begin_inset Newline newline
23752 \end_inset
23753
23754
23755 \begin_inset Quotes eld
23756 \end_inset
23757
23758
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763 class=`layoutname_item'
23764 \end_layout
23765
23766 \end_inset
23767
23768
23769 \begin_inset Quotes erd
23770 \end_inset
23771
23772 .
23773  This should 
23774 \emph on
23775 not
23776 \emph default
23777  contain any style information.
23778  Use 
23779 \begin_inset Flex Code
23780 status collapsed
23781
23782 \begin_layout Plain Layout
23783 HTMLStyle
23784 \end_layout
23785
23786 \end_inset
23787
23788  for that purpose.
23789 \end_layout
23790
23791 \begin_layout Description
23792 \begin_inset Flex Code
23793 status collapsed
23794
23795 \begin_layout Plain Layout
23796 HTMLLabel
23797 \end_layout
23798
23799 \end_inset
23800
23801  [
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 string
23807 \end_layout
23808
23809 \end_inset
23810
23811 ] The tag to be used for paragraph and item labels, replacing 
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 labeltag
23817 \end_layout
23818
23819 \end_inset
23820
23821  in the examples above.
23822  Defaults to 
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 span
23828 \end_layout
23829
23830 \end_inset
23831
23832 , unless 
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 LabelType
23838 \end_layout
23839
23840 \end_inset
23841
23842  is either 
23843 \begin_inset Flex Code
23844 status collapsed
23845
23846 \begin_layout Plain Layout
23847 Top_Environment
23848 \end_layout
23849
23850 \end_inset
23851
23852  or 
23853 \begin_inset Flex Code
23854 status collapsed
23855
23856 \begin_layout Plain Layout
23857 Centered_Top_Environment
23858 \end_layout
23859
23860 \end_inset
23861
23862 , in which case it defaults to 
23863 \begin_inset Flex Code
23864 status collapsed
23865
23866 \begin_layout Plain Layout
23867 div
23868 \end_layout
23869
23870 \end_inset
23871
23872 .
23873 \end_layout
23874
23875 \begin_layout Description
23876 \begin_inset Flex Code
23877 status collapsed
23878
23879 \begin_layout Plain Layout
23880 HTMLLabelAttr
23881 \end_layout
23882
23883 \end_inset
23884
23885  [
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 string
23891 \end_layout
23892
23893 \end_inset
23894
23895 ] Attributes for the label tag.
23896  Defaults to
23897 \begin_inset Newline newline
23898 \end_inset
23899
23900
23901 \begin_inset Quotes eld
23902 \end_inset
23903
23904
23905 \begin_inset Flex Code
23906 status collapsed
23907
23908 \begin_layout Plain Layout
23909 class=`layoutname_label'
23910 \end_layout
23911
23912 \end_inset
23913
23914
23915 \begin_inset Quotes erd
23916 \end_inset
23917
23918 .
23919  This should 
23920 \emph on
23921 not
23922 \emph default
23923  contain any style information.
23924  Use 
23925 \begin_inset Flex Code
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929 HTMLStyle
23930 \end_layout
23931
23932 \end_inset
23933
23934  for that purpose.
23935 \end_layout
23936
23937 \begin_layout Description
23938 \begin_inset Flex Code
23939 status collapsed
23940
23941 \begin_layout Plain Layout
23942 HTMLLabelFirst
23943 \end_layout
23944
23945 \end_inset
23946
23947  [
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952
23953 \emph on
23954 0
23955 \emph default
23956 ,1
23957 \end_layout
23958
23959 \end_inset
23960
23961 ] Meaningful only for list-like environments, this tag controls whether
23962  the label tag is output before or inside the item tag.
23963  This is used, for example, in the description environment, where we want
23964  `
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969 <dt>\SpecialChar ldots
23970 </dt><dd>\SpecialChar ldots
23971 </dd>
23972 \end_layout
23973
23974 \end_inset
23975
23976 .
23977  Default is 
23978 \begin_inset Flex Code
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982 0
23983 \end_layout
23984
23985 \end_inset
23986
23987 : The label tag is output inside the item tag.
23988 \end_layout
23989
23990 \begin_layout Description
23991 \begin_inset Flex Code
23992 status collapsed
23993
23994 \begin_layout Plain Layout
23995 HTMLPreamble
23996 \end_layout
23997
23998 \end_inset
23999
24000  Information to be output in the 
24001 \begin_inset Flex Code
24002 status collapsed
24003
24004 \begin_layout Plain Layout
24005 <head>
24006 \end_layout
24007
24008 \end_inset
24009
24010  section when this style is used.
24011  This might, for example, be used to include a 
24012 \begin_inset Flex Code
24013 status collapsed
24014
24015 \begin_layout Plain Layout
24016 <script>
24017 \end_layout
24018
24019 \end_inset
24020
24021  block defining an 
24022 \begin_inset Flex Code
24023 status collapsed
24024
24025 \begin_layout Plain Layout
24026 onclick
24027 \end_layout
24028
24029 \end_inset
24030
24031  handler.
24032 \end_layout
24033
24034 \begin_layout Description
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 HTMLStyle
24040 \end_layout
24041
24042 \end_inset
24043
24044  CSS style information to be included when this style is used.
24045  Note that this will automatically be wrapped in a layout-generated 
24046 \begin_inset Flex Code
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 <style>
24051 \end_layout
24052
24053 \end_inset
24054
24055  block, so only the CSS itself need be included.
24056  Must end with 
24057 \begin_inset Flex Code
24058 status collapsed
24059
24060 \begin_layout Plain Layout
24061 EndHTMLStyle
24062 \end_layout
24063
24064 \end_inset
24065
24066 .
24067 \end_layout
24068
24069 \begin_layout Description
24070 \begin_inset Flex Code
24071 status collapsed
24072
24073 \begin_layout Plain Layout
24074 HTMLTag
24075 \end_layout
24076
24077 \end_inset
24078
24079  [
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 string
24085 \end_layout
24086
24087 \end_inset
24088
24089 ] The tag to be used for the main label, replacing 
24090 \begin_inset Flex Code
24091 status collapsed
24092
24093 \begin_layout Plain Layout
24094 tag
24095 \end_layout
24096
24097 \end_inset
24098
24099  in the examples above.
24100  Defaults to 
24101 \begin_inset Flex Code
24102 status collapsed
24103
24104 \begin_layout Plain Layout
24105 div
24106 \end_layout
24107
24108 \end_inset
24109
24110 .
24111 \end_layout
24112
24113 \begin_layout Description
24114 \begin_inset Flex Code
24115 status collapsed
24116
24117 \begin_layout Plain Layout
24118 HTMLTitle
24119 \end_layout
24120
24121 \end_inset
24122
24123  [
24124 \begin_inset Flex Code
24125 status collapsed
24126
24127 \begin_layout Plain Layout
24128
24129 \emph on
24130 0
24131 \emph default
24132 ,1
24133 \end_layout
24134
24135 \end_inset
24136
24137 ] Marks this style as the one to be used to generate the 
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 <title>
24143 \end_layout
24144
24145 \end_inset
24146
24147  tag for the XHTML file.
24148  By default, it is false.
24149  The 
24150 \begin_inset Flex Code
24151 status collapsed
24152
24153 \begin_layout Plain Layout
24154 stdtitle.inc
24155 \end_layout
24156
24157 \end_inset
24158
24159  file sets it to true for the 
24160 \begin_inset Flex Code
24161 status collapsed
24162
24163 \begin_layout Plain Layout
24164 title
24165 \end_layout
24166
24167 \end_inset
24168
24169  environment.
24170  
24171 \end_layout
24172
24173 \begin_layout Subsection
24174 InsetLayout XHTML
24175 \end_layout
24176
24177 \begin_layout Standard
24178 The XHTML output of insets can also be controlled by information in layout
24179  files.
24180 \begin_inset Foot
24181 status collapsed
24182
24183 \begin_layout Plain Layout
24184 At present, this is true only for 
24185 \begin_inset Quotes eld
24186 \end_inset
24187
24188 text
24189 \begin_inset Quotes erd
24190 \end_inset
24191
24192  insets (insets you can type into) and is not true for 
24193 \begin_inset Quotes eld
24194 \end_inset
24195
24196 command
24197 \begin_inset Quotes erd
24198 \end_inset
24199
24200  insets (insets that are associated with dialog boxes).
24201 \end_layout
24202
24203 \end_inset
24204
24205  Here, too, \SpecialChar LyX
24206  tries to provide sensible defaults, and it constructs default
24207  CSS style rules.
24208  But everything can be customized.
24209 \end_layout
24210
24211 \begin_layout Standard
24212 The XHTML \SpecialChar LyX
24213  outputs for an inset has the following form:
24214 \end_layout
24215
24216 \begin_layout LyX-Code
24217 <tag attr=
24218 \begin_inset Quotes erd
24219 \end_inset
24220
24221 value
24222 \begin_inset Quotes erd
24223 \end_inset
24224
24225 >
24226 \end_layout
24227
24228 \begin_layout LyX-Code
24229 <labeltag>Label</labeltag>
24230 \end_layout
24231
24232 \begin_layout LyX-Code
24233 <innertag attr=
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237 value
24238 \begin_inset Quotes erd
24239 \end_inset
24240
24241 >Contents of the inset.</innertag>
24242 \end_layout
24243
24244 \begin_layout LyX-Code
24245 </tag>
24246 \end_layout
24247
24248 \begin_layout Standard
24249 If the inset permits multiple paragraphs—that is, if 
24250 \begin_inset Flex Code
24251 status collapsed
24252
24253 \begin_layout Plain Layout
24254 MultiPar
24255 \end_layout
24256
24257 \end_inset
24258
24259  is true—then the contents of the inset will itself be output as paragraphs
24260  formatted according to the styles used for those paragraphs (standard,
24261  quote, and the like).
24262  The label tag is of course omitted if the paragraph does not have a label
24263  and, at present, is always 
24264 \begin_inset Flex Code
24265 status collapsed
24266
24267 \begin_layout Plain Layout
24268 span
24269 \end_layout
24270
24271 \end_inset
24272
24273 .
24274  The inner tag is optional and, by default, does not appear.
24275 \end_layout
24276
24277 \begin_layout Standard
24278 The specific tags and attributes output for each inset can be controlled
24279  by means of the following layout tags.
24280 \end_layout
24281
24282 \begin_layout Description
24283 \begin_inset Flex Code
24284 status collapsed
24285
24286 \begin_layout Plain Layout
24287 HTMLAttr
24288 \end_layout
24289
24290 \end_inset
24291
24292  [
24293 \begin_inset Flex Code
24294 status collapsed
24295
24296 \begin_layout Plain Layout
24297 string
24298 \end_layout
24299
24300 \end_inset
24301
24302 ] Specifies attribute information to be output with the main tag.
24303  For example, 
24304 \begin_inset Quotes eld
24305 \end_inset
24306
24307
24308 \begin_inset Flex Code
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312 class=`myinset' onclick=`\SpecialChar ldots
24313 '
24314 \end_layout
24315
24316 \end_inset
24317
24318
24319 \begin_inset Quotes erd
24320 \end_inset
24321
24322 .
24323  By default, \SpecialChar LyX
24324  will output 
24325 \begin_inset Quotes eld
24326 \end_inset
24327
24328
24329 \begin_inset Flex Code
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333 class=`insetname'
24334 \end_layout
24335
24336 \end_inset
24337
24338
24339 \begin_inset Quotes erd
24340 \end_inset
24341
24342 , where 
24343 \begin_inset Flex Code
24344 status collapsed
24345
24346 \begin_layout Plain Layout
24347 insetname
24348 \end_layout
24349
24350 \end_inset
24351
24352  is the \SpecialChar LyX
24353  name of the inset, made lowercase and with non-alphanumeric characters
24354  converted to underscores, for example: footnote.
24355 \end_layout
24356
24357 \begin_layout Description
24358 \begin_inset Flex Code
24359 status collapsed
24360
24361 \begin_layout Plain Layout
24362 HTMLForceCSS
24363 \end_layout
24364
24365 \end_inset
24366
24367  [
24368 \begin_inset Flex Code
24369 status collapsed
24370
24371 \begin_layout Plain Layout
24372
24373 \emph on
24374 0
24375 \emph default
24376 ,1
24377 \end_layout
24378
24379 \end_inset
24380
24381 ] Whether to output the default CSS information \SpecialChar LyX
24382  generates for this layout,
24383  even if additional information is explicitly provided via 
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388 HTMLStyle
24389 \end_layout
24390
24391 \end_inset
24392
24393 .
24394  Setting this to 
24395 \begin_inset Flex Code
24396 status collapsed
24397
24398 \begin_layout Plain Layout
24399 1
24400 \end_layout
24401
24402 \end_inset
24403
24404  allows you to alter or augment the generated CSS, rather than to override
24405  it completely.
24406  Default is 0.
24407 \end_layout
24408
24409 \begin_layout Description
24410 \begin_inset Flex Code
24411 status collapsed
24412
24413 \begin_layout Plain Layout
24414 HTMLInnerAttr
24415 \end_layout
24416
24417 \end_inset
24418
24419  [
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 string
24425 \end_layout
24426
24427 \end_inset
24428
24429 ] Attributes for the inner tag.
24430  Defaults to
24431 \begin_inset Newline newline
24432 \end_inset
24433
24434
24435 \begin_inset Quotes eld
24436 \end_inset
24437
24438
24439 \begin_inset Flex Code
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 class=`insetname_inner'
24444 \end_layout
24445
24446 \end_inset
24447
24448
24449 \begin_inset Quotes erd
24450 \end_inset
24451
24452 .
24453 \end_layout
24454
24455 \begin_layout Description
24456 \begin_inset Flex Code
24457 status collapsed
24458
24459 \begin_layout Plain Layout
24460 HTMLInnerTag
24461 \end_layout
24462
24463 \end_inset
24464
24465  [
24466 \begin_inset Flex Code
24467 status collapsed
24468
24469 \begin_layout Plain Layout
24470 string
24471 \end_layout
24472
24473 \end_inset
24474
24475 ] The inner tag, replacing 
24476 \begin_inset Flex Code
24477 status collapsed
24478
24479 \begin_layout Plain Layout
24480 innertag
24481 \end_layout
24482
24483 \end_inset
24484
24485  in the examples above.
24486  By default, there is none.
24487 \end_layout
24488
24489 \begin_layout Description
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 HTMLIsBlock
24495 \end_layout
24496
24497 \end_inset
24498
24499  [
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 0,
24505 \emph on
24506 1
24507 \end_layout
24508
24509 \end_inset
24510
24511 ] Whether this inset represents a standalone block of text (such as a footnote)
24512  or instead represents material that is included in the surrounding text
24513  (such as a branch).
24514  Defaults to 1.
24515 \end_layout
24516
24517 \begin_layout Description
24518 \begin_inset Flex Code
24519 status collapsed
24520
24521 \begin_layout Plain Layout
24522 HTMLLabel
24523 \end_layout
24524
24525 \end_inset
24526
24527  [
24528 \begin_inset Flex Code
24529 status collapsed
24530
24531 \begin_layout Plain Layout
24532 string
24533 \end_layout
24534
24535 \end_inset
24536
24537 ] A label for this inset, possibly including a reference to a counter.
24538  For example, for footnote, it might be: 
24539 \begin_inset Flex Code
24540 status collapsed
24541
24542 \begin_layout Plain Layout
24543
24544 \backslash
24545 arabic{footnote}
24546 \end_layout
24547
24548 \end_inset
24549
24550 .
24551  This is optional, and there is no default.
24552 \end_layout
24553
24554 \begin_layout Description
24555 \begin_inset Flex Code
24556 status collapsed
24557
24558 \begin_layout Plain Layout
24559 HTMLPreamble
24560 \end_layout
24561
24562 \end_inset
24563
24564  Information to be output in the 
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569 <head>
24570 \end_layout
24571
24572 \end_inset
24573
24574  section when this style is used.
24575  This might, for example, be used to include a 
24576 \begin_inset Flex Code
24577 status collapsed
24578
24579 \begin_layout Plain Layout
24580 <script>
24581 \end_layout
24582
24583 \end_inset
24584
24585  block defining an 
24586 \begin_inset Flex Code
24587 status collapsed
24588
24589 \begin_layout Plain Layout
24590 onclick
24591 \end_layout
24592
24593 \end_inset
24594
24595  handler.
24596 \end_layout
24597
24598 \begin_layout Description
24599 \begin_inset Flex Code
24600 status collapsed
24601
24602 \begin_layout Plain Layout
24603 HTMLStyle
24604 \end_layout
24605
24606 \end_inset
24607
24608  CSS style information to be included when this style is used.
24609  Note that this will automatically be wrapped in a layout-generated 
24610 \begin_inset Flex Code
24611 status collapsed
24612
24613 \begin_layout Plain Layout
24614 <style>
24615 \end_layout
24616
24617 \end_inset
24618
24619  block, so only the CSS itself need be included.
24620 \end_layout
24621
24622 \begin_layout Description
24623 \begin_inset Flex Code
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627 HTMLTag
24628 \end_layout
24629
24630 \end_inset
24631
24632  [
24633 \begin_inset Flex Code
24634 status collapsed
24635
24636 \begin_layout Plain Layout
24637 string
24638 \end_layout
24639
24640 \end_inset
24641
24642 ] The tag to be used for the main label, replacing 
24643 \begin_inset Flex Code
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647 tag
24648 \end_layout
24649
24650 \end_inset
24651
24652  in the examples above.
24653  The default depends upon the setting of 
24654 \begin_inset Flex Code
24655 status collapsed
24656
24657 \begin_layout Plain Layout
24658 MultiPar
24659 \end_layout
24660
24661 \end_inset
24662
24663 : If 
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 MultiPar
24669 \end_layout
24670
24671 \end_inset
24672
24673  is true, the default is 
24674 \begin_inset Flex Code
24675 status collapsed
24676
24677 \begin_layout Plain Layout
24678 div
24679 \end_layout
24680
24681 \end_inset
24682
24683 ; if it is false, the default is 
24684 \begin_inset Flex Code
24685 status collapsed
24686
24687 \begin_layout Plain Layout
24688 span
24689 \end_layout
24690
24691 \end_inset
24692
24693 .
24694 \end_layout
24695
24696 \begin_layout Subsection
24697 Float XHTML
24698 \end_layout
24699
24700 \begin_layout Standard
24701 The XHTML output for floats too can be controlled by layout information.
24702  The output has the following form:
24703 \end_layout
24704
24705 \begin_layout LyX-Code
24706 <tag attr=
24707 \begin_inset Quotes erd
24708 \end_inset
24709
24710 value
24711 \begin_inset Quotes erd
24712 \end_inset
24713
24714 >
24715 \end_layout
24716
24717 \begin_layout LyX-Code
24718 Contents of the float.
24719 \end_layout
24720
24721 \begin_layout LyX-Code
24722 </tag>
24723 \end_layout
24724
24725 \begin_layout Standard
24726 The caption, if there is one, is a separate inset and will be output as
24727  such.
24728  Its appearance can be controlled via the InsetLayout for caption insets.
24729  
24730 \end_layout
24731
24732 \begin_layout Description
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737 HTMLAttr
24738 \end_layout
24739
24740 \end_inset
24741
24742  [
24743 \begin_inset Flex Code
24744 status collapsed
24745
24746 \begin_layout Plain Layout
24747 string
24748 \end_layout
24749
24750 \end_inset
24751
24752 ] Specifies attribute information to be output with the main tag.
24753  For example, 
24754 \begin_inset Quotes eld
24755 \end_inset
24756
24757
24758 \begin_inset Flex Code
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762 class=`myfloat' onclick=`\SpecialChar ldots
24763 '
24764 \end_layout
24765
24766 \end_inset
24767
24768
24769 \begin_inset Quotes erd
24770 \end_inset
24771
24772 .
24773  By default, \SpecialChar LyX
24774  will output 
24775 \begin_inset Quotes eld
24776 \end_inset
24777
24778
24779 \begin_inset Flex Code
24780 status collapsed
24781
24782 \begin_layout Plain Layout
24783 class=`float float-floattype'
24784 \end_layout
24785
24786 \end_inset
24787
24788
24789 \begin_inset Quotes erd
24790 \end_inset
24791
24792 , where 
24793 \begin_inset Flex Code
24794 status collapsed
24795
24796 \begin_layout Plain Layout
24797 floattype
24798 \end_layout
24799
24800 \end_inset
24801
24802  is \SpecialChar LyX
24803 's name for this type of float, as determined by the float declaration
24804  (see 
24805 \begin_inset CommandInset ref
24806 LatexCommand ref
24807 reference "subsec:Floats"
24808
24809 \end_inset
24810
24811 ), though made lowercase and with non-alphanumeric characters converted
24812  to underscores, for example: float-table.
24813 \end_layout
24814
24815 \begin_layout Description
24816 \begin_inset Flex Code
24817 status collapsed
24818
24819 \begin_layout Plain Layout
24820 HTMLStyle
24821 \end_layout
24822
24823 \end_inset
24824
24825  CSS style information to be included when this float is used.
24826  Note that this will automatically be wrapped in a layout-generated 
24827 \begin_inset Flex Code
24828 status collapsed
24829
24830 \begin_layout Plain Layout
24831 <style>
24832 \end_layout
24833
24834 \end_inset
24835
24836  block, so only the CSS itself need be included.
24837 \end_layout
24838
24839 \begin_layout Description
24840 \begin_inset Flex Code
24841 status collapsed
24842
24843 \begin_layout Plain Layout
24844 HTMLTag
24845 \end_layout
24846
24847 \end_inset
24848
24849  [
24850 \begin_inset Flex Code
24851 status collapsed
24852
24853 \begin_layout Plain Layout
24854 string
24855 \end_layout
24856
24857 \end_inset
24858
24859 ] The tag to be used for this float, replacing 
24860 \begin_inset Quotes eld
24861 \end_inset
24862
24863
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868 tag
24869 \end_layout
24870
24871 \end_inset
24872
24873
24874 \begin_inset Quotes erd
24875 \end_inset
24876
24877  in the example above.
24878  The default is 
24879 \begin_inset Flex Code
24880 status collapsed
24881
24882 \begin_layout Plain Layout
24883 div
24884 \end_layout
24885
24886 \end_inset
24887
24888  and will rarely need changing.
24889 \end_layout
24890
24891 \begin_layout Subsection
24892 Bibliography formatting
24893 \end_layout
24894
24895 \begin_layout Standard
24896 The bibliography can be formatted using 
24897 \begin_inset Flex Code
24898 status collapsed
24899
24900 \begin_layout Plain Layout
24901 CiteFormat
24902 \end_layout
24903
24904 \end_inset
24905
24906  blocks.
24907  See 
24908 \begin_inset CommandInset ref
24909 LatexCommand ref
24910 reference "subsec:Citation-format-description"
24911
24912 \end_inset
24913
24914  for the details.
24915 \end_layout
24916
24917 \begin_layout Subsection
24918 \SpecialChar LyX
24919 -generated CSS
24920 \end_layout
24921
24922 \begin_layout Standard
24923 We have several times mentioned that \SpecialChar LyX
24924  will generate default CSS style rules
24925  for both insets and paragraph styles, based upon the other layout information
24926  that is provided.
24927  In this section, we shall say a word about which layout information \SpecialChar LyX
24928  uses
24929  and how.
24930 \end_layout
24931
24932 \begin_layout Standard
24933 At present, \SpecialChar LyX
24934  auto-generates CSS only for font information, making use of
24935  the 
24936 \begin_inset Flex Code
24937 status collapsed
24938
24939 \begin_layout Plain Layout
24940 Family
24941 \end_layout
24942
24943 \end_inset
24944
24945
24946 \begin_inset Flex Code
24947 status collapsed
24948
24949 \begin_layout Plain Layout
24950 Series
24951 \end_layout
24952
24953 \end_inset
24954
24955
24956 \begin_inset Flex Code
24957 status collapsed
24958
24959 \begin_layout Plain Layout
24960 Shape
24961 \end_layout
24962
24963 \end_inset
24964
24965 , and 
24966 \begin_inset Flex Code
24967 status collapsed
24968
24969 \begin_layout Plain Layout
24970 Size
24971 \end_layout
24972
24973 \end_inset
24974
24975  specified in the 
24976 \begin_inset Flex Code
24977 status collapsed
24978
24979 \begin_layout Plain Layout
24980 Font
24981 \end_layout
24982
24983 \end_inset
24984
24985  declaration (see 
24986 \begin_inset CommandInset ref
24987 LatexCommand ref
24988 reference "subsec:Font-description"
24989
24990 \end_inset
24991
24992 ).
24993  The translation is mostly straightforward and obvious.
24994  For example, 
24995 \begin_inset Quotes eld
24996 \end_inset
24997
24998
24999 \begin_inset Flex Code
25000 status collapsed
25001
25002 \begin_layout Plain Layout
25003 Family Sans
25004 \end_layout
25005
25006 \end_inset
25007
25008
25009 \begin_inset Quotes erd
25010 \end_inset
25011
25012  becomes 
25013 \begin_inset Quotes eld
25014 \end_inset
25015
25016
25017 \begin_inset Flex Code
25018 status collapsed
25019
25020 \begin_layout Plain Layout
25021 font-family: sans-serif;
25022 \end_layout
25023
25024 \end_inset
25025
25026
25027 \begin_inset Quotes erd
25028 \end_inset
25029
25030 .
25031  The correspondence of \SpecialChar LyX
25032  sizes and CSS sizes is a little less obvious but
25033  nonetheless intuitive.
25034  See the 
25035 \begin_inset Flex Code
25036 status collapsed
25037
25038 \begin_layout Plain Layout
25039 getSizeCSS()
25040 \end_layout
25041
25042 \end_inset
25043
25044  function in 
25045 \begin_inset Flex URL
25046 status collapsed
25047
25048 \begin_layout Plain Layout
25049
25050 src/FontInfo.cpp
25051 \end_layout
25052
25053 \end_inset
25054
25055  for the details.
25056 \end_layout
25057
25058 \begin_layout Chapter
25059 Including External Material
25060 \begin_inset CommandInset label
25061 LatexCommand label
25062 name "chap:Including-External-Material"
25063
25064 \end_inset
25065
25066
25067 \end_layout
25068
25069 \begin_layout Standard
25070 \begin_inset Box Shadowbox
25071 position "t"
25072 hor_pos "c"
25073 has_inner_box 1
25074 inner_pos "t"
25075 use_parbox 0
25076 use_makebox 0
25077 width "100col%"
25078 special "none"
25079 height "1in"
25080 height_special "totalheight"
25081 thickness "0.4pt"
25082 separation "3pt"
25083 shadowsize "4pt"
25084 framecolor "black"
25085 backgroundcolor "none"
25086 status open
25087
25088 \begin_layout Plain Layout
25089 WARNING: This portion of the documentation has not been updated for some
25090  time.
25091  We certainly hope that it is still accurate, but there are no guarantees.
25092 \end_layout
25093
25094 \end_inset
25095
25096
25097 \end_layout
25098
25099 \begin_layout Standard
25100 The use of material from sources external to \SpecialChar LyX
25101  is covered in detail in the
25102  
25103 \emph on
25104 Embedded Objects
25105 \emph default
25106  manual.
25107  This part of the manual covers what needs to happen behind the scenes for
25108  new sorts of material to be included.
25109 \end_layout
25110
25111 \begin_layout Section
25112 How does it work?
25113 \end_layout
25114
25115 \begin_layout Standard
25116 The external material feature is based on the concept of a 
25117 \emph on
25118 template
25119 \emph default
25120 .
25121  A template is a specification of how \SpecialChar LyX
25122  should interface with a certain kind
25123  of material.
25124  As bundled, \SpecialChar LyX
25125  comes with predefined templates for Xfig figures, various
25126  raster format images, chess diagrams, and LilyPond music notation.
25127  You can check the actual list by using the menu 
25128 \begin_inset Flex Noun
25129 status collapsed
25130
25131 \begin_layout Plain Layout
25132 Insert\SpecialChar menuseparator
25133 File\SpecialChar menuseparator
25134 External Material
25135 \end_layout
25136
25137 \end_inset
25138
25139 .
25140  Furthermore, it is possible to roll your own template to support a specific
25141  kind of material.
25142  Later we'll describe in more detail what is involved, and hopefully you
25143  will submit all the templates you create so we can include them in a later
25144  \SpecialChar LyX
25145  version.
25146 \end_layout
25147
25148 \begin_layout Standard
25149 Another basic idea of the external material feature is to distinguish between
25150  the original file that serves as a base for final material and the produced
25151  file that is included in your exported or printed document.
25152  For example, consider the case of a figure produced with 
25153 \begin_inset Flex Code
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157 Xfig
25158 \end_layout
25159
25160 \end_inset
25161
25162 .
25163  The Xfig application itself works on an original file with the 
25164 \begin_inset Flex Code
25165 status collapsed
25166
25167 \begin_layout Plain Layout
25168 .fig
25169 \end_layout
25170
25171 \end_inset
25172
25173  extension.
25174  Within Xfig, you create and change your figure, and when you are done,
25175  you save the 
25176 \begin_inset Flex Code
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180 fig
25181 \end_layout
25182
25183 \end_inset
25184
25185 -file.
25186  When you want to include the figure in your document, you invoke 
25187 \begin_inset Flex Code
25188 status collapsed
25189
25190 \begin_layout Plain Layout
25191 transfig
25192 \end_layout
25193
25194 \end_inset
25195
25196  in order to create a PostScript file that can readily be included in your
25197  \SpecialChar LaTeX
25198  file.
25199  In this case, the 
25200 \begin_inset Flex Code
25201 status collapsed
25202
25203 \begin_layout Plain Layout
25204 .fig
25205 \end_layout
25206
25207 \end_inset
25208
25209  file is the original file, and the PostScript file is the produced file.
25210 \end_layout
25211
25212 \begin_layout Standard
25213 This distinction is important in order to allow updating of the material
25214  while you are in the process of writing the document.
25215  Furthermore, it provides us with the flexibility that is needed to support
25216  multiple export formats.
25217  For instance, in the case of a plain text file, it is not exactly an award-winn
25218 ing idea to include the figure as raw PostScript.
25219  Instead, you would either prefer to just include a reference to the figure
25220  or try to invoke some graphics to ASCII converter to make the final result
25221  look similar to the real graphics.
25222  The external material management allows you to do this, because it is parametri
25223 zed on the different export formats that \SpecialChar LyX
25224  supports.
25225 \end_layout
25226
25227 \begin_layout Standard
25228 Besides supporting the production of different products according to the
25229  exported format, it supports tight integration with editing and viewing
25230  applications.
25231  In the case of an Xfig figure, you are able to invoke Xfig on the original
25232  file with a single click from within the external material dialog in \SpecialChar LyX
25233 ,
25234  and also preview the produced PostScript file with Ghostview with another
25235  click.
25236  No more fiddling around with the command line and/or file browsers to locate
25237  and manipulate the original or produced files.
25238  In this way, you are finally able to take full advantage of the many different
25239  applications that are relevant to use when you write your documents, and
25240  ultimately be more productive.
25241 \end_layout
25242
25243 \begin_layout Section
25244 The external template configuration files
25245 \end_layout
25246
25247 \begin_layout Standard
25248 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25249 .
25250  However, be aware that doing this in an careless manner most probably 
25251 \emph on
25252 will
25253 \emph default
25254  introduce an easily exploitable security hole.
25255  So before you do this, please read the discussion about security in 
25256 \begin_inset CommandInset ref
25257 LatexCommand ref
25258 reference "sec:Security-discussion"
25259
25260 \end_inset
25261
25262 .
25263 \end_layout
25264
25265 \begin_layout Standard
25266 Having said that, we encourage you to submit any interesting templates that
25267  you create.
25268  
25269 \end_layout
25270
25271 \begin_layout Standard
25272 The external templates are defined in the 
25273 \begin_inset Flex Code
25274 status collapsed
25275
25276 \begin_layout Plain Layout
25277 *.xtemplate
25278 \end_layout
25279
25280 \end_inset
25281
25282  files that are stored in the 
25283 \begin_inset Flex Code
25284 status collapsed
25285
25286 \begin_layout Plain Layout
25287 LyXDir/lib/xtemplates/
25288 \end_layout
25289
25290 \end_inset
25291
25292  directory.
25293  Each template is defined in a file of its own.
25294  You can place your own templates in 
25295 \begin_inset Flex Code
25296 status collapsed
25297
25298 \begin_layout Plain Layout
25299 UserDir/xtemplates/
25300 \end_layout
25301
25302 \end_inset
25303
25304  or copy existing templates to that directory in order to modify them.
25305 \end_layout
25306
25307 \begin_layout Standard
25308 A typical template looks like this:
25309 \end_layout
25310
25311 \begin_layout LyX-Code
25312 Template XFig
25313 \end_layout
25314
25315 \begin_layout LyX-Code
25316 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25317 \end_layout
25318
25319 \begin_layout LyX-Code
25320 HelpText
25321 \end_layout
25322
25323 \begin_layout LyX-Code
25324 An XFig figure.
25325 \end_layout
25326
25327 \begin_layout LyX-Code
25328 HelpTextEnd
25329 \end_layout
25330
25331 \begin_layout LyX-Code
25332 InputFormat fig
25333 \end_layout
25334
25335 \begin_layout LyX-Code
25336 FileFilter "*.fig"
25337 \end_layout
25338
25339 \begin_layout LyX-Code
25340 AutomaticProduction true
25341 \end_layout
25342
25343 \begin_layout LyX-Code
25344 Transform Rotate
25345 \end_layout
25346
25347 \begin_layout LyX-Code
25348 Transform Resize
25349 \end_layout
25350
25351 \begin_layout LyX-Code
25352 Format LaTeX
25353 \end_layout
25354
25355 \begin_layout LyX-Code
25356 TransformCommand Rotate RotationLatexCommand
25357 \end_layout
25358
25359 \begin_layout LyX-Code
25360 TransformCommand Resize ResizeLatexCommand
25361 \end_layout
25362
25363 \begin_layout LyX-Code
25364 Product "$$RotateFront$$ResizeFront
25365 \end_layout
25366
25367 \begin_layout LyX-Code
25368          
25369 \backslash
25370
25371 \backslash
25372 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25373 \end_layout
25374
25375 \begin_layout LyX-Code
25376          $$ResizeBack$$RotateBack"
25377 \end_layout
25378
25379 \begin_layout LyX-Code
25380 UpdateFormat pstex
25381 \end_layout
25382
25383 \begin_layout LyX-Code
25384 UpdateResult "$$AbsPath$$Basename.pstex_t"
25385 \end_layout
25386
25387 \begin_layout LyX-Code
25388 Requirement "graphicx"
25389 \end_layout
25390
25391 \begin_layout LyX-Code
25392 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25393 \end_layout
25394
25395 \begin_layout LyX-Code
25396 ReferencedFile latex "$$AbsPath$$Basename.eps"
25397 \end_layout
25398
25399 \begin_layout LyX-Code
25400 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25401 \end_layout
25402
25403 \begin_layout LyX-Code
25404 FormatEnd
25405 \end_layout
25406
25407 \begin_layout LyX-Code
25408 Format PDFLaTeX
25409 \end_layout
25410
25411 \begin_layout LyX-Code
25412 TransformCommand Rotate RotationLatexCommand
25413 \end_layout
25414
25415 \begin_layout LyX-Code
25416 TransformCommand Resize ResizeLatexCommand
25417 \end_layout
25418
25419 \begin_layout LyX-Code
25420 Product "$$RotateFront$$ResizeFront
25421 \end_layout
25422
25423 \begin_layout LyX-Code
25424          
25425 \backslash
25426
25427 \backslash
25428 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25429 \end_layout
25430
25431 \begin_layout LyX-Code
25432          $$ResizeBack$$RotateBack"
25433 \end_layout
25434
25435 \begin_layout LyX-Code
25436 UpdateFormat pdftex
25437 \end_layout
25438
25439 \begin_layout LyX-Code
25440 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25441 \end_layout
25442
25443 \begin_layout LyX-Code
25444 Requirement "graphicx"
25445 \end_layout
25446
25447 \begin_layout LyX-Code
25448 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25449 \end_layout
25450
25451 \begin_layout LyX-Code
25452 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25453 \end_layout
25454
25455 \begin_layout LyX-Code
25456 FormatEnd
25457 \end_layout
25458
25459 \begin_layout LyX-Code
25460 Format Ascii
25461 \end_layout
25462
25463 \begin_layout LyX-Code
25464 Product "[XFig: $$FName]"
25465 \end_layout
25466
25467 \begin_layout LyX-Code
25468 FormatEnd
25469 \end_layout
25470
25471 \begin_layout LyX-Code
25472 Format DocBook
25473 \end_layout
25474
25475 \begin_layout LyX-Code
25476 Product "<graphic fileref=
25477 \backslash
25478 "$$AbsOrRelPathMaster$$Basename.eps
25479 \backslash
25480 ">
25481 \end_layout
25482
25483 \begin_layout LyX-Code
25484          </graphic>"
25485 \end_layout
25486
25487 \begin_layout LyX-Code
25488 UpdateFormat eps
25489 \end_layout
25490
25491 \begin_layout LyX-Code
25492 UpdateResult "$$AbsPath$$Basename.eps"
25493 \end_layout
25494
25495 \begin_layout LyX-Code
25496 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25497 \end_layout
25498
25499 \begin_layout LyX-Code
25500 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25501 \end_layout
25502
25503 \begin_layout LyX-Code
25504 FormatEnd
25505 \end_layout
25506
25507 \begin_layout LyX-Code
25508 TemplateEnd
25509 \end_layout
25510
25511 \begin_layout Standard
25512 As you can see, the template is enclosed in 
25513 \begin_inset Flex Code
25514 status collapsed
25515
25516 \begin_layout Plain Layout
25517 Template
25518 \end_layout
25519
25520 \end_inset
25521
25522  \SpecialChar ldots
25523  
25524 \begin_inset Flex Code
25525 status collapsed
25526
25527 \begin_layout Plain Layout
25528 TemplateEnd
25529 \end_layout
25530
25531 \end_inset
25532
25533 .
25534  It contains a header specifying some general settings and, for each supported
25535  primary document file format, a section 
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 Format
25541 \end_layout
25542
25543 \end_inset
25544
25545  \SpecialChar ldots
25546  
25547 \begin_inset Flex Code
25548 status collapsed
25549
25550 \begin_layout Plain Layout
25551 FormatEnd
25552 \end_layout
25553
25554 \end_inset
25555
25556 .
25557 \end_layout
25558
25559 \begin_layout Subsection
25560 The template header
25561 \end_layout
25562
25563 \begin_layout Description
25564 \begin_inset Flex Code
25565 status collapsed
25566
25567 \begin_layout Plain Layout
25568 AutomaticProduction
25569 \begin_inset space ~
25570 \end_inset
25571
25572 true|false
25573 \end_layout
25574
25575 \end_inset
25576
25577  Whether the file represented by the template must be generated by \SpecialChar LyX
25578 .
25579  This command must occur exactly once.
25580 \end_layout
25581
25582 \begin_layout Description
25583 \begin_inset Flex Code
25584 status collapsed
25585
25586 \begin_layout Plain Layout
25587 FileFilter
25588 \begin_inset space ~
25589 \end_inset
25590
25591 <pattern>
25592 \end_layout
25593
25594 \end_inset
25595
25596  A glob pattern that is used in the file dialog to filter out the desired
25597  files.
25598  If there is more than one possible file extension (e.
25599 \begin_inset space \thinspace{}
25600 \end_inset
25601
25602 g.
25603 \begin_inset space \space{}
25604 \end_inset
25605
25606 tgif has 
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 .obj
25612 \end_layout
25613
25614 \end_inset
25615
25616  and 
25617 \begin_inset Flex Code
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 .tgo
25622 \end_layout
25623
25624 \end_inset
25625
25626 ), use something like 
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 "*.{obj,tgo}"
25632 \end_layout
25633
25634 \end_inset
25635
25636 .
25637  This command must occur exactly once.
25638 \end_layout
25639
25640 \begin_layout Description
25641 \begin_inset Flex Code
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645 GuiName
25646 \begin_inset space ~
25647 \end_inset
25648
25649 <guiname>
25650 \end_layout
25651
25652 \end_inset
25653
25654  The text that is displayed on the button.
25655  This command must occur exactly once.
25656 \end_layout
25657
25658 \begin_layout Description
25659 \begin_inset Flex Code
25660 status collapsed
25661
25662 \begin_layout Plain Layout
25663 HelpText
25664 \begin_inset space ~
25665 \end_inset
25666
25667 <text>
25668 \begin_inset space ~
25669 \end_inset
25670
25671 HelpTextEnd
25672 \end_layout
25673
25674 \end_inset
25675
25676  The help text that is used in the External dialog.
25677  Provide enough information to explain to the user just what the template
25678  can provide him with.
25679  This command must occur exactly once.
25680 \end_layout
25681
25682 \begin_layout Description
25683 \begin_inset Flex Code
25684 status collapsed
25685
25686 \begin_layout Plain Layout
25687 InputFormat
25688 \begin_inset space ~
25689 \end_inset
25690
25691 <format>
25692 \end_layout
25693
25694 \end_inset
25695
25696  The file format of the original file.
25697  This must be the name of a format that is known to \SpecialChar LyX
25698  (see 
25699 \begin_inset CommandInset ref
25700 LatexCommand ref
25701 reference "sec:Formats"
25702
25703 \end_inset
25704
25705 ).
25706  Use 
25707 \begin_inset Quotes eld
25708 \end_inset
25709
25710
25711 \begin_inset Flex Code
25712 status collapsed
25713
25714 \begin_layout Plain Layout
25715 *
25716 \end_layout
25717
25718 \end_inset
25719
25720
25721 \begin_inset Quotes erd
25722 \end_inset
25723
25724  if the template can handle original files of more than one format.
25725  \SpecialChar LyX
25726  will attempt to interrogate the file itself in order to deduce its format
25727  in this case.
25728  This command must occur exactly once.
25729 \end_layout
25730
25731 \begin_layout Description
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 Template
25737 \begin_inset space ~
25738 \end_inset
25739
25740 <id>
25741 \end_layout
25742
25743 \end_inset
25744
25745  A unique name for the template.
25746  It must not contain substitution macros (see below).
25747 \end_layout
25748
25749 \begin_layout Description
25750 \begin_inset Flex Code
25751 status collapsed
25752
25753 \begin_layout Plain Layout
25754 Transform
25755 \begin_inset space ~
25756 \end_inset
25757
25758 Rotate|Resize|Clip|Extra
25759 \end_layout
25760
25761 \end_inset
25762
25763  This command specifies which transformations are supported by this template.
25764  It may occur zero or more times.
25765  This command enables the corresponding tabs in the external dialog.
25766  Each 
25767 \begin_inset Flex Code
25768 status collapsed
25769
25770 \begin_layout Plain Layout
25771 Transform
25772 \end_layout
25773
25774 \end_inset
25775
25776  command must have either a corresponding 
25777 \begin_inset Flex Code
25778 status collapsed
25779
25780 \begin_layout Plain Layout
25781 TransformCommand
25782 \end_layout
25783
25784 \end_inset
25785
25786  or a 
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791 TransformOption
25792 \end_layout
25793
25794 \end_inset
25795
25796  command in the 
25797 \begin_inset Flex Code
25798 status collapsed
25799
25800 \begin_layout Plain Layout
25801 Format
25802 \end_layout
25803
25804 \end_inset
25805
25806  section.
25807  Otherwise the transformation will not be supported by that format.
25808 \end_layout
25809
25810 \begin_layout Subsection
25811 The Format section
25812 \end_layout
25813
25814 \begin_layout Description
25815 \begin_inset Flex Code
25816 status collapsed
25817
25818 \begin_layout Plain Layout
25819 Format
25820 \begin_inset space ~
25821 \end_inset
25822
25823 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25824 \end_layout
25825
25826 \end_inset
25827
25828  The primary document file format that this format definition is for.
25829  Not every template has a sensible representation in all document file formats.
25830  Please define nevertheless a 
25831 \begin_inset Flex Code
25832 status collapsed
25833
25834 \begin_layout Plain Layout
25835 Format
25836 \end_layout
25837
25838 \end_inset
25839
25840  section for all templates.
25841  Use a dummy text when no representation is available.
25842  Then you can at least see a reference to the external material in the exported
25843  document.
25844 \end_layout
25845
25846 \begin_layout Description
25847 \begin_inset Flex Code
25848 status collapsed
25849
25850 \begin_layout Plain Layout
25851 Option
25852 \begin_inset space ~
25853 \end_inset
25854
25855 <name>
25856 \begin_inset space ~
25857 \end_inset
25858
25859 <value>
25860 \end_layout
25861
25862 \end_inset
25863
25864  This command defines an additional macro 
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 $$<name>
25870 \end_layout
25871
25872 \end_inset
25873
25874  for substitution in 
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 Product
25880 \end_layout
25881
25882 \end_inset
25883
25884 .
25885  
25886 \begin_inset Flex Code
25887 status collapsed
25888
25889 \begin_layout Plain Layout
25890 <value>
25891 \end_layout
25892
25893 \end_inset
25894
25895  itself may contain substitution macros.
25896  The advantage over using 
25897 \begin_inset Flex Code
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 <value>
25902 \end_layout
25903
25904 \end_inset
25905
25906  directly in 
25907 \begin_inset Flex Code
25908 status collapsed
25909
25910 \begin_layout Plain Layout
25911 Product
25912 \end_layout
25913
25914 \end_inset
25915
25916  is that the substituted value of 
25917 \begin_inset Flex Code
25918 status collapsed
25919
25920 \begin_layout Plain Layout
25921 $$<name>
25922 \end_layout
25923
25924 \end_inset
25925
25926  is sanitized so that it is a valid optional argument in the document format.
25927  This command may occur zero or more times.
25928 \end_layout
25929
25930 \begin_layout Description
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 Product
25936 \begin_inset space ~
25937 \end_inset
25938
25939 <text>
25940 \end_layout
25941
25942 \end_inset
25943
25944  The text that is inserted in the exported document.
25945  This is actually the most important command and can be quite complex.
25946  This command must occur exactly once.
25947 \end_layout
25948
25949 \begin_layout Description
25950 \begin_inset Flex Code
25951 status collapsed
25952
25953 \begin_layout Plain Layout
25954 Preamble
25955 \begin_inset space ~
25956 \end_inset
25957
25958 <name>
25959 \end_layout
25960
25961 \end_inset
25962
25963  This command specifies a preamble snippet that will be included in the
25964  \SpecialChar LaTeX
25965  preamble.
25966  It has to be defined using 
25967 \begin_inset Flex Code
25968 status collapsed
25969
25970 \begin_layout Plain Layout
25971 PreambleDef
25972 \end_layout
25973
25974 \end_inset
25975
25976  \SpecialChar ldots
25977  
25978 \begin_inset Flex Code
25979 status collapsed
25980
25981 \begin_layout Plain Layout
25982 PreambleDefEnd
25983 \end_layout
25984
25985 \end_inset
25986
25987 .
25988  This command may occur zero or more times.
25989 \end_layout
25990
25991 \begin_layout Description
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 ReferencedFile
25997 \begin_inset space ~
25998 \end_inset
25999
26000 <format>
26001 \begin_inset space ~
26002 \end_inset
26003
26004 <filename>
26005 \end_layout
26006
26007 \end_inset
26008
26009  This command denotes files that are created by the conversion process and
26010  are needed for a particular export format.
26011  If the filename is relative, it is interpreted relative to the master document.
26012  This command may be given zero or more times.
26013 \end_layout
26014
26015 \begin_layout Description
26016 \begin_inset Flex Code
26017 status collapsed
26018
26019 \begin_layout Plain Layout
26020 Requirement
26021 \begin_inset space ~
26022 \end_inset
26023
26024 <package>
26025 \end_layout
26026
26027 \end_inset
26028
26029  The name of a required \SpecialChar LaTeX
26030  package.
26031  The package is included via 
26032 \begin_inset Flex Code
26033 status collapsed
26034
26035 \begin_layout Plain Layout
26036
26037 \backslash
26038 usepackage{}
26039 \end_layout
26040
26041 \end_inset
26042
26043  in the \SpecialChar LaTeX
26044  preamble.
26045  This command may occur zero or more times.
26046 \end_layout
26047
26048 \begin_layout Description
26049 \begin_inset Flex Code
26050 status collapsed
26051
26052 \begin_layout Plain Layout
26053 TransformCommand
26054 \begin_inset space ~
26055 \end_inset
26056
26057 Rotate
26058 \begin_inset space ~
26059 \end_inset
26060
26061 RotationLatexCommand
26062 \end_layout
26063
26064 \end_inset
26065
26066  This command specifies that the built in \SpecialChar LaTeX
26067  command should be used for rotation.
26068  This command may occur once or not at all.
26069 \end_layout
26070
26071 \begin_layout Description
26072 \begin_inset Flex Code
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 TransformCommand
26077 \begin_inset space ~
26078 \end_inset
26079
26080 Resize
26081 \begin_inset space ~
26082 \end_inset
26083
26084 ResizeLatexCommand
26085 \end_layout
26086
26087 \end_inset
26088
26089  This command specifies that the built in \SpecialChar LaTeX
26090  command should be used for resizing.
26091  This command may occur once or not at all.
26092 \end_layout
26093
26094 \begin_layout Description
26095 \begin_inset Flex Code
26096 status collapsed
26097
26098 \begin_layout Plain Layout
26099 TransformOption
26100 \begin_inset space ~
26101 \end_inset
26102
26103 Rotate
26104 \begin_inset space ~
26105 \end_inset
26106
26107 RotationLatexOption
26108 \end_layout
26109
26110 \end_inset
26111
26112  This command specifies that rotation is done via an optional argument.
26113  This command may occur once or not at all.
26114 \end_layout
26115
26116 \begin_layout Description
26117 \begin_inset Flex Code
26118 status collapsed
26119
26120 \begin_layout Plain Layout
26121 TransformOption
26122 \begin_inset space ~
26123 \end_inset
26124
26125 Resize
26126 \begin_inset space ~
26127 \end_inset
26128
26129 ResizeLatexOption
26130 \end_layout
26131
26132 \end_inset
26133
26134  This command specifies that resizing is done via an optional argument.
26135  This command may occur once or not at all.
26136 \end_layout
26137
26138 \begin_layout Description
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 TransformOption
26144 \begin_inset space ~
26145 \end_inset
26146
26147 Clip
26148 \begin_inset space ~
26149 \end_inset
26150
26151 ClipLatexOption
26152 \end_layout
26153
26154 \end_inset
26155
26156  This command specifies that clipping is done via an optional argument.
26157  This command may occur once or not at all.
26158 \end_layout
26159
26160 \begin_layout Description
26161 \begin_inset Flex Code
26162 status collapsed
26163
26164 \begin_layout Plain Layout
26165 TransformOption
26166 \begin_inset space ~
26167 \end_inset
26168
26169 Extra
26170 \begin_inset space ~
26171 \end_inset
26172
26173 ExtraLatexOption
26174 \end_layout
26175
26176 \end_inset
26177
26178  This command specifies that an extra optional argument is used.
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 UpdateFormat
26188 \begin_inset space ~
26189 \end_inset
26190
26191 <format>
26192 \end_layout
26193
26194 \end_inset
26195
26196  The file format of the converted file.
26197  This must be the name of a format that is known to \SpecialChar LyX
26198  (see the 
26199 \begin_inset Flex Noun
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 Tools\SpecialChar menuseparator
26204 Preferences\SpecialChar menuseparator
26205 File Handling\SpecialChar menuseparator
26206 File Format
26207 \end_layout
26208
26209 \end_inset
26210
26211  dialog).
26212  This command must occur exactly once.
26213  If the resulting file format is PDF, you need to specify the format 
26214 \begin_inset Flex Code
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 pdf6
26219 \end_layout
26220
26221 \end_inset
26222
26223 .
26224  This is the PDF format used for including graphics.
26225  The other defined PDF formats are for document export.
26226 \end_layout
26227
26228 \begin_layout Description
26229 \begin_inset Flex Code
26230 status collapsed
26231
26232 \begin_layout Plain Layout
26233 UpdateResult
26234 \begin_inset space ~
26235 \end_inset
26236
26237 <filename>
26238 \end_layout
26239
26240 \end_inset
26241
26242  The file name of the converted file.
26243  The file name must be absolute.
26244  This command must occur exactly once.
26245 \end_layout
26246
26247 \begin_layout Subsection
26248 Preamble definitions
26249 \end_layout
26250
26251 \begin_layout Standard
26252 The external template configuration file may contain additional preamble
26253  definitions enclosed by 
26254 \begin_inset Flex Code
26255 status collapsed
26256
26257 \begin_layout Plain Layout
26258 PreambleDef
26259 \end_layout
26260
26261 \end_inset
26262
26263  \SpecialChar ldots
26264  
26265 \begin_inset Flex Code
26266 status collapsed
26267
26268 \begin_layout Plain Layout
26269 PreambleDefEnd
26270 \end_layout
26271
26272 \end_inset
26273
26274 .
26275  They can be used by the templates in the 
26276 \begin_inset Flex Code
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280 Format
26281 \end_layout
26282
26283 \end_inset
26284
26285  section.
26286 \end_layout
26287
26288 \begin_layout Section
26289 The substitution mechanism
26290 \end_layout
26291
26292 \begin_layout Standard
26293 When the external material facility invokes an external program, it is done
26294  on the basis of a command defined in the template configuration file.
26295  These commands can contain various macros that are expanded before execution.
26296  Execution always take place in the directory of the containing document.
26297 \end_layout
26298
26299 \begin_layout Standard
26300 Also, whenever external material is to be displayed, the name will be produced
26301  by the substitution mechanism, and most other commands in the template
26302  definition support substitution as well.
26303 \end_layout
26304
26305 \begin_layout Standard
26306 The available macros are the following:
26307 \end_layout
26308
26309 \begin_layout Description
26310 \begin_inset Flex Code
26311 status collapsed
26312
26313 \begin_layout Plain Layout
26314 $$AbsOrRelPathMaster
26315 \end_layout
26316
26317 \end_inset
26318
26319  The file path, absolute or relative to the master \SpecialChar LyX
26320  document.
26321 \end_layout
26322
26323 \begin_layout Description
26324 \begin_inset Flex Code
26325 status collapsed
26326
26327 \begin_layout Plain Layout
26328 $$AbsOrRelPathParent
26329 \end_layout
26330
26331 \end_inset
26332
26333  The file path, absolute or relative to the \SpecialChar LyX
26334  document.
26335 \end_layout
26336
26337 \begin_layout Description
26338 \begin_inset Flex Code
26339 status collapsed
26340
26341 \begin_layout Plain Layout
26342 $$AbsPath
26343 \end_layout
26344
26345 \end_inset
26346
26347  The absolute file path.
26348 \end_layout
26349
26350 \begin_layout Description
26351 \begin_inset Flex Code
26352 status collapsed
26353
26354 \begin_layout Plain Layout
26355 $$Basename
26356 \end_layout
26357
26358 \end_inset
26359
26360  The filename without path and without the extension.
26361 \end_layout
26362
26363 \begin_layout Description
26364 \begin_inset Flex Code
26365 status collapsed
26366
26367 \begin_layout Plain Layout
26368 $$Contents(
26369 \begin_inset Quotes eld
26370 \end_inset
26371
26372 filename.ext
26373 \begin_inset Quotes erd
26374 \end_inset
26375
26376 )
26377 \end_layout
26378
26379 \end_inset
26380
26381  This macro will expand to the contents of the file with the name 
26382 \begin_inset Flex Code
26383 status collapsed
26384
26385 \begin_layout Plain Layout
26386 filename.ext
26387 \end_layout
26388
26389 \end_inset
26390
26391 .
26392 \end_layout
26393
26394 \begin_layout Description
26395 \begin_inset Flex Code
26396 status collapsed
26397
26398 \begin_layout Plain Layout
26399 $$Extension
26400 \end_layout
26401
26402 \end_inset
26403
26404  The file extension (including the dot).
26405 \end_layout
26406
26407 \begin_layout Description
26408 \begin_inset Flex Code
26409 status collapsed
26410
26411 \begin_layout Plain Layout
26412 $$pngOrjpg
26413 \end_layout
26414
26415 \end_inset
26416
26417  This will be the string 
26418 \begin_inset Quotes eld
26419 \end_inset
26420
26421 jpg
26422 \begin_inset Quotes erd
26423 \end_inset
26424
26425  if the file is in JPEG format, otherwise it will be the string 
26426 \begin_inset Quotes eld
26427 \end_inset
26428
26429 png
26430 \begin_inset Quotes erd
26431 \end_inset
26432
26433 .
26434  This is useful to avoid uneeded conversions for output formats that support
26435  both PNG and JPEG fomats.
26436  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26437  output
26438  format.
26439 \end_layout
26440
26441 \begin_layout Description
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 $$FName
26447 \end_layout
26448
26449 \end_inset
26450
26451  The filename of the file specified in the external material dialog.
26452  This is either an absolute name, or it is relative to the \SpecialChar LyX
26453  document.
26454 \end_layout
26455
26456 \begin_layout Description
26457 \begin_inset Flex Code
26458 status collapsed
26459
26460 \begin_layout Plain Layout
26461 $$FPath
26462 \end_layout
26463
26464 \end_inset
26465
26466  The path part of 
26467 \begin_inset Flex Code
26468 status collapsed
26469
26470 \begin_layout Plain Layout
26471 $$FName
26472 \end_layout
26473
26474 \end_inset
26475
26476  (absolute name or relative to the \SpecialChar LyX
26477  document).
26478 \end_layout
26479
26480 \begin_layout Description
26481 \begin_inset Flex Code
26482 status collapsed
26483
26484 \begin_layout Plain Layout
26485 $$RelPathMaster
26486 \end_layout
26487
26488 \end_inset
26489
26490  The file path, relative to the master \SpecialChar LyX
26491  document.
26492 \end_layout
26493
26494 \begin_layout Description
26495 \begin_inset Flex Code
26496 status collapsed
26497
26498 \begin_layout Plain Layout
26499 $$RelPathParent
26500 \end_layout
26501
26502 \end_inset
26503
26504  The file path, relative to the \SpecialChar LyX
26505  document.
26506 \end_layout
26507
26508 \begin_layout Description
26509 \begin_inset Flex Code
26510 status collapsed
26511
26512 \begin_layout Plain Layout
26513 $$Sysdir
26514 \end_layout
26515
26516 \end_inset
26517
26518  This macro will expand to the absolute path of the system directory.
26519  This is typically used to point to the various helper scripts that are
26520  bundled with \SpecialChar LyX
26521 .
26522 \end_layout
26523
26524 \begin_layout Description
26525 \begin_inset Flex Code
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 $$Tempname
26530 \end_layout
26531
26532 \end_inset
26533
26534  A name and full path to a temporary file which will be automatically deleted
26535  whenever the containing document is closed, or the external material insertion
26536  deleted.
26537 \end_layout
26538
26539 \begin_layout Standard
26540 All path macros contain a trailing directory separator, so you can construct
26541  e.
26542 \begin_inset space \thinspace{}
26543 \end_inset
26544
26545 g.
26546 \begin_inset space \space{}
26547 \end_inset
26548
26549 the absolute filename with 
26550 \begin_inset Flex Code
26551 status collapsed
26552
26553 \begin_layout Plain Layout
26554 $$AbsPath$$Basename$$Extension
26555 \end_layout
26556
26557 \end_inset
26558
26559 .
26560 \end_layout
26561
26562 \begin_layout Standard
26563 The macros above are substituted in all commands unless otherwise noted.
26564  The command 
26565 \begin_inset Flex Code
26566 status collapsed
26567
26568 \begin_layout Plain Layout
26569 Product
26570 \end_layout
26571
26572 \end_inset
26573
26574  supports additionally the following substitutions if they are enabled by
26575  the 
26576 \begin_inset Flex Code
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580 Transform
26581 \end_layout
26582
26583 \end_inset
26584
26585  and 
26586 \begin_inset Flex Code
26587 status collapsed
26588
26589 \begin_layout Plain Layout
26590 TransformCommand
26591 \end_layout
26592
26593 \end_inset
26594
26595  commands:
26596 \end_layout
26597
26598 \begin_layout Description
26599 \begin_inset Flex Code
26600 status collapsed
26601
26602 \begin_layout Plain Layout
26603 $$ResizeFront
26604 \end_layout
26605
26606 \end_inset
26607
26608  The front part of the resize command.
26609 \end_layout
26610
26611 \begin_layout Description
26612 \begin_inset Flex Code
26613 status collapsed
26614
26615 \begin_layout Plain Layout
26616 $$ResizeBack
26617 \end_layout
26618
26619 \end_inset
26620
26621  The back part of the resize command.
26622 \end_layout
26623
26624 \begin_layout Description
26625 \begin_inset Flex Code
26626 status collapsed
26627
26628 \begin_layout Plain Layout
26629 $$RotateFront
26630 \end_layout
26631
26632 \end_inset
26633
26634  The front part of the rotation command.
26635 \end_layout
26636
26637 \begin_layout Description
26638 \begin_inset Flex Code
26639 status collapsed
26640
26641 \begin_layout Plain Layout
26642 $$RotateBack
26643 \end_layout
26644
26645 \end_inset
26646
26647  The back part of the rotation command.
26648 \end_layout
26649
26650 \begin_layout Standard
26651 The value string of the 
26652 \begin_inset Flex Code
26653 status collapsed
26654
26655 \begin_layout Plain Layout
26656 Option
26657 \end_layout
26658
26659 \end_inset
26660
26661  command supports additionally the following substitutions if they are enabled
26662  by the 
26663 \begin_inset Flex Code
26664 status collapsed
26665
26666 \begin_layout Plain Layout
26667 Transform
26668 \end_layout
26669
26670 \end_inset
26671
26672  and 
26673 \begin_inset Flex Code
26674 status collapsed
26675
26676 \begin_layout Plain Layout
26677 TransformOption
26678 \end_layout
26679
26680 \end_inset
26681
26682  commands:
26683 \end_layout
26684
26685 \begin_layout Description
26686 \begin_inset Flex Code
26687 status collapsed
26688
26689 \begin_layout Plain Layout
26690 $$Clip
26691 \end_layout
26692
26693 \end_inset
26694
26695  The clip option.
26696 \end_layout
26697
26698 \begin_layout Description
26699 \begin_inset Flex Code
26700 status collapsed
26701
26702 \begin_layout Plain Layout
26703 $$Extra
26704 \end_layout
26705
26706 \end_inset
26707
26708  The extra option.
26709 \end_layout
26710
26711 \begin_layout Description
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 $$Resize
26717 \end_layout
26718
26719 \end_inset
26720
26721  The resize option.
26722 \end_layout
26723
26724 \begin_layout Description
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 $$Rotate
26730 \end_layout
26731
26732 \end_inset
26733
26734  The rotation option.
26735 \end_layout
26736
26737 \begin_layout Standard
26738 You may ask why there are so many path macros.
26739  There are mainly two reasons:
26740 \end_layout
26741
26742 \begin_layout Enumerate
26743 Relative and absolute file names should remain relative or absolute, respectivel
26744 y.
26745  Users may have reasons to prefer either form.
26746  Relative names are useful for portable documents that should work on different
26747  machines, for example.
26748  Absolute names may be required by some programs.
26749 \end_layout
26750
26751 \begin_layout Enumerate
26752 \SpecialChar LaTeX
26753  treats relative file names differently than \SpecialChar LyX
26754  and other programs in nested
26755  included files.
26756  For \SpecialChar LyX
26757 , a relative file name is always relative to the document that contains
26758  the file name.
26759  For \SpecialChar LaTeX
26760 , it is always relative to the master document.
26761  These two definitions are identical if you have only one document, but
26762  differ if you have a master document that includes part documents.
26763  That means that relative filenames must be transformed when presented to
26764  \SpecialChar LaTeX
26765 .
26766  Fortunately \SpecialChar LyX
26767  does this automatically for you if you choose the right macros.
26768 \end_layout
26769
26770 \begin_layout Standard
26771 So which path macro should be used in new template definitions? The rule
26772  is not difficult:
26773 \end_layout
26774
26775 \begin_layout Itemize
26776 Use 
26777 \begin_inset Flex Code
26778 status collapsed
26779
26780 \begin_layout Plain Layout
26781 $$AbsPath
26782 \end_layout
26783
26784 \end_inset
26785
26786  if an absolute path is required.
26787 \end_layout
26788
26789 \begin_layout Itemize
26790 Use 
26791 \begin_inset Flex Code
26792 status collapsed
26793
26794 \begin_layout Plain Layout
26795 $$AbsOrRelPathMaster
26796 \end_layout
26797
26798 \end_inset
26799
26800  if the substituted string is some kind of \SpecialChar LaTeX
26801  input.
26802 \end_layout
26803
26804 \begin_layout Itemize
26805 Else use 
26806 \begin_inset Flex Code
26807 status collapsed
26808
26809 \begin_layout Plain Layout
26810 $$AbsOrRelPathParent
26811 \end_layout
26812
26813 \end_inset
26814
26815  in order to preserve the user's choice.
26816 \end_layout
26817
26818 \begin_layout Standard
26819 There are special cases where this rule does not work and e.
26820 \begin_inset space \thinspace{}
26821 \end_inset
26822
26823 g.
26824 \begin_inset space \space{}
26825 \end_inset
26826
26827 relative names are needed, but normally it will work just fine.
26828  One example for such a case is the command 
26829 \begin_inset Flex Code
26830 status collapsed
26831
26832 \begin_layout Plain Layout
26833 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26834 \end_layout
26835
26836 \end_inset
26837
26838  in the XFig template above: We can't use the absolute name because the
26839  copier for 
26840 \begin_inset Flex Code
26841 status collapsed
26842
26843 \begin_layout Plain Layout
26844 .pstex_t
26845 \end_layout
26846
26847 \end_inset
26848
26849  files needs the relative name in order to rewrite the file content.
26850 \end_layout
26851
26852 \begin_layout Section
26853 Security discussion
26854 \begin_inset CommandInset label
26855 LatexCommand label
26856 name "sec:Security-discussion"
26857
26858 \end_inset
26859
26860
26861 \end_layout
26862
26863 \begin_layout Standard
26864 The external material feature interfaces with a lot of external programs
26865  and does so automatically, so we have to consider the security implications
26866  of this.
26867  In particular, since you have the option of including your own filenames
26868  and/or parameter strings and those are expanded into a command, it seems
26869  that it would be possible to create a malicious document which executes
26870  arbitrary commands when a user views or prints the document.
26871  This is something we definitely want to avoid.
26872 \end_layout
26873
26874 \begin_layout Standard
26875 However, since the external program commands are specified in the template
26876  configuration file only, there are no security issues if \SpecialChar LyX
26877  is properly configure
26878 d with safe templates only.
26879  This is so because the external programs are invoked with the 
26880 \begin_inset Flex Code
26881 status collapsed
26882
26883 \begin_layout Plain Layout
26884 execvp
26885 \end_layout
26886
26887 \end_inset
26888
26889 -system call rather than the 
26890 \begin_inset Flex Code
26891 status collapsed
26892
26893 \begin_layout Plain Layout
26894 system
26895 \end_layout
26896
26897 \end_inset
26898
26899  system-call, so it's not possible to execute arbitrary commands from the
26900  filename or parameter section via the shell.
26901 \end_layout
26902
26903 \begin_layout Standard
26904 This also implies that you are restricted in what command strings you can
26905  use in the external material templates.
26906  In particular, pipes and redirection are not readily available.
26907  This has to be so if \SpecialChar LyX
26908  should remain safe.
26909  If you want to use some of the shell features, you should write a safe
26910  script to do this in a controlled manner, and then invoke the script from
26911  the command string.
26912  
26913 \end_layout
26914
26915 \begin_layout Standard
26916 It is possible to design a template that interacts directly with the shell,
26917  but since this would allow a malicious user to execute arbitrary commands
26918  by writing clever filenames and/or parameters, we generally recommend that
26919  you only use safe scripts that work with the 
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 execvp
26925 \end_layout
26926
26927 \end_inset
26928
26929  system call in a controlled manner.
26930  Of course, for use in a controlled environment, it can be tempting to just
26931  fall back to use ordinary shell scripts.
26932  If you do so, be aware that you 
26933 \emph on
26934 will
26935 \emph default
26936  provide an easily exploitable security hole in your system.
26937  Of course it stands to reason that such unsafe templates will never be
26938  included in the standard \SpecialChar LyX
26939  distribution, although we do encourage people
26940  to submit new templates in the open source tradition.
26941  But \SpecialChar LyX
26942  as shipped from the official distribution channels will never have
26943  unsafe templates.
26944 \end_layout
26945
26946 \begin_layout Standard
26947 Including external material provides a lot of power, and you have to be
26948  careful not to introduce security hazards with this power.
26949  A subtle error in a single line in an innocent looking script can open
26950  the door to huge security problems.
26951  So if you do not fully understand the issues, we recommend that you consult
26952  a knowledgeable security professional or the \SpecialChar LyX
26953  development team if you have
26954  any questions about whether a given template is safe or not.
26955  And do this before you use it in an uncontrolled environment.
26956 \end_layout
26957
26958 \begin_layout Chapter
26959 \start_of_appendix
26960 List of supported \SpecialChar LyX
26961  functions to be used in layouts
26962 \begin_inset CommandInset label
26963 LatexCommand label
26964 name "chap:List-of-functions"
26965
26966 \end_inset
26967
26968
26969 \end_layout
26970
26971 \begin_layout Standard
26972 \align center
26973 \begin_inset Tabular
26974 <lyxtabular version="3" rows="11" columns="8">
26975 <features tabularvalignment="middle">
26976 <column alignment="left" valignment="top">
26977 <column alignment="left" valignment="top">
26978 <column alignment="left" valignment="top">
26979 <column alignment="left" valignment="top">
26980 <column alignment="left" valignment="top">
26981 <column alignment="left" valignment="top">
26982 <column alignment="left" valignment="top">
26983 <column alignment="left" valignment="top">
26984 <row>
26985 <cell alignment="left" valignment="top" usebox="none">
26986 \begin_inset Text
26987
26988 \begin_layout Plain Layout
26989 accents
26990 \end_layout
26991
26992 \end_inset
26993 </cell>
26994 <cell alignment="left" valignment="top" usebox="none">
26995 \begin_inset Text
26996
26997 \begin_layout Plain Layout
26998 booktabs
26999 \end_layout
27000
27001 \end_inset
27002 </cell>
27003 <cell alignment="left" valignment="top" usebox="none">
27004 \begin_inset Text
27005
27006 \begin_layout Plain Layout
27007 feyn
27008 \end_layout
27009
27010 \end_inset
27011 </cell>
27012 <cell alignment="left" valignment="top" usebox="none">
27013 \begin_inset Text
27014
27015 \begin_layout Plain Layout
27016 listings
27017 \end_layout
27018
27019 \end_inset
27020 </cell>
27021 <cell alignment="center" valignment="top" usebox="none">
27022 \begin_inset Text
27023
27024 \begin_layout Plain Layout
27025 natbib
27026 \end_layout
27027
27028 \end_inset
27029 </cell>
27030 <cell alignment="center" valignment="top" usebox="none">
27031 \begin_inset Text
27032
27033 \begin_layout Plain Layout
27034 rotfloat
27035 \end_layout
27036
27037 \end_inset
27038 </cell>
27039 <cell alignment="center" valignment="top" usebox="none">
27040 \begin_inset Text
27041
27042 \begin_layout Plain Layout
27043 tfrupee
27044 \end_layout
27045
27046 \end_inset
27047 </cell>
27048 <cell alignment="center" valignment="top" usebox="none">
27049 \begin_inset Text
27050
27051 \begin_layout Plain Layout
27052 wasysym
27053 \end_layout
27054
27055 \end_inset
27056 </cell>
27057 </row>
27058 <row>
27059 <cell alignment="left" valignment="top" usebox="none">
27060 \begin_inset Text
27061
27062 \begin_layout Plain Layout
27063 amsbsy
27064 \end_layout
27065
27066 \end_inset
27067 </cell>
27068 <cell alignment="left" valignment="top" usebox="none">
27069 \begin_inset Text
27070
27071 \begin_layout Plain Layout
27072 calc
27073 \end_layout
27074
27075 \end_inset
27076 </cell>
27077 <cell alignment="left" valignment="top" usebox="none">
27078 \begin_inset Text
27079
27080 \begin_layout Plain Layout
27081 fixltx2e
27082 \end_layout
27083
27084 \end_inset
27085 </cell>
27086 <cell alignment="left" valignment="top" usebox="none">
27087 \begin_inset Text
27088
27089 \begin_layout Plain Layout
27090 longtable
27091 \end_layout
27092
27093 \end_inset
27094 </cell>
27095 <cell alignment="center" valignment="top" usebox="none">
27096 \begin_inset Text
27097
27098 \begin_layout Plain Layout
27099 nomencl
27100 \end_layout
27101
27102 \end_inset
27103 </cell>
27104 <cell alignment="center" valignment="top" usebox="none">
27105 \begin_inset Text
27106
27107 \begin_layout Plain Layout
27108 rsphrase
27109 \end_layout
27110
27111 \end_inset
27112 </cell>
27113 <cell alignment="center" valignment="top" usebox="none">
27114 \begin_inset Text
27115
27116 \begin_layout Plain Layout
27117 tipa
27118 \end_layout
27119
27120 \end_inset
27121 </cell>
27122 <cell alignment="center" valignment="top" usebox="none">
27123 \begin_inset Text
27124
27125 \begin_layout Plain Layout
27126 wrapfig
27127 \end_layout
27128
27129 \end_inset
27130 </cell>
27131 </row>
27132 <row>
27133 <cell alignment="left" valignment="top" usebox="none">
27134 \begin_inset Text
27135
27136 \begin_layout Plain Layout
27137 amscd
27138 \end_layout
27139
27140 \end_inset
27141 </cell>
27142 <cell alignment="left" valignment="top" usebox="none">
27143 \begin_inset Text
27144
27145 \begin_layout Plain Layout
27146 CJK
27147 \end_layout
27148
27149 \end_inset
27150 </cell>
27151 <cell alignment="left" valignment="top" usebox="none">
27152 \begin_inset Text
27153
27154 \begin_layout Plain Layout
27155 float
27156 \end_layout
27157
27158 \end_inset
27159 </cell>
27160 <cell alignment="left" valignment="top" usebox="none">
27161 \begin_inset Text
27162
27163 \begin_layout Plain Layout
27164 lyxskak
27165 \end_layout
27166
27167 \end_inset
27168 </cell>
27169 <cell alignment="center" valignment="top" usebox="none">
27170 \begin_inset Text
27171
27172 \begin_layout Plain Layout
27173 pdfcolmk
27174 \end_layout
27175
27176 \end_inset
27177 </cell>
27178 <cell alignment="center" valignment="top" usebox="none">
27179 \begin_inset Text
27180
27181 \begin_layout Plain Layout
27182 setspace
27183 \end_layout
27184
27185 \end_inset
27186 </cell>
27187 <cell alignment="center" valignment="top" usebox="none">
27188 \begin_inset Text
27189
27190 \begin_layout Plain Layout
27191 tipx
27192 \end_layout
27193
27194 \end_inset
27195 </cell>
27196 <cell alignment="center" valignment="top" usebox="none">
27197 \begin_inset Text
27198
27199 \begin_layout Plain Layout
27200 xargs
27201 \end_layout
27202
27203 \end_inset
27204 </cell>
27205 </row>
27206 <row>
27207 <cell alignment="left" valignment="top" usebox="none">
27208 \begin_inset Text
27209
27210 \begin_layout Plain Layout
27211 amsmath
27212 \end_layout
27213
27214 \end_inset
27215 </cell>
27216 <cell alignment="left" valignment="top" usebox="none">
27217 \begin_inset Text
27218
27219 \begin_layout Plain Layout
27220 color
27221 \end_layout
27222
27223 \end_inset
27224 </cell>
27225 <cell alignment="left" valignment="top" usebox="none">
27226 \begin_inset Text
27227
27228 \begin_layout Plain Layout
27229 framed
27230 \end_layout
27231
27232 \end_inset
27233 </cell>
27234 <cell alignment="left" valignment="top" usebox="none">
27235 \begin_inset Text
27236
27237 \begin_layout Plain Layout
27238 makeidx
27239 \end_layout
27240
27241 \end_inset
27242 </cell>
27243 <cell alignment="center" valignment="top" usebox="none">
27244 \begin_inset Text
27245
27246 \begin_layout Plain Layout
27247 pdfpages
27248 \end_layout
27249
27250 \end_inset
27251 </cell>
27252 <cell alignment="center" valignment="top" usebox="none">
27253 \begin_inset Text
27254
27255 \begin_layout Plain Layout
27256 shapepar
27257 \end_layout
27258
27259 \end_inset
27260 </cell>
27261 <cell alignment="center" valignment="top" usebox="none">
27262 \begin_inset Text
27263
27264 \begin_layout Plain Layout
27265 tone
27266 \end_layout
27267
27268 \end_inset
27269 </cell>
27270 <cell alignment="center" valignment="top" usebox="none">
27271 \begin_inset Text
27272
27273 \begin_layout Plain Layout
27274 xcolor
27275 \end_layout
27276
27277 \end_inset
27278 </cell>
27279 </row>
27280 <row>
27281 <cell alignment="left" valignment="top" usebox="none">
27282 \begin_inset Text
27283
27284 \begin_layout Plain Layout
27285 amssymb
27286 \end_layout
27287
27288 \end_inset
27289 </cell>
27290 <cell alignment="left" valignment="top" usebox="none">
27291 \begin_inset Text
27292
27293 \begin_layout Plain Layout
27294 covington
27295 \end_layout
27296
27297 \end_inset
27298 </cell>
27299 <cell alignment="left" valignment="top" usebox="none">
27300 \begin_inset Text
27301
27302 \begin_layout Plain Layout
27303 graphicx
27304 \end_layout
27305
27306 \end_inset
27307 </cell>
27308 <cell alignment="left" valignment="top" usebox="none">
27309 \begin_inset Text
27310
27311 \begin_layout Plain Layout
27312 marvosym
27313 \end_layout
27314
27315 \end_inset
27316 </cell>
27317 <cell alignment="center" valignment="top" usebox="none">
27318 \begin_inset Text
27319
27320 \begin_layout Plain Layout
27321 pifont
27322 \end_layout
27323
27324 \end_inset
27325 </cell>
27326 <cell alignment="center" valignment="top" usebox="none">
27327 \begin_inset Text
27328
27329 \begin_layout Plain Layout
27330 slashed
27331 \end_layout
27332
27333 \end_inset
27334 </cell>
27335 <cell alignment="center" valignment="top" usebox="none">
27336 \begin_inset Text
27337
27338 \begin_layout Plain Layout
27339 txfonts
27340 \end_layout
27341
27342 \end_inset
27343 </cell>
27344 <cell alignment="center" valignment="top" usebox="none">
27345 \begin_inset Text
27346
27347 \begin_layout Plain Layout
27348 xy
27349 \end_layout
27350
27351 \end_inset
27352 </cell>
27353 </row>
27354 <row>
27355 <cell alignment="left" valignment="top" usebox="none">
27356 \begin_inset Text
27357
27358 \begin_layout Plain Layout
27359 amstext
27360 \end_layout
27361
27362 \end_inset
27363 </cell>
27364 <cell alignment="left" valignment="top" usebox="none">
27365 \begin_inset Text
27366
27367 \begin_layout Plain Layout
27368 csquotes
27369 \end_layout
27370
27371 \end_inset
27372 </cell>
27373 <cell alignment="left" valignment="top" usebox="none">
27374 \begin_inset Text
27375
27376 \begin_layout Plain Layout
27377 hhline
27378 \end_layout
27379
27380 \end_inset
27381 </cell>
27382 <cell alignment="left" valignment="top" usebox="none">
27383 \begin_inset Text
27384
27385 \begin_layout Plain Layout
27386 mathdesign
27387 \end_layout
27388
27389 \end_inset
27390 </cell>
27391 <cell alignment="center" valignment="top" usebox="none">
27392 \begin_inset Text
27393
27394 \begin_layout Plain Layout
27395 pmboxdraw
27396 \end_layout
27397
27398 \end_inset
27399 </cell>
27400 <cell alignment="center" valignment="top" usebox="none">
27401 \begin_inset Text
27402
27403 \begin_layout Plain Layout
27404 soul
27405 \end_layout
27406
27407 \end_inset
27408 </cell>
27409 <cell alignment="center" valignment="top" usebox="none">
27410 \begin_inset Text
27411
27412 \begin_layout Plain Layout
27413 ulem
27414 \end_layout
27415
27416 \end_inset
27417 </cell>
27418 <cell alignment="center" valignment="top" usebox="none">
27419 \begin_inset Text
27420
27421 \begin_layout Plain Layout
27422 yhmath
27423 \end_layout
27424
27425 \end_inset
27426 </cell>
27427 </row>
27428 <row>
27429 <cell alignment="left" valignment="top" usebox="none">
27430 \begin_inset Text
27431
27432 \begin_layout Plain Layout
27433 amsthm
27434 \end_layout
27435
27436 \end_inset
27437 </cell>
27438 <cell alignment="left" valignment="top" usebox="none">
27439 \begin_inset Text
27440
27441 \begin_layout Plain Layout
27442 dvipost
27443 \end_layout
27444
27445 \end_inset
27446 </cell>
27447 <cell alignment="left" valignment="top" usebox="none">
27448 \begin_inset Text
27449
27450 \begin_layout Plain Layout
27451 hyperref
27452 \end_layout
27453
27454 \end_inset
27455 </cell>
27456 <cell alignment="left" valignment="top" usebox="none">
27457 \begin_inset Text
27458
27459 \begin_layout Plain Layout
27460 mathdots
27461 \end_layout
27462
27463 \end_inset
27464 </cell>
27465 <cell alignment="center" valignment="top" usebox="none">
27466 \begin_inset Text
27467
27468 \begin_layout Plain Layout
27469 polyglossia
27470 \end_layout
27471
27472 \end_inset
27473 </cell>
27474 <cell alignment="center" valignment="top" usebox="none">
27475 \begin_inset Text
27476
27477 \begin_layout Plain Layout
27478 splitidx
27479 \end_layout
27480
27481 \end_inset
27482 </cell>
27483 <cell alignment="center" valignment="top" usebox="none">
27484 \begin_inset Text
27485
27486 \begin_layout Plain Layout
27487 undertilde
27488 \end_layout
27489
27490 \end_inset
27491 </cell>
27492 <cell alignment="center" valignment="top" usebox="none">
27493 \begin_inset Text
27494
27495 \begin_layout Plain Layout
27496
27497 \end_layout
27498
27499 \end_inset
27500 </cell>
27501 </row>
27502 <row>
27503 <cell alignment="left" valignment="top" usebox="none">
27504 \begin_inset Text
27505
27506 \begin_layout Plain Layout
27507 array
27508 \end_layout
27509
27510 \end_inset
27511 </cell>
27512 <cell alignment="left" valignment="top" usebox="none">
27513 \begin_inset Text
27514
27515 \begin_layout Plain Layout
27516 endnotes
27517 \end_layout
27518
27519 \end_inset
27520 </cell>
27521 <cell alignment="left" valignment="top" usebox="none">
27522 \begin_inset Text
27523
27524 \begin_layout Plain Layout
27525 ifsym
27526 \end_layout
27527
27528 \end_inset
27529 </cell>
27530 <cell alignment="left" valignment="top" usebox="none">
27531 \begin_inset Text
27532
27533 \begin_layout Plain Layout
27534 mathrsfs
27535 \end_layout
27536
27537 \end_inset
27538 </cell>
27539 <cell alignment="center" valignment="top" usebox="none">
27540 \begin_inset Text
27541
27542 \begin_layout Plain Layout
27543 prettyref
27544 \end_layout
27545
27546 \end_inset
27547 </cell>
27548 <cell alignment="center" valignment="top" usebox="none">
27549 \begin_inset Text
27550
27551 \begin_layout Plain Layout
27552 subfig
27553 \end_layout
27554
27555 \end_inset
27556 </cell>
27557 <cell alignment="center" valignment="top" usebox="none">
27558 \begin_inset Text
27559
27560 \begin_layout Plain Layout
27561 units
27562 \end_layout
27563
27564 \end_inset
27565 </cell>
27566 <cell alignment="center" valignment="top" usebox="none">
27567 \begin_inset Text
27568
27569 \begin_layout Plain Layout
27570
27571 \end_layout
27572
27573 \end_inset
27574 </cell>
27575 </row>
27576 <row>
27577 <cell alignment="left" valignment="top" usebox="none">
27578 \begin_inset Text
27579
27580 \begin_layout Plain Layout
27581 ascii
27582 \end_layout
27583
27584 \end_inset
27585 </cell>
27586 <cell alignment="left" valignment="top" usebox="none">
27587 \begin_inset Text
27588
27589 \begin_layout Plain Layout
27590 enumitem
27591 \end_layout
27592
27593 \end_inset
27594 </cell>
27595 <cell alignment="left" valignment="top" usebox="none">
27596 \begin_inset Text
27597
27598 \begin_layout Plain Layout
27599 ifthen
27600 \end_layout
27601
27602 \end_inset
27603 </cell>
27604 <cell alignment="left" valignment="top" usebox="none">
27605 \begin_inset Text
27606
27607 \begin_layout Plain Layout
27608 mhchem
27609 \end_layout
27610
27611 \end_inset
27612 </cell>
27613 <cell alignment="center" valignment="top" usebox="none">
27614 \begin_inset Text
27615
27616 \begin_layout Plain Layout
27617 pxfonts
27618 \end_layout
27619
27620 \end_inset
27621 </cell>
27622 <cell alignment="center" valignment="top" usebox="none">
27623 \begin_inset Text
27624
27625 \begin_layout Plain Layout
27626 subscript
27627 \end_layout
27628
27629 \end_inset
27630 </cell>
27631 <cell alignment="center" valignment="top" usebox="none">
27632 \begin_inset Text
27633
27634 \begin_layout Plain Layout
27635 url
27636 \end_layout
27637
27638 \end_inset
27639 </cell>
27640 <cell alignment="center" valignment="top" usebox="none">
27641 \begin_inset Text
27642
27643 \begin_layout Plain Layout
27644
27645 \end_layout
27646
27647 \end_inset
27648 </cell>
27649 </row>
27650 <row>
27651 <cell alignment="left" valignment="top" usebox="none">
27652 \begin_inset Text
27653
27654 \begin_layout Plain Layout
27655 bbding
27656 \end_layout
27657
27658 \end_inset
27659 </cell>
27660 <cell alignment="left" valignment="top" usebox="none">
27661 \begin_inset Text
27662
27663 \begin_layout Plain Layout
27664 esint
27665 \end_layout
27666
27667 \end_inset
27668 </cell>
27669 <cell alignment="left" valignment="top" usebox="none">
27670 \begin_inset Text
27671
27672 \begin_layout Plain Layout
27673 jurabib
27674 \end_layout
27675
27676 \end_inset
27677 </cell>
27678 <cell alignment="left" valignment="top" usebox="none">
27679 \begin_inset Text
27680
27681 \begin_layout Plain Layout
27682 multicol
27683 \end_layout
27684
27685 \end_inset
27686 </cell>
27687 <cell alignment="center" valignment="top" usebox="none">
27688 \begin_inset Text
27689
27690 \begin_layout Plain Layout
27691 refstyle
27692 \end_layout
27693
27694 \end_inset
27695 </cell>
27696 <cell alignment="center" valignment="top" usebox="none">
27697 \begin_inset Text
27698
27699 \begin_layout Plain Layout
27700 textcomp
27701 \end_layout
27702
27703 \end_inset
27704 </cell>
27705 <cell alignment="center" valignment="top" usebox="none">
27706 \begin_inset Text
27707
27708 \begin_layout Plain Layout
27709 varioref
27710 \end_layout
27711
27712 \end_inset
27713 </cell>
27714 <cell alignment="center" valignment="top" usebox="none">
27715 \begin_inset Text
27716
27717 \begin_layout Plain Layout
27718
27719 \end_layout
27720
27721 \end_inset
27722 </cell>
27723 </row>
27724 <row>
27725 <cell alignment="center" valignment="top" usebox="none">
27726 \begin_inset Text
27727
27728 \begin_layout Plain Layout
27729 bm
27730 \end_layout
27731
27732 \end_inset
27733 </cell>
27734 <cell alignment="center" valignment="top" usebox="none">
27735 \begin_inset Text
27736
27737 \begin_layout Plain Layout
27738 fancybox
27739 \end_layout
27740
27741 \end_inset
27742 </cell>
27743 <cell alignment="center" valignment="top" usebox="none">
27744 \begin_inset Text
27745
27746 \begin_layout Plain Layout
27747 latexsym
27748 \end_layout
27749
27750 \end_inset
27751 </cell>
27752 <cell alignment="center" valignment="top" usebox="none">
27753 \begin_inset Text
27754
27755 \begin_layout Plain Layout
27756 multirow
27757 \end_layout
27758
27759 \end_inset
27760 </cell>
27761 <cell alignment="center" valignment="top" usebox="none">
27762 \begin_inset Text
27763
27764 \begin_layout Plain Layout
27765 rotating
27766 \end_layout
27767
27768 \end_inset
27769 </cell>
27770 <cell alignment="center" valignment="top" usebox="none">
27771 \begin_inset Text
27772
27773 \begin_layout Plain Layout
27774 textgreek
27775 \end_layout
27776
27777 \end_inset
27778 </cell>
27779 <cell alignment="center" valignment="top" usebox="none">
27780 \begin_inset Text
27781
27782 \begin_layout Plain Layout
27783 verbatim
27784 \end_layout
27785
27786 \end_inset
27787 </cell>
27788 <cell alignment="center" valignment="top" usebox="none">
27789 \begin_inset Text
27790
27791 \begin_layout Plain Layout
27792
27793 \end_layout
27794
27795 \end_inset
27796 </cell>
27797 </row>
27798 </lyxtabular>
27799
27800 \end_inset
27801
27802
27803 \end_layout
27804
27805 \begin_layout Chapter
27806 Names of available colors to be used in layouts
27807 \begin_inset CommandInset label
27808 LatexCommand label
27809 name "chap:Names-of-colors"
27810
27811 \end_inset
27812
27813
27814 \end_layout
27815
27816 \begin_layout Standard
27817 The colors listed below are the standard colors and those that you can adjust
27818  in the \SpecialChar LyX
27819  preferences.
27820 \end_layout
27821
27822 \begin_layout Section
27823 Color functions
27824 \end_layout
27825
27826 \begin_layout Standard
27827 The following are no real colors, but rather act on color definitions:
27828 \end_layout
27829
27830 \begin_layout Description
27831 ignore The color is ignored
27832 \end_layout
27833
27834 \begin_layout Description
27835 inherit The color is inherited
27836 \end_layout
27837
27838 \begin_layout Description
27839 none
27840 \family roman
27841 \series medium
27842 \shape up
27843 \size normal
27844 \emph off
27845 \bar no
27846 \strikeout off
27847 \uuline off
27848 \uwave off
27849 \noun off
27850 \color none
27851  No particular color – clear or default
27852 \end_layout
27853
27854 \begin_layout Section
27855 Static colors
27856 \end_layout
27857
27858 \begin_layout Standard
27859 These are fixed colors that cannot me customized:
27860 \end_layout
27861
27862 \begin_layout Description
27863 black
27864 \end_layout
27865
27866 \begin_layout Description
27867 white
27868 \end_layout
27869
27870 \begin_layout Description
27871 blue
27872 \end_layout
27873
27874 \begin_layout Description
27875 brown
27876 \end_layout
27877
27878 \begin_layout Description
27879 cyan
27880 \end_layout
27881
27882 \begin_layout Description
27883 darkgray
27884 \end_layout
27885
27886 \begin_layout Description
27887 gray
27888 \end_layout
27889
27890 \begin_layout Description
27891 green
27892 \end_layout
27893
27894 \begin_layout Description
27895 lightgray
27896 \end_layout
27897
27898 \begin_layout Description
27899 lime
27900 \end_layout
27901
27902 \begin_layout Description
27903 magenta
27904 \end_layout
27905
27906 \begin_layout Description
27907 olive
27908 \end_layout
27909
27910 \begin_layout Description
27911 orange
27912 \end_layout
27913
27914 \begin_layout Description
27915 pink
27916 \end_layout
27917
27918 \begin_layout Description
27919 purple
27920 \end_layout
27921
27922 \begin_layout Description
27923 red
27924 \end_layout
27925
27926 \begin_layout Description
27927 teal
27928 \end_layout
27929
27930 \begin_layout Description
27931 violet
27932 \end_layout
27933
27934 \begin_layout Description
27935 yellow
27936 \end_layout
27937
27938 \begin_layout Section
27939 Dynamic colors
27940 \end_layout
27941
27942 \begin_layout Standard
27943 These are the colors allocated to specific elements in 
27944 \begin_inset Info
27945 type  "menu"
27946 arg   "dialog-show prefs"
27947 \end_inset
27948
27949 :
27950 \end_layout
27951
27952 \begin_layout Description
27953 added_space Added space color
27954 \end_layout
27955
27956 \begin_layout Description
27957 addedtext Added text color
27958 \end_layout
27959
27960 \begin_layout Description
27961 appendix Appendix marker color
27962 \end_layout
27963
27964 \begin_layout Description
27965 background Background color
27966 \end_layout
27967
27968 \begin_layout Description
27969 bottomarea Bottom area color
27970 \end_layout
27971
27972 \begin_layout Description
27973 branchlabel Label color for branches
27974 \end_layout
27975
27976 \begin_layout Description
27977 buttonbg Color used for button background
27978 \end_layout
27979
27980 \begin_layout Description
27981 buttonframe Color for inset button frames
27982 \end_layout
27983
27984 \begin_layout Description
27985 buttonhoverbg Color used for button background under focus
27986 \end_layout
27987
27988 \begin_layout Description
27989 changebar Changebar color
27990 \end_layout
27991
27992 \begin_layout Description
27993 changedtextauthor1 Changed text color author 1
27994 \end_layout
27995
27996 \begin_layout Description
27997 changedtextauthor2 Changed text color author 2
27998 \end_layout
27999
28000 \begin_layout Description
28001 changedtextauthor3 Changed text color author 3
28002 \end_layout
28003
28004 \begin_layout Description
28005 changedtextauthor4 Changed text color author 4
28006 \end_layout
28007
28008 \begin_layout Description
28009 changedtextauthor5 Changed text color author 5
28010 \end_layout
28011
28012 \begin_layout Description
28013 collapsible Collapsible insets text color
28014 \end_layout
28015
28016 \begin_layout Description
28017 collapsibleframe Collapsible insets framecolor
28018 \end_layout
28019
28020 \begin_layout Description
28021 command Text color for command insets
28022 \end_layout
28023
28024 \begin_layout Description
28025 commandbg Background color for command insets
28026 \end_layout
28027
28028 \begin_layout Description
28029 commandframe Frame color for command insets
28030 \end_layout
28031
28032 \begin_layout Description
28033 comment Label color for comments
28034 \end_layout
28035
28036 \begin_layout Description
28037 commentbg Background color of comments
28038 \end_layout
28039
28040 \begin_layout Description
28041 cursor Cursor color
28042 \end_layout
28043
28044 \begin_layout Description
28045 deletedtext Deleted text color
28046 \end_layout
28047
28048 \begin_layout Description
28049 deletedtextmodifier Deleted text modifying color
28050 \end_layout
28051
28052 \begin_layout Description
28053 depthbar Color for the depth bars in the margin
28054 \end_layout
28055
28056 \begin_layout Description
28057 eolmarker End of line marker color
28058 \end_layout
28059
28060 \begin_layout Description
28061 error Color of the \SpecialChar LaTeX
28062  error box
28063 \end_layout
28064
28065 \begin_layout Description
28066 footlabel Label color for footnotes
28067 \end_layout
28068
28069 \begin_layout Description
28070 foreground Foreground color
28071 \end_layout
28072
28073 \begin_layout Description
28074 graphicsbg Graphics inset background color
28075 \end_layout
28076
28077 \begin_layout Description
28078 greyedoutbg Background color of greyedout inset
28079 \end_layout
28080
28081 \begin_layout Description
28082 greyedoutlabel Label color for greyedout insets
28083 \end_layout
28084
28085 \begin_layout Description
28086 greyedouttext Color for greyedout inset text
28087 \end_layout
28088
28089 \begin_layout Description
28090 indexlabel Label color for index insets
28091 \end_layout
28092
28093 \begin_layout Description
28094 inlinecompletion Inline completion color
28095 \end_layout
28096
28097 \begin_layout Description
28098 insetbg Inset marker background color
28099 \end_layout
28100
28101 \begin_layout Description
28102 insetframe Inset marker frame color
28103 \end_layout
28104
28105 \begin_layout Description
28106 language Color for marking foreign language words
28107 \end_layout
28108
28109 \begin_layout Description
28110 latex Text color in \SpecialChar LaTeX
28111  mode
28112 \end_layout
28113
28114 \begin_layout Description
28115 listingsbg Background color of listings inset
28116 \end_layout
28117
28118 \begin_layout Description
28119 marginlabel Label color for margin notes
28120 \end_layout
28121
28122 \begin_layout Description
28123 math Math inset text color
28124 \end_layout
28125
28126 \begin_layout Description
28127 mathbg Math inset background color
28128 \end_layout
28129
28130 \begin_layout Description
28131 mathcorners Math inset frame color not under focus
28132 \end_layout
28133
28134 \begin_layout Description
28135 mathframe Math inset frame color under focus
28136 \end_layout
28137
28138 \begin_layout Description
28139 mathline Math line color
28140 \end_layout
28141
28142 \begin_layout Description
28143 mathmacrobg Macro math inset background color
28144 \end_layout
28145
28146 \begin_layout Description
28147 mathmacroblend Macro math blended color
28148 \end_layout
28149
28150 \begin_layout Description
28151 mathmacroframe Macro math frame color
28152 \end_layout
28153
28154 \begin_layout Description
28155 mathmacrohoverbg Macro math inset background color hovered
28156 \end_layout
28157
28158 \begin_layout Description
28159 mathmacrolabel Macro math label color
28160 \end_layout
28161
28162 \begin_layout Description
28163 mathmacronewarg Macro template color for new parameters
28164 \end_layout
28165
28166 \begin_layout Description
28167 mathmacrooldarg Macro template color for old parameters
28168 \end_layout
28169
28170 \begin_layout Description
28171 newpage New page color
28172 \end_layout
28173
28174 \begin_layout Description
28175 nonunique_inlinecompletion Inline completion color for the non-unique part
28176 \end_layout
28177
28178 \begin_layout Description
28179 note Label color for notes
28180 \end_layout
28181
28182 \begin_layout Description
28183 notebg Background color of notes
28184 \end_layout
28185
28186 \begin_layout Description
28187 pagebreak Page break/line break color
28188 \end_layout
28189
28190 \begin_layout Description
28191 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28192 \end_layout
28193
28194 \begin_layout Description
28195 phantomtext Text color for phantom insets
28196 \end_layout
28197
28198 \begin_layout Description
28199 preview The color used for previews
28200 \end_layout
28201
28202 \begin_layout Description
28203 previewframe Preview frame color
28204 \end_layout
28205
28206 \begin_layout Description
28207 regexpframe Color for regexp frame
28208 \end_layout
28209
28210 \begin_layout Description
28211 scroll Color that indicates when a row can be scrolled 
28212 \end_layout
28213
28214 \begin_layout Description
28215 selection Background color of selected text
28216 \end_layout
28217
28218 \begin_layout Description
28219 selectiontext Foreground color of selected text
28220 \end_layout
28221
28222 \begin_layout Description
28223 shadedbg Background color of shaded box
28224 \end_layout
28225
28226 \begin_layout Description
28227 special Special chars text color
28228 \end_layout
28229
28230 \begin_layout Description
28231 tabularline Table line color
28232 \end_layout
28233
28234 \begin_layout Description
28235 tabularonoffline Table line color
28236 \end_layout
28237
28238 \begin_layout Description
28239 urllabel Label color for URL insets
28240 \end_layout
28241
28242 \begin_layout Description
28243 urltext Color for URL inset text
28244 \end_layout
28245
28246 \end_body
28247 \end_document