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