]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Add NewlineCmd InsetLayout and Argument option
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 573
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-legacy
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tablestyle default
128 \tracking_changes true
129 \output_changes false
130 \html_math_output 0
131 \html_css_as_file 0
132 \html_be_strict true
133 \author -712698321 "Jürgen Spitzmüller"
134 \author -495245474 "Jean-Marc Lasgouttes"
135 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
136 \end_header
137
138 \begin_body
139
140 \begin_layout Title
141 Customizing \SpecialChar LyX
142 : Features for the Advanced User
143 \end_layout
144
145 \begin_layout Author
146 by the \SpecialChar LyX
147  Team
148 \begin_inset Foot
149 status collapsed
150
151 \begin_layout Plain Layout
152 \noindent
153 If you have comments or error corrections, please send them to the \SpecialChar LyX
154  Documentatio
155 n mailing list, 
156 \begin_inset CommandInset href
157 LatexCommand href
158 target "lyx-docs@lists.lyx.org"
159 type "mailto:"
160 literal "false"
161
162 \end_inset
163
164 .
165  Include 
166 \begin_inset Quotes eld
167 \end_inset
168
169 [Customization]
170 \begin_inset Quotes erd
171 \end_inset
172
173  in the subject header, and please cc the current maintainer of this file,
174  Richard Heck <rgheck@comcast.net>.
175 \end_layout
176
177 \end_inset
178
179
180 \begin_inset Newline newline
181 \end_inset
182
183
184 \begin_inset Newline newline
185 \end_inset
186
187 Version 2.3.x 
188 \end_layout
189
190 \begin_layout Standard
191 \begin_inset CommandInset toc
192 LatexCommand tableofcontents
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset Note Note
201 status open
202
203 \begin_layout Plain Layout
204 Please use change tracking when modifying this document.
205  This makes it easier for our translators to recognize things that have
206  been changed, and it helps the maintainer keep up-to-date with what's been
207  done.
208 \end_layout
209
210 \end_inset
211
212
213 \end_layout
214
215 \begin_layout Chapter
216 Introduction
217 \end_layout
218
219 \begin_layout Standard
220 This manual covers the customization features present in \SpecialChar LyX
221 .
222  In it, we discuss issues like keyboard shortcuts, screen previewing options,
223  printer options, sending commands to \SpecialChar LyX
224  via the \SpecialChar LyX
225  Server, internationalization,
226  installing new \SpecialChar LaTeX
227  classes and \SpecialChar LyX
228  layouts, etc.
229  We can't possibly hope to touch on everything you can change—our developers
230  add new features faster than we can document them—but we will explain the
231  most common customizations and hopefully point you in the right direction
232  for some of the more obscure ones.
233 \end_layout
234
235 \begin_layout Standard
236 \begin_inset Branch OutDated
237 inverted 0
238 status collapsed
239
240 \begin_layout Standard
241 Information from previous versions of this document that now seems to be
242  outdated is contained in the OutDated branch of this document.
243  By default, this information will not appear in the \SpecialChar LaTeX
244  output.
245 \end_layout
246
247 \end_inset
248
249
250 \end_layout
251
252 \begin_layout Chapter
253 \SpecialChar LyX
254  configuration files
255 \end_layout
256
257 \begin_layout Standard
258 This chapter aims to help you to find your way through the \SpecialChar LyX
259  configuration
260  files.
261  Before continuing to read this chapter, you should find out where your
262  \SpecialChar LyX
263  library and user directories are by using 
264 \begin_inset Flex Noun
265 status collapsed
266
267 \begin_layout Plain Layout
268 Help\SpecialChar menuseparator
269 About
270 \begin_inset space ~
271 \end_inset
272
273 LyX
274 \end_layout
275
276 \end_inset
277
278 .
279  The library directory is the place where \SpecialChar LyX
280  places its system-wide configuration
281  files; the user directory is where you can place your modified versions.
282  We will call the former 
283 \begin_inset Flex Code
284 status collapsed
285
286 \begin_layout Plain Layout
287 LyXDir
288 \end_layout
289
290 \end_inset
291
292  and the latter 
293 \begin_inset Flex Noun
294 status collapsed
295
296 \begin_layout Plain Layout
297 UserDir
298 \end_layout
299
300 \end_inset
301
302  in the remainder of this document.
303  
304 \end_layout
305
306 \begin_layout Section
307 What's in 
308 \begin_inset Flex Code
309 status collapsed
310
311 \begin_layout Plain Layout
312 LyXDir
313 \end_layout
314
315 \end_inset
316
317 ?
318 \end_layout
319
320 \begin_layout Standard
321 \begin_inset Flex Code
322 status collapsed
323
324 \begin_layout Plain Layout
325 LyXDir
326 \end_layout
327
328 \end_inset
329
330  and its sub-directories contain a number of files and that can be used
331  to customize \SpecialChar LyX
332 's behavior.
333  You can change many of these files from within \SpecialChar LyX
334  itself through the 
335 \begin_inset Flex Noun
336 status collapsed
337
338 \begin_layout Plain Layout
339 Tools\SpecialChar menuseparator
340 Preferences
341 \end_layout
342
343 \end_inset
344
345  dialog.
346  Most customization that you will want to do in \SpecialChar LyX
347  is possible through this
348  dialog.
349  However, many other inner aspects of \SpecialChar LyX
350  can be customized by modifying the
351  files in 
352 \begin_inset Flex Code
353 status collapsed
354
355 \begin_layout Plain Layout
356 LyXDir
357 \end_layout
358
359 \end_inset
360
361 .
362  These files fall in different categories, described in the following subsection
363 s.
364 \end_layout
365
366 \begin_layout Subsection
367 Automatically generated files
368 \end_layout
369
370 \begin_layout Standard
371 The files, which are to be found in 
372 \begin_inset Flex Noun
373 status collapsed
374
375 \begin_layout Plain Layout
376 UserDir
377 \end_layout
378
379 \end_inset
380
381 , are generated when you configure \SpecialChar LyX
382 .
383  They contain various default values that are guessed by inspection.
384  In general, it is not a good idea to modify them, since they might be overwritt
385 en at any time.
386 \end_layout
387
388 \begin_layout Labeling
389 \labelwidthstring 00.00.0000
390 \begin_inset Flex Code
391 status collapsed
392
393 \begin_layout Plain Layout
394 lyxrc.defaults
395 \end_layout
396
397 \end_inset
398
399  contains defaults for various commands.
400 \end_layout
401
402 \begin_layout Labeling
403 \labelwidthstring 00.00.0000
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 packages.lst
409 \end_layout
410
411 \end_inset
412
413  contains the list of packages that have been recognized by \SpecialChar LyX
414 .
415  It is currently unused by the \SpecialChar LyX
416  program itself, but the information extracted,
417  and more, is made available with 
418 \begin_inset Flex Noun
419 status collapsed
420
421 \begin_layout Plain Layout
422 Help\SpecialChar menuseparator
423 \SpecialChar LaTeX
424
425 \begin_inset space ~
426 \end_inset
427
428 Configuration
429 \end_layout
430
431 \end_inset
432
433 .
434 \end_layout
435
436 \begin_layout Labeling
437 \labelwidthstring 00.00.0000
438 \begin_inset Flex Code
439 status collapsed
440
441 \begin_layout Plain Layout
442 textclass.lst
443 \end_layout
444
445 \end_inset
446
447  the list of text classes that have been found in your 
448 \begin_inset Flex Code
449 status collapsed
450
451 \begin_layout Plain Layout
452 layout/
453 \end_layout
454
455 \end_inset
456
457  directories, along with the associated \SpecialChar LaTeX
458  document class and their description.
459 \end_layout
460
461 \begin_layout Labeling
462 \labelwidthstring 00.00.0000
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 lyxmodules.lst
468 \end_layout
469
470 \end_inset
471
472  the list of layout modules found in your 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 layout/
478 \end_layout
479
480 \end_inset
481
482  directories
483 \end_layout
484
485 \begin_layout Labeling
486 \labelwidthstring 00.00.0000
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 *files.lst
492 \end_layout
493
494 \end_inset
495
496  lists of various sorts of \SpecialChar LaTeX
497 -related files found on your system
498 \end_layout
499
500 \begin_layout Labeling
501 \labelwidthstring 00.00.0000
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506 doc/\SpecialChar LaTeX
507 Config.lyx
508 \end_layout
509
510 \end_inset
511
512  is automatically generated during configuration from the file 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 \SpecialChar LaTeX
518 Config.lyx.in
519 \end_layout
520
521 \end_inset
522
523 .
524  It contains information on your \SpecialChar LaTeX
525  configuration.
526 \end_layout
527
528 \begin_layout Subsection
529 Directories
530 \end_layout
531
532 \begin_layout Standard
533 These directories are duplicated between 
534 \begin_inset Flex Code
535 status collapsed
536
537 \begin_layout Plain Layout
538 LyXDir
539 \end_layout
540
541 \end_inset
542
543  and 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 UserDir
549 \end_layout
550
551 \end_inset
552
553 .
554  If a particular files exists in both places, the one in 
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 UserDir
560 \end_layout
561
562 \end_inset
563
564  will be used.
565 \end_layout
566
567 \begin_layout Labeling
568 \labelwidthstring 00.00.0000
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 bind/
574 \end_layout
575
576 \end_inset
577
578  this directory contains files with the extension 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 .bind
584 \end_layout
585
586 \end_inset
587
588  that define the keybindings used in \SpecialChar LyX
589 .
590  If there exists an internationalized version of the bind file named 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 $LANG_xxx.bind
596 \end_layout
597
598 \end_inset
599
600 , that will be used first.
601 \end_layout
602
603 \begin_layout Labeling
604 \labelwidthstring 00.00.0000
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 citeengines/
610 \end_layout
611
612 \end_inset
613
614  contains files with the extension 
615 \begin_inset Flex Code
616 status collapsed
617
618 \begin_layout Plain Layout
619 .citeengine
620 \end_layout
621
622 \end_inset
623
624  which define the diverse citation possibilities (natbib, biblatex etc.).
625  See 
626 \begin_inset CommandInset ref
627 LatexCommand ref
628 reference "subsec:Cite-Engine-Files"
629 plural "false"
630 caps "false"
631 noprefix "false"
632
633 \end_inset
634
635  for details.
636 \end_layout
637
638 \begin_layout Labeling
639 \labelwidthstring 00.00.0000
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 clipart/
645 \end_layout
646
647 \end_inset
648
649  contains graphics files that can be included in documents.
650  
651 \end_layout
652
653 \begin_layout Labeling
654 \labelwidthstring 00.00.0000
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 doc/
660 \end_layout
661
662 \end_inset
663
664  contains \SpecialChar LyX
665  documentation files (including the one you are currently reading).
666  The file 
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 \SpecialChar LaTeX
672 Config.lyx
673 \end_layout
674
675 \end_inset
676
677  deserves special attention, as noted above.
678  The internationalized help docs are in subdirectories 
679 \begin_inset Flex Code
680 status collapsed
681
682 \begin_layout Plain Layout
683 doc/xx
684 \end_layout
685
686 \end_inset
687
688  where 
689 \begin_inset Quotes eld
690 \end_inset
691
692 xx
693 \begin_inset Quotes erd
694 \end_inset
695
696  is the ISO language code.
697  See 
698 \begin_inset CommandInset ref
699 LatexCommand ref
700 reference "cha:Internationalizing-LyX"
701
702 \end_inset
703
704  for details.
705 \end_layout
706
707 \begin_layout Labeling
708 \labelwidthstring 00.00.0000
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713 examples/
714 \end_layout
715
716 \end_inset
717
718  contains example files that explain how to use some features.
719  In the file browser, press the 
720 \begin_inset Flex Noun
721 status collapsed
722
723 \begin_layout Plain Layout
724 Examples
725 \end_layout
726
727 \end_inset
728
729  button to get there.
730 \end_layout
731
732 \begin_layout Labeling
733 \labelwidthstring 00.00.0000
734 \begin_inset Flex Code
735 status collapsed
736
737 \begin_layout Plain Layout
738 images/
739 \end_layout
740
741 \end_inset
742
743  contains image files that are used by the 
744 \begin_inset Flex Noun
745 status collapsed
746
747 \begin_layout Plain Layout
748 Document
749 \end_layout
750
751 \end_inset
752
753  dialog.
754  In addition, it also contains the individual icons used in the toolbar
755  and the banners that can be shown when \SpecialChar LyX
756  is launched.
757 \end_layout
758
759 \begin_layout Labeling
760 \labelwidthstring 00.00.0000
761 \begin_inset Flex Code
762 status collapsed
763
764 \begin_layout Plain Layout
765 kbd/
766 \end_layout
767
768 \end_inset
769
770  contains keyboard keymapping files.
771  See 
772 \begin_inset CommandInset ref
773 LatexCommand ref
774 reference "sec:International-Keymap-Stuff"
775
776 \end_inset
777
778  for details.
779 \end_layout
780
781 \begin_layout Labeling
782 \labelwidthstring 00.00.0000
783 \begin_inset Flex Code
784 status collapsed
785
786 \begin_layout Plain Layout
787 layouts/
788 \end_layout
789
790 \end_inset
791
792  contains the text class and module files described in 
793 \begin_inset CommandInset ref
794 LatexCommand ref
795 reference "cha:Installing-New-Document"
796
797 \end_inset
798
799 .
800 \end_layout
801
802 \begin_layout Labeling
803 \labelwidthstring 00.00.0000
804 \begin_inset Flex Code
805 status collapsed
806
807 \begin_layout Plain Layout
808 lyx2lyx
809 \end_layout
810
811 \end_inset
812
813  contains the 
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 lyx2lyx
819 \end_layout
820
821 \end_inset
822
823  Python scripts used to convert between \SpecialChar LyX
824  versions.
825  These can be run from the command line if, say, you want to batch-convert
826  files.
827 \end_layout
828
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835 scripts/
836 \end_layout
837
838 \end_inset
839
840  contains some files that demonstrate the capabilities of the 
841 \begin_inset Flex Noun
842 status collapsed
843
844 \begin_layout Plain Layout
845 External
846 \begin_inset space ~
847 \end_inset
848
849 Template
850 \end_layout
851
852 \end_inset
853
854  feature.
855  Also contains some scripts used by \SpecialChar LyX
856  itself.
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 templates/
866 \end_layout
867
868 \end_inset
869
870  contains the standard \SpecialChar LyX
871  template files described in 
872 \begin_inset CommandInset ref
873 LatexCommand ref
874 reference "subsec:Creating-Templates"
875
876 \end_inset
877
878 .
879 \end_layout
880
881 \begin_layout Labeling
882 \labelwidthstring 00.00.0000
883 \begin_inset Flex Code
884 status collapsed
885
886 \begin_layout Plain Layout
887 ui/
888 \end_layout
889
890 \end_inset
891
892  contains files with the extension 
893 \begin_inset Flex Code
894 status collapsed
895
896 \begin_layout Plain Layout
897 .ui
898 \end_layout
899
900 \end_inset
901
902  that define the user interface to \SpecialChar LyX
903 .
904  That is, the files define which items appear in which menus and the items
905  appearing on the toolbar.
906 \end_layout
907
908 \begin_layout Labeling
909 \labelwidthstring 00.00.0000
910 \begin_inset Flex Code
911 status collapsed
912
913 \begin_layout Plain Layout
914 xtemplates/
915 \end_layout
916
917 \end_inset
918
919  contains files with the extension 
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924 .xtemplate
925 \end_layout
926
927 \end_inset
928
929  which define the templates for the insertion of external material to a
930  \SpecialChar LyX
931  document; see 
932 \begin_inset CommandInset ref
933 LatexCommand ref
934 reference "chap:Including-External-Material"
935
936 \end_inset
937
938 .
939 \end_layout
940
941 \begin_layout Subsection
942 Files you don't want to modify
943 \end_layout
944
945 \begin_layout Standard
946 These files are used internally by \SpecialChar LyX
947  and you generally do not need to modify
948  them unless you are a developer.
949 \end_layout
950
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
954 status collapsed
955
956 \begin_layout Plain Layout
957 CREDITS
958 \end_layout
959
960 \end_inset
961
962  this file contains the list of \SpecialChar LyX
963  developers.
964  The contents are displayed with the menu entry 
965 \begin_inset Flex Noun
966 status collapsed
967
968 \begin_layout Plain Layout
969 Help\SpecialChar menuseparator
970 About
971 \begin_inset space ~
972 \end_inset
973
974 LyX
975 \end_layout
976
977 \end_inset
978
979 .
980 \end_layout
981
982 \begin_layout Labeling
983 \labelwidthstring 00.00.0000
984 \begin_inset Flex Code
985 status collapsed
986
987 \begin_layout Plain Layout
988 chkconfig.ltx
989 \end_layout
990
991 \end_inset
992
993  this is a \SpecialChar LaTeX
994  script used during the configuration process.
995  Do not run directly.
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 configure.py
1005 \end_layout
1006
1007 \end_inset
1008
1009  this is a Python script that is used to re-configure \SpecialChar LyX
1010 .
1011  It creates configuration files in the directory it was run from.
1012 \end_layout
1013
1014 \begin_layout Subsection
1015 Other files needing a line or two
1016 \end_layout
1017
1018 \begin_layout Labeling
1019 \labelwidthstring 00.00.0000
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 encodings
1025 \end_layout
1026
1027 \end_inset
1028
1029  this contains tables describing how different character encodings can be
1030  mapped to Unicode
1031 \end_layout
1032
1033 \begin_layout Labeling
1034 \labelwidthstring 00.00.0000
1035 \begin_inset Flex Code
1036 status collapsed
1037
1038 \begin_layout Plain Layout
1039 languages
1040 \end_layout
1041
1042 \end_inset
1043
1044  this file contains a list of all the languages currently supported by \SpecialChar LyX
1045 .
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 latexfonts
1055 \end_layout
1056
1057 \end_inset
1058
1059  contains information about the supported fonts.
1060 \end_layout
1061
1062 \begin_layout Labeling
1063 \labelwidthstring 00.00.0000
1064 \begin_inset Flex Code
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068 layouttranslations
1069 \end_layout
1070
1071 \end_inset
1072
1073  this file contains translations for internationalized paragraph styles
1074  (see 
1075 \begin_inset CommandInset ref
1076 LatexCommand ref
1077 reference "subsec:I18n"
1078
1079 \end_inset
1080
1081 ).
1082 \end_layout
1083
1084 \begin_layout Labeling
1085 \labelwidthstring 00.00.0000
1086 \begin_inset Flex Code
1087 status collapsed
1088
1089 \begin_layout Plain Layout
1090 unicodesymbols
1091 \end_layout
1092
1093 \end_inset
1094
1095  this file contains information about Unicode-encoded glyphs and the way
1096  they are supported by \SpecialChar LyX
1097  via \SpecialChar LaTeX
1098 .
1099 \end_layout
1100
1101 \begin_layout Section
1102 Your local configuration directory
1103 \end_layout
1104
1105 \begin_layout Standard
1106 Even if you are using \SpecialChar LyX
1107  as an unprivileged user, you might want to change
1108  \SpecialChar LyX
1109  configuration for your own use.
1110  The 
1111 \begin_inset Flex Code
1112 status collapsed
1113
1114 \begin_layout Plain Layout
1115 UserDir
1116 \end_layout
1117
1118 \end_inset
1119
1120  directory contains all your personal configuration files.
1121  This is the directory described as 
1122 \begin_inset Quotes eld
1123 \end_inset
1124
1125 user directory
1126 \begin_inset Quotes erd
1127 \end_inset
1128
1129  in 
1130 \begin_inset Flex Noun
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 Help\SpecialChar menuseparator
1135 About
1136 \begin_inset space ~
1137 \end_inset
1138
1139 LyX
1140 \end_layout
1141
1142 \end_inset
1143
1144 .
1145  This directory is used as a mirror of 
1146 \begin_inset Flex Code
1147 status collapsed
1148
1149 \begin_layout Plain Layout
1150 LyXDir
1151 \end_layout
1152
1153 \end_inset
1154
1155 , which means that every file in 
1156 \begin_inset Flex Code
1157 status collapsed
1158
1159 \begin_layout Plain Layout
1160 UserDir
1161 \end_layout
1162
1163 \end_inset
1164
1165  is a replacement for the corresponding file in 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170 LyXDir
1171 \end_layout
1172
1173 \end_inset
1174
1175 .
1176  Any configuration file described in the above sections can be placed either
1177  in the system-wide directory, in which case it will affect all users, or
1178  in your local directory for your own use.
1179 \end_layout
1180
1181 \begin_layout Standard
1182 To make things clearer, let's provide a few examples:
1183 \end_layout
1184
1185 \begin_layout Itemize
1186 The preferences set in the 
1187 \begin_inset Flex Noun
1188 status collapsed
1189
1190 \begin_layout Plain Layout
1191 Tools\SpecialChar menuseparator
1192 Preferences
1193 \end_layout
1194
1195 \end_inset
1196
1197  dialog are saved to a file 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 preferences
1203 \end_layout
1204
1205 \end_inset
1206
1207  in 
1208 \begin_inset Flex Code
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 UserDir
1213 \end_layout
1214
1215 \end_inset
1216
1217 .
1218 \end_layout
1219
1220 \begin_layout Itemize
1221 When you reconfigure using 
1222 \begin_inset Flex Noun
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 Tools\SpecialChar menuseparator
1227 Reconfigure
1228 \end_layout
1229
1230 \end_inset
1231
1232 , \SpecialChar LyX
1233  runs the 
1234 \begin_inset Flex Code
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238 configure.py
1239 \end_layout
1240
1241 \end_inset
1242
1243  script, and the resulting files are written in your local configuration
1244  directory.
1245  This means that any additional text class file that you might have added
1246  in 
1247 \begin_inset Flex Code
1248 status collapsed
1249
1250 \begin_layout Plain Layout
1251 UserDir/layouts
1252 \end_layout
1253
1254 \end_inset
1255
1256  will be added to the list of classes in the 
1257 \begin_inset Flex Noun
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 Document\SpecialChar menuseparator
1262 Settings
1263 \end_layout
1264
1265 \end_inset
1266
1267  dialog.
1268 \end_layout
1269
1270 \begin_layout Itemize
1271 If you get some updated documentation from \SpecialChar LyX
1272  ftp site and cannot install
1273  it because you do not have sysadmin rights on your system, you can just
1274  copy the files in 
1275 \begin_inset Flex Code
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 UserDir/doc/
1280 \end_layout
1281
1282 \end_inset
1283
1284  and the items in the 
1285 \begin_inset Flex Noun
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 Help
1290 \end_layout
1291
1292 \end_inset
1293
1294  menu will open them!
1295 \end_layout
1296
1297 \begin_layout Section
1298 Running \SpecialChar LyX
1299  with multiple configurations
1300 \end_layout
1301
1302 \begin_layout Standard
1303 The configuration freedom of the local configuration directory may not suffice
1304  if you want to have more than one configuration at your disposal.
1305  For example, you may want to be use different key bindings or printer settings
1306  at different times.
1307  You can achieve this by having several such directories.
1308  You then specify which directory to use at run-time.
1309 \end_layout
1310
1311 \begin_layout Standard
1312 Invoking \SpecialChar LyX
1313  with the command line switch 
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 -userdir
1319 \end_layout
1320
1321 \end_inset
1322
1323  
1324 \emph on
1325 <some directory>
1326 \emph default
1327  instructs the program to read the configuration from that directory, and
1328  not from the default directory.
1329  (You can determine the default directory by running \SpecialChar LyX
1330  without the 
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335 -userdir
1336 \end_layout
1337
1338 \end_inset
1339
1340  switch.) If the specified directory does not exist, \SpecialChar LyX
1341  offers to create it
1342  for you, just like it does for the default directory on the first time
1343  you run the program.
1344  You can modify the configuration options in this additional user directory
1345  exactly as you would for the default directory.
1346  These directories are completely independent (but read on).
1347  Note that setting the environment variable 
1348 \begin_inset Flex Code
1349 status collapsed
1350
1351 \begin_layout Plain Layout
1352 LYX_USERDIR_VER
1353 \end_layout
1354
1355 \end_inset
1356
1357  to some value has exactly the same effect.
1358 \end_layout
1359
1360 \begin_layout Standard
1361 Having several configurations also requires more maintenance: if you want
1362  to add a new layout to 
1363 \begin_inset Flex Code
1364 status collapsed
1365
1366 \begin_layout Plain Layout
1367 NewUserDir/layouts
1368 \end_layout
1369
1370 \end_inset
1371
1372  which you want available from all your configurations, you must add it
1373  to each directory separately.
1374  You can avoid this with the following trick: after \SpecialChar LyX
1375  creates the additional
1376  directory, most of the subdirectories (see above) are empty.
1377  If you want the new configuration to mirror an existing one, replace the
1378  empty subdirectory with a symbolic link to the matching subdirectory in
1379  the existing configuration.
1380  Take care with the 
1381 \begin_inset Flex Code
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385 doc/
1386 \end_layout
1387
1388 \end_inset
1389
1390  subdirectory, however, since it contains a file written by the configuration
1391  script (also accessible through 
1392 \begin_inset Flex Noun
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 Tools\SpecialChar menuseparator
1397 Reconfigure
1398 \end_layout
1399
1400 \end_inset
1401
1402 ) which is configuration-specific.
1403 \end_layout
1404
1405 \begin_layout Chapter
1406 The Preferences dialog
1407 \end_layout
1408
1409 \begin_layout Standard
1410 All options of the preferences dialog are described in the Appendix 
1411 \emph on
1412 The Preferences Dialog
1413 \emph default
1414  in the 
1415 \emph on
1416 User's Guide
1417 \emph default
1418 .
1419  For some options you might find here more details.
1420 \end_layout
1421
1422 \begin_layout Section
1423 Formats
1424 \begin_inset CommandInset label
1425 LatexCommand label
1426 name "sec:Formats"
1427
1428 \end_inset
1429
1430
1431 \end_layout
1432
1433 \begin_layout Standard
1434 The first step is to define your file formats if they are not already defined.
1435  To do so, open the 
1436 \begin_inset Flex Noun
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440 Tools\SpecialChar menuseparator
1441 Preferences
1442 \end_layout
1443
1444 \end_inset
1445
1446  dialog.
1447  Under 
1448 \begin_inset Flex Noun
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 File Handling\SpecialChar menuseparator
1453 File formats
1454 \end_layout
1455
1456 \end_inset
1457
1458  press the 
1459 \begin_inset Flex Noun
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 New
1464 \end_layout
1465
1466 \end_inset
1467
1468  button to define your new format.
1469  The 
1470 \begin_inset Flex Noun
1471 status collapsed
1472
1473 \begin_layout Plain Layout
1474 Format
1475 \end_layout
1476
1477 \end_inset
1478
1479  field contains the name used to identify the format in the GUI.
1480  The 
1481 \begin_inset Flex Noun
1482 status collapsed
1483
1484 \begin_layout Plain Layout
1485 Short Name
1486 \end_layout
1487
1488 \end_inset
1489
1490  is used to identify the format internally.
1491  You will also need to enter a file extension.
1492  These are all required.
1493  The optional 
1494 \begin_inset Flex Noun
1495 status collapsed
1496
1497 \begin_layout Plain Layout
1498 Shortcut
1499 \end_layout
1500
1501 \end_inset
1502
1503  field is used to provide a keyboard shortcut on the menus.
1504  (For example, pressing 
1505 \begin_inset Flex Noun
1506 status collapsed
1507
1508 \begin_layout Plain Layout
1509 Ctrl+D
1510 \end_layout
1511
1512 \end_inset
1513
1514  will 
1515 \begin_inset Flex Noun
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 Document\SpecialChar menuseparator
1520 View (Other Formats)\SpecialChar menuseparator
1521 DVI
1522 \end_layout
1523
1524 \end_inset
1525
1526 .) 
1527 \end_layout
1528
1529 \begin_layout Standard
1530 A Format can have a 
1531 \begin_inset Flex Noun
1532 status collapsed
1533
1534 \begin_layout Plain Layout
1535 Viewer
1536 \end_layout
1537
1538 \end_inset
1539
1540  and an 
1541 \begin_inset Flex Noun
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545 Editor
1546 \end_layout
1547
1548 \end_inset
1549
1550  associated with it.
1551  For example, you might want to use 
1552 \begin_inset Flex Noun
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 Ghostview
1557 \end_layout
1558
1559 \end_inset
1560
1561  to view PostScript files.
1562  You can enter the command needed to start the program in the corresponding
1563  fields.
1564  In defining this command, you can use the four variables listed in the
1565  next section.
1566  The viewer is launched when you view an image in \SpecialChar LyX
1567  or use the 
1568 \begin_inset Flex Noun
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 Document\SpecialChar menuseparator
1573 View
1574 \end_layout
1575
1576 \end_inset
1577
1578  menu.
1579  The editor is for example launched when you right-click on an image and
1580  choose 
1581 \begin_inset Flex Noun
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 Edit externally
1586 \end_layout
1587
1588 \end_inset
1589
1590  in the appearing context menu.
1591 \end_layout
1592
1593 \begin_layout Standard
1594 The 
1595 \begin_inset Flex Noun
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599 MIME
1600 \end_layout
1601
1602 \end_inset
1603
1604  type of a format is optional, but if it is specified, it must be unique
1605  across all formats.
1606  It is used to detect files of this format from the file contents.
1607  For some important file formats there is no MIME type officially registered
1608  with the 
1609 \begin_inset CommandInset href
1610 LatexCommand href
1611 name "IANA"
1612 target "http://www.iana.org/assignments/media-types/"
1613 literal "false"
1614
1615 \end_inset
1616
1617 .
1618  Therefore \SpecialChar LyX
1619  uses the extended list of MIME types as specified by 
1620 \begin_inset CommandInset href
1621 LatexCommand href
1622 name "freedesktop.org"
1623 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1624 literal "false"
1625
1626 \end_inset
1627
1628 .
1629 \end_layout
1630
1631 \begin_layout Standard
1632 The 
1633 \begin_inset Flex Noun
1634 status collapsed
1635
1636 \begin_layout Plain Layout
1637 Document format
1638 \end_layout
1639
1640 \end_inset
1641
1642  option tells \SpecialChar LyX
1643  that a format is suitable for document export.
1644  If this is set and if a suitable conversion route exists (see 
1645 \begin_inset CommandInset ref
1646 LatexCommand ref
1647 reference "sec:Converters"
1648
1649 \end_inset
1650
1651 ), the format will appear in the 
1652 \begin_inset Flex Noun
1653 status collapsed
1654
1655 \begin_layout Plain Layout
1656 File\SpecialChar menuseparator
1657 Export
1658 \end_layout
1659
1660 \end_inset
1661
1662  menu.
1663  The format will also appear in the 
1664 \begin_inset Flex Noun
1665 status collapsed
1666
1667 \begin_layout Plain Layout
1668 Document\SpecialChar menuseparator
1669 View
1670 \end_layout
1671
1672 \end_inset
1673
1674  menu if a viewer is specified for the format.
1675  Pure image formats, such as 
1676 \begin_inset Flex Code
1677 status collapsed
1678
1679 \begin_layout Plain Layout
1680 png
1681 \end_layout
1682
1683 \end_inset
1684
1685 , should not use this option.
1686  Formats that can both represent vector graphics and documents like 
1687 \begin_inset Flex Code
1688 status collapsed
1689
1690 \begin_layout Plain Layout
1691 pdf
1692 \end_layout
1693
1694 \end_inset
1695
1696  should use it.
1697 \end_layout
1698
1699 \begin_layout Standard
1700 The option 
1701 \begin_inset Flex Noun
1702 status collapsed
1703
1704 \begin_layout Plain Layout
1705 Vector graphics format
1706 \end_layout
1707
1708 \end_inset
1709
1710  tells \SpecialChar LyX
1711  that a format can contain vector graphics.
1712  This information is used to determine the target format of included graphics
1713  for 
1714 \begin_inset Flex Noun
1715 status collapsed
1716
1717 \begin_layout Plain Layout
1718 pdflatex
1719 \end_layout
1720
1721 \end_inset
1722
1723  export.
1724  Included graphics may need to be converted to either 
1725 \begin_inset Flex Noun
1726 status collapsed
1727
1728 \begin_layout Plain Layout
1729 pdf
1730 \end_layout
1731
1732 \end_inset
1733
1734
1735 \begin_inset Flex Noun
1736 status collapsed
1737
1738 \begin_layout Plain Layout
1739 png
1740 \end_layout
1741
1742 \end_inset
1743
1744 , or 
1745 \begin_inset Flex Noun
1746 status collapsed
1747
1748 \begin_layout Plain Layout
1749 jpg
1750 \end_layout
1751
1752 \end_inset
1753
1754 , since 
1755 \begin_inset Flex Noun
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 pdflatex
1760 \end_layout
1761
1762 \end_inset
1763
1764  cannot handle other image formats.
1765  If an included graphic is not already in 
1766 \begin_inset Flex Noun
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 pdf
1771 \end_layout
1772
1773 \end_inset
1774
1775
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 png
1781 \end_layout
1782
1783 \end_inset
1784
1785 , or 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 jpg
1791 \end_layout
1792
1793 \end_inset
1794
1795  format, it is converted to 
1796 \begin_inset Flex Noun
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 pdf
1801 \end_layout
1802
1803 \end_inset
1804
1805  if the vector format option is set, and otherwise to 
1806 \begin_inset Flex Noun
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 png
1811 \end_layout
1812
1813 \end_inset
1814
1815 .
1816 \end_layout
1817
1818 \begin_layout Section
1819 Copiers
1820 \end_layout
1821
1822 \begin_layout Standard
1823 Since all conversions from one format to another take place in \SpecialChar LyX
1824 's temporary
1825  directory, it is sometimes necessary to modify a file before copying it
1826  to the temporary directory in order that the conversion may be performed.
1827 \begin_inset Foot
1828 status collapsed
1829
1830 \begin_layout Plain Layout
1831 For example, the file may refer to other files—images, for example—using
1832  relative file names, and these may become invalid when the file is copied
1833  to the temporary directory.
1834 \end_layout
1835
1836 \end_inset
1837
1838  This is done by a Copier: It copies a file to (or from) the temporary directory
1839  and may modify it in the process.
1840 \end_layout
1841
1842 \begin_layout Standard
1843 The definitions of the copiers may use eight variables:
1844 \end_layout
1845
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Flex Code
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 $$s
1853 \end_layout
1854
1855 \end_inset
1856
1857  The \SpecialChar LyX
1858  system directory (e.
1859 \begin_inset space \thinspace{}
1860 \end_inset
1861
1862 g.
1863 \begin_inset space \space{}
1864 \end_inset
1865
1866
1867 \begin_inset Flex Noun
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 /usr/share/lyx
1872 \end_layout
1873
1874 \end_inset
1875
1876 ).
1877 \end_layout
1878
1879 \begin_layout Labeling
1880 \labelwidthstring 00.00.0000
1881 \begin_inset Flex Code
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885 $$i
1886 \end_layout
1887
1888 \end_inset
1889
1890  The input file
1891 \end_layout
1892
1893 \begin_layout Labeling
1894 \labelwidthstring 00.00.0000
1895 \begin_inset Flex Code
1896 status collapsed
1897
1898 \begin_layout Plain Layout
1899 $$o
1900 \end_layout
1901
1902 \end_inset
1903
1904  The output file
1905 \end_layout
1906
1907 \begin_layout Labeling
1908 \labelwidthstring 00.00.0000
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913 $$b
1914 \end_layout
1915
1916 \end_inset
1917
1918  The base name (without filename extension) in the \SpecialChar LyX
1919  temporary directory
1920 \end_layout
1921
1922 \begin_layout Labeling
1923 \labelwidthstring 00.00.0000
1924 \begin_inset Flex Code
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928 $$p
1929 \end_layout
1930
1931 \end_inset
1932
1933  The full directory path of the \SpecialChar LyX
1934  temporary directory
1935 \end_layout
1936
1937 \begin_layout Labeling
1938 \labelwidthstring 00.00.0000
1939 \begin_inset Flex Code
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 $$r
1944 \end_layout
1945
1946 \end_inset
1947
1948  The full pathname to the original \SpecialChar LyX
1949  file being processed
1950 \end_layout
1951
1952 \begin_layout Labeling
1953 \labelwidthstring 00.00.0000
1954 \begin_inset Flex Code
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 $$f
1959 \end_layout
1960
1961 \end_inset
1962
1963  The filename (without any directory path) of the \SpecialChar LyX
1964  file.
1965 \end_layout
1966
1967 \begin_layout Labeling
1968 \labelwidthstring 00.00.0000
1969 \begin_inset Flex Code
1970 status collapsed
1971
1972 \begin_layout Plain Layout
1973 $$l
1974 \end_layout
1975
1976 \end_inset
1977
1978  The `\SpecialChar LaTeX
1979  name'
1980 \end_layout
1981
1982 \begin_layout Standard
1983 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1984 's 
1985 \series bold
1986
1987 \backslash
1988 include
1989 \series default
1990  command.
1991  It is relevant only when exporting files suitable for such inclusion.
1992 \end_layout
1993
1994 \begin_layout Standard
1995 Copiers can be used to do almost anything with output files.
1996  For example, suppose you want generated pdf files to be copied to a special
1997  directory, 
1998 \begin_inset Flex Code
1999 status collapsed
2000
2001 \begin_layout Plain Layout
2002 /home/you/pdf/
2003 \end_layout
2004
2005 \end_inset
2006
2007 .
2008  Then you could write a shell script such as this one:
2009 \end_layout
2010
2011 \begin_layout Standard
2012 \begin_inset listings
2013 inline false
2014 status open
2015
2016 \begin_layout Plain Layout
2017
2018 #!/bin/bash
2019 \end_layout
2020
2021 \begin_layout Plain Layout
2022
2023 FROMFILE=$1
2024 \end_layout
2025
2026 \begin_layout Plain Layout
2027
2028 TOFILE=`basename $2`
2029 \end_layout
2030
2031 \begin_layout Plain Layout
2032
2033 cp $FROMFILE /home/you/pdf/$TOFILE
2034 \end_layout
2035
2036 \end_inset
2037
2038 Save it in your local \SpecialChar LyX
2039  directory—say, 
2040 \begin_inset Flex Code
2041 status collapsed
2042
2043 \begin_layout Plain Layout
2044 /home/you/.lyx/scripts/pdfcopier.sh
2045 \end_layout
2046
2047 \end_inset
2048
2049 —and make it executable, if you need to do so on your platform.
2050  Then, in the 
2051 \begin_inset Flex Noun
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055 Tools\SpecialChar menuseparator
2056 Preferences
2057 \end_layout
2058
2059 \end_inset
2060
2061  dialog, select under 
2062 \begin_inset Flex Noun
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 File Handling\SpecialChar menuseparator
2067 File formats
2068 \end_layout
2069
2070 \end_inset
2071
2072  the 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 PDF(pdflatex)
2078 \end_layout
2079
2080 \end_inset
2081
2082  format—or one of the other pdf formats—and enter 
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 pdfcopier.sh $$i $$o
2088 \end_layout
2089
2090 \end_inset
2091
2092  into the 
2093 \begin_inset Flex Noun
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097 Copier
2098 \end_layout
2099
2100 \end_inset
2101
2102  field.
2103  
2104 \end_layout
2105
2106 \begin_layout Standard
2107 Copiers are used by \SpecialChar LyX
2108  in various of its own conversions.
2109  For example, if appropriate programs are found, \SpecialChar LyX
2110  will automatically install
2111  copiers for the 
2112 \begin_inset Flex Noun
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116 HTML
2117 \end_layout
2118
2119 \end_inset
2120
2121  and 
2122 \begin_inset Flex Noun
2123 status collapsed
2124
2125 \begin_layout Plain Layout
2126 HTML
2127 \begin_inset space ~
2128 \end_inset
2129
2130 (MS Word)
2131 \end_layout
2132
2133 \end_inset
2134
2135  formats.
2136  When these formats are exported, the copier sees that not just the main
2137  HTML file but various associated files (style files, images, etc.) are also
2138  copied.
2139  All these files are written to a subdirectory of the directory in which
2140  the original \SpecialChar LyX
2141  file was found.
2142 \begin_inset Foot
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 This copier can be customized.
2147  The optional 
2148 \begin_inset Quotes eld
2149 \end_inset
2150
2151 -e
2152 \begin_inset Quotes erd
2153 \end_inset
2154
2155  argument takes a comma-separated list of extensions to be copied; if it
2156  is omitted, all files will be copied.
2157  The 
2158 \begin_inset Quotes eld
2159 \end_inset
2160
2161 -t
2162 \begin_inset Quotes erd
2163 \end_inset
2164
2165  argument determines the extension added to the generated directory.
2166  By default, it is 
2167 \begin_inset Quotes eld
2168 \end_inset
2169
2170
2171 \begin_inset Flex Noun
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 LyXconv
2176 \end_layout
2177
2178 \end_inset
2179
2180
2181 \begin_inset Quotes erd
2182 \end_inset
2183
2184 , so HTML generated from 
2185 \begin_inset Flex Noun
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 /path/to/filename.lyx
2190 \end_layout
2191
2192 \end_inset
2193
2194  will end up in 
2195 \begin_inset Flex Noun
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 /path/to/filename.html.LyXconv
2200 \end_layout
2201
2202 \end_inset
2203
2204 .
2205  
2206 \end_layout
2207
2208 \end_inset
2209
2210
2211 \end_layout
2212
2213 \begin_layout Section
2214 Converters
2215 \begin_inset CommandInset label
2216 LatexCommand label
2217 name "sec:Converters"
2218
2219 \end_inset
2220
2221
2222 \end_layout
2223
2224 \begin_layout Standard
2225 You can define your own Converters to convert files between different formats.
2226  This is done in the 
2227 \begin_inset Flex Noun
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 Tools\SpecialChar menuseparator
2232 Preferences\SpecialChar menuseparator
2233 File Handling\SpecialChar menuseparator
2234 Converters
2235 \end_layout
2236
2237 \end_inset
2238
2239  dialog.
2240 \end_layout
2241
2242 \begin_layout Standard
2243 To define a new converter, select the 
2244 \begin_inset Flex Noun
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248 From
2249 \begin_inset space ~
2250 \end_inset
2251
2252 format
2253 \end_layout
2254
2255 \end_inset
2256
2257  and 
2258 \begin_inset Flex Noun
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 To
2263 \begin_inset space ~
2264 \end_inset
2265
2266 format
2267 \end_layout
2268
2269 \end_inset
2270
2271  from the drop-down lists, enter the command needed for the conversion,
2272  and then press the 
2273 \begin_inset Flex Noun
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277 Add
2278 \end_layout
2279
2280 \end_inset
2281
2282  button.
2283  Several variables can be used in the definition of converters:
2284 \end_layout
2285
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Flex Code
2289 status collapsed
2290
2291 \begin_layout Plain Layout
2292 $$s
2293 \end_layout
2294
2295 \end_inset
2296
2297  The \SpecialChar LyX
2298  system directory
2299 \end_layout
2300
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 $$i
2308 \end_layout
2309
2310 \end_inset
2311
2312  The input file
2313 \end_layout
2314
2315 \begin_layout Labeling
2316 \labelwidthstring 00.00.0000
2317 \begin_inset Flex Code
2318 status collapsed
2319
2320 \begin_layout Plain Layout
2321 $$o
2322 \end_layout
2323
2324 \end_inset
2325
2326  The output file
2327 \end_layout
2328
2329 \begin_layout Labeling
2330 \labelwidthstring 00.00.0000
2331 \begin_inset Flex Code
2332 status collapsed
2333
2334 \begin_layout Plain Layout
2335 $$b
2336 \end_layout
2337
2338 \end_inset
2339
2340  The base filename of the input file (i.
2341 \begin_inset space \thinspace{}
2342 \end_inset
2343
2344 g., without the extension)
2345 \end_layout
2346
2347 \begin_layout Labeling
2348 \labelwidthstring 00.00.0000
2349 \begin_inset Flex Code
2350 status collapsed
2351
2352 \begin_layout Plain Layout
2353 $$p
2354 \end_layout
2355
2356 \end_inset
2357
2358  The path to the input file
2359 \end_layout
2360
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Flex Code
2364 status collapsed
2365
2366 \begin_layout Plain Layout
2367 $$r
2368 \end_layout
2369
2370 \end_inset
2371
2372  The path to the original input file (this is different from $$p when a
2373  chain of converters is called)
2374 \end_layout
2375
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Flex Code
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 $$e
2383 \end_layout
2384
2385 \end_inset
2386
2387  The iconv name for the encoding of the document.
2388 \end_layout
2389
2390 \begin_layout Standard
2391 In the 
2392 \begin_inset Flex Noun
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 Extra
2397 \begin_inset space ~
2398 \end_inset
2399
2400 Flag
2401 \end_layout
2402
2403 \end_inset
2404
2405  field you can enter the following flags, separated by commas:
2406 \end_layout
2407
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Flex Code
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 latex
2415 \change_inserted -712698321 1524656940
2416 =flavor
2417 \change_unchanged
2418
2419 \end_layout
2420
2421 \end_inset
2422
2423  This converter runs some form of \SpecialChar LaTeX
2424 .
2425  This will make \SpecialChar LyX
2426 's \SpecialChar LaTeX
2427  error logs available.
2428
2429 \change_inserted -712698321 1524657018
2430  The optional 
2431 \begin_inset Flex Code
2432 status open
2433
2434 \begin_layout Plain Layout
2435
2436 \change_inserted -712698321 1524657012
2437 flavor
2438 \change_unchanged
2439
2440 \end_layout
2441
2442 \end_inset
2443
2444  value specifies the form of \SpecialChar LaTeX
2445  that is run (
2446 \begin_inset Flex Code
2447 status open
2448
2449 \begin_layout Plain Layout
2450
2451 \change_inserted -712698321 1524657005
2452 latex, pdflatex, platex, xetex, luatex
2453 \change_unchanged
2454
2455 \end_layout
2456
2457 \end_inset
2458
2459 ).
2460  If no value is specified, 
2461 \begin_inset Flex Code
2462 status open
2463
2464 \begin_layout Plain Layout
2465
2466 \change_inserted -712698321 1524657018
2467 latex
2468 \change_unchanged
2469
2470 \end_layout
2471
2472 \end_inset
2473
2474  is used.
2475 \change_unchanged
2476
2477 \end_layout
2478
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2481 \begin_inset Flex Code
2482 status collapsed
2483
2484 \begin_layout Plain Layout
2485 needaux
2486 \change_inserted -712698321 1524656935
2487 =flavor
2488 \change_unchanged
2489
2490 \end_layout
2491
2492 \end_inset
2493
2494  Needs the \SpecialChar LaTeX
2495  
2496 \begin_inset Flex Noun
2497 status collapsed
2498
2499 \begin_layout Plain Layout
2500 .aux
2501 \end_layout
2502
2503 \end_inset
2504
2505  file for the conversion.
2506
2507 \change_inserted -712698321 1524657047
2508  The optional 
2509 \begin_inset Flex Code
2510 status open
2511
2512 \begin_layout Plain Layout
2513
2514 \change_inserted -712698321 1524657030
2515 flavor
2516 \end_layout
2517
2518 \end_inset
2519
2520  value specifies the form of \SpecialChar LaTeX
2521  that is run in order to generate the 
2522 \begin_inset Flex Noun
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526
2527 \change_inserted -712698321 1524657047
2528 .aux
2529 \end_layout
2530
2531 \end_inset
2532
2533  file (
2534 \begin_inset Flex Code
2535 status open
2536
2537 \begin_layout Plain Layout
2538
2539 \change_inserted -712698321 1524657030
2540 latex, pdflatex, platex, xetex, luatex
2541 \end_layout
2542
2543 \end_inset
2544
2545 ).
2546  If no value is specified, 
2547 \begin_inset Flex Code
2548 status open
2549
2550 \begin_layout Plain Layout
2551
2552 \change_inserted -712698321 1524657030
2553 latex
2554 \end_layout
2555
2556 \end_inset
2557
2558  is used.
2559 \change_unchanged
2560
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 nice
2570 \end_layout
2571
2572 \end_inset
2573
2574  Needs a 
2575 \begin_inset Quotes eld
2576 \end_inset
2577
2578 nice
2579 \begin_inset Quotes erd
2580 \end_inset
2581
2582  file from the backend, which in practice means a \SpecialChar LaTeX
2583  file like the one we
2584  would export, without 
2585 \begin_inset Flex Code
2586 status collapsed
2587
2588 \begin_layout Plain Layout
2589 input@path
2590 \end_layout
2591
2592 \end_inset
2593
2594 .
2595 \end_layout
2596
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2599 \begin_inset Flex Code
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 xml
2604 \end_layout
2605
2606 \end_inset
2607
2608  Output is XML.
2609 \end_layout
2610
2611 \begin_layout Standard
2612 The following three flags are not really flags at all because they take
2613  an argument in the 
2614 \begin_inset Flex Noun
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618 key
2619 \begin_inset space ~
2620 \end_inset
2621
2622 =
2623 \begin_inset space ~
2624 \end_inset
2625
2626 value
2627 \end_layout
2628
2629 \end_inset
2630
2631  format:
2632 \end_layout
2633
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2636
2637 \change_inserted -712698321 1523206314
2638 \begin_inset Flex Code
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642
2643 \change_inserted -712698321 1523206193
2644 hyperref-driver
2645 \end_layout
2646
2647 \end_inset
2648
2649  The name of the driver that needs to be loaded with the 
2650 \family sans
2651 hyperref
2652 \family default
2653  package for this converter.
2654  The loading of the correct driver is necessary to get some PDF-specific
2655  features.
2656  See the 
2657 \family sans
2658 hyperref
2659 \family default
2660  manual for details.
2661 \end_layout
2662
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 parselog
2670 \end_layout
2671
2672 \end_inset
2673
2674  If set, the converter's standard error will be redirected to a file 
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 infile.out
2680 \end_layout
2681
2682 \end_inset
2683
2684 , and the script given as argument will be run as: 
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 script < infile.out > infile.log
2690 \end_layout
2691
2692 \end_inset
2693
2694 .
2695  The argument may contain 
2696 \begin_inset Flex Code
2697 status collapsed
2698
2699 \begin_layout Plain Layout
2700 $$s
2701 \end_layout
2702
2703 \end_inset
2704
2705 .
2706 \end_layout
2707
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2710 \begin_inset Flex Code
2711 status collapsed
2712
2713 \begin_layout Plain Layout
2714 resultdir
2715 \end_layout
2716
2717 \end_inset
2718
2719  The name of the directory in which the converter will dump the generated
2720  files.
2721  \SpecialChar LyX
2722  will not create this directory, and it does not copy anything into it,
2723  though it will copy this directory to the destination.
2724  The argument may contain 
2725 \begin_inset Flex Code
2726 status collapsed
2727
2728 \begin_layout Plain Layout
2729 $$b
2730 \end_layout
2731
2732 \end_inset
2733
2734 , which will be replaced by the base name of the input and output files,
2735  respectively, when the directory is copied.
2736 \begin_inset Newline newline
2737 \end_inset
2738
2739 Note that resultdir and usetempdir make no sense together.
2740  The latter will be ignored if the former is given.
2741 \end_layout
2742
2743 \begin_layout Labeling
2744 \labelwidthstring 00.00.0000
2745 \begin_inset Flex Code
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 resultfile
2750 \end_layout
2751
2752 \end_inset
2753
2754  Determines the output file name and may, contain 
2755 \begin_inset Flex Code
2756 status collapsed
2757
2758 \begin_layout Plain Layout
2759 $$b
2760 \end_layout
2761
2762 \end_inset
2763
2764 .
2765  Sensible only with resultdir and optional even then; if not given, it defaults
2766  to `index'.
2767 \end_layout
2768
2769 \begin_layout Standard
2770
2771 \change_inserted -712698321 1523206384
2772 A suitable hyperref-driver is set for some converters that are installed
2773  with \SpecialChar LyX
2774 .
2775  
2776 \change_deleted -712698321 1523206388
2777 None of these
2778 \change_inserted -712698321 1523206389
2779 The
2780 \change_unchanged
2781  last three
2782 \change_inserted -712698321 1523206400
2783  flags, however,
2784 \change_unchanged
2785  are presently 
2786 \change_inserted -712698321 1523206407
2787 not 
2788 \change_unchanged
2789 used in any of the 
2790 \change_inserted -712698321 1523206437
2791 pre-installed 
2792 \change_unchanged
2793 converters
2794 \change_deleted -712698321 1523206442
2795  that are installed with \SpecialChar LyX
2796
2797 \change_unchanged
2798 .
2799  
2800 \end_layout
2801
2802 \begin_layout Standard
2803 You do not have to define converters for all formats between which you want
2804  to convert.
2805  For example, you will note that there is no `\SpecialChar LyX
2806  to PostScript' converter,
2807  but \SpecialChar LyX
2808  will export PostScript.
2809  It does so by first creating a \SpecialChar LaTeX
2810  file (no converter needs to be defined
2811  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2812  to DVI' converter,
2813  and finally converting the resulting DVI file to PostScript.
2814  \SpecialChar LyX
2815  finds such `chains' of converters automatically, and it will always choose
2816  the shortest possible chain.
2817  You can, though, still define multiple conversion methods between file
2818  formats.
2819  For example, the standard \SpecialChar LyX
2820  configuration provides five ways to convert
2821  \SpecialChar LaTeX
2822  to PDF:
2823 \end_layout
2824
2825 \begin_layout Enumerate
2826 Directly, using 
2827 \begin_inset Flex Noun
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 pdflatex
2832 \end_layout
2833
2834 \end_inset
2835
2836
2837 \end_layout
2838
2839 \begin_layout Enumerate
2840 via (DVI and) PostScript, using 
2841 \begin_inset Flex Noun
2842 status collapsed
2843
2844 \begin_layout Plain Layout
2845 ps2pdf
2846 \end_layout
2847
2848 \end_inset
2849
2850
2851 \end_layout
2852
2853 \begin_layout Enumerate
2854 via DVI, using 
2855 \begin_inset Flex Noun
2856 status collapsed
2857
2858 \begin_layout Plain Layout
2859 dvipdfm
2860 \end_layout
2861
2862 \end_inset
2863
2864
2865 \end_layout
2866
2867 \begin_layout Enumerate
2868 directly using 
2869 \begin_inset Flex Noun
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 Xe\SpecialChar TeX
2874
2875 \end_layout
2876
2877 \end_inset
2878
2879
2880 \end_layout
2881
2882 \begin_layout Enumerate
2883 directly using 
2884 \begin_inset Flex Noun
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888 Lua\SpecialChar TeX
2889
2890 \end_layout
2891
2892 \end_inset
2893
2894
2895 \end_layout
2896
2897 \begin_layout Standard
2898 To define such alternate chains, you must define multiple target `file formats',
2899  as described in 
2900 \begin_inset CommandInset ref
2901 LatexCommand ref
2902 reference "sec:Formats"
2903
2904 \end_inset
2905
2906 .
2907  For example, in the standard configuration, the formats named 
2908 \begin_inset Flex Noun
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 pdf
2913 \end_layout
2914
2915 \end_inset
2916
2917  (for 
2918 \begin_inset Flex Noun
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 ps2pdf
2923 \end_layout
2924
2925 \end_inset
2926
2927 ), 
2928 \begin_inset Flex Noun
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 pdf2
2933 \end_layout
2934
2935 \end_inset
2936
2937  (for 
2938 \begin_inset Flex Noun
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 pdflatex
2943 \end_layout
2944
2945 \end_inset
2946
2947 ), 
2948 \begin_inset Flex Noun
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 pdf3
2953 \end_layout
2954
2955 \end_inset
2956
2957  (for 
2958 \begin_inset Flex Noun
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 dvipdfm
2963 \end_layout
2964
2965 \end_inset
2966
2967 ), 
2968 \begin_inset Flex Noun
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972 pdf4
2973 \end_layout
2974
2975 \end_inset
2976
2977  (for 
2978 \begin_inset Flex Noun
2979 status collapsed
2980
2981 \begin_layout Plain Layout
2982 Xe\SpecialChar TeX
2983
2984 \end_layout
2985
2986 \end_inset
2987
2988 ), and 
2989 \begin_inset Flex Noun
2990 status collapsed
2991
2992 \begin_layout Plain Layout
2993 pdf5
2994 \end_layout
2995
2996 \end_inset
2997
2998  (for 
2999 \begin_inset Flex Noun
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 Lua\SpecialChar TeX
3004
3005 \end_layout
3006
3007 \end_inset
3008
3009 ) are defined, all of which share the extension 
3010 \begin_inset Flex Noun
3011 status collapsed
3012
3013 \begin_layout Plain Layout
3014 .pdf
3015 \end_layout
3016
3017 \end_inset
3018
3019 , and which correspond to the conversion methods just mentioned.
3020 \end_layout
3021
3022 \begin_layout Chapter
3023 Internationalizing \SpecialChar LyX
3024
3025 \begin_inset CommandInset label
3026 LatexCommand label
3027 name "cha:Internationalizing-LyX"
3028
3029 \end_inset
3030
3031
3032 \end_layout
3033
3034 \begin_layout Standard
3035 \SpecialChar LyX
3036  supports using a translated interface.
3037  Last time we checked, \SpecialChar LyX
3038  provided text in thirty languages.
3039  The language of choice is called your 
3040 \emph on
3041 locale
3042 \emph default
3043 .
3044  (For further reading on locale settings, see also the documentation for
3045  locale that comes with your operating system.
3046  For Linux, the manual page for 
3047 \begin_inset Flex Code
3048 status collapsed
3049
3050 \begin_layout Plain Layout
3051 locale(5)
3052 \end_layout
3053
3054 \end_inset
3055
3056  could be a good place to start).
3057 \end_layout
3058
3059 \begin_layout Standard
3060 Notice that these translations will work, but do contain a few flaws.
3061  In particular, all dialogs have been designed with the English text in
3062  mind, which means that some of the translated text will be too large to
3063  fit within the space allocated.
3064  This is only a display problem and will not cause any harm.
3065  Also, you will find that some of the translations do not define shortcut
3066  keys for everything.
3067  Sometimes, there are simply not enough free letters to do it.
3068  Other times, the translator just hasn't got around to doing it yet.
3069  Our localization team, which you may wish to join,
3070 \begin_inset Foot
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 If you are a fluent speaker of a language other than English, joining these
3075  teams is a great way to give back to the \SpecialChar LyX
3076  community!
3077 \end_layout
3078
3079 \end_inset
3080
3081  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3082 .
3083 \end_layout
3084
3085 \begin_layout Section
3086 Translating \SpecialChar LyX
3087
3088 \end_layout
3089
3090 \begin_layout Subsection
3091 Translating the graphical user interface (text messages).
3092 \end_layout
3093
3094 \begin_layout Standard
3095 \SpecialChar LyX
3096  uses the GNU 
3097 \begin_inset Flex Code
3098 status collapsed
3099
3100 \begin_layout Plain Layout
3101 gettext
3102 \end_layout
3103
3104 \end_inset
3105
3106  library to handle the internationalization of the interface.
3107  To have \SpecialChar LyX
3108  speak your favorite language in all menus and dialogs, you need
3109  a 
3110 \begin_inset Flex Code
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 po
3115 \end_layout
3116
3117 \end_inset
3118
3119 -file for that language.
3120  When this is available, you'll have to generate a 
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 mo
3126 \end_layout
3127
3128 \end_inset
3129
3130 -file from it and install the 
3131 \begin_inset Flex Code
3132 status collapsed
3133
3134 \begin_layout Plain Layout
3135 mo
3136 \end_layout
3137
3138 \end_inset
3139
3140 -file.
3141  The process of doing all of this is explained in the documentation for
3142  GNU 
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 .
3153  It is possible to do this just for yourself, but if you're going to do
3154  it, you might as well share the results of your labors with the rest of
3155  the \SpecialChar LyX
3156  community.
3157  Send a message to the \SpecialChar LyX
3158  developers' list for more information about how
3159  to proceed.
3160 \end_layout
3161
3162 \begin_layout Standard
3163 In short, this is what you should do (xx denotes the language code):
3164 \end_layout
3165
3166 \begin_layout Itemize
3167 Check out the \SpecialChar LyX
3168  source code.
3169  (See the 
3170 \begin_inset CommandInset href
3171 LatexCommand href
3172 name "information on the web"
3173 target "https://www.lyx.org/HowToUseGIT"
3174 literal "false"
3175
3176 \end_inset
3177
3178 .)
3179 \end_layout
3180
3181 \begin_layout Itemize
3182 Copy the file 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 lyx.pot
3188 \end_layout
3189
3190 \end_inset
3191
3192  to the folder of the 
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197 **.po
3198 \end_layout
3199
3200 \end_inset
3201
3202  files.
3203  Then rename it to 
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208 xx.po
3209 \end_layout
3210
3211 \end_inset
3212
3213 .
3214  (If 
3215 \begin_inset Flex Code
3216 status collapsed
3217
3218 \begin_layout Plain Layout
3219 lyx.pot
3220 \end_layout
3221
3222 \end_inset
3223
3224  doesn't exist anywhere, it can be remade with the console command 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 make lyx.pot
3230 \end_layout
3231
3232 \end_inset
3233
3234  in that directory, or you can use an existing po-file for some other language
3235  as a template).
3236 \end_layout
3237
3238 \begin_layout Itemize
3239 Edit 
3240 \begin_inset Flex Code
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 xx.po
3245 \end_layout
3246
3247 \end_inset
3248
3249 .
3250 \begin_inset Foot
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 This is just a text file, so it can be edited in any text editor.
3255  But there are also specialized programs that support such editing, such
3256  as 
3257 \family typewriter
3258 Poedit
3259 \family default
3260  (for all platforms) or 
3261 \family typewriter
3262 KBabel
3263 \family default
3264  (for KDE).
3265  
3266 \family typewriter
3267 Emacs
3268 \family default
3269  contains a `mode' for editing 
3270 \begin_inset Flex Code
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 po
3275 \end_layout
3276
3277 \end_inset
3278
3279  files, as well, see 
3280 \begin_inset Flex URL
3281 status open
3282
3283 \begin_layout Plain Layout
3284
3285 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3286 \end_layout
3287
3288 \end_inset
3289
3290 .
3291 \end_layout
3292
3293 \end_inset
3294
3295  For some menu- and widget-labels, there are also shortcut keys that should
3296  be translated.
3297  Those keys are marked after a `|', and should be translated according to
3298  the words and phrases of the language.
3299  You should also fill also out the information at the beginning of the new
3300  
3301 \begin_inset Flex Code
3302 status collapsed
3303
3304 \begin_layout Plain Layout
3305 po
3306 \end_layout
3307
3308 \end_inset
3309
3310 -file with your email-address, etc., so people know where to reach you with
3311  suggestions and entertaining flames.
3312 \end_layout
3313
3314 \begin_layout Standard
3315 If you are just doing this on your own, then:
3316 \end_layout
3317
3318 \begin_layout Itemize
3319 Generate 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 xx.mo
3325 \end_layout
3326
3327 \end_inset
3328
3329 .
3330  This can be done with 
3331 \begin_inset Flex Code
3332 status collapsed
3333
3334 \begin_layout Plain Layout
3335 msgfmt -o xx.mo < xx.po
3336 \end_layout
3337
3338 \end_inset
3339
3340 .
3341 \end_layout
3342
3343 \begin_layout Itemize
3344 Copy the 
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 mo
3350 \end_layout
3351
3352 \end_inset
3353
3354 -file to your locale-tree, at the correct directory for application messages
3355  for the language
3356 \series bold
3357  
3358 \series default
3359 xx, and under the name 
3360 \begin_inset Flex Code
3361 status collapsed
3362
3363 \begin_layout Plain Layout
3364 lyx.mo
3365 \end_layout
3366
3367 \end_inset
3368
3369  (e.
3370 \begin_inset space \thinspace{}
3371 \end_inset
3372
3373 g.
3374 \begin_inset space \space{}
3375 \end_inset
3376
3377
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3383 \end_layout
3384
3385 \end_inset
3386
3387
3388 \series bold
3389 .
3390 \end_layout
3391
3392 \begin_layout Standard
3393 As said, however, it would be best if the new 
3394 \begin_inset Flex Code
3395 status collapsed
3396
3397 \begin_layout Plain Layout
3398 po
3399 \end_layout
3400
3401 \end_inset
3402
3403  file could be added to the \SpecialChar LyX
3404  distribution, so others can use it.
3405  Adding it involves making additional changes to \SpecialChar LyX
3406 .
3407  So send an email to the developers' mailing list if you're interested in
3408  doing that.
3409 \end_layout
3410
3411 \begin_layout Subsubsection
3412 Ambiguous messages
3413 \end_layout
3414
3415 \begin_layout Standard
3416 Sometimes it turns out that one English message needs to be translated into
3417  different messages in the target language.
3418  One example is the message 
3419 \begin_inset Flex Code
3420 status collapsed
3421
3422 \begin_layout Plain Layout
3423 To
3424 \end_layout
3425
3426 \end_inset
3427
3428  which has the German translation 
3429 \lang german
3430 Nach
3431 \lang english
3432  or 
3433 \lang german
3434 Bis
3435 \lang english
3436 , depending upon exactly what the English 
3437 \begin_inset Quotes eld
3438 \end_inset
3439
3440 to
3441 \begin_inset Quotes erd
3442 \end_inset
3443
3444  means.
3445  GNU 
3446 \begin_inset Flex Code
3447 status collapsed
3448
3449 \begin_layout Plain Layout
3450 gettext
3451 \end_layout
3452
3453 \end_inset
3454
3455  does not handle such ambiguous translations.
3456  Therefore you have to add some context information to the message: Instead
3457  of 
3458 \begin_inset Flex Code
3459 status collapsed
3460
3461 \begin_layout Plain Layout
3462 To
3463 \end_layout
3464
3465 \end_inset
3466
3467  it becomes 
3468 \begin_inset Flex Code
3469 status collapsed
3470
3471 \begin_layout Plain Layout
3472 To[[as in 'From format x to format y']]
3473 \end_layout
3474
3475 \end_inset
3476
3477  and 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482 To[[as in 'From page x to page y']].
3483 \end_layout
3484
3485 \end_inset
3486
3487  Now the two occurrences of 
3488 \begin_inset Flex Code
3489 status collapsed
3490
3491 \begin_layout Plain Layout
3492 To
3493 \end_layout
3494
3495 \end_inset
3496
3497  are different for 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502 gettext
3503 \end_layout
3504
3505 \end_inset
3506
3507  and can be translated correctly to 
3508 \lang german
3509 Nach
3510 \lang english
3511  and 
3512 \lang german
3513 Bis
3514 \lang english
3515 , respectively.
3516 \end_layout
3517
3518 \begin_layout Standard
3519 Of course the context information needs to be stripped off the original
3520  message when no translation is used.
3521  Therefore you have to put it in double square brackets at the end of the
3522  message (see the example above).
3523  The translation mechanism of \SpecialChar LyX
3524  ensures that everything in double square
3525  brackets at the end of messages is removed before displaying the message.
3526 \end_layout
3527
3528 \begin_layout Subsection
3529 Translating the documentation.
3530 \end_layout
3531
3532 \begin_layout Standard
3533 The online documentation (in the 
3534 \begin_inset Flex Noun
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 Help
3539 \end_layout
3540
3541 \end_inset
3542
3543 -menu) can (and should!) be translated.
3544  If there are translated versions of the documentation available
3545 \begin_inset Foot
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549 As of March 2008, at least some of the documents have been translated into
3550  fourteen languages, with the Tutorial available in a few more.
3551 \end_layout
3552
3553 \end_inset
3554
3555  and the locale is set accordingly, these will be used automagically by
3556  \SpecialChar LyX
3557 .
3558  \SpecialChar LyX
3559  looks for translated versions as 
3560 \begin_inset Flex Code
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 LyXDir/doc/xx/DocName.lyx
3565 \end_layout
3566
3567 \end_inset
3568
3569 , where 
3570 \begin_inset Flex Code
3571 status collapsed
3572
3573 \begin_layout Plain Layout
3574 xx
3575 \end_layout
3576
3577 \end_inset
3578
3579  is the code for the language currently in use.
3580  If there are no translated documents, the default English versions will
3581  be displayed.
3582  Note that the translated versions must have the same filenames (
3583 \begin_inset Flex Code
3584 status collapsed
3585
3586 \begin_layout Plain Layout
3587 DocName
3588 \end_layout
3589
3590 \end_inset
3591
3592  above) as the original.
3593  If you feel up to translating the documentation (an excellent way to proof-read
3594  the original documentation by the way!), there are a few things you should
3595  do right away:
3596 \end_layout
3597
3598 \begin_layout Itemize
3599 Check out the documentation translation web page at 
3600 \begin_inset CommandInset href
3601 LatexCommand href
3602 name "https://www.lyx.org/Translation"
3603 target "https://www.lyx.org/Translation"
3604 literal "false"
3605
3606 \end_inset
3607
3608 .
3609  That way, you can find out which (if any) documents have already been translate
3610 d into your language.
3611  You can also find out who (if anyone) is organizing the effort to translate
3612  the documentation into your language.
3613  If no one is organizing the effort, please let us know that you're interested.
3614 \end_layout
3615
3616 \begin_layout Standard
3617 Once you get to actually translating, here's a few hints for you that may
3618  save you trouble:
3619 \end_layout
3620
3621 \begin_layout Itemize
3622 Join the documentation team! There is information on how to do that in 
3623 \begin_inset Flex Code
3624 status collapsed
3625
3626 \begin_layout Plain Layout
3627 Intro.lyx
3628 \end_layout
3629
3630 \end_inset
3631
3632  (
3633 \begin_inset Flex Noun
3634 status collapsed
3635
3636 \begin_layout Plain Layout
3637 Help\SpecialChar menuseparator
3638 Introduction
3639 \end_layout
3640
3641 \end_inset
3642
3643 ), which by the way is the first document you should translate.
3644 \end_layout
3645
3646 \begin_layout Itemize
3647 Learn the typographic conventions for the language you are translating to.
3648  Typography is an ancient art and over the centuries, a great variety of
3649  conventions have developed throughout different parts of the world.
3650  Also study the professional terminology amongst typographers in your country.
3651  Inventing your own terminology will only confuse the users.
3652  
3653 \emph on
3654 (Warning! Typography is addictive!)
3655 \end_layout
3656
3657 \begin_layout Itemize
3658 Make a copy of the document.
3659  This will be your working copy.
3660  You can use this as your personal translated help-file by placing it in
3661  your 
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 UserDir/doc/xx/
3667 \end_layout
3668
3669 \end_inset
3670
3671  directory.
3672 \begin_inset Note Greyedout
3673 status open
3674
3675 \begin_layout Plain Layout
3676
3677 \series bold
3678 Note:
3679 \series default
3680  For a complex document with external material (images, etc.), if you make
3681  a copy e.
3682 \begin_inset space \thinspace{}
3683 \end_inset
3684
3685 g.
3686 \begin_inset space \space{}
3687 \end_inset
3688
3689 in a temp dir, beware that the links to external material may be broken
3690  when the document is moved to a different place.
3691  The best way is to retrieve the \SpecialChar LyX
3692  tree from git (see 
3693 \begin_inset Flex URL
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697
3698 https://www.lyx.org/HowToUseGIT
3699 \end_layout
3700
3701 \end_inset
3702
3703 ) and to edit the doc file in place.
3704 \end_layout
3705
3706 \end_inset
3707
3708
3709 \end_layout
3710
3711 \begin_layout Itemize
3712 Sometimes the original document (from the \SpecialChar LyX
3713  team) will be updated.
3714  Use the source viewer at 
3715 \begin_inset CommandInset href
3716 LatexCommand href
3717 name "https://www.lyx.org/trac/timeline"
3718 target "https://www.lyx.org/trac/timeline"
3719 literal "false"
3720
3721 \end_inset
3722
3723  to see what has been changed.
3724  That way you can easily see which parts of the translated document need
3725  to be updated.
3726 \end_layout
3727
3728 \begin_layout Standard
3729 If you ever find an error in the original document, fix it and notify the
3730  rest of the documentation team of the changes! (You didn't forget to join
3731  the documentation team, did you?)
3732 \end_layout
3733
3734 \begin_layout Standard
3735 \begin_inset Branch OutDated
3736 inverted 0
3737 status collapsed
3738
3739 \begin_layout Section
3740 International Keyboard Support
3741 \end_layout
3742
3743 \begin_layout Standard
3744
3745 \emph on
3746 [Editor's Note: The following section is by
3747 \emph default
3748  
3749 \shape smallcaps
3750 \emph on
3751 Ivan Schreter
3752 \shape default
3753 .
3754  It needs to be fixed to conform to the new Documentation Style sheet and
3755  to make use of the new v1.0 features.
3756  The whole thing also needs to be merged with the section following it.-jw
3757  It may also be badly out of date.-rh (2008)]
3758 \end_layout
3759
3760 \begin_layout Subsection
3761 Defining Own Keymaps: Keymap File Format
3762 \end_layout
3763
3764 \begin_layout Standard
3765 Let's look at a keyboard definition file a little closer.
3766  It is a plain text file defining
3767 \end_layout
3768
3769 \begin_layout Itemize
3770 key-to-key or key-to-string translations
3771 \end_layout
3772
3773 \begin_layout Itemize
3774 dead keys
3775 \end_layout
3776
3777 \begin_layout Itemize
3778 dead keys exceptions
3779 \end_layout
3780
3781 \begin_layout Standard
3782 To define key-to-key or key-to-string translation, use this command:
3783 \end_layout
3784
3785 \begin_layout Quotation
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790
3791 \backslash
3792 kmap
3793 \end_layout
3794
3795 \end_inset
3796
3797  
3798 \begin_inset Flex Code
3799 status collapsed
3800
3801 \begin_layout Plain Layout
3802 key
3803 \end_layout
3804
3805 \end_inset
3806
3807  outstring 
3808 \end_layout
3809
3810 \begin_layout Standard
3811 where 
3812 \begin_inset Flex Code
3813 status collapsed
3814
3815 \begin_layout Plain Layout
3816 key
3817 \end_layout
3818
3819 \end_inset
3820
3821  is the key to be translated and 
3822 \begin_inset Flex Code
3823 status collapsed
3824
3825 \begin_layout Plain Layout
3826 outstring
3827 \end_layout
3828
3829 \end_inset
3830
3831  is the string to be inserted into the document.
3832  To define dead keys, use:
3833 \end_layout
3834
3835 \begin_layout Quotation
3836 \begin_inset Flex Code
3837 status collapsed
3838
3839 \begin_layout Plain Layout
3840
3841 \backslash
3842 kmod
3843 \end_layout
3844
3845 \end_inset
3846
3847  
3848 \begin_inset Flex Code
3849 status collapsed
3850
3851 \begin_layout Plain Layout
3852 key
3853 \end_layout
3854
3855 \end_inset
3856
3857  deadkey
3858 \end_layout
3859
3860 \begin_layout Standard
3861 where 
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 key
3867 \end_layout
3868
3869 \end_inset
3870
3871  is a keyboard key and 
3872 \begin_inset Flex Code
3873 status collapsed
3874
3875 \begin_layout Plain Layout
3876 deadkey
3877 \end_layout
3878
3879 \end_inset
3880
3881  is dead key name.
3882  The following dead keys are supported (shortcut name is in parentheses):
3883 \end_layout
3884
3885 \begin_layout Quotation
3886
3887 \emph on
3888 Name
3889 \begin_inset space \hfill{}
3890 \end_inset
3891
3892 Example
3893 \end_layout
3894
3895 \begin_layout Quotation
3896 acute (acu)
3897 \begin_inset space \hfill{}
3898 \end_inset
3899
3900 áéíóú
3901 \end_layout
3902
3903 \begin_layout Quotation
3904 grave (gra)
3905 \begin_inset space \hfill{}
3906 \end_inset
3907
3908 àèìòù
3909 \end_layout
3910
3911 \begin_layout Quotation
3912 macron (mac)
3913 \begin_inset space \hfill{}
3914 \end_inset
3915
3916  ō
3917 \end_layout
3918
3919 \begin_layout Quotation
3920 tilde (til)
3921 \begin_inset space \hfill{}
3922 \end_inset
3923
3924 ñÑ
3925 \end_layout
3926
3927 \begin_layout Quotation
3928 underbar (underb)
3929 \begin_inset space \hfill{}
3930 \end_inset
3931
3932
3933 \begin_inset ERT
3934 status open
3935
3936 \begin_layout Plain Layout
3937
3938
3939 \backslash
3940 b o
3941 \end_layout
3942
3943 \end_inset
3944
3945
3946 \end_layout
3947
3948 \begin_layout Quotation
3949 cedilla (ced)
3950 \begin_inset space \hfill{}
3951 \end_inset
3952
3953 çÇ
3954 \end_layout
3955
3956 \begin_layout Quotation
3957 underdot (underd)
3958 \begin_inset space \hfill{}
3959 \end_inset
3960
3961
3962 \begin_inset ERT
3963 status open
3964
3965 \begin_layout Plain Layout
3966
3967
3968 \backslash
3969 d o
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \end_layout
3976
3977 \begin_layout Quotation
3978 circumflex (circu)
3979 \begin_inset space \hfill{}
3980 \end_inset
3981
3982 âêîôû
3983 \end_layout
3984
3985 \begin_layout Quotation
3986 circle (circl)
3987 \begin_inset space \hfill{}
3988 \end_inset
3989
3990 ÅůŮ
3991 \end_layout
3992
3993 \begin_layout Quotation
3994 tie (tie)
3995 \begin_inset space \hfill{}
3996 \end_inset
3997
3998
3999 \begin_inset ERT
4000 status open
4001
4002 \begin_layout Plain Layout
4003
4004
4005 \backslash
4006 t o
4007 \end_layout
4008
4009 \end_inset
4010
4011
4012 \end_layout
4013
4014 \begin_layout Quotation
4015 breve (bre)
4016 \begin_inset space \hfill{}
4017 \end_inset
4018
4019 ă
4020 \begin_inset ERT
4021 status open
4022
4023 \begin_layout Plain Layout
4024
4025
4026 \backslash
4027 u o
4028 \end_layout
4029
4030 \end_inset
4031
4032
4033 \end_layout
4034
4035 \begin_layout Quotation
4036 caron (car)
4037 \begin_inset space \hfill{}
4038 \end_inset
4039
4040 čšž
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 hungarian umlaut (hug)
4045 \begin_inset space \hfill{}
4046 \end_inset
4047
4048 őű
4049 \end_layout
4050
4051 \begin_layout Quotation
4052 umlaut (uml)
4053 \begin_inset space \hfill{}
4054 \end_inset
4055
4056 äöü
4057 \end_layout
4058
4059 \begin_layout Quotation
4060 dot (dot)
4061 \begin_inset space \hfill{}
4062 \end_inset
4063
4064 ż
4065 \begin_inset ERT
4066 status open
4067
4068 \begin_layout Plain Layout
4069
4070
4071 \backslash
4072 .s
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \end_layout
4079
4080 \begin_layout Standard
4081 Since in many international keyboards there are exceptions to what some
4082  dead keys should do, you can define them using
4083 \end_layout
4084
4085 \begin_layout Quotation
4086 \begin_inset Flex Code
4087 status collapsed
4088
4089 \begin_layout Plain Layout
4090
4091 \backslash
4092 kxmod
4093 \end_layout
4094
4095 \end_inset
4096
4097  deadkey key outstring
4098 \end_layout
4099
4100 \begin_layout Standard
4101 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4102 , so you put in
4103 \end_layout
4104
4105 \begin_layout Quotation
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110
4111 \backslash
4112 kxmod
4113 \end_layout
4114
4115 \end_inset
4116
4117  caron o "
4118 \backslash
4119 ^o"
4120 \end_layout
4121
4122 \begin_layout Standard
4123 to make it work correctly.
4124  Also, you have to define as exceptions dead keys over i and j, to remove
4125  the dot from them before inserting an accent mark.
4126  I will change this when the time comes, but so far I haven't had time.
4127 \end_layout
4128
4129 \begin_layout Standard
4130 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4131  double backslash.
4132  Also, quotes and 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 #
4138 \end_layout
4139
4140 \end_inset
4141
4142  have different meaning.
4143  
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 #
4149 \end_layout
4150
4151 \end_inset
4152
4153  marks comments, quotes start and end \SpecialChar LaTeX
4154 -style commands.
4155  To enter quote, you'll need to use 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \backslash
4162 "
4163 \end_layout
4164
4165 \end_inset
4166
4167 , to enter 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172 #
4173 \end_layout
4174
4175 \end_inset
4176
4177 , use 
4178 \begin_inset Flex Code
4179 status collapsed
4180
4181 \begin_layout Plain Layout
4182
4183 \backslash
4184 #
4185 \end_layout
4186
4187 \end_inset
4188
4189 .
4190 \end_layout
4191
4192 \begin_layout Standard
4193 If you make a keyboard description file that works for your language, please
4194  mail it to me, so I can include it in the next keymap distribution.
4195 \end_layout
4196
4197 \begin_layout Standard
4198 More keywords will be supported in keymap configuration file in future,
4199  like
4200 \end_layout
4201
4202 \begin_layout Itemize
4203 \begin_inset Flex Code
4204 status collapsed
4205
4206 \begin_layout Plain Layout
4207
4208 \backslash
4209 kinclude filename
4210 \end_layout
4211
4212 \end_inset
4213
4214
4215 \emph on
4216
4217 \begin_inset space \hfill{}
4218 \end_inset
4219
4220
4221 \begin_inset Flex Code
4222 status collapsed
4223
4224 \begin_layout Plain Layout
4225 include
4226 \end_layout
4227
4228 \end_inset
4229
4230  another file
4231 \end_layout
4232
4233 \begin_layout Itemize
4234 \begin_inset Flex Code
4235 status collapsed
4236
4237 \begin_layout Plain Layout
4238
4239 \backslash
4240 kprog program
4241 \end_layout
4242
4243 \end_inset
4244
4245
4246 \emph on
4247
4248 \begin_inset space \hfill{}
4249 \end_inset
4250
4251
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 define
4257 \end_layout
4258
4259 \end_inset
4260
4261  an external keymap translation program 
4262 \end_layout
4263
4264 \begin_layout Standard
4265 Also, it should look into 
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270 lyxrc
4271 \end_layout
4272
4273 \end_inset
4274
4275  file for defaults, too (for example, a 
4276 \begin_inset Flex Code
4277 status collapsed
4278
4279 \begin_layout Plain Layout
4280
4281 \backslash
4282 kinclude
4283 \end_layout
4284
4285 \end_inset
4286
4287  option to include default keyboard).
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Section
4296 International Keymap Stuff
4297 \begin_inset CommandInset label
4298 LatexCommand label
4299 name "sec:International-Keymap-Stuff"
4300
4301 \end_inset
4302
4303
4304 \end_layout
4305
4306 \begin_layout Standard
4307 \begin_inset Note Note
4308 status open
4309
4310 \begin_layout Plain Layout
4311 In doing the revisions on this document in March 2008, I did not look over
4312  this stuff, as I do not understand it.
4313  It would be good if someone else could do so.
4314  (RH)
4315 \end_layout
4316
4317 \end_inset
4318
4319
4320 \end_layout
4321
4322 \begin_layout Standard
4323 The next two sections describe the 
4324 \begin_inset Flex Code
4325 status collapsed
4326
4327 \begin_layout Plain Layout
4328
4329 \shape up
4330 .kmap
4331 \end_layout
4332
4333 \end_inset
4334
4335  and 
4336 \begin_inset Flex Code
4337 status collapsed
4338
4339 \begin_layout Plain Layout
4340
4341 \shape up
4342 .cdef
4343 \end_layout
4344
4345 \end_inset
4346
4347  file syntax in detail.
4348  These sections should help you design your own key map if the ones provided
4349  do not meet your needs.
4350 \end_layout
4351
4352 \begin_layout Subsection
4353 The .kmap File
4354 \end_layout
4355
4356 \begin_layout Standard
4357
4358 \shape up
4359 .
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 kmap
4365 \end_layout
4366
4367 \end_inset
4368
4369  file maps keystrokes to characters or strings.
4370  As the name suggests, it sets a keyboard mapping.
4371  The 
4372 \begin_inset Flex Code
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376 .kmap
4377 \end_layout
4378
4379 \end_inset
4380
4381
4382 \shape default
4383  file keywords 
4384 \shape up
4385
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \shape up
4392 kmap
4393 \end_layout
4394
4395 \end_inset
4396
4397
4398 \shape default
4399 ,
4400 \shape up
4401  
4402 \shape default
4403
4404 \begin_inset Flex Code
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408
4409 \shape up
4410 kmod
4411 \end_layout
4412
4413 \end_inset
4414
4415 ,
4416 \shape up
4417  
4418 \shape default
4419
4420 \begin_inset Flex Code
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424
4425 \shape up
4426 kxmod
4427 \end_layout
4428
4429 \end_inset
4430
4431 , and 
4432 \begin_inset Flex Code
4433 status collapsed
4434
4435 \begin_layout Plain Layout
4436
4437 \shape up
4438 kcomb
4439 \end_layout
4440
4441 \end_inset
4442
4443  are described in this section.
4444 \end_layout
4445
4446 \begin_layout Labeling
4447 \labelwidthstring 00.00.0000
4448 \begin_inset Flex Code
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452
4453 \shape up
4454 kmap
4455 \end_layout
4456
4457 \end_inset
4458
4459  Map a character to a string
4460 \end_layout
4461
4462 \begin_layout LyX-Code
4463
4464 \backslash
4465 kmap 
4466 \family roman
4467 \emph on
4468 char
4469 \family default
4470 \emph default
4471  
4472 \family roman
4473 \emph on
4474 string
4475 \end_layout
4476
4477 \begin_layout Standard
4478 This will ma
4479 \family roman
4480 p
4481 \family default
4482  
4483 \family roman
4484 \emph on
4485 char
4486 \family default
4487 \emph default
4488  
4489 \family roman
4490 to
4491 \family default
4492  
4493 \family roman
4494 \emph on
4495 string
4496 \emph default
4497 .
4498  Note that in
4499 \family default
4500  
4501 \family roman
4502 \emph on
4503 string
4504 \emph default
4505 ,
4506 \family default
4507  
4508 \family roman
4509 \shape up
4510 the double-quote (")
4511 \family default
4512 \shape default
4513  
4514 \family roman
4515 and
4516 \family default
4517  
4518 \family roman
4519 \shape up
4520 the backslash (
4521 \backslash
4522 )
4523 \family default
4524 \shape default
4525  
4526 \family roman
4527 must be escaped with a preceding backslash (
4528 \shape up
4529
4530 \backslash
4531
4532 \shape default
4533 )
4534 \family default
4535 .
4536 \end_layout
4537
4538 \begin_layout Standard
4539 An example of a 
4540 \begin_inset Flex Noun
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544
4545 \shape up
4546 kmap
4547 \end_layout
4548
4549 \end_inset
4550
4551  statement to cause the symbol 
4552 \begin_inset Flex Noun
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556
4557 \shape up
4558 /
4559 \end_layout
4560
4561 \end_inset
4562
4563  to be output for the keystroke 
4564 \begin_inset Flex Noun
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568
4569 \shape up
4570 &
4571 \end_layout
4572
4573 \end_inset
4574
4575  is:
4576 \end_layout
4577
4578 \begin_layout LyX-Code
4579
4580 \backslash
4581 kmap & /
4582 \end_layout
4583
4584 \begin_layout Labeling
4585 \labelwidthstring 00.00.0000
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \shape up
4592 kmod
4593 \end_layout
4594
4595 \end_inset
4596
4597  Specify an accent character
4598 \end_layout
4599
4600 \begin_layout LyX-Code
4601
4602 \backslash
4603 kmod 
4604 \family roman
4605 \emph on
4606 char accent allowed
4607 \end_layout
4608
4609 \begin_layout Standard
4610 This will make the cha
4611 \family roman
4612 racter
4613 \family default
4614  
4615 \family roman
4616 \emph on
4617 char
4618 \family default
4619 \emph default
4620  
4621 \family roman
4622 \shape up
4623 \emph on
4624 be an accent
4625 \family default
4626 \shape default
4627 \emph default
4628  
4629 \family roman
4630 \shape up
4631 on the
4632 \family default
4633 \shape default
4634  
4635 \family roman
4636 \shape up
4637 \emph on
4638 allowed
4639 \family default
4640 \shape default
4641 \emph default
4642  
4643 \family roman
4644 \shape up
4645 cha
4646 \family default
4647 racter(s).
4648  This is the dead key
4649 \begin_inset Foot
4650 status collapsed
4651
4652 \begin_layout Plain Layout
4653 The term 
4654 \family roman
4655 \emph on
4656 dead key
4657 \family default
4658 \emph default
4659  refers to a key that does not produce a character by itself, but when followed
4660  with another key, produces the desired accent character.
4661  For example, a German characte
4662 \family roman
4663 r with an umlaut like
4664 \family default
4665  
4666 \family roman
4667 \emph on
4668 ä
4669 \family default
4670 \emph default
4671  
4672 \family roman
4673 can be produced in this manner.
4674 \end_layout
4675
4676 \end_inset
4677
4678  mechanism.
4679  
4680 \end_layout
4681
4682 \begin_layout Standard
4683 If you 
4684 \family roman
4685 hit
4686 \family default
4687  
4688 \family roman
4689 \emph on
4690 char
4691 \family default
4692 \emph default
4693  
4694 \family roman
4695 and then another key not in
4696 \family default
4697  
4698 \family roman
4699 \emph on
4700 allowed
4701 \emph default
4702 , you will get a
4703 \family default
4704  
4705 \family roman
4706 \emph on
4707 char
4708 \family default
4709 \emph default
4710  
4711 \family roman
4712 followed by the other, not allowed key, as output.
4713
4714 \family default
4715  Note that a 
4716 \begin_inset Flex Noun
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720
4721 \shape up
4722 Backspace
4723 \end_layout
4724
4725 \end_inset
4726
4727  cancels a dead key, so if 
4728 \family roman
4729 you hit
4730 \family default
4731  
4732 \family roman
4733 \emph on
4734 char
4735 \family default
4736 \emph default
4737  
4738 \begin_inset Flex Noun
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742
4743 \shape up
4744 \emph on
4745 Backspace
4746 \end_layout
4747
4748 \end_inset
4749
4750 , the cursor will not go one position backwards but will instead cancel
4751  the effect t
4752 \family roman
4753 hat
4754 \family default
4755  
4756 \family roman
4757 \shape up
4758 \emph on
4759 char
4760 \family default
4761 \shape default
4762 \emph default
4763  
4764 \family roman
4765 \shape up
4766 might have had on the next keystroke.
4767  
4768 \end_layout
4769
4770 \begin_layout Standard
4771 The following example specifies that the character ' is to be an acute accent,
4772  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4773 \end_layout
4774
4775 \begin_layout LyX-Code
4776
4777 \backslash
4778 kmod ' acute aeiouAEIOU
4779 \end_layout
4780
4781 \begin_layout Labeling
4782 \labelwidthstring 00.00.0000
4783 \begin_inset Flex Code
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 kxmod
4788 \end_layout
4789
4790 \end_inset
4791
4792  Specify an exception to the accent character
4793 \end_layout
4794
4795 \begin_layout LyX-Code
4796
4797 \backslash
4798 kxmod  
4799 \family roman
4800 \emph on
4801 accent char result
4802 \end_layout
4803
4804 \begin_layout Standard
4805 This defines an exce
4806 \family roman
4807 ption for
4808 \family default
4809  
4810 \family roman
4811 \emph on
4812 accent
4813 \family default
4814 \emph default
4815  
4816 \family roman
4817 on
4818 \family default
4819  
4820 \family roman
4821 \emph on
4822 char
4823 \emph default
4824 .
4825  T
4826 \shape up
4827 he
4828 \family default
4829 \shape default
4830  
4831 \family roman
4832 \shape up
4833 \emph on
4834 accent
4835 \family default
4836 \shape default
4837 \emph default
4838  
4839 \family roman
4840 \shape up
4841 must
4842 \family default
4843 \shape default
4844  
4845 \shape up
4846 have been assigned a keystroke with a previous
4847 \shape default
4848  
4849 \begin_inset Flex Code
4850 status collapsed
4851
4852 \begin_layout Plain Layout
4853
4854 \shape up
4855
4856 \backslash
4857 kmo
4858 \shape default
4859 d
4860 \end_layout
4861
4862 \end_inset
4863
4864  declar
4865 \family roman
4866 ation and
4867 \family default
4868  
4869 \family roman
4870 \emph on
4871 char
4872 \family default
4873 \emph default
4874  
4875 \family roman
4876 must not belong in the
4877 \family default
4878  
4879 \family roman
4880 \emph on
4881 allowed
4882 \family default
4883 \emph default
4884  
4885 \family roman
4886 set of
4887 \family default
4888  
4889 \family roman
4890 \emph on
4891 accent
4892 \emph default
4893 .
4894  When
4895 \family default
4896  
4897 \family roman
4898 \shape up
4899 you enter the
4900 \family default
4901 \shape default
4902  
4903 \family roman
4904 \shape up
4905 \emph on
4906 accent char
4907 \family default
4908 \shape default
4909 \emph default
4910  
4911 \family roman
4912 \shape up
4913 sequence,
4914 \family default
4915 \shape default
4916  
4917 \family roman
4918 \shape up
4919 \emph on
4920 result
4921 \emph default
4922  is produced.
4923  If such a declaration does not exist in
4924 \family default
4925 \shape default
4926  
4927 \shape up
4928 the
4929 \shape default
4930  
4931 \begin_inset Flex Code
4932 status collapsed
4933
4934 \begin_layout Plain Layout
4935
4936 \shape up
4937 .kmap
4938 \end_layout
4939
4940 \end_inset
4941
4942  file and yo
4943 \family roman
4944 u enter
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 accent char
4950 \emph default
4951 , you get
4952 \family default
4953  
4954 \family roman
4955 \emph on
4956 accent_key char
4957 \emph default
4958  where
4959 \family default
4960  
4961 \family roman
4962 \emph on
4963 accent_key
4964 \emph default
4965  is the first arg
4966 \family default
4967 ument of the 
4968 \begin_inset Flex Code
4969 status collapsed
4970
4971 \begin_layout Plain Layout
4972
4973 \shape up
4974
4975 \backslash
4976 kmod
4977 \end_layout
4978
4979 \end_inset
4980
4981  declaration.
4982  
4983 \end_layout
4984
4985 \begin_layout Standard
4986 The following command produces causes äi to be produced when you enter acute-i
4987  ('i):
4988 \end_layout
4989
4990 \begin_layout LyX-Code
4991
4992 \backslash
4993 kxmod acute i "
4994 \backslash
4995
4996 \backslash
4997 '{
4998 \backslash
4999
5000 \backslash
5001 i}"
5002 \end_layout
5003
5004 \begin_layout Labeling
5005 \labelwidthstring 00.00.0000
5006 \begin_inset Flex Code
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 kcomb
5011 \end_layout
5012
5013 \end_inset
5014
5015  Combine two accent characters
5016 \end_layout
5017
5018 \begin_layout LyX-Code
5019
5020 \backslash
5021 kcomb 
5022 \family roman
5023 \emph on
5024 accent1 accent2 allowed
5025 \end_layout
5026
5027 \begin_layout Standard
5028 This one is getting pretty esoteric.
5029  It allows you to combine the effect 
5030 \family roman
5031 of
5032 \family default
5033  
5034 \family roman
5035 \emph on
5036 accent1
5037 \family default
5038 \emph default
5039  
5040 \family roman
5041 and
5042 \family default
5043  
5044 \family roman
5045 \emph on
5046 accent2
5047 \family default
5048 \emph default
5049  
5050 \family roman
5051 (in that order!) on
5052 \family default
5053  
5054 \family roman
5055 \emph on
5056 allowed
5057 \family default
5058 \emph default
5059  
5060 \family roman
5061 chars.
5062  The keystrokes for
5063 \family default
5064  
5065 \family roman
5066 \emph on
5067 accent1
5068 \family default
5069 \emph default
5070  
5071 \family roman
5072 and
5073 \family default
5074  
5075 \family roman
5076 \emph on
5077 accent2
5078 \family default
5079 \emph default
5080  
5081 \family roman
5082 must have be
5083 \family default
5084 en set with a 
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089
5090 \shape up
5091
5092 \backslash
5093 kmod
5094 \end_layout
5095
5096 \end_inset
5097
5098  command at 
5099 \family roman
5100 a
5101 \family default
5102  
5103 \family roman
5104 \emph on
5105 previous
5106 \family default
5107 \emph default
5108  
5109 \family roman
5110 point in the
5111 \family default
5112  file.
5113  
5114 \end_layout
5115
5116 \begin_layout Standard
5117 Consider this example from the 
5118 \begin_inset Flex Code
5119 status collapsed
5120
5121 \begin_layout Plain Layout
5122
5123 \shape up
5124 greek.kmap
5125 \end_layout
5126
5127 \end_inset
5128
5129  file:
5130 \end_layout
5131
5132 \begin_layout LyX-Code
5133
5134 \backslash
5135 kmod ; acute aeioyvhAEIOYVH 
5136 \backslash
5137 kmod : umlaut iyIY 
5138 \backslash
5139 kcomb acute umlaut iyIY
5140 \end_layout
5141
5142 \begin_layout Standard
5143 This allows you to press 
5144 \begin_inset Flex Noun
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148
5149 \shape up
5150 ;:i
5151 \end_layout
5152
5153 \end_inset
5154
5155  and get the effect of 
5156 \begin_inset Flex Code
5157 status collapsed
5158
5159 \begin_layout Plain Layout
5160
5161 \shape up
5162
5163 \backslash
5164 '{
5165 \backslash
5166 "{i}}
5167 \end_layout
5168
5169 \end_inset
5170
5171 .
5172  
5173 \family roman
5174 \shape up
5175 A backspace
5176 \family default
5177 \shape default
5178  in this case cancels the last dead key, so if you press 
5179 \begin_inset Flex Noun
5180 status collapsed
5181
5182 \begin_layout Plain Layout
5183
5184 \shape up
5185 ;: Backspace i
5186 \end_layout
5187
5188 \end_inset
5189
5190  you get 
5191 \begin_inset Flex Code
5192 status collapsed
5193
5194 \begin_layout Plain Layout
5195
5196 \shape up
5197
5198 \backslash
5199 '{i}
5200 \end_layout
5201
5202 \end_inset
5203
5204 .
5205 \end_layout
5206
5207 \begin_layout Subsection
5208 The .cdef File
5209 \end_layout
5210
5211 \begin_layout Standard
5212 After the 
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217
5218 \shape up
5219 .kmap
5220 \end_layout
5221
5222 \end_inset
5223
5224  mapping is performed, a 
5225 \begin_inset Flex Code
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229
5230 \shape up
5231 .cde
5232 \shape default
5233 f
5234 \end_layout
5235
5236 \end_inset
5237
5238  file maps the strings that the symbols generate to characters in the current
5239  font.
5240  The \SpecialChar LyX
5241  distribution currently includes at least the 
5242 \begin_inset Flex Code
5243 status collapsed
5244
5245 \begin_layout Plain Layout
5246
5247 \shape up
5248 iso8859-1.cdef
5249 \end_layout
5250
5251 \end_inset
5252
5253  and 
5254 \begin_inset Flex Code
5255 status collapsed
5256
5257 \begin_layout Plain Layout
5258
5259 \shape up
5260 iso8859-2.cdef
5261 \end_layout
5262
5263 \end_inset
5264
5265  files.
5266 \end_layout
5267
5268 \begin_layout Standard
5269 In general the 
5270 \begin_inset Flex Code
5271 status collapsed
5272
5273 \begin_layout Plain Layout
5274
5275 \shape up
5276 .cdef
5277 \end_layout
5278
5279 \end_inset
5280
5281  file is a sequence of declarations of the form
5282 \end_layout
5283
5284 \begin_layout LyX-Code
5285
5286 \family roman
5287 \emph on
5288 char_index_in_set
5289 \family default
5290 \emph default
5291  
5292 \family roman
5293 \emph on
5294  string
5295 \end_layout
5296
5297 \begin_layout Standard
5298 For example, in order to map 
5299 \begin_inset Flex Noun
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303
5304 \shape up
5305
5306 \backslash
5307 '{e}
5308 \end_layout
5309
5310 \end_inset
5311
5312  to the corresponding character in the iso-8859-1 set (233), the following
5313  declaration is used
5314 \end_layout
5315
5316 \begin_layout LyX-Code
5317 233 "
5318 \backslash
5319
5320 \backslash
5321 '{e}"
5322 \end_layout
5323
5324 \begin_layout Standard
5325 with 
5326 \begin_inset Flex Code
5327 status collapsed
5328
5329 \begin_layout Plain Layout
5330
5331 \backslash
5332
5333 \end_layout
5334
5335 \end_inset
5336
5337  and 
5338 \begin_inset Flex Code
5339 status collapsed
5340
5341 \begin_layout Plain Layout
5342 "
5343 \end_layout
5344
5345 \end_inset
5346
5347  being escap
5348 \family roman
5349 ed in
5350 \family default
5351  
5352 \family roman
5353 \emph on
5354 string
5355 \emph default
5356 .
5357  Note that
5358 \family default
5359  the same character can apply to more than one string.
5360  In the 
5361 \begin_inset Flex Code
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365 i
5366 \shape up
5367 so-8859-7.cdef
5368 \end_layout
5369
5370 \end_inset
5371
5372  file you have
5373 \end_layout
5374
5375 \begin_layout LyX-Code
5376 192 "
5377 \backslash
5378
5379 \backslash
5380 '{
5381 \backslash
5382
5383 \backslash
5384
5385 \backslash
5386 "{i}}"
5387 \begin_inset Newline newline
5388 \end_inset
5389
5390 192 "
5391 \backslash
5392
5393 \backslash
5394
5395 \backslash
5396 "{
5397 \backslash
5398
5399 \backslash
5400 '{i}}"
5401 \end_layout
5402
5403 \begin_layout Standard
5404 If \SpecialChar LyX
5405  cannot find a mapping for the string produced by the keystroke or a
5406  deadkey sequence, it will check if it looks like an accented char and try
5407  to draw an accent over the character on screen.
5408 \end_layout
5409
5410 \begin_layout Subsection
5411 Dead Keys
5412 \end_layout
5413
5414 \begin_layout Standard
5415 There is a second way to add support for international characters through
5416  so-called dead-keys.
5417  A dead-key works in combination with a letter to produce an accented character.
5418  Here, we'll explain how to create a really simple dead-key to illustrate
5419  how they work.
5420 \end_layout
5421
5422 \begin_layout Standard
5423 Suppose you happen to need the circumflex character, 
5424 \begin_inset Quotes eld
5425 \end_inset
5426
5427  ̂
5428 \begin_inset Quotes erd
5429 \end_inset
5430
5431 .
5432  You could bind the 
5433 \begin_inset Flex Noun
5434 status collapsed
5435
5436 \begin_layout Plain Layout
5437 ^
5438 \end_layout
5439
5440 \end_inset
5441
5442 -key [a.k.a.
5443 \begin_inset space ~
5444 \end_inset
5445
5446
5447 \begin_inset Flex Noun
5448 status collapsed
5449
5450 \begin_layout Plain Layout
5451 Shift-6
5452 \end_layout
5453
5454 \end_inset
5455
5456 ] to the \SpecialChar LyX
5457  command 
5458 \begin_inset Flex Code
5459 status collapsed
5460
5461 \begin_layout Plain Layout
5462 accent-circumflex
5463 \end_layout
5464
5465 \end_inset
5466
5467  in your 
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472 lyxrc
5473 \end_layout
5474
5475 \end_inset
5476
5477  file.
5478  Now, whenever you type the 
5479 \begin_inset Flex Noun
5480 status collapsed
5481
5482 \begin_layout Plain Layout
5483 ^
5484 \end_layout
5485
5486 \end_inset
5487
5488 -key followed by a letter, that letter will have a circumflex accent on
5489  it.
5490  For example, the sequence 
5491 \begin_inset Quotes eld
5492 \end_inset
5493
5494
5495 \begin_inset Flex Noun
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 ^e
5500 \end_layout
5501
5502 \end_inset
5503
5504
5505 \begin_inset Quotes erd
5506 \end_inset
5507
5508  produces the letter: 
5509 \begin_inset Quotes eld
5510 \end_inset
5511
5512 ê
5513 \begin_inset Quotes erd
5514 \end_inset
5515
5516 .
5517  If you tried to type 
5518 \begin_inset Quotes eld
5519 \end_inset
5520
5521
5522 \begin_inset Flex Noun
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 ^t
5527 \end_layout
5528
5529 \end_inset
5530
5531
5532 \begin_inset Quotes erd
5533 \end_inset
5534
5535 , however, \SpecialChar LyX
5536  will complain with a beep, since a 
5537 \begin_inset Quotes eld
5538 \end_inset
5539
5540
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 t
5546 \end_layout
5547
5548 \end_inset
5549
5550
5551 \begin_inset Quotes erd
5552 \end_inset
5553
5554  never takes a circumflex accent.
5555  Hitting 
5556 \begin_inset Flex Noun
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 Space
5561 \end_layout
5562
5563 \end_inset
5564
5565  after a dead-key produces the bare-accent.
5566  Please note this last point! If you bind a key to a dead-key, you'll need
5567  to rebind the character on that key to yet another key.
5568  Binding the 
5569 \begin_inset Flex Noun
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 ,-key
5574 \end_layout
5575
5576 \end_inset
5577
5578  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5579 \end_layout
5580
5581 \begin_layout Standard
5582 One common way to bind dead-keys is to use 
5583 \begin_inset Flex Noun
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 Meta-
5588 \end_layout
5589
5590 \end_inset
5591
5592
5593 \begin_inset Flex Noun
5594 status collapsed
5595
5596 \begin_layout Plain Layout
5597 Ctrl-
5598 \end_layout
5599
5600 \end_inset
5601
5602 , and 
5603 \begin_inset Flex Noun
5604 status collapsed
5605
5606 \begin_layout Plain Layout
5607 Shift-
5608 \end_layout
5609
5610 \end_inset
5611
5612  in combination with an accent, like 
5613 \begin_inset Quotes eld
5614 \end_inset
5615
5616
5617 \begin_inset Flex Noun
5618 status collapsed
5619
5620 \begin_layout Plain Layout
5621 ~
5622 \end_layout
5623
5624 \end_inset
5625
5626
5627 \begin_inset Quotes erd
5628 \end_inset
5629
5630  or 
5631 \begin_inset Quotes eld
5632 \end_inset
5633
5634
5635 \begin_inset Flex Noun
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 ,
5640 \end_layout
5641
5642 \end_inset
5643
5644
5645 \begin_inset Quotes erd
5646 \end_inset
5647
5648  or 
5649 \begin_inset Quotes eld
5650 \end_inset
5651
5652
5653 \begin_inset Flex Noun
5654 status collapsed
5655
5656 \begin_layout Plain Layout
5657 ^
5658 \end_layout
5659
5660 \end_inset
5661
5662
5663 \begin_inset Quotes erd
5664 \end_inset
5665
5666 .
5667  Another way involves using 
5668 \begin_inset Flex Code
5669 status collapsed
5670
5671 \begin_layout Plain Layout
5672 xmodmap
5673 \end_layout
5674
5675 \end_inset
5676
5677  and 
5678 \begin_inset Flex Code
5679 status collapsed
5680
5681 \begin_layout Plain Layout
5682 xkeycaps
5683 \end_layout
5684
5685 \end_inset
5686
5687  to set up the special 
5688 \begin_inset Flex Code
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692 Mode_Switch
5693 \end_layout
5694
5695 \end_inset
5696
5697  key.
5698  The 
5699 \begin_inset Flex Code
5700 status collapsed
5701
5702 \begin_layout Plain Layout
5703 Mode_Switch
5704 \end_layout
5705
5706 \end_inset
5707
5708  acts in some ways just like 
5709 \begin_inset Flex Noun
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 Shift
5714 \end_layout
5715
5716 \end_inset
5717
5718  and permits you to bind keys to accented characters.
5719  You can also turn keys into dead-keys by binding them to something like
5720  
5721 \begin_inset Flex Code
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 usldead_cedilla
5726 \end_layout
5727
5728 \end_inset
5729
5730  and then binding this symbolic key to the corresponding \SpecialChar LyX
5731  command.
5732 \begin_inset Foot
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 Note from 
5737 \noun on
5738 John Weiss
5739 \noun default
5740 : This is exactly what I do in my 
5741 \begin_inset Flex Code
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 ~/.lyx/lyxrc
5746 \end_layout
5747
5748 \end_inset
5749
5750  and my 
5751 \begin_inset Flex Code
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 ~/.xmodmap
5756 \end_layout
5757
5758 \end_inset
5759
5760  files.
5761  I have my 
5762 \begin_inset Flex Noun
5763 status collapsed
5764
5765 \begin_layout Plain Layout
5766 Scroll
5767 \begin_inset space ~
5768 \end_inset
5769
5770 Lock
5771 \end_layout
5772
5773 \end_inset
5774
5775  key set up as 
5776 \begin_inset Flex Code
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 Mode_Shift
5781 \end_layout
5782
5783 \end_inset
5784
5785  and a bunch of these 
5786 \begin_inset Quotes eld
5787 \end_inset
5788
5789
5790 \begin_inset Flex Code
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794 usldead_*
5795 \end_layout
5796
5797 \end_inset
5798
5799
5800 \begin_inset Quotes erd
5801 \end_inset
5802
5803  symbolic keys bound such things as 
5804 \begin_inset Flex Noun
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808 Scroll
5809 \begin_inset space ~
5810 \end_inset
5811
5812 Lock-^
5813 \end_layout
5814
5815 \end_inset
5816
5817  and 
5818 \begin_inset Flex Noun
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 Scroll
5823 \begin_inset space ~
5824 \end_inset
5825
5826 Lock-~
5827 \end_layout
5828
5829 \end_inset
5830
5831 .
5832  This is how I produce my accented characters.
5833 \end_layout
5834
5835 \end_inset
5836
5837  You can make just about anything into the 
5838 \begin_inset Flex Code
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 Mode_Switch
5843 \end_layout
5844
5845 \end_inset
5846
5847  key: One of the 
5848 \begin_inset Flex Noun
5849 status collapsed
5850
5851 \begin_layout Plain Layout
5852 Ctrl-
5853 \end_layout
5854
5855 \end_inset
5856
5857  keys, a spare function key, etc.
5858  As for the \SpecialChar LyX
5859  commands that produce accents, check the entry for 
5860 \begin_inset Flex Code
5861 status collapsed
5862
5863 \begin_layout Plain Layout
5864 accent-acute
5865 \end_layout
5866
5867 \end_inset
5868
5869  in the 
5870 \emph on
5871 Reference Manual
5872 \emph default
5873 .
5874  You'll find the complete list there.
5875 \end_layout
5876
5877 \begin_layout Subsection
5878 Saving your Language Configuration
5879 \end_layout
5880
5881 \begin_layout Standard
5882 You can edit your preferences so that your desired language environment
5883  is automatically configured when \SpecialChar LyX
5884  starts up, via the 
5885 \begin_inset Flex Noun
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 Edit\SpecialChar menuseparator
5890 Preferences
5891 \end_layout
5892
5893 \end_inset
5894
5895  dialog.
5896 \end_layout
5897
5898 \begin_layout Chapter
5899 Installing New Document Classes, Layouts, and Templates
5900 \begin_inset CommandInset label
5901 LatexCommand label
5902 name "cha:Installing-New-Document"
5903
5904 \end_inset
5905
5906
5907 \begin_inset Argument 1
5908 status collapsed
5909
5910 \begin_layout Plain Layout
5911 Installing New Document Classes
5912 \end_layout
5913
5914 \end_inset
5915
5916
5917 \end_layout
5918
5919 \begin_layout Standard
5920 In this chapter, we describe the procedures for creating and installing
5921  new \SpecialChar LyX
5922  layout and template files, as well as offer a refresher on correctly
5923  installing new \SpecialChar LaTeX
5924  document classes.
5925  
5926 \end_layout
5927
5928 \begin_layout Standard
5929 First, let us a say a few words about how one ought to think about the relation
5930  between \SpecialChar LyX
5931  and \SpecialChar LaTeX
5932 .
5933  The thing to understand is that, in a certain sense, \SpecialChar LyX
5934  doesn't know anything
5935  about \SpecialChar LaTeX
5936 .
5937  Indeed, from \SpecialChar LyX
5938 's point of view, \SpecialChar LaTeX
5939  is just one of several 
5940 \begin_inset Quotes eld
5941 \end_inset
5942
5943 backend formats
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947  in which it is capable of producing output.
5948  Other such formats are DocBook, plaintext, and XHTML.
5949  \SpecialChar LaTeX
5950  is, of course, a particularly important format, but very little of the
5951  information \SpecialChar LyX
5952  has about \SpecialChar LaTeX
5953  is actually contained in the program itself.
5954 \begin_inset Foot
5955 status collapsed
5956
5957 \begin_layout Plain Layout
5958 Some commands are sufficiently complex that they are 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 hardcoded
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  into \SpecialChar LyX
5967 .
5968  But the developers generally regard this as a Bad Thing.
5969 \end_layout
5970
5971 \end_inset
5972
5973  Rather, that information, even for the standard classes like 
5974 \begin_inset Flex Code
5975 status collapsed
5976
5977 \begin_layout Plain Layout
5978 article.cls
5979 \end_layout
5980
5981 \end_inset
5982
5983 , is contained in `layout files'.
5984  Similarly, \SpecialChar LyX
5985  itself does not know much about DocBook or XHTML.
5986  What it knows is contained in layout files.
5987 \end_layout
5988
5989 \begin_layout Standard
5990 You can think of the layout file for a given document class as a translation
5991  manual between \SpecialChar LyX
5992  constructs—paragraphs with their corresponding styles,
5993  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5994 , DocBook, or XHTML
5995  constructs.
5996  Almost everything \SpecialChar LyX
5997  knows about 
5998 \begin_inset Flex Code
5999 status collapsed
6000
6001 \begin_layout Plain Layout
6002 article.cls
6003 \end_layout
6004
6005 \end_inset
6006
6007 , for example, is contained in the file 
6008 \begin_inset Flex Code
6009 status collapsed
6010
6011 \begin_layout Plain Layout
6012 article.layout
6013 \end_layout
6014
6015 \end_inset
6016
6017  and in various other files it includes.
6018  For this reason, anyone intending to write layout files should plan to
6019  study the existing files.
6020  A good place to start is with 
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 stdsections.inc
6026 \end_layout
6027
6028 \end_inset
6029
6030 , which is included in 
6031 \begin_inset Flex Code
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 article.layout
6036 \end_layout
6037
6038 \end_inset
6039
6040
6041 \begin_inset Flex Code
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 book.layout
6046 \end_layout
6047
6048 \end_inset
6049
6050 , and many of the other layout files for document classes.
6051  This file is where sections and the like are defined: 
6052 \begin_inset Flex Code
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 stdsections.inc
6057 \end_layout
6058
6059 \end_inset
6060
6061  tells \SpecialChar LyX
6062  how paragraphs that are marked with the Section, Subsection, etc,
6063  styles can be translated into corresponding \SpecialChar LaTeX
6064 , DocBook, and XHTML commands
6065  and tags.
6066  The 
6067 \begin_inset Flex Code
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 article.layout
6072 \end_layout
6073
6074 \end_inset
6075
6076  file basically just includes several of these 
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 std*.inc
6082 \end_layout
6083
6084 \end_inset
6085
6086  files.
6087 \end_layout
6088
6089 \begin_layout Standard
6090 Defining the \SpecialChar LyX
6091 –\SpecialChar LaTeX
6092  correspondence is not the only thing layout files do, though.
6093  Their other job is to define how the \SpecialChar LyX
6094  constructs themselves will appear
6095  on-screen.
6096  The fact that layout files have these two jobs is often a source of confusion,
6097  because they are completely separate.
6098  Telling \SpecialChar LyX
6099  how to translate a certain paragraph style into \SpecialChar LaTeX
6100  does not tell
6101  \SpecialChar LyX
6102  how to display it; conversely, telling \SpecialChar LyX
6103  how to display a certain paragraph
6104  style does not tell \SpecialChar LyX
6105  how to translate it into \SpecialChar LaTeX
6106  (let alone tell \SpecialChar LaTeX
6107  how to
6108  display it).
6109  So, in general, when you define a new \SpecialChar LyX
6110  construct, you must always do two
6111  quite separate things: (i)
6112 \begin_inset space ~
6113 \end_inset
6114
6115 tell \SpecialChar LyX
6116  how to translate it into \SpecialChar LaTeX
6117  and (ii)
6118 \begin_inset space ~
6119 \end_inset
6120
6121 tell \SpecialChar LyX
6122  how to display it.
6123 \end_layout
6124
6125 \begin_layout Standard
6126 Much the same is true, of course, as regards \SpecialChar LyX
6127 's other backend formats, though
6128  XHTML is in some ways different, because in that case \SpecialChar LyX
6129  
6130 \emph on
6131 is
6132 \emph default
6133  able, to some extent, to use information about how it should display a
6134  paragraph on the screen to output information (in the form of CSS) about
6135  how the paragraph should be displayed in a browser.
6136  Even in this case, however, the distinction between what \SpecialChar LyX
6137  does internally
6138  and how things are rendered externally remains in force, and the two can
6139  be controlled separately.
6140  See 
6141 \begin_inset CommandInset ref
6142 LatexCommand ref
6143 reference "sec:Tags-for-XHTML"
6144
6145 \end_inset
6146
6147  for the details.
6148 \end_layout
6149
6150 \begin_layout Section
6151 Installing new \SpecialChar LaTeX
6152  files
6153 \end_layout
6154
6155 \begin_layout Standard
6156 Some installations may not include a \SpecialChar LaTeX
6157  package or class file that you would
6158  like to use within \SpecialChar LyX
6159 .
6160  For example, you might need Foil\SpecialChar TeX
6161 , a package for preparing slides for overhead
6162  projectors.
6163  Modern \SpecialChar LaTeX
6164  distributions like \SpecialChar TeX
6165 Live (2008 or newer) or MiK\SpecialChar TeX
6166  provide a user interface
6167  for installing such packages.
6168  For example, with MiK\SpecialChar TeX
6169 , you start the program 
6170 \begin_inset Quotes eld
6171 \end_inset
6172
6173 Package
6174 \begin_inset space ~
6175 \end_inset
6176
6177 Manager
6178 \begin_inset Quotes erd
6179 \end_inset
6180
6181  to get a list of available packages.
6182  To install one of them, right click on it or use the corresponding toolbar
6183  button.
6184 \end_layout
6185
6186 \begin_layout Standard
6187 If your \SpecialChar LaTeX
6188  distribution does not provide such a `package manager', or if the
6189  package is not available from your distribution, then follow these steps
6190  to install it manually:
6191 \end_layout
6192
6193 \begin_layout Enumerate
6194 Get the package from 
6195 \begin_inset CommandInset href
6196 LatexCommand href
6197 name "CTAN"
6198 target "http://www.ctan.org/"
6199 literal "false"
6200
6201 \end_inset
6202
6203  or wherever.
6204 \end_layout
6205
6206 \begin_layout Enumerate
6207 If the package contains a file with the ending 
6208 \begin_inset Quotes eld
6209 \end_inset
6210
6211
6212 \begin_inset Flex Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 .ins
6217 \end_layout
6218
6219 \end_inset
6220
6221
6222 \begin_inset Quotes erd
6223 \end_inset
6224
6225  (is the case for Foil\SpecialChar TeX
6226 ) then open a console, change to the folder of this
6227  file and execute the command 
6228 \begin_inset Flex Code
6229 status collapsed
6230
6231 \begin_layout Plain Layout
6232 latex foiltex.ins
6233 \end_layout
6234
6235 \end_inset
6236
6237 .
6238  You have now unpacked the package and have all files to install it.
6239  Most \SpecialChar LaTeX
6240 -packages are not packed and you can skip this step.
6241 \end_layout
6242
6243 \begin_layout Enumerate
6244 Now you need to decide if the package should be available for all users
6245  or only for you.
6246 \end_layout
6247
6248 \begin_deeper
6249 \begin_layout Enumerate
6250 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6251  for all users on your system, then install it in your `local' \SpecialChar TeX
6252  tree, otherwise
6253  install it in your own `user' \SpecialChar TeX
6254  tree.
6255  Where these trees should be created, if they do not already exist, depends
6256  on your system.
6257  To find this out, look in the file 
6258 \begin_inset Flex Code
6259 status collapsed
6260
6261 \begin_layout Plain Layout
6262 texmf.cnf
6263 \end_layout
6264
6265 \end_inset
6266
6267 .
6268 \begin_inset Foot
6269 status collapsed
6270
6271 \begin_layout Plain Layout
6272 This is usually in the directory 
6273 \begin_inset Flex Code
6274 status collapsed
6275
6276 \begin_layout Plain Layout
6277 $TEXMF/web2c
6278 \end_layout
6279
6280 \end_inset
6281
6282 , though you can execute the command 
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 kpsewhich texmf.cnf
6288 \end_layout
6289
6290 \end_inset
6291
6292  to locate it.
6293 \end_layout
6294
6295 \end_inset
6296
6297  The location of the `local' \SpecialChar TeX
6298  tree is defined by the 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 TEXMFLOCAL
6304 \end_layout
6305
6306 \end_inset
6307
6308  variable; this is usually somewhere like 
6309 \begin_inset Flex Code
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 /usr/local/share/texmf
6314 \end_layout
6315
6316 \end_inset
6317
6318  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6319 Live
6320  distribution.
6321  The location of the `user' \SpecialChar TeX
6322  tree is defined by 
6323 \begin_inset Flex Code
6324 status collapsed
6325
6326 \begin_layout Plain Layout
6327 TEXMFHOME
6328 \end_layout
6329
6330 \end_inset
6331
6332  and is commonly 
6333 \begin_inset Flex Code
6334 status collapsed
6335
6336 \begin_layout Plain Layout
6337 $HOME/texmf
6338 \end_layout
6339
6340 \end_inset
6341
6342  or 
6343 \begin_inset Flex Code
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347
6348 \family sans
6349 $HOME/.texliveXXXX
6350 \end_layout
6351
6352 \end_inset
6353
6354 .
6355  (If these variables are not predefined, you have to define them.) You'll
6356  probably need root permissions to create or modify the `local' tree, but
6357  not for your `user' tree.
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361 In general, it is recommended to install in the user tree because your user
6362  will not be modified or even overwritten when you upgrade your system.
6363  It will typically also be backed up together with everything else when
6364  you backup your home directory (which, of course, you do on a regular basis).
6365 \end_layout
6366
6367 \begin_layout Enumerate
6368 On Windows, if you want the new package to be available for all users on
6369  your system, change to the folder where \SpecialChar LaTeX
6370  is installed and then change to
6371  the subfolder 
6372 \begin_inset Flex Code
6373 status collapsed
6374
6375 \begin_layout Plain Layout
6376 ~
6377 \backslash
6378 tex
6379 \backslash
6380 latex
6381 \end_layout
6382
6383 \end_inset
6384
6385 .
6386  (For MiK\SpecialChar TeX
6387 , this would be by default the folder 
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 ~:
6393 \backslash
6394 Programs
6395 \backslash
6396 MiKTeX
6397 \backslash
6398 tex
6399 \backslash
6400 latex
6401 \end_layout
6402
6403 \end_inset
6404
6405 .)
6406 \begin_inset Foot
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410 Note that this will be the correct path only on English installations.
6411  On a German one, it would be 
6412 \begin_inset Flex Code
6413 status collapsed
6414
6415 \begin_layout Plain Layout
6416 ~:
6417 \backslash
6418 Programme
6419 \backslash
6420 MiKTeX
6421 \backslash
6422 tex
6423 \backslash
6424 latex
6425 \end_layout
6426
6427 \end_inset
6428
6429 , and similarly for other languages.
6430 \end_layout
6431
6432 \end_inset
6433
6434  Create there a new folder 
6435 \begin_inset Flex Code
6436 status collapsed
6437
6438 \begin_layout Plain Layout
6439 foiltex
6440 \end_layout
6441
6442 \end_inset
6443
6444  and copy all files of the package into it.
6445  
6446 \begin_inset Newline newline
6447 \end_inset
6448
6449 If the package should only available for you or you don't have admin permissions
6450 , do the same, but in the local \SpecialChar LaTeX
6451  folder.
6452  E.
6453 \begin_inset space \thinspace{}
6454 \end_inset
6455
6456 g., for MiK\SpecialChar TeX
6457
6458 \begin_inset space ~
6459 \end_inset
6460
6461 2.8 under Windows XP, this would be the folder:
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465
6466 \family sans
6467
6468 \begin_inset Flex Code
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 ~:
6473 \backslash
6474 Documents and Settings
6475 \backslash
6476 <username>
6477 \backslash
6478 Application Data
6479 \backslash
6480
6481 \end_layout
6482
6483 \end_inset
6484
6485
6486 \begin_inset Newline newline
6487 \end_inset
6488
6489
6490 \family default
6491
6492 \begin_inset Phantom HPhantom
6493 status open
6494
6495 \begin_layout Plain Layout
6496
6497 \family sans
6498 ~:
6499 \backslash
6500
6501 \end_layout
6502
6503 \end_inset
6504
6505
6506 \begin_inset Flex Code
6507 status collapsed
6508
6509 \begin_layout Plain Layout
6510 MiKTeX
6511 \backslash
6512 2.8
6513 \backslash
6514 tex
6515 \backslash
6516 latex
6517 \end_layout
6518
6519 \end_inset
6520
6521
6522 \begin_inset Newline newline
6523 \end_inset
6524
6525 On Vista, it would be:
6526 \begin_inset Newline newline
6527 \end_inset
6528
6529
6530 \begin_inset Flex Code
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 ~:
6535 \backslash
6536 Users
6537 \backslash
6538 <username>
6539 \backslash
6540 AppData
6541 \backslash
6542 Roaming
6543 \backslash
6544 2.8
6545 \backslash
6546 MiKTeX
6547 \backslash
6548 tex
6549 \backslash
6550 latex
6551 \end_layout
6552
6553 \end_inset
6554
6555
6556 \end_layout
6557
6558 \end_deeper
6559 \begin_layout Enumerate
6560 Now one only need to tell \SpecialChar LaTeX
6561  that there are new files.
6562  This depends on the used \SpecialChar LaTeX
6563 -Distribution:
6564 \end_layout
6565
6566 \begin_deeper
6567 \begin_layout Enumerate
6568 For \SpecialChar TeX
6569 Live execute the command 
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 texhash
6575 \end_layout
6576
6577 \end_inset
6578
6579  from a console.
6580  If you installed the package for all users, then you will probably need
6581  to have root permissions for that.
6582 \end_layout
6583
6584 \begin_layout Enumerate
6585 For MiK\SpecialChar TeX
6586 , if you have installed the package for all users, start the program
6587  
6588 \begin_inset Quotes eld
6589 \end_inset
6590
6591 Settings
6592 \begin_inset space ~
6593 \end_inset
6594
6595 (Admin)
6596 \begin_inset Quotes erd
6597 \end_inset
6598
6599  and press the button marked 
6600 \begin_inset Quotes eld
6601 \end_inset
6602
6603 Refresh FNDB
6604 \begin_inset Quotes erd
6605 \end_inset
6606
6607 .
6608  Otherwise start the program 
6609 \begin_inset Quotes eld
6610 \end_inset
6611
6612 Settings
6613 \begin_inset Quotes erd
6614 \end_inset
6615
6616  and do the same.
6617 \end_layout
6618
6619 \end_deeper
6620 \begin_layout Enumerate
6621 Finally, you need to tell \SpecialChar LyX
6622  that there are new packages available.
6623  So, in \SpecialChar LyX
6624 , use the menu 
6625 \begin_inset Flex Noun
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629 Tools
6630 \family sans
6631 \SpecialChar menuseparator
6632 Reconfigure
6633 \end_layout
6634
6635 \end_inset
6636
6637  and then restart \SpecialChar LyX
6638 .
6639 \end_layout
6640
6641 \begin_layout Standard
6642 Now the package is installed.
6643  In our example, the document class 
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 FoilTex
6649 \end_layout
6650
6651 \end_inset
6652
6653  will now be available under 
6654 \begin_inset Flex Noun
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 Document\SpecialChar menuseparator
6659 Settings\SpecialChar menuseparator
6660 Document Class
6661 \end_layout
6662
6663 \end_inset
6664
6665  (in the 
6666 \begin_inset Quotes eld
6667 \end_inset
6668
6669 Presentations
6670 \begin_inset Quotes erd
6671 \end_inset
6672
6673  category).
6674  
6675 \end_layout
6676
6677 \begin_layout Standard
6678 If you would like to use a \SpecialChar LaTeX
6679  document class that is not even listed in the
6680  menu 
6681 \begin_inset Flex Noun
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 Document\SpecialChar menuseparator
6686 Settings\SpecialChar menuseparator
6687 Document Class
6688 \end_layout
6689
6690 \end_inset
6691
6692 , then you need to create a `layout' file for it.
6693  That is the topic of the next section.
6694 \end_layout
6695
6696 \begin_layout Section
6697 Types of layout files
6698 \end_layout
6699
6700 \begin_layout Standard
6701 This section describes the various sorts of \SpecialChar LyX
6702  files that contain layout informati
6703 on.
6704  These files describe various paragraph and character styles, determining
6705  how \SpecialChar LyX
6706  should display them and how they should be translated into \SpecialChar LaTeX
6707 , DocBook,
6708  XHTML, or whatever output format is being used.
6709  
6710 \end_layout
6711
6712 \begin_layout Standard
6713 We shall try to provide a thorough description of the process of writing
6714  layout files here.
6715  However, there are so many different types of documents supported even
6716  by just \SpecialChar LaTeX
6717  that we can't hope to cover every different possibility or problem
6718  you might encounter.
6719  The \SpecialChar LyX
6720  users' list is frequented by people with lots of experience with layout
6721  design who are willing to share what they've learned, so please feel free
6722  to ask questions there.
6723 \end_layout
6724
6725 \begin_layout Standard
6726 As you prepare to write a new layout, it is extremely helpful to look at
6727  the layouts distributed with \SpecialChar LyX
6728 .
6729  If you write a \SpecialChar LyX
6730  layout for a \SpecialChar LaTeX
6731  document class that might also be used by
6732  others, or write a module that might be useful to others, then you should
6733  consider posting your layout to the 
6734 \begin_inset CommandInset href
6735 LatexCommand href
6736 name "layout section on the LyX wiki"
6737 target "https://wiki.lyx.org/Layouts/Layouts"
6738 literal "false"
6739
6740 \end_inset
6741
6742  or even to the \SpecialChar LyX
6743  developers' list, so that it might be included in \SpecialChar LyX
6744  itself.
6745 \begin_inset Foot
6746 status collapsed
6747
6748 \begin_layout Plain Layout
6749 Note that \SpecialChar LyX
6750  is licensed under the General Public License, so any material
6751  that is contributed to \SpecialChar LyX
6752  must be similarly licensed.
6753 \end_layout
6754
6755 \end_inset
6756
6757
6758 \end_layout
6759
6760 \begin_layout Subsection
6761 Layout modules
6762 \begin_inset CommandInset label
6763 LatexCommand label
6764 name "subsec:Layout-modules"
6765
6766 \end_inset
6767
6768
6769 \end_layout
6770
6771 \begin_layout Standard
6772 We have spoken to this point about `layout files'.
6773  But there are different sorts of files that contain layout information.
6774  Layout files, strictly so called, have the 
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 .layout
6780 \end_layout
6781
6782 \end_inset
6783
6784  extension and provide \SpecialChar LyX
6785  with information about document classes.
6786  Since \SpecialChar LyX
6787  1.6 layout information can also be contained in layout 
6788 \emph on
6789 modules
6790 \emph default
6791 , which have the 
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 .module
6797 \end_layout
6798
6799 \end_inset
6800
6801  extension.
6802  Modules are to \SpecialChar LaTeX
6803  packages much as layouts are to \SpecialChar LaTeX
6804  classes, and some modules—such
6805  as the 
6806 \begin_inset Flex Code
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 endnotes
6811 \end_layout
6812
6813 \end_inset
6814
6815  module—specifically provide support for one package.
6816  In a sense, layout modules are similar to included
6817 \begin_inset Foot
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 These can have any extension, but by convention have the 
6822 \begin_inset Flex Code
6823 status collapsed
6824
6825 \begin_layout Plain Layout
6826 .inc
6827 \end_layout
6828
6829 \end_inset
6830
6831  extension.
6832 \end_layout
6833
6834 \end_inset
6835
6836  files—files like 
6837 \begin_inset Flex Code
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 stdsections.inc
6842 \end_layout
6843
6844 \end_inset
6845
6846 —in that modules are not specific to a given document class but may be used
6847  with many different classes.
6848  The difference is that using an included file with 
6849 \begin_inset Flex Code
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 article.cls
6854 \end_layout
6855
6856 \end_inset
6857
6858  requires editing that file.
6859  Modules, by contrast, are selected in the 
6860 \begin_inset Flex Noun
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 Document\SpecialChar menuseparator
6865 Settings
6866 \end_layout
6867
6868 \end_inset
6869
6870  dialog.
6871 \end_layout
6872
6873 \begin_layout Standard
6874 Building modules is the easiest way to get started with layout editing,
6875  since it can be as simple as adding a single new paragraph style or flex
6876  inset.
6877  But modules may, in principle, contain anything a layout file can contain.
6878 \end_layout
6879
6880 \begin_layout Standard
6881 After creating a new module and copying it to the 
6882 \begin_inset Flex Code
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 layouts/
6887 \end_layout
6888
6889 \end_inset
6890
6891  folder, you will need to reconfigure and then restart \SpecialChar LyX
6892  for the module to
6893  appear in the menu.
6894  However, changes you make to the module will be seen immediately, if you
6895  open 
6896 \begin_inset Flex Noun
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 Document\SpecialChar menuseparator
6901 Settings
6902 \end_layout
6903
6904 \end_inset
6905
6906 , highlight something, and then hit 
6907 \begin_inset Quotes eld
6908 \end_inset
6909
6910 OK
6911 \begin_inset Quotes erd
6912 \end_inset
6913
6914 .
6915  
6916 \emph on
6917 It is strongly recommended that you save your work before doing this
6918 \emph default
6919 .
6920  In fact, 
6921 \emph on
6922 it is strongly recommended that you not attempt to edit modules while simultaneo
6923 usly working on actual documents
6924 \emph default
6925 .
6926  Though of course the developers strive to keep \SpecialChar LyX
6927  stable in such situations,
6928  syntax errors and the like in your module file could cause strange behavior.
6929 \end_layout
6930
6931 \begin_layout Subsubsection
6932 Local Layout
6933 \end_layout
6934
6935 \begin_layout Standard
6936 Modules are to \SpecialChar LyX
6937  as packages are to \SpecialChar LaTeX
6938 .
6939  Sometimes, however, you find yourself wanting a specific inset or character
6940  style just for one document and writing a module that will also be available
6941  to other documents makes little sense.
6942  What you need is \SpecialChar LyX
6943 's 
6944 \begin_inset Quotes eld
6945 \end_inset
6946
6947 Local Layout
6948 \begin_inset Quotes erd
6949 \end_inset
6950
6951 .
6952 \end_layout
6953
6954 \begin_layout Standard
6955 You will find it under 
6956 \family sans
6957 Document\SpecialChar menuseparator
6958 Settings\SpecialChar menuseparator
6959 Local Layout
6960 \family default
6961 .
6962  The large text box allows you to enter anything that you might enter in
6963  a layout file or module.
6964  You can think of a document's local layout, in fact, as a module that belongs
6965  just to it.
6966  So, in particular, you must enter a 
6967 \begin_inset Flex Code
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 Format
6972 \end_layout
6973
6974 \end_inset
6975
6976  tag.
6977  Any format is acceptable, but one would normally use the format current
6978  at the time.
6979  (In \SpecialChar LyX
6980  
6981 \begin_inset Info
6982 type  "lyxinfo"
6983 arg   "version"
6984 \end_inset
6985
6986 , the current layout format is 
6987 \begin_inset Info
6988 type  "lyxinfo"
6989 arg   "layoutformat"
6990 \end_inset
6991
6992 .)
6993 \end_layout
6994
6995 \begin_layout Standard
6996 When you have entered something in the 
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 Local Layout
7002 \end_layout
7003
7004 \end_inset
7005
7006  pane, \SpecialChar LyX
7007  will enable the 
7008 \begin_inset Quotes eld
7009 \end_inset
7010
7011 Validate
7012 \begin_inset Quotes erd
7013 \end_inset
7014
7015  button at the bottom.
7016  Clicking this button will cause \SpecialChar LyX
7017  to determine whether what you have entered
7018  is valid layout information for the chosen format.
7019  \SpecialChar LyX
7020  will report the result but, unfortunately, will not tell you what errors
7021  there might have been.
7022  These will be written to the terminal, however, if \SpecialChar LyX
7023  is started from a terminal.
7024  You will not be permitted to save your local layout until you have entered
7025  something valid.
7026 \end_layout
7027
7028 \begin_layout Standard
7029 The warnings at the end of the previous section apply here, too.
7030  Do not play with local layout while you are actually working, especially
7031  if you have not saved your document.
7032  That said, using local layout with a test document can be a very convenient
7033  way to try out layout ideas, or even to start developing a module.
7034 \end_layout
7035
7036 \begin_layout Subsection
7037 Layout for 
7038 \begin_inset Flex Noun
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 .sty
7043 \end_layout
7044
7045 \end_inset
7046
7047  files
7048 \end_layout
7049
7050 \begin_layout Standard
7051 There are two situations you are likely to encounter when wanting to support
7052  a new \SpecialChar LaTeX
7053  document class, involving style (
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 .sty
7059 \end_layout
7060
7061 \end_inset
7062
7063 ) files and \SpecialChar LaTeX2e
7064  class (
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 .cls
7070 \end_layout
7071
7072 \end_inset
7073
7074 ) .
7075  Supporting a style file is usually fairly easy.
7076  Supporting a new class file is a bit harder.
7077  We'll discuss the former in this section and the latter in the next.
7078  Similar remarks apply, of course, if you want to support a new DocBook
7079  DTD.
7080 \end_layout
7081
7082 \begin_layout Standard
7083 The easier case is the one in which your new document class is provided
7084  as a style file that is to be used in conjunction with an already supported
7085  document class.
7086  For the sake of the example, we'll assume that the style file is called
7087  
7088 \begin_inset Flex Noun
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 myclass.sty
7093 \end_layout
7094
7095 \end_inset
7096
7097  and that it is meant to be used with 
7098 \begin_inset Flex Noun
7099 status collapsed
7100
7101 \begin_layout Plain Layout
7102 report.cls
7103 \end_layout
7104
7105 \end_inset
7106
7107 , which is a standard class.
7108  
7109 \end_layout
7110
7111 \begin_layout Standard
7112 Start by copying the existing class's layout file into your local directory:
7113 \begin_inset Foot
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 Of course, which directory is your local directory will vary by platform,
7118  and \SpecialChar LyX
7119  allows you to specify your local directory on startup, too, using
7120  the 
7121 \begin_inset Flex Code
7122 status collapsed
7123
7124 \begin_layout Plain Layout
7125 -userdir
7126 \end_layout
7127
7128 \end_inset
7129
7130  option.
7131 \end_layout
7132
7133 \end_inset
7134
7135
7136 \end_layout
7137
7138 \begin_layout LyX-Code
7139 cp report.layout ~/.lyx/layouts/myclass.layout
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Then edit 
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 myclass.layout
7149 \end_layout
7150
7151 \end_inset
7152
7153  and change the line: 
7154 \end_layout
7155
7156 \begin_layout LyX-Code
7157
7158 \backslash
7159 DeclareLaTeXClass{Report (Standard Class)}
7160 \end_layout
7161
7162 \begin_layout Standard
7163 to read
7164 \end_layout
7165
7166 \begin_layout LyX-Code
7167
7168 \backslash
7169 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7170 \end_layout
7171
7172 \begin_layout Standard
7173 Then add:
7174 \end_layout
7175
7176 \begin_layout LyX-Code
7177 Preamble 
7178 \begin_inset Newline newline
7179 \end_inset
7180
7181     
7182 \backslash
7183 usepackage{myclass}
7184 \begin_inset Newline newline
7185 \end_inset
7186
7187 EndPreamble
7188 \end_layout
7189
7190 \begin_layout Standard
7191 near the top of the file.
7192 \end_layout
7193
7194 \begin_layout Standard
7195 Start \SpecialChar LyX
7196  and select 
7197 \begin_inset Flex Noun
7198 status collapsed
7199
7200 \begin_layout Plain Layout
7201 Tools\SpecialChar menuseparator
7202 Reconfigure
7203 \end_layout
7204
7205 \end_inset
7206
7207 .
7208  Then restart \SpecialChar LyX
7209  and try creating a new document.
7210  You should see "
7211 \begin_inset Flex Noun
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 Report (My Class)
7216 \end_layout
7217
7218 \end_inset
7219
7220 " as a document class option in the 
7221 \begin_inset Flex Noun
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 Document\SpecialChar menuseparator
7226 Settings
7227 \end_layout
7228
7229 \end_inset
7230
7231  dialog.
7232  It is likely that some of the sectioning commands and such in your new
7233  class will work differently from how they worked in the base class—
7234 \begin_inset Flex Code
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 report
7239 \end_layout
7240
7241 \end_inset
7242
7243  in this example—so you can fiddle around with the settings for the different
7244  sections if you wish.
7245  The layout information for sections is contained in 
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 stdsections.inc
7251 \end_layout
7252
7253 \end_inset
7254
7255 , but you do not need to copy and change this file.
7256  Instead, you can simply add your changes to your layout file, after the
7257  line 
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 Input stdclass.inc
7263 \end_layout
7264
7265 \end_inset
7266
7267 , which itself includes 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 stdsections.inc
7273 \end_layout
7274
7275 \end_inset
7276
7277 .
7278  For example, you might add these lines:
7279 \end_layout
7280
7281 \begin_layout LyX-Code
7282 Style Chapter
7283 \end_layout
7284
7285 \begin_layout LyX-Code
7286     Font
7287 \end_layout
7288
7289 \begin_layout LyX-Code
7290         Family Sans
7291 \end_layout
7292
7293 \begin_layout LyX-Code
7294     EndFont
7295 \end_layout
7296
7297 \begin_layout LyX-Code
7298 End
7299 \end_layout
7300
7301 \begin_layout Standard
7302 to change the font for chapter headings to sans-serif.
7303  This will override (or, in this case, add to) the existing declaration
7304  for the Chapter style.
7305  
7306 \end_layout
7307
7308 \begin_layout Standard
7309 Your new package may also provide commands or environments not present in
7310  the base class.
7311  In this case, you will want to add these to the layout file.
7312  See 
7313 \begin_inset CommandInset ref
7314 LatexCommand ref
7315 reference "sec:TextClass"
7316
7317 \end_inset
7318
7319  for information on how to do so.
7320 \end_layout
7321
7322 \begin_layout Standard
7323 If 
7324 \begin_inset Flex Noun
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 myclass.sty
7329 \end_layout
7330
7331 \end_inset
7332
7333  can be used with several different document classes, and even if it cannot,
7334  you might find it easiest just to write a module that you can load with
7335  the base class.
7336  The simplest possible such module would be:
7337 \end_layout
7338
7339 \begin_layout LyX-Code
7340 #
7341 \backslash
7342 DeclareLyXModule{My Class} 
7343 \end_layout
7344
7345 \begin_layout LyX-Code
7346 #DescriptionBegin 
7347 \end_layout
7348
7349 \begin_layout LyX-Code
7350 #Support for myclass.sty.
7351 \end_layout
7352
7353 \begin_layout LyX-Code
7354 #DescriptionEnd
7355 \begin_inset Newline newline
7356 \end_inset
7357
7358
7359 \end_layout
7360
7361 \begin_layout LyX-Code
7362 Format 
7363 \begin_inset Info
7364 type  "lyxinfo"
7365 arg   "layoutformat"
7366 \end_inset
7367
7368
7369 \begin_inset Newline newline
7370 \end_inset
7371
7372
7373 \end_layout
7374
7375 \begin_layout LyX-Code
7376 Preamble
7377 \begin_inset Newline newline
7378 \end_inset
7379
7380     
7381 \backslash
7382 usepackage{myclass}
7383 \begin_inset Newline newline
7384 \end_inset
7385
7386 EndPreamble
7387 \end_layout
7388
7389 \begin_layout Standard
7390 A more complex module might modify the behavior of some existing constructs
7391  or define some new ones.
7392  Again, see 
7393 \begin_inset CommandInset ref
7394 LatexCommand ref
7395 reference "sec:TextClass"
7396
7397 \end_inset
7398
7399  for discussion.
7400 \end_layout
7401
7402 \begin_layout Subsection
7403 Layout for 
7404 \begin_inset Flex Noun
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 .cls
7409 \end_layout
7410
7411 \end_inset
7412
7413  files
7414 \end_layout
7415
7416 \begin_layout Standard
7417 There are two possibilities here.
7418  One is that the class file is itself based upon an existing document class.
7419  For example, many thesis classes are based upon 
7420 \begin_inset Flex Noun
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 book.cls
7425 \end_layout
7426
7427 \end_inset
7428
7429 .
7430  To see whether yours is, look for a line like
7431 \end_layout
7432
7433 \begin_layout LyX-Code
7434
7435 \backslash
7436 LoadClass{book}
7437 \end_layout
7438
7439 \begin_layout Standard
7440 in the file.
7441  If so, then you may proceed largely as in the previous section, though
7442  the 
7443 \begin_inset Flex Code
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 Declare\SpecialChar LaTeX
7448 Class
7449 \end_layout
7450
7451 \end_inset
7452
7453  line will be different.
7454  If your new class is 
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 thesis
7460 \end_layout
7461
7462 \end_inset
7463
7464  and it is based upon 
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 book
7470 \end_layout
7471
7472 \end_inset
7473
7474 , then the line should read:
7475 \begin_inset Foot
7476 status collapsed
7477
7478 \begin_layout Plain Layout
7479 And it will be easiest if you save the file to 
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 thesis.layout
7485 \end_layout
7486
7487 \end_inset
7488
7489 : \SpecialChar LyX
7490  assumes that the document class has the same name as the layout file.
7491  
7492 \end_layout
7493
7494 \end_inset
7495
7496
7497 \end_layout
7498
7499 \begin_layout LyX-Code
7500
7501 \backslash
7502 DeclareLaTeXClass[thesis,book]{thesis}
7503 \end_layout
7504
7505 \begin_layout Standard
7506 If, on the other hand, the new class is not based upon an existing class,
7507  you will probably have to 
7508 \begin_inset Quotes eld
7509 \end_inset
7510
7511 roll your own
7512 \begin_inset Quotes erd
7513 \end_inset
7514
7515  layout.
7516  We strongly suggest copying an existing layout file which uses a similar
7517  \SpecialChar LaTeX
7518  class and then modifying it, if you can do so.
7519  At least use an existing file as a starting point so you can find out what
7520  items you need to worry about.
7521  Again, the specifics are covered below.
7522 \end_layout
7523
7524 \begin_layout Subsection
7525 Creating templates
7526 \begin_inset CommandInset label
7527 LatexCommand label
7528 name "subsec:Creating-Templates"
7529
7530 \end_inset
7531
7532
7533 \end_layout
7534
7535 \begin_layout Standard
7536 Once you have written a layout file for a new document class, you might
7537  want to consider writing a 
7538 \emph on
7539 template
7540 \emph default
7541  for it, too.
7542  A template acts as a kind of tutorial for your layout, showing how it might
7543  be used, though containing dummy content.
7544  You can of course look at the various templates included with \SpecialChar LyX
7545  for ideas.
7546 \end_layout
7547
7548 \begin_layout Standard
7549 Templates are created just like usual documents: using \SpecialChar LyX
7550 .
7551  The only difference is that usual documents contain all possible settings,
7552  including the font scheme and the paper size.
7553  Usually a user doesn't want a template to overwrite his preferred settings
7554  for such parameters.
7555  For that reason, the designer of a template should remove the corresponding
7556  commands like 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561
7562 \backslash
7563 font_roman
7564 \end_layout
7565
7566 \end_inset
7567
7568  or 
7569 \begin_inset Flex Code
7570 status collapsed
7571
7572 \begin_layout Plain Layout
7573
7574 \backslash
7575 papersize
7576 \end_layout
7577
7578 \end_inset
7579
7580  from the template \SpecialChar LyX
7581  file.
7582  This can be done with any simple text-editor, for example 
7583 \begin_inset Flex Code
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 vi
7588 \end_layout
7589
7590 \end_inset
7591
7592  or 
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 notepad
7598 \end_layout
7599
7600 \end_inset
7601
7602 .
7603 \end_layout
7604
7605 \begin_layout Standard
7606 Put the edited template files you create in 
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 UserDir/templates/
7612 \end_layout
7613
7614 \end_inset
7615
7616 , copy the ones you use from the global template directory in 
7617 \begin_inset Flex Code
7618 status collapsed
7619
7620 \begin_layout Plain Layout
7621 LyXDir/templates/
7622 \end_layout
7623
7624 \end_inset
7625
7626  to the same place, and redefine the template path in the 
7627 \begin_inset Flex Noun
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631 Tools\SpecialChar menuseparator
7632 Preferences\SpecialChar menuseparator
7633 Paths
7634 \end_layout
7635
7636 \end_inset
7637
7638  dialog.
7639 \end_layout
7640
7641 \begin_layout Standard
7642 Note, by the way, that there is a template which has a particular meaning:
7643 \begin_inset Newline linebreak
7644 \end_inset
7645
7646
7647 \begin_inset Flex Code
7648 status collapsed
7649
7650 \begin_layout Plain Layout
7651 defaults.lyx
7652 \end_layout
7653
7654 \end_inset
7655
7656 .
7657  This template is loaded every time you create a new document with 
7658 \begin_inset Flex Noun
7659 status collapsed
7660
7661 \begin_layout Plain Layout
7662 File\SpecialChar menuseparator
7663 New
7664 \end_layout
7665
7666 \end_inset
7667
7668  in order to provide useful defaults.
7669  To create this template from inside \SpecialChar LyX
7670 , all you have to do is to open a document
7671  with the correct settings, and use the 
7672 \begin_inset Flex Noun
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 Save as Document Defaults
7677 \end_layout
7678
7679 \end_inset
7680
7681  button.
7682 \end_layout
7683
7684 \begin_layout Subsection
7685 Upgrading old layout files
7686 \end_layout
7687
7688 \begin_layout Standard
7689 The format of layout files changes with each \SpecialChar LyX
7690  release, so old layout files
7691  need to be converted to the new format.
7692  If \SpecialChar LyX
7693  reads a layout file in an older format, it automatically calls the
7694  script 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 layout2layout.py
7700 \end_layout
7701
7702 \end_inset
7703
7704  to convert it to a temporary file in current format.
7705  The original file is left untouched.
7706  If you use the layout file often, then, you may want to convert it permanently,
7707  so that \SpecialChar LyX
7708  does not have to do so itself every time.
7709  To do this, you can call the converter manually:
7710 \end_layout
7711
7712 \begin_layout Enumerate
7713 rename the file 
7714 \begin_inset Flex Code
7715 status collapsed
7716
7717 \begin_layout Plain Layout
7718 myclass.layout
7719 \end_layout
7720
7721 \end_inset
7722
7723  to 
7724 \begin_inset Flex Code
7725 status collapsed
7726
7727 \begin_layout Plain Layout
7728 myclass.old
7729 \end_layout
7730
7731 \end_inset
7732
7733
7734 \end_layout
7735
7736 \begin_layout Enumerate
7737 Call the command
7738 \begin_inset Newline newline
7739 \end_inset
7740
7741
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7747 \end_layout
7748
7749 \end_inset
7750
7751
7752 \begin_inset Newline newline
7753 \end_inset
7754
7755 where 
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 LyXDir
7761 \end_layout
7762
7763 \end_inset
7764
7765  is the name of your \SpecialChar LyX
7766  system directory.
7767 \end_layout
7768
7769 \begin_layout Standard
7770 Note that manual conversion does not affect included files, so these will
7771  have to be converted separately.
7772 \end_layout
7773
7774 \begin_layout Subsection
7775 \begin_inset CommandInset label
7776 LatexCommand label
7777 name "subsec:Cite-Engine-Files"
7778
7779 \end_inset
7780
7781 Cite engine files
7782 \end_layout
7783
7784 \begin_layout Standard
7785 A specific form of layout files are the so-called 
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 *.citeengine
7791 \end_layout
7792
7793 \end_inset
7794
7795  files that are located in the 
7796 \begin_inset Flex Code
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800 citeengines/
7801 \end_layout
7802
7803 \end_inset
7804
7805  sub-directory.
7806  Their purpose is to define the specifics of \SpecialChar LaTeX
7807  packages aimed at bibliography
7808  generation, such as 
7809 \family sans
7810 natbib
7811 \family default
7812 ,
7813 \family sans
7814  jurabib
7815 \family default
7816  or 
7817 \family sans
7818 biblatex
7819 \family default
7820 , but also the way how normal Bib\SpecialChar TeX
7821  citations (without additional packages)
7822  are handled in \SpecialChar LyX
7823  is defined in such a file.
7824  
7825 \end_layout
7826
7827 \begin_layout Standard
7828 More specifically, it is defined which packages \SpecialChar LyX
7829  needs to load, which citation
7830  commands are available, how these are to be displayed in \SpecialChar LyX
7831  (in the workarea,
7832  the dialogs, the context menus) as well as in the XHTML and plain text
7833  output.
7834  Furthermore, the files specify available style variants (author-year, numerical
7835 , etc.) and their specifics.
7836  The cite engine files are also used to generate the options that are available
7837  in 
7838 \family sans
7839 Document\SpecialChar menuseparator
7840 Settings\SpecialChar menuseparator
7841 Bibliography\SpecialChar menuseparator
7842 Style engine
7843 \family default
7844 .
7845 \end_layout
7846
7847 \begin_layout Standard
7848 Even though a cite engine file is essentially a normal layout file that
7849  could theoretically include any layout information, it usually primarily
7850  includes some specific parameters such as 
7851 \begin_inset Flex Code
7852 status collapsed
7853
7854 \begin_layout Plain Layout
7855 MaxCiteNames
7856 \end_layout
7857
7858 \end_inset
7859
7860
7861 \begin_inset Flex Code
7862 status collapsed
7863
7864 \begin_layout Plain Layout
7865 CiteFramework
7866 \end_layout
7867
7868 \end_inset
7869
7870
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 CiteEngine
7876 \end_layout
7877
7878 \end_inset
7879
7880  and 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 CiteFormat
7886 \end_layout
7887
7888 \end_inset
7889
7890  blocks.
7891  The syntax of the latter two is described in 
7892 \begin_inset CommandInset ref
7893 LatexCommand ref
7894 reference "subsec:Citation-engine-description"
7895 plural "false"
7896 caps "false"
7897 noprefix "false"
7898
7899 \end_inset
7900
7901  and 
7902 \begin_inset CommandInset ref
7903 LatexCommand ref
7904 reference "subsec:Citation-format-description"
7905
7906 \end_inset
7907
7908 , as well as in the files themselves.
7909 \end_layout
7910
7911 \begin_layout Section
7912 \begin_inset CommandInset label
7913 LatexCommand label
7914 name "sec:TextClass"
7915
7916 \end_inset
7917
7918 The layout file format
7919 \end_layout
7920
7921 \begin_layout Standard
7922 The following sections describe how layout files are structured and written.
7923  Our advice is to go slowly, save and test often.
7924  It is really not that hard, except that the multitude of options can become
7925  overwhelming, especially if you try to check out too many at once.
7926  It becomes easier if you use existing layouts of \SpecialChar LyX
7927  as examples/reference
7928  or if you modify an existing layout to your needs.
7929 \end_layout
7930
7931 \begin_layout Standard
7932 Note that all the tags used in layout files are case-insensitive.
7933  This means that 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 Style
7939 \end_layout
7940
7941 \end_inset
7942
7943
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 style
7949 \end_layout
7950
7951 \end_inset
7952
7953  and 
7954 \begin_inset Flex Code
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 StYlE
7959 \end_layout
7960
7961 \end_inset
7962
7963  are really the same tag.
7964  The possible arguments are printed in brackets after the tag's name.
7965  The default argument is typeset 
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970
7971 \emph on
7972 emphasized
7973 \end_layout
7974
7975 \end_inset
7976
7977 .
7978  If the argument has a data type like 
7979 \begin_inset Quotes eld
7980 \end_inset
7981
7982 string
7983 \begin_inset Quotes erd
7984 \end_inset
7985
7986  or 
7987 \begin_inset Quotes eld
7988 \end_inset
7989
7990 float
7991 \begin_inset Quotes erd
7992 \end_inset
7993
7994 , the default is shown like this: 
7995 \begin_inset Flex Code
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 float=
8000 \emph on
8001 default
8002 \end_layout
8003
8004 \end_inset
8005
8006 .
8007 \end_layout
8008
8009 \begin_layout Subsection
8010 The document class declaration and classification
8011 \end_layout
8012
8013 \begin_layout Standard
8014 Lines in a layout file which begin with 
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 #
8020 \end_layout
8021
8022 \end_inset
8023
8024  are comments.
8025  There is one exception to this rule.
8026  All 
8027 \begin_inset Flex Code
8028 status collapsed
8029
8030 \begin_layout Plain Layout
8031 *.layout
8032 \end_layout
8033
8034 \end_inset
8035
8036  files should begin with lines like:
8037 \end_layout
8038
8039 \begin_layout LyX-Code
8040
8041 \size small
8042 #% Do not delete the line below; configure depends on this 
8043 \end_layout
8044
8045 \begin_layout LyX-Code
8046
8047 \size small
8048 #  
8049 \backslash
8050 DeclareLaTeXClass{Article (Standard Class)}
8051 \end_layout
8052
8053 \begin_layout LyX-Code
8054
8055 \size small
8056 #  
8057 \backslash
8058 DeclareCategory{Articles}
8059 \end_layout
8060
8061 \begin_layout Standard
8062 The second and third lines are used when you (re)configure \SpecialChar LyX
8063 .
8064  The layout file is read by the \SpecialChar LaTeX
8065  script 
8066 \begin_inset Flex Code
8067 status collapsed
8068
8069 \begin_layout Plain Layout
8070 chkconfig.ltx
8071 \end_layout
8072
8073 \end_inset
8074
8075 , in a special mode where 
8076 \begin_inset Flex Code
8077 status collapsed
8078
8079 \begin_layout Plain Layout
8080 #
8081 \end_layout
8082
8083 \end_inset
8084
8085  is ignored.
8086  The first line is just a \SpecialChar LaTeX
8087  comment, the second one contains the mandatory
8088  declaration of the text class and the third line contains the optional
8089  classification of the class.
8090  If these lines appear in a file named 
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 article.layout
8096 \end_layout
8097
8098 \end_inset
8099
8100 , then they define a text class of name 
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 article
8106 \end_layout
8107
8108 \end_inset
8109
8110  (the name of the layout file) which uses the \SpecialChar LaTeX
8111  document class 
8112 \begin_inset Flex Code
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 article.cls
8117 \end_layout
8118
8119 \end_inset
8120
8121  (the default is to use the same name as the layout).
8122  The string 
8123 \begin_inset Quotes eld
8124 \end_inset
8125
8126 Article (Standard Class)
8127 \begin_inset Quotes erd
8128 \end_inset
8129
8130  that appears above is used as a description of the text class in the 
8131 \begin_inset Flex Noun
8132 status collapsed
8133
8134 \begin_layout Plain Layout
8135 Document\SpecialChar menuseparator
8136 Settings
8137 \end_layout
8138
8139 \end_inset
8140
8141  dialog.
8142  The category (
8143 \begin_inset Quotes eld
8144 \end_inset
8145
8146 Articles
8147 \begin_inset Quotes erd
8148 \end_inset
8149
8150  in the example) is also used in the 
8151 \begin_inset Flex Noun
8152 status collapsed
8153
8154 \begin_layout Plain Layout
8155 Document\SpecialChar menuseparator
8156 Settings
8157 \end_layout
8158
8159 \end_inset
8160
8161  dialog: the text classes are grouped by these categories (which are usually
8162  genres, so typical categories are 
8163 \begin_inset Quotes eld
8164 \end_inset
8165
8166 Articles
8167 \begin_inset Quotes erd
8168 \end_inset
8169
8170
8171 \begin_inset Quotes eld
8172 \end_inset
8173
8174 Books
8175 \begin_inset Quotes erd
8176 \end_inset
8177
8178
8179 \begin_inset Quotes eld
8180 \end_inset
8181
8182 Reports
8183 \begin_inset Quotes erd
8184 \end_inset
8185
8186
8187 \begin_inset Quotes eld
8188 \end_inset
8189
8190 Letters
8191 \begin_inset Quotes erd
8192 \end_inset
8193
8194
8195 \begin_inset Quotes eld
8196 \end_inset
8197
8198 Presentations
8199 \begin_inset Quotes erd
8200 \end_inset
8201
8202
8203 \begin_inset Quotes eld
8204 \end_inset
8205
8206 Curricula Vitae
8207 \begin_inset Quotes erd
8208 \end_inset
8209
8210  etc.).
8211  If no category has been declared, the class will be put in the 
8212 \begin_inset Quotes eld
8213 \end_inset
8214
8215 Uncategorized
8216 \begin_inset Quotes erd
8217 \end_inset
8218
8219  group.
8220 \end_layout
8221
8222 \begin_layout Standard
8223 Let's assume that you wrote your own text class that uses the 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 article.cls
8229 \end_layout
8230
8231 \end_inset
8232
8233  document class, but where you changed the appearance of the section headings.
8234  If you put it in a file 
8235 \begin_inset Flex Code
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 myarticle.layout
8240 \end_layout
8241
8242 \end_inset
8243
8244 , the header of this file should be:
8245 \end_layout
8246
8247 \begin_layout LyX-Code
8248
8249 \size small
8250 #% Do not delete the line below; configure depends on this 
8251 \end_layout
8252
8253 \begin_layout LyX-Code
8254
8255 \size small
8256 #  
8257 \backslash
8258 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8259 \end_layout
8260
8261 \begin_layout LyX-Code
8262
8263 \size small
8264 #  
8265 \backslash
8266 DeclareCategory{Articles}
8267 \end_layout
8268
8269 \begin_layout Standard
8270 This declares a text class 
8271 \begin_inset Flex Code
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 myarticle
8276 \end_layout
8277
8278 \end_inset
8279
8280 , associated with the \SpecialChar LaTeX
8281  document class 
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 article.cls
8287 \end_layout
8288
8289 \end_inset
8290
8291  and described as 
8292 \begin_inset Quotes eld
8293 \end_inset
8294
8295 Article (with My Own Headings)
8296 \begin_inset Quotes erd
8297 \end_inset
8298
8299 .
8300  If your text class depends on several packages, you can declare it as:
8301 \end_layout
8302
8303 \begin_layout LyX-Code
8304
8305 \size small
8306 #% Do not delete the line below; configure depends on this 
8307 \end_layout
8308
8309 \begin_layout LyX-Code
8310
8311 \size small
8312 #  
8313 \backslash
8314 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8315 \end_layout
8316
8317 \begin_layout LyX-Code
8318
8319 \size small
8320 #  
8321 \backslash
8322 DeclareCategory{Articles}
8323 \end_layout
8324
8325 \begin_layout Standard
8326 This indicates that your text class uses the 
8327 \begin_inset Flex Code
8328 status collapsed
8329
8330 \begin_layout Plain Layout
8331 foo.sty
8332 \end_layout
8333
8334 \end_inset
8335
8336  package.
8337  Finally, it is also possible to declare classes for DocBook code.
8338  Typical declarations will look like:
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342
8343 \size small
8344 #% Do not delete the line below; configure depends on this 
8345 \end_layout
8346
8347 \begin_layout LyX-Code
8348
8349 \size small
8350
8351 \backslash
8352 DeclareDocBookClass[article]{SGML (DocBook Article)}
8353 \end_layout
8354
8355 \begin_layout LyX-Code
8356
8357 \size small
8358
8359 \backslash
8360 DeclareCategory{Articles (DocBook)}
8361 \end_layout
8362
8363 \begin_layout Standard
8364 Note that these declarations can also be given an optional parameter declaring
8365  the name of the document class (but not a list).
8366 \end_layout
8367
8368 \begin_layout Standard
8369 So, to be as explicit as possible, the form of the layout declaration is:
8370 \end_layout
8371
8372 \begin_layout LyX-Code
8373
8374 \size small
8375 #  
8376 \backslash
8377 DeclareLaTeXClass[class,package.sty]{layout description}
8378 \end_layout
8379
8380 \begin_layout LyX-Code
8381
8382 \size small
8383 #  
8384 \backslash
8385 DeclareCategory{category}
8386 \end_layout
8387
8388 \begin_layout Standard
8389 The class need only be specified if the name of the \SpecialChar LaTeX
8390  class file and the
8391  name of the layout file are different or if there are packages to load.
8392  If the name of the class file is not specified, then \SpecialChar LyX
8393  will simply assume
8394  that it is the same as the name of the layout file.
8395 \end_layout
8396
8397 \begin_layout Standard
8398 When the text class has been modified to your taste, all you have to do
8399  is to copy it either to 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 LyXDir/layouts/
8405 \end_layout
8406
8407 \end_inset
8408
8409  or to 
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 UserDir/layouts
8415 \end_layout
8416
8417 \end_inset
8418
8419 , run 
8420 \begin_inset Flex Noun
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 Tools\SpecialChar menuseparator
8425 Reconfigure
8426 \end_layout
8427
8428 \end_inset
8429
8430 , exit \SpecialChar LyX
8431  and restart.
8432  Then your new text class should be available along with the others.
8433 \end_layout
8434
8435 \begin_layout Standard
8436 Once the layout file is installed, you can edit it and see your changes
8437  without having to reconfigure or to restart \SpecialChar LyX
8438 .
8439 \begin_inset Foot
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 In versions of \SpecialChar LyX
8444  prior to 1.6, this was not true.
8445  As a result, editing layout files was very time consuming, since you had
8446  constantly to restart \SpecialChar LyX
8447  to see changes.
8448 \end_layout
8449
8450 \end_inset
8451
8452  You can force a reload of the current layout by using the \SpecialChar LyX
8453  function 
8454 \begin_inset Flex Noun
8455 status collapsed
8456
8457 \begin_layout Plain Layout
8458 layout-reload
8459 \end_layout
8460
8461 \end_inset
8462
8463 .
8464  There is no default binding for this function—though, of course, you can
8465  bind it to a key yourself.
8466  But you will normally use this function simply by entering it in the mini-buffe
8467 r.
8468  
8469 \end_layout
8470
8471 \begin_layout Standard
8472
8473 \emph on
8474 Warning
8475 \emph default
8476
8477 \begin_inset Flex Noun
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 layout-reload
8482 \end_layout
8483
8484 \end_inset
8485
8486  is very much an `advanced feature'.
8487  It is 
8488 \emph on
8489 strongly
8490 \emph default
8491  recommended that you save your work before using this function.
8492  In fact, it is 
8493 \emph on
8494 strongly
8495 \emph default
8496  recommended that you not attempt to edit layout information while simultaneousl
8497 y working on a document that you care about.
8498  Use a test document.
8499  Syntax errors and the like in your layout file could cause peculiar behavior.
8500  In particular, such errors could cause \SpecialChar LyX
8501  to regard the current layout as
8502  invalid and to attempt to switch to some other layout.
8503 \begin_inset Foot
8504 status collapsed
8505
8506 \begin_layout Plain Layout
8507 Really bad syntax errors may even caused \SpecialChar LyX
8508  to exit.
8509  This is because certain sorts of errors may make \SpecialChar LyX
8510  unable to read 
8511 \emph on
8512 any
8513 \emph default
8514  layout information.
8515  Please be careful.
8516 \end_layout
8517
8518 \end_inset
8519
8520  The \SpecialChar LyX
8521  team strives to keep \SpecialChar LyX
8522  stable in such situations, but safe is better
8523  than sorry.
8524 \begin_inset Foot
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 While we're giving advice: make regular backups.
8529  And be nice to your mother.
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Subsection
8538 The Module declaration
8539 \end_layout
8540
8541 \begin_layout Standard
8542 A module must begin with a line like the following:
8543 \end_layout
8544
8545 \begin_layout LyX-Code
8546 #
8547 \backslash
8548 DeclareLyXModule[endnotes.sty]{Endnotes}
8549 \change_inserted -712698321 1554395911
8550
8551 \end_layout
8552
8553 \begin_layout LyX-Code
8554
8555 \change_inserted -712698321 1554395924
8556
8557 \size small
8558 #
8559 \backslash
8560 DeclareCategory{Foot- and Endnotes}
8561 \change_deleted -712698321 1554395911
8562
8563 \size default
8564  
8565 \change_unchanged
8566
8567 \end_layout
8568
8569 \begin_layout Standard
8570 The mandatory argument
8571 \change_inserted -712698321 1554395956
8572  of 
8573 \family typewriter
8574
8575 \backslash
8576 DeclareLyXModule
8577 \change_unchanged
8578
8579 \family default
8580 , in curly brackets, is the name of the module, as it should appear in 
8581 \begin_inset Flex Noun
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 Document\SpecialChar menuseparator
8586 Settings\SpecialChar menuseparator
8587 Modules
8588 \end_layout
8589
8590 \end_inset
8591
8592 .
8593  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8594  packages
8595  on which the module depends.
8596  It is also possible to use the form 
8597 \begin_inset Flex Noun
8598 status collapsed
8599
8600 \begin_layout Plain Layout
8601 from->to
8602 \end_layout
8603
8604 \end_inset
8605
8606  as an optional argument, which declares that the module can only be used
8607  when there exists a conversion chain between the formats `
8608 \begin_inset Flex Code
8609 status collapsed
8610
8611 \begin_layout Plain Layout
8612 from
8613 \end_layout
8614
8615 \end_inset
8616
8617 ' and `
8618 \begin_inset Flex Code
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 to
8623 \end_layout
8624
8625 \end_inset
8626
8627 '.
8628
8629 \change_inserted -712698321 1554396133
8630  The 
8631 \family typewriter
8632
8633 \backslash
8634 DeclareCategory
8635 \family default
8636  declaration is not strictly mandatory, but you should add it, since it
8637  is helpful to find the module.
8638  Please have a look at the existing module categories and if appropriate,
8639  use one of those.
8640 \change_unchanged
8641
8642 \end_layout
8643
8644 \begin_layout Standard
8645 The module 
8646 \change_inserted -712698321 1554395988
8647 and category 
8648 \change_unchanged
8649 declaration should then be followed by lines like the following:
8650 \begin_inset Foot
8651 status collapsed
8652
8653 \begin_layout Plain Layout
8654 Preferably in English if the module should be published with \SpecialChar LyX
8655 .
8656  This description will appear in the list of messages to be translated and
8657  will be thus translated with the next interface update.
8658 \end_layout
8659
8660 \end_inset
8661
8662
8663 \end_layout
8664
8665 \begin_layout LyX-Code
8666 #DescriptionBegin 
8667 \end_layout
8668
8669 \begin_layout LyX-Code
8670 #Adds an endnote command, in addition to footnotes.
8671  
8672 \end_layout
8673
8674 \begin_layout LyX-Code
8675 #You will need to add  
8676 \backslash
8677 theendnotes in TeX code where you 
8678 \end_layout
8679
8680 \begin_layout LyX-Code
8681 #want the endnotes to appear.
8682  
8683 \end_layout
8684
8685 \begin_layout LyX-Code
8686 #DescriptionEnd 
8687 \end_layout
8688
8689 \begin_layout LyX-Code
8690 #Requires: somemodule | othermodule
8691 \end_layout
8692
8693 \begin_layout LyX-Code
8694 #Excludes: badmodule
8695 \end_layout
8696
8697 \begin_layout Standard
8698 The description is used in 
8699 \begin_inset Flex Noun
8700 status collapsed
8701
8702 \begin_layout Plain Layout
8703 Document\SpecialChar menuseparator
8704 Settings\SpecialChar menuseparator
8705 Modules
8706 \end_layout
8707
8708 \end_inset
8709
8710  to provide the user with information about what the module does.
8711  The 
8712 \begin_inset Flex Code
8713 status collapsed
8714
8715 \begin_layout Plain Layout
8716 Requires
8717 \end_layout
8718
8719 \end_inset
8720
8721  line is used to identify other modules with which this one must be used;
8722  the 
8723 \begin_inset Flex Code
8724 status collapsed
8725
8726 \begin_layout Plain Layout
8727 Excludes
8728 \end_layout
8729
8730 \end_inset
8731
8732  line is used to identify modules with which this one may not be used.
8733  Both are optional, and, as shown, multiple modules should be separated
8734  with the pipe symbol: |.
8735  Note that the required modules are treated disjunctively: 
8736 \emph on
8737 at least one
8738 \emph default
8739  of the required modules must be used.
8740  Similarly, 
8741 \emph on
8742 no
8743 \emph default
8744  excluded module may be used.
8745  Note that modules are identified here by their filenames without the 
8746 \begin_inset Flex Code
8747 status collapsed
8748
8749 \begin_layout Plain Layout
8750 .module
8751 \end_layout
8752
8753 \end_inset
8754
8755  extension.
8756  So 
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 somemodule
8762 \end_layout
8763
8764 \end_inset
8765
8766  is really 
8767 \begin_inset Flex Code
8768 status collapsed
8769
8770 \begin_layout Plain Layout
8771 somemodule.module
8772 \end_layout
8773
8774 \end_inset
8775
8776 .
8777 \end_layout
8778
8779 \begin_layout Subsection
8780 The CiteEngine file declaration
8781 \end_layout
8782
8783 \begin_layout Standard
8784 A cite engine file must begin with a line like the following:
8785 \end_layout
8786
8787 \begin_layout LyX-Code
8788 #
8789 \backslash
8790 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8791 \end_layout
8792
8793 \begin_layout Standard
8794 The mandatory argument, in curly brackets, is the name of the cite style,
8795  as it should appear in 
8796 \begin_inset Flex Noun
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 Document\SpecialChar menuseparator
8801 Settings\SpecialChar menuseparator
8802 Bibliography
8803 \end_layout
8804
8805 \end_inset
8806
8807 .
8808  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8809  packages
8810  on which the cite engine depends.
8811 \end_layout
8812
8813 \begin_layout Standard
8814 The cite engine declaration should then be followed by lines like the following:
8815 \begin_inset Foot
8816 status collapsed
8817
8818 \begin_layout Plain Layout
8819 Preferably in English if the module should be published with \SpecialChar LyX
8820 .
8821  This description will appear in the list of messages to be translated and
8822  will be thus translated with the next interface update.
8823 \end_layout
8824
8825 \end_inset
8826
8827
8828 \end_layout
8829
8830 \begin_layout LyX-Code
8831 # DescriptionBegin
8832 \end_layout
8833
8834 \begin_layout LyX-Code
8835 #   Biblatex supports many author-year and numerical styles.
8836 \end_layout
8837
8838 \begin_layout LyX-Code
8839 #   It is mainly aimed at the Humanities.
8840  It is highly
8841 \end_layout
8842
8843 \begin_layout LyX-Code
8844 #   customizable, fully localized and provides many features
8845 \end_layout
8846
8847 \begin_layout LyX-Code
8848 #   that are not possible with BibTeX.
8849  The use of 'biber' as
8850 \end_layout
8851
8852 \begin_layout LyX-Code
8853 #   bibliography processor is advised.
8854 \end_layout
8855
8856 \begin_layout LyX-Code
8857 # DescriptionEnd
8858 \end_layout
8859
8860 \begin_layout Standard
8861 The description is used in 
8862 \begin_inset Flex Noun
8863 status collapsed
8864
8865 \begin_layout Plain Layout
8866 Document\SpecialChar menuseparator
8867 Settings\SpecialChar menuseparator
8868 Bibliography
8869 \end_layout
8870
8871 \end_inset
8872
8873  to provide the user with information about the cite engine.
8874 \end_layout
8875
8876 \begin_layout Subsection
8877 Format number
8878 \end_layout
8879
8880 \begin_layout Standard
8881 The first non-comment line of any layout file, included file, or module
8882  
8883 \emph on
8884 must
8885 \emph default
8886  contain the file format number:
8887 \end_layout
8888
8889 \begin_layout Description
8890 \begin_inset Flex Code
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 Format
8895 \end_layout
8896
8897 \end_inset
8898
8899  [
8900 \begin_inset Flex Code
8901 status collapsed
8902
8903 \begin_layout Plain Layout
8904 int
8905 \end_layout
8906
8907 \end_inset
8908
8909 ] The format number of the layout file.
8910 \end_layout
8911
8912 \begin_layout Standard
8913 This tag was introduced with \SpecialChar LyX
8914
8915 \begin_inset space ~
8916 \end_inset
8917
8918 1.4.0.
8919  Layout files from older \SpecialChar LyX
8920  versions do not have an explicit file format and
8921  are considered to have 
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 Format
8927 \begin_inset space ~
8928 \end_inset
8929
8930 1
8931 \end_layout
8932
8933 \end_inset
8934
8935 .
8936  The format for the present version of \SpecialChar LyX
8937  is format 60.
8938  But each version of \SpecialChar LyX
8939  is capable of reading earlier versions' layout files,
8940  just as they are capable of reading files produced by earlier versions
8941  of \SpecialChar LyX
8942 .
8943  There is, however, no provision for converting to earlier formats.
8944 \end_layout
8945
8946 \begin_layout Subsection
8947 \begin_inset CommandInset label
8948 LatexCommand label
8949 name "subsec:General-text-class"
8950
8951 \end_inset
8952
8953 General text class parameters
8954 \end_layout
8955
8956 \begin_layout Standard
8957 These are general parameters that govern the behavior of an entire document
8958  class.
8959  (This does 
8960 \emph on
8961 not
8962 \emph default
8963  mean that they must appear in 
8964 \begin_inset Flex Code
8965 status collapsed
8966
8967 \begin_layout Plain Layout
8968 .layout
8969 \end_layout
8970
8971 \end_inset
8972
8973  files rather than in modules.
8974  A module can contain any layout tag.)
8975 \end_layout
8976
8977 \begin_layout Description
8978
8979 \change_inserted -712698321 1526899478
8980 \begin_inset Flex Code
8981 status collapsed
8982
8983 \begin_layout Plain Layout
8984
8985 \change_inserted -712698321 1526898610
8986 AddToCiteEngine <engine>
8987 \end_layout
8988
8989 \end_inset
8990
8991  Extends the possibilities for displaying citation references.
8992  See 
8993 \begin_inset CommandInset ref
8994 LatexCommand ref
8995 reference "subsec:Citation-engine-description"
8996 plural "false"
8997 caps "false"
8998 noprefix "false"
8999
9000 \end_inset
9001
9002  for details.
9003  Must end with 
9004 \begin_inset Flex Code
9005 status collapsed
9006
9007 \begin_layout Plain Layout
9008
9009 \change_inserted -712698321 1526898823
9010 End
9011 \change_unchanged
9012
9013 \end_layout
9014
9015 \end_inset
9016
9017 .
9018 \end_layout
9019
9020 \begin_layout Description
9021 \begin_inset Flex Code
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 AddToHTMLPreamble
9026 \end_layout
9027
9028 \end_inset
9029
9030  Adds information that will be output in the 
9031 \begin_inset Flex Code
9032 status collapsed
9033
9034 \begin_layout Plain Layout
9035 <head>
9036 \end_layout
9037
9038 \end_inset
9039
9040  block when the document is output to XHTML.
9041  Typically, this would be used to output CSS style information, but it can
9042  be used for anything that can appear in 
9043 \begin_inset Flex Code
9044 status collapsed
9045
9046 \begin_layout Plain Layout
9047 <head>
9048 \end_layout
9049
9050 \end_inset
9051
9052 .
9053  Must end with 
9054 \begin_inset Quotes eld
9055 \end_inset
9056
9057
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 EndPreamble
9063 \end_layout
9064
9065 \end_inset
9066
9067
9068 \begin_inset Quotes erd
9069 \end_inset
9070
9071 .
9072 \end_layout
9073
9074 \begin_layout Description
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 AddToPreamble
9080 \end_layout
9081
9082 \end_inset
9083
9084  Adds information to the document preamble.
9085  Must end with
9086 \begin_inset Newline newline
9087 \end_inset
9088
9089
9090 \begin_inset Quotes eld
9091 \end_inset
9092
9093
9094 \begin_inset Flex Code
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 EndPreamble
9099 \end_layout
9100
9101 \end_inset
9102
9103
9104 \begin_inset Quotes erd
9105 \end_inset
9106
9107 .
9108 \end_layout
9109
9110 \begin_layout Description
9111 \begin_inset Flex Code
9112 status collapsed
9113
9114 \begin_layout Plain Layout
9115 CiteEngine <engine>
9116 \end_layout
9117
9118 \end_inset
9119
9120  Defines the possibilities for displaying citation references.
9121  See 
9122 \begin_inset CommandInset ref
9123 LatexCommand ref
9124 reference "subsec:Citation-engine-description"
9125 plural "false"
9126 caps "false"
9127 noprefix "false"
9128
9129 \end_inset
9130
9131  for details.
9132  Must end with 
9133 \begin_inset Quotes eld
9134 \end_inset
9135
9136
9137 \begin_inset Flex Code
9138 status collapsed
9139
9140 \begin_layout Plain Layout
9141 End
9142 \end_layout
9143
9144 \end_inset
9145
9146
9147 \begin_inset Quotes erd
9148 \end_inset
9149
9150 .
9151  Primarily used in cite engine files (see 
9152 \begin_inset CommandInset ref
9153 LatexCommand ref
9154 reference "subsec:Cite-Engine-Files"
9155 plural "false"
9156 caps "false"
9157 noprefix "false"
9158
9159 \end_inset
9160
9161 ).
9162
9163 \change_inserted -712698321 1526898530
9164  Note that if you specify this in a layout file or module, any cite engine
9165  definition will be overridden.
9166  Also see 
9167 \begin_inset Flex Code
9168 status collapsed
9169
9170 \begin_layout Plain Layout
9171
9172 \change_inserted -712698321 1526898530
9173 AddToCiteEngine
9174 \change_unchanged
9175
9176 \end_layout
9177
9178 \end_inset
9179
9180 .
9181 \change_unchanged
9182
9183 \end_layout
9184
9185 \begin_layout Description
9186 \begin_inset Flex Code
9187 status collapsed
9188
9189 \begin_layout Plain Layout
9190 CiteFormat
9191 \end_layout
9192
9193 \end_inset
9194
9195  Defines formats for use in the display of bibliographic information.
9196  See 
9197 \begin_inset CommandInset ref
9198 LatexCommand ref
9199 reference "subsec:Citation-format-description"
9200
9201 \end_inset
9202
9203  for details.
9204  Must end with 
9205 \begin_inset Quotes eld
9206 \end_inset
9207
9208
9209 \begin_inset Flex Code
9210 status collapsed
9211
9212 \begin_layout Plain Layout
9213 End
9214 \end_layout
9215
9216 \end_inset
9217
9218
9219 \begin_inset Quotes erd
9220 \end_inset
9221
9222 .
9223  Primarily used in cite engine files (see 
9224 \begin_inset CommandInset ref
9225 LatexCommand ref
9226 reference "subsec:Cite-Engine-Files"
9227 plural "false"
9228 caps "false"
9229 noprefix "false"
9230
9231 \end_inset
9232
9233 ).
9234
9235 \change_inserted -712698321 1526898585
9236  A cite format defined in a layout or module will override the cite engine
9237  definition.
9238 \change_unchanged
9239
9240 \end_layout
9241
9242 \begin_layout Description
9243 \begin_inset Flex Code
9244 status collapsed
9245
9246 \begin_layout Plain Layout
9247 CiteFramework
9248 \end_layout
9249
9250 \end_inset
9251
9252  [
9253 \begin_inset Flex Code
9254 status collapsed
9255
9256 \begin_layout Plain Layout
9257
9258 \emph on
9259 bibtex
9260 \end_layout
9261
9262 \end_inset
9263
9264 ,
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 biblatex
9270 \end_layout
9271
9272 \end_inset
9273
9274 ] Determines whether 
9275 \family sans
9276 Biblatex
9277 \family default
9278  or Bib\SpecialChar TeX
9279  is used to generate a Bibliography.
9280  Primarily used in cite engine files (see 
9281 \begin_inset CommandInset ref
9282 LatexCommand ref
9283 reference "subsec:Cite-Engine-Files"
9284 plural "false"
9285 caps "false"
9286 noprefix "false"
9287
9288 \end_inset
9289
9290 ).
9291 \end_layout
9292
9293 \begin_layout Description
9294 \begin_inset Flex Code
9295 status collapsed
9296
9297 \begin_layout Plain Layout
9298 ClassOptions
9299 \end_layout
9300
9301 \end_inset
9302
9303  Describes various global options supported by the document class.
9304  See 
9305 \begin_inset CommandInset ref
9306 LatexCommand ref
9307 reference "subsec:ClassOptions"
9308
9309 \end_inset
9310
9311  for a description.
9312  Must end with 
9313 \begin_inset Quotes eld
9314 \end_inset
9315
9316
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 End
9322 \end_layout
9323
9324 \end_inset
9325
9326
9327 \begin_inset Quotes erd
9328 \end_inset
9329
9330 .
9331 \end_layout
9332
9333 \begin_layout Description
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 Columns
9339 \end_layout
9340
9341 \end_inset
9342
9343  [
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348
9349 \emph on
9350 1
9351 \end_layout
9352
9353 \end_inset
9354
9355 ,
9356 \begin_inset space \thinspace{}
9357 \end_inset
9358
9359
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 2
9365 \end_layout
9366
9367 \end_inset
9368
9369 ] Whether the class should 
9370 \emph on
9371 default
9372 \emph default
9373  to having one or two columns.
9374  Can be changed in the 
9375 \begin_inset Flex Noun
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 Document\SpecialChar menuseparator
9380 Settings
9381 \end_layout
9382
9383 \end_inset
9384
9385  dialog.
9386 \end_layout
9387
9388 \begin_layout Description
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 Counter
9394 \end_layout
9395
9396 \end_inset
9397
9398  [
9399 \begin_inset Flex Code
9400 status collapsed
9401
9402 \begin_layout Plain Layout
9403 string
9404 \end_layout
9405
9406 \end_inset
9407
9408 ] This sequence defines the properties for a counter.
9409  If the counter does not yet exist, it is created; if it does exist, it
9410  is modified.
9411  Must end with 
9412 \begin_inset Quotes eld
9413 \end_inset
9414
9415
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420 End
9421 \end_layout
9422
9423 \end_inset
9424
9425
9426 \begin_inset Quotes erd
9427 \end_inset
9428
9429 .
9430 \begin_inset Newline newline
9431 \end_inset
9432
9433 See 
9434 \begin_inset CommandInset ref
9435 LatexCommand ref
9436 reference "subsec:Counters"
9437
9438 \end_inset
9439
9440  for details on counters.
9441 \end_layout
9442
9443 \begin_layout Description
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448 DefaultFont
9449 \end_layout
9450
9451 \end_inset
9452
9453  Sets the default font used to display the document.
9454  See 
9455 \begin_inset CommandInset ref
9456 LatexCommand ref
9457 reference "subsec:Font-description"
9458
9459 \end_inset
9460
9461  for how to declare fonts.
9462  Must end with 
9463 \begin_inset Quotes eld
9464 \end_inset
9465
9466
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471 EndFont
9472 \end_layout
9473
9474 \end_inset
9475
9476
9477 \begin_inset Quotes erd
9478 \end_inset
9479
9480 .
9481 \end_layout
9482
9483 \begin_layout Description
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 DefaultModule
9489 \end_layout
9490
9491 \end_inset
9492
9493  [
9494 \begin_inset Flex Code
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 <module>
9499 \end_layout
9500
9501 \end_inset
9502
9503 ] Specifies a module to be included by default with this document class.
9504  The module is specified as filename without the 
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 .module
9510 \end_layout
9511
9512 \end_inset
9513
9514  extension.
9515  The user can still remove the module, but it will be active at the outset.
9516  (This applies only when new files are created, or when this class is chosen
9517  for an existing document.)
9518 \end_layout
9519
9520 \begin_layout Description
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 DefaultStyle
9526 \end_layout
9527
9528 \end_inset
9529
9530  [
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535 <style>
9536 \end_layout
9537
9538 \end_inset
9539
9540 ] This is the style that will be assigned to new paragraphs, usually 
9541 \begin_inset Flex Noun
9542 status collapsed
9543
9544 \begin_layout Plain Layout
9545 Standard
9546 \end_layout
9547
9548 \end_inset
9549
9550 .
9551  This will default to the first defined style if not given, but you are
9552  encouraged to use this directive.
9553 \end_layout
9554
9555 \begin_layout Description
9556 \begin_inset Flex Code
9557 status collapsed
9558
9559 \begin_layout Plain Layout
9560 ExcludesModule
9561 \end_layout
9562
9563 \end_inset
9564
9565  [
9566 \begin_inset Flex Code
9567 status collapsed
9568
9569 \begin_layout Plain Layout
9570 <module>
9571 \end_layout
9572
9573 \end_inset
9574
9575 ] This tag indicates that the module (which is specified by filename without
9576  the 
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 .module
9582 \end_layout
9583
9584 \end_inset
9585
9586  extension) cannot be used with this document class.
9587  This might be used in a journal-specific layout file to prevent, say, the
9588  use of the 
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 theorems-sec
9594 \end_layout
9595
9596 \end_inset
9597
9598  module that numbers theorems by section.
9599  This tag may 
9600 \emph on
9601 not
9602 \emph default
9603  be used in a module.
9604  Modules have their own way of excluding other modules (see 
9605 \begin_inset CommandInset ref
9606 LatexCommand ref
9607 reference "subsec:Layout-modules"
9608
9609 \end_inset
9610
9611 ).
9612 \end_layout
9613
9614 \begin_layout Description
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 Float
9620 \end_layout
9621
9622 \end_inset
9623
9624  Defines a new float.
9625  See 
9626 \begin_inset CommandInset ref
9627 LatexCommand ref
9628 reference "subsec:Floats"
9629
9630 \end_inset
9631
9632  for details.
9633  Must end with 
9634 \begin_inset Quotes eld
9635 \end_inset
9636
9637
9638 \begin_inset Flex Code
9639 status collapsed
9640
9641 \begin_layout Plain Layout
9642 End
9643 \end_layout
9644
9645 \end_inset
9646
9647
9648 \begin_inset Quotes erd
9649 \end_inset
9650
9651 .
9652 \end_layout
9653
9654 \begin_layout Description
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 HTMLPreamble
9660 \end_layout
9661
9662 \end_inset
9663
9664  Sets the information that will be output in the 
9665 \begin_inset Flex Code
9666 status collapsed
9667
9668 \begin_layout Plain Layout
9669 <head>
9670 \end_layout
9671
9672 \end_inset
9673
9674  block when this document class is output to XHTML.
9675  Note that this will completely override any prior 
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 HTMLPreamble
9681 \end_layout
9682
9683 \end_inset
9684
9685  or 
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 AddToHTMLPreamble
9691 \end_layout
9692
9693 \end_inset
9694
9695  declarations.
9696  (Use
9697 \begin_inset Newline newline
9698 \end_inset
9699
9700
9701 \begin_inset Flex Code
9702 status collapsed
9703
9704 \begin_layout Plain Layout
9705 AddToHTMLPreamble
9706 \end_layout
9707
9708 \end_inset
9709
9710  if you just want to add material to the preamble.) Must end with 
9711 \begin_inset Quotes eld
9712 \end_inset
9713
9714
9715 \begin_inset Flex Code
9716 status collapsed
9717
9718 \begin_layout Plain Layout
9719 EndPreamble
9720 \end_layout
9721
9722 \end_inset
9723
9724
9725 \begin_inset Quotes erd
9726 \end_inset
9727
9728 .
9729 \end_layout
9730
9731 \begin_layout Description
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 HTMLTOCSection
9737 \end_layout
9738
9739 \end_inset
9740
9741  [
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 <style>
9747 \end_layout
9748
9749 \end_inset
9750
9751 ] The style to use for the table of contents, bibliography, and so forth,
9752  when the document is output to HTML.
9753  For articles, this should normally be 
9754 \begin_inset Flex Code
9755 status collapsed
9756
9757 \begin_layout Plain Layout
9758 Section
9759 \end_layout
9760
9761 \end_inset
9762
9763 ; for books 
9764 \begin_inset Flex Code
9765 status collapsed
9766
9767 \begin_layout Plain Layout
9768 Chapter
9769 \end_layout
9770
9771 \end_inset
9772
9773 .
9774  If it is not given, then \SpecialChar LyX
9775  will attempt to figure out which layout to use.
9776 \end_layout
9777
9778 \begin_layout Description
9779 \begin_inset Flex Code
9780 status collapsed
9781
9782 \begin_layout Plain Layout
9783 IfCounter
9784 \end_layout
9785
9786 \end_inset
9787
9788  [
9789 \begin_inset Flex Code
9790 status collapsed
9791
9792 \begin_layout Plain Layout
9793 <counter>
9794 \end_layout
9795
9796 \end_inset
9797
9798 ] Modifies the properties of the given counter.
9799  If the counter does not exist, the statement is ignored.
9800  Must end with 
9801 \begin_inset Quotes eld
9802 \end_inset
9803
9804
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809 End
9810 \end_layout
9811
9812 \end_inset
9813
9814
9815 \begin_inset Quotes erd
9816 \end_inset
9817
9818 .
9819 \begin_inset Newline newline
9820 \end_inset
9821
9822 See 
9823 \begin_inset CommandInset ref
9824 LatexCommand ref
9825 reference "subsec:Counters"
9826
9827 \end_inset
9828
9829  for details on counters.
9830 \end_layout
9831
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 Input
9838 \end_layout
9839
9840 \end_inset
9841
9842  [
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 <filename>
9848 \end_layout
9849
9850 \end_inset
9851
9852 ] This allows you to include another layout definition file within yours
9853  to avoid duplicating commands.
9854  Common examples are the standard layout files, for example, 
9855 \begin_inset Flex Code
9856 status collapsed
9857
9858 \begin_layout Plain Layout
9859 stdclass.inc
9860 \end_layout
9861
9862 \end_inset
9863
9864 , which contains most of the basic layouts.
9865 \end_layout
9866
9867 \begin_layout Description
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872 InsetLayout
9873 \end_layout
9874
9875 \end_inset
9876
9877  [
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 <type>
9883 \end_layout
9884
9885 \end_inset
9886
9887 ] This section (re-)defines the layout of an inset.
9888  It can be applied to an existing inset or to a new, user-defined inset,
9889  e.g., a new character style.
9890  Must end with 
9891 \begin_inset Quotes eld
9892 \end_inset
9893
9894
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 End
9900 \end_layout
9901
9902 \end_inset
9903
9904
9905 \begin_inset Quotes erd
9906 \end_inset
9907
9908 .
9909 \begin_inset Newline newline
9910 \end_inset
9911
9912 See 
9913 \begin_inset CommandInset ref
9914 LatexCommand ref
9915 reference "subsec:Flex-insets-and"
9916
9917 \end_inset
9918
9919  for more information.
9920  
9921 \end_layout
9922
9923 \begin_layout Description
9924 \begin_inset Flex Code
9925 status collapsed
9926
9927 \begin_layout Plain Layout
9928 LeftMargin
9929 \end_layout
9930
9931 \end_inset
9932
9933  [
9934 \begin_inset Flex Code
9935 status collapsed
9936
9937 \begin_layout Plain Layout
9938 string
9939 \end_layout
9940
9941 \end_inset
9942
9943 ] A string that indicates the width of the left margin on the screen, for
9944  example, 
9945 \begin_inset Quotes eld
9946 \end_inset
9947
9948
9949 \begin_inset Flex Code
9950 status collapsed
9951
9952 \begin_layout Plain Layout
9953 MMMMM
9954 \end_layout
9955
9956 \end_inset
9957
9958
9959 \begin_inset Quotes erd
9960 \end_inset
9961
9962 .
9963  (Note that this is not a `length', like 
9964 \begin_inset Quotes eld
9965 \end_inset
9966
9967 2ex
9968 \begin_inset Quotes erd
9969 \end_inset
9970
9971 .)
9972 \end_layout
9973
9974 \begin_layout Description
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 MaxCiteNames
9980 \end_layout
9981
9982 \end_inset
9983
9984  [
9985 \begin_inset Flex Code
9986 status collapsed
9987
9988 \begin_layout Plain Layout
9989 integer
9990 \end_layout
9991
9992 \end_inset
9993
9994 ] An integer that determines the maximal number of names displayed in an
9995  author-year citation before the citation switches to 
9996 \begin_inset Quotes eld
9997 \end_inset
9998
9999 FirstAuthor et al.
10000 \begin_inset Quotes erd
10001 \end_inset
10002
10003 .
10004  Primarily used in cite engine files (see 
10005 \begin_inset CommandInset ref
10006 LatexCommand ref
10007 reference "subsec:Cite-Engine-Files"
10008 plural "false"
10009 caps "false"
10010 noprefix "false"
10011
10012 \end_inset
10013
10014 ).
10015 \end_layout
10016
10017 \begin_layout Description
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 ModifyStyle
10023 \end_layout
10024
10025 \end_inset
10026
10027  [
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 <style>
10033 \end_layout
10034
10035 \end_inset
10036
10037 ] Modifies the properties of the given paragraph style.
10038  If the style does not exist, this section is ignored.
10039  Must end with 
10040 \begin_inset Quotes eld
10041 \end_inset
10042
10043
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 End
10049 \end_layout
10050
10051 \end_inset
10052
10053
10054 \begin_inset Quotes erd
10055 \end_inset
10056
10057 .
10058 \end_layout
10059
10060 \begin_layout Description
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 NoCounter
10066 \end_layout
10067
10068 \end_inset
10069
10070  [
10071 \begin_inset Flex Code
10072 status collapsed
10073
10074 \begin_layout Plain Layout
10075 <counter>
10076 \end_layout
10077
10078 \end_inset
10079
10080 ] Deletes an existing counter, usually one defined in an included file.
10081 \end_layout
10082
10083 \begin_layout Description
10084 \begin_inset Flex Code
10085 status collapsed
10086
10087 \begin_layout Plain Layout
10088 NoFloat
10089 \end_layout
10090
10091 \end_inset
10092
10093  [
10094 \begin_inset Flex Code
10095 status collapsed
10096
10097 \begin_layout Plain Layout
10098 <float>
10099 \end_layout
10100
10101 \end_inset
10102
10103 ] Deletes an existing float.
10104  This is particularly useful when you want to suppress a float that has
10105  been defined in an input file.
10106 \end_layout
10107
10108 \begin_layout Description
10109 \begin_inset Flex Code
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113 NoStyle
10114 \end_layout
10115
10116 \end_inset
10117
10118  [
10119 \begin_inset Flex Code
10120 status collapsed
10121
10122 \begin_layout Plain Layout
10123 <style>
10124 \end_layout
10125
10126 \end_inset
10127
10128 ] Deletes an existing style.
10129 \end_layout
10130
10131 \begin_layout Description
10132 \begin_inset Flex Code
10133 status collapsed
10134
10135 \begin_layout Plain Layout
10136 OutlinerName
10137 \end_layout
10138
10139 \end_inset
10140
10141  [
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 <type>
10147 \end_layout
10148
10149 \end_inset
10150
10151 ] [
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 <string>
10157 \end_layout
10158
10159 \end_inset
10160
10161 ] Define a new table of contents with type 
10162 \begin_inset Flex Code
10163 status collapsed
10164
10165 \begin_layout Plain Layout
10166 <type>
10167 \end_layout
10168
10169 \end_inset
10170
10171  and name 
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 <string>
10177 \end_layout
10178
10179 \end_inset
10180
10181 .
10182  See also the AddToToc commands.
10183 \end_layout
10184
10185 \begin_layout Description
10186 \begin_inset Flex Code
10187 status collapsed
10188
10189 \begin_layout Plain Layout
10190 OutputFormat
10191 \end_layout
10192
10193 \end_inset
10194
10195  [
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 <format>
10201 \end_layout
10202
10203 \end_inset
10204
10205 ] The file format (as defined in the \SpecialChar LyX
10206  preferences) produced by this document
10207  class.
10208  It is mainly useful when 
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 OutputType
10214 \end_layout
10215
10216 \end_inset
10217
10218  is 
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 literate
10224 \end_layout
10225
10226 \end_inset
10227
10228  and one wants to define a new type of literate document.
10229  The format is reset to 
10230 \begin_inset Quotes eld
10231 \end_inset
10232
10233
10234 \begin_inset Flex Code
10235 status collapsed
10236
10237 \begin_layout Plain Layout
10238 docbook
10239 \end_layout
10240
10241 \end_inset
10242
10243
10244 \begin_inset Quotes erd
10245 \end_inset
10246
10247  or 
10248 \begin_inset Quotes eld
10249 \end_inset
10250
10251
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 latex
10257 \end_layout
10258
10259 \end_inset
10260
10261
10262 \begin_inset Quotes erd
10263 \end_inset
10264
10265  when the corresponding 
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 OutputType
10271 \end_layout
10272
10273 \end_inset
10274
10275  parameter is encountered.
10276 \end_layout
10277
10278 \begin_layout Description
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 OutputType
10284 \end_layout
10285
10286 \end_inset
10287
10288  [
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293
10294 \emph on
10295 lat
10296 \emph default
10297 ex
10298 \end_layout
10299
10300 \end_inset
10301
10302
10303 \begin_inset Flex Code
10304 status collapsed
10305
10306 \begin_layout Plain Layout
10307 docbook
10308 \end_layout
10309
10310 \end_inset
10311
10312
10313 \begin_inset Flex Code
10314 status collapsed
10315
10316 \begin_layout Plain Layout
10317 literate
10318 \end_layout
10319
10320 \end_inset
10321
10322 ] Specifies what sort of output documents using this class will produce.
10323 \end_layout
10324
10325 \begin_layout Description
10326 \begin_inset Flex Code
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 PackageOptions
10331 \end_layout
10332
10333 \end_inset
10334
10335  [
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 string
10341 \end_layout
10342
10343 \end_inset
10344
10345  
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 string
10351 \end_layout
10352
10353 \end_inset
10354
10355 ] Specifies options, given in the second string, for the package named by
10356  the first string.
10357  For example, 
10358 \begin_inset Quotes eld
10359 \end_inset
10360
10361
10362 \begin_inset Flex Code
10363 status collapsed
10364
10365 \begin_layout Plain Layout
10366 PackageOptions natbib square
10367 \end_layout
10368
10369 \end_inset
10370
10371
10372 \begin_inset Quotes erd
10373 \end_inset
10374
10375  will cause 
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 natbib
10381 \end_layout
10382
10383 \end_inset
10384
10385  to be loaded with the 
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390 square
10391 \end_layout
10392
10393 \end_inset
10394
10395  option.
10396  (For \SpecialChar TeX
10397 perts, this causes \SpecialChar LyX
10398  to output: 
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403
10404 \backslash
10405 PassOptionsToPackage{natbib}{square}
10406 \end_layout
10407
10408 \end_inset
10409
10410  prior to loading 
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 natbib
10416 \end_layout
10417
10418 \end_inset
10419
10420 .)
10421 \end_layout
10422
10423 \begin_layout Description
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 PageStyle
10429 \end_layout
10430
10431 \end_inset
10432
10433  [
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438
10439 \emph on
10440 plain
10441 \end_layout
10442
10443 \end_inset
10444
10445
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 empty
10451 \end_layout
10452
10453 \end_inset
10454
10455
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 headings
10461 \end_layout
10462
10463 \end_inset
10464
10465 ] The default pagestyle.
10466  Can be changed in the 
10467 \begin_inset Flex Noun
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 Document\SpecialChar menuseparator
10472 Settings
10473 \end_layout
10474
10475 \end_inset
10476
10477  dialog.
10478 \end_layout
10479
10480 \begin_layout Description
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 Preamble
10486 \end_layout
10487
10488 \end_inset
10489
10490  Sets the preamble for the \SpecialChar LaTeX
10491  document.
10492  Note that this will completely override any prior 
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 Preamble
10498 \end_layout
10499
10500 \end_inset
10501
10502  or 
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 AddToPreamble
10508 \end_layout
10509
10510 \end_inset
10511
10512  declarations.
10513  (Use 
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 AddToPreamble
10519 \end_layout
10520
10521 \end_inset
10522
10523  if you just want to add material to the preamble.) Must end with 
10524 \begin_inset Quotes eld
10525 \end_inset
10526
10527
10528 \begin_inset Flex Code
10529 status collapsed
10530
10531 \begin_layout Plain Layout
10532 EndPreamble
10533 \end_layout
10534
10535 \end_inset
10536
10537
10538 \begin_inset Quotes erd
10539 \end_inset
10540
10541 .
10542 \end_layout
10543
10544 \begin_layout Description
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 Provides
10550 \end_layout
10551
10552 \end_inset
10553
10554  [
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 string
10560 \end_layout
10561
10562 \end_inset
10563
10564 ] [
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569
10570 \emph on
10571 0
10572 \end_layout
10573
10574 \end_inset
10575
10576 ,
10577 \begin_inset space \thinspace{}
10578 \end_inset
10579
10580
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 1
10586 \end_layout
10587
10588 \end_inset
10589
10590 ] Whether the class already provides the feature 
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 string
10596 \end_layout
10597
10598 \end_inset
10599
10600 .
10601  A feature is in general the name of a package (e.
10602 \begin_inset space \thinspace{}
10603 \end_inset
10604
10605 g.
10606 \begin_inset space \space{}
10607 \end_inset
10608
10609
10610 \begin_inset Flex Code
10611 status collapsed
10612
10613 \begin_layout Plain Layout
10614 amsmath
10615 \end_layout
10616
10617 \end_inset
10618
10619  or 
10620 \begin_inset Flex Code
10621 status collapsed
10622
10623 \begin_layout Plain Layout
10624 makeidx
10625 \end_layout
10626
10627 \end_inset
10628
10629 ) or a macro (e.
10630 \begin_inset space \thinspace{}
10631 \end_inset
10632
10633 g.
10634 \begin_inset space \space{}
10635 \end_inset
10636
10637
10638 \begin_inset Flex Code
10639 status collapsed
10640
10641 \begin_layout Plain Layout
10642 url
10643 \end_layout
10644
10645 \end_inset
10646
10647  or 
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 boldsymbol
10653 \end_layout
10654
10655 \end_inset
10656
10657 ).
10658  See 
10659 \begin_inset CommandInset ref
10660 LatexCommand ref
10661 reference "chap:List-of-functions"
10662
10663 \end_inset
10664
10665  for the list of features.
10666 \end_layout
10667
10668 \begin_layout Description
10669 \begin_inset Flex Code
10670 status collapsed
10671
10672 \begin_layout Plain Layout
10673 ProvidesModule
10674 \end_layout
10675
10676 \end_inset
10677
10678  [
10679 \begin_inset Flex Code
10680 status collapsed
10681
10682 \begin_layout Plain Layout
10683 string
10684 \end_layout
10685
10686 \end_inset
10687
10688 ] Indicates that this layout provides the functionality of the module mentioned,
10689  which should be specified by the filename without the 
10690 \begin_inset Flex Code
10691 status collapsed
10692
10693 \begin_layout Plain Layout
10694 .module
10695 \end_layout
10696
10697 \end_inset
10698
10699  extension.
10700  This will typically be used if the layout includes the module directly,
10701  rather than using the 
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 DefaultModule
10707 \end_layout
10708
10709 \end_inset
10710
10711  tag to indicate that it ought to be used.
10712  It could also be used in a module that provided an alternate implementation
10713  of the same functionality.
10714 \end_layout
10715
10716 \begin_layout Description
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 ProvideStyle
10722 \end_layout
10723
10724 \end_inset
10725
10726  [
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 <style>
10732 \end_layout
10733
10734 \end_inset
10735
10736 ] Creates a new paragraph style if it does not already exist.
10737  If the style does exist, this section is ignored.
10738  Must end with 
10739 \begin_inset Quotes eld
10740 \end_inset
10741
10742
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 End
10748 \end_layout
10749
10750 \end_inset
10751
10752
10753 \begin_inset Quotes erd
10754 \end_inset
10755
10756 .
10757 \end_layout
10758
10759 \begin_layout Description
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 Requires
10765 \end_layout
10766
10767 \end_inset
10768
10769  [
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 string
10775 \end_layout
10776
10777 \end_inset
10778
10779 ] Whether the class requires the feature 
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 string
10785 \end_layout
10786
10787 \end_inset
10788
10789 .
10790  Multiple features must be separated by commas.
10791  Note that you can only request supported features.
10792  (See 
10793 \begin_inset CommandInset ref
10794 LatexCommand ref
10795 reference "chap:List-of-functions"
10796
10797 \end_inset
10798
10799  for the list of features.).
10800  If you require a package with specific options, you can additionally use
10801  
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806 PackageOptions
10807 \end_layout
10808
10809 \end_inset
10810
10811 .
10812 \end_layout
10813
10814 \begin_layout Description
10815 \begin_inset Flex Code
10816 status collapsed
10817
10818 \begin_layout Plain Layout
10819 RightMargin
10820 \end_layout
10821
10822 \end_inset
10823
10824  [
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 string
10830 \end_layout
10831
10832 \end_inset
10833
10834 ] A string that indicates the width of the right margin on the screen, for
10835  example, 
10836 \begin_inset Quotes eld
10837 \end_inset
10838
10839
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 MMMMM
10845 \end_layout
10846
10847 \end_inset
10848
10849
10850 \begin_inset Quotes erd
10851 \end_inset
10852
10853 .
10854 \end_layout
10855
10856 \begin_layout Description
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 SecNumDepth
10862 \end_layout
10863
10864 \end_inset
10865
10866  [
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 int=3
10872 \end_layout
10873
10874 \end_inset
10875
10876 ] Sets which divisions get numbered.
10877  Corresponds to the
10878 \begin_inset Newline newline
10879 \end_inset
10880
10881
10882 \begin_inset Flex Code
10883 status collapsed
10884
10885 \begin_layout Plain Layout
10886 secnumdepth
10887 \end_layout
10888
10889 \end_inset
10890
10891  counter in \SpecialChar LaTeX
10892 .
10893 \end_layout
10894
10895 \begin_layout Description
10896 \begin_inset Flex Code
10897 status collapsed
10898
10899 \begin_layout Plain Layout
10900 Sides
10901 \end_layout
10902
10903 \end_inset
10904
10905  [
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910
10911 \emph on
10912 1
10913 \end_layout
10914
10915 \end_inset
10916
10917 ,
10918 \begin_inset space \thinspace{}
10919 \end_inset
10920
10921
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 2
10927 \end_layout
10928
10929 \end_inset
10930
10931 ] Whether the class-default should be printing on one or both sides of the
10932  paper.
10933  Can be changed in the 
10934 \begin_inset Flex Noun
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 Document\SpecialChar menuseparator
10939 Settings
10940 \end_layout
10941
10942 \end_inset
10943
10944  dialog.
10945 \end_layout
10946
10947 \begin_layout Description
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 Style
10953 \end_layout
10954
10955 \end_inset
10956
10957  [
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962 <name>
10963 \end_layout
10964
10965 \end_inset
10966
10967 ] This sequence defines a paragraph style.
10968  If the style does not yet exist, it is created; if it does exist, its parameter
10969 s are modified.
10970  Must end with 
10971 \begin_inset Quotes eld
10972 \end_inset
10973
10974
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 End
10980 \end_layout
10981
10982 \end_inset
10983
10984
10985 \begin_inset Quotes erd
10986 \end_inset
10987
10988 .
10989 \begin_inset Newline newline
10990 \end_inset
10991
10992 See 
10993 \begin_inset CommandInset ref
10994 LatexCommand ref
10995 reference "subsec:Paragraph-Styles"
10996
10997 \end_inset
10998
10999  for details on paragraph styles.
11000 \change_inserted -712698321 1553617804
11001
11002 \end_layout
11003
11004 \begin_layout Description
11005
11006 \change_inserted -712698321 1553617862
11007 \begin_inset Flex Code
11008 status collapsed
11009
11010 \begin_layout Plain Layout
11011
11012 \change_inserted -712698321 1553617809
11013 TableStyle
11014 \end_layout
11015
11016 \end_inset
11017
11018  [
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023
11024 \change_inserted -712698321 1553617805
11025 <name>
11026 \end_layout
11027
11028 \end_inset
11029
11030 ] defines the default table style that is used when inserting a table.
11031  The following styles are available:
11032 \end_layout
11033
11034 \begin_deeper
11035 \begin_layout Itemize
11036
11037 \change_inserted -712698321 1554308039
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042
11043 \change_inserted -712698321 1554307928
11044 Formal_with_Footline
11045 \change_unchanged
11046
11047 \end_layout
11048
11049 \end_inset
11050
11051 : formal (
11052 \begin_inset Quotes eld
11053 \end_inset
11054
11055 booktabs
11056 \begin_inset Quotes erd
11057 \end_inset
11058
11059 ) style with horizontal lines only, using a bold top and bottom line, the
11060  first and last row are additionally separated from the table body with
11061  a thin middle line.
11062 \end_layout
11063
11064 \begin_layout Itemize
11065
11066 \change_inserted -712698321 1554308087
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071
11072 \change_inserted -712698321 1554308042
11073 Formal_without_Footline
11074 \end_layout
11075
11076 \end_inset
11077
11078 : same as the above, but the last row is not separated with a middle line
11079  from the body.
11080 \end_layout
11081
11082 \begin_layout Itemize
11083
11084 \change_inserted -712698321 1553618031
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089
11090 \change_inserted -712698321 1553618006
11091 Simple_Grid
11092 \end_layout
11093
11094 \end_inset
11095
11096 : Simple table lines.
11097 \end_layout
11098
11099 \begin_layout Itemize
11100
11101 \change_inserted -712698321 1553618309
11102 \begin_inset Flex Code
11103 status collapsed
11104
11105 \begin_layout Plain Layout
11106
11107 \change_inserted -712698321 1553618031
11108 Grid_with_Head
11109 \end_layout
11110
11111 \end_inset
11112
11113 : Like 
11114 \begin_inset Flex Code
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118
11119 \change_inserted -712698321 1553618043
11120 Simple_Grid
11121 \end_layout
11122
11123 \end_inset
11124
11125 , but with the header column offset with a second horizontal line.
11126  This is also the default style of \SpecialChar LyX
11127 .
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \change_inserted -712698321 1553618280
11133 \begin_inset Flex Code
11134 status collapsed
11135
11136 \begin_layout Plain Layout
11137
11138 \change_inserted -712698321 1553618261
11139 No_Borders
11140 \end_layout
11141
11142 \end_inset
11143
11144 : Table without lines.
11145 \change_unchanged
11146
11147 \end_layout
11148
11149 \end_deeper
11150 \begin_layout Description
11151 \begin_inset Flex Code
11152 status collapsed
11153
11154 \begin_layout Plain Layout
11155 TitleLatexName
11156 \end_layout
11157
11158 \end_inset
11159
11160  [
11161 \begin_inset Flex Code
11162 status collapsed
11163
11164 \begin_layout Plain Layout
11165 string="maketitle"
11166 \end_layout
11167
11168 \end_inset
11169
11170 ] The name of the command or environment to be used with 
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 TitleLatexType
11176 \end_layout
11177
11178 \end_inset
11179
11180 .
11181 \end_layout
11182
11183 \begin_layout Description
11184 \begin_inset Flex Code
11185 status collapsed
11186
11187 \begin_layout Plain Layout
11188 TitleLatexType
11189 \end_layout
11190
11191 \end_inset
11192
11193  [
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198
11199 \emph on
11200 CommandAfter
11201 \end_layout
11202
11203 \end_inset
11204
11205
11206 \begin_inset Flex Code
11207 status collapsed
11208
11209 \begin_layout Plain Layout
11210 Environment
11211 \end_layout
11212
11213 \end_inset
11214
11215 ] Indicates what kind of markup is used to define the title of a document.
11216  
11217 \begin_inset Flex Code
11218 status collapsed
11219
11220 \begin_layout Plain Layout
11221 CommandAfter
11222 \end_layout
11223
11224 \end_inset
11225
11226  means that the macro with name 
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231 TitleLatexName
11232 \end_layout
11233
11234 \end_inset
11235
11236  will be inserted after the last layout which has 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240
11241 \begin_inset Flex Code
11242 status collapsed
11243
11244 \begin_layout Plain Layout
11245 InTitle
11246 \begin_inset space ~
11247 \end_inset
11248
11249 1
11250 \end_layout
11251
11252 \end_inset
11253
11254
11255 \begin_inset Quotes erd
11256 \end_inset
11257
11258 .
11259  
11260 \begin_inset Flex Code
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264 Environment
11265 \end_layout
11266
11267 \end_inset
11268
11269  corresponds to the case where all layouts which have 
11270 \begin_inset Quotes eld
11271 \end_inset
11272
11273
11274 \begin_inset Flex Code
11275 status collapsed
11276
11277 \begin_layout Plain Layout
11278 InTitle
11279 \begin_inset space ~
11280 \end_inset
11281
11282 1
11283 \end_layout
11284
11285 \end_inset
11286
11287
11288 \begin_inset Quotes erd
11289 \end_inset
11290
11291  should be enclosed into the 
11292 \begin_inset Flex Code
11293 status collapsed
11294
11295 \begin_layout Plain Layout
11296 TitleLatexName
11297 \end_layout
11298
11299 \end_inset
11300
11301  environment.
11302 \end_layout
11303
11304 \begin_layout Description
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309 TocDepth
11310 \end_layout
11311
11312 \end_inset
11313
11314  [
11315 \begin_inset Flex Code
11316 status collapsed
11317
11318 \begin_layout Plain Layout
11319 int=3
11320 \end_layout
11321
11322 \end_inset
11323
11324 ] Sets which divisions are included in the table of contents.
11325  Corresponds to the 
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 tocdepth
11331 \end_layout
11332
11333 \end_inset
11334
11335  counter in \SpecialChar LaTeX
11336 .
11337 \end_layout
11338
11339 \begin_layout Subsection
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 ClassOptions
11345 \end_layout
11346
11347 \end_inset
11348
11349  section
11350 \begin_inset CommandInset label
11351 LatexCommand label
11352 name "subsec:ClassOptions"
11353
11354 \end_inset
11355
11356
11357 \end_layout
11358
11359 \begin_layout Standard
11360 The 
11361 \begin_inset Flex Code
11362 status collapsed
11363
11364 \begin_layout Plain Layout
11365 ClassOptions
11366 \end_layout
11367
11368 \end_inset
11369
11370  section can contain the following entries:
11371 \end_layout
11372
11373 \begin_layout Description
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 FontSize
11379 \end_layout
11380
11381 \end_inset
11382
11383  [
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 string="10|11|12"
11389 \end_layout
11390
11391 \end_inset
11392
11393 ] The list of available font sizes for the document's main font, separated
11394  by 
11395 \begin_inset Quotes eld
11396 \end_inset
11397
11398
11399 \begin_inset Flex Code
11400 status collapsed
11401
11402 \begin_layout Plain Layout
11403 |
11404 \end_layout
11405
11406 \end_inset
11407
11408
11409 \begin_inset Quotes erd
11410 \end_inset
11411
11412 .
11413 \end_layout
11414
11415 \begin_layout Description
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 Header
11421 \end_layout
11422
11423 \end_inset
11424
11425  Used to set the DTD line with XML-based output classes.
11426  E.
11427 \begin_inset space \thinspace{}
11428 \end_inset
11429
11430 g.: PUBLIC 
11431 \begin_inset Quotes eld
11432 \end_inset
11433
11434 -//OASIS//DTD DocBook V4.2//EN
11435 \begin_inset Quotes erd
11436 \end_inset
11437
11438 .
11439 \end_layout
11440
11441 \begin_layout Description
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446 PageStyle
11447 \end_layout
11448
11449 \end_inset
11450
11451  [
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 string="empty|plain|headings|fancy"
11457 \end_layout
11458
11459 \end_inset
11460
11461 ] The list of available page sty\SpecialChar softhyphen
11462 les, separated by 
11463 \begin_inset Quotes eld
11464 \end_inset
11465
11466
11467 \begin_inset Flex Code
11468 status collapsed
11469
11470 \begin_layout Plain Layout
11471 |
11472 \end_layout
11473
11474 \end_inset
11475
11476
11477 \begin_inset Quotes erd
11478 \end_inset
11479
11480 .
11481 \end_layout
11482
11483 \begin_layout Description
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Other
11489 \end_layout
11490
11491 \end_inset
11492
11493  [
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 string=""
11499 \end_layout
11500
11501 \end_inset
11502
11503 ] Some document class options, separated by a comma, that will be added
11504  to the optional part of the 
11505 \begin_inset Flex Code
11506 status collapsed
11507
11508 \begin_layout Plain Layout
11509
11510 \backslash
11511 documentclass
11512 \end_layout
11513
11514 \end_inset
11515
11516  command.
11517 \end_layout
11518
11519 \begin_layout Standard
11520 The 
11521 \begin_inset Flex Code
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 ClassOptions
11526 \end_layout
11527
11528 \end_inset
11529
11530  section must end with 
11531 \begin_inset Quotes eld
11532 \end_inset
11533
11534
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 End
11540 \end_layout
11541
11542 \end_inset
11543
11544
11545 \begin_inset Quotes erd
11546 \end_inset
11547
11548 .
11549 \end_layout
11550
11551 \begin_layout Subsection
11552 Paragraph styles
11553 \begin_inset CommandInset label
11554 LatexCommand label
11555 name "subsec:Paragraph-Styles"
11556
11557 \end_inset
11558
11559
11560 \end_layout
11561
11562 \begin_layout Standard
11563 A paragraph style description looks like this:
11564 \begin_inset Foot
11565 status collapsed
11566
11567 \begin_layout Plain Layout
11568 Note that this will either define a new style or modify an existing one.
11569 \end_layout
11570
11571 \end_inset
11572
11573
11574 \end_layout
11575
11576 \begin_layout LyX-Code
11577 Style 
11578 \family roman
11579 \emph on
11580 name
11581 \end_layout
11582
11583 \begin_layout LyX-Code
11584  ...
11585 \end_layout
11586
11587 \begin_layout LyX-Code
11588 End
11589 \end_layout
11590
11591 \begin_layout Standard
11592 where the following commands are allowed:
11593 \end_layout
11594
11595 \begin_layout Description
11596 \begin_inset Flex Code
11597 status collapsed
11598
11599 \begin_layout Plain Layout
11600 AddToToc
11601 \end_layout
11602
11603 \end_inset
11604
11605  [
11606 \begin_inset Flex Code
11607 status collapsed
11608
11609 \begin_layout Plain Layout
11610 string
11611 \end_layout
11612
11613 \end_inset
11614
11615 =""] This paragraph will appear in the table of contents of the given type.
11616  An empty string disables.
11617  See also the OutlinerName and the IsTocCaption commands.
11618  Default: disabled.
11619 \end_layout
11620
11621 \begin_layout Description
11622 \begin_inset Flex Code
11623 status collapsed
11624
11625 \begin_layout Plain Layout
11626 Align
11627 \end_layout
11628
11629 \end_inset
11630
11631  [
11632 \begin_inset Flex Code
11633 status collapsed
11634
11635 \begin_layout Plain Layout
11636
11637 \emph on
11638 block
11639 \emph default
11640 , left, right, center
11641 \end_layout
11642
11643 \end_inset
11644
11645 ] Paragraph alignment.
11646 \end_layout
11647
11648 \begin_layout Description
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 AlignPossible
11654 \end_layout
11655
11656 \end_inset
11657
11658  [
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663
11664 \emph on
11665 block
11666 \emph default
11667 , left, right, center
11668 \end_layout
11669
11670 \end_inset
11671
11672 ] A comma separated list of permitted alignments.
11673  (Some \SpecialChar LaTeX
11674  styles prohibit certain alignments, since those wouldn't make sense.
11675  For example a right-aligned or centered enumeration isn't possible.)
11676 \end_layout
11677
11678 \begin_layout Description
11679 \begin_inset Flex Code
11680 status collapsed
11681
11682 \begin_layout Plain Layout
11683 Argument
11684 \end_layout
11685
11686 \end_inset
11687
11688  [
11689 \begin_inset Flex Code
11690 status collapsed
11691
11692 \begin_layout Plain Layout
11693 int
11694 \end_layout
11695
11696 \end_inset
11697
11698 ] Defines argument number <int> of a command\SpecialChar breakableslash
11699 environment associated with
11700  the current style.
11701  This is useful for things like section headings, and only makes sense with
11702  \SpecialChar LaTeX
11703 .
11704  Every (optional or required) argument of a command or environment – except
11705  for the required argument that is associated with the content of the paragraph
11706  itself – has a separate definition, where the number specifies the order
11707  of the arguments.
11708  The definition must end with 
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 EndArgument
11714 \end_layout
11715
11716 \end_inset
11717
11718 .
11719  So a command with two optional arguments has:
11720 \end_layout
11721
11722 \begin_deeper
11723 \begin_layout Quote
11724
11725 \family typewriter
11726 Argument 1
11727 \end_layout
11728
11729 \begin_layout Quote
11730
11731 \family typewriter
11732 ...
11733 \end_layout
11734
11735 \begin_layout Quote
11736
11737 \family typewriter
11738 EndArgument
11739 \end_layout
11740
11741 \begin_layout Quote
11742
11743 \family typewriter
11744 Argument 2
11745 \end_layout
11746
11747 \begin_layout Quote
11748
11749 \family typewriter
11750 ...
11751 \end_layout
11752
11753 \begin_layout Quote
11754
11755 \family typewriter
11756 EndArgument
11757 \end_layout
11758
11759 \begin_layout Standard
11760 Inside the 
11761 \begin_inset Flex Code
11762 status collapsed
11763
11764 \begin_layout Plain Layout
11765 Argument
11766 \end_layout
11767
11768 \end_inset
11769
11770  definition, the following specifications are possible:
11771 \end_layout
11772
11773 \begin_layout Itemize
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 LabelString
11779 \end_layout
11780
11781 \end_inset
11782
11783  
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 [string]
11789 \end_layout
11790
11791 \end_inset
11792
11793  The string that will appear both in the menu (to insert this argument)
11794  and on the argument inset button (unless you also specify a separate 
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799 MenuString
11800 \end_layout
11801
11802 \end_inset
11803
11804 ).
11805  For the menu, you can define an accelerator by appending the respective
11806  character to the string, divided by 
11807 \begin_inset Quotes eld
11808 \end_inset
11809
11810 |
11811 \begin_inset Quotes erd
11812 \end_inset
11813
11814  (e.
11815 \begin_inset space \thinspace{}
11816 \end_inset
11817
11818 g.
11819 \begin_inset space \space{}
11820 \end_inset
11821
11822
11823 \begin_inset Quotes eld
11824 \end_inset
11825
11826
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 Short Title|S
11832 \end_layout
11833
11834 \end_inset
11835
11836
11837 \begin_inset Quotes erd
11838 \end_inset
11839
11840 ).
11841 \end_layout
11842
11843 \begin_layout Itemize
11844 \begin_inset Flex Code
11845 status collapsed
11846
11847 \begin_layout Plain Layout
11848 MenuString
11849 \end_layout
11850
11851 \end_inset
11852
11853  
11854 \begin_inset Flex Code
11855 status collapsed
11856
11857 \begin_layout Plain Layout
11858 [string]
11859 \end_layout
11860
11861 \end_inset
11862
11863  A separate string for the menu.
11864  You can define an accelerator by appending the respective character to
11865  the string, divided by 
11866 \begin_inset Quotes eld
11867 \end_inset
11868
11869 |
11870 \begin_inset Quotes erd
11871 \end_inset
11872
11873  (e.
11874 \begin_inset space \thinspace{}
11875 \end_inset
11876
11877 g.
11878 \begin_inset space \space{}
11879 \end_inset
11880
11881
11882 \begin_inset Quotes eld
11883 \end_inset
11884
11885
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890 Short Title|S
11891 \end_layout
11892
11893 \end_inset
11894
11895
11896 \begin_inset Quotes erd
11897 \end_inset
11898
11899 ).
11900  This specification is optional.
11901  If it is not given the 
11902 \begin_inset Flex Code
11903 status collapsed
11904
11905 \begin_layout Plain Layout
11906 LabelString
11907 \end_layout
11908
11909 \end_inset
11910
11911  will be used instead for the menu.
11912 \end_layout
11913
11914 \begin_layout Itemize
11915 \begin_inset Flex Code
11916 status collapsed
11917
11918 \begin_layout Plain Layout
11919 Tooltip
11920 \end_layout
11921
11922 \end_inset
11923
11924  
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 [string]
11930 \end_layout
11931
11932 \end_inset
11933
11934  A longer explanatory text that appears in the tooltip when hovering over
11935  the argument inset.
11936 \end_layout
11937
11938 \begin_layout Itemize
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943 Mandatory
11944 \end_layout
11945
11946 \end_inset
11947
11948  [
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953
11954 \emph on
11955 0
11956 \end_layout
11957
11958 \end_inset
11959
11960 ,
11961 \begin_inset space \thinspace{}
11962 \end_inset
11963
11964
11965 \begin_inset Flex Code
11966 status collapsed
11967
11968 \begin_layout Plain Layout
11969 1
11970 \end_layout
11971
11972 \end_inset
11973
11974 ] Declare if this is a mandatory (1) or an optional (0) argument.
11975  Mandatory arguments will be output empty if not given, while optional arguments
11976  will not be output at all.
11977  By default, mandatory arguments are delimited by 
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 {...}
11983 \end_layout
11984
11985 \end_inset
11986
11987 , while optional arguments are delimited by 
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992 [...]
11993 \end_layout
11994
11995 \end_inset
11996
11997
11998 \change_inserted -712698321 1555579782
11999
12000 \end_layout
12001
12002 \begin_layout Itemize
12003
12004 \change_inserted -712698321 1555579780
12005 \begin_inset Flex Code
12006 status collapsed
12007
12008 \begin_layout Plain Layout
12009
12010 \change_inserted -712698321 1555579780
12011 NewlineCmd
12012 \end_layout
12013
12014 \end_inset
12015
12016  
12017 \begin_inset Flex Code
12018 status collapsed
12019
12020 \begin_layout Plain Layout
12021
12022 \change_inserted -712698321 1555579780
12023 [string]
12024 \end_layout
12025
12026 \end_inset
12027
12028  Option to define a different command (from the default 
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033
12034 \change_inserted -712698321 1555579780
12035
12036 \backslash
12037
12038 \backslash
12039
12040 \end_layout
12041
12042 \end_inset
12043
12044 ) to be used for line breaks.
12045  The initial backslash must not be specified.
12046 \change_unchanged
12047
12048 \end_layout
12049
12050 \begin_layout Itemize
12051 \begin_inset Flex Code
12052 status collapsed
12053
12054 \begin_layout Plain Layout
12055 Requires
12056 \end_layout
12057
12058 \end_inset
12059
12060  
12061 \begin_inset Flex Code
12062 status collapsed
12063
12064 \begin_layout Plain Layout
12065 [int=0]
12066 \end_layout
12067
12068 \end_inset
12069
12070  defines another argument (by its number) which this argument requires to
12071  be output if it is itself output.
12072  E.
12073 \begin_inset space \thinspace{}
12074 \end_inset
12075
12076 g., in \SpecialChar LaTeX
12077  commands, optional arguments often require previous optional arguments
12078  to be output (at least empty), as in 
12079 \begin_inset Flex Code
12080 status collapsed
12081
12082 \begin_layout Plain Layout
12083
12084 \backslash
12085 command[][argument]{text}
12086 \end_layout
12087
12088 \end_inset
12089
12090 .
12091  This can be achieved by the statement 
12092 \begin_inset Flex Code
12093 status collapsed
12094
12095 \begin_layout Plain Layout
12096 Requires 1
12097 \end_layout
12098
12099 \end_inset
12100
12101  within 
12102 \begin_inset Flex Code
12103 status collapsed
12104
12105 \begin_layout Plain Layout
12106 Argument 2
12107 \end_layout
12108
12109 \end_inset
12110
12111 .
12112 \end_layout
12113
12114 \begin_layout Itemize
12115 \begin_inset Flex Code
12116 status collapsed
12117
12118 \begin_layout Plain Layout
12119 LeftDelim
12120 \end_layout
12121
12122 \end_inset
12123
12124  
12125 \begin_inset Flex Code
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 [string]
12130 \end_layout
12131
12132 \end_inset
12133
12134  defines a custom left delimiter (instead of 
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 {
12140 \end_layout
12141
12142 \end_inset
12143
12144  or 
12145 \begin_inset Flex Code
12146 status collapsed
12147
12148 \begin_layout Plain Layout
12149 [
12150 \end_layout
12151
12152 \end_inset
12153
12154 ).
12155  A line break in the output can be indicated by 
12156 \begin_inset Flex Code
12157 status collapsed
12158
12159 \begin_layout Plain Layout
12160 <br/>
12161 \end_layout
12162
12163 \end_inset
12164
12165 .
12166 \end_layout
12167
12168 \begin_layout Itemize
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173 RightDelim
12174 \end_layout
12175
12176 \end_inset
12177
12178  
12179 \begin_inset Flex Code
12180 status collapsed
12181
12182 \begin_layout Plain Layout
12183 [string]
12184 \end_layout
12185
12186 \end_inset
12187
12188  defines a custom right delimiter (instead of 
12189 \begin_inset Flex Code
12190 status collapsed
12191
12192 \begin_layout Plain Layout
12193 }
12194 \end_layout
12195
12196 \end_inset
12197
12198  or 
12199 \begin_inset Flex Code
12200 status collapsed
12201
12202 \begin_layout Plain Layout
12203 ]
12204 \end_layout
12205
12206 \end_inset
12207
12208 ).
12209  A line break in the output can be indicated by 
12210 \begin_inset Flex Code
12211 status collapsed
12212
12213 \begin_layout Plain Layout
12214 <br/>
12215 \end_layout
12216
12217 \end_inset
12218
12219 .
12220 \end_layout
12221
12222 \begin_layout Itemize
12223 \begin_inset Flex Code
12224 status collapsed
12225
12226 \begin_layout Plain Layout
12227 DefaultArg
12228 \end_layout
12229
12230 \end_inset
12231
12232  
12233 \begin_inset Flex Code
12234 status collapsed
12235
12236 \begin_layout Plain Layout
12237 [string]
12238 \end_layout
12239
12240 \end_inset
12241
12242  defines an argument that is inserted if and only if no user-specified arguments
12243  were given, i.
12244 \begin_inset space \thinspace{}
12245 \end_inset
12246
12247 e.
12248 \begin_inset space \space{}
12249 \end_inset
12250
12251 if no argument inset has been inserted (note that also an empty argument
12252  inset omits the DefaultArg).
12253  Multiple arguments need to be separated by comma.
12254 \end_layout
12255
12256 \begin_layout Itemize
12257 \begin_inset Flex Code
12258 status collapsed
12259
12260 \begin_layout Plain Layout
12261 PresetArg
12262 \end_layout
12263
12264 \end_inset
12265
12266  
12267 \begin_inset Flex Code
12268 status collapsed
12269
12270 \begin_layout Plain Layout
12271 [string]
12272 \end_layout
12273
12274 \end_inset
12275
12276  defines an argument that is inserted in any case (alone or in addition
12277  to user-specified arguments).
12278  Multiple arguments need to be separated by comma.
12279 \end_layout
12280
12281 \begin_layout Itemize
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286 Font
12287 \end_layout
12288
12289 \end_inset
12290
12291  The font used for the argument content, see 
12292 \begin_inset CommandInset ref
12293 LatexCommand ref
12294 reference "subsec:Font-description"
12295
12296 \end_inset
12297
12298 .
12299 \end_layout
12300
12301 \begin_layout Itemize
12302 \begin_inset Flex Code
12303 status collapsed
12304
12305 \begin_layout Plain Layout
12306 LabelFont
12307 \end_layout
12308
12309 \end_inset
12310
12311  The font used for the label; see 
12312 \begin_inset CommandInset ref
12313 LatexCommand ref
12314 reference "subsec:Font-description"
12315
12316 \end_inset
12317
12318 .
12319 \end_layout
12320
12321 \begin_layout Itemize
12322 \begin_inset Flex Code
12323 status collapsed
12324
12325 \begin_layout Plain Layout
12326 Decoration
12327 \end_layout
12328
12329 \end_inset
12330
12331  [
12332 \begin_inset Flex Code
12333 status collapsed
12334
12335 \begin_layout Plain Layout
12336
12337 \emph on
12338 Classic
12339 \emph default
12340 , Minimalistic, Conglomerate
12341 \end_layout
12342
12343 \end_inset
12344
12345 ] describes the rendering style used for the inset's frame and buttons.
12346 \end_layout
12347
12348 \begin_layout Itemize
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353 AutoInsert
12354 \end_layout
12355
12356 \end_inset
12357
12358  
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 [int=0]
12364 \end_layout
12365
12366 \end_inset
12367
12368  If this is set to 
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373 1
12374 \end_layout
12375
12376 \end_inset
12377
12378 , this argument is automatically inserted when the respective style is selected.
12379  Currently, only one argument per style\SpecialChar breakableslash
12380 layout can be automatically inserted.
12381 \end_layout
12382
12383 \begin_layout Itemize
12384 \begin_inset Flex Code
12385 status collapsed
12386
12387 \begin_layout Plain Layout
12388 InsertCotext
12389 \end_layout
12390
12391 \end_inset
12392
12393  
12394 \begin_inset Flex Code
12395 status collapsed
12396
12397 \begin_layout Plain Layout
12398 [int=0]
12399 \end_layout
12400
12401 \end_inset
12402
12403  If this is set to 
12404 \begin_inset Flex Code
12405 status collapsed
12406
12407 \begin_layout Plain Layout
12408 1
12409 \end_layout
12410
12411 \end_inset
12412
12413 , this argument will be inserted with a copy of the co-text (either selected
12414  text or the whole paragraph) as content.
12415 \end_layout
12416
12417 \begin_layout Itemize
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 PassThru
12423 \end_layout
12424
12425 \end_inset
12426
12427  [
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432
12433 \emph on
12434 inherited
12435 \emph default
12436 , true, false
12437 \end_layout
12438
12439 \end_inset
12440
12441 ] Whether the contents of this argument should be output in raw form, meaning
12442  without special translations that \SpecialChar LaTeX
12443  would require.
12444  By default, the 
12445 \begin_inset Flex Code
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449 PassThru
12450 \end_layout
12451
12452 \end_inset
12453
12454  status is inherited by the inset or paragraph layout the argument belongs
12455  to, true and false change the status for the given argument only.
12456 \end_layout
12457
12458 \begin_layout Itemize
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463 PassThruChars
12464 \end_layout
12465
12466 \end_inset
12467
12468  [
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473 string of characters
12474 \end_layout
12475
12476 \end_inset
12477
12478 ]
12479 \family typewriter
12480  
12481 \family default
12482 Defines individual characters
12483 \begin_inset Newline linebreak
12484 \end_inset
12485
12486 that should be output in raw form, meaning without special translations
12487  that \SpecialChar LaTeX
12488  would require.
12489  Note that, contrary to PassThru, this needs to be explicitly defined for
12490  arguments.
12491  That is, arguments do not inherit PassThruChars from their parent inset
12492  or layout.
12493 \end_layout
12494
12495 \begin_layout Itemize
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 IsTocCaption
12501 \end_layout
12502
12503 \end_inset
12504
12505  [
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510
12511 \emph on
12512 0
12513 \end_layout
12514
12515 \end_inset
12516
12517 ,
12518 \begin_inset space \thinspace{}
12519 \end_inset
12520
12521
12522 \begin_inset Flex Code
12523 status collapsed
12524
12525 \begin_layout Plain Layout
12526 1
12527 \end_layout
12528
12529 \end_inset
12530
12531 ] If this is set to 1, the argument will output its content in the corresponding
12532  item in the table of contents.
12533  See AddToToc.
12534 \end_layout
12535
12536 \begin_layout Standard
12537 By default, the text entered in the \SpecialChar LyX
12538  workarea in the respective layout is
12539  the last (mandatory) argument of a command if the 
12540 \begin_inset Flex Code
12541 status collapsed
12542
12543 \begin_layout Plain Layout
12544 LatexType
12545 \end_layout
12546
12547 \end_inset
12548
12549  is 
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 Command
12555 \end_layout
12556
12557 \end_inset
12558
12559 .
12560  However, arguments with the prefix 
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 post:
12566 \end_layout
12567
12568 \end_inset
12569
12570  are output after this workarea argument.
12571  Note that post-argument numbering restarts at 1, so the first argument
12572  following the workarea argument is 
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 post:1
12578 \end_layout
12579
12580 \end_inset
12581
12582 .
12583  Post-arguments are ignored in any other 
12584 \begin_inset Flex Code
12585 status collapsed
12586
12587 \begin_layout Plain Layout
12588 LatexType
12589 \end_layout
12590
12591 \end_inset
12592
12593  than 
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 Command
12599 \end_layout
12600
12601 \end_inset
12602
12603 .
12604 \end_layout
12605
12606 \begin_layout Standard
12607 Arguments for list 
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612
12613 \backslash
12614 item
12615 \end_layout
12616
12617 \end_inset
12618
12619 s (as in 
12620 \begin_inset Flex Code
12621 status collapsed
12622
12623 \begin_layout Plain Layout
12624
12625 \backslash
12626 item[foo]
12627 \end_layout
12628
12629 \end_inset
12630
12631 ) have the prefix 
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 item:
12637 \end_layout
12638
12639 \end_inset
12640
12641  followed by the number (e.
12642 \begin_inset space \thinspace{}
12643 \end_inset
12644
12645 g.
12646 \begin_inset space \space{}
12647 \end_inset
12648
12649
12650 \begin_inset Flex Code
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654 Argument item:1
12655 \end_layout
12656
12657 \end_inset
12658
12659 ).
12660 \change_inserted -712698321 1534487781
12661
12662 \end_layout
12663
12664 \begin_layout Standard
12665
12666 \change_inserted -712698321 1534488561
12667 Finally, there is a special argument type with the prefix 
12668 \begin_inset Flex Code
12669 status collapsed
12670
12671 \begin_layout Plain Layout
12672
12673 \change_inserted -712698321 1534487844
12674 listpreamble:
12675 \change_unchanged
12676
12677 \end_layout
12678
12679 \end_inset
12680
12681 .
12682  It is not really an argument, but uses the argument interface (thus, the
12683  prefix is also followed by a number, e.
12684 \begin_inset space \thinspace{}
12685 \end_inset
12686
12687 g.
12688  
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693
12694 \change_inserted -712698321 1534488412
12695 Argument listpreamble:1
12696 \end_layout
12697
12698 \end_inset
12699
12700 ).
12701  As the name implies, it is targeted at lists such as 
12702 \family sans
12703 Itemize
12704 \family default
12705
12706 \family sans
12707 Enumerate
12708 \family default
12709
12710 \family sans
12711 Description
12712 \family default
12713 , or 
12714 \family sans
12715 Bibliography
12716 \family default
12717 .
12718  Its content will be output at the list start, before the first 
12719 \begin_inset Flex Code
12720 status collapsed
12721
12722 \begin_layout Plain Layout
12723
12724 \change_inserted -712698321 1534488058
12725
12726 \backslash
12727 item
12728 \change_unchanged
12729
12730 \end_layout
12731
12732 \end_inset
12733
12734 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12735 ).
12736  This way, users can insert redefinitions (of lengths etc.) to individual
12737  lists.
12738  By default, these arguments do not have a delimiter.
12739 \change_unchanged
12740
12741 \end_layout
12742
12743 \end_deeper
12744 \begin_layout Description
12745 \begin_inset Flex Code
12746 status collapsed
12747
12748 \begin_layout Plain Layout
12749 AutoNests
12750 \end_layout
12751
12752 \end_inset
12753
12754  Includes a comma-separated list of layouts that should be nested in and
12755  after the current layout.
12756  Only makes sense for nestable layouts (such as environments).
12757  Must be ended by 
12758 \begin_inset Quotes eld
12759 \end_inset
12760
12761
12762 \begin_inset Flex Code
12763 status collapsed
12764
12765 \begin_layout Plain Layout
12766 EndAutoNests
12767 \end_layout
12768
12769 \end_inset
12770
12771
12772 \begin_inset Quotes erd
12773 \end_inset
12774
12775 .
12776  See also 
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 IsAutoNestedBy
12782 \end_layout
12783
12784 \end_inset
12785
12786 .
12787 \end_layout
12788
12789 \begin_layout Description
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 BabelPreamble
12795 \end_layout
12796
12797 \end_inset
12798
12799  Note that this will completely override any prior 
12800 \begin_inset Flex Code
12801 status collapsed
12802
12803 \begin_layout Plain Layout
12804 BabelPreamble
12805 \end_layout
12806
12807 \end_inset
12808
12809  declaration for this style.
12810  Must end with 
12811 \begin_inset Quotes eld
12812 \end_inset
12813
12814
12815 \begin_inset Flex Code
12816 status collapsed
12817
12818 \begin_layout Plain Layout
12819 EndBabelPreamble
12820 \end_layout
12821
12822 \end_inset
12823
12824
12825 \begin_inset Quotes erd
12826 \end_inset
12827
12828 .
12829  See 
12830 \begin_inset CommandInset ref
12831 LatexCommand ref
12832 reference "subsec:I18n"
12833
12834 \end_inset
12835
12836  for details on its use.
12837 \end_layout
12838
12839 \begin_layout Description
12840 \begin_inset Flex Code
12841 status collapsed
12842
12843 \begin_layout Plain Layout
12844 BottomSep
12845 \end_layout
12846
12847 \end_inset
12848
12849  [
12850 \begin_inset Flex Code
12851 status collapsed
12852
12853 \begin_layout Plain Layout
12854 float=0
12855 \end_layout
12856
12857 \end_inset
12858
12859 ]
12860 \begin_inset Foot
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864 Note that a `float' here is a real number, such as: 1.5.
12865 \end_layout
12866
12867 \end_inset
12868
12869  The vertical space with which the last of a chain of paragraphs with this
12870  style is separated from the following paragraph.
12871  If the next paragraph has another style, the separations are not simply
12872  added, but the maximum is taken.
12873 \end_layout
12874
12875 \begin_layout Description
12876 \begin_inset Flex Code
12877 status collapsed
12878
12879 \begin_layout Plain Layout
12880 Category
12881 \end_layout
12882
12883 \end_inset
12884
12885  [
12886 \begin_inset Flex Code
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890 string
12891 \end_layout
12892
12893 \end_inset
12894
12895 ] The category for this style.
12896  This is used to group related styles in the style combobox on the toolbar.
12897  Any string can be used, but you may want to use existing categories with
12898  your own styles.
12899  
12900 \end_layout
12901
12902 \begin_layout Description
12903 \begin_inset Flex Code
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 CommandDepth
12908 \end_layout
12909
12910 \end_inset
12911
12912  Depth of XML command.
12913  Used only with XML-type formats.
12914 \end_layout
12915
12916 \begin_layout Description
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 CopyStyle
12922 \end_layout
12923
12924 \end_inset
12925
12926  [
12927 \begin_inset Flex Code
12928 status collapsed
12929
12930 \begin_layout Plain Layout
12931 string
12932 \end_layout
12933
12934 \end_inset
12935
12936 ] Copies all the features of an existing style into the current one.
12937  
12938 \end_layout
12939
12940 \begin_layout Description
12941 \begin_inset Flex Code
12942 status collapsed
12943
12944 \begin_layout Plain Layout
12945 DependsOn
12946 \end_layout
12947
12948 \end_inset
12949
12950  [
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 <name>
12956 \end_layout
12957
12958 \end_inset
12959
12960 ] The name of a style whose preamble should be output 
12961 \emph on
12962 before
12963 \emph default
12964  this one.
12965  This allows to ensure some ordering of the preamble snippets when macros
12966  definitions depend on one another.
12967 \begin_inset Foot
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971 Note that, besides that functionality, there is no way to ensure any ordering
12972  of preambles.
12973  The ordering that you see in a given version of \SpecialChar LyX
12974  may change without warning
12975  in later versions.
12976 \end_layout
12977
12978 \end_inset
12979
12980
12981 \end_layout
12982
12983 \begin_layout Description
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 EndLabeltype
12989 \end_layout
12990
12991 \end_inset
12992
12993  [
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998
12999 \emph on
13000 No_Label
13001 \emph default
13002 , Box, Filled_Box, Static
13003 \end_layout
13004
13005 \end_inset
13006
13007 ] The type of label that stands at the end of the paragraph (or sequence
13008  of paragraphs if 
13009 \begin_inset Flex Code
13010 status collapsed
13011
13012 \begin_layout Plain Layout
13013 LatexType
13014 \end_layout
13015
13016 \end_inset
13017
13018  is
13019 \begin_inset Newline newline
13020 \end_inset
13021
13022
13023 \begin_inset Flex Code
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027 Environment
13028 \end_layout
13029
13030 \end_inset
13031
13032
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 Item_Environment
13038 \end_layout
13039
13040 \end_inset
13041
13042  or 
13043 \begin_inset Flex Code
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047 List_Environment
13048 \end_layout
13049
13050 \end_inset
13051
13052 ).
13053  
13054 \begin_inset Flex Code
13055 status collapsed
13056
13057 \begin_layout Plain Layout
13058 No_Label
13059 \end_layout
13060
13061 \end_inset
13062
13063  means 
13064 \begin_inset Quotes eld
13065 \end_inset
13066
13067 nothing
13068 \begin_inset Quotes erd
13069 \end_inset
13070
13071
13072 \begin_inset Flex Code
13073 status collapsed
13074
13075 \begin_layout Plain Layout
13076 Box
13077 \end_layout
13078
13079 \end_inset
13080
13081  (resp.
13082 \begin_inset space \space{}
13083 \end_inset
13084
13085
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 Filled_Box
13091 \end_layout
13092
13093 \end_inset
13094
13095 ) is a white (resp.
13096 \begin_inset space ~
13097 \end_inset
13098
13099 black) square suitable for end of proof markers, 
13100 \begin_inset Flex Code
13101 status collapsed
13102
13103 \begin_layout Plain Layout
13104 Static
13105 \end_layout
13106
13107 \end_inset
13108
13109  is an explicit text string.
13110 \end_layout
13111
13112 \begin_layout Description
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117 EndLabelString
13118 \end_layout
13119
13120 \end_inset
13121
13122  [
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 string=""
13128 \end_layout
13129
13130 \end_inset
13131
13132 ] The string used for a label with a 
13133 \begin_inset Flex Code
13134 status collapsed
13135
13136 \begin_layout Plain Layout
13137 Static
13138 \end_layout
13139
13140 \end_inset
13141
13142
13143 \begin_inset Newline newline
13144 \end_inset
13145
13146
13147 \begin_inset Flex Code
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151 EndLabelType
13152 \end_layout
13153
13154 \end_inset
13155
13156 .
13157  
13158 \end_layout
13159
13160 \begin_layout Description
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165 Font
13166 \end_layout
13167
13168 \end_inset
13169
13170  The font used for both the text body 
13171 \emph on
13172 and
13173 \emph default
13174  the label.
13175  See 
13176 \begin_inset CommandInset ref
13177 LatexCommand ref
13178 reference "subsec:Font-description"
13179
13180 \end_inset
13181
13182 .
13183  Note that defining this font automatically defines the 
13184 \begin_inset Flex Code
13185 status collapsed
13186
13187 \begin_layout Plain Layout
13188 LabelFont
13189 \end_layout
13190
13191 \end_inset
13192
13193  to the same value.
13194  So you should define this one first if you also want to define 
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 LabelFont
13200 \end_layout
13201
13202 \end_inset
13203
13204 .
13205 \end_layout
13206
13207 \begin_layout Description
13208 \begin_inset Flex Code
13209 status collapsed
13210
13211 \begin_layout Plain Layout
13212 ForceLocal
13213 \end_layout
13214
13215 \end_inset
13216
13217  [
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 int=0
13223 \end_layout
13224
13225 \end_inset
13226
13227 ] Used for backporting new styles to stable \SpecialChar LyX
13228  versions.
13229  The first stable version that supports this tag is \SpecialChar LyX
13230  2.1.0.
13231  The argument is a number which may either be 0, -1 or any value greater
13232  than zero.
13233  If the 
13234 \begin_inset Flex Code
13235 status collapsed
13236
13237 \begin_layout Plain Layout
13238 ForceLocal
13239 \end_layout
13240
13241 \end_inset
13242
13243  flag of a style is greater than zero, it will always be written to the
13244  document header.
13245  If a .lyx file is read, the style definitions from the document header are
13246  added to the document class.
13247  Therefore even older \SpecialChar LyX
13248  versions can handle the style.
13249  The argument of 
13250 \begin_inset Flex Code
13251 status collapsed
13252
13253 \begin_layout Plain Layout
13254 ForceLocal
13255 \end_layout
13256
13257 \end_inset
13258
13259  is a version number: if the style is read, and the version number is less
13260  than the version number of the already existing style in the document class,
13261  the new style is ignored.
13262  If the version number is greater, the new style replaces the existing style.
13263  A value of -1 means an infinite version number, i.
13264 \begin_inset space \thinspace{}
13265 \end_inset
13266
13267 e.
13268 \begin_inset space \space{}
13269 \end_inset
13270
13271 the style is always used.
13272 \end_layout
13273
13274 \begin_layout Description
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 FreeSpacing
13280 \end_layout
13281
13282 \end_inset
13283
13284  [
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289
13290 \emph on
13291 0
13292 \end_layout
13293
13294 \end_inset
13295
13296 ,
13297 \begin_inset space \thinspace{}
13298 \end_inset
13299
13300
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 1
13306 \end_layout
13307
13308 \end_inset
13309
13310 ] Usually \SpecialChar LyX
13311  does not allow you to insert more than one space between words,
13312  since a space is considered as the separation between two words, not a
13313  character or symbol of its own.
13314  This is a very fine thing but sometimes annoying, for example, when typing
13315  program code or plain \SpecialChar LaTeX
13316  code.
13317  For this reason, 
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 FreeSpacing
13323 \end_layout
13324
13325 \end_inset
13326
13327  can be enabled.
13328  
13329 \change_deleted -495245474 1550490105
13330 Note that 
13331 \change_unchanged
13332 \SpecialChar LyX
13333  will create protected blanks for the additional blanks when in 
13334 \change_inserted -495245474 1550490096
13335
13336 \begin_inset Flex Code
13337 status collapsed
13338
13339 \begin_layout Plain Layout
13340
13341 \change_inserted -495245474 1550490089
13342 Passthru 1
13343 \end_layout
13344
13345 \end_inset
13346
13347  is not specified.
13348 \change_deleted -495245474 1550490116
13349 another mode than \SpecialChar LaTeX
13350 -mode.
13351
13352 \change_inserted -495245474 1550247760
13353  Note that 
13354 \begin_inset Flex Code
13355 status collapsed
13356
13357 \begin_layout Plain Layout
13358
13359 \change_inserted -495245474 1550247736
13360 FreeSpacing
13361 \end_layout
13362
13363 \end_inset
13364
13365  implies 
13366 \begin_inset Flex Code
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370
13371 \change_inserted -495245474 1550247755
13372 KeepEmpty
13373 \end_layout
13374
13375 \end_inset
13376
13377 .
13378 \change_unchanged
13379
13380 \end_layout
13381
13382 \begin_layout Description
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 HTML*
13388 \end_layout
13389
13390 \end_inset
13391
13392  These tags are used with XHTML output.
13393  See 
13394 \begin_inset CommandInset ref
13395 LatexCommand ref
13396 reference "subsec:Paragraph-Style-XHTML"
13397
13398 \end_inset
13399
13400 .
13401 \end_layout
13402
13403 \begin_layout Description
13404 \begin_inset Flex Code
13405 status collapsed
13406
13407 \begin_layout Plain Layout
13408 InnerTag
13409 \end_layout
13410
13411 \end_inset
13412
13413  [FIXME] (Used only with XML-type formats.)
13414 \end_layout
13415
13416 \begin_layout Description
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 InPreamble
13422 \end_layout
13423
13424 \end_inset
13425
13426  [
13427 \begin_inset Flex Code
13428 status collapsed
13429
13430 \begin_layout Plain Layout
13431
13432 \emph on
13433 0
13434 \end_layout
13435
13436 \end_inset
13437
13438 ,
13439 \begin_inset space \thinspace{}
13440 \end_inset
13441
13442
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447 1
13448 \end_layout
13449
13450 \end_inset
13451
13452 ] If 
13453 \begin_inset Flex Code
13454 status collapsed
13455
13456 \begin_layout Plain Layout
13457 1
13458 \end_layout
13459
13460 \end_inset
13461
13462 , marks the style as to be included in the document preamble and not in
13463  the document body.
13464  This is useful for document classes that want such information as the title
13465  and author to appear in the preamble.
13466  Note that this works only for styles for which the 
13467 \begin_inset Flex Code
13468 status collapsed
13469
13470 \begin_layout Plain Layout
13471 LatexType
13472 \end_layout
13473
13474 \end_inset
13475
13476  is 
13477 \begin_inset Flex Code
13478 status collapsed
13479
13480 \begin_layout Plain Layout
13481 Command
13482 \end_layout
13483
13484 \end_inset
13485
13486  or 
13487 \begin_inset Flex Code
13488 status collapsed
13489
13490 \begin_layout Plain Layout
13491 Paragraph
13492 \end_layout
13493
13494 \end_inset
13495
13496 .
13497 \end_layout
13498
13499 \begin_layout Description
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 InTitle
13505 \end_layout
13506
13507 \end_inset
13508
13509  [
13510 \begin_inset Flex Code
13511 status collapsed
13512
13513 \begin_layout Plain Layout
13514
13515 \emph on
13516 0
13517 \end_layout
13518
13519 \end_inset
13520
13521 ,
13522 \begin_inset space \thinspace{}
13523 \end_inset
13524
13525
13526 \begin_inset Flex Code
13527 status collapsed
13528
13529 \begin_layout Plain Layout
13530 1
13531 \end_layout
13532
13533 \end_inset
13534
13535 ] If 
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540 1
13541 \end_layout
13542
13543 \end_inset
13544
13545 , marks the style as being part of a title block (see also the 
13546 \begin_inset Flex Code
13547 status collapsed
13548
13549 \begin_layout Plain Layout
13550 TitleLatexType
13551 \end_layout
13552
13553 \end_inset
13554
13555  and 
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 TitleLatexName
13561 \end_layout
13562
13563 \end_inset
13564
13565  global entries).
13566 \end_layout
13567
13568 \begin_layout Description
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 IsAutoNestedBy
13574 \end_layout
13575
13576 \end_inset
13577
13578  Includes a comma-separated list of layouts after which this one should
13579  be nested.
13580  Only makes sense with regard to nestable layouts (such as environments).
13581  Must be ended by 
13582 \begin_inset Quotes eld
13583 \end_inset
13584
13585
13586 \begin_inset Flex Code
13587 status collapsed
13588
13589 \begin_layout Plain Layout
13590 EndIsAutoNestedBy
13591 \end_layout
13592
13593 \end_inset
13594
13595
13596 \begin_inset Quotes erd
13597 \end_inset
13598
13599 .
13600  See also 
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 AutoNests
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 IsTocCaption
13619 \end_layout
13620
13621 \end_inset
13622
13623  [
13624 \begin_inset Flex Code
13625 status collapsed
13626
13627 \begin_layout Plain Layout
13628
13629 \emph on
13630 0
13631 \end_layout
13632
13633 \end_inset
13634
13635 ,
13636 \begin_inset space \thinspace{}
13637 \end_inset
13638
13639
13640 \begin_inset Flex Code
13641 status collapsed
13642
13643 \begin_layout Plain Layout
13644 1
13645 \end_layout
13646
13647 \end_inset
13648
13649 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13650  of its contents in its item in the table of contents.
13651  Otherwise, only the label, if it exists, appears.
13652 \end_layout
13653
13654 \begin_layout Description
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659 ItemCommand
13660 \end_layout
13661
13662 \end_inset
13663
13664  [
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 string="item"
13670 \end_layout
13671
13672 \end_inset
13673
13674 ] The \SpecialChar LaTeX
13675  command sequence declaring an item in a list.
13676  The command is to be defined without the preceding backslash (the default
13677  is 
13678 \begin_inset Quotes eld
13679 \end_inset
13680
13681 item
13682 \begin_inset Quotes erd
13683 \end_inset
13684
13685 , resulting in 
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690
13691 \backslash
13692 item
13693 \end_layout
13694
13695 \end_inset
13696
13697  in the \SpecialChar LaTeX
13698  output).
13699 \end_layout
13700
13701 \begin_layout Description
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 ItemSep
13707 \end_layout
13708
13709 \end_inset
13710
13711  [
13712 \begin_inset Flex Code
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 float=0
13717 \end_layout
13718
13719 \end_inset
13720
13721 ] This provides extra space between paragraphs that have the same style.
13722  If you put other styles into an environment, each is separated with the
13723  environment's 
13724 \begin_inset Flex Code
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 ParSep
13729 \end_layout
13730
13731 \end_inset
13732
13733 .
13734  But the whole items of the environment are additionally separated with
13735  this 
13736 \begin_inset Flex Code
13737 status collapsed
13738
13739 \begin_layout Plain Layout
13740 ItemSep
13741 \end_layout
13742
13743 \end_inset
13744
13745 .
13746  Note that this is a
13747 \emph on
13748  multiplier.
13749 \end_layout
13750
13751 \begin_layout Description
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 ItemTag
13757 \end_layout
13758
13759 \end_inset
13760
13761  [FIXME] (Used only with XML-type formats.)
13762 \end_layout
13763
13764 \begin_layout Description
13765 \begin_inset Flex Code
13766 status collapsed
13767
13768 \begin_layout Plain Layout
13769 KeepEmpty
13770 \end_layout
13771
13772 \end_inset
13773
13774  [
13775 \begin_inset Flex Code
13776 status collapsed
13777
13778 \begin_layout Plain Layout
13779
13780 \emph on
13781 0
13782 \end_layout
13783
13784 \end_inset
13785
13786 ,
13787 \begin_inset space \thinspace{}
13788 \end_inset
13789
13790
13791 \begin_inset Flex Code
13792 status collapsed
13793
13794 \begin_layout Plain Layout
13795 1
13796 \end_layout
13797
13798 \end_inset
13799
13800 ] Usually \SpecialChar LyX
13801  does not allow you to leave a paragraph empty, since it would
13802  lead to empty \SpecialChar LaTeX
13803  output.
13804  There are some cases where this could be desirable however: in a letter
13805  template, the required fields can be provided as empty fields, so that
13806  people do not forget them; in some special classes, a style can be used
13807  as some kind of break, which does not contain actual text.
13808 \end_layout
13809
13810 \begin_layout Description
13811 \begin_inset Flex Code
13812 status collapsed
13813
13814 \begin_layout Plain Layout
13815 LabelBottomsep
13816 \end_layout
13817
13818 \end_inset
13819
13820  [
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 float=0
13826 \end_layout
13827
13828 \end_inset
13829
13830 ] The vertical space between the label and the text body.
13831  Only used for labels that are above the text body (
13832 \begin_inset Flex Code
13833 status collapsed
13834
13835 \begin_layout Plain Layout
13836 Top_Environment
13837 \end_layout
13838
13839 \end_inset
13840
13841  and
13842 \begin_inset Newline newline
13843 \end_inset
13844
13845
13846 \begin_inset Flex Code
13847 status collapsed
13848
13849 \begin_layout Plain Layout
13850 Centered_Top_Environment
13851 \end_layout
13852
13853 \end_inset
13854
13855 ).
13856 \end_layout
13857
13858 \begin_layout Description
13859 \begin_inset Flex Code
13860 status collapsed
13861
13862 \begin_layout Plain Layout
13863 LabelCounter
13864 \end_layout
13865
13866 \end_inset
13867
13868  [
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 string=""
13874 \end_layout
13875
13876 \end_inset
13877
13878 ] The name of the counter for automatic numbering.
13879  In order to have the counter appear with your label, you will need to reference
13880  it in the 
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885
13886 \family typewriter
13887 LabelString
13888 \end_layout
13889
13890 \end_inset
13891
13892 .
13893  This will work with 
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 LabelType
13899 \end_layout
13900
13901 \end_inset
13902
13903 s, 
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 Static
13909 \end_layout
13910
13911 \end_inset
13912
13913
13914 \begin_inset Flex Code
13915 status collapsed
13916
13917 \begin_layout Plain Layout
13918 Above
13919 \end_layout
13920
13921 \end_inset
13922
13923  and 
13924 \begin_inset Flex Code
13925 status collapsed
13926
13927 \begin_layout Plain Layout
13928 Centered
13929 \end_layout
13930
13931 \end_inset
13932
13933 , at least.
13934 \begin_inset Newline newline
13935 \end_inset
13936
13937 This 
13938 \emph on
13939 may
13940 \emph default
13941  also be given if 
13942 \begin_inset Flex Code
13943 status collapsed
13944
13945 \begin_layout Plain Layout
13946 LabelType
13947 \end_layout
13948
13949 \end_inset
13950
13951  is 
13952 \begin_inset Flex Code
13953 status collapsed
13954
13955 \begin_layout Plain Layout
13956 Enumerate
13957 \end_layout
13958
13959 \end_inset
13960
13961 , though this case is a bit complicated.
13962  Suppose you declare 
13963 \begin_inset Quotes eld
13964 \end_inset
13965
13966
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 LabelCounter myenum
13972 \end_layout
13973
13974 \end_inset
13975
13976
13977 \begin_inset Quotes erd
13978 \end_inset
13979
13980 .
13981  Then the actual counters used are 
13982 \begin_inset Flex Code
13983 status collapsed
13984
13985 \begin_layout Plain Layout
13986 myenumi
13987 \end_layout
13988
13989 \end_inset
13990
13991
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 myenumii
13997 \end_layout
13998
13999 \end_inset
14000
14001
14002 \begin_inset Flex Code
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006 myenumiii
14007 \end_layout
14008
14009 \end_inset
14010
14011  and 
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 myenumiv
14017 \end_layout
14018
14019 \end_inset
14020
14021 , much as in \SpecialChar LaTeX
14022 .
14023  These counters must all be declared separately.
14024 \begin_inset Newline newline
14025 \end_inset
14026
14027 See 
14028 \begin_inset CommandInset ref
14029 LatexCommand ref
14030 reference "subsec:Counters"
14031
14032 \end_inset
14033
14034  for details on counters.
14035 \end_layout
14036
14037 \begin_layout Description
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 LabelFont
14043 \end_layout
14044
14045 \end_inset
14046
14047  The font used for the label.
14048  See 
14049 \begin_inset CommandInset ref
14050 LatexCommand ref
14051 reference "subsec:Font-description"
14052
14053 \end_inset
14054
14055 .
14056 \end_layout
14057
14058 \begin_layout Description
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 LabelIndent
14064 \end_layout
14065
14066 \end_inset
14067
14068  [
14069 \begin_inset Flex Code
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073 string=""
14074 \end_layout
14075
14076 \end_inset
14077
14078 ] Text that indicates how far a label should be indented.
14079 \end_layout
14080
14081 \begin_layout Description
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 LabelSep
14087 \end_layout
14088
14089 \end_inset
14090
14091  [
14092 \begin_inset Flex Code
14093 status collapsed
14094
14095 \begin_layout Plain Layout
14096 string=""
14097 \end_layout
14098
14099 \end_inset
14100
14101 ] Text that indicates the amount of horizontal space between the label and
14102  the text body.
14103  Only used for labels that are not above the text body.
14104 \end_layout
14105
14106 \begin_layout Description
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 LabelString
14112 \end_layout
14113
14114 \end_inset
14115
14116  [
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 string=""
14122 \end_layout
14123
14124 \end_inset
14125
14126 ] The string used for the label.
14127  When 
14128 \begin_inset Flex Code
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 LabelCounter
14133 \end_layout
14134
14135 \end_inset
14136
14137  is set, this string can be contain the special formatting commands described
14138  in 
14139 \begin_inset CommandInset ref
14140 LatexCommand ref
14141 reference "subsec:Counters"
14142
14143 \end_inset
14144
14145 .
14146 \end_layout
14147
14148 \begin_layout Description
14149 \begin_inset Flex Code
14150 status collapsed
14151
14152 \begin_layout Plain Layout
14153 LabelStringAppendix
14154 \end_layout
14155
14156 \end_inset
14157
14158  [
14159 \begin_inset Flex Code
14160 status collapsed
14161
14162 \begin_layout Plain Layout
14163 string=""
14164 \end_layout
14165
14166 \end_inset
14167
14168 ] This is used inside the appendix instead of
14169 \begin_inset Newline newline
14170 \end_inset
14171
14172
14173 \begin_inset Flex Code
14174 status collapsed
14175
14176 \begin_layout Plain Layout
14177 LabelString
14178 \end_layout
14179
14180 \end_inset
14181
14182 .
14183  Note that every 
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188 LabelString
14189 \end_layout
14190
14191 \end_inset
14192
14193  statement resets
14194 \begin_inset Newline newline
14195 \end_inset
14196
14197
14198 \begin_inset Flex Code
14199 status collapsed
14200
14201 \begin_layout Plain Layout
14202 LabelStringAppendix
14203 \end_layout
14204
14205 \end_inset
14206
14207  too.
14208 \end_layout
14209
14210 \begin_layout Description
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 LabelTag
14216 \end_layout
14217
14218 \end_inset
14219
14220  [FIXME] (Used only with XML-type formats.)
14221 \end_layout
14222
14223 \begin_layout Description
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 LabelType
14229 \end_layout
14230
14231 \end_inset
14232
14233  [
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238
14239 \emph on
14240 No_Label
14241 \emph default
14242 , Manual, Static, Above, 
14243 \begin_inset Newline newline
14244 \end_inset
14245
14246 Centered, Sensitive, Enumerate,
14247 \begin_inset Newline newline
14248 \end_inset
14249
14250 Itemize, Bibliography
14251 \end_layout
14252
14253 \end_inset
14254
14255 ]
14256 \end_layout
14257
14258 \begin_deeper
14259 \begin_layout Description
14260 \begin_inset Flex Code
14261 status collapsed
14262
14263 \begin_layout Plain Layout
14264 Manual
14265 \end_layout
14266
14267 \end_inset
14268
14269  means the label is the very first word (up to the first real blank).
14270  Use protected spaces if you want more than one word as the label.
14271  
14272 \end_layout
14273
14274 \begin_layout Description
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 Static
14280 \end_layout
14281
14282 \end_inset
14283
14284  means the label is simply what is declared as 
14285 \begin_inset Flex Code
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 LabelString
14290 \end_layout
14291
14292 \end_inset
14293
14294 .
14295  This will be displayed 
14296 \begin_inset Quotes eld
14297 \end_inset
14298
14299 inline
14300 \begin_inset Quotes erd
14301 \end_inset
14302
14303 , at the beginning of the paragraph.
14304  If the 
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 LatexType
14310 \end_layout
14311
14312 \end_inset
14313
14314  is 
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 Environment
14320 \end_layout
14321
14322 \end_inset
14323
14324 , then it will be displayed only in the first paragraph of any sequence
14325  of paragraphs with the same 
14326 \begin_inset Flex Code
14327 status collapsed
14328
14329 \begin_layout Plain Layout
14330 Style
14331 \end_layout
14332
14333 \end_inset
14334
14335 .
14336 \end_layout
14337
14338 \begin_layout Description
14339 \begin_inset Flex Code
14340 status collapsed
14341
14342 \begin_layout Plain Layout
14343 Above
14344 \end_layout
14345
14346 \end_inset
14347
14348
14349 \begin_inset space ~
14350 \end_inset
14351
14352 and
14353 \begin_inset space ~
14354 \end_inset
14355
14356
14357 \begin_inset Flex Code
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 Centered
14362 \end_layout
14363
14364 \end_inset
14365
14366  are special cases of 
14367 \begin_inset Flex Code
14368 status collapsed
14369
14370 \begin_layout Plain Layout
14371 Static
14372 \end_layout
14373
14374 \end_inset
14375
14376 .
14377  The label will be printed above the paragraph either at the beginning of
14378  the line or centered.
14379 \end_layout
14380
14381 \begin_layout Description
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 Sensitive
14387 \end_layout
14388
14389 \end_inset
14390
14391  is a special case for the caption-labels 
14392 \begin_inset Quotes eld
14393 \end_inset
14394
14395 Figure
14396 \begin_inset Quotes erd
14397 \end_inset
14398
14399  and 
14400 \begin_inset Quotes eld
14401 \end_inset
14402
14403 Table
14404 \begin_inset Quotes erd
14405 \end_inset
14406
14407 .
14408 \begin_inset Newline newline
14409 \end_inset
14410
14411
14412 \begin_inset Flex Code
14413 status collapsed
14414
14415 \begin_layout Plain Layout
14416 Sensitive
14417 \end_layout
14418
14419 \end_inset
14420
14421  means the (hardcoded) label string depends on the kind of float: It is
14422  hardcoded to be `FloatType N', where N is the value of the counter associated
14423  with the float.
14424  For the case that a caption is inserted outside of a float the 
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429 LabelString
14430 \end_layout
14431
14432 \end_inset
14433
14434  will appear as 
14435 \begin_inset Quotes eld
14436 \end_inset
14437
14438 Senseless!
14439 \begin_inset Quotes erd
14440 \end_inset
14441
14442 .
14443 \end_layout
14444
14445 \begin_layout Description
14446 \begin_inset Flex Code
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450 Enumerate
14451 \end_layout
14452
14453 \end_inset
14454
14455  produces the usual sort of enumeration labels.
14456  The number type needs to be set in the 
14457 \family sans
14458 Counter
14459 \family default
14460 , see 
14461 \begin_inset CommandInset ref
14462 LatexCommand ref
14463 reference "subsec:Counters"
14464
14465 \end_inset
14466
14467 .
14468 \end_layout
14469
14470 \begin_layout Description
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 Itemize
14476 \end_layout
14477
14478 \end_inset
14479
14480  produces various bullets at the different levels.
14481  The bullet types displayed can be set via 
14482 \begin_inset Flex Noun
14483 status collapsed
14484
14485 \begin_layout Plain Layout
14486 Document\SpecialChar menuseparator
14487 Settings\SpecialChar menuseparator
14488 Bullets
14489 \end_layout
14490
14491 \end_inset
14492
14493 .
14494 \end_layout
14495
14496 \begin_layout Description
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501 Bibliography
14502 \end_layout
14503
14504 \end_inset
14505
14506  should be used only with 
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511 LatexType BibEnvironment
14512 \end_layout
14513
14514 \end_inset
14515
14516 .
14517 \end_layout
14518
14519 \end_deeper
14520 \begin_layout Description
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525 LangPreamble
14526 \end_layout
14527
14528 \end_inset
14529
14530  Note that this will completely override any prior 
14531 \begin_inset Flex Code
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535 LangPreamble
14536 \end_layout
14537
14538 \end_inset
14539
14540  declaration for this style.
14541  Must end with 
14542 \begin_inset Quotes eld
14543 \end_inset
14544
14545
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 EndLangPreamble
14551 \end_layout
14552
14553 \end_inset
14554
14555
14556 \begin_inset Quotes erd
14557 \end_inset
14558
14559 .
14560  See 
14561 \begin_inset CommandInset ref
14562 LatexCommand ref
14563 reference "subsec:I18n"
14564
14565 \end_inset
14566
14567  for details on its use.
14568 \end_layout
14569
14570 \begin_layout Description
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 LatexName
14576 \end_layout
14577
14578 \end_inset
14579
14580  [
14581 \begin_inset Flex Code
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585 <name>
14586 \end_layout
14587
14588 \end_inset
14589
14590 ] The name of the corresponding \SpecialChar LaTeX
14591  stuff.
14592  Either the environment or command name.
14593 \end_layout
14594
14595 \begin_layout Description
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600 LatexParam
14601 \end_layout
14602
14603 \end_inset
14604
14605  [
14606 \begin_inset Flex Code
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 <parameter>
14611 \end_layout
14612
14613 \end_inset
14614
14615 ] An optional parameter for the corresponding 
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620 LatexName
14621 \end_layout
14622
14623 \end_inset
14624
14625  stuff.
14626  This parameter cannot be changed from within \SpecialChar LyX
14627  (use 
14628 \begin_inset Flex Code
14629 status collapsed
14630
14631 \begin_layout Plain Layout
14632 Argument
14633 \end_layout
14634
14635 \end_inset
14636
14637  for customizable parameters).
14638  This will be output as is after all \SpecialChar LaTeX
14639  
14640 \begin_inset Flex Code
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644 Argument
14645 \end_layout
14646
14647 \end_inset
14648
14649 s.
14650 \end_layout
14651
14652 \begin_layout Description
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 LatexType
14658 \end_layout
14659
14660 \end_inset
14661
14662  [
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667
14668 \emph on
14669 Paragraph
14670 \emph default
14671 , Command, Environment, Item_Environment,
14672 \begin_inset Newline newline
14673 \end_inset
14674
14675 List_Environment, Bib_Environment
14676 \end_layout
14677
14678 \end_inset
14679
14680 ] How the style should be translated into \SpecialChar LaTeX
14681 .
14682 \begin_inset Foot
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 \begin_inset Flex Code
14687 status collapsed
14688
14689 \begin_layout Plain Layout
14690 LatexType
14691 \end_layout
14692
14693 \end_inset
14694
14695  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14696  Visit the SGML class files for specific examples.
14697 \end_layout
14698
14699 \end_inset
14700
14701
14702 \end_layout
14703
14704 \begin_deeper
14705 \begin_layout Description
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 Paragraph
14711 \end_layout
14712
14713 \end_inset
14714
14715  means nothing special.
14716 \end_layout
14717
14718 \begin_layout Description
14719 \begin_inset Flex Code
14720 status collapsed
14721
14722 \begin_layout Plain Layout
14723 Command
14724 \end_layout
14725
14726 \end_inset
14727
14728  means 
14729 \begin_inset Flex Code
14730 status collapsed
14731
14732 \begin_layout Plain Layout
14733
14734 \backslash
14735
14736 \emph on
14737 LatexName
14738 \emph default
14739 {\SpecialChar ldots
14740 }
14741 \end_layout
14742
14743 \end_inset
14744
14745 .
14746 \end_layout
14747
14748 \begin_layout Description
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 Environment
14754 \end_layout
14755
14756 \end_inset
14757
14758  means 
14759 \begin_inset Flex Code
14760 status collapsed
14761
14762 \begin_layout Plain Layout
14763
14764 \backslash
14765 begin{
14766 \emph on
14767 LatexName
14768 \emph default
14769 }\SpecialChar ldots
14770
14771 \backslash
14772 end{
14773 \emph on
14774 LatexName
14775 \emph default
14776 }
14777 \end_layout
14778
14779 \end_inset
14780
14781 .
14782  
14783 \end_layout
14784
14785 \begin_layout Description
14786 \begin_inset Flex Code
14787 status collapsed
14788
14789 \begin_layout Plain Layout
14790 Item_Environment
14791 \end_layout
14792
14793 \end_inset
14794
14795  is the same as 
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 Environment
14801 \end_layout
14802
14803 \end_inset
14804
14805 , except that an 
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810
14811 \backslash
14812 item
14813 \end_layout
14814
14815 \end_inset
14816
14817  is generated for each paragraph of this environment.
14818  
14819 \end_layout
14820
14821 \begin_layout Description
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 List_Environment
14827 \end_layout
14828
14829 \end_inset
14830
14831  is the same as 
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 Item_Environment
14837 \end_layout
14838
14839 \end_inset
14840
14841 , except that
14842 \begin_inset Newline newline
14843 \end_inset
14844
14845
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 LabelWidthString
14851 \end_layout
14852
14853 \end_inset
14854
14855  is passed as an argument to the environment.
14856 \begin_inset Newline newline
14857 \end_inset
14858
14859
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864 LabelWidthString
14865 \end_layout
14866
14867 \end_inset
14868
14869  can be defined in the 
14870 \begin_inset Flex Noun
14871 status collapsed
14872
14873 \begin_layout Plain Layout
14874 Edit\SpecialChar menuseparator
14875 Paragraph
14876 \begin_inset space ~
14877 \end_inset
14878
14879 settings
14880 \end_layout
14881
14882 \end_inset
14883
14884  dialog.
14885 \end_layout
14886
14887 \begin_layout Description
14888 \begin_inset Flex Code
14889 status collapsed
14890
14891 \begin_layout Plain Layout
14892 Bib_Environment
14893 \end_layout
14894
14895 \end_inset
14896
14897  is like 
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 Environment
14903 \end_layout
14904
14905 \end_inset
14906
14907  but adds the necessary mandatory argument (the longest label) to the begin
14908  statement of the bibliography environment:
14909 \begin_inset Newline newline
14910 \end_inset
14911
14912
14913 \begin_inset Flex Code
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917
14918 \backslash
14919 begin{thebibliography}{99}
14920 \end_layout
14921
14922 \end_inset
14923
14924 .
14925  It is therefore only useful for bibliography environments.
14926  The default longest label 
14927 \begin_inset Quotes eld
14928 \end_inset
14929
14930 99
14931 \begin_inset Quotes erd
14932 \end_inset
14933
14934  can be changed by the user in the paragraph settings of a bibliography
14935  item.
14936 \end_layout
14937
14938 \begin_layout Standard
14939 Putting the last few things together, the \SpecialChar LaTeX
14940  output will be either: 
14941 \end_layout
14942
14943 \begin_layout LyX-Code
14944
14945 \backslash
14946 LatexName[LatexParam]{\SpecialChar ldots
14947 }
14948 \end_layout
14949
14950 \begin_layout Standard
14951 or: 
14952 \end_layout
14953
14954 \begin_layout LyX-Code
14955
14956 \backslash
14957 begin{LatexName}[LatexParam] \SpecialChar ldots
14958  
14959 \backslash
14960 end{LatexName}.
14961 \end_layout
14962
14963 \begin_layout Standard
14964 depending upon the \SpecialChar LaTeX
14965  type.
14966 \end_layout
14967
14968 \end_deeper
14969 \begin_layout Description
14970 \begin_inset Flex Code
14971 status collapsed
14972
14973 \begin_layout Plain Layout
14974 LeftDelim
14975 \end_layout
14976
14977 \end_inset
14978
14979  [
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 string
14985 \end_layout
14986
14987 \end_inset
14988
14989 ] A string that is put at the beginning of the style content.
14990  A line break in the output can be indicated by 
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 <br/>
14996 \end_layout
14997
14998 \end_inset
14999
15000 .
15001 \end_layout
15002
15003 \begin_layout Description
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 LeftMargin
15009 \end_layout
15010
15011 \end_inset
15012
15013  [
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 string=""
15019 \end_layout
15020
15021 \end_inset
15022
15023 ] If you put styles into environments, the different 
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 LeftMargin
15029 \end_layout
15030
15031 \end_inset
15032
15033  are not simply added, but added with a factor 
15034 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15035 \end_inset
15036
15037 .
15038  Note that this parameter is also used when 
15039 \begin_inset Flex Code
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043 Margin
15044 \end_layout
15045
15046 \end_inset
15047
15048  is defined as 
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 Manual
15054 \end_layout
15055
15056 \end_inset
15057
15058  or 
15059 \begin_inset Flex Code
15060 status collapsed
15061
15062 \begin_layout Plain Layout
15063 Dynamic
15064 \end_layout
15065
15066 \end_inset
15067
15068 .
15069  Then it is added to the manual or dynamic margin.
15070 \begin_inset Newline newline
15071 \end_inset
15072
15073 For example 
15074 \begin_inset Quotes eld
15075 \end_inset
15076
15077
15078 \begin_inset Flex Code
15079 status collapsed
15080
15081 \begin_layout Plain Layout
15082 MM
15083 \end_layout
15084
15085 \end_inset
15086
15087
15088 \begin_inset Quotes erd
15089 \end_inset
15090
15091  means that the paragraph is indented with the width of 
15092 \begin_inset Quotes eld
15093 \end_inset
15094
15095
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 MM
15101 \end_layout
15102
15103 \end_inset
15104
15105
15106 \begin_inset Quotes erd
15107 \end_inset
15108
15109  in the normal font.
15110  You can get a negative width by prefixing the string with 
15111 \begin_inset Quotes eld
15112 \end_inset
15113
15114
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 -
15120 \end_layout
15121
15122 \end_inset
15123
15124
15125 \begin_inset Quotes erd
15126 \end_inset
15127
15128 .
15129  This way was chosen so that the look is the same with each used screen
15130  font.
15131 \end_layout
15132
15133 \begin_layout Description
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138 Margin
15139 \end_layout
15140
15141 \end_inset
15142
15143  [
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148
15149 \emph on
15150 Static
15151 \emph default
15152 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15153 \end_layout
15154
15155 \end_inset
15156
15157
15158 \begin_inset Newline newline
15159 \end_inset
15160
15161 The kind of margin that the style has on the left side.
15162 \end_layout
15163
15164 \begin_deeper
15165 \begin_layout Description
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 Static
15171 \end_layout
15172
15173 \end_inset
15174
15175  just means a fixed margin.
15176 \end_layout
15177
15178 \begin_layout Description
15179 \begin_inset Flex Code
15180 status collapsed
15181
15182 \begin_layout Plain Layout
15183 Manual
15184 \end_layout
15185
15186 \end_inset
15187
15188  means that the left margin depends on the string entered in the 
15189 \begin_inset Flex Noun
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193 Edit\SpecialChar menuseparator
15194 Paragraph
15195 \begin_inset space ~
15196 \end_inset
15197
15198 Settings
15199 \end_layout
15200
15201 \end_inset
15202
15203  dialog.
15204  This is used to typeset nice lists without tabulators.
15205 \end_layout
15206
15207 \begin_layout Description
15208 \begin_inset Flex Code
15209 status collapsed
15210
15211 \begin_layout Plain Layout
15212 Dynamic
15213 \end_layout
15214
15215 \end_inset
15216
15217  means that the margin depends on the size of the label.
15218  This is used for automatic enumerated headlines.
15219  It is obvious that the headline 
15220 \begin_inset Quotes eld
15221 \end_inset
15222
15223 5.4.3.2.1 Very long headline
15224 \begin_inset Quotes erd
15225 \end_inset
15226
15227  must have a wider left margin (as wide as 
15228 \begin_inset Quotes eld
15229 \end_inset
15230
15231 5.4.3.2.1
15232 \begin_inset Quotes erd
15233 \end_inset
15234
15235  plus the space) than 
15236 \begin_inset Quotes eld
15237 \end_inset
15238
15239 3.2 Very long headline
15240 \begin_inset Quotes erd
15241 \end_inset
15242
15243 , even if standard 
15244 \begin_inset Quotes eld
15245 \end_inset
15246
15247 word processors
15248 \begin_inset Quotes erd
15249 \end_inset
15250
15251  are not able to do this.
15252 \end_layout
15253
15254 \begin_layout Description
15255 \begin_inset Flex Code
15256 status collapsed
15257
15258 \begin_layout Plain Layout
15259 First_Dynamic
15260 \end_layout
15261
15262 \end_inset
15263
15264  is similar, but only the very first row of the paragraph is dynamic, while
15265  the others are static; this is used, for example, for descriptions.
15266 \end_layout
15267
15268 \begin_layout Description
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 Right_Address_Box
15274 \end_layout
15275
15276 \end_inset
15277
15278  means the margin is chosen in a way that the longest row of this paragraph
15279  fits to the right margin.
15280  This is used to typeset an address on the right edge of the page.
15281 \end_layout
15282
15283 \end_deeper
15284 \begin_layout Description
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 NeedProtect
15290 \end_layout
15291
15292 \end_inset
15293
15294  [
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299
15300 \emph on
15301 0
15302 \end_layout
15303
15304 \end_inset
15305
15306 ,
15307 \begin_inset space \thinspace{}
15308 \end_inset
15309
15310
15311 \begin_inset Flex Code
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 1
15316 \end_layout
15317
15318 \end_inset
15319
15320 ] Whether fragile commands in this style should be 
15321 \begin_inset Flex Code
15322 status collapsed
15323
15324 \begin_layout Plain Layout
15325
15326 \backslash
15327 protect
15328 \end_layout
15329
15330 \end_inset
15331
15332 'ed.
15333  (Note: This is 
15334 \emph on
15335 not
15336 \emph default
15337  whether this command should itself be protected.)
15338 \change_inserted -712698321 1523696949
15339
15340 \end_layout
15341
15342 \begin_layout Description
15343
15344 \change_inserted -712698321 1552395557
15345 \begin_inset Flex Code
15346 status collapsed
15347
15348 \begin_layout Plain Layout
15349
15350 \change_inserted -712698321 1523696950
15351 NeedCProtect
15352 \end_layout
15353
15354 \end_inset
15355
15356  [
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361
15362 \change_inserted -712698321 1523696950
15363
15364 \emph on
15365 0
15366 \end_layout
15367
15368 \end_inset
15369
15370 ,
15371 \begin_inset space \thinspace{}
15372 \end_inset
15373
15374
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379
15380 \change_inserted -712698321 1523696950
15381 1
15382 \end_layout
15383
15384 \end_inset
15385
15386 ] This causes macros that contain this layout to be protected with 
15387 \begin_inset Flex Code
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391
15392 \change_inserted -712698321 1523696950
15393
15394 \backslash
15395 cprotect
15396 \end_layout
15397
15398 \end_inset
15399
15400  (cf.
15401  package 
15402 \family sans
15403 cprotect
15404 \family default
15405 ) if necessary and thus allows (some) verbatim stuff in macros.
15406 \end_layout
15407
15408 \begin_layout Description
15409
15410 \change_inserted -712698321 1552395844
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415
15416 \change_inserted -712698321 1552395561
15417 NeedMBoxProtect
15418 \end_layout
15419
15420 \end_inset
15421
15422  [
15423 \begin_inset Flex Code
15424 status collapsed
15425
15426 \begin_layout Plain Layout
15427
15428 \change_inserted -712698321 1552395557
15429
15430 \emph on
15431 0
15432 \end_layout
15433
15434 \end_inset
15435
15436 ,
15437 \begin_inset space \thinspace{}
15438 \end_inset
15439
15440
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445
15446 \change_inserted -712698321 1552395557
15447 1
15448 \end_layout
15449
15450 \end_inset
15451
15452 ] Whether specific commands in this style (such as 
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457
15458 \change_inserted -712698321 1552395655
15459
15460 \backslash
15461 cite
15462 \change_unchanged
15463
15464 \end_layout
15465
15466 \end_inset
15467
15468  and 
15469 \begin_inset Flex Code
15470 status collapsed
15471
15472 \begin_layout Plain Layout
15473
15474 \change_inserted -712698321 1552395661
15475
15476 \backslash
15477 ref
15478 \change_unchanged
15479
15480 \end_layout
15481
15482 \end_inset
15483
15484 ) should be protected in an 
15485 \begin_inset Flex Code
15486 status collapsed
15487
15488 \begin_layout Plain Layout
15489
15490 \change_inserted -712698321 1552395631
15491
15492 \backslash
15493 mbox
15494 \change_unchanged
15495
15496 \end_layout
15497
15498 \end_inset
15499
15500 .
15501  This is particularly needed for styles that draw on 
15502 \family sans
15503 ulem
15504 \family default
15505  or 
15506 \family sans
15507 soul
15508 \family default
15509  commands which parse their content in complex ways.
15510 \change_unchanged
15511
15512 \end_layout
15513
15514 \begin_layout Description
15515 \begin_inset Flex Code
15516 status collapsed
15517
15518 \begin_layout Plain Layout
15519 Newline
15520 \end_layout
15521
15522 \end_inset
15523
15524  [
15525 \begin_inset Flex Code
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529 0
15530 \end_layout
15531
15532 \end_inset
15533
15534 ,
15535 \begin_inset space \thinspace{}
15536 \end_inset
15537
15538
15539 \begin_inset Flex Code
15540 status collapsed
15541
15542 \begin_layout Plain Layout
15543
15544 \emph on
15545 1
15546 \end_layout
15547
15548 \end_inset
15549
15550 ] Whether newlines are translated into \SpecialChar LaTeX
15551  newlines (
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556
15557 \backslash
15558
15559 \backslash
15560
15561 \end_layout
15562
15563 \end_inset
15564
15565 ) or not.
15566  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15567  editing
15568  inside \SpecialChar LyX
15569 .
15570 \end_layout
15571
15572 \begin_layout Description
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 NextNoIndent
15578 \end_layout
15579
15580 \end_inset
15581
15582  [
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587
15588 \emph on
15589 0
15590 \end_layout
15591
15592 \end_inset
15593
15594 ,
15595 \begin_inset space \thinspace{}
15596 \end_inset
15597
15598
15599 \begin_inset Flex Code
15600 status collapsed
15601
15602 \begin_layout Plain Layout
15603 1
15604 \end_layout
15605
15606 \end_inset
15607
15608 ] If set to true, and if 
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613 DefaultStyle
15614 \end_layout
15615
15616 \end_inset
15617
15618  (usually 
15619 \begin_inset Flex Code
15620 status collapsed
15621
15622 \begin_layout Plain Layout
15623 Standard
15624 \end_layout
15625
15626 \end_inset
15627
15628 ) paragraphs are being indented, then the indentation of such a paragraph
15629  following one of this type will be suppressed.
15630  (So this will not affect the display of non-default paragraphs.)
15631 \end_layout
15632
15633 \begin_layout Description
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638 ObsoletedBy
15639 \end_layout
15640
15641 \end_inset
15642
15643  [
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648 <name>
15649 \end_layout
15650
15651 \end_inset
15652
15653 ] Name of a style that has replaced this style.
15654  This is used to rename a style, while keeping backward compatibility.
15655 \end_layout
15656
15657 \begin_layout Description
15658 \begin_inset Flex Code
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 ParagraphGroup
15663 \end_layout
15664
15665 \end_inset
15666
15667  [
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672 0
15673 \end_layout
15674
15675 \end_inset
15676
15677 ,
15678 \begin_inset space \thinspace{}
15679 \end_inset
15680
15681
15682 \begin_inset Flex Code
15683 status collapsed
15684
15685 \begin_layout Plain Layout
15686 1
15687 \end_layout
15688
15689 \end_inset
15690
15691 ] Determines whether consecutive paragraphs of the same type are treated
15692  as belonging together.
15693  This has the effect that the 
15694 \begin_inset Flex Code
15695 status collapsed
15696
15697 \begin_layout Plain Layout
15698 GuiLabel
15699 \end_layout
15700
15701 \end_inset
15702
15703  is only printed once before such a group.
15704  By default, this is true for 
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 LaTeXType
15710 \end_layout
15711
15712 \end_inset
15713
15714  
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 Environment
15720 \end_layout
15721
15722 \end_inset
15723
15724  and 
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 Bib_Environment
15730 \end_layout
15731
15732 \end_inset
15733
15734  and false for all other types.
15735 \end_layout
15736
15737 \begin_layout Description
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 ParbreakIsNewline
15743 \end_layout
15744
15745 \end_inset
15746
15747  [
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752
15753 \emph on
15754 0
15755 \end_layout
15756
15757 \end_inset
15758
15759 ,
15760 \begin_inset space \thinspace{}
15761 \end_inset
15762
15763
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 1
15769 \end_layout
15770
15771 \end_inset
15772
15773 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15774  output,
15775  but only by a line break; together with 
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 PassThru 1
15781 \end_layout
15782
15783 \end_inset
15784
15785 , this allows to emulate a plain text editor (like the ERT inset).
15786 \end_layout
15787
15788 \begin_layout Description
15789 \begin_inset Flex Code
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793 ParIndent
15794 \end_layout
15795
15796 \end_inset
15797
15798  [
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 string=""
15804 \end_layout
15805
15806 \end_inset
15807
15808 ] The indent of the very first line of a paragraph.
15809  The
15810 \begin_inset Newline newline
15811 \end_inset
15812
15813
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 Parindent
15819 \end_layout
15820
15821 \end_inset
15822
15823  will be fixed for a certain style.
15824  The exception is the default style, since the indentation for these paragraphs
15825  can be prohibited with 
15826 \begin_inset Flex Code
15827 status collapsed
15828
15829 \begin_layout Plain Layout
15830 NextNoIndent
15831 \end_layout
15832
15833 \end_inset
15834
15835 .
15836  Also, 
15837 \begin_inset Flex Code
15838 status collapsed
15839
15840 \begin_layout Plain Layout
15841 Standard
15842 \end_layout
15843
15844 \end_inset
15845
15846  style paragraphs inside environments use the 
15847 \begin_inset Flex Code
15848 status collapsed
15849
15850 \begin_layout Plain Layout
15851 Parindent
15852 \end_layout
15853
15854 \end_inset
15855
15856  of the environment, not their native one.
15857  For example, 
15858 \begin_inset Flex Code
15859 status collapsed
15860
15861 \begin_layout Plain Layout
15862 Standard
15863 \end_layout
15864
15865 \end_inset
15866
15867  paragraphs inside an enumeration are not indented.
15868 \end_layout
15869
15870 \begin_layout Description
15871 \begin_inset Flex Code
15872 status collapsed
15873
15874 \begin_layout Plain Layout
15875 ParSep
15876 \end_layout
15877
15878 \end_inset
15879
15880  [
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 float=0
15886 \end_layout
15887
15888 \end_inset
15889
15890 ] The vertical space between two paragraphs of this style.
15891 \end_layout
15892
15893 \begin_layout Description
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 Parskip
15899 \end_layout
15900
15901 \end_inset
15902
15903  [
15904 \begin_inset Flex Code
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908 float=0
15909 \end_layout
15910
15911 \end_inset
15912
15913 ] \SpecialChar LyX
15914  allows the user to choose either 
15915 \begin_inset Quotes eld
15916 \end_inset
15917
15918 indent
15919 \begin_inset Quotes erd
15920 \end_inset
15921
15922  or 
15923 \begin_inset Quotes eld
15924 \end_inset
15925
15926 skip
15927 \begin_inset Quotes erd
15928 \end_inset
15929
15930  to separate paragraphs.
15931  When 
15932 \begin_inset Quotes eld
15933 \end_inset
15934
15935 indent
15936 \begin_inset Quotes erd
15937 \end_inset
15938
15939  is chosen, 
15940 \begin_inset Flex Code
15941 status collapsed
15942
15943 \begin_layout Plain Layout
15944 Parskip
15945 \end_layout
15946
15947 \end_inset
15948
15949  is ignored.
15950  When 
15951 \begin_inset Quotes eld
15952 \end_inset
15953
15954 skip
15955 \begin_inset Quotes erd
15956 \end_inset
15957
15958  is chosen, 
15959 \begin_inset Flex Code
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 ParIndent
15964 \end_layout
15965
15966 \end_inset
15967
15968  is ignored and all paragraphs are separated by the 
15969 \begin_inset Flex Code
15970 status collapsed
15971
15972 \begin_layout Plain Layout
15973 Parskip
15974 \end_layout
15975
15976 \end_inset
15977
15978  argument.
15979  The vertical space is calculated with 
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 Parskip
15985 \begin_inset space ~
15986 \end_inset
15987
15988 * DefaultHeight
15989 \end_layout
15990
15991 \end_inset
15992
15993  where 
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 DefaultHeight
15999 \end_layout
16000
16001 \end_inset
16002
16003  is the height of a row with the normal font.
16004  This way, the look stays the same with different screen fonts.
16005 \end_layout
16006
16007 \begin_layout Description
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 PassThru
16013 \end_layout
16014
16015 \end_inset
16016
16017  [
16018 \begin_inset Flex Code
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022
16023 \emph on
16024 0
16025 \end_layout
16026
16027 \end_inset
16028
16029 ,
16030 \begin_inset space \thinspace{}
16031 \end_inset
16032
16033
16034 \begin_inset Flex Code
16035 status collapsed
16036
16037 \begin_layout Plain Layout
16038 1
16039 \end_layout
16040
16041 \end_inset
16042
16043 ] Whether the contents of this paragraph should be output in raw form, meaning
16044  without special translations that \SpecialChar LaTeX
16045  would require.
16046 \end_layout
16047
16048 \begin_layout Description
16049 \begin_inset Flex Code
16050 status collapsed
16051
16052 \begin_layout Plain Layout
16053 PassThruChars
16054 \end_layout
16055
16056 \end_inset
16057
16058  [
16059 \begin_inset Flex Code
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063 string
16064 \end_layout
16065
16066 \end_inset
16067
16068 ]
16069 \family typewriter
16070  
16071 \family default
16072 Defines individual characters that should be output in raw form, meaning
16073  without special translations that \SpecialChar LaTeX
16074  would require.
16075 \end_layout
16076
16077 \begin_layout Description
16078 \begin_inset Flex Code
16079 status collapsed
16080
16081 \begin_layout Plain Layout
16082 Preamble
16083 \end_layout
16084
16085 \end_inset
16086
16087  Information to be included in the \SpecialChar LaTeX
16088  preamble when this style is used.
16089  Used to define macros, load packages, etc., required by this particular
16090  style.
16091  Must end with 
16092 \begin_inset Quotes eld
16093 \end_inset
16094
16095
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 EndPreamble
16101 \end_layout
16102
16103 \end_inset
16104
16105
16106 \begin_inset Quotes erd
16107 \end_inset
16108
16109 .
16110 \end_layout
16111
16112 \begin_layout Description
16113 \begin_inset Flex Code
16114 status collapsed
16115
16116 \begin_layout Plain Layout
16117 RefPrefix
16118 \end_layout
16119
16120 \end_inset
16121
16122  [
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 string
16128 \end_layout
16129
16130 \end_inset
16131
16132 ] The prefix to use when creating labels referring to paragraphs of this
16133  type.
16134  This allows the use of formatted references.
16135 \end_layout
16136
16137 \begin_layout Description
16138 \begin_inset Flex Code
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142 Requires 
16143 \end_layout
16144
16145 \end_inset
16146
16147  [
16148 \begin_inset Flex Code
16149 status collapsed
16150
16151 \begin_layout Plain Layout
16152 string
16153 \end_layout
16154
16155 \end_inset
16156
16157 ] Whether the style requires the feature 
16158 \begin_inset Flex Code
16159 status collapsed
16160
16161 \begin_layout Plain Layout
16162 string
16163 \end_layout
16164
16165 \end_inset
16166
16167  (see 
16168 \begin_inset CommandInset ref
16169 LatexCommand ref
16170 reference "chap:List-of-functions"
16171
16172 \end_inset
16173
16174  for the list of features).
16175  If you require a package with specific options, you can additionally use
16176  
16177 \begin_inset Flex Code
16178 status collapsed
16179
16180 \begin_layout Plain Layout
16181 PackageOptions
16182 \end_layout
16183
16184 \end_inset
16185
16186  as a general text class parameter (see 
16187 \begin_inset CommandInset ref
16188 LatexCommand ref
16189 reference "subsec:General-text-class"
16190
16191 \end_inset
16192
16193 ).
16194 \end_layout
16195
16196 \begin_layout Description
16197 \begin_inset Flex Code
16198 status collapsed
16199
16200 \begin_layout Plain Layout
16201 ResetArgs
16202 \end_layout
16203
16204 \end_inset
16205
16206  [
16207 \begin_inset Flex Code
16208 status collapsed
16209
16210 \begin_layout Plain Layout
16211
16212 \emph on
16213 0
16214 \end_layout
16215
16216 \end_inset
16217
16218 ,
16219 \begin_inset Flex Code
16220 status collapsed
16221
16222 \begin_layout Plain Layout
16223 1
16224 \end_layout
16225
16226 \end_inset
16227
16228 ] Resets the \SpecialChar LaTeX
16229  arguments of this style (as defined via the 
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 Argument
16235 \end_layout
16236
16237 \end_inset
16238
16239  tag).
16240  This is useful if you have copied a style via 
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 CopyStyle
16246 \end_layout
16247
16248 \end_inset
16249
16250 , but you do not want to inherit its (required and optional) arguments.
16251 \end_layout
16252
16253 \begin_layout Description
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 ResumeCounter
16259 \end_layout
16260
16261 \end_inset
16262
16263  [
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268
16269 \emph on
16270 0
16271 \end_layout
16272
16273 \end_inset
16274
16275 ,
16276 \begin_inset Flex Code
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280 1
16281 \end_layout
16282
16283 \end_inset
16284
16285 ] Resumes a counter that is usually reset at each new sequence of layouts.
16286  This is currently only useful when 
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291 LabelType
16292 \end_layout
16293
16294 \end_inset
16295
16296  is 
16297 \begin_inset Flex Code
16298 status collapsed
16299
16300 \begin_layout Plain Layout
16301 Enumerate
16302 \end_layout
16303
16304 \end_inset
16305
16306 .
16307 \end_layout
16308
16309 \begin_layout Description
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314 RightDelim
16315 \end_layout
16316
16317 \end_inset
16318
16319  [
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 string
16325 \end_layout
16326
16327 \end_inset
16328
16329 ] A string that is put at the end of the layout content.
16330  A line break in the output can be indicated by 
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335 <br/>
16336 \end_layout
16337
16338 \end_inset
16339
16340 .
16341 \end_layout
16342
16343 \begin_layout Description
16344 \begin_inset Flex Code
16345 status collapsed
16346
16347 \begin_layout Plain Layout
16348 RightMargin
16349 \end_layout
16350
16351 \end_inset
16352
16353  [
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358 string=""
16359 \end_layout
16360
16361 \end_inset
16362
16363 ] Similar to 
16364 \begin_inset Flex Code
16365 status collapsed
16366
16367 \begin_layout Plain Layout
16368 LeftMargin
16369 \end_layout
16370
16371 \end_inset
16372
16373 .
16374 \end_layout
16375
16376 \begin_layout Description
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381 Spacing
16382 \end_layout
16383
16384 \end_inset
16385
16386  [
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391
16392 \emph on
16393 single
16394 \end_layout
16395
16396 \end_inset
16397
16398
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 onehalf
16404 \end_layout
16405
16406 \end_inset
16407
16408
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413 double
16414 \end_layout
16415
16416 \end_inset
16417
16418
16419 \begin_inset Flex Code
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 other
16424 \begin_inset space ~
16425 \end_inset
16426
16427 <value>
16428 \end_layout
16429
16430 \end_inset
16431
16432 ] This defines what the default spacing should be in the style.
16433  The arguments 
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438 single
16439 \end_layout
16440
16441 \end_inset
16442
16443
16444 \begin_inset Flex Code
16445 status collapsed
16446
16447 \begin_layout Plain Layout
16448 onehalf
16449 \end_layout
16450
16451 \end_inset
16452
16453  and 
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 double
16459 \end_layout
16460
16461 \end_inset
16462
16463  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16464  If you specify the argument 
16465 \begin_inset Flex Code
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469 other
16470 \end_layout
16471
16472 \end_inset
16473
16474 , then you must also provide a value argument which will be the actual multiplie
16475 r value.
16476  Note that, contrary to other parameters, 
16477 \begin_inset Flex Code
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481 Spacing
16482 \end_layout
16483
16484 \end_inset
16485
16486  implies the generation of specific \SpecialChar LaTeX
16487  code, using the \SpecialChar LaTeX
16488  package 
16489 \family roman
16490
16491 \begin_inset Flex Code
16492 status collapsed
16493
16494 \begin_layout Plain Layout
16495 setspace
16496 \end_layout
16497
16498 \end_inset
16499
16500 .
16501 \end_layout
16502
16503 \begin_layout Description
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 Spellcheck
16509 \end_layout
16510
16511 \end_inset
16512
16513  [
16514 \begin_inset Flex Code
16515 status collapsed
16516
16517 \begin_layout Plain Layout
16518 0
16519 \end_layout
16520
16521 \end_inset
16522
16523 ,
16524 \begin_inset space \thinspace{}
16525 \end_inset
16526
16527
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532
16533 \emph on
16534 1
16535 \end_layout
16536
16537 \end_inset
16538
16539 ] Allow spell-checking paragraphs of this style.
16540  Default is true.
16541 \end_layout
16542
16543 \begin_layout Description
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 StepMasterCounter
16549 \end_layout
16550
16551 \end_inset
16552
16553  [
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558
16559 \emph on
16560 0
16561 \end_layout
16562
16563 \end_inset
16564
16565 ,
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570 1
16571 \end_layout
16572
16573 \end_inset
16574
16575 ] Steps the master counter of a given counter at the beginning of a new
16576  sequence of layouts.
16577  This is currently only useful when 
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 LabelType
16583 \end_layout
16584
16585 \end_inset
16586
16587  is 
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Enumerate
16593 \end_layout
16594
16595 \end_inset
16596
16597 .
16598 \end_layout
16599
16600 \begin_layout Description
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605 TextFont
16606 \end_layout
16607
16608 \end_inset
16609
16610  The font used for the text body .
16611  See 
16612 \begin_inset CommandInset ref
16613 LatexCommand ref
16614 reference "subsec:Font-description"
16615
16616 \end_inset
16617
16618 .
16619 \end_layout
16620
16621 \begin_layout Description
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626 TocLevel
16627 \end_layout
16628
16629 \end_inset
16630
16631
16632 \series medium
16633  [
16634 \begin_inset Flex Code
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638
16639 \series medium
16640 int=3
16641 \end_layout
16642
16643 \end_inset
16644
16645 ]
16646 \series default
16647  The level of the style in the table of contents.
16648  This is used for automatic numbering of section headings.
16649 \end_layout
16650
16651 \begin_layout Description
16652 \begin_inset Flex Code
16653 status collapsed
16654
16655 \begin_layout Plain Layout
16656 ToggleIndent
16657 \end_layout
16658
16659 \end_inset
16660
16661  [
16662 \emph on
16663
16664 \begin_inset Flex Code
16665 status collapsed
16666
16667 \begin_layout Plain Layout
16668
16669 \emph on
16670 default
16671 \end_layout
16672
16673 \end_inset
16674
16675
16676 \emph default
16677
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 always
16683 \end_layout
16684
16685 \end_inset
16686
16687
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 never
16693 \end_layout
16694
16695 \end_inset
16696
16697 ] This tag determines whether the first line indentation of this paragraph
16698  can be toggled via the Paragraph settings dialog.
16699  If 
16700 \emph on
16701
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706
16707 \emph off
16708 default
16709 \end_layout
16710
16711 \end_inset
16712
16713
16714 \emph default
16715  is set, indentation can be toggled if the document settings use 
16716 \begin_inset Quotes eld
16717 \end_inset
16718
16719 indent
16720 \begin_inset Quotes erd
16721 \end_inset
16722
16723  paragraph style, with 
16724 \begin_inset Flex Code
16725 status collapsed
16726
16727 \begin_layout Plain Layout
16728 always
16729 \end_layout
16730
16731 \end_inset
16732
16733 , indentation can always be toggled, notwithstanding the document settings,
16734  with 
16735 \begin_inset Flex Code
16736 status collapsed
16737
16738 \begin_layout Plain Layout
16739 never
16740 \end_layout
16741
16742 \end_inset
16743
16744 , indentation can never be toggled.
16745 \end_layout
16746
16747 \begin_layout Description
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 TopSep
16753 \end_layout
16754
16755 \end_inset
16756
16757  [
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762 float=0
16763 \end_layout
16764
16765 \end_inset
16766
16767 ] The vertical space with which the very first of a chain of paragraphs
16768  with this style is separated from the previous paragraph.
16769  If the previous paragraph has another style, the separations are not simply
16770  added, but the maximum is taken.
16771 \end_layout
16772
16773 \begin_layout Subsection
16774 \begin_inset CommandInset label
16775 LatexCommand label
16776 name "subsec:I18n"
16777
16778 \end_inset
16779
16780 Internationalization of Paragraph Styles
16781 \end_layout
16782
16783 \begin_layout Standard
16784 \SpecialChar LyX
16785  has long supported internationalization of layout information, but, until
16786  version 2.0, this applied only to the user interface and not to, say, PDF
16787  output.
16788  Thus, French authors were forced to resort to ugly hacks if they wanted
16789  `
16790 \lang french
16791 Théorème
16792 \lang english
16793  1' instead of `Theorem 1'.
16794  Thanks to Georg Baum, that is no longer the case.
16795 \end_layout
16796
16797 \begin_layout Standard
16798 If a 
16799 \begin_inset Flex Code
16800 status collapsed
16801
16802 \begin_layout Plain Layout
16803 Style
16804 \end_layout
16805
16806 \end_inset
16807
16808  defines text that is to appear in the typeset document, it may use 
16809 \begin_inset Flex Code
16810 status collapsed
16811
16812 \begin_layout Plain Layout
16813 LangPreamble
16814 \end_layout
16815
16816 \end_inset
16817
16818  and 
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823 BabelPreamble
16824 \end_layout
16825
16826 \end_inset
16827
16828  to support non-English and even multi-language documents correctly.
16829  The following excerpt (from the 
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 theorems-ams.inc
16835 \end_layout
16836
16837 \end_inset
16838
16839  file) shows how this works:
16840 \end_layout
16841
16842 \begin_layout LyX-Code
16843 Preamble
16844 \end_layout
16845
16846 \begin_deeper
16847 \begin_layout LyX-Code
16848   
16849 \backslash
16850 theoremstyle{remark}
16851 \end_layout
16852
16853 \begin_layout LyX-Code
16854   
16855 \backslash
16856 newtheorem{claim}[thm]{
16857 \backslash
16858 protect
16859 \backslash
16860 claimname}
16861 \end_layout
16862
16863 \begin_layout LyX-Code
16864 EndPreamble
16865 \end_layout
16866
16867 \begin_layout LyX-Code
16868 LangPreamble
16869 \end_layout
16870
16871 \begin_layout LyX-Code
16872   
16873 \backslash
16874 providecommand{
16875 \backslash
16876 claimname}{_(Claim)}
16877 \end_layout
16878
16879 \begin_layout LyX-Code
16880 EndLangPreamble
16881 \end_layout
16882
16883 \begin_layout LyX-Code
16884 BabelPreamble
16885 \end_layout
16886
16887 \begin_layout LyX-Code
16888     
16889 \backslash
16890 addto
16891 \backslash
16892 captions$$lang{
16893 \backslash
16894 renewcommand{
16895 \backslash
16896 claimname}{_(Claim)}}
16897 \end_layout
16898
16899 \begin_layout LyX-Code
16900 EndBabelPreamble
16901 \end_layout
16902
16903 \end_deeper
16904 \begin_layout Standard
16905 In principle, any legal \SpecialChar LaTeX
16906  may appear in the 
16907 \begin_inset Flex Code
16908 status collapsed
16909
16910 \begin_layout Plain Layout
16911 LangPreamble
16912 \end_layout
16913
16914 \end_inset
16915
16916  and 
16917 \begin_inset Flex Code
16918 status collapsed
16919
16920 \begin_layout Plain Layout
16921 BabelPreamble
16922 \end_layout
16923
16924 \end_inset
16925
16926  tags, but in practice they will typically look as they do here.
16927  The key to correct translation of the typeset text is the definition of
16928  the \SpecialChar LaTeX
16929  command 
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934
16935 \backslash
16936 claimname
16937 \end_layout
16938
16939 \end_inset
16940
16941  and its use in 
16942 \begin_inset Flex Code
16943 status collapsed
16944
16945 \begin_layout Plain Layout
16946
16947 \backslash
16948 newtheorem
16949 \end_layout
16950
16951 \end_inset
16952
16953 .
16954  
16955 \end_layout
16956
16957 \begin_layout Standard
16958 The 
16959 \begin_inset Flex Code
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 LangPreamble
16964 \end_layout
16965
16966 \end_inset
16967
16968  tag provides for internationalization based upon the overall language of
16969  the document.
16970  The contents of the tag will be included in the preamble, just as with
16971  the 
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 Preamble
16977 \end_layout
16978
16979 \end_inset
16980
16981  tag.
16982  What makes it special is the use of the 
16983 \begin_inset Quotes eld
16984 \end_inset
16985
16986 function
16987 \begin_inset Quotes erd
16988 \end_inset
16989
16990  
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 _()
16996 \end_layout
16997
16998 \end_inset
16999
17000 , which will be replaced, when \SpecialChar LyX
17001  produces \SpecialChar LaTeX
17002  output, with the translation of
17003  its argument into the document language.
17004 \end_layout
17005
17006 \begin_layout Standard
17007 The 
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 BabelPreamble
17013 \end_layout
17014
17015 \end_inset
17016
17017  tag is more complex, since it is meant to provide support for multi-language
17018  documents and so offers an interface to the 
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 babel
17024 \end_layout
17025
17026 \end_inset
17027
17028  package.
17029  Its contents will be added to the preamble once for each language that
17030  appears in the document.
17031  In this case, the argument to 
17032 \begin_inset Flex Code
17033 status collapsed
17034
17035 \begin_layout Plain Layout
17036 _()
17037 \end_layout
17038
17039 \end_inset
17040
17041  will be replaced with its translation into the language in question; the
17042  expression 
17043 \begin_inset Flex Code
17044 status collapsed
17045
17046 \begin_layout Plain Layout
17047 $$lang
17048 \end_layout
17049
17050 \end_inset
17051
17052  is replaced by the language name (as used by the babel package).
17053 \end_layout
17054
17055 \begin_layout Standard
17056 A German document that also included a French section would thus have the
17057  following in the preamble:
17058 \end_layout
17059
17060 \begin_layout LyX-Code
17061
17062 \backslash
17063 addto
17064 \backslash
17065 captionsfrench{
17066 \backslash
17067 renewcommand{
17068 \backslash
17069 claimname}{Affirmation}}
17070 \begin_inset Newline newline
17071 \end_inset
17072
17073
17074 \backslash
17075 addto
17076 \backslash
17077 captionsngerman{
17078 \backslash
17079 renewcommand{
17080 \backslash
17081 claimname}{Behauptung}}
17082 \begin_inset Newline newline
17083 \end_inset
17084
17085
17086 \backslash
17087 providecommand{
17088 \backslash
17089 claimname}{Behauptung}
17090 \end_layout
17091
17092 \begin_layout Standard
17093 \SpecialChar LaTeX
17094  and 
17095 \begin_inset Flex Code
17096 status collapsed
17097
17098 \begin_layout Plain Layout
17099 babel
17100 \end_layout
17101
17102 \end_inset
17103
17104  will then conspire to produce the correct text in the output.
17105 \end_layout
17106
17107 \begin_layout Standard
17108 One important point to note here is that the translations are provided by
17109  \SpecialChar LyX
17110  itself, through the file 
17111 \begin_inset Flex Code
17112 status collapsed
17113
17114 \begin_layout Plain Layout
17115 layouttranslations
17116 \end_layout
17117
17118 \end_inset
17119
17120 .
17121  This means, in effect, that 
17122 \begin_inset Flex Code
17123 status collapsed
17124
17125 \begin_layout Plain Layout
17126 LangPreamble
17127 \end_layout
17128
17129 \end_inset
17130
17131  and 
17132 \begin_inset Flex Code
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136 BabelPreamble
17137 \end_layout
17138
17139 \end_inset
17140
17141  are really only of use in layout files that are provided with \SpecialChar LyX
17142 , since text
17143  entered in user-created layout files will not be seen by \SpecialChar LyX
17144 's internationalizatio
17145 n routines unless the 
17146 \begin_inset Flex Code
17147 status collapsed
17148
17149 \begin_layout Plain Layout
17150 layouttranslations
17151 \end_layout
17152
17153 \end_inset
17154
17155  file is modified accordingly.
17156  That said, however, any layout created with the intention that it will
17157  be included with \SpecialChar LyX
17158  should use these tags where appropriate.
17159  Please note that the paragraph style translations provided by \SpecialChar LyX
17160  will never
17161  change with a minor update (e.
17162 \begin_inset space \thinspace{}
17163 \end_inset
17164
17165 g.
17166 \begin_inset space \space{}
17167 \end_inset
17168
17169 from version 2.1.x to 2.1.y).
17170  It is however quite likely that a major update (e.
17171 \begin_inset space \thinspace{}
17172 \end_inset
17173
17174 g.
17175 \begin_inset space \space{}
17176 \end_inset
17177
17178 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17179 \end_layout
17180
17181 \begin_layout Subsection
17182 Floats
17183 \begin_inset CommandInset label
17184 LatexCommand label
17185 name "subsec:Floats"
17186
17187 \end_inset
17188
17189
17190 \end_layout
17191
17192 \begin_layout Standard
17193 It is necessary to define the floats (
17194 \begin_inset Flex Noun
17195 status collapsed
17196
17197 \begin_layout Plain Layout
17198 figure
17199 \end_layout
17200
17201 \end_inset
17202
17203
17204 \begin_inset Flex Noun
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208 table
17209 \end_layout
17210
17211 \end_inset
17212
17213 , \SpecialChar ldots
17214 ) in the text class itself.
17215  Standard floats are included in the file 
17216 \begin_inset Flex Code
17217 status collapsed
17218
17219 \begin_layout Plain Layout
17220 stdfloats.inc
17221 \end_layout
17222
17223 \end_inset
17224
17225 , so you may have to do no more than add
17226 \end_layout
17227
17228 \begin_layout LyX-Code
17229 Input stdfloats.inc
17230 \end_layout
17231
17232 \begin_layout Standard
17233 to your layout file.
17234  If you want to implement a text class that proposes some other float types
17235  (like the AGU class bundled with \SpecialChar LyX
17236 ), the information below will hopefully
17237  help you:
17238 \end_layout
17239
17240 \begin_layout Description
17241 \begin_inset Flex Code
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245 AllowedPlacement
17246 \end_layout
17247
17248 \end_inset
17249
17250  [
17251 \begin_inset Flex Code
17252 status collapsed
17253
17254 \begin_layout Plain Layout
17255 string
17256 \end_layout
17257
17258 \end_inset
17259
17260 =!htbpH] Allowed placement options for this float type.
17261  The value is a string of placement characters.
17262  Possible characters include: 
17263 \emph on
17264 h
17265 \emph default
17266  (
17267 \begin_inset Quotes eld
17268 \end_inset
17269
17270 here if possible
17271 \begin_inset Quotes erd
17272 \end_inset
17273
17274 ), 
17275 \emph on
17276 t
17277 \emph default
17278  (
17279 \begin_inset Quotes eld
17280 \end_inset
17281
17282 top of page
17283 \begin_inset Quotes erd
17284 \end_inset
17285
17286 ), 
17287 \emph on
17288 b
17289 \emph default
17290  (
17291 \begin_inset Quotes eld
17292 \end_inset
17293
17294 bottom of page
17295 \begin_inset Quotes erd
17296 \end_inset
17297
17298 ), 
17299 \emph on
17300 p
17301 \emph default
17302  (
17303 \begin_inset Quotes eld
17304 \end_inset
17305
17306 page of floats
17307 \begin_inset Quotes erd
17308 \end_inset
17309
17310 ), 
17311 \emph on
17312 H
17313 \emph default
17314  (
17315 \begin_inset Quotes eld
17316 \end_inset
17317
17318 here definitely
17319 \begin_inset Quotes erd
17320 \end_inset
17321
17322 ) and 
17323 \emph on
17324 !
17325 \emph default
17326  (
17327 \begin_inset Quotes eld
17328 \end_inset
17329
17330 ignore LaTeX rules
17331 \begin_inset Quotes erd
17332 \end_inset
17333
17334 ).
17335  The order of the characters in the string does not matter.
17336  If no placement options are allowed, use the string 
17337 \emph on
17338 none
17339 \emph default
17340 .
17341 \end_layout
17342
17343 \begin_layout Description
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 AllowsSideways
17349 \end_layout
17350
17351 \end_inset
17352
17353  [
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358
17359 \emph off
17360 0
17361 \end_layout
17362
17363 \end_inset
17364
17365 ,
17366 \begin_inset space \thinspace{}
17367 \end_inset
17368
17369
17370 \emph on
17371
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376
17377 \emph on
17378 1
17379 \end_layout
17380
17381 \end_inset
17382
17383
17384 \emph default
17385 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17386 -package 
17387 \family typewriter
17388 rotfloat
17389 \family default
17390  (sidewaysfloat).
17391  Set to 
17392 \begin_inset Flex Code
17393 status collapsed
17394
17395 \begin_layout Plain Layout
17396 0
17397 \end_layout
17398
17399 \end_inset
17400
17401  if the float does not support this feature.
17402 \end_layout
17403
17404 \begin_layout Description
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409 AllowsWide
17410 \end_layout
17411
17412 \end_inset
17413
17414  [
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419
17420 \emph off
17421 0
17422 \end_layout
17423
17424 \end_inset
17425
17426 ,
17427 \begin_inset space \thinspace{}
17428 \end_inset
17429
17430
17431 \emph on
17432
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437
17438 \emph on
17439 1
17440 \end_layout
17441
17442 \end_inset
17443
17444
17445 \emph default
17446 ] Defines whether the float has a starred variant that spans columns in
17447  a two column paragraph.
17448  Set to 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 0
17454 \end_layout
17455
17456 \end_inset
17457
17458  if the float does not support this feature.
17459 \end_layout
17460
17461 \begin_layout Description
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 Extension
17467 \end_layout
17468
17469 \end_inset
17470
17471  [
17472 \begin_inset Flex Code
17473 status collapsed
17474
17475 \begin_layout Plain Layout
17476 string
17477 \end_layout
17478
17479 \end_inset
17480
17481 =
17482 \begin_inset Quotes erd
17483 \end_inset
17484
17485
17486 \begin_inset Quotes erd
17487 \end_inset
17488
17489 ] The file name extension of an auxiliary file for the list of figures (or
17490  whatever).
17491  \SpecialChar LaTeX
17492  writes the captions to this file.
17493 \end_layout
17494
17495 \begin_layout Description
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 GuiName
17501 \end_layout
17502
17503 \end_inset
17504
17505  [
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 string
17511 \end_layout
17512
17513 \end_inset
17514
17515 =
17516 \begin_inset Quotes erd
17517 \end_inset
17518
17519
17520 \begin_inset Quotes erd
17521 \end_inset
17522
17523 ] The string that will be used in the menus and also for the caption.
17524  This is translated to the current language if babel is used.
17525 \end_layout
17526
17527 \begin_layout Description
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532 HTML*
17533 \end_layout
17534
17535 \end_inset
17536
17537  These tags control the XHTML output.
17538  See 
17539 \begin_inset CommandInset ref
17540 LatexCommand ref
17541 reference "sec:Tags-for-XHTML"
17542
17543 \end_inset
17544
17545 .
17546 \end_layout
17547
17548 \begin_layout Description
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 IsPredefined
17554 \end_layout
17555
17556 \end_inset
17557
17558  [
17559 \emph on
17560
17561 \begin_inset Flex Code
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 0
17566 \end_layout
17567
17568 \end_inset
17569
17570
17571 \emph default
17572 ,
17573 \begin_inset space \thinspace{}
17574 \end_inset
17575
17576
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 1
17582 \end_layout
17583
17584 \end_inset
17585
17586 ] Indicates whether the float is already defined in the document class or
17587  if instead the \SpecialChar LaTeX
17588  package 
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 float
17594 \end_layout
17595
17596 \end_inset
17597
17598  needs to be loaded to define it on-the-fly.
17599  The default is 
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 0
17605 \end_layout
17606
17607 \end_inset
17608
17609 , which means: 
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 float
17615 \end_layout
17616
17617 \end_inset
17618
17619  is used.
17620  It should be set to 
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 1
17626 \end_layout
17627
17628 \end_inset
17629
17630  if the float is already defined by the \SpecialChar LaTeX
17631  document class.
17632 \end_layout
17633
17634 \begin_layout Description
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 ListCommand
17640 \end_layout
17641
17642 \end_inset
17643
17644  [
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 string
17650 \end_layout
17651
17652 \end_inset
17653
17654 =
17655 \begin_inset Quotes erd
17656 \end_inset
17657
17658
17659 \begin_inset Quotes erd
17660 \end_inset
17661
17662 ] The command used to generate a list of floats of this type; the leading
17663  `
17664 \backslash
17665 ' must be omitted.
17666  This 
17667 \emph on
17668 must
17669 \emph default
17670  be given if 
17671 \begin_inset Flex Code
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 UsesFloatPkg
17676 \end_layout
17677
17678 \end_inset
17679
17680  is false, since there is no standard way to generate this command.
17681  It is ignored if 
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 UsesFloatPkg
17687 \end_layout
17688
17689 \end_inset
17690
17691  is true, since in that case there is a standard way to define the command.
17692 \end_layout
17693
17694 \begin_layout Description
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 ListName
17700 \end_layout
17701
17702 \end_inset
17703
17704  [
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 string
17710 \end_layout
17711
17712 \end_inset
17713
17714 =
17715 \begin_inset Quotes erd
17716 \end_inset
17717
17718
17719 \begin_inset Quotes erd
17720 \end_inset
17721
17722 ] A title for a list of floats of this kind (list of figures, tables, or
17723  whatever).
17724  It is used for the screen label within \SpecialChar LyX
17725 , it is used by \SpecialChar LaTeX
17726  for the title and
17727  it is used as the title in the XHTML output.
17728  It will be translated to the document language.
17729 \end_layout
17730
17731 \begin_layout Description
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 NumberWithin
17737 \end_layout
17738
17739 \end_inset
17740
17741  [
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 string
17747 \end_layout
17748
17749 \end_inset
17750
17751 =
17752 \begin_inset Quotes erd
17753 \end_inset
17754
17755
17756 \begin_inset Quotes erd
17757 \end_inset
17758
17759 ] This (optional) argument determines whether floats of this class will
17760  be numbered within some sectional unit of the document.
17761  For example, if 
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766 NumberWithin
17767 \end_layout
17768
17769 \end_inset
17770
17771  is set to 
17772 \begin_inset Quotes eld
17773 \end_inset
17774
17775
17776 \begin_inset Flex Code
17777 status collapsed
17778
17779 \begin_layout Plain Layout
17780 chapter
17781 \end_layout
17782
17783 \end_inset
17784
17785
17786 \begin_inset Quotes erd
17787 \end_inset
17788
17789 , the floats will be numbered within chapters.
17790  
17791 \end_layout
17792
17793 \begin_layout Description
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 Placement
17799 \end_layout
17800
17801 \end_inset
17802
17803  [
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 string
17809 \end_layout
17810
17811 \end_inset
17812
17813 =
17814 \begin_inset Quotes erd
17815 \end_inset
17816
17817
17818 \begin_inset Quotes erd
17819 \end_inset
17820
17821 ] The default placement for the given class of floats.
17822  The string should be as in standard \SpecialChar LaTeX
17823
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 t
17829 \end_layout
17830
17831 \end_inset
17832
17833
17834 \begin_inset Flex Code
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 b
17839 \end_layout
17840
17841 \end_inset
17842
17843
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 p
17849 \end_layout
17850
17851 \end_inset
17852
17853  and 
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 h
17859 \end_layout
17860
17861 \end_inset
17862
17863  for top, bottom, page, and here, respectively.
17864 \begin_inset Foot
17865 status collapsed
17866
17867 \begin_layout Plain Layout
17868 Note that the order of these letters in the string is irrelevant, like in
17869  \SpecialChar LaTeX
17870 .
17871 \end_layout
17872
17873 \end_inset
17874
17875  On top of that there is a new type, 
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 H
17881 \end_layout
17882
17883 \end_inset
17884
17885 , which does not really correspond to a float, since it means: put it 
17886 \begin_inset Quotes eld
17887 \end_inset
17888
17889 here
17890 \begin_inset Quotes erd
17891 \end_inset
17892
17893  and nowhere else.
17894  Note however that the 
17895 \begin_inset Flex Code
17896 status collapsed
17897
17898 \begin_layout Plain Layout
17899 H
17900 \end_layout
17901
17902 \end_inset
17903
17904  specifier is special and, because of implementation details, cannot be
17905  used in non-built in float types.
17906  If you do not understand what this means, just use 
17907 \begin_inset Quotes eld
17908 \end_inset
17909
17910
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 tbp
17916 \end_layout
17917
17918 \end_inset
17919
17920
17921 \begin_inset Quotes erd
17922 \end_inset
17923
17924 .
17925 \end_layout
17926
17927 \begin_layout Description
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 RefPrefix
17933 \end_layout
17934
17935 \end_inset
17936
17937  [
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 string
17943 \end_layout
17944
17945 \end_inset
17946
17947 ] The prefix to use when creating labels referring to floats of this type.
17948  This allows the use of formatted references.
17949  Note that you can remove any 
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 RefPrefix
17955 \end_layout
17956
17957 \end_inset
17958
17959  set by a copied style by using the special value 
17960 \begin_inset Quotes eld
17961 \end_inset
17962
17963 OFF
17964 \begin_inset Quotes erd
17965 \end_inset
17966
17967 , which must be all caps.
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 Style
17976 \end_layout
17977
17978 \end_inset
17979
17980  [
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 string
17986 \end_layout
17987
17988 \end_inset
17989
17990 =
17991 \begin_inset Quotes erd
17992 \end_inset
17993
17994
17995 \begin_inset Quotes erd
17996 \end_inset
17997
17998 ] The style used when defining the float using 
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003
18004 \backslash
18005 newfloat
18006 \end_layout
18007
18008 \end_inset
18009
18010 .
18011 \end_layout
18012
18013 \begin_layout Description
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 Type
18019 \end_layout
18020
18021 \end_inset
18022
18023  [
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 string
18029 \end_layout
18030
18031 \end_inset
18032
18033 =
18034 \begin_inset Quotes erd
18035 \end_inset
18036
18037
18038 \begin_inset Quotes erd
18039 \end_inset
18040
18041 ] The 
18042 \begin_inset Quotes eld
18043 \end_inset
18044
18045 type
18046 \begin_inset Quotes erd
18047 \end_inset
18048
18049  of the new class of floats, like program or algorithm.
18050  After the appropriate 
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055
18056 \backslash
18057 newfloat
18058 \end_layout
18059
18060 \end_inset
18061
18062 , commands such as 
18063 \begin_inset Flex Code
18064 status collapsed
18065
18066 \begin_layout Plain Layout
18067
18068 \backslash
18069 begin{program}
18070 \end_layout
18071
18072 \end_inset
18073
18074  or 
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079
18080 \backslash
18081 end{algorithm*}
18082 \end_layout
18083
18084 \end_inset
18085
18086  will be available.
18087 \end_layout
18088
18089 \begin_layout Description
18090 \begin_inset Flex Code
18091 status collapsed
18092
18093 \begin_layout Plain Layout
18094 UsesFloatPkg
18095 \end_layout
18096
18097 \end_inset
18098
18099  [
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104 0
18105 \end_layout
18106
18107 \end_inset
18108
18109 ,
18110 \begin_inset space \thinspace{}
18111 \end_inset
18112
18113
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118
18119 \emph on
18120 1
18121 \end_layout
18122
18123 \end_inset
18124
18125 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18126  package 
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131 float
18132 \end_layout
18133
18134 \end_inset
18135
18136 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18137  itself.
18138 \end_layout
18139
18140 \begin_layout Standard
18141 Note that defining a float with type 
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146
18147 \emph on
18148 type
18149 \end_layout
18150
18151 \end_inset
18152
18153  automatically defines the corresponding counter with name 
18154 \begin_inset Flex Code
18155 status collapsed
18156
18157 \begin_layout Plain Layout
18158
18159 \emph on
18160 type
18161 \end_layout
18162
18163 \end_inset
18164
18165 .
18166 \end_layout
18167
18168 \begin_layout Subsection
18169 Flex insets and InsetLayout
18170 \begin_inset CommandInset label
18171 LatexCommand label
18172 name "subsec:Flex-insets-and"
18173
18174 \end_inset
18175
18176
18177 \end_layout
18178
18179 \begin_layout Standard
18180 Flex insets come in three different kinds: 
18181 \end_layout
18182
18183 \begin_layout Itemize
18184 character style (
18185 \begin_inset Flex Code
18186 status collapsed
18187
18188 \begin_layout Plain Layout
18189 CharStyle
18190 \end_layout
18191
18192 \end_inset
18193
18194 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18195  commands as 
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200
18201 \backslash
18202 noun
18203 \end_layout
18204
18205 \end_inset
18206
18207  and 
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212
18213 \backslash
18214 code
18215 \end_layout
18216
18217 \end_inset
18218
18219 .
18220 \end_layout
18221
18222 \begin_layout Itemize
18223 user custom (
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 Custom
18229 \end_layout
18230
18231 \end_inset
18232
18233 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18234  code,
18235  footnote, and the like.
18236  An obvious example is an endnote inset, which is defined in the 
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 endnote
18242 \end_layout
18243
18244 \end_inset
18245
18246  module.
18247 \end_layout
18248
18249 \begin_layout Itemize
18250 XML elements (
18251 \begin_inset Flex Code
18252 status collapsed
18253
18254 \begin_layout Plain Layout
18255 Element
18256 \end_layout
18257
18258 \end_inset
18259
18260 ): For use with DocBook classes.
18261 \end_layout
18262
18263 \begin_layout Standard
18264 Flex insets are defined using the 
18265 \begin_inset Flex Code
18266 status collapsed
18267
18268 \begin_layout Plain Layout
18269 InsetLayout
18270 \end_layout
18271
18272 \end_inset
18273
18274  tag, which shall be explained in a moment.
18275 \end_layout
18276
18277 \begin_layout Standard
18278 The 
18279 \begin_inset Flex Code
18280 status collapsed
18281
18282 \begin_layout Plain Layout
18283 InsetLayout
18284 \end_layout
18285
18286 \end_inset
18287
18288  tag also serves another function: It can be used to customize the general
18289  layout of many different types of insets.
18290  Currently, 
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 InsetLayout
18296 \end_layout
18297
18298 \end_inset
18299
18300  can be used to customize the layout parameters for footnotes, marginal
18301  notes, note insets, \SpecialChar TeX
18302  code (ERT) insets, branches, listings, indexes, boxes,
18303  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18304 \end_layout
18305
18306 \begin_layout Standard
18307 The 
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 InsetLayout
18313 \end_layout
18314
18315 \end_inset
18316
18317  definition must begin with a line of the form:
18318 \end_layout
18319
18320 \begin_layout LyX-Code
18321 InsetLayout <type>
18322 \end_layout
18323
18324 \begin_layout Standard
18325 Here 
18326 \begin_inset Flex Code
18327 status collapsed
18328
18329 \begin_layout Plain Layout
18330 <Type>
18331 \end_layout
18332
18333 \end_inset
18334
18335  indicates the inset whose layout is being defined, and here there are four
18336  cases.
18337 \end_layout
18338
18339 \begin_layout Enumerate
18340 The layout for a pre-existing inset is being modified.
18341  In this case, can be 
18342 \begin_inset Flex Code
18343 status collapsed
18344
18345 \begin_layout Plain Layout
18346 <Type>
18347 \end_layout
18348
18349 \end_inset
18350
18351  any one of the following: 
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 Algorithm
18357 \end_layout
18358
18359 \end_inset
18360
18361
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 Branch
18367 \end_layout
18368
18369 \end_inset
18370
18371
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 Box
18377 \end_layout
18378
18379 \end_inset
18380
18381
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 Box:shaded
18387 \end_layout
18388
18389 \end_inset
18390
18391
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 Caption:Standard
18397 \end_layout
18398
18399 \end_inset
18400
18401
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 ERT
18407 \end_layout
18408
18409 \end_inset
18410
18411
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 Figure
18417 \end_layout
18418
18419 \end_inset
18420
18421
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426 Foot
18427 \end_layout
18428
18429 \end_inset
18430
18431
18432 \begin_inset Flex Code
18433 status collapsed
18434
18435 \begin_layout Plain Layout
18436 Index
18437 \end_layout
18438
18439 \end_inset
18440
18441
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 Info
18447 \end_layout
18448
18449 \end_inset
18450
18451
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 Info:menu
18457 \end_layout
18458
18459 \end_inset
18460
18461
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 Info:shortcut
18467 \end_layout
18468
18469 \end_inset
18470
18471
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 Info:shortcuts
18477 \end_layout
18478
18479 \end_inset
18480
18481
18482 \begin_inset Flex Code
18483 status collapsed
18484
18485 \begin_layout Plain Layout
18486 Listings
18487 \end_layout
18488
18489 \end_inset
18490
18491
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 Marginal
18497 \end_layout
18498
18499 \end_inset
18500
18501
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 Note:Comment
18507 \end_layout
18508
18509 \end_inset
18510
18511
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516 Note:Note
18517 \end_layout
18518
18519 \end_inset
18520
18521
18522 \begin_inset Flex Code
18523 status collapsed
18524
18525 \begin_layout Plain Layout
18526 Note:Greyedout
18527 \end_layout
18528
18529 \end_inset
18530
18531
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 Table
18537 \end_layout
18538
18539 \end_inset
18540
18541 , or 
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 URL
18547 \end_layout
18548
18549 \end_inset
18550
18551 .
18552 \end_layout
18553
18554 \begin_layout Enumerate
18555 The layout for a Flex inset is being defined.
18556  In this case, 
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 <Type>
18562 \end_layout
18563
18564 \end_inset
18565
18566  must be of the form 
18567 \begin_inset Quotes eld
18568 \end_inset
18569
18570
18571 \begin_inset Flex Code
18572 status collapsed
18573
18574 \begin_layout Plain Layout
18575 Flex:<name>
18576 \end_layout
18577
18578 \end_inset
18579
18580
18581 \begin_inset Quotes erd
18582 \end_inset
18583
18584 , where 
18585 \begin_inset Flex Code
18586 status collapsed
18587
18588 \begin_layout Plain Layout
18589 name
18590 \end_layout
18591
18592 \end_inset
18593
18594  may be be any valid identifier not used by a pre-existing Flex inset.
18595  The identifier may include spaces, but in that case the whole thing must
18596  be wrapped in quotes.
18597  Note that the definition of a flex inset 
18598 \emph on
18599 must 
18600 \emph default
18601 also include a 
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 LyXType
18607 \end_layout
18608
18609 \end_inset
18610
18611  entry, declaring which type of inset it defines.
18612 \end_layout
18613
18614 \begin_layout Enumerate
18615 The layout for user specific branch is being defined.
18616  In this case, 
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621 <Type>
18622 \end_layout
18623
18624 \end_inset
18625
18626  must be of the form 
18627 \begin_inset Quotes eld
18628 \end_inset
18629
18630
18631 \begin_inset Flex Code
18632 status collapsed
18633
18634 \begin_layout Plain Layout
18635 Branch:<name>
18636 \end_layout
18637
18638 \end_inset
18639
18640
18641 \begin_inset Quotes erd
18642 \end_inset
18643
18644 , where 
18645 \begin_inset Flex Code
18646 status collapsed
18647
18648 \begin_layout Plain Layout
18649 name
18650 \end_layout
18651
18652 \end_inset
18653
18654  may be be any valid identifier of branch defined in user's document.
18655  The identifier may include spaces, but in that case the whole thing must
18656  be wrapped in quotes.
18657  The main purpose of this feature is to allow \SpecialChar LaTeX
18658  wrapping around specific
18659  branches as user needs.
18660 \end_layout
18661
18662 \begin_layout Enumerate
18663 The layout of a user (or class) specific caption is being defined.
18664  In this case, 
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669 <Type>
18670 \end_layout
18671
18672 \end_inset
18673
18674  must be of the form 
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678
18679 \begin_inset Flex Code
18680 status collapsed
18681
18682 \begin_layout Plain Layout
18683 Caption:<name>
18684 \end_layout
18685
18686 \end_inset
18687
18688
18689 \begin_inset Quotes erd
18690 \end_inset
18691
18692 , where 
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 name
18698 \end_layout
18699
18700 \end_inset
18701
18702  specifies the name of the caption as it appears in the menu.
18703  Have a look at the standard caption (
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 Caption:Standard
18709 \end_layout
18710
18711 \end_inset
18712
18713 ), the specific captions of the KOMA-Script classes (
18714 \begin_inset Flex Code
18715 status collapsed
18716
18717 \begin_layout Plain Layout
18718 Caption:Above
18719 \end_layout
18720
18721 \end_inset
18722
18723
18724 \begin_inset Flex Code
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728 Caption:Below
18729 \end_layout
18730
18731 \end_inset
18732
18733 ) or the module 
18734 \family sans
18735 Multilingual
18736 \begin_inset space ~
18737 \end_inset
18738
18739 Captions
18740 \begin_inset Newline linebreak
18741 \end_inset
18742
18743
18744 \family default
18745 (
18746 \begin_inset Flex Code
18747 status collapsed
18748
18749 \begin_layout Plain Layout
18750 Caption:Bicaption
18751 \end_layout
18752
18753 \end_inset
18754
18755 ) for applications.
18756 \end_layout
18757
18758 \begin_layout Standard
18759 The 
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764 InsetLayout
18765 \end_layout
18766
18767 \end_inset
18768
18769  definition can contain the following entries:
18770 \end_layout
18771
18772 \begin_layout Description
18773 \begin_inset Flex Code
18774 status collapsed
18775
18776 \begin_layout Plain Layout
18777 AddToToc
18778 \end_layout
18779
18780 \end_inset
18781
18782  [
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787 string
18788 \end_layout
18789
18790 \end_inset
18791
18792 =""] This inset will appear in the table of contents of the given type.
18793  An empty string disables.
18794  See also the OutlinerName and the IsTocCaption commands.
18795  This is only implemented for Flex insets.
18796  Default: disabled.
18797 \end_layout
18798
18799 \begin_layout Description
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 Argument
18805 \end_layout
18806
18807 \end_inset
18808
18809  [
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 int
18815 \end_layout
18816
18817 \end_inset
18818
18819 ] Defines argument number of a command\SpecialChar breakableslash
18820 environment associated with the current
18821  layout.
18822  The definition must end with 
18823 \begin_inset Flex Code
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 EndArgument
18828 \end_layout
18829
18830 \end_inset
18831
18832 .
18833  See 
18834 \begin_inset CommandInset ref
18835 LatexCommand ref
18836 reference "subsec:Paragraph-Styles"
18837
18838 \end_inset
18839
18840  for details.
18841 \end_layout
18842
18843 \begin_layout Description
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 BabelPreamble
18849 \end_layout
18850
18851 \end_inset
18852
18853  Preamble for changing language commands; see 
18854 \begin_inset CommandInset ref
18855 LatexCommand ref
18856 reference "subsec:I18n"
18857
18858 \end_inset
18859
18860 .
18861 \end_layout
18862
18863 \begin_layout Description
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 BgColor
18869 \end_layout
18870
18871 \end_inset
18872
18873  [
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 <name>
18879 \end_layout
18880
18881 \end_inset
18882
18883 ] The color for the inset's background.
18884  See 
18885 \begin_inset CommandInset ref
18886 LatexCommand ref
18887 reference "chap:Names-of-colors"
18888
18889 \end_inset
18890
18891  for a list of the available color names.
18892 \end_layout
18893
18894 \begin_layout Description
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 ContentAsLabel
18900 \end_layout
18901
18902 \end_inset
18903
18904  [
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909
18910 \emph on
18911 0
18912 \end_layout
18913
18914 \end_inset
18915
18916 ,
18917 \begin_inset space \thinspace{}
18918 \end_inset
18919
18920
18921 \begin_inset Flex Code
18922 status collapsed
18923
18924 \begin_layout Plain Layout
18925 1
18926 \end_layout
18927
18928 \end_inset
18929
18930 ] Whether to use the content of the inset as the label, when the inset is
18931  closed.
18932  Default is false.
18933 \end_layout
18934
18935 \begin_layout Description
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 CopyStyle
18941 \end_layout
18942
18943 \end_inset
18944
18945  [
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950 <type>
18951 \end_layout
18952
18953 \end_inset
18954
18955 ] As with paragraph styles, see 
18956 \begin_inset CommandInset ref
18957 LatexCommand ref
18958 reference "subsec:Paragraph-Styles"
18959
18960 \end_inset
18961
18962 .
18963  Note that you need to specify the complete type, e.
18964 \begin_inset space \thinspace{}
18965 \end_inset
18966
18967 g.
18968 \begin_inset space ~
18969 \end_inset
18970
18971
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 CopyStyle Flex:<name>
18977 \end_layout
18978
18979 \end_inset
18980
18981 .
18982 \end_layout
18983
18984 \begin_layout Description
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 CustomPars
18990 \end_layout
18991
18992 \end_inset
18993
18994  [
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999
19000 \emph on
19001 0
19002 \end_layout
19003
19004 \end_inset
19005
19006 ,
19007 \begin_inset space \thinspace{}
19008 \end_inset
19009
19010
19011 \begin_inset Flex Code
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 1
19016 \end_layout
19017
19018 \end_inset
19019
19020 ] Indicates whether the user may employ the Paragraph Settings dialog to
19021  customize the paragraph.
19022 \end_layout
19023
19024 \begin_layout Description
19025 \begin_inset Flex Code
19026 status collapsed
19027
19028 \begin_layout Plain Layout
19029 Decoration
19030 \end_layout
19031
19032 \end_inset
19033
19034  can be 
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 Classic
19040 \end_layout
19041
19042 \end_inset
19043
19044
19045 \begin_inset Flex Code
19046 status collapsed
19047
19048 \begin_layout Plain Layout
19049 Minimalistic
19050 \end_layout
19051
19052 \end_inset
19053
19054 , or 
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 Conglomerate
19060 \end_layout
19061
19062 \end_inset
19063
19064 , describing the rendering style used for the inset's frame and buttons.
19065  Footnotes generally use 
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 Classic
19071 \end_layout
19072
19073 \end_inset
19074
19075 , ERT insets generally 
19076 \begin_inset Flex Code
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080 Minimalistic
19081 \end_layout
19082
19083 \end_inset
19084
19085 , and character styles 
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 Conglomerate
19091 \end_layout
19092
19093 \end_inset
19094
19095 .
19096 \end_layout
19097
19098 \begin_layout Description
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 Display
19104 \end_layout
19105
19106 \end_inset
19107
19108  [
19109 \begin_inset Flex Code
19110 status collapsed
19111
19112 \begin_layout Plain Layout
19113 0
19114 \end_layout
19115
19116 \end_inset
19117
19118 ,
19119 \emph on
19120
19121 \begin_inset space \thinspace{}
19122 \end_inset
19123
19124
19125 \emph default
19126
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131
19132 \emph on
19133 1
19134 \end_layout
19135
19136 \end_inset
19137
19138 ] Only useful if 
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 LatexType
19144 \end_layout
19145
19146 \end_inset
19147
19148  is 
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 Environment
19154 \end_layout
19155
19156 \end_inset
19157
19158 .
19159  Indicates whether the environment will stand on its own in the output or
19160  will appear inline with the surrounding text.
19161  If set to false, it is supposed that the \SpecialChar LaTeX
19162  environment ignores white space
19163  (including one newline character) after the 
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168
19169 \backslash
19170 begin{
19171 \emph on
19172 LatexName
19173 \emph default
19174 }
19175 \end_layout
19176
19177 \end_inset
19178
19179  and 
19180 \begin_inset Flex Code
19181 status collapsed
19182
19183 \begin_layout Plain Layout
19184
19185 \backslash
19186 end{
19187 \emph on
19188 LatexName
19189 \emph default
19190 }
19191 \end_layout
19192
19193 \end_inset
19194
19195  tags.
19196  Default is true.
19197 \change_inserted 731793113 1538674858
19198
19199 \end_layout
19200
19201 \begin_layout Description
19202
19203 \change_inserted 731793113 1538674891
19204 \begin_inset Flex Code
19205 status open
19206
19207 \begin_layout Plain Layout
19208
19209 \change_inserted 731793113 1538674863
19210 EditExternal
19211 \change_unchanged
19212
19213 \end_layout
19214
19215 \end_inset
19216
19217  [
19218 \emph on
19219 0
19220 \emph default
19221 ,1] Allow the contents of the inset to be edited externally (using whatever
19222  editor is defined for the document's output format).
19223 \change_unchanged
19224
19225 \end_layout
19226
19227 \begin_layout Description
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 End
19233 \end_layout
19234
19235 \end_inset
19236
19237  Required at the end of the 
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 InsetLayout
19243 \end_layout
19244
19245 \end_inset
19246
19247  declarations.
19248 \end_layout
19249
19250 \begin_layout Description
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 Font
19256 \end_layout
19257
19258 \end_inset
19259
19260  The font used for both the text body 
19261 \emph on
19262 and
19263 \emph default
19264  the label.
19265  See 
19266 \begin_inset CommandInset ref
19267 LatexCommand ref
19268 reference "subsec:Font-description"
19269
19270 \end_inset
19271
19272 .
19273  Note that defining this font automatically defines the 
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 LabelFont
19279 \end_layout
19280
19281 \end_inset
19282
19283  to the same value, so define this first and define 
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 LabelFont
19289 \end_layout
19290
19291 \end_inset
19292
19293  later if you want them to be different.
19294 \end_layout
19295
19296 \begin_layout Description
19297 \begin_inset Flex Code
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301 FixedWidthPreambleEncoding
19302 \end_layout
19303
19304 \end_inset
19305
19306  [
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311
19312 \emph on
19313 0
19314 \end_layout
19315
19316 \end_inset
19317
19318 ,
19319 \begin_inset space \thinspace{}
19320 \end_inset
19321
19322
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327 1
19328 \end_layout
19329
19330 \end_inset
19331
19332 ] Force a fixed width encoding for the translated contents of 
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 BabelPreamble
19338 \end_layout
19339
19340 \end_inset
19341
19342  and 
19343 \begin_inset Flex Code
19344 status collapsed
19345
19346 \begin_layout Plain Layout
19347 LangPreamble
19348 \end_layout
19349
19350 \end_inset
19351
19352  code generated by this layout.
19353  This is needed for special \SpecialChar LaTeX
19354 -packages like 
19355 \family typewriter
19356 listings
19357 \family default
19358  that do not work with variable width encodings such as 
19359 \family sans
19360 utf8
19361 \family default
19362 .
19363  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19364  backends such as Xe\SpecialChar TeX
19365  or
19366  Lua\SpecialChar TeX
19367  are used.
19368 \end_layout
19369
19370 \begin_layout Description
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 ForceLocalFontSwitch
19376 \end_layout
19377
19378 \end_inset
19379
19380  [
19381 \begin_inset Flex Code
19382 status collapsed
19383
19384 \begin_layout Plain Layout
19385
19386 \emph on
19387 0
19388 \end_layout
19389
19390 \end_inset
19391
19392 ,
19393 \begin_inset space \thinspace{}
19394 \end_inset
19395
19396
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401 1
19402 \end_layout
19403
19404 \end_inset
19405
19406 ] When using babel, always use a local font switch (
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411
19412 \backslash
19413 foreignlanguage
19414 \end_layout
19415
19416 \end_inset
19417
19418 ), never a global one (such as 
19419 \begin_inset Flex Code
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423
19424 \backslash
19425 selectlanguage
19426 \end_layout
19427
19428 \end_inset
19429
19430 ).
19431 \end_layout
19432
19433 \begin_layout Description
19434 \begin_inset Flex Code
19435 status collapsed
19436
19437 \begin_layout Plain Layout
19438 ForceLTR
19439 \end_layout
19440
19441 \end_inset
19442
19443  [
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448
19449 \emph on
19450 0
19451 \end_layout
19452
19453 \end_inset
19454
19455 ,
19456 \begin_inset space \thinspace{}
19457 \end_inset
19458
19459
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464 1
19465 \end_layout
19466
19467 \end_inset
19468
19469 ] Force the 
19470 \begin_inset Quotes eld
19471 \end_inset
19472
19473 latex
19474 \begin_inset Quotes erd
19475 \end_inset
19476
19477  language, leading to Left-to-Right (Latin) output, e.
19478 \begin_inset space \thinspace{}
19479 \end_inset
19480
19481 g.
19482 \begin_inset space \space{}
19483 \end_inset
19484
19485 in \SpecialChar TeX
19486  code or URL.
19487  A kludge.
19488 \end_layout
19489
19490 \begin_layout Description
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495 ForceOwnlines
19496 \end_layout
19497
19498 \end_inset
19499
19500  [
19501 \begin_inset Flex Code
19502 status collapsed
19503
19504 \begin_layout Plain Layout
19505
19506 \emph on
19507 0
19508 \end_layout
19509
19510 \end_inset
19511
19512 ,
19513 \begin_inset space \thinspace{}
19514 \end_inset
19515
19516
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 1
19522 \end_layout
19523
19524 \end_inset
19525
19526 ] Force a a line break in the \SpecialChar LaTeX
19527  output before the inset starts and after
19528  the inset ends.
19529  This assures the inset itself is output on its own lines, for parsing purposes.
19530 \end_layout
19531
19532 \begin_layout Description
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 ForcePlain
19538 \end_layout
19539
19540 \end_inset
19541
19542  [
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547
19548 \emph on
19549 0
19550 \end_layout
19551
19552 \end_inset
19553
19554 ,
19555 \begin_inset space \thinspace{}
19556 \end_inset
19557
19558
19559 \begin_inset Flex Code
19560 status collapsed
19561
19562 \begin_layout Plain Layout
19563 1
19564 \end_layout
19565
19566 \end_inset
19567
19568 ] Indicates whether the 
19569 \begin_inset Flex Code
19570 status collapsed
19571
19572 \begin_layout Plain Layout
19573 PlainLayout
19574 \end_layout
19575
19576 \end_inset
19577
19578  should be used or, instead, the user can change the paragraph style used
19579  in the inset.
19580  Default is false.
19581 \end_layout
19582
19583 \begin_layout Description
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 FreeSpacing
19589 \end_layout
19590
19591 \end_inset
19592
19593  [
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598
19599 \emph on
19600 0
19601 \end_layout
19602
19603 \end_inset
19604
19605 ,
19606 \begin_inset space \thinspace{}
19607 \end_inset
19608
19609
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 1
19615 \end_layout
19616
19617 \end_inset
19618
19619 ] As with paragraph styles, see 
19620 \begin_inset CommandInset ref
19621 LatexCommand ref
19622 reference "subsec:Paragraph-Styles"
19623
19624 \end_inset
19625
19626 .
19627 \end_layout
19628
19629 \begin_layout Description
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 HTML*
19635 \end_layout
19636
19637 \end_inset
19638
19639  These tags control the XHTML output.
19640  See 
19641 \begin_inset CommandInset ref
19642 LatexCommand ref
19643 reference "sec:Tags-for-XHTML"
19644
19645 \end_inset
19646
19647 .
19648 \end_layout
19649
19650 \begin_layout Description
19651 \begin_inset Flex Code
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 InToc
19656 \end_layout
19657
19658 \end_inset
19659
19660  [
19661 \begin_inset Flex Code
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665
19666 \emph on
19667 0
19668 \end_layout
19669
19670 \end_inset
19671
19672 ,
19673 \begin_inset space \thinspace{}
19674 \end_inset
19675
19676
19677 \begin_inset Flex Code
19678 status collapsed
19679
19680 \begin_layout Plain Layout
19681 1
19682 \end_layout
19683
19684 \end_inset
19685
19686 ] Whether to include the contents of this inset in the strings generated
19687  for the `Outline' pane for all table of contents, regardless of the AddToToc
19688  setting.
19689  One would not, for example, want the content of a footnote in a section
19690  header to be included in the TOC displayed in the outline, but one would
19691  normally want the content of a character style displayed.
19692  Default is false: not to include.
19693 \end_layout
19694
19695 \begin_layout Description
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700 IsTocCaption
19701 \end_layout
19702
19703 \end_inset
19704
19705  [
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710
19711 \emph on
19712 0
19713 \end_layout
19714
19715 \end_inset
19716
19717 ,
19718 \begin_inset space \thinspace{}
19719 \end_inset
19720
19721
19722 \begin_inset Flex Code
19723 status collapsed
19724
19725 \begin_layout Plain Layout
19726 1
19727 \end_layout
19728
19729 \end_inset
19730
19731 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19732  of its contents in its item in the table of contents.
19733  Otherwise, only the label appears.
19734 \end_layout
19735
19736 \begin_layout Description
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 KeepEmpty
19742 \end_layout
19743
19744 \end_inset
19745
19746  [
19747 \emph on
19748
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 0
19754 \end_layout
19755
19756 \end_inset
19757
19758
19759 \emph default
19760 ,
19761 \begin_inset space \thinspace{}
19762 \end_inset
19763
19764
19765 \begin_inset Flex Code
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 1
19770 \end_layout
19771
19772 \end_inset
19773
19774 ] As with paragraph styles, see 
19775 \begin_inset CommandInset ref
19776 LatexCommand ref
19777 reference "subsec:Paragraph-Styles"
19778
19779 \end_inset
19780
19781 .
19782 \end_layout
19783
19784 \begin_layout Description
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 LabelFont
19790 \end_layout
19791
19792 \end_inset
19793
19794  The font used for the label.
19795  See 
19796 \begin_inset CommandInset ref
19797 LatexCommand ref
19798 reference "subsec:Font-description"
19799
19800 \end_inset
19801
19802 .
19803  Note that this definition can never appear before 
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 Font
19809 \end_layout
19810
19811 \end_inset
19812
19813 , lest it be ineffective.
19814 \end_layout
19815
19816 \begin_layout Description
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 LabelString
19822 \end_layout
19823
19824 \end_inset
19825
19826  [
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 string
19832 \end_layout
19833
19834 \end_inset
19835
19836 =
19837 \begin_inset Quotes erd
19838 \end_inset
19839
19840
19841 \begin_inset Quotes erd
19842 \end_inset
19843
19844 ] What will be displayed on the button or elsewhere as the inset label.
19845  Some inset types (
19846 \begin_inset Flex Code
19847 status collapsed
19848
19849 \begin_layout Plain Layout
19850 \SpecialChar TeX
19851  code
19852 \end_layout
19853
19854 \end_inset
19855
19856  and 
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 Branch
19862 \end_layout
19863
19864 \end_inset
19865
19866 ) modify this label on the fly.
19867 \end_layout
19868
19869 \begin_layout Description
19870 \begin_inset Flex Code
19871 status collapsed
19872
19873 \begin_layout Plain Layout
19874 LangPreamble
19875 \end_layout
19876
19877 \end_inset
19878
19879  Language dependent preamble; see 
19880 \begin_inset CommandInset ref
19881 LatexCommand ref
19882 reference "subsec:I18n"
19883
19884 \end_inset
19885
19886 .
19887 \end_layout
19888
19889 \begin_layout Description
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894 LatexName
19895 \end_layout
19896
19897 \end_inset
19898
19899  [
19900 \begin_inset Flex Code
19901 status collapsed
19902
19903 \begin_layout Plain Layout
19904 <name>
19905 \end_layout
19906
19907 \end_inset
19908
19909 ] The name of the corresponding \SpecialChar LaTeX
19910  stuff.
19911  Either the environment or command name.
19912 \end_layout
19913
19914 \begin_layout Description
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 LatexParam
19920 \end_layout
19921
19922 \end_inset
19923
19924  [
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 <parameter>
19930 \end_layout
19931
19932 \end_inset
19933
19934 ] The optional parameter for the corresponding 
19935 \begin_inset Flex Code
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939 LatexName
19940 \end_layout
19941
19942 \end_inset
19943
19944  stuff, including possible bracket pairs like 
19945 \begin_inset Flex Code
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 []
19950 \end_layout
19951
19952 \end_inset
19953
19954 .
19955  This parameter cannot be changed from within \SpecialChar LyX
19956  (use 
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 Argument
19962 \end_layout
19963
19964 \end_inset
19965
19966  for customizable parameters).
19967  It will be output as is after all \SpecialChar LaTeX
19968  
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 Argument
19974 \end_layout
19975
19976 \end_inset
19977
19978 s.
19979 \end_layout
19980
19981 \begin_layout Description
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 LatexType
19987 \end_layout
19988
19989 \end_inset
19990
19991  [
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 Command, Environment, None
19997 \end_layout
19998
19999 \end_inset
20000
20001 ] How the style should be translated into \SpecialChar LaTeX
20002 .
20003 \begin_inset Foot
20004 status collapsed
20005
20006 \begin_layout Plain Layout
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 LatexType
20012 \end_layout
20013
20014 \end_inset
20015
20016  is perhaps a bit misleading, since these rules apply to SGML classes too.
20017  Visit the SGML class files for specific examples.
20018 \end_layout
20019
20020 \end_inset
20021
20022
20023 \end_layout
20024
20025 \begin_deeper
20026 \begin_layout Description
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 None
20032 \end_layout
20033
20034 \end_inset
20035
20036  means nothing special
20037 \end_layout
20038
20039 \begin_layout Description
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 Command
20045 \end_layout
20046
20047 \end_inset
20048
20049  means 
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054
20055 \backslash
20056
20057 \emph on
20058 LatexName
20059 \emph default
20060 {\SpecialChar ldots
20061 }
20062 \end_layout
20063
20064 \end_inset
20065
20066
20067 \end_layout
20068
20069 \begin_layout Description
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 Environment
20075 \end_layout
20076
20077 \end_inset
20078
20079  means 
20080 \begin_inset Flex Code
20081 status collapsed
20082
20083 \begin_layout Plain Layout
20084
20085 \backslash
20086 begin{
20087 \emph on
20088 LatexName
20089 \emph default
20090 }\SpecialChar ldots
20091
20092 \backslash
20093 end{
20094 \emph on
20095 LatexName
20096 \emph default
20097 }
20098 \end_layout
20099
20100 \end_inset
20101
20102
20103 \end_layout
20104
20105 \begin_layout Standard
20106 Putting the last few things together, the \SpecialChar LaTeX
20107  output will be either: 
20108 \end_layout
20109
20110 \begin_layout LyX-Code
20111
20112 \backslash
20113 LatexName[LatexParam]{\SpecialChar ldots
20114 }
20115 \end_layout
20116
20117 \begin_layout Standard
20118 or: 
20119 \end_layout
20120
20121 \begin_layout LyX-Code
20122
20123 \backslash
20124 begin{LatexName}[LatexParam] \SpecialChar ldots
20125  
20126 \backslash
20127 end{LatexName}
20128 \end_layout
20129
20130 \begin_layout Standard
20131 depending upon the \SpecialChar LaTeX
20132  type.
20133 \end_layout
20134
20135 \end_deeper
20136 \begin_layout Description
20137 \begin_inset Flex Code
20138 status collapsed
20139
20140 \begin_layout Plain Layout
20141 LeftDelim
20142 \end_layout
20143
20144 \end_inset
20145
20146  [
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 string
20152 \end_layout
20153
20154 \end_inset
20155
20156 ] A string that is put at the beginning of the layout content.
20157  A line break in the output can be indicated by 
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 <br/>
20163 \end_layout
20164
20165 \end_inset
20166
20167 .
20168 \end_layout
20169
20170 \begin_layout Description
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 LyxType
20176 \end_layout
20177
20178 \end_inset
20179
20180  Can be 
20181 \begin_inset Flex Code
20182 status collapsed
20183
20184 \begin_layout Plain Layout
20185 charstyle
20186 \end_layout
20187
20188 \end_inset
20189
20190
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195 custom
20196 \end_layout
20197
20198 \end_inset
20199
20200
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205 element
20206 \end_layout
20207
20208 \end_inset
20209
20210  or 
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 end
20216 \end_layout
20217
20218 \end_inset
20219
20220  (indicating a dummy definition ending definitions of charstyles, etc).
20221  This entry is required in and is only meaningful for Flex insets.
20222  Among other things, it determines on which menu this inset will appear.
20223  Setting 
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 LyxType
20229 \end_layout
20230
20231 \end_inset
20232
20233  to 
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 charstyle
20239 \end_layout
20240
20241 \end_inset
20242
20243  will automatically set 
20244 \begin_inset Flex Code
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248 MultiPar
20249 \end_layout
20250
20251 \end_inset
20252
20253  to false and 
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 ForcePlain
20259 \end_layout
20260
20261 \end_inset
20262
20263  to true.
20264  
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 MultiPar
20270 \end_layout
20271
20272 \end_inset
20273
20274  can be set to true, or 
20275 \begin_inset Flex Code
20276 status collapsed
20277
20278 \begin_layout Plain Layout
20279 ForcePlain
20280 \end_layout
20281
20282 \end_inset
20283
20284  to false, for 
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289 charstyle
20290 \end_layout
20291
20292 \end_inset
20293
20294  insets by setting it 
20295 \emph on
20296 after
20297 \emph default
20298  you set the 
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 LyxType
20304 \end_layout
20305
20306 \end_inset
20307
20308 .
20309 \change_inserted -712698321 1555575738
20310
20311 \end_layout
20312
20313 \begin_layout Description
20314
20315 \change_inserted -712698321 1555575844
20316 \begin_inset Flex Code
20317 status collapsed
20318
20319 \begin_layout Plain Layout
20320
20321 \change_inserted -712698321 1555575740
20322 MenuString
20323 \end_layout
20324
20325 \end_inset
20326
20327  
20328 \begin_inset Flex Code
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332
20333 \change_inserted -712698321 1555575740
20334 [string]
20335 \end_layout
20336
20337 \end_inset
20338
20339  A dedicated string for the menu.
20340  You can define an accelerator by appending the respective character to
20341  the string, divided by 
20342 \begin_inset Quotes eld
20343 \end_inset
20344
20345 |
20346 \begin_inset Quotes erd
20347 \end_inset
20348
20349  (e.
20350 \begin_inset space \thinspace{}
20351 \end_inset
20352
20353 g.
20354 \begin_inset space \space{}
20355 \end_inset
20356
20357
20358 \begin_inset Quotes eld
20359 \end_inset
20360
20361
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366
20367 \change_inserted -712698321 1555575781
20368 My Inset|M
20369 \end_layout
20370
20371 \end_inset
20372
20373
20374 \begin_inset Quotes erd
20375 \end_inset
20376
20377 ).
20378  This specification is optional.
20379  If it is not given the inset name as specified in the type declaration
20380  will be used instead for the menu.
20381 \change_unchanged
20382
20383 \end_layout
20384
20385 \begin_layout Description
20386 \begin_inset Flex Code
20387 status collapsed
20388
20389 \begin_layout Plain Layout
20390 MultiPar
20391 \end_layout
20392
20393 \end_inset
20394
20395  [
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400
20401 \emph on
20402 0
20403 \end_layout
20404
20405 \end_inset
20406
20407 ,
20408 \begin_inset space \thinspace{}
20409 \end_inset
20410
20411
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 1
20417 \end_layout
20418
20419 \end_inset
20420
20421 ] Whether multiple paragraphs are permitted in this inset.
20422  This will also set 
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 CustomPars
20428 \end_layout
20429
20430 \end_inset
20431
20432  to the same value and 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 ForcePlain
20438 \end_layout
20439
20440 \end_inset
20441
20442  to the opposite value.
20443  These can be reset to other values, if they are used 
20444 \emph on
20445 after
20446 \emph default
20447  
20448 \begin_inset Flex Code
20449 status collapsed
20450
20451 \begin_layout Plain Layout
20452 MultiPar
20453 \end_layout
20454
20455 \end_inset
20456
20457 .
20458  Default is true.
20459 \end_layout
20460
20461 \begin_layout Description
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 NeedProtect
20467 \end_layout
20468
20469 \end_inset
20470
20471  [
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476
20477 \emph on
20478 0
20479 \end_layout
20480
20481 \end_inset
20482
20483 ,
20484 \begin_inset space \thinspace{}
20485 \end_inset
20486
20487
20488 \begin_inset Flex Code
20489 status collapsed
20490
20491 \begin_layout Plain Layout
20492 1
20493 \end_layout
20494
20495 \end_inset
20496
20497 ] Whether fragile commands in this inset should be 
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502
20503 \backslash
20504 protect
20505 \end_layout
20506
20507 \end_inset
20508
20509 'ed.
20510  (Note: This is 
20511 \emph on
20512 not
20513 \emph default
20514  whether the command should itself be protected.) Default is false.
20515 \change_inserted -712698321 1523633958
20516
20517 \end_layout
20518
20519 \begin_layout Description
20520
20521 \change_inserted -712698321 1552395786
20522 \begin_inset Flex Code
20523 status collapsed
20524
20525 \begin_layout Plain Layout
20526
20527 \change_inserted -712698321 1523633961
20528 NeedCProtect
20529 \end_layout
20530
20531 \end_inset
20532
20533  [
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538
20539 \change_inserted -712698321 1523633958
20540
20541 \emph on
20542 0
20543 \end_layout
20544
20545 \end_inset
20546
20547 ,
20548 \begin_inset space \thinspace{}
20549 \end_inset
20550
20551
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556
20557 \change_inserted -712698321 1523633958
20558 1
20559 \end_layout
20560
20561 \end_inset
20562
20563 ] This causes macros that contain this inset to be protected with 
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568
20569 \change_inserted -712698321 1523634038
20570
20571 \backslash
20572 cprotect
20573 \change_unchanged
20574
20575 \end_layout
20576
20577 \end_inset
20578
20579  (cf.
20580  package 
20581 \family sans
20582 cprotect
20583 \family default
20584 ) if necessary and thus allows (some) verbatim stuff in macros.
20585  Default is false.
20586 \end_layout
20587
20588 \begin_layout Description
20589
20590 \change_inserted -712698321 1555579651
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595
20596 \change_inserted -712698321 1552395787
20597 NeedMBoxProtect
20598 \end_layout
20599
20600 \end_inset
20601
20602  [
20603 \begin_inset Flex Code
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607
20608 \change_inserted -712698321 1552395787
20609
20610 \emph on
20611 0
20612 \end_layout
20613
20614 \end_inset
20615
20616 ,
20617 \begin_inset space \thinspace{}
20618 \end_inset
20619
20620
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625
20626 \change_inserted -712698321 1552395787
20627 1
20628 \end_layout
20629
20630 \end_inset
20631
20632 ] Whether specific commands in this inset (such as 
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637
20638 \change_inserted -712698321 1552395787
20639
20640 \backslash
20641 cite
20642 \end_layout
20643
20644 \end_inset
20645
20646  and 
20647 \begin_inset Flex Code
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651
20652 \change_inserted -712698321 1552395787
20653
20654 \backslash
20655 ref
20656 \end_layout
20657
20658 \end_inset
20659
20660 ) should be protected in an 
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665
20666 \change_inserted -712698321 1552395787
20667
20668 \backslash
20669 mbox
20670 \end_layout
20671
20672 \end_inset
20673
20674 .
20675  This is particularly needed for insets that draw on 
20676 \family sans
20677 ulem
20678 \family default
20679  or 
20680 \family sans
20681 soul
20682 \family default
20683  commands which parse their content in complex ways.
20684  Default is false.
20685 \end_layout
20686
20687 \begin_layout Description
20688
20689 \change_inserted -712698321 1555579742
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694
20695 \change_inserted -712698321 1555579658
20696 NewlineCmd
20697 \end_layout
20698
20699 \end_inset
20700
20701  
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706
20707 \change_inserted -712698321 1555579651
20708 [string]
20709 \end_layout
20710
20711 \end_inset
20712
20713  Option to define a different command (from the default 
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718
20719 \change_inserted -712698321 1555579742
20720
20721 \backslash
20722
20723 \backslash
20724
20725 \change_unchanged
20726
20727 \end_layout
20728
20729 \end_inset
20730
20731 ) to be used for line breaks.
20732  The initial backslash must not be specified.
20733 \change_unchanged
20734
20735 \end_layout
20736
20737 \begin_layout Description
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 NoInsetLayout
20743 \end_layout
20744
20745 \end_inset
20746
20747  [
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 <layout>
20753 \end_layout
20754
20755 \end_inset
20756
20757 ] Deletes an existing 
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 InsetLayout
20763 \end_layout
20764
20765 \end_inset
20766
20767 .
20768 \end_layout
20769
20770 \begin_layout Description
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 ObsoletedBy
20776 \end_layout
20777
20778 \end_inset
20779
20780  [
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 <layout>
20786 \end_layout
20787
20788 \end_inset
20789
20790 ] Name of an 
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 InsetLayout
20796 \end_layout
20797
20798 \end_inset
20799
20800  that has replaced this 
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 InsetLayout
20806 \end_layout
20807
20808 \end_inset
20809
20810 .
20811  This is used to rename an 
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 InsetLayout
20817 \end_layout
20818
20819 \end_inset
20820
20821 , while keeping backward compatibility.
20822 \end_layout
20823
20824 \begin_layout Description
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 ParbreakIsNewline
20830 \end_layout
20831
20832 \end_inset
20833
20834  [
20835 \begin_inset Flex Code
20836 status collapsed
20837
20838 \begin_layout Plain Layout
20839
20840 \emph on
20841 0
20842 \end_layout
20843
20844 \end_inset
20845
20846 ,
20847 \begin_inset space \thinspace{}
20848 \end_inset
20849
20850
20851 \begin_inset Flex Code
20852 status collapsed
20853
20854 \begin_layout Plain Layout
20855 1
20856 \end_layout
20857
20858 \end_inset
20859
20860 ] As with paragraph styles, see 
20861 \begin_inset CommandInset ref
20862 LatexCommand ref
20863 reference "subsec:Paragraph-Styles"
20864
20865 \end_inset
20866
20867 .
20868  Default is false.
20869 \end_layout
20870
20871 \begin_layout Description
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 PassThru
20877 \end_layout
20878
20879 \end_inset
20880
20881  [
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886
20887 \emph on
20888 0
20889 \end_layout
20890
20891 \end_inset
20892
20893 ,
20894 \begin_inset space \thinspace{}
20895 \end_inset
20896
20897
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 1
20903 \end_layout
20904
20905 \end_inset
20906
20907 ] As with paragraph styles, see 
20908 \begin_inset CommandInset ref
20909 LatexCommand ref
20910 reference "subsec:Paragraph-Styles"
20911
20912 \end_inset
20913
20914 .
20915  Default is false.
20916 \end_layout
20917
20918 \begin_layout Description
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 Preamble
20924 \end_layout
20925
20926 \end_inset
20927
20928  As with paragraph styles, see 
20929 \begin_inset CommandInset ref
20930 LatexCommand ref
20931 reference "subsec:Paragraph-Styles"
20932
20933 \end_inset
20934
20935 .
20936 \end_layout
20937
20938 \begin_layout Description
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 RefPrefix
20944 \end_layout
20945
20946 \end_inset
20947
20948  [
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 string
20954 \end_layout
20955
20956 \end_inset
20957
20958 ] The prefix to use when creating labels referring to insets of this type.
20959  This allows the use of formatted references.
20960 \end_layout
20961
20962 \begin_layout Description
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 Requires
20968 \end_layout
20969
20970 \end_inset
20971
20972  [
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 string
20978 \end_layout
20979
20980 \end_inset
20981
20982 ] As with paragraph styles, see 
20983 \begin_inset CommandInset ref
20984 LatexCommand ref
20985 reference "subsec:Paragraph-Styles"
20986
20987 \end_inset
20988
20989 .
20990 \end_layout
20991
20992 \begin_layout Description
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 ResetArgs
20998 \end_layout
20999
21000 \end_inset
21001
21002  [
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007
21008 \emph on
21009 0
21010 \end_layout
21011
21012 \end_inset
21013
21014 ,
21015 \begin_inset space \thinspace{}
21016 \end_inset
21017
21018
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 1
21024 \end_layout
21025
21026 \end_inset
21027
21028 ] Resets the \SpecialChar LaTeX
21029  arguments of this layout (as defined via the 
21030 \begin_inset Flex Code
21031 status collapsed
21032
21033 \begin_layout Plain Layout
21034 Argument
21035 \end_layout
21036
21037 \end_inset
21038
21039  tag).
21040  This is useful if you have copied a style via 
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 CopyStyle
21046 \end_layout
21047
21048 \end_inset
21049
21050 , but you do not want to inherit its (required and optional) arguments.
21051 \end_layout
21052
21053 \begin_layout Description
21054 \begin_inset Flex Code
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 ResetsFont
21059 \end_layout
21060
21061 \end_inset
21062
21063  [
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068 0
21069 \end_layout
21070
21071 \end_inset
21072
21073 ,
21074 \begin_inset space \thinspace{}
21075 \end_inset
21076
21077
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082
21083 \emph on
21084 1
21085 \end_layout
21086
21087 \end_inset
21088
21089 ] Whether this inset should use the font of its surrounding environment
21090  or uses its own.
21091  Default is false: use the font of the surrounding environment.
21092 \end_layout
21093
21094 \begin_layout Description
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 RightDelim
21100 \end_layout
21101
21102 \end_inset
21103
21104  [
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 string
21110 \end_layout
21111
21112 \end_inset
21113
21114 ] A string that is put at the end of the layout content.
21115  A line break in the output can be indicated by 
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 <br/>
21121 \end_layout
21122
21123 \end_inset
21124
21125 .
21126 \end_layout
21127
21128 \begin_layout Description
21129 \begin_inset Flex Code
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 Spellcheck
21134 \end_layout
21135
21136 \end_inset
21137
21138  [
21139 \begin_inset Flex Code
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 0
21144 \end_layout
21145
21146 \end_inset
21147
21148 ,
21149 \begin_inset space \thinspace{}
21150 \end_inset
21151
21152
21153 \begin_inset Flex Code
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157
21158 \emph on
21159 1
21160 \end_layout
21161
21162 \end_inset
21163
21164 ] Allow spell-checking the contents of this inset.
21165  Default is true.
21166 \end_layout
21167
21168 \begin_layout Subsection
21169 Counters
21170 \begin_inset CommandInset label
21171 LatexCommand label
21172 name "subsec:Counters"
21173
21174 \end_inset
21175
21176
21177 \end_layout
21178
21179 \begin_layout Standard
21180 It is necessary to define the counters (
21181 \begin_inset Flex Noun
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 chapter
21186 \end_layout
21187
21188 \end_inset
21189
21190
21191 \begin_inset Flex Noun
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 figure
21196 \end_layout
21197
21198 \end_inset
21199
21200 , \SpecialChar ldots
21201 ) in the text class itself.
21202  The standard counters are defined in the file 
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 stdcounters.inc
21208 \end_layout
21209
21210 \end_inset
21211
21212 , so you may have to do no more than add
21213 \end_layout
21214
21215 \begin_layout LyX-Code
21216 Input stdcounters.inc
21217 \end_layout
21218
21219 \begin_layout Standard
21220 to your layout file to get them to work.
21221  But if you want to define custom counters, then you can do so.
21222  The counter declaration must begin with:
21223 \end_layout
21224
21225 \begin_layout LyX-Code
21226 Counter CounterName
21227 \end_layout
21228
21229 \begin_layout Standard
21230 where of course `
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235 CounterName
21236 \end_layout
21237
21238 \end_inset
21239
21240 ' is replaced by the name of the counter.
21241  And it must end with 
21242 \begin_inset Quotes eld
21243 \end_inset
21244
21245
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 End
21251 \end_layout
21252
21253 \end_inset
21254
21255
21256 \begin_inset Quotes erd
21257 \end_inset
21258
21259 .
21260  The following parameters can also be used:
21261 \end_layout
21262
21263 \begin_layout Description
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 InitialValue
21269 \end_layout
21270
21271 \end_inset
21272
21273  [
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 int=1
21279 \end_layout
21280
21281 \end_inset
21282
21283 ] Sets the initial value for the counter, to which it will be reset whenever
21284  that happens.
21285  Normally, one will want the default, 1.
21286 \end_layout
21287
21288 \begin_layout Description
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293 LabelString
21294 \end_layout
21295
21296 \end_inset
21297
21298  [
21299 \begin_inset Flex Code
21300 status collapsed
21301
21302 \begin_layout Plain Layout
21303 string
21304 \end_layout
21305
21306 \end_inset
21307
21308 =
21309 \begin_inset Quotes erd
21310 \end_inset
21311
21312
21313 \begin_inset Quotes erd
21314 \end_inset
21315
21316 ] When defined, this string defines how the counter is displayed.
21317  Setting this value sets 
21318 \begin_inset Flex Code
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322 LabelStringAppendix
21323 \end_layout
21324
21325 \end_inset
21326
21327  to the same value.
21328  The following special constructs can be used in the string:
21329 \end_layout
21330
21331 \begin_deeper
21332 \begin_layout Itemize
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337
21338 \backslash
21339 thecounter
21340 \end_layout
21341
21342 \end_inset
21343
21344  will be replaced by the expansion of the 
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 LabelString
21350 \end_layout
21351
21352 \end_inset
21353
21354  (or 
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 LabelStringAppendix
21360 \end_layout
21361
21362 \end_inset
21363
21364 ) of the counter 
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 counter
21370 \end_layout
21371
21372 \end_inset
21373
21374 .
21375  
21376 \end_layout
21377
21378 \begin_layout Itemize
21379 counter values can be expressed using \SpecialChar LaTeX
21380 -like macros
21381 \begin_inset Newline newline
21382 \end_inset
21383
21384
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389
21390 \backslash
21391
21392 \emph on
21393 numbertype
21394 \emph default
21395 {
21396 \emph on
21397 counter
21398 \emph default
21399 }
21400 \end_layout
21401
21402 \end_inset
21403
21404 , where 
21405 \begin_inset Flex Code
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409
21410 \emph on
21411 numbertype
21412 \end_layout
21413
21414 \end_inset
21415
21416  can be:
21417 \begin_inset Foot
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421
21422 \family roman
21423 \series medium
21424 \shape up
21425 \size normal
21426 \emph off
21427 \bar no
21428 \noun off
21429 \color none
21430 Actually, the situation is a bit more complicated: any
21431 \family default
21432 \series default
21433 \shape default
21434 \emph default
21435 \bar default
21436  
21437 \size default
21438 \emph on
21439 \noun default
21440 \color inherit
21441 numbertype
21442 \family roman
21443 \series medium
21444 \shape up
21445 \size normal
21446 \emph off
21447 \bar no
21448 \noun off
21449  other than those described below will produce arabic numerals.
21450  It would not be surprising to see this change in the future.
21451 \end_layout
21452
21453 \end_inset
21454
21455  
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 arabic
21461 \end_layout
21462
21463 \end_inset
21464
21465 : 1, 2, 3,\SpecialChar ldots
21466
21467 \begin_inset Flex Code
21468 status collapsed
21469
21470 \begin_layout Plain Layout
21471 alph
21472 \end_layout
21473
21474 \end_inset
21475
21476  for lower-case letters: a, b, c, \SpecialChar ldots
21477
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482 Alph
21483 \end_layout
21484
21485 \end_inset
21486
21487  for upper-case letters: A, B, C, \SpecialChar ldots
21488
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 roman
21494 \end_layout
21495
21496 \end_inset
21497
21498  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21499
21500 \begin_inset Flex Code
21501 status collapsed
21502
21503 \begin_layout Plain Layout
21504 Roman
21505 \end_layout
21506
21507 \end_inset
21508
21509  for upper-case roman numerals: I, II, III\SpecialChar ldots
21510
21511 \begin_inset Flex Code
21512 status collapsed
21513
21514 \begin_layout Plain Layout
21515 hebrew
21516 \end_layout
21517
21518 \end_inset
21519
21520  for hebrew numerals.
21521 \end_layout
21522
21523 \end_deeper
21524 \begin_layout Standard
21525 If LabelString is not defined, a default value is constructed as follows:
21526  if the counter has a master counter 
21527 \begin_inset Flex Code
21528 status collapsed
21529
21530 \begin_layout Plain Layout
21531 master
21532 \end_layout
21533
21534 \end_inset
21535
21536  (defined via 
21537 \begin_inset Flex Code
21538 status collapsed
21539
21540 \begin_layout Plain Layout
21541 Within
21542 \end_layout
21543
21544 \end_inset
21545
21546 ), the string
21547 \begin_inset Newline newline
21548 \end_inset
21549
21550
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555
21556 \backslash
21557 themaster.
21558 \backslash
21559 arabic{counter}
21560 \end_layout
21561
21562 \end_inset
21563
21564  is used; otherwise the string 
21565 \begin_inset Flex Code
21566 status collapsed
21567
21568 \begin_layout Plain Layout
21569
21570 \backslash
21571 arabic{counter}
21572 \end_layout
21573
21574 \end_inset
21575
21576  is used.
21577 \end_layout
21578
21579 \begin_layout Description
21580 \begin_inset Flex Code
21581 status collapsed
21582
21583 \begin_layout Plain Layout
21584 LabelStringAppendix
21585 \end_layout
21586
21587 \end_inset
21588
21589  [
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 string
21595 \end_layout
21596
21597 \end_inset
21598
21599 =
21600 \begin_inset Quotes erd
21601 \end_inset
21602
21603
21604 \begin_inset Quotes erd
21605 \end_inset
21606
21607 ] Same as 
21608 \begin_inset Flex Code
21609 status collapsed
21610
21611 \begin_layout Plain Layout
21612 LabelString
21613 \end_layout
21614
21615 \end_inset
21616
21617 , but for use in the Appendix.
21618 \end_layout
21619
21620 \begin_layout Description
21621 \begin_inset Flex Code
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625 PrettyFormat
21626 \end_layout
21627
21628 \end_inset
21629
21630  [
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 string
21636 \end_layout
21637
21638 \end_inset
21639
21640 =
21641 \begin_inset Quotes erd
21642 \end_inset
21643
21644
21645 \begin_inset Quotes erd
21646 \end_inset
21647
21648 ] A format for use with formatted references to this counter.
21649  For example, one might want to have references to section numbers appear
21650  as 
21651 \begin_inset Quotes eld
21652 \end_inset
21653
21654 Section 2.4
21655 \begin_inset Quotes erd
21656 \end_inset
21657
21658 .
21659  The string should contain 
21660 \begin_inset Quotes eld
21661 \end_inset
21662
21663 ##
21664 \begin_inset Quotes erd
21665 \end_inset
21666
21667 .
21668  This will be replaced by the counter number itself.
21669  So, for sections, it would be: Section ##.
21670 \end_layout
21671
21672 \begin_layout Description
21673 \begin_inset Flex Code
21674 status collapsed
21675
21676 \begin_layout Plain Layout
21677 Within
21678 \end_layout
21679
21680 \end_inset
21681
21682  [
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 string
21688 \end_layout
21689
21690 \end_inset
21691
21692 =
21693 \begin_inset Quotes erd
21694 \end_inset
21695
21696
21697 \begin_inset Quotes erd
21698 \end_inset
21699
21700 ] If this is set to the name of another counter, the present counter will
21701  be reset every time the other one is increased.
21702  For example, 
21703 \begin_inset Flex Code
21704 status collapsed
21705
21706 \begin_layout Plain Layout
21707 subsection
21708 \end_layout
21709
21710 \end_inset
21711
21712  is numbered inside 
21713 \begin_inset Flex Code
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 section
21718 \end_layout
21719
21720 \end_inset
21721
21722 .
21723 \end_layout
21724
21725 \begin_layout Subsection
21726 Font description
21727 \begin_inset CommandInset label
21728 LatexCommand label
21729 name "subsec:Font-description"
21730
21731 \end_inset
21732
21733
21734 \end_layout
21735
21736 \begin_layout Standard
21737 A font description looks like this:
21738 \end_layout
21739
21740 \begin_layout LyX-Code
21741 Font 
21742 \family roman
21743 \emph on
21744 or
21745 \family default
21746 \emph default
21747  LabelFont
21748 \emph on
21749  
21750 \family roman
21751 or
21752 \family default
21753 \emph default
21754  DefaultFont
21755 \end_layout
21756
21757 \begin_layout LyX-Code
21758  ...
21759 \end_layout
21760
21761 \begin_layout LyX-Code
21762 EndFont
21763 \end_layout
21764
21765 \begin_layout Standard
21766 The following commands are available:
21767 \end_layout
21768
21769 \begin_layout Description
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 Color
21775 \end_layout
21776
21777 \end_inset
21778
21779  [
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784
21785 \emph on
21786 none
21787 \end_layout
21788
21789 \end_inset
21790
21791
21792 \begin_inset Flex Code
21793 status collapsed
21794
21795 \begin_layout Plain Layout
21796 black
21797 \end_layout
21798
21799 \end_inset
21800
21801
21802 \begin_inset Flex Code
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806 white
21807 \end_layout
21808
21809 \end_inset
21810
21811
21812 \begin_inset Flex Code
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816 red
21817 \end_layout
21818
21819 \end_inset
21820
21821
21822 \begin_inset Flex Code
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 green
21827 \end_layout
21828
21829 \end_inset
21830
21831
21832 \begin_inset Flex Code
21833 status collapsed
21834
21835 \begin_layout Plain Layout
21836 blue
21837 \end_layout
21838
21839 \end_inset
21840
21841
21842 \begin_inset Flex Code
21843 status collapsed
21844
21845 \begin_layout Plain Layout
21846 cyan
21847 \end_layout
21848
21849 \end_inset
21850
21851
21852 \begin_inset Flex Code
21853 status collapsed
21854
21855 \begin_layout Plain Layout
21856 magenta
21857 \end_layout
21858
21859 \end_inset
21860
21861
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866 yellow
21867 \end_layout
21868
21869 \end_inset
21870
21871
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 brown
21877 \end_layout
21878
21879 \end_inset
21880
21881
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886 darkgray
21887 \end_layout
21888
21889 \end_inset
21890
21891
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896 gray
21897 \end_layout
21898
21899 \end_inset
21900
21901
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 lightgray
21907 \end_layout
21908
21909 \end_inset
21910
21911
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 lime
21917 \end_layout
21918
21919 \end_inset
21920
21921
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 orange
21927 \end_layout
21928
21929 \end_inset
21930
21931
21932 \begin_inset Flex Code
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936 olive
21937 \end_layout
21938
21939 \end_inset
21940
21941
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 pink
21947 \end_layout
21948
21949 \end_inset
21950
21951
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 purple
21957 \end_layout
21958
21959 \end_inset
21960
21961
21962 \begin_inset Flex Code
21963 status collapsed
21964
21965 \begin_layout Plain Layout
21966 teal
21967 \end_layout
21968
21969 \end_inset
21970
21971
21972 \begin_inset Flex Code
21973 status collapsed
21974
21975 \begin_layout Plain Layout
21976 violet
21977 \end_layout
21978
21979 \end_inset
21980
21981 ]
21982 \end_layout
21983
21984 \begin_layout Description
21985 \begin_inset Flex Code
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989 Family
21990 \end_layout
21991
21992 \end_inset
21993
21994  [
21995 \begin_inset Flex Code
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999
22000 \emph on
22001 Roman
22002 \end_layout
22003
22004 \end_inset
22005
22006
22007 \begin_inset Flex Code
22008 status collapsed
22009
22010 \begin_layout Plain Layout
22011 Sans
22012 \end_layout
22013
22014 \end_inset
22015
22016
22017 \begin_inset Flex Code
22018 status collapsed
22019
22020 \begin_layout Plain Layout
22021 Typewriter
22022 \end_layout
22023
22024 \end_inset
22025
22026 ]
22027 \end_layout
22028
22029 \begin_layout Description
22030 \begin_inset Flex Code
22031 status collapsed
22032
22033 \begin_layout Plain Layout
22034 Misc
22035 \end_layout
22036
22037 \end_inset
22038
22039  [
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 string
22045 \end_layout
22046
22047 \end_inset
22048
22049 ] Valid arguments are: 
22050 \begin_inset Flex Code
22051 status collapsed
22052
22053 \begin_layout Plain Layout
22054 emph
22055 \end_layout
22056
22057 \end_inset
22058
22059
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064 noun
22065 \end_layout
22066
22067 \end_inset
22068
22069
22070 \begin_inset Flex Code
22071 status collapsed
22072
22073 \begin_layout Plain Layout
22074 strikeout
22075 \end_layout
22076
22077 \end_inset
22078
22079
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084 underbar
22085 \end_layout
22086
22087 \end_inset
22088
22089
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 uuline
22095 \end_layout
22096
22097 \end_inset
22098
22099
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 uwave
22105 \end_layout
22106
22107 \end_inset
22108
22109
22110 \begin_inset Flex Code
22111 status collapsed
22112
22113 \begin_layout Plain Layout
22114 no_emph
22115 \end_layout
22116
22117 \end_inset
22118
22119
22120 \begin_inset Flex Code
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124 no_noun
22125 \end_layout
22126
22127 \end_inset
22128
22129
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 no_strikeout
22135 \end_layout
22136
22137 \end_inset
22138
22139
22140 \begin_inset Flex Code
22141 status collapsed
22142
22143 \begin_layout Plain Layout
22144 no_bar
22145 \end_layout
22146
22147 \end_inset
22148
22149
22150 \begin_inset Flex Code
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 no_uuline
22155 \end_layout
22156
22157 \end_inset
22158
22159  and 
22160 \begin_inset Flex Code
22161 status collapsed
22162
22163 \begin_layout Plain Layout
22164 no_uwave
22165 \end_layout
22166
22167 \end_inset
22168
22169 .
22170  Each of these turns on or off the corresponding attribute.
22171  For example, 
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 emph
22177 \end_layout
22178
22179 \end_inset
22180
22181  turns on emphasis, and 
22182 \begin_inset Flex Code
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 no_emph
22187 \end_layout
22188
22189 \end_inset
22190
22191  turns it off.
22192  
22193 \begin_inset Newline newline
22194 \end_inset
22195
22196 If the latter seems puzzling, remember that the font settings for the present
22197  context are generally inherited from the surrounding context.
22198  So 
22199 \begin_inset Flex Code
22200 status collapsed
22201
22202 \begin_layout Plain Layout
22203 no_emph
22204 \end_layout
22205
22206 \end_inset
22207
22208  would turn off the emphasis that was anyway in effect, say, in a theorem
22209  environment.
22210 \end_layout
22211
22212 \begin_layout Description
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 Series
22218 \end_layout
22219
22220 \end_inset
22221
22222  [
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227
22228 \emph on
22229 Medium
22230 \end_layout
22231
22232 \end_inset
22233
22234
22235 \begin_inset Flex Code
22236 status collapsed
22237
22238 \begin_layout Plain Layout
22239 Bold
22240 \end_layout
22241
22242 \end_inset
22243
22244
22245 \end_layout
22246
22247 \begin_layout Description
22248 \begin_inset Flex Code
22249 status collapsed
22250
22251 \begin_layout Plain Layout
22252 Shape
22253 \end_layout
22254
22255 \end_inset
22256
22257  [
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262
22263 \emph on
22264 Up
22265 \end_layout
22266
22267 \end_inset
22268
22269
22270 \begin_inset Flex Code
22271 status collapsed
22272
22273 \begin_layout Plain Layout
22274 Italic
22275 \end_layout
22276
22277 \end_inset
22278
22279
22280 \begin_inset Flex Code
22281 status collapsed
22282
22283 \begin_layout Plain Layout
22284 SmallCaps
22285 \end_layout
22286
22287 \end_inset
22288
22289
22290 \begin_inset Flex Code
22291 status collapsed
22292
22293 \begin_layout Plain Layout
22294 Slanted
22295 \end_layout
22296
22297 \end_inset
22298
22299
22300 \end_layout
22301
22302 \begin_layout Description
22303 \begin_inset Flex Code
22304 status collapsed
22305
22306 \begin_layout Plain Layout
22307 Size
22308 \end_layout
22309
22310 \end_inset
22311
22312  [
22313 \begin_inset Flex Code
22314 status collapsed
22315
22316 \begin_layout Plain Layout
22317 tiny
22318 \end_layout
22319
22320 \end_inset
22321
22322
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 small
22328 \end_layout
22329
22330 \end_inset
22331
22332
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337
22338 \emph on
22339 normal
22340 \end_layout
22341
22342 \end_inset
22343
22344
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 large
22350 \end_layout
22351
22352 \end_inset
22353
22354
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359 larger
22360 \end_layout
22361
22362 \end_inset
22363
22364
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369 largest
22370 \end_layout
22371
22372 \end_inset
22373
22374
22375 \begin_inset Flex Code
22376 status collapsed
22377
22378 \begin_layout Plain Layout
22379 huge
22380 \end_layout
22381
22382 \end_inset
22383
22384
22385 \begin_inset Flex Code
22386 status collapsed
22387
22388 \begin_layout Plain Layout
22389 giant
22390 \end_layout
22391
22392 \end_inset
22393
22394 ]
22395 \end_layout
22396
22397 \begin_layout Subsection
22398 \begin_inset CommandInset label
22399 LatexCommand label
22400 name "subsec:Citation-engine-description"
22401
22402 \end_inset
22403
22404 Cite engine description
22405 \end_layout
22406
22407 \begin_layout Standard
22408 The 
22409 \begin_inset Flex Code
22410 status collapsed
22411
22412 \begin_layout Plain Layout
22413 CiteEngine
22414 \end_layout
22415
22416 \end_inset
22417
22418  blocks, as used mainly in cite engine files (see 
22419 \begin_inset CommandInset ref
22420 LatexCommand ref
22421 reference "subsec:Cite-Engine-Files"
22422 plural "false"
22423 caps "false"
22424 noprefix "false"
22425
22426 \end_inset
22427
22428 ), define the citation commands provided by a specific 
22429 \begin_inset Quotes eld
22430 \end_inset
22431
22432 cite engine
22433 \begin_inset Quotes erd
22434 \end_inset
22435
22436 .
22437  A cite engine, in \SpecialChar LyX
22438  terms, is way specific way to format citations, using
22439  numbers, author names and/or years.
22440  Currently, \SpecialChar LyX
22441  supports three such engine types, namely:
22442 \end_layout
22443
22444 \begin_layout Enumerate
22445 \begin_inset Flex Code
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 default
22450 \end_layout
22451
22452 \end_inset
22453
22454 : the default Bib\SpecialChar TeX
22455  way to format citations, a simple numeric style (e.
22456 \begin_inset space \thinspace{}
22457 \end_inset
22458
22459 g., 
22460 \begin_inset Quotes eld
22461 \end_inset
22462
22463 [1]
22464 \begin_inset Quotes erd
22465 \end_inset
22466
22467 )
22468 \end_layout
22469
22470 \begin_layout Enumerate
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 authoryear
22476 \end_layout
22477
22478 \end_inset
22479
22480 : Harvard-styled citations using author names and publication year (e.
22481 \begin_inset space \thinspace{}
22482 \end_inset
22483
22484 g., 
22485 \begin_inset Quotes eld
22486 \end_inset
22487
22488 Smith and Miller (2017b)
22489 \begin_inset Quotes erd
22490 \end_inset
22491
22492 )
22493 \end_layout
22494
22495 \begin_layout Enumerate
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 numerical
22501 \end_layout
22502
22503 \end_inset
22504
22505 : extended numerical citations that also allow for author or title next
22506  to the number (e.
22507 \begin_inset space \thinspace{}
22508 \end_inset
22509
22510 g., 
22511 \begin_inset Quotes eld
22512 \end_inset
22513
22514 Smith and Miller [1]
22515 \begin_inset Quotes erd
22516 \end_inset
22517
22518 )
22519 \end_layout
22520
22521 \begin_layout Standard
22522 \begin_inset Flex Code
22523 status collapsed
22524
22525 \begin_layout Plain Layout
22526 CiteEngine
22527 \end_layout
22528
22529 \end_inset
22530
22531  blocks look like this:
22532 \end_layout
22533
22534 \begin_layout LyX-Code
22535 CiteEngine default
22536 \end_layout
22537
22538 \begin_layout LyX-Code
22539  cite
22540 \end_layout
22541
22542 \begin_layout LyX-Code
22543  Citep*[][]
22544 \end_layout
22545
22546 \begin_layout LyX-Code
22547  citeyearpar[][]=parencite*
22548 \end_layout
22549
22550 \begin_layout LyX-Code
22551  ...
22552 \end_layout
22553
22554 \begin_layout LyX-Code
22555 End
22556 \end_layout
22557
22558 \begin_layout Standard
22559 The tag following 
22560 \begin_inset Flex Code
22561 status collapsed
22562
22563 \begin_layout Plain Layout
22564 CiteEngine
22565 \end_layout
22566
22567 \end_inset
22568
22569  denotes the engine.
22570  The individual lines respectively define a cite command or cite command
22571  paradigm supported by this engine.
22572  The line can be as simple as a cite command that is used both to name the
22573  respective \SpecialChar LyX
22574  command and the \SpecialChar LaTeX
22575  output or more complex in order to differentiate
22576  things.
22577  The full syntax is:
22578 \end_layout
22579
22580 \begin_layout LyX-Code
22581 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22582 \end_layout
22583
22584 \begin_layout Itemize
22585 \begin_inset Flex Code
22586 status collapsed
22587
22588 \begin_layout Plain Layout
22589 LyXName
22590 \end_layout
22591
22592 \end_inset
22593
22594 : The name as used in the 
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599 *.lyx
22600 \end_layout
22601
22602 \end_inset
22603
22604  file.
22605 \end_layout
22606
22607 \begin_deeper
22608 \begin_layout Standard
22609 For portability reasons, we try to use the same name for same-formatted
22610  commands in different cite packages (thus many names stem from natbib,
22611  and thus we need to differentiate a 
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616 latexcmd
22617 \end_layout
22618
22619 \end_inset
22620
22621  sometimes, if the \SpecialChar LaTeX
22622  command names differ).
22623 \end_layout
22624
22625 \end_deeper
22626 \begin_layout Itemize
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 alias
22632 \end_layout
22633
22634 \end_inset
22635
22636 : a (comma-separated) list of commands that fall back to the given 
22637 \begin_inset Flex Code
22638 status collapsed
22639
22640 \begin_layout Plain Layout
22641 LyXName
22642 \end_layout
22643
22644 \end_inset
22645
22646  in the current engine.
22647  This eases the switch of citation packages and engines.
22648  The 
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 alias
22654 \end_layout
22655
22656 \end_inset
22657
22658  can be compared to 
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 ObsoletedBy
22664 \end_layout
22665
22666 \end_inset
22667
22668  in layout definitions.
22669 \end_layout
22670
22671 \begin_layout Itemize
22672 \begin_inset Flex Code
22673 status collapsed
22674
22675 \begin_layout Plain Layout
22676 latexcmd
22677 \end_layout
22678
22679 \end_inset
22680
22681 : The actual \SpecialChar LaTeX
22682  command that is output.
22683  
22684 \end_layout
22685
22686 \begin_layout Standard
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691 Alias
22692 \end_layout
22693
22694 \end_inset
22695
22696  and 
22697 \begin_inset Flex Code
22698 status collapsed
22699
22700 \begin_layout Plain Layout
22701 latexcmd
22702 \end_layout
22703
22704 \end_inset
22705
22706  are optional.
22707  If no 
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712 latexcmd
22713 \end_layout
22714
22715 \end_inset
22716
22717  is given, the 
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 LyXName
22723 \end_layout
22724
22725 \end_inset
22726
22727  will be output to \SpecialChar LaTeX
22728 .
22729 \end_layout
22730
22731 \begin_layout Standard
22732 Note further:
22733 \end_layout
22734
22735 \begin_layout Itemize
22736 Capitalization indicates that the command also has a capitalized form (
22737 \begin_inset Flex Code
22738 status collapsed
22739
22740 \begin_layout Plain Layout
22741
22742 \backslash
22743 Latexcmd
22744 \end_layout
22745
22746 \end_inset
22747
22748  vs.
22749  
22750 \begin_inset Flex Code
22751 status collapsed
22752
22753 \begin_layout Plain Layout
22754
22755 \backslash
22756 latexcmd
22757 \end_layout
22758
22759 \end_inset
22760
22761 ).
22762  These usually enforce up-casing of name prefixes (
22763 \emph on
22764 von Goethe
22765 \emph default
22766  
22767 \begin_inset Formula $\Rightarrow$
22768 \end_inset
22769
22770  
22771 \emph on
22772 Von Goethe
22773 \emph default
22774 ).
22775 \end_layout
22776
22777 \begin_layout Itemize
22778 Brackets 
22779 \begin_inset Flex Code
22780 status collapsed
22781
22782 \begin_layout Plain Layout
22783 []
22784 \end_layout
22785
22786 \end_inset
22787
22788  indicate the number of optional arguments (there can be 0–2).
22789 \end_layout
22790
22791 \begin_layout Itemize
22792 A star 
22793 \begin_inset Flex Code
22794 status collapsed
22795
22796 \begin_layout Plain Layout
22797 *
22798 \end_layout
22799
22800 \end_inset
22801
22802  indicates there is a starred version of the command (
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807
22808 \backslash
22809 latexcmd*
22810 \end_layout
22811
22812 \end_inset
22813
22814  vs.
22815  
22816 \begin_inset Flex Code
22817 status collapsed
22818
22819 \begin_layout Plain Layout
22820
22821 \backslash
22822 latexcmd
22823 \end_layout
22824
22825 \end_inset
22826
22827 ).
22828  
22829 \end_layout
22830
22831 \begin_deeper
22832 \begin_layout Standard
22833 By default, the starred version means: Output all authors even if it should
22834  be shortened with 
22835 \begin_inset Quotes eld
22836 \end_inset
22837
22838 et al.
22839 \begin_inset Quotes erd
22840 \end_inset
22841
22842  due to the 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 MaxCiteNames
22848 \end_layout
22849
22850 \end_inset
22851
22852  threshold.
22853 \end_layout
22854
22855 \begin_layout Standard
22856 If the star has a different meaning for a given command, it can be specified
22857  in angle brackets: 
22858 \begin_inset Flex Code
22859 status collapsed
22860
22861 \begin_layout Plain Layout
22862 <!_stardesc!_stardesctooltip>
22863 \end_layout
22864
22865 \end_inset
22866
22867 .
22868  Maximal two translatable macro keywords, marked by the prefix 
22869 \begin_inset Flex Code
22870 status collapsed
22871
22872 \begin_layout Plain Layout
22873 !_
22874 \end_layout
22875
22876 \end_inset
22877
22878 , can be given.
22879  The first points to the string that replaces the 
22880 \begin_inset Quotes eld
22881 \end_inset
22882
22883 Full aut&hor list
22884 \begin_inset Quotes erd
22885 \end_inset
22886
22887  checkbox label in the citation dialog, the second one to an optional tool
22888  tip for this checkbox.
22889  
22890 \end_layout
22891
22892 \begin_layout Standard
22893 Note that these two macros have to be defined in a 
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 CiteFormat
22899 \end_layout
22900
22901 \end_inset
22902
22903  (see next section), dropping the 
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 !
22909 \end_layout
22910
22911 \end_inset
22912
22913  from the prefix, like this: 
22914 \end_layout
22915
22916 \begin_layout LyX-Code
22917 _stardesc Sta&rred command label
22918 \end_layout
22919
22920 \begin_layout LyX-Code
22921 _stardesctooltip Tooltip for the starred command checkbox.
22922 \end_layout
22923
22924 \end_deeper
22925 \begin_layout Itemize
22926 A dollar sign 
22927 \begin_inset Flex Code
22928 status collapsed
22929
22930 \begin_layout Plain Layout
22931 $
22932 \end_layout
22933
22934 \end_inset
22935
22936  indicates that this command features 
22937 \begin_inset Quotes eld
22938 \end_inset
22939
22940 qualified citation lists
22941 \begin_inset Quotes erd
22942 \end_inset
22943
22944 .
22945  This is a 
22946 \family sans
22947 Biblatex
22948 \family default
22949 -specific feature for multi-reference citations where an individual pre-
22950  and postnote can be given to each reference in the list.
22951  Please refer to the 
22952 \family sans
22953 Biblatex
22954 \family default
22955  manual for details.
22956 \change_inserted -712698321 1526898670
22957
22958 \end_layout
22959
22960 \begin_layout Standard
22961
22962 \change_inserted -712698321 1526899524
22963 If you want to add a cite command to a cite engine (e.
22964 \begin_inset space \thinspace{}
22965 \end_inset
22966
22967 g., add a specific command provided by a class), you can use 
22968 \begin_inset Flex Code
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972
22973 \change_inserted -712698321 1526898768
22974 AddToCiteEngine <engine type> \SpecialChar ldots
22975  End
22976 \change_unchanged
22977
22978 \end_layout
22979
22980 \end_inset
22981
22982 .
22983  Note that only cite commands that do not exist yet are added.
22984 \change_unchanged
22985
22986 \end_layout
22987
22988 \begin_layout Subsection
22989 \begin_inset CommandInset label
22990 LatexCommand label
22991 name "subsec:Citation-format-description"
22992
22993 \end_inset
22994
22995 Cite format description
22996 \end_layout
22997
22998 \begin_layout Standard
22999 The 
23000 \begin_inset Flex Code
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 CiteFormat
23005 \end_layout
23006
23007 \end_inset
23008
23009  blocks are used to describe how bibliographic information should be displayed,
23010  both within \SpecialChar LyX
23011  itself (in the citation dialog and in tooltips, for example)
23012  and in XHTML output.
23013  Such a block might look like this:
23014 \end_layout
23015
23016 \begin_layout LyX-Code
23017 CiteFormat
23018 \end_layout
23019
23020 \begin_layout LyX-Code
23021  article ...
23022 \end_layout
23023
23024 \begin_layout LyX-Code
23025  book ...
23026 \end_layout
23027
23028 \begin_layout LyX-Code
23029 End
23030 \end_layout
23031
23032 \begin_layout Standard
23033 or
23034 \end_layout
23035
23036 \begin_layout LyX-Code
23037 CiteFormat
23038 \end_layout
23039
23040 \begin_layout LyX-Code
23041  cite ...
23042 \end_layout
23043
23044 \begin_layout LyX-Code
23045  citet*[][] ...
23046 \end_layout
23047
23048 \begin_layout LyX-Code
23049 End
23050 \end_layout
23051
23052 \begin_layout Standard
23053 In the first case, the individual lines define how the bibliographic information
23054  associated with an article or book, respectively, is to be displayed, and
23055  such a definition can be given for any 
23056 \begin_inset Quotes els
23057 \end_inset
23058
23059 entry type
23060 \begin_inset Quotes ers
23061 \end_inset
23062
23063  that might be present in a Bib\SpecialChar TeX
23064  file.
23065  \SpecialChar LyX
23066  defines a default format in the source code that will be used if no specific
23067  definition has been given.
23068  \SpecialChar LyX
23069  predefines several formats in the file 
23070 \begin_inset Flex Code
23071 status collapsed
23072
23073 \begin_layout Plain Layout
23074 stdciteformats.inc
23075 \end_layout
23076
23077 \end_inset
23078
23079 , which is included in most of \SpecialChar LyX
23080 's document classes.
23081 \end_layout
23082
23083 \begin_layout Standard
23084 In the second case, the lines define how a specific citation command (in
23085  the example 
23086 \begin_inset Flex Code
23087 status collapsed
23088
23089 \begin_layout Plain Layout
23090
23091 \backslash
23092 cite
23093 \end_layout
23094
23095 \end_inset
23096
23097
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102
23103 \backslash
23104 citet
23105 \end_layout
23106
23107 \end_inset
23108
23109 ) is to be displayed on the citation inset label, in the citation dialog,
23110  menu or XHTML output.
23111  \SpecialChar LyX
23112  defines such formats for the citation style variants it supports via 
23113 \family sans
23114 Document\SpecialChar menuseparator
23115 Setting\SpecialChar menuseparator
23116 Bibliography\SpecialChar ldots
23117
23118 \family default
23119  in specific 
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124 *.citeengine
23125 \end_layout
23126
23127 \end_inset
23128
23129  files that are shipped with \SpecialChar LyX
23130  (see 
23131 \begin_inset CommandInset ref
23132 LatexCommand ref
23133 reference "subsec:Cite-Engine-Files"
23134 plural "false"
23135 caps "false"
23136 noprefix "false"
23137
23138 \end_inset
23139
23140 ).
23141 \end_layout
23142
23143 \begin_layout Standard
23144 The definitions use a simple language that allows Bib\SpecialChar TeX
23145  keys to be replaced
23146  with their values.
23147  Keys should be enclosed in 
23148 \begin_inset Flex Code
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152 %
23153 \end_layout
23154
23155 \end_inset
23156
23157  signs, e.g.: 
23158 \begin_inset Flex Code
23159 status collapsed
23160
23161 \begin_layout Plain Layout
23162 %author%
23163 \end_layout
23164
23165 \end_inset
23166
23167 .
23168  So a simple definition might look like this:
23169 \end_layout
23170
23171 \begin_layout LyX-Code
23172 misc %author%, 
23173 \begin_inset Quotes eld
23174 \end_inset
23175
23176 %title%
23177 \begin_inset Quotes erd
23178 \end_inset
23179
23180 .
23181 \end_layout
23182
23183 \begin_layout Standard
23184 This would print the author, followed by a comma, followed by the title,
23185  in quotes, followed by a period.
23186 \end_layout
23187
23188 \begin_layout Standard
23189 Of course, sometimes you may want to print a key only if it exists.
23190  This can be done by using a conditional construction, such as: 
23191 \begin_inset Flex Code
23192 status collapsed
23193
23194 \begin_layout Plain Layout
23195 {%volume%[[vol.
23196 \begin_inset space ~
23197 \end_inset
23198
23199 %volume%]]}
23200 \end_layout
23201
23202 \end_inset
23203
23204 .
23205  This says: If the 
23206 \begin_inset Flex Code
23207 status collapsed
23208
23209 \begin_layout Plain Layout
23210 volume
23211 \end_layout
23212
23213 \end_inset
23214
23215  key exists, then print 
23216 \begin_inset Quotes eld
23217 \end_inset
23218
23219 vol.
23220 \begin_inset space ~
23221 \end_inset
23222
23223
23224 \begin_inset Quotes erd
23225 \end_inset
23226
23227  followed by the volume key.
23228  It is also possible to have an else clause in the conditional, such as:
23229 \begin_inset Newline newline
23230 \end_inset
23231
23232
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237 {%author%[[%author%]][[%editor%, ed.]]}
23238 \end_layout
23239
23240 \end_inset
23241
23242 .
23243 \begin_inset Newline newline
23244 \end_inset
23245
23246 Here, the 
23247 \begin_inset Flex Code
23248 status collapsed
23249
23250 \begin_layout Plain Layout
23251 author
23252 \end_layout
23253
23254 \end_inset
23255
23256  key is printed if it exists; otherwise, the editor key is printed, followed
23257  by 
23258 \begin_inset Quotes eld
23259 \end_inset
23260
23261 ,
23262 \begin_inset space ~
23263 \end_inset
23264
23265 ed.
23266 \begin_inset Quotes erd
23267 \end_inset
23268
23269  Note that the key is again enclosed in 
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 %
23275 \end_layout
23276
23277 \end_inset
23278
23279  signs; the entire conditional is enclosed in braces; and the if and else
23280  clauses are enclosed in double brackets, 
23281 \begin_inset Quotes eld
23282 \end_inset
23283
23284
23285 \begin_inset Flex Code
23286 status collapsed
23287
23288 \begin_layout Plain Layout
23289 [[
23290 \end_layout
23291
23292 \end_inset
23293
23294
23295 \begin_inset Quotes eld
23296 \end_inset
23297
23298  and 
23299 \begin_inset Quotes eld
23300 \end_inset
23301
23302
23303 \begin_inset Flex Code
23304 status collapsed
23305
23306 \begin_layout Plain Layout
23307 ]]
23308 \end_layout
23309
23310 \end_inset
23311
23312
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316 .
23317  There must be no space between any of these.
23318 \end_layout
23319
23320 \begin_layout Standard
23321 Next to the entry keys, there are some special keys that can be used for
23322  these conditionals:
23323 \end_layout
23324
23325 \begin_layout Itemize
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330 {%dialog%[[true]][[false]]}
23331 \end_layout
23332
23333 \end_inset
23334
23335 : process the 
23336 \begin_inset Quotes eld
23337 \end_inset
23338
23339 true
23340 \begin_inset Quotes erd
23341 \end_inset
23342
23343  part for dialogs and menus, the 
23344 \begin_inset Quotes eld
23345 \end_inset
23346
23347 false
23348 \begin_inset Quotes erd
23349 \end_inset
23350
23351  part for other contexts (workarea, export)
23352 \end_layout
23353
23354 \begin_layout Itemize
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 {%export%[[true]][[false]]}
23360 \end_layout
23361
23362 \end_inset
23363
23364 : process the 
23365 \begin_inset Quotes eld
23366 \end_inset
23367
23368 true
23369 \begin_inset Quotes erd
23370 \end_inset
23371
23372  part for export and menus, the 
23373 \begin_inset Quotes eld
23374 \end_inset
23375
23376 false
23377 \begin_inset Quotes erd
23378 \end_inset
23379
23380  part for other contexts (workarea, dialog)
23381 \end_layout
23382
23383 \begin_layout Itemize
23384 \begin_inset Flex Code
23385 status collapsed
23386
23387 \begin_layout Plain Layout
23388 {%next%[[true]]}
23389 \end_layout
23390
23391 \end_inset
23392
23393 : process the 
23394 \begin_inset Quotes eld
23395 \end_inset
23396
23397 true
23398 \begin_inset Quotes erd
23399 \end_inset
23400
23401  part if another item follows (e.
23402 \begin_inset space \thinspace{}
23403 \end_inset
23404
23405 g., in a citation with multiple keys)
23406 \end_layout
23407
23408 \begin_layout Itemize
23409 \begin_inset Flex Code
23410 status collapsed
23411
23412 \begin_layout Plain Layout
23413 {%second%[[true]][[false]]}
23414 \end_layout
23415
23416 \end_inset
23417
23418 : process the 
23419 \begin_inset Quotes eld
23420 \end_inset
23421
23422 true
23423 \begin_inset Quotes erd
23424 \end_inset
23425
23426  if this is the second of multiple items, else the 
23427 \begin_inset Quotes eld
23428 \end_inset
23429
23430 false
23431 \begin_inset Quotes erd
23432 \end_inset
23433
23434  part
23435 \end_layout
23436
23437 \begin_layout Itemize
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 {%ifstar%[[true]][[false]]}
23443 \end_layout
23444
23445 \end_inset
23446
23447 : process the 
23448 \begin_inset Quotes eld
23449 \end_inset
23450
23451 true
23452 \begin_inset Quotes erd
23453 \end_inset
23454
23455  part for starred citation commands (such as 
23456 \begin_inset Flex Code
23457 status collapsed
23458
23459 \begin_layout Plain Layout
23460
23461 \backslash
23462 cite*
23463 \end_layout
23464
23465 \end_inset
23466
23467 ), the false part for unstarred
23468 \end_layout
23469
23470 \begin_layout Itemize
23471 \begin_inset Flex Code
23472 status collapsed
23473
23474 \begin_layout Plain Layout
23475 {%ifentrytype:<type>%[[true]][[false]]}
23476 \end_layout
23477
23478 \end_inset
23479
23480 : process the 
23481 \begin_inset Quotes eld
23482 \end_inset
23483
23484 true
23485 \begin_inset Quotes erd
23486 \end_inset
23487
23488  if the current entry type matches 
23489 \begin_inset Flex Code
23490 status collapsed
23491
23492 \begin_layout Plain Layout
23493 <type>
23494 \end_layout
23495
23496 \end_inset
23497
23498 , else the false part (e.g., in a citation definition: 
23499 \begin_inset Flex Code
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23504 \end_layout
23505
23506 \end_inset
23507
23508 )
23509 \end_layout
23510
23511 \begin_layout Itemize
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 {%ifmultiple:<authortype>%[[true]][[false]]}
23517 \end_layout
23518
23519 \end_inset
23520
23521 : process the 
23522 \begin_inset Quotes eld
23523 \end_inset
23524
23525 true
23526 \begin_inset Quotes erd
23527 \end_inset
23528
23529  if the current author type (author, editor etc.) has multiple authors, else
23530  the false part (e.g., in a bibliography definition: 
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535 {%ifmultiple:editor%[[eds.]][[ed.]]}
23536 \end_layout
23537
23538 \end_inset
23539
23540 )
23541 \end_layout
23542
23543 \begin_layout Itemize
23544 \begin_inset Flex Code
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548 {%ifqualified%[[true]][[false]]}
23549 \end_layout
23550
23551 \end_inset
23552
23553 : process the 
23554 \begin_inset Quotes eld
23555 \end_inset
23556
23557 true
23558 \begin_inset Quotes erd
23559 \end_inset
23560
23561  part if the current citation is a qualified citation list (a specific 
23562 \family sans
23563 Biblatex
23564 \family default
23565  format for multi-reference citations), the false part if this is not the
23566  case.
23567 \end_layout
23568
23569 \begin_layout Standard
23570 We said that 
23571 \begin_inset Flex Code
23572 status collapsed
23573
23574 \begin_layout Plain Layout
23575 %author%
23576 \end_layout
23577
23578 \end_inset
23579
23580  prints the author key as it is recorded in the bibliography file.
23581  This might not be what you want, since it will result in a string such
23582  as 
23583 \begin_inset Quotes eld
23584 \end_inset
23585
23586 Miller, Peter and Smith, Mary and White, Jane
23587 \begin_inset Quotes erd
23588 \end_inset
23589
23590  (since 
23591 \begin_inset Quotes eld
23592 \end_inset
23593
23594 and
23595 \begin_inset Quotes erd
23596 \end_inset
23597
23598  is used by Bib\SpecialChar TeX
23599  to delimit authors).
23600  \SpecialChar LyX
23601  therefore provides some methods to get properly formatted name lists (which
23602  will also get translated).
23603  The following keys are provided:
23604 \end_layout
23605
23606 \begin_layout Enumerate
23607 For name lists with pre- and surname, suitable for the main authors/editors
23608  of a bibliography item.
23609  The 
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 <nametype>
23615 \end_layout
23616
23617 \end_inset
23618
23619  part denotes the kind of list that is requested (e.g.
23620  
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625 <nametype:author>
23626 \end_layout
23627
23628 \end_inset
23629
23630 ):
23631 \end_layout
23632
23633 \begin_deeper
23634 \begin_layout Itemize
23635 \begin_inset Flex Code
23636 status collapsed
23637
23638 \begin_layout Plain Layout
23639 %abbrvnames:<nametype>%
23640 \end_layout
23641
23642 \end_inset
23643
23644 : Provides a name list which is abbreviated (with 
23645 \begin_inset Quotes eld
23646 \end_inset
23647
23648 et al.
23649 \begin_inset Quotes erd
23650 \end_inset
23651
23652 ) when 
23653 \begin_inset Flex Code
23654 status collapsed
23655
23656 \begin_layout Plain Layout
23657 MaxCiteNames
23658 \end_layout
23659
23660 \end_inset
23661
23662  is reached.
23663 \end_layout
23664
23665 \begin_layout Itemize
23666 \begin_inset Flex Code
23667 status collapsed
23668
23669 \begin_layout Plain Layout
23670 %fullnames:<nametype>%
23671 \end_layout
23672
23673 \end_inset
23674
23675 : Provides a full name list (never abbreviated with 
23676 \begin_inset Quotes eld
23677 \end_inset
23678
23679 et al.
23680 \begin_inset Quotes erd
23681 \end_inset
23682
23683 ).
23684 \end_layout
23685
23686 \begin_layout Itemize
23687 \begin_inset Flex Code
23688 status collapsed
23689
23690 \begin_layout Plain Layout
23691 %forceabbrvnames:<nametype>%
23692 \end_layout
23693
23694 \end_inset
23695
23696 : Provides a name list which is always abbreviated (with 
23697 \begin_inset Quotes eld
23698 \end_inset
23699
23700 et al.
23701 \begin_inset Quotes erd
23702 \end_inset
23703
23704 ) irrespective of 
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 MaxCiteNames
23710 \end_layout
23711
23712 \end_inset
23713
23714 .
23715 \end_layout
23716
23717 \end_deeper
23718 \begin_layout Enumerate
23719 Alternative name lists with pre- and surname, if the order of pre- and surname
23720  inside the bibliography item differs (as in: 
23721 \begin_inset Quotes eld
23722 \end_inset
23723
23724 Miller, John: Some text, in: Mary Smith, ed.: A volume
23725 \begin_inset Quotes erd
23726 \end_inset
23727
23728 ):
23729 \end_layout
23730
23731 \begin_deeper
23732 \begin_layout Itemize
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 %abbrvbynames:<nametype>%
23738 \end_layout
23739
23740 \end_inset
23741
23742 : Provides a name list which is abbreviated (with 
23743 \begin_inset Quotes eld
23744 \end_inset
23745
23746 et al.
23747 \begin_inset Quotes erd
23748 \end_inset
23749
23750 ) when 
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 MaxCiteNames
23756 \end_layout
23757
23758 \end_inset
23759
23760  is reached.
23761 \end_layout
23762
23763 \begin_layout Itemize
23764 \begin_inset Flex Code
23765 status collapsed
23766
23767 \begin_layout Plain Layout
23768 %fullbynames:<nametype>%
23769 \end_layout
23770
23771 \end_inset
23772
23773 : Provides a full name list (never abbreviated with 
23774 \begin_inset Quotes eld
23775 \end_inset
23776
23777 et al.
23778 \begin_inset Quotes erd
23779 \end_inset
23780
23781 ).
23782 \end_layout
23783
23784 \begin_layout Itemize
23785 \begin_inset Flex Code
23786 status collapsed
23787
23788 \begin_layout Plain Layout
23789 %forceabbrvbynames:<nametype>%
23790 \end_layout
23791
23792 \end_inset
23793
23794 : Provides a name list which is always abbreviated (with 
23795 \begin_inset Quotes eld
23796 \end_inset
23797
23798 et al.
23799 \begin_inset Quotes erd
23800 \end_inset
23801
23802 ) irrespective of 
23803 \begin_inset Flex Code
23804 status collapsed
23805
23806 \begin_layout Plain Layout
23807 MaxCiteNames
23808 \end_layout
23809
23810 \end_inset
23811
23812 .
23813 \end_layout
23814
23815 \end_deeper
23816 \begin_layout Enumerate
23817 And finally name lists which consist of family names only, as used in author-yea
23818 r citation labels.
23819  These do not take a 
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824 <nametype>
23825 \end_layout
23826
23827 \end_inset
23828
23829  part, but always return either an author list or, if this does not exist,
23830  an editor list (as common in author-year labels):
23831 \end_layout
23832
23833 \begin_deeper
23834 \begin_layout Itemize
23835 \begin_inset Flex Code
23836 status collapsed
23837
23838 \begin_layout Plain Layout
23839 %abbrvciteauthor%
23840 \end_layout
23841
23842 \end_inset
23843
23844 : Provides a name list which is abbreviated (with 
23845 \begin_inset Quotes eld
23846 \end_inset
23847
23848 et al.
23849 \begin_inset Quotes erd
23850 \end_inset
23851
23852 ) when 
23853 \begin_inset Flex Code
23854 status collapsed
23855
23856 \begin_layout Plain Layout
23857 MaxCiteNames
23858 \end_layout
23859
23860 \end_inset
23861
23862  is reached.
23863 \end_layout
23864
23865 \begin_layout Itemize
23866 \begin_inset Flex Code
23867 status collapsed
23868
23869 \begin_layout Plain Layout
23870 %fullciteauthor%
23871 \end_layout
23872
23873 \end_inset
23874
23875 : Provides a full name list (never abbreviated with 
23876 \begin_inset Quotes eld
23877 \end_inset
23878
23879 et al.
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883 ).
23884 \end_layout
23885
23886 \begin_layout Itemize
23887 \begin_inset Flex Code
23888 status collapsed
23889
23890 \begin_layout Plain Layout
23891 %forceabbrvciteauthor%
23892 \end_layout
23893
23894 \end_inset
23895
23896 : Provides a name list which is always abbreviated (with 
23897 \begin_inset Quotes eld
23898 \end_inset
23899
23900 et al.
23901 \begin_inset Quotes erd
23902 \end_inset
23903
23904 ) irrespective of 
23905 \begin_inset Flex Code
23906 status collapsed
23907
23908 \begin_layout Plain Layout
23909 MaxCiteNames
23910 \end_layout
23911
23912 \end_inset
23913
23914 .
23915 \end_layout
23916
23917 \end_deeper
23918 \begin_layout Standard
23919 The order of pre- and surname in the former two lists can be adjusted by
23920  these macros:
23921 \end_layout
23922
23923 \begin_layout Itemize
23924 \begin_inset Flex Code
23925 status collapsed
23926
23927 \begin_layout Plain Layout
23928 !firstnameform %surname%, %prename%
23929 \end_layout
23930
23931 \end_inset
23932
23933  (first author in lists of type 1)
23934 \end_layout
23935
23936 \begin_layout Itemize
23937 \begin_inset Flex Code
23938 status collapsed
23939
23940 \begin_layout Plain Layout
23941 !othernameform %surname%, %prename%
23942 \end_layout
23943
23944 \end_inset
23945
23946  (other authors in lists of type 1)
23947 \end_layout
23948
23949 \begin_layout Itemize
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954 !firstbynameform %prename% %surname%
23955 \end_layout
23956
23957 \end_inset
23958
23959  (first author in lists of type 2)
23960 \end_layout
23961
23962 \begin_layout Itemize
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 !otherbynameform %prename% %surname%
23968 \end_layout
23969
23970 \end_inset
23971
23972  (other authors in lists of type 2)
23973 \end_layout
23974
23975 \begin_layout Standard
23976 This allows you to configure namings like 
23977 \begin_inset Quotes eld
23978 \end_inset
23979
23980 Miller, Peter and Mary Smith: \SpecialChar ldots
23981 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23982
23983 \begin_inset Quotes erd
23984 \end_inset
23985
23986 .
23987 \end_layout
23988
23989 \begin_layout Standard
23990 There is one other piece of syntax available in definitions, which looks
23991  like this: 
23992 \begin_inset Flex Code
23993 status collapsed
23994
23995 \begin_layout Plain Layout
23996 {!<i>!}
23997 \end_layout
23998
23999 \end_inset
24000
24001 .
24002  This defines a piece of formatting information that is to be used when
24003  creating 
24004 \begin_inset Quotes eld
24005 \end_inset
24006
24007 rich text
24008 \begin_inset Quotes erd
24009 \end_inset
24010
24011 .
24012  Obviously, we do not want to output HTML tags when writing plain text,
24013  so they should be wrapped in 
24014 \begin_inset Quotes eld
24015 \end_inset
24016
24017 {!
24018 \begin_inset Quotes erd
24019 \end_inset
24020
24021  and 
24022 \begin_inset Quotes eld
24023 \end_inset
24024
24025 !}
24026 \begin_inset Quotes erd
24027 \end_inset
24028
24029 .
24030 \end_layout
24031
24032 \begin_layout Standard
24033 Two special sorts of definitions are also possible in a 
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038 CiteFormat
24039 \end_layout
24040
24041 \end_inset
24042
24043  block.
24044  An example of the first would be:
24045 \end_layout
24046
24047 \begin_layout LyX-Code
24048 !quotetitle 
24049 \begin_inset Quotes eld
24050 \end_inset
24051
24052 %title%
24053 \begin_inset Quotes erd
24054 \end_inset
24055
24056
24057 \end_layout
24058
24059 \begin_layout Standard
24060 This is an abbreviation, or macro, and it can be used by treating it as
24061  if it were a key: 
24062 \begin_inset Flex Code
24063 status collapsed
24064
24065 \begin_layout Plain Layout
24066 %!quotetitle%
24067 \end_layout
24068
24069 \end_inset
24070
24071 .
24072  \SpecialChar LyX
24073  will treat 
24074 \begin_inset Flex Code
24075 status collapsed
24076
24077 \begin_layout Plain Layout
24078 %!quotetitle%
24079 \end_layout
24080
24081 \end_inset
24082
24083  exactly as it would treat its definition.
24084  So, let us issue the obvious 
24085 \emph on
24086 warning
24087 \emph default
24088 .
24089  Do not do this:
24090 \end_layout
24091
24092 \begin_layout LyX-Code
24093 !funfun %funfun%
24094 \end_layout
24095
24096 \begin_layout Standard
24097 or anything like it.
24098  \SpecialChar LyX
24099  shouldn't go into an infinite loop, but it may go into a long one before
24100  it gives up.
24101 \end_layout
24102
24103 \begin_layout Standard
24104 The second sort of special definition might look like this:
24105 \end_layout
24106
24107 \begin_layout LyX-Code
24108 B_pptext pp.
24109 \end_layout
24110
24111 \begin_layout Standard
24112 This defines a translatable piece of text, which allows relevant parts of
24113  the bibliography or citation to be translated.
24114  It can be included in a definition by treating it as a key: 
24115 \begin_inset Flex Code
24116 status collapsed
24117
24118 \begin_layout Plain Layout
24119 %B_pptext%
24120 \end_layout
24121
24122 \end_inset
24123
24124 .
24125  Note that there are two different translation paths: All definitions starting
24126  with 
24127 \begin_inset Flex Code
24128 status collapsed
24129
24130 \begin_layout Plain Layout
24131 B_
24132 \end_layout
24133
24134 \end_inset
24135
24136 , such as in the example above, will be translated to the currently active
24137  buffer language (so the translation will match the generated document).
24138  All definitions starting with underscore only will be translated to the
24139  GUI language.
24140  This is the proper translation for strings that only occur in the dialogs
24141  or on buttons, such as this one:
24142 \end_layout
24143
24144 \begin_layout LyX-Code
24145 _addtobib Add to bibliography only.
24146 \end_layout
24147
24148 \begin_layout Standard
24149 Several of these translatable strings are predefined in 
24150 \begin_inset Flex Code
24151 status collapsed
24152
24153 \begin_layout Plain Layout
24154 stdciteformats.inc
24155 \end_layout
24156
24157 \end_inset
24158
24159  and the diverse 
24160 \begin_inset Flex Code
24161 status collapsed
24162
24163 \begin_layout Plain Layout
24164 *.citeengine
24165 \end_layout
24166
24167 \end_inset
24168
24169  files.
24170  Note that these are not macros, in the sense just defined.
24171  They will not be expanded.
24172 \end_layout
24173
24174 \begin_layout Standard
24175 So here then is an example that uses several of these features:
24176 \begin_inset VSpace defskip
24177 \end_inset
24178
24179
24180 \end_layout
24181
24182 \begin_layout Standard
24183 \noindent
24184
24185 \family sans
24186 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24187 \end_layout
24188
24189 \begin_layout Standard
24190 \begin_inset VSpace defskip
24191 \end_inset
24192
24193 This defines a macro that prints the author, followed by a comma, if the
24194  
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199 author
24200 \end_layout
24201
24202 \end_inset
24203
24204  key is defined, or else prints the name of the editor, followed by the
24205  
24206 \begin_inset Flex Code
24207 status collapsed
24208
24209 \begin_layout Plain Layout
24210 B_edtext
24211 \end_layout
24212
24213 \end_inset
24214
24215  or its translation (it is by default 
24216 \begin_inset Quotes eld
24217 \end_inset
24218
24219 ed.
24220 \begin_inset Quotes erd
24221 \end_inset
24222
24223 ), if the 
24224 \begin_inset Flex Code
24225 status collapsed
24226
24227 \begin_layout Plain Layout
24228 editor
24229 \end_layout
24230
24231 \end_inset
24232
24233  key is defined.
24234  Note that this is in fact defined in 
24235 \begin_inset Flex Code
24236 status collapsed
24237
24238 \begin_layout Plain Layout
24239 stdciteformats.inc
24240 \end_layout
24241
24242 \end_inset
24243
24244 , so you can use it in your own definitions, or re-definitions, if you load
24245  that file first.
24246 \end_layout
24247
24248 \begin_layout Section
24249 \begin_inset CommandInset label
24250 LatexCommand label
24251 name "sec:Tags-for-XHTML"
24252
24253 \end_inset
24254
24255 Tags for XHTML output
24256 \end_layout
24257
24258 \begin_layout Standard
24259 As with \SpecialChar LaTeX
24260  or DocBook, the format of \SpecialChar LyX
24261 's XHTML output is also controlled by
24262  layout information.
24263  In general, \SpecialChar LyX
24264  provides sensible defaults and, as mentioned earlier, it will
24265  even construct default CSS style rules from the other layout tags.
24266  For example, \SpecialChar LyX
24267  will attempt to use the information provided in the 
24268 \begin_inset Flex Code
24269 status collapsed
24270
24271 \begin_layout Plain Layout
24272 Font
24273 \end_layout
24274
24275 \end_inset
24276
24277  declaration for the Chapter style to write CSS that will appropriately
24278  format chapter headings.
24279 \end_layout
24280
24281 \begin_layout Standard
24282 In many cases, then, you may not have to do anything at all to get acceptable
24283  XHTML output for your own environments, custom insets, and so forth.
24284  But in some cases you will, and so \SpecialChar LyX
24285  provides a number of layout tags that
24286  can be used to customize the XHTML and CSS that are generated.
24287 \end_layout
24288
24289 \begin_layout Standard
24290 Note that there are two tags, 
24291 \begin_inset Flex Code
24292 status collapsed
24293
24294 \begin_layout Plain Layout
24295 HTMLPreamble
24296 \end_layout
24297
24298 \end_inset
24299
24300  and 
24301 \begin_inset Flex Code
24302 status collapsed
24303
24304 \begin_layout Plain Layout
24305 AddToHTMLPreamble
24306 \end_layout
24307
24308 \end_inset
24309
24310  that may appear outside style and inset declarations.
24311  See 
24312 \begin_inset CommandInset ref
24313 LatexCommand ref
24314 reference "subsec:General-text-class"
24315
24316 \end_inset
24317
24318  for details on these.
24319 \end_layout
24320
24321 \begin_layout Subsection
24322 \begin_inset CommandInset label
24323 LatexCommand label
24324 name "subsec:Paragraph-Style-XHTML"
24325
24326 \end_inset
24327
24328 Paragraph styles
24329 \end_layout
24330
24331 \begin_layout Standard
24332 The sort of XHTML \SpecialChar LyX
24333  outputs for a paragraph depends upon whether we are dealing
24334  with a normal paragraph, a command, or an environment, where this is itself
24335  determined by the contents of the corresponding 
24336 \begin_inset Flex Code
24337 status collapsed
24338
24339 \begin_layout Plain Layout
24340 \SpecialChar LaTeX
24341 Type
24342 \end_layout
24343
24344 \end_inset
24345
24346  tag.
24347  
24348 \end_layout
24349
24350 \begin_layout Standard
24351 For a command or normal paragraph, the output XHTML has the following form:
24352 \end_layout
24353
24354 \begin_layout LyX-Code
24355
24356 \family sans
24357 <tag attr=
24358 \begin_inset Quotes erd
24359 \end_inset
24360
24361 value
24362 \begin_inset Quotes erd
24363 \end_inset
24364
24365 >
24366 \end_layout
24367
24368 \begin_layout LyX-Code
24369
24370 \family sans
24371 <labeltag attr=
24372 \begin_inset Quotes erd
24373 \end_inset
24374
24375 value
24376 \begin_inset Quotes erd
24377 \end_inset
24378
24379 >Label</labeltag>
24380 \end_layout
24381
24382 \begin_layout LyX-Code
24383
24384 \family sans
24385 Contents of the paragraph.
24386 \end_layout
24387
24388 \begin_layout LyX-Code
24389
24390 \family sans
24391 </tag>
24392 \end_layout
24393
24394 \begin_layout Standard
24395 The label tags are of course omitted if the paragraph does not have a label.
24396 \end_layout
24397
24398 \begin_layout Standard
24399 For an environment that is not some sort of list, the XHTML takes this form:
24400 \end_layout
24401
24402 \begin_layout LyX-Code
24403
24404 \family sans
24405 <tag attr=
24406 \begin_inset Quotes erd
24407 \end_inset
24408
24409 value
24410 \begin_inset Quotes erd
24411 \end_inset
24412
24413 >
24414 \end_layout
24415
24416 \begin_layout LyX-Code
24417
24418 \family sans
24419 <itemtag attr=
24420 \begin_inset Quotes erd
24421 \end_inset
24422
24423 value
24424 \begin_inset Quotes erd
24425 \end_inset
24426
24427 ><labeltag attr=
24428 \begin_inset Quotes erd
24429 \end_inset
24430
24431 value
24432 \begin_inset Quotes erd
24433 \end_inset
24434
24435 >Environment Label</labeltag>First paragraph.</itemtag>
24436 \end_layout
24437
24438 \begin_layout LyX-Code
24439
24440 \family sans
24441 <itemtag>Second paragraph.</itemtag>
24442 \end_layout
24443
24444 \begin_layout LyX-Code
24445
24446 \family sans
24447 </tag>
24448 \end_layout
24449
24450 \begin_layout Standard
24451 Note that the label is output only for the first paragraph, as it should
24452  be for a theorem, for example.
24453  
24454 \end_layout
24455
24456 \begin_layout Standard
24457 For a list, we have one of these forms:
24458 \end_layout
24459
24460 \begin_layout LyX-Code
24461
24462 \family sans
24463 <tag attr=
24464 \begin_inset Quotes erd
24465 \end_inset
24466
24467 value
24468 \begin_inset Quotes erd
24469 \end_inset
24470
24471 >
24472 \end_layout
24473
24474 \begin_layout LyX-Code
24475
24476 \family sans
24477 <itemtag attr=
24478 \begin_inset Quotes erd
24479 \end_inset
24480
24481 value
24482 \begin_inset Quotes erd
24483 \end_inset
24484
24485 ><labeltag attr=
24486 \begin_inset Quotes erd
24487 \end_inset
24488
24489 value
24490 \begin_inset Quotes erd
24491 \end_inset
24492
24493 >List Label</labeltag>First item.</itemtag>
24494 \end_layout
24495
24496 \begin_layout LyX-Code
24497
24498 \family sans
24499 <itemtag attr=
24500 \begin_inset Quotes erd
24501 \end_inset
24502
24503 value
24504 \begin_inset Quotes erd
24505 \end_inset
24506
24507 ><labeltag attr=
24508 \begin_inset Quotes erd
24509 \end_inset
24510
24511 value
24512 \begin_inset Quotes erd
24513 \end_inset
24514
24515 >List Label</labeltag>Second item.</itemtag>
24516 \end_layout
24517
24518 \begin_layout LyX-Code
24519
24520 \family sans
24521 </tag>
24522 \end_layout
24523
24524 \begin_layout LyX-Code
24525
24526 \end_layout
24527
24528 \begin_layout LyX-Code
24529
24530 \family sans
24531 <tag attr=
24532 \begin_inset Quotes erd
24533 \end_inset
24534
24535 value
24536 \begin_inset Quotes erd
24537 \end_inset
24538
24539 >
24540 \end_layout
24541
24542 \begin_layout LyX-Code
24543
24544 \family sans
24545 <labeltag attr=
24546 \begin_inset Quotes erd
24547 \end_inset
24548
24549 value
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553 >List Label</labeltag><itemtag attr=
24554 \begin_inset Quotes erd
24555 \end_inset
24556
24557 value
24558 \begin_inset Quotes erd
24559 \end_inset
24560
24561 >First item.</itemtag>
24562 \end_layout
24563
24564 \begin_layout LyX-Code
24565
24566 \family sans
24567 <labeltag attr=
24568 \begin_inset Quotes erd
24569 \end_inset
24570
24571 value
24572 \begin_inset Quotes erd
24573 \end_inset
24574
24575 >List Label</labeltag><itemtag attr=
24576 \begin_inset Quotes erd
24577 \end_inset
24578
24579 value
24580 \begin_inset Quotes erd
24581 \end_inset
24582
24583 >Second item.</itemtag>
24584 \end_layout
24585
24586 \begin_layout LyX-Code
24587
24588 \family sans
24589 </tag>
24590 \end_layout
24591
24592 \begin_layout Standard
24593 Note the different orders of 
24594 \begin_inset Flex Code
24595 status collapsed
24596
24597 \begin_layout Plain Layout
24598 labeltag
24599 \end_layout
24600
24601 \end_inset
24602
24603  and 
24604 \begin_inset Flex Code
24605 status collapsed
24606
24607 \begin_layout Plain Layout
24608 itemtag
24609 \end_layout
24610
24611 \end_inset
24612
24613 .
24614  Which order we get depends upon the setting of 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 HTMLLabelFirst
24620 \end_layout
24621
24622 \end_inset
24623
24624 : If 
24625 \begin_inset Flex Code
24626 status collapsed
24627
24628 \begin_layout Plain Layout
24629 HTMLLabelFirst
24630 \end_layout
24631
24632 \end_inset
24633
24634  is false (the default), you get the first of these, with the label within
24635  the item; if true, you get the second, with the label outside the item.
24636 \end_layout
24637
24638 \begin_layout Standard
24639 The specific tags and attributes output for each paragraph type can be controlle
24640 d by means of the layout tags we are about to describe.
24641  As mentioned earlier, however, \SpecialChar LyX
24642  uses sensible defaults for many of these,
24643  so you often may not need to do very much to get good XHTML output.
24644  Think of the available tags as there so you can tweak things to your liking.
24645 \end_layout
24646
24647 \begin_layout Description
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652 HTMLAttr
24653 \end_layout
24654
24655 \end_inset
24656
24657  [
24658 \begin_inset Flex Code
24659 status collapsed
24660
24661 \begin_layout Plain Layout
24662 string
24663 \end_layout
24664
24665 \end_inset
24666
24667 ] Specifies attribute information to be output with the main tag.
24668  For example, 
24669 \begin_inset Quotes eld
24670 \end_inset
24671
24672
24673 \begin_inset Flex Code
24674 status collapsed
24675
24676 \begin_layout Plain Layout
24677 class=`mydiv'
24678 \end_layout
24679
24680 \end_inset
24681
24682
24683 \begin_inset Quotes erd
24684 \end_inset
24685
24686 .
24687  By default, \SpecialChar LyX
24688  will output 
24689 \begin_inset Quotes eld
24690 \end_inset
24691
24692
24693 \begin_inset Flex Code
24694 status collapsed
24695
24696 \begin_layout Plain Layout
24697 class=`layoutname'
24698 \end_layout
24699
24700 \end_inset
24701
24702
24703 \begin_inset Quotes erd
24704 \end_inset
24705
24706 , where 
24707 \begin_inset Flex Code
24708 status collapsed
24709
24710 \begin_layout Plain Layout
24711 layoutname
24712 \end_layout
24713
24714 \end_inset
24715
24716  is the \SpecialChar LyX
24717  name of the layout, made lowercase, for example: chapter.
24718  This should 
24719 \emph on
24720 not
24721 \emph default
24722  contain any style information.
24723  Use 
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728 HTMLStyle
24729 \end_layout
24730
24731 \end_inset
24732
24733  for that purpose.
24734 \end_layout
24735
24736 \begin_layout Description
24737 \begin_inset Flex Code
24738 status collapsed
24739
24740 \begin_layout Plain Layout
24741 HTMLForceCSS
24742 \end_layout
24743
24744 \end_inset
24745
24746  [
24747 \begin_inset Flex Code
24748 status collapsed
24749
24750 \begin_layout Plain Layout
24751
24752 \emph on
24753 0
24754 \emph default
24755 ,1
24756 \end_layout
24757
24758 \end_inset
24759
24760 ] Whether to output the default CSS information \SpecialChar LyX
24761  generates for this layout,
24762  even if additional information is explicitly provided via 
24763 \begin_inset Flex Code
24764 status collapsed
24765
24766 \begin_layout Plain Layout
24767 HTMLStyle
24768 \end_layout
24769
24770 \end_inset
24771
24772 .
24773  Setting this to 
24774 \begin_inset Flex Code
24775 status collapsed
24776
24777 \begin_layout Plain Layout
24778 1
24779 \end_layout
24780
24781 \end_inset
24782
24783  allows you to alter or augment the generated CSS, rather than to override
24784  it completely.
24785  Default is 
24786 \begin_inset Flex Code
24787 status collapsed
24788
24789 \begin_layout Plain Layout
24790 0
24791 \end_layout
24792
24793 \end_inset
24794
24795 .
24796 \end_layout
24797
24798 \begin_layout Description
24799 \begin_inset Flex Code
24800 status collapsed
24801
24802 \begin_layout Plain Layout
24803 HTMLItem
24804 \end_layout
24805
24806 \end_inset
24807
24808  [
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813 string
24814 \end_layout
24815
24816 \end_inset
24817
24818 ] The tag to be used for individual paragraphs of environments, replacing
24819  
24820 \begin_inset Flex Code
24821 status collapsed
24822
24823 \begin_layout Plain Layout
24824 itemtag
24825 \end_layout
24826
24827 \end_inset
24828
24829  in the examples above.
24830  Defaults to 
24831 \begin_inset Flex Code
24832 status collapsed
24833
24834 \begin_layout Plain Layout
24835 div
24836 \end_layout
24837
24838 \end_inset
24839
24840 .
24841 \end_layout
24842
24843 \begin_layout Description
24844 \begin_inset Flex Code
24845 status collapsed
24846
24847 \begin_layout Plain Layout
24848 HTMLItemAttr
24849 \end_layout
24850
24851 \end_inset
24852
24853  [
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 string
24859 \end_layout
24860
24861 \end_inset
24862
24863 ] Attributes for the item tag.
24864  Defaults to
24865 \begin_inset Newline newline
24866 \end_inset
24867
24868
24869 \begin_inset Quotes eld
24870 \end_inset
24871
24872
24873 \begin_inset Flex Code
24874 status collapsed
24875
24876 \begin_layout Plain Layout
24877 class=`layoutname_item'
24878 \end_layout
24879
24880 \end_inset
24881
24882
24883 \begin_inset Quotes erd
24884 \end_inset
24885
24886 .
24887  This should 
24888 \emph on
24889 not
24890 \emph default
24891  contain any style information.
24892  Use 
24893 \begin_inset Flex Code
24894 status collapsed
24895
24896 \begin_layout Plain Layout
24897 HTMLStyle
24898 \end_layout
24899
24900 \end_inset
24901
24902  for that purpose.
24903 \end_layout
24904
24905 \begin_layout Description
24906 \begin_inset Flex Code
24907 status collapsed
24908
24909 \begin_layout Plain Layout
24910 HTMLLabel
24911 \end_layout
24912
24913 \end_inset
24914
24915  [
24916 \begin_inset Flex Code
24917 status collapsed
24918
24919 \begin_layout Plain Layout
24920 string
24921 \end_layout
24922
24923 \end_inset
24924
24925 ] The tag to be used for paragraph and item labels, replacing 
24926 \begin_inset Flex Code
24927 status collapsed
24928
24929 \begin_layout Plain Layout
24930 labeltag
24931 \end_layout
24932
24933 \end_inset
24934
24935  in the examples above.
24936  Defaults to 
24937 \begin_inset Flex Code
24938 status collapsed
24939
24940 \begin_layout Plain Layout
24941 span
24942 \end_layout
24943
24944 \end_inset
24945
24946 , unless 
24947 \begin_inset Flex Code
24948 status collapsed
24949
24950 \begin_layout Plain Layout
24951 LabelType
24952 \end_layout
24953
24954 \end_inset
24955
24956  is either 
24957 \begin_inset Flex Code
24958 status collapsed
24959
24960 \begin_layout Plain Layout
24961 Top_Environment
24962 \end_layout
24963
24964 \end_inset
24965
24966  or 
24967 \begin_inset Flex Code
24968 status collapsed
24969
24970 \begin_layout Plain Layout
24971 Centered_Top_Environment
24972 \end_layout
24973
24974 \end_inset
24975
24976 , in which case it defaults to 
24977 \begin_inset Flex Code
24978 status collapsed
24979
24980 \begin_layout Plain Layout
24981 div
24982 \end_layout
24983
24984 \end_inset
24985
24986 .
24987 \end_layout
24988
24989 \begin_layout Description
24990 \begin_inset Flex Code
24991 status collapsed
24992
24993 \begin_layout Plain Layout
24994 HTMLLabelAttr
24995 \end_layout
24996
24997 \end_inset
24998
24999  [
25000 \begin_inset Flex Code
25001 status collapsed
25002
25003 \begin_layout Plain Layout
25004 string
25005 \end_layout
25006
25007 \end_inset
25008
25009 ] Attributes for the label tag.
25010  Defaults to
25011 \begin_inset Newline newline
25012 \end_inset
25013
25014
25015 \begin_inset Quotes eld
25016 \end_inset
25017
25018
25019 \begin_inset Flex Code
25020 status collapsed
25021
25022 \begin_layout Plain Layout
25023 class=`layoutname_label'
25024 \end_layout
25025
25026 \end_inset
25027
25028
25029 \begin_inset Quotes erd
25030 \end_inset
25031
25032 .
25033  This should 
25034 \emph on
25035 not
25036 \emph default
25037  contain any style information.
25038  Use 
25039 \begin_inset Flex Code
25040 status collapsed
25041
25042 \begin_layout Plain Layout
25043 HTMLStyle
25044 \end_layout
25045
25046 \end_inset
25047
25048  for that purpose.
25049 \end_layout
25050
25051 \begin_layout Description
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056 HTMLLabelFirst
25057 \end_layout
25058
25059 \end_inset
25060
25061  [
25062 \begin_inset Flex Code
25063 status collapsed
25064
25065 \begin_layout Plain Layout
25066
25067 \emph on
25068 0
25069 \emph default
25070 ,1
25071 \end_layout
25072
25073 \end_inset
25074
25075 ] Meaningful only for list-like environments, this tag controls whether
25076  the label tag is output before or inside the item tag.
25077  This is used, for example, in the description environment, where we want
25078  `
25079 \begin_inset Flex Code
25080 status collapsed
25081
25082 \begin_layout Plain Layout
25083 <dt>\SpecialChar ldots
25084 </dt><dd>\SpecialChar ldots
25085 </dd>
25086 \end_layout
25087
25088 \end_inset
25089
25090 .
25091  Default is 
25092 \begin_inset Flex Code
25093 status collapsed
25094
25095 \begin_layout Plain Layout
25096 0
25097 \end_layout
25098
25099 \end_inset
25100
25101 : The label tag is output inside the item tag.
25102 \end_layout
25103
25104 \begin_layout Description
25105 \begin_inset Flex Code
25106 status collapsed
25107
25108 \begin_layout Plain Layout
25109 HTMLPreamble
25110 \end_layout
25111
25112 \end_inset
25113
25114  Information to be output in the 
25115 \begin_inset Flex Code
25116 status collapsed
25117
25118 \begin_layout Plain Layout
25119 <head>
25120 \end_layout
25121
25122 \end_inset
25123
25124  section when this style is used.
25125  This might, for example, be used to include a 
25126 \begin_inset Flex Code
25127 status collapsed
25128
25129 \begin_layout Plain Layout
25130 <script>
25131 \end_layout
25132
25133 \end_inset
25134
25135  block defining an 
25136 \begin_inset Flex Code
25137 status collapsed
25138
25139 \begin_layout Plain Layout
25140 onclick
25141 \end_layout
25142
25143 \end_inset
25144
25145  handler.
25146 \end_layout
25147
25148 \begin_layout Description
25149 \begin_inset Flex Code
25150 status collapsed
25151
25152 \begin_layout Plain Layout
25153 HTMLStyle
25154 \end_layout
25155
25156 \end_inset
25157
25158  CSS style information to be included when this style is used.
25159  Note that this will automatically be wrapped in a layout-generated 
25160 \begin_inset Flex Code
25161 status collapsed
25162
25163 \begin_layout Plain Layout
25164 <style>
25165 \end_layout
25166
25167 \end_inset
25168
25169  block, so only the CSS itself need be included.
25170  Must end with 
25171 \begin_inset Flex Code
25172 status collapsed
25173
25174 \begin_layout Plain Layout
25175 EndHTMLStyle
25176 \end_layout
25177
25178 \end_inset
25179
25180 .
25181 \end_layout
25182
25183 \begin_layout Description
25184 \begin_inset Flex Code
25185 status collapsed
25186
25187 \begin_layout Plain Layout
25188 HTMLTag
25189 \end_layout
25190
25191 \end_inset
25192
25193  [
25194 \begin_inset Flex Code
25195 status collapsed
25196
25197 \begin_layout Plain Layout
25198 string
25199 \end_layout
25200
25201 \end_inset
25202
25203 ] The tag to be used for the main label, replacing 
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208 tag
25209 \end_layout
25210
25211 \end_inset
25212
25213  in the examples above.
25214  Defaults to 
25215 \begin_inset Flex Code
25216 status collapsed
25217
25218 \begin_layout Plain Layout
25219 div
25220 \end_layout
25221
25222 \end_inset
25223
25224 .
25225 \end_layout
25226
25227 \begin_layout Description
25228 \begin_inset Flex Code
25229 status collapsed
25230
25231 \begin_layout Plain Layout
25232 HTMLTitle
25233 \end_layout
25234
25235 \end_inset
25236
25237  [
25238 \begin_inset Flex Code
25239 status collapsed
25240
25241 \begin_layout Plain Layout
25242
25243 \emph on
25244 0
25245 \emph default
25246 ,1
25247 \end_layout
25248
25249 \end_inset
25250
25251 ] Marks this style as the one to be used to generate the 
25252 \begin_inset Flex Code
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 <title>
25257 \end_layout
25258
25259 \end_inset
25260
25261  tag for the XHTML file.
25262  By default, it is false.
25263  The 
25264 \begin_inset Flex Code
25265 status collapsed
25266
25267 \begin_layout Plain Layout
25268 stdtitle.inc
25269 \end_layout
25270
25271 \end_inset
25272
25273  file sets it to true for the 
25274 \begin_inset Flex Code
25275 status collapsed
25276
25277 \begin_layout Plain Layout
25278 title
25279 \end_layout
25280
25281 \end_inset
25282
25283  environment.
25284  
25285 \end_layout
25286
25287 \begin_layout Subsection
25288 InsetLayout XHTML
25289 \end_layout
25290
25291 \begin_layout Standard
25292 The XHTML output of insets can also be controlled by information in layout
25293  files.
25294 \begin_inset Foot
25295 status collapsed
25296
25297 \begin_layout Plain Layout
25298 At present, this is true only for 
25299 \begin_inset Quotes eld
25300 \end_inset
25301
25302 text
25303 \begin_inset Quotes erd
25304 \end_inset
25305
25306  insets (insets you can type into) and is not true for 
25307 \begin_inset Quotes eld
25308 \end_inset
25309
25310 command
25311 \begin_inset Quotes erd
25312 \end_inset
25313
25314  insets (insets that are associated with dialog boxes).
25315 \end_layout
25316
25317 \end_inset
25318
25319  Here, too, \SpecialChar LyX
25320  tries to provide sensible defaults, and it constructs default
25321  CSS style rules.
25322  But everything can be customized.
25323 \end_layout
25324
25325 \begin_layout Standard
25326 The XHTML \SpecialChar LyX
25327  outputs for an inset has the following form:
25328 \end_layout
25329
25330 \begin_layout LyX-Code
25331 <tag attr=
25332 \begin_inset Quotes erd
25333 \end_inset
25334
25335 value
25336 \begin_inset Quotes erd
25337 \end_inset
25338
25339 >
25340 \end_layout
25341
25342 \begin_layout LyX-Code
25343 <labeltag>Label</labeltag>
25344 \end_layout
25345
25346 \begin_layout LyX-Code
25347 <innertag attr=
25348 \begin_inset Quotes erd
25349 \end_inset
25350
25351 value
25352 \begin_inset Quotes erd
25353 \end_inset
25354
25355 >Contents of the inset.</innertag>
25356 \end_layout
25357
25358 \begin_layout LyX-Code
25359 </tag>
25360 \end_layout
25361
25362 \begin_layout Standard
25363 If the inset permits multiple paragraphs—that is, if 
25364 \begin_inset Flex Code
25365 status collapsed
25366
25367 \begin_layout Plain Layout
25368 MultiPar
25369 \end_layout
25370
25371 \end_inset
25372
25373  is true—then the contents of the inset will itself be output as paragraphs
25374  formatted according to the styles used for those paragraphs (standard,
25375  quote, and the like).
25376  The label tag is of course omitted if the paragraph does not have a label
25377  and, at present, is always 
25378 \begin_inset Flex Code
25379 status collapsed
25380
25381 \begin_layout Plain Layout
25382 span
25383 \end_layout
25384
25385 \end_inset
25386
25387 .
25388  The inner tag is optional and, by default, does not appear.
25389 \end_layout
25390
25391 \begin_layout Standard
25392 The specific tags and attributes output for each inset can be controlled
25393  by means of the following layout tags.
25394 \end_layout
25395
25396 \begin_layout Description
25397 \begin_inset Flex Code
25398 status collapsed
25399
25400 \begin_layout Plain Layout
25401 HTMLAttr
25402 \end_layout
25403
25404 \end_inset
25405
25406  [
25407 \begin_inset Flex Code
25408 status collapsed
25409
25410 \begin_layout Plain Layout
25411 string
25412 \end_layout
25413
25414 \end_inset
25415
25416 ] Specifies attribute information to be output with the main tag.
25417  For example, 
25418 \begin_inset Quotes eld
25419 \end_inset
25420
25421
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426 class=`myinset' onclick=`\SpecialChar ldots
25427 '
25428 \end_layout
25429
25430 \end_inset
25431
25432
25433 \begin_inset Quotes erd
25434 \end_inset
25435
25436 .
25437  By default, \SpecialChar LyX
25438  will output 
25439 \begin_inset Quotes eld
25440 \end_inset
25441
25442
25443 \begin_inset Flex Code
25444 status collapsed
25445
25446 \begin_layout Plain Layout
25447 class=`insetname'
25448 \end_layout
25449
25450 \end_inset
25451
25452
25453 \begin_inset Quotes erd
25454 \end_inset
25455
25456 , where 
25457 \begin_inset Flex Code
25458 status collapsed
25459
25460 \begin_layout Plain Layout
25461 insetname
25462 \end_layout
25463
25464 \end_inset
25465
25466  is the \SpecialChar LyX
25467  name of the inset, made lowercase and with non-alphanumeric characters
25468  converted to underscores, for example: footnote.
25469 \end_layout
25470
25471 \begin_layout Description
25472 \begin_inset Flex Code
25473 status collapsed
25474
25475 \begin_layout Plain Layout
25476 HTMLForceCSS
25477 \end_layout
25478
25479 \end_inset
25480
25481  [
25482 \begin_inset Flex Code
25483 status collapsed
25484
25485 \begin_layout Plain Layout
25486
25487 \emph on
25488 0
25489 \emph default
25490 ,1
25491 \end_layout
25492
25493 \end_inset
25494
25495 ] Whether to output the default CSS information \SpecialChar LyX
25496  generates for this layout,
25497  even if additional information is explicitly provided via 
25498 \begin_inset Flex Code
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 HTMLStyle
25503 \end_layout
25504
25505 \end_inset
25506
25507 .
25508  Setting this to 
25509 \begin_inset Flex Code
25510 status collapsed
25511
25512 \begin_layout Plain Layout
25513 1
25514 \end_layout
25515
25516 \end_inset
25517
25518  allows you to alter or augment the generated CSS, rather than to override
25519  it completely.
25520  Default is 0.
25521 \end_layout
25522
25523 \begin_layout Description
25524 \begin_inset Flex Code
25525 status collapsed
25526
25527 \begin_layout Plain Layout
25528 HTMLInnerAttr
25529 \end_layout
25530
25531 \end_inset
25532
25533  [
25534 \begin_inset Flex Code
25535 status collapsed
25536
25537 \begin_layout Plain Layout
25538 string
25539 \end_layout
25540
25541 \end_inset
25542
25543 ] Attributes for the inner tag.
25544  Defaults to
25545 \begin_inset Newline newline
25546 \end_inset
25547
25548
25549 \begin_inset Quotes eld
25550 \end_inset
25551
25552
25553 \begin_inset Flex Code
25554 status collapsed
25555
25556 \begin_layout Plain Layout
25557 class=`insetname_inner'
25558 \end_layout
25559
25560 \end_inset
25561
25562
25563 \begin_inset Quotes erd
25564 \end_inset
25565
25566 .
25567 \end_layout
25568
25569 \begin_layout Description
25570 \begin_inset Flex Code
25571 status collapsed
25572
25573 \begin_layout Plain Layout
25574 HTMLInnerTag
25575 \end_layout
25576
25577 \end_inset
25578
25579  [
25580 \begin_inset Flex Code
25581 status collapsed
25582
25583 \begin_layout Plain Layout
25584 string
25585 \end_layout
25586
25587 \end_inset
25588
25589 ] The inner tag, replacing 
25590 \begin_inset Flex Code
25591 status collapsed
25592
25593 \begin_layout Plain Layout
25594 innertag
25595 \end_layout
25596
25597 \end_inset
25598
25599  in the examples above.
25600  By default, there is none.
25601 \end_layout
25602
25603 \begin_layout Description
25604 \begin_inset Flex Code
25605 status collapsed
25606
25607 \begin_layout Plain Layout
25608 HTMLIsBlock
25609 \end_layout
25610
25611 \end_inset
25612
25613  [
25614 \begin_inset Flex Code
25615 status collapsed
25616
25617 \begin_layout Plain Layout
25618 0,
25619 \emph on
25620 1
25621 \end_layout
25622
25623 \end_inset
25624
25625 ] Whether this inset represents a standalone block of text (such as a footnote)
25626  or instead represents material that is included in the surrounding text
25627  (such as a branch).
25628  Defaults to 1.
25629 \end_layout
25630
25631 \begin_layout Description
25632 \begin_inset Flex Code
25633 status collapsed
25634
25635 \begin_layout Plain Layout
25636 HTMLLabel
25637 \end_layout
25638
25639 \end_inset
25640
25641  [
25642 \begin_inset Flex Code
25643 status collapsed
25644
25645 \begin_layout Plain Layout
25646 string
25647 \end_layout
25648
25649 \end_inset
25650
25651 ] A label for this inset, possibly including a reference to a counter.
25652  For example, for footnote, it might be: 
25653 \begin_inset Flex Code
25654 status collapsed
25655
25656 \begin_layout Plain Layout
25657
25658 \backslash
25659 arabic{footnote}
25660 \end_layout
25661
25662 \end_inset
25663
25664 .
25665  This is optional, and there is no default.
25666 \end_layout
25667
25668 \begin_layout Description
25669 \begin_inset Flex Code
25670 status collapsed
25671
25672 \begin_layout Plain Layout
25673 HTMLPreamble
25674 \end_layout
25675
25676 \end_inset
25677
25678  Information to be output in the 
25679 \begin_inset Flex Code
25680 status collapsed
25681
25682 \begin_layout Plain Layout
25683 <head>
25684 \end_layout
25685
25686 \end_inset
25687
25688  section when this style is used.
25689  This might, for example, be used to include a 
25690 \begin_inset Flex Code
25691 status collapsed
25692
25693 \begin_layout Plain Layout
25694 <script>
25695 \end_layout
25696
25697 \end_inset
25698
25699  block defining an 
25700 \begin_inset Flex Code
25701 status collapsed
25702
25703 \begin_layout Plain Layout
25704 onclick
25705 \end_layout
25706
25707 \end_inset
25708
25709  handler.
25710 \end_layout
25711
25712 \begin_layout Description
25713 \begin_inset Flex Code
25714 status collapsed
25715
25716 \begin_layout Plain Layout
25717 HTMLStyle
25718 \end_layout
25719
25720 \end_inset
25721
25722  CSS style information to be included when this style is used.
25723  Note that this will automatically be wrapped in a layout-generated 
25724 \begin_inset Flex Code
25725 status collapsed
25726
25727 \begin_layout Plain Layout
25728 <style>
25729 \end_layout
25730
25731 \end_inset
25732
25733  block, so only the CSS itself need be included.
25734 \end_layout
25735
25736 \begin_layout Description
25737 \begin_inset Flex Code
25738 status collapsed
25739
25740 \begin_layout Plain Layout
25741 HTMLTag
25742 \end_layout
25743
25744 \end_inset
25745
25746  [
25747 \begin_inset Flex Code
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751 string
25752 \end_layout
25753
25754 \end_inset
25755
25756 ] The tag to be used for the main label, replacing 
25757 \begin_inset Flex Code
25758 status collapsed
25759
25760 \begin_layout Plain Layout
25761 tag
25762 \end_layout
25763
25764 \end_inset
25765
25766  in the examples above.
25767  The default depends upon the setting of 
25768 \begin_inset Flex Code
25769 status collapsed
25770
25771 \begin_layout Plain Layout
25772 MultiPar
25773 \end_layout
25774
25775 \end_inset
25776
25777 : If 
25778 \begin_inset Flex Code
25779 status collapsed
25780
25781 \begin_layout Plain Layout
25782 MultiPar
25783 \end_layout
25784
25785 \end_inset
25786
25787  is true, the default is 
25788 \begin_inset Flex Code
25789 status collapsed
25790
25791 \begin_layout Plain Layout
25792 div
25793 \end_layout
25794
25795 \end_inset
25796
25797 ; if it is false, the default is 
25798 \begin_inset Flex Code
25799 status collapsed
25800
25801 \begin_layout Plain Layout
25802 span
25803 \end_layout
25804
25805 \end_inset
25806
25807 .
25808 \end_layout
25809
25810 \begin_layout Subsection
25811 Float XHTML
25812 \end_layout
25813
25814 \begin_layout Standard
25815 The XHTML output for floats too can be controlled by layout information.
25816  The output has the following form:
25817 \end_layout
25818
25819 \begin_layout LyX-Code
25820 <tag attr=
25821 \begin_inset Quotes erd
25822 \end_inset
25823
25824 value
25825 \begin_inset Quotes erd
25826 \end_inset
25827
25828 >
25829 \end_layout
25830
25831 \begin_layout LyX-Code
25832 Contents of the float.
25833 \end_layout
25834
25835 \begin_layout LyX-Code
25836 </tag>
25837 \end_layout
25838
25839 \begin_layout Standard
25840 The caption, if there is one, is a separate inset and will be output as
25841  such.
25842  Its appearance can be controlled via the InsetLayout for caption insets.
25843  
25844 \end_layout
25845
25846 \begin_layout Description
25847 \begin_inset Flex Code
25848 status collapsed
25849
25850 \begin_layout Plain Layout
25851 HTMLAttr
25852 \end_layout
25853
25854 \end_inset
25855
25856  [
25857 \begin_inset Flex Code
25858 status collapsed
25859
25860 \begin_layout Plain Layout
25861 string
25862 \end_layout
25863
25864 \end_inset
25865
25866 ] Specifies attribute information to be output with the main tag.
25867  For example, 
25868 \begin_inset Quotes eld
25869 \end_inset
25870
25871
25872 \begin_inset Flex Code
25873 status collapsed
25874
25875 \begin_layout Plain Layout
25876 class=`myfloat' onclick=`\SpecialChar ldots
25877 '
25878 \end_layout
25879
25880 \end_inset
25881
25882
25883 \begin_inset Quotes erd
25884 \end_inset
25885
25886 .
25887  By default, \SpecialChar LyX
25888  will output 
25889 \begin_inset Quotes eld
25890 \end_inset
25891
25892
25893 \begin_inset Flex Code
25894 status collapsed
25895
25896 \begin_layout Plain Layout
25897 class=`float float-floattype'
25898 \end_layout
25899
25900 \end_inset
25901
25902
25903 \begin_inset Quotes erd
25904 \end_inset
25905
25906 , where 
25907 \begin_inset Flex Code
25908 status collapsed
25909
25910 \begin_layout Plain Layout
25911 floattype
25912 \end_layout
25913
25914 \end_inset
25915
25916  is \SpecialChar LyX
25917 's name for this type of float, as determined by the float declaration
25918  (see 
25919 \begin_inset CommandInset ref
25920 LatexCommand ref
25921 reference "subsec:Floats"
25922
25923 \end_inset
25924
25925 ), though made lowercase and with non-alphanumeric characters converted
25926  to underscores, for example: float-table.
25927 \end_layout
25928
25929 \begin_layout Description
25930 \begin_inset Flex Code
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 HTMLStyle
25935 \end_layout
25936
25937 \end_inset
25938
25939  CSS style information to be included when this float is used.
25940  Note that this will automatically be wrapped in a layout-generated 
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945 <style>
25946 \end_layout
25947
25948 \end_inset
25949
25950  block, so only the CSS itself need be included.
25951 \end_layout
25952
25953 \begin_layout Description
25954 \begin_inset Flex Code
25955 status collapsed
25956
25957 \begin_layout Plain Layout
25958 HTMLTag
25959 \end_layout
25960
25961 \end_inset
25962
25963  [
25964 \begin_inset Flex Code
25965 status collapsed
25966
25967 \begin_layout Plain Layout
25968 string
25969 \end_layout
25970
25971 \end_inset
25972
25973 ] The tag to be used for this float, replacing 
25974 \begin_inset Quotes eld
25975 \end_inset
25976
25977
25978 \begin_inset Flex Code
25979 status collapsed
25980
25981 \begin_layout Plain Layout
25982 tag
25983 \end_layout
25984
25985 \end_inset
25986
25987
25988 \begin_inset Quotes erd
25989 \end_inset
25990
25991  in the example above.
25992  The default is 
25993 \begin_inset Flex Code
25994 status collapsed
25995
25996 \begin_layout Plain Layout
25997 div
25998 \end_layout
25999
26000 \end_inset
26001
26002  and will rarely need changing.
26003 \end_layout
26004
26005 \begin_layout Subsection
26006 Bibliography formatting
26007 \end_layout
26008
26009 \begin_layout Standard
26010 The bibliography can be formatted using 
26011 \begin_inset Flex Code
26012 status collapsed
26013
26014 \begin_layout Plain Layout
26015 CiteFormat
26016 \end_layout
26017
26018 \end_inset
26019
26020  blocks.
26021  See 
26022 \begin_inset CommandInset ref
26023 LatexCommand ref
26024 reference "subsec:Citation-format-description"
26025
26026 \end_inset
26027
26028  for the details.
26029 \end_layout
26030
26031 \begin_layout Subsection
26032 \SpecialChar LyX
26033 -generated CSS
26034 \end_layout
26035
26036 \begin_layout Standard
26037 We have several times mentioned that \SpecialChar LyX
26038  will generate default CSS style rules
26039  for both insets and paragraph styles, based upon the other layout information
26040  that is provided.
26041  In this section, we shall say a word about which layout information \SpecialChar LyX
26042  uses
26043  and how.
26044 \end_layout
26045
26046 \begin_layout Standard
26047 At present, \SpecialChar LyX
26048  auto-generates CSS only for font information, making use of
26049  the 
26050 \begin_inset Flex Code
26051 status collapsed
26052
26053 \begin_layout Plain Layout
26054 Family
26055 \end_layout
26056
26057 \end_inset
26058
26059
26060 \begin_inset Flex Code
26061 status collapsed
26062
26063 \begin_layout Plain Layout
26064 Series
26065 \end_layout
26066
26067 \end_inset
26068
26069
26070 \begin_inset Flex Code
26071 status collapsed
26072
26073 \begin_layout Plain Layout
26074 Shape
26075 \end_layout
26076
26077 \end_inset
26078
26079 , and 
26080 \begin_inset Flex Code
26081 status collapsed
26082
26083 \begin_layout Plain Layout
26084 Size
26085 \end_layout
26086
26087 \end_inset
26088
26089  specified in the 
26090 \begin_inset Flex Code
26091 status collapsed
26092
26093 \begin_layout Plain Layout
26094 Font
26095 \end_layout
26096
26097 \end_inset
26098
26099  declaration (see 
26100 \begin_inset CommandInset ref
26101 LatexCommand ref
26102 reference "subsec:Font-description"
26103
26104 \end_inset
26105
26106 ).
26107  The translation is mostly straightforward and obvious.
26108  For example, 
26109 \begin_inset Quotes eld
26110 \end_inset
26111
26112
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 Family Sans
26118 \end_layout
26119
26120 \end_inset
26121
26122
26123 \begin_inset Quotes erd
26124 \end_inset
26125
26126  becomes 
26127 \begin_inset Quotes eld
26128 \end_inset
26129
26130
26131 \begin_inset Flex Code
26132 status collapsed
26133
26134 \begin_layout Plain Layout
26135 font-family: sans-serif;
26136 \end_layout
26137
26138 \end_inset
26139
26140
26141 \begin_inset Quotes erd
26142 \end_inset
26143
26144 .
26145  The correspondence of \SpecialChar LyX
26146  sizes and CSS sizes is a little less obvious but
26147  nonetheless intuitive.
26148  See the 
26149 \begin_inset Flex Code
26150 status collapsed
26151
26152 \begin_layout Plain Layout
26153 getSizeCSS()
26154 \end_layout
26155
26156 \end_inset
26157
26158  function in 
26159 \begin_inset Flex URL
26160 status collapsed
26161
26162 \begin_layout Plain Layout
26163
26164 src/FontInfo.cpp
26165 \end_layout
26166
26167 \end_inset
26168
26169  for the details.
26170 \end_layout
26171
26172 \begin_layout Chapter
26173 Including External Material
26174 \begin_inset CommandInset label
26175 LatexCommand label
26176 name "chap:Including-External-Material"
26177
26178 \end_inset
26179
26180
26181 \end_layout
26182
26183 \begin_layout Standard
26184 \begin_inset Box Shadowbox
26185 position "t"
26186 hor_pos "c"
26187 has_inner_box 1
26188 inner_pos "t"
26189 use_parbox 0
26190 use_makebox 0
26191 width "100col%"
26192 special "none"
26193 height "1in"
26194 height_special "totalheight"
26195 thickness "0.4pt"
26196 separation "3pt"
26197 shadowsize "4pt"
26198 framecolor "black"
26199 backgroundcolor "none"
26200 status open
26201
26202 \begin_layout Plain Layout
26203 WARNING: This portion of the documentation has not been updated for some
26204  time.
26205  We certainly hope that it is still accurate, but there are no guarantees.
26206 \end_layout
26207
26208 \end_inset
26209
26210
26211 \end_layout
26212
26213 \begin_layout Standard
26214 The use of material from sources external to \SpecialChar LyX
26215  is covered in detail in the
26216  
26217 \emph on
26218 Embedded Objects
26219 \emph default
26220  manual.
26221  This part of the manual covers what needs to happen behind the scenes for
26222  new sorts of material to be included.
26223 \end_layout
26224
26225 \begin_layout Section
26226 How does it work?
26227 \end_layout
26228
26229 \begin_layout Standard
26230 The external material feature is based on the concept of a 
26231 \emph on
26232 template
26233 \emph default
26234 .
26235  A template is a specification of how \SpecialChar LyX
26236  should interface with a certain kind
26237  of material.
26238  As bundled, \SpecialChar LyX
26239  comes with predefined templates for Xfig figures, various
26240  raster format images, chess diagrams, and LilyPond music notation.
26241  You can check the actual list by using the menu 
26242 \begin_inset Flex Noun
26243 status collapsed
26244
26245 \begin_layout Plain Layout
26246 Insert\SpecialChar menuseparator
26247 File\SpecialChar menuseparator
26248 External Material
26249 \end_layout
26250
26251 \end_inset
26252
26253 .
26254  Furthermore, it is possible to roll your own template to support a specific
26255  kind of material.
26256  Later we'll describe in more detail what is involved, and hopefully you
26257  will submit all the templates you create so we can include them in a later
26258  \SpecialChar LyX
26259  version.
26260 \end_layout
26261
26262 \begin_layout Standard
26263 Another basic idea of the external material feature is to distinguish between
26264  the original file that serves as a base for final material and the produced
26265  file that is included in your exported or printed document.
26266  For example, consider the case of a figure produced with 
26267 \begin_inset Flex Code
26268 status collapsed
26269
26270 \begin_layout Plain Layout
26271 Xfig
26272 \end_layout
26273
26274 \end_inset
26275
26276 .
26277  The Xfig application itself works on an original file with the 
26278 \begin_inset Flex Code
26279 status collapsed
26280
26281 \begin_layout Plain Layout
26282 .fig
26283 \end_layout
26284
26285 \end_inset
26286
26287  extension.
26288  Within Xfig, you create and change your figure, and when you are done,
26289  you save the 
26290 \begin_inset Flex Code
26291 status collapsed
26292
26293 \begin_layout Plain Layout
26294 fig
26295 \end_layout
26296
26297 \end_inset
26298
26299 -file.
26300  When you want to include the figure in your document, you invoke 
26301 \begin_inset Flex Code
26302 status collapsed
26303
26304 \begin_layout Plain Layout
26305 transfig
26306 \end_layout
26307
26308 \end_inset
26309
26310  in order to create a PostScript file that can readily be included in your
26311  \SpecialChar LaTeX
26312  file.
26313  In this case, the 
26314 \begin_inset Flex Code
26315 status collapsed
26316
26317 \begin_layout Plain Layout
26318 .fig
26319 \end_layout
26320
26321 \end_inset
26322
26323  file is the original file, and the PostScript file is the produced file.
26324 \end_layout
26325
26326 \begin_layout Standard
26327 This distinction is important in order to allow updating of the material
26328  while you are in the process of writing the document.
26329  Furthermore, it provides us with the flexibility that is needed to support
26330  multiple export formats.
26331  For instance, in the case of a plain text file, it is not exactly an award-winn
26332 ing idea to include the figure as raw PostScript.
26333  Instead, you would either prefer to just include a reference to the figure
26334  or try to invoke some graphics to ASCII converter to make the final result
26335  look similar to the real graphics.
26336  The external material management allows you to do this, because it is parametri
26337 zed on the different export formats that \SpecialChar LyX
26338  supports.
26339 \end_layout
26340
26341 \begin_layout Standard
26342 Besides supporting the production of different products according to the
26343  exported format, it supports tight integration with editing and viewing
26344  applications.
26345  In the case of an Xfig figure, you are able to invoke Xfig on the original
26346  file with a single click from within the external material dialog in \SpecialChar LyX
26347 ,
26348  and also preview the produced PostScript file with Ghostview with another
26349  click.
26350  No more fiddling around with the command line and/or file browsers to locate
26351  and manipulate the original or produced files.
26352  In this way, you are finally able to take full advantage of the many different
26353  applications that are relevant to use when you write your documents, and
26354  ultimately be more productive.
26355 \end_layout
26356
26357 \begin_layout Section
26358 The external template configuration files
26359 \end_layout
26360
26361 \begin_layout Standard
26362 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26363 .
26364  However, be aware that doing this in an careless manner most probably 
26365 \emph on
26366 will
26367 \emph default
26368  introduce an easily exploitable security hole.
26369  So before you do this, please read the discussion about security in 
26370 \begin_inset CommandInset ref
26371 LatexCommand ref
26372 reference "sec:Security-discussion"
26373
26374 \end_inset
26375
26376 .
26377 \end_layout
26378
26379 \begin_layout Standard
26380 Having said that, we encourage you to submit any interesting templates that
26381  you create.
26382  
26383 \end_layout
26384
26385 \begin_layout Standard
26386 The external templates are defined in the 
26387 \begin_inset Flex Code
26388 status collapsed
26389
26390 \begin_layout Plain Layout
26391 *.xtemplate
26392 \end_layout
26393
26394 \end_inset
26395
26396  files that are stored in the 
26397 \begin_inset Flex Code
26398 status collapsed
26399
26400 \begin_layout Plain Layout
26401 LyXDir/lib/xtemplates/
26402 \end_layout
26403
26404 \end_inset
26405
26406  directory.
26407  Each template is defined in a file of its own.
26408  You can place your own templates in 
26409 \begin_inset Flex Code
26410 status collapsed
26411
26412 \begin_layout Plain Layout
26413 UserDir/xtemplates/
26414 \end_layout
26415
26416 \end_inset
26417
26418  or copy existing templates to that directory in order to modify them.
26419 \end_layout
26420
26421 \begin_layout Standard
26422 A typical template looks like this:
26423 \end_layout
26424
26425 \begin_layout LyX-Code
26426 Template XFig
26427 \end_layout
26428
26429 \begin_layout LyX-Code
26430 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26431 \end_layout
26432
26433 \begin_layout LyX-Code
26434 HelpText
26435 \end_layout
26436
26437 \begin_layout LyX-Code
26438 An XFig figure.
26439 \end_layout
26440
26441 \begin_layout LyX-Code
26442 HelpTextEnd
26443 \end_layout
26444
26445 \begin_layout LyX-Code
26446 InputFormat fig
26447 \end_layout
26448
26449 \begin_layout LyX-Code
26450 FileFilter "*.fig"
26451 \end_layout
26452
26453 \begin_layout LyX-Code
26454 AutomaticProduction true
26455 \end_layout
26456
26457 \begin_layout LyX-Code
26458 Transform Rotate
26459 \end_layout
26460
26461 \begin_layout LyX-Code
26462 Transform Resize
26463 \end_layout
26464
26465 \begin_layout LyX-Code
26466 Format LaTeX
26467 \end_layout
26468
26469 \begin_layout LyX-Code
26470 TransformCommand Rotate RotationLatexCommand
26471 \end_layout
26472
26473 \begin_layout LyX-Code
26474 TransformCommand Resize ResizeLatexCommand
26475 \end_layout
26476
26477 \begin_layout LyX-Code
26478 Product "$$RotateFront$$ResizeFront
26479 \end_layout
26480
26481 \begin_layout LyX-Code
26482          
26483 \backslash
26484
26485 \backslash
26486 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26487 \end_layout
26488
26489 \begin_layout LyX-Code
26490          $$ResizeBack$$RotateBack"
26491 \end_layout
26492
26493 \begin_layout LyX-Code
26494 UpdateFormat pstex
26495 \end_layout
26496
26497 \begin_layout LyX-Code
26498 UpdateResult "$$AbsPath$$Basename.pstex_t"
26499 \end_layout
26500
26501 \begin_layout LyX-Code
26502 Requirement "graphicx"
26503 \end_layout
26504
26505 \begin_layout LyX-Code
26506 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26507 \end_layout
26508
26509 \begin_layout LyX-Code
26510 ReferencedFile latex "$$AbsPath$$Basename.eps"
26511 \end_layout
26512
26513 \begin_layout LyX-Code
26514 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26515 \end_layout
26516
26517 \begin_layout LyX-Code
26518 FormatEnd
26519 \end_layout
26520
26521 \begin_layout LyX-Code
26522 Format PDFLaTeX
26523 \end_layout
26524
26525 \begin_layout LyX-Code
26526 TransformCommand Rotate RotationLatexCommand
26527 \end_layout
26528
26529 \begin_layout LyX-Code
26530 TransformCommand Resize ResizeLatexCommand
26531 \end_layout
26532
26533 \begin_layout LyX-Code
26534 Product "$$RotateFront$$ResizeFront
26535 \end_layout
26536
26537 \begin_layout LyX-Code
26538          
26539 \backslash
26540
26541 \backslash
26542 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26543 \end_layout
26544
26545 \begin_layout LyX-Code
26546          $$ResizeBack$$RotateBack"
26547 \end_layout
26548
26549 \begin_layout LyX-Code
26550 UpdateFormat pdftex
26551 \end_layout
26552
26553 \begin_layout LyX-Code
26554 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26555 \end_layout
26556
26557 \begin_layout LyX-Code
26558 Requirement "graphicx"
26559 \end_layout
26560
26561 \begin_layout LyX-Code
26562 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26563 \end_layout
26564
26565 \begin_layout LyX-Code
26566 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26567 \end_layout
26568
26569 \begin_layout LyX-Code
26570 FormatEnd
26571 \end_layout
26572
26573 \begin_layout LyX-Code
26574 Format Ascii
26575 \end_layout
26576
26577 \begin_layout LyX-Code
26578 Product "[XFig: $$FName]"
26579 \end_layout
26580
26581 \begin_layout LyX-Code
26582 FormatEnd
26583 \end_layout
26584
26585 \begin_layout LyX-Code
26586 Format DocBook
26587 \end_layout
26588
26589 \begin_layout LyX-Code
26590 Product "<graphic fileref=
26591 \backslash
26592 "$$AbsOrRelPathMaster$$Basename.eps
26593 \backslash
26594 ">
26595 \end_layout
26596
26597 \begin_layout LyX-Code
26598          </graphic>"
26599 \end_layout
26600
26601 \begin_layout LyX-Code
26602 UpdateFormat eps
26603 \end_layout
26604
26605 \begin_layout LyX-Code
26606 UpdateResult "$$AbsPath$$Basename.eps"
26607 \end_layout
26608
26609 \begin_layout LyX-Code
26610 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26611 \end_layout
26612
26613 \begin_layout LyX-Code
26614 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26615 \end_layout
26616
26617 \begin_layout LyX-Code
26618 FormatEnd
26619 \end_layout
26620
26621 \begin_layout LyX-Code
26622 TemplateEnd
26623 \end_layout
26624
26625 \begin_layout Standard
26626 As you can see, the template is enclosed in 
26627 \begin_inset Flex Code
26628 status collapsed
26629
26630 \begin_layout Plain Layout
26631 Template
26632 \end_layout
26633
26634 \end_inset
26635
26636  \SpecialChar ldots
26637  
26638 \begin_inset Flex Code
26639 status collapsed
26640
26641 \begin_layout Plain Layout
26642 TemplateEnd
26643 \end_layout
26644
26645 \end_inset
26646
26647 .
26648  It contains a header specifying some general settings and, for each supported
26649  primary document file format, a section 
26650 \begin_inset Flex Code
26651 status collapsed
26652
26653 \begin_layout Plain Layout
26654 Format
26655 \end_layout
26656
26657 \end_inset
26658
26659  \SpecialChar ldots
26660  
26661 \begin_inset Flex Code
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665 FormatEnd
26666 \end_layout
26667
26668 \end_inset
26669
26670 .
26671 \end_layout
26672
26673 \begin_layout Subsection
26674 The template header
26675 \end_layout
26676
26677 \begin_layout Description
26678 \begin_inset Flex Code
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 AutomaticProduction
26683 \begin_inset space ~
26684 \end_inset
26685
26686 true|false
26687 \end_layout
26688
26689 \end_inset
26690
26691  Whether the file represented by the template must be generated by \SpecialChar LyX
26692 .
26693  This command must occur exactly once.
26694 \end_layout
26695
26696 \begin_layout Description
26697 \begin_inset Flex Code
26698 status collapsed
26699
26700 \begin_layout Plain Layout
26701 FileFilter
26702 \begin_inset space ~
26703 \end_inset
26704
26705 <pattern>
26706 \end_layout
26707
26708 \end_inset
26709
26710  A glob pattern that is used in the file dialog to filter out the desired
26711  files.
26712  If there is more than one possible file extension (e.
26713 \begin_inset space \thinspace{}
26714 \end_inset
26715
26716 g.
26717 \begin_inset space \space{}
26718 \end_inset
26719
26720 tgif has 
26721 \begin_inset Flex Code
26722 status collapsed
26723
26724 \begin_layout Plain Layout
26725 .obj
26726 \end_layout
26727
26728 \end_inset
26729
26730  and 
26731 \begin_inset Flex Code
26732 status collapsed
26733
26734 \begin_layout Plain Layout
26735 .tgo
26736 \end_layout
26737
26738 \end_inset
26739
26740 ), use something like 
26741 \begin_inset Flex Code
26742 status collapsed
26743
26744 \begin_layout Plain Layout
26745 "*.{obj,tgo}"
26746 \end_layout
26747
26748 \end_inset
26749
26750 .
26751  This command must occur exactly once.
26752 \end_layout
26753
26754 \begin_layout Description
26755 \begin_inset Flex Code
26756 status collapsed
26757
26758 \begin_layout Plain Layout
26759 GuiName
26760 \begin_inset space ~
26761 \end_inset
26762
26763 <guiname>
26764 \end_layout
26765
26766 \end_inset
26767
26768  The text that is displayed on the button.
26769  This command must occur exactly once.
26770 \end_layout
26771
26772 \begin_layout Description
26773 \begin_inset Flex Code
26774 status collapsed
26775
26776 \begin_layout Plain Layout
26777 HelpText
26778 \begin_inset space ~
26779 \end_inset
26780
26781 <text>
26782 \begin_inset space ~
26783 \end_inset
26784
26785 HelpTextEnd
26786 \end_layout
26787
26788 \end_inset
26789
26790  The help text that is used in the External dialog.
26791  Provide enough information to explain to the user just what the template
26792  can provide him with.
26793  This command must occur exactly once.
26794 \end_layout
26795
26796 \begin_layout Description
26797 \begin_inset Flex Code
26798 status collapsed
26799
26800 \begin_layout Plain Layout
26801 InputFormat
26802 \begin_inset space ~
26803 \end_inset
26804
26805 <format>
26806 \end_layout
26807
26808 \end_inset
26809
26810  The file format of the original file.
26811  This must be the name of a format that is known to \SpecialChar LyX
26812  (see 
26813 \begin_inset CommandInset ref
26814 LatexCommand ref
26815 reference "sec:Formats"
26816
26817 \end_inset
26818
26819 ).
26820  Use 
26821 \begin_inset Quotes eld
26822 \end_inset
26823
26824
26825 \begin_inset Flex Code
26826 status collapsed
26827
26828 \begin_layout Plain Layout
26829 *
26830 \end_layout
26831
26832 \end_inset
26833
26834
26835 \begin_inset Quotes erd
26836 \end_inset
26837
26838  if the template can handle original files of more than one format.
26839  \SpecialChar LyX
26840  will attempt to interrogate the file itself in order to deduce its format
26841  in this case.
26842  This command must occur exactly once.
26843 \end_layout
26844
26845 \begin_layout Description
26846 \begin_inset Flex Code
26847 status collapsed
26848
26849 \begin_layout Plain Layout
26850 Template
26851 \begin_inset space ~
26852 \end_inset
26853
26854 <id>
26855 \end_layout
26856
26857 \end_inset
26858
26859  A unique name for the template.
26860  It must not contain substitution macros (see below).
26861 \end_layout
26862
26863 \begin_layout Description
26864 \begin_inset Flex Code
26865 status collapsed
26866
26867 \begin_layout Plain Layout
26868 Transform
26869 \begin_inset space ~
26870 \end_inset
26871
26872 Rotate|Resize|Clip|Extra
26873 \end_layout
26874
26875 \end_inset
26876
26877  This command specifies which transformations are supported by this template.
26878  It may occur zero or more times.
26879  This command enables the corresponding tabs in the external dialog.
26880  Each 
26881 \begin_inset Flex Code
26882 status collapsed
26883
26884 \begin_layout Plain Layout
26885 Transform
26886 \end_layout
26887
26888 \end_inset
26889
26890  command must have either a corresponding 
26891 \begin_inset Flex Code
26892 status collapsed
26893
26894 \begin_layout Plain Layout
26895 TransformCommand
26896 \end_layout
26897
26898 \end_inset
26899
26900  or a 
26901 \begin_inset Flex Code
26902 status collapsed
26903
26904 \begin_layout Plain Layout
26905 TransformOption
26906 \end_layout
26907
26908 \end_inset
26909
26910  command in the 
26911 \begin_inset Flex Code
26912 status collapsed
26913
26914 \begin_layout Plain Layout
26915 Format
26916 \end_layout
26917
26918 \end_inset
26919
26920  section.
26921  Otherwise the transformation will not be supported by that format.
26922 \end_layout
26923
26924 \begin_layout Subsection
26925 The Format section
26926 \end_layout
26927
26928 \begin_layout Description
26929 \begin_inset Flex Code
26930 status collapsed
26931
26932 \begin_layout Plain Layout
26933 Format
26934 \begin_inset space ~
26935 \end_inset
26936
26937 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26938 \end_layout
26939
26940 \end_inset
26941
26942  The primary document file format that this format definition is for.
26943  Not every template has a sensible representation in all document file formats.
26944  Please define nevertheless a 
26945 \begin_inset Flex Code
26946 status collapsed
26947
26948 \begin_layout Plain Layout
26949 Format
26950 \end_layout
26951
26952 \end_inset
26953
26954  section for all templates.
26955  Use a dummy text when no representation is available.
26956  Then you can at least see a reference to the external material in the exported
26957  document.
26958 \end_layout
26959
26960 \begin_layout Description
26961 \begin_inset Flex Code
26962 status collapsed
26963
26964 \begin_layout Plain Layout
26965 Option
26966 \begin_inset space ~
26967 \end_inset
26968
26969 <name>
26970 \begin_inset space ~
26971 \end_inset
26972
26973 <value>
26974 \end_layout
26975
26976 \end_inset
26977
26978  This command defines an additional macro 
26979 \begin_inset Flex Code
26980 status collapsed
26981
26982 \begin_layout Plain Layout
26983 $$<name>
26984 \end_layout
26985
26986 \end_inset
26987
26988  for substitution in 
26989 \begin_inset Flex Code
26990 status collapsed
26991
26992 \begin_layout Plain Layout
26993 Product
26994 \end_layout
26995
26996 \end_inset
26997
26998 .
26999  
27000 \begin_inset Flex Code
27001 status collapsed
27002
27003 \begin_layout Plain Layout
27004 <value>
27005 \end_layout
27006
27007 \end_inset
27008
27009  itself may contain substitution macros.
27010  The advantage over using 
27011 \begin_inset Flex Code
27012 status collapsed
27013
27014 \begin_layout Plain Layout
27015 <value>
27016 \end_layout
27017
27018 \end_inset
27019
27020  directly in 
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025 Product
27026 \end_layout
27027
27028 \end_inset
27029
27030  is that the substituted value of 
27031 \begin_inset Flex Code
27032 status collapsed
27033
27034 \begin_layout Plain Layout
27035 $$<name>
27036 \end_layout
27037
27038 \end_inset
27039
27040  is sanitized so that it is a valid optional argument in the document format.
27041  This command may occur zero or more times.
27042 \end_layout
27043
27044 \begin_layout Description
27045 \begin_inset Flex Code
27046 status collapsed
27047
27048 \begin_layout Plain Layout
27049 Product
27050 \begin_inset space ~
27051 \end_inset
27052
27053 <text>
27054 \end_layout
27055
27056 \end_inset
27057
27058  The text that is inserted in the exported document.
27059  This is actually the most important command and can be quite complex.
27060  This command must occur exactly once.
27061 \end_layout
27062
27063 \begin_layout Description
27064 \begin_inset Flex Code
27065 status collapsed
27066
27067 \begin_layout Plain Layout
27068 Preamble
27069 \begin_inset space ~
27070 \end_inset
27071
27072 <name>
27073 \end_layout
27074
27075 \end_inset
27076
27077  This command specifies a preamble snippet that will be included in the
27078  \SpecialChar LaTeX
27079  preamble.
27080  It has to be defined using 
27081 \begin_inset Flex Code
27082 status collapsed
27083
27084 \begin_layout Plain Layout
27085 PreambleDef
27086 \end_layout
27087
27088 \end_inset
27089
27090  \SpecialChar ldots
27091  
27092 \begin_inset Flex Code
27093 status collapsed
27094
27095 \begin_layout Plain Layout
27096 PreambleDefEnd
27097 \end_layout
27098
27099 \end_inset
27100
27101 .
27102  This command may occur zero or more times.
27103 \end_layout
27104
27105 \begin_layout Description
27106 \begin_inset Flex Code
27107 status collapsed
27108
27109 \begin_layout Plain Layout
27110 ReferencedFile
27111 \begin_inset space ~
27112 \end_inset
27113
27114 <format>
27115 \begin_inset space ~
27116 \end_inset
27117
27118 <filename>
27119 \end_layout
27120
27121 \end_inset
27122
27123  This command denotes files that are created by the conversion process and
27124  are needed for a particular export format.
27125  If the filename is relative, it is interpreted relative to the master document.
27126  This command may be given zero or more times.
27127 \end_layout
27128
27129 \begin_layout Description
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 Requirement
27135 \begin_inset space ~
27136 \end_inset
27137
27138 <package>
27139 \end_layout
27140
27141 \end_inset
27142
27143  The name of a required \SpecialChar LaTeX
27144  package.
27145  The package is included via 
27146 \begin_inset Flex Code
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150
27151 \backslash
27152 usepackage{}
27153 \end_layout
27154
27155 \end_inset
27156
27157  in the \SpecialChar LaTeX
27158  preamble.
27159  This command may occur zero or more times.
27160 \end_layout
27161
27162 \begin_layout Description
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 TransformCommand
27168 \begin_inset space ~
27169 \end_inset
27170
27171 Rotate
27172 \begin_inset space ~
27173 \end_inset
27174
27175 RotationLatexCommand
27176 \end_layout
27177
27178 \end_inset
27179
27180  This command specifies that the built in \SpecialChar LaTeX
27181  command should be used for rotation.
27182  This command may occur once or not at all.
27183 \end_layout
27184
27185 \begin_layout Description
27186 \begin_inset Flex Code
27187 status collapsed
27188
27189 \begin_layout Plain Layout
27190 TransformCommand
27191 \begin_inset space ~
27192 \end_inset
27193
27194 Resize
27195 \begin_inset space ~
27196 \end_inset
27197
27198 ResizeLatexCommand
27199 \end_layout
27200
27201 \end_inset
27202
27203  This command specifies that the built in \SpecialChar LaTeX
27204  command should be used for resizing.
27205  This command may occur once or not at all.
27206 \end_layout
27207
27208 \begin_layout Description
27209 \begin_inset Flex Code
27210 status collapsed
27211
27212 \begin_layout Plain Layout
27213 TransformOption
27214 \begin_inset space ~
27215 \end_inset
27216
27217 Rotate
27218 \begin_inset space ~
27219 \end_inset
27220
27221 RotationLatexOption
27222 \end_layout
27223
27224 \end_inset
27225
27226  This command specifies that rotation is done via an optional argument.
27227  This command may occur once or not at all.
27228 \end_layout
27229
27230 \begin_layout Description
27231 \begin_inset Flex Code
27232 status collapsed
27233
27234 \begin_layout Plain Layout
27235 TransformOption
27236 \begin_inset space ~
27237 \end_inset
27238
27239 Resize
27240 \begin_inset space ~
27241 \end_inset
27242
27243 ResizeLatexOption
27244 \end_layout
27245
27246 \end_inset
27247
27248  This command specifies that resizing is done via an optional argument.
27249  This command may occur once or not at all.
27250 \end_layout
27251
27252 \begin_layout Description
27253 \begin_inset Flex Code
27254 status collapsed
27255
27256 \begin_layout Plain Layout
27257 TransformOption
27258 \begin_inset space ~
27259 \end_inset
27260
27261 Clip
27262 \begin_inset space ~
27263 \end_inset
27264
27265 ClipLatexOption
27266 \end_layout
27267
27268 \end_inset
27269
27270  This command specifies that clipping is done via an optional argument.
27271  This command may occur once or not at all.
27272 \end_layout
27273
27274 \begin_layout Description
27275 \begin_inset Flex Code
27276 status collapsed
27277
27278 \begin_layout Plain Layout
27279 TransformOption
27280 \begin_inset space ~
27281 \end_inset
27282
27283 Extra
27284 \begin_inset space ~
27285 \end_inset
27286
27287 ExtraLatexOption
27288 \end_layout
27289
27290 \end_inset
27291
27292  This command specifies that an extra optional argument is used.
27293  This command may occur once or not at all.
27294 \end_layout
27295
27296 \begin_layout Description
27297 \begin_inset Flex Code
27298 status collapsed
27299
27300 \begin_layout Plain Layout
27301 UpdateFormat
27302 \begin_inset space ~
27303 \end_inset
27304
27305 <format>
27306 \end_layout
27307
27308 \end_inset
27309
27310  The file format of the converted file.
27311  This must be the name of a format that is known to \SpecialChar LyX
27312  (see the 
27313 \begin_inset Flex Noun
27314 status collapsed
27315
27316 \begin_layout Plain Layout
27317 Tools\SpecialChar menuseparator
27318 Preferences\SpecialChar menuseparator
27319 File Handling\SpecialChar menuseparator
27320 File Format
27321 \end_layout
27322
27323 \end_inset
27324
27325  dialog).
27326  This command must occur exactly once.
27327  If the resulting file format is PDF, you need to specify the format 
27328 \begin_inset Flex Code
27329 status collapsed
27330
27331 \begin_layout Plain Layout
27332 pdf6
27333 \end_layout
27334
27335 \end_inset
27336
27337 .
27338  This is the PDF format used for including graphics.
27339  The other defined PDF formats are for document export.
27340 \end_layout
27341
27342 \begin_layout Description
27343 \begin_inset Flex Code
27344 status collapsed
27345
27346 \begin_layout Plain Layout
27347 UpdateResult
27348 \begin_inset space ~
27349 \end_inset
27350
27351 <filename>
27352 \end_layout
27353
27354 \end_inset
27355
27356  The file name of the converted file.
27357  The file name must be absolute.
27358  This command must occur exactly once.
27359 \end_layout
27360
27361 \begin_layout Subsection
27362 Preamble definitions
27363 \end_layout
27364
27365 \begin_layout Standard
27366 The external template configuration file may contain additional preamble
27367  definitions enclosed by 
27368 \begin_inset Flex Code
27369 status collapsed
27370
27371 \begin_layout Plain Layout
27372 PreambleDef
27373 \end_layout
27374
27375 \end_inset
27376
27377  \SpecialChar ldots
27378  
27379 \begin_inset Flex Code
27380 status collapsed
27381
27382 \begin_layout Plain Layout
27383 PreambleDefEnd
27384 \end_layout
27385
27386 \end_inset
27387
27388 .
27389  They can be used by the templates in the 
27390 \begin_inset Flex Code
27391 status collapsed
27392
27393 \begin_layout Plain Layout
27394 Format
27395 \end_layout
27396
27397 \end_inset
27398
27399  section.
27400 \end_layout
27401
27402 \begin_layout Section
27403 The substitution mechanism
27404 \end_layout
27405
27406 \begin_layout Standard
27407 When the external material facility invokes an external program, it is done
27408  on the basis of a command defined in the template configuration file.
27409  These commands can contain various macros that are expanded before execution.
27410  Execution always take place in the directory of the containing document.
27411 \end_layout
27412
27413 \begin_layout Standard
27414 Also, whenever external material is to be displayed, the name will be produced
27415  by the substitution mechanism, and most other commands in the template
27416  definition support substitution as well.
27417 \end_layout
27418
27419 \begin_layout Standard
27420 The available macros are the following:
27421 \end_layout
27422
27423 \begin_layout Description
27424 \begin_inset Flex Code
27425 status collapsed
27426
27427 \begin_layout Plain Layout
27428 $$AbsOrRelPathMaster
27429 \end_layout
27430
27431 \end_inset
27432
27433  The file path, absolute or relative to the master \SpecialChar LyX
27434  document.
27435 \end_layout
27436
27437 \begin_layout Description
27438 \begin_inset Flex Code
27439 status collapsed
27440
27441 \begin_layout Plain Layout
27442 $$AbsOrRelPathParent
27443 \end_layout
27444
27445 \end_inset
27446
27447  The file path, absolute or relative to the \SpecialChar LyX
27448  document.
27449 \end_layout
27450
27451 \begin_layout Description
27452 \begin_inset Flex Code
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456 $$AbsPath
27457 \end_layout
27458
27459 \end_inset
27460
27461  The absolute file path.
27462 \end_layout
27463
27464 \begin_layout Description
27465 \begin_inset Flex Code
27466 status collapsed
27467
27468 \begin_layout Plain Layout
27469 $$Basename
27470 \end_layout
27471
27472 \end_inset
27473
27474  The filename without path and without the extension.
27475 \end_layout
27476
27477 \begin_layout Description
27478 \begin_inset Flex Code
27479 status collapsed
27480
27481 \begin_layout Plain Layout
27482 $$Contents(
27483 \begin_inset Quotes eld
27484 \end_inset
27485
27486 filename.ext
27487 \begin_inset Quotes erd
27488 \end_inset
27489
27490 )
27491 \end_layout
27492
27493 \end_inset
27494
27495  This macro will expand to the contents of the file with the name 
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 filename.ext
27501 \end_layout
27502
27503 \end_inset
27504
27505 .
27506 \end_layout
27507
27508 \begin_layout Description
27509 \begin_inset Flex Code
27510 status collapsed
27511
27512 \begin_layout Plain Layout
27513 $$Extension
27514 \end_layout
27515
27516 \end_inset
27517
27518  The file extension (including the dot).
27519 \end_layout
27520
27521 \begin_layout Description
27522 \begin_inset Flex Code
27523 status collapsed
27524
27525 \begin_layout Plain Layout
27526 $$pngOrjpg
27527 \end_layout
27528
27529 \end_inset
27530
27531  This will be the string 
27532 \begin_inset Quotes eld
27533 \end_inset
27534
27535 jpg
27536 \begin_inset Quotes erd
27537 \end_inset
27538
27539  if the file is in JPEG format, otherwise it will be the string 
27540 \begin_inset Quotes eld
27541 \end_inset
27542
27543 png
27544 \begin_inset Quotes erd
27545 \end_inset
27546
27547 .
27548  This is useful to avoid uneeded conversions for output formats that support
27549  both PNG and JPEG fomats.
27550  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27551  output
27552  format.
27553 \end_layout
27554
27555 \begin_layout Description
27556 \begin_inset Flex Code
27557 status collapsed
27558
27559 \begin_layout Plain Layout
27560 $$FName
27561 \end_layout
27562
27563 \end_inset
27564
27565  The filename of the file specified in the external material dialog.
27566  This is either an absolute name, or it is relative to the \SpecialChar LyX
27567  document.
27568 \end_layout
27569
27570 \begin_layout Description
27571 \begin_inset Flex Code
27572 status collapsed
27573
27574 \begin_layout Plain Layout
27575 $$FPath
27576 \end_layout
27577
27578 \end_inset
27579
27580  The path part of 
27581 \begin_inset Flex Code
27582 status collapsed
27583
27584 \begin_layout Plain Layout
27585 $$FName
27586 \end_layout
27587
27588 \end_inset
27589
27590  (absolute name or relative to the \SpecialChar LyX
27591  document).
27592 \end_layout
27593
27594 \begin_layout Description
27595 \begin_inset Flex Code
27596 status collapsed
27597
27598 \begin_layout Plain Layout
27599 $$RelPathMaster
27600 \end_layout
27601
27602 \end_inset
27603
27604  The file path, relative to the master \SpecialChar LyX
27605  document.
27606 \end_layout
27607
27608 \begin_layout Description
27609 \begin_inset Flex Code
27610 status collapsed
27611
27612 \begin_layout Plain Layout
27613 $$RelPathParent
27614 \end_layout
27615
27616 \end_inset
27617
27618  The file path, relative to the \SpecialChar LyX
27619  document.
27620 \end_layout
27621
27622 \begin_layout Description
27623 \begin_inset Flex Code
27624 status collapsed
27625
27626 \begin_layout Plain Layout
27627 $$Sysdir
27628 \end_layout
27629
27630 \end_inset
27631
27632  This macro will expand to the absolute path of the system directory.
27633  This is typically used to point to the various helper scripts that are
27634  bundled with \SpecialChar LyX
27635 .
27636 \end_layout
27637
27638 \begin_layout Description
27639 \begin_inset Flex Code
27640 status collapsed
27641
27642 \begin_layout Plain Layout
27643 $$Tempname
27644 \end_layout
27645
27646 \end_inset
27647
27648  A name and full path to a temporary file which will be automatically deleted
27649  whenever the containing document is closed, or the external material insertion
27650  deleted.
27651 \end_layout
27652
27653 \begin_layout Standard
27654 All path macros contain a trailing directory separator, so you can construct
27655  e.
27656 \begin_inset space \thinspace{}
27657 \end_inset
27658
27659 g.
27660 \begin_inset space \space{}
27661 \end_inset
27662
27663 the absolute filename with 
27664 \begin_inset Flex Code
27665 status collapsed
27666
27667 \begin_layout Plain Layout
27668 $$AbsPath$$Basename$$Extension
27669 \end_layout
27670
27671 \end_inset
27672
27673 .
27674 \end_layout
27675
27676 \begin_layout Standard
27677 The macros above are substituted in all commands unless otherwise noted.
27678  The command 
27679 \begin_inset Flex Code
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683 Product
27684 \end_layout
27685
27686 \end_inset
27687
27688  supports additionally the following substitutions if they are enabled by
27689  the 
27690 \begin_inset Flex Code
27691 status collapsed
27692
27693 \begin_layout Plain Layout
27694 Transform
27695 \end_layout
27696
27697 \end_inset
27698
27699  and 
27700 \begin_inset Flex Code
27701 status collapsed
27702
27703 \begin_layout Plain Layout
27704 TransformCommand
27705 \end_layout
27706
27707 \end_inset
27708
27709  commands:
27710 \end_layout
27711
27712 \begin_layout Description
27713 \begin_inset Flex Code
27714 status collapsed
27715
27716 \begin_layout Plain Layout
27717 $$ResizeFront
27718 \end_layout
27719
27720 \end_inset
27721
27722  The front part of the resize command.
27723 \end_layout
27724
27725 \begin_layout Description
27726 \begin_inset Flex Code
27727 status collapsed
27728
27729 \begin_layout Plain Layout
27730 $$ResizeBack
27731 \end_layout
27732
27733 \end_inset
27734
27735  The back part of the resize command.
27736 \end_layout
27737
27738 \begin_layout Description
27739 \begin_inset Flex Code
27740 status collapsed
27741
27742 \begin_layout Plain Layout
27743 $$RotateFront
27744 \end_layout
27745
27746 \end_inset
27747
27748  The front part of the rotation command.
27749 \end_layout
27750
27751 \begin_layout Description
27752 \begin_inset Flex Code
27753 status collapsed
27754
27755 \begin_layout Plain Layout
27756 $$RotateBack
27757 \end_layout
27758
27759 \end_inset
27760
27761  The back part of the rotation command.
27762 \end_layout
27763
27764 \begin_layout Standard
27765 The value string of the 
27766 \begin_inset Flex Code
27767 status collapsed
27768
27769 \begin_layout Plain Layout
27770 Option
27771 \end_layout
27772
27773 \end_inset
27774
27775  command supports additionally the following substitutions if they are enabled
27776  by the 
27777 \begin_inset Flex Code
27778 status collapsed
27779
27780 \begin_layout Plain Layout
27781 Transform
27782 \end_layout
27783
27784 \end_inset
27785
27786  and 
27787 \begin_inset Flex Code
27788 status collapsed
27789
27790 \begin_layout Plain Layout
27791 TransformOption
27792 \end_layout
27793
27794 \end_inset
27795
27796  commands:
27797 \end_layout
27798
27799 \begin_layout Description
27800 \begin_inset Flex Code
27801 status collapsed
27802
27803 \begin_layout Plain Layout
27804 $$Clip
27805 \end_layout
27806
27807 \end_inset
27808
27809  The clip option.
27810 \end_layout
27811
27812 \begin_layout Description
27813 \begin_inset Flex Code
27814 status collapsed
27815
27816 \begin_layout Plain Layout
27817 $$Extra
27818 \end_layout
27819
27820 \end_inset
27821
27822  The extra option.
27823 \end_layout
27824
27825 \begin_layout Description
27826 \begin_inset Flex Code
27827 status collapsed
27828
27829 \begin_layout Plain Layout
27830 $$Resize
27831 \end_layout
27832
27833 \end_inset
27834
27835  The resize option.
27836 \end_layout
27837
27838 \begin_layout Description
27839 \begin_inset Flex Code
27840 status collapsed
27841
27842 \begin_layout Plain Layout
27843 $$Rotate
27844 \end_layout
27845
27846 \end_inset
27847
27848  The rotation option.
27849 \end_layout
27850
27851 \begin_layout Standard
27852 You may ask why there are so many path macros.
27853  There are mainly two reasons:
27854 \end_layout
27855
27856 \begin_layout Enumerate
27857 Relative and absolute file names should remain relative or absolute, respectivel
27858 y.
27859  Users may have reasons to prefer either form.
27860  Relative names are useful for portable documents that should work on different
27861  machines, for example.
27862  Absolute names may be required by some programs.
27863 \end_layout
27864
27865 \begin_layout Enumerate
27866 \SpecialChar LaTeX
27867  treats relative file names differently than \SpecialChar LyX
27868  and other programs in nested
27869  included files.
27870  For \SpecialChar LyX
27871 , a relative file name is always relative to the document that contains
27872  the file name.
27873  For \SpecialChar LaTeX
27874 , it is always relative to the master document.
27875  These two definitions are identical if you have only one document, but
27876  differ if you have a master document that includes part documents.
27877  That means that relative filenames must be transformed when presented to
27878  \SpecialChar LaTeX
27879 .
27880  Fortunately \SpecialChar LyX
27881  does this automatically for you if you choose the right macros.
27882 \end_layout
27883
27884 \begin_layout Standard
27885 So which path macro should be used in new template definitions? The rule
27886  is not difficult:
27887 \end_layout
27888
27889 \begin_layout Itemize
27890 Use 
27891 \begin_inset Flex Code
27892 status collapsed
27893
27894 \begin_layout Plain Layout
27895 $$AbsPath
27896 \end_layout
27897
27898 \end_inset
27899
27900  if an absolute path is required.
27901 \end_layout
27902
27903 \begin_layout Itemize
27904 Use 
27905 \begin_inset Flex Code
27906 status collapsed
27907
27908 \begin_layout Plain Layout
27909 $$AbsOrRelPathMaster
27910 \end_layout
27911
27912 \end_inset
27913
27914  if the substituted string is some kind of \SpecialChar LaTeX
27915  input.
27916 \end_layout
27917
27918 \begin_layout Itemize
27919 Else use 
27920 \begin_inset Flex Code
27921 status collapsed
27922
27923 \begin_layout Plain Layout
27924 $$AbsOrRelPathParent
27925 \end_layout
27926
27927 \end_inset
27928
27929  in order to preserve the user's choice.
27930 \end_layout
27931
27932 \begin_layout Standard
27933 There are special cases where this rule does not work and e.
27934 \begin_inset space \thinspace{}
27935 \end_inset
27936
27937 g.
27938 \begin_inset space \space{}
27939 \end_inset
27940
27941 relative names are needed, but normally it will work just fine.
27942  One example for such a case is the command 
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27948 \end_layout
27949
27950 \end_inset
27951
27952  in the XFig template above: We can't use the absolute name because the
27953  copier for 
27954 \begin_inset Flex Code
27955 status collapsed
27956
27957 \begin_layout Plain Layout
27958 .pstex_t
27959 \end_layout
27960
27961 \end_inset
27962
27963  files needs the relative name in order to rewrite the file content.
27964 \end_layout
27965
27966 \begin_layout Section
27967 Security discussion
27968 \begin_inset CommandInset label
27969 LatexCommand label
27970 name "sec:Security-discussion"
27971
27972 \end_inset
27973
27974
27975 \end_layout
27976
27977 \begin_layout Standard
27978 The external material feature interfaces with a lot of external programs
27979  and does so automatically, so we have to consider the security implications
27980  of this.
27981  In particular, since you have the option of including your own filenames
27982  and/or parameter strings and those are expanded into a command, it seems
27983  that it would be possible to create a malicious document which executes
27984  arbitrary commands when a user views or prints the document.
27985  This is something we definitely want to avoid.
27986 \end_layout
27987
27988 \begin_layout Standard
27989 However, since the external program commands are specified in the template
27990  configuration file only, there are no security issues if \SpecialChar LyX
27991  is properly configure
27992 d with safe templates only.
27993  This is so because the external programs are invoked with the 
27994 \begin_inset Flex Code
27995 status collapsed
27996
27997 \begin_layout Plain Layout
27998 execvp
27999 \end_layout
28000
28001 \end_inset
28002
28003 -system call rather than the 
28004 \begin_inset Flex Code
28005 status collapsed
28006
28007 \begin_layout Plain Layout
28008 system
28009 \end_layout
28010
28011 \end_inset
28012
28013  system-call, so it's not possible to execute arbitrary commands from the
28014  filename or parameter section via the shell.
28015 \end_layout
28016
28017 \begin_layout Standard
28018 This also implies that you are restricted in what command strings you can
28019  use in the external material templates.
28020  In particular, pipes and redirection are not readily available.
28021  This has to be so if \SpecialChar LyX
28022  should remain safe.
28023  If you want to use some of the shell features, you should write a safe
28024  script to do this in a controlled manner, and then invoke the script from
28025  the command string.
28026  
28027 \end_layout
28028
28029 \begin_layout Standard
28030 It is possible to design a template that interacts directly with the shell,
28031  but since this would allow a malicious user to execute arbitrary commands
28032  by writing clever filenames and/or parameters, we generally recommend that
28033  you only use safe scripts that work with the 
28034 \begin_inset Flex Code
28035 status collapsed
28036
28037 \begin_layout Plain Layout
28038 execvp
28039 \end_layout
28040
28041 \end_inset
28042
28043  system call in a controlled manner.
28044  Of course, for use in a controlled environment, it can be tempting to just
28045  fall back to use ordinary shell scripts.
28046  If you do so, be aware that you 
28047 \emph on
28048 will
28049 \emph default
28050  provide an easily exploitable security hole in your system.
28051  Of course it stands to reason that such unsafe templates will never be
28052  included in the standard \SpecialChar LyX
28053  distribution, although we do encourage people
28054  to submit new templates in the open source tradition.
28055  But \SpecialChar LyX
28056  as shipped from the official distribution channels will never have
28057  unsafe templates.
28058 \end_layout
28059
28060 \begin_layout Standard
28061 Including external material provides a lot of power, and you have to be
28062  careful not to introduce security hazards with this power.
28063  A subtle error in a single line in an innocent looking script can open
28064  the door to huge security problems.
28065  So if you do not fully understand the issues, we recommend that you consult
28066  a knowledgeable security professional or the \SpecialChar LyX
28067  development team if you have
28068  any questions about whether a given template is safe or not.
28069  And do this before you use it in an uncontrolled environment.
28070 \end_layout
28071
28072 \begin_layout Chapter
28073 \start_of_appendix
28074 List of supported \SpecialChar LyX
28075  functions to be used in layouts
28076 \begin_inset CommandInset label
28077 LatexCommand label
28078 name "chap:List-of-functions"
28079
28080 \end_inset
28081
28082
28083 \end_layout
28084
28085 \begin_layout Standard
28086 \align center
28087 \begin_inset Tabular
28088 <lyxtabular version="3" rows="11" columns="8">
28089 <features tabularvalignment="middle">
28090 <column alignment="left" valignment="top">
28091 <column alignment="left" valignment="top">
28092 <column alignment="left" valignment="top">
28093 <column alignment="left" valignment="top">
28094 <column alignment="left" valignment="top">
28095 <column alignment="left" valignment="top">
28096 <column alignment="left" valignment="top">
28097 <column alignment="left" valignment="top">
28098 <row>
28099 <cell alignment="left" valignment="top" usebox="none">
28100 \begin_inset Text
28101
28102 \begin_layout Plain Layout
28103 accents
28104 \end_layout
28105
28106 \end_inset
28107 </cell>
28108 <cell alignment="left" valignment="top" usebox="none">
28109 \begin_inset Text
28110
28111 \begin_layout Plain Layout
28112 booktabs
28113 \end_layout
28114
28115 \end_inset
28116 </cell>
28117 <cell alignment="left" valignment="top" usebox="none">
28118 \begin_inset Text
28119
28120 \begin_layout Plain Layout
28121 feyn
28122 \end_layout
28123
28124 \end_inset
28125 </cell>
28126 <cell alignment="left" valignment="top" usebox="none">
28127 \begin_inset Text
28128
28129 \begin_layout Plain Layout
28130 listings
28131 \end_layout
28132
28133 \end_inset
28134 </cell>
28135 <cell alignment="center" valignment="top" usebox="none">
28136 \begin_inset Text
28137
28138 \begin_layout Plain Layout
28139 natbib
28140 \end_layout
28141
28142 \end_inset
28143 </cell>
28144 <cell alignment="center" valignment="top" usebox="none">
28145 \begin_inset Text
28146
28147 \begin_layout Plain Layout
28148 rotfloat
28149 \end_layout
28150
28151 \end_inset
28152 </cell>
28153 <cell alignment="center" valignment="top" usebox="none">
28154 \begin_inset Text
28155
28156 \begin_layout Plain Layout
28157 tfrupee
28158 \end_layout
28159
28160 \end_inset
28161 </cell>
28162 <cell alignment="center" valignment="top" usebox="none">
28163 \begin_inset Text
28164
28165 \begin_layout Plain Layout
28166 wasysym
28167 \end_layout
28168
28169 \end_inset
28170 </cell>
28171 </row>
28172 <row>
28173 <cell alignment="left" valignment="top" usebox="none">
28174 \begin_inset Text
28175
28176 \begin_layout Plain Layout
28177 amsbsy
28178 \end_layout
28179
28180 \end_inset
28181 </cell>
28182 <cell alignment="left" valignment="top" usebox="none">
28183 \begin_inset Text
28184
28185 \begin_layout Plain Layout
28186 calc
28187 \end_layout
28188
28189 \end_inset
28190 </cell>
28191 <cell alignment="left" valignment="top" usebox="none">
28192 \begin_inset Text
28193
28194 \begin_layout Plain Layout
28195 fixltx2e
28196 \end_layout
28197
28198 \end_inset
28199 </cell>
28200 <cell alignment="left" valignment="top" usebox="none">
28201 \begin_inset Text
28202
28203 \begin_layout Plain Layout
28204 longtable
28205 \end_layout
28206
28207 \end_inset
28208 </cell>
28209 <cell alignment="center" valignment="top" usebox="none">
28210 \begin_inset Text
28211
28212 \begin_layout Plain Layout
28213 nomencl
28214 \end_layout
28215
28216 \end_inset
28217 </cell>
28218 <cell alignment="center" valignment="top" usebox="none">
28219 \begin_inset Text
28220
28221 \begin_layout Plain Layout
28222 rsphrase
28223 \end_layout
28224
28225 \end_inset
28226 </cell>
28227 <cell alignment="center" valignment="top" usebox="none">
28228 \begin_inset Text
28229
28230 \begin_layout Plain Layout
28231 tipa
28232 \end_layout
28233
28234 \end_inset
28235 </cell>
28236 <cell alignment="center" valignment="top" usebox="none">
28237 \begin_inset Text
28238
28239 \begin_layout Plain Layout
28240 wrapfig
28241 \end_layout
28242
28243 \end_inset
28244 </cell>
28245 </row>
28246 <row>
28247 <cell alignment="left" valignment="top" usebox="none">
28248 \begin_inset Text
28249
28250 \begin_layout Plain Layout
28251 amscd
28252 \end_layout
28253
28254 \end_inset
28255 </cell>
28256 <cell alignment="left" valignment="top" usebox="none">
28257 \begin_inset Text
28258
28259 \begin_layout Plain Layout
28260 CJK
28261 \end_layout
28262
28263 \end_inset
28264 </cell>
28265 <cell alignment="left" valignment="top" usebox="none">
28266 \begin_inset Text
28267
28268 \begin_layout Plain Layout
28269 float
28270 \end_layout
28271
28272 \end_inset
28273 </cell>
28274 <cell alignment="left" valignment="top" usebox="none">
28275 \begin_inset Text
28276
28277 \begin_layout Plain Layout
28278 lyxskak
28279 \end_layout
28280
28281 \end_inset
28282 </cell>
28283 <cell alignment="center" valignment="top" usebox="none">
28284 \begin_inset Text
28285
28286 \begin_layout Plain Layout
28287 pdfcolmk
28288 \end_layout
28289
28290 \end_inset
28291 </cell>
28292 <cell alignment="center" valignment="top" usebox="none">
28293 \begin_inset Text
28294
28295 \begin_layout Plain Layout
28296 setspace
28297 \end_layout
28298
28299 \end_inset
28300 </cell>
28301 <cell alignment="center" valignment="top" usebox="none">
28302 \begin_inset Text
28303
28304 \begin_layout Plain Layout
28305 tipx
28306 \end_layout
28307
28308 \end_inset
28309 </cell>
28310 <cell alignment="center" valignment="top" usebox="none">
28311 \begin_inset Text
28312
28313 \begin_layout Plain Layout
28314 xargs
28315 \end_layout
28316
28317 \end_inset
28318 </cell>
28319 </row>
28320 <row>
28321 <cell alignment="left" valignment="top" usebox="none">
28322 \begin_inset Text
28323
28324 \begin_layout Plain Layout
28325 amsmath
28326 \end_layout
28327
28328 \end_inset
28329 </cell>
28330 <cell alignment="left" valignment="top" usebox="none">
28331 \begin_inset Text
28332
28333 \begin_layout Plain Layout
28334 color
28335 \end_layout
28336
28337 \end_inset
28338 </cell>
28339 <cell alignment="left" valignment="top" usebox="none">
28340 \begin_inset Text
28341
28342 \begin_layout Plain Layout
28343 framed
28344 \end_layout
28345
28346 \end_inset
28347 </cell>
28348 <cell alignment="left" valignment="top" usebox="none">
28349 \begin_inset Text
28350
28351 \begin_layout Plain Layout
28352 makeidx
28353 \end_layout
28354
28355 \end_inset
28356 </cell>
28357 <cell alignment="center" valignment="top" usebox="none">
28358 \begin_inset Text
28359
28360 \begin_layout Plain Layout
28361 pdfpages
28362 \end_layout
28363
28364 \end_inset
28365 </cell>
28366 <cell alignment="center" valignment="top" usebox="none">
28367 \begin_inset Text
28368
28369 \begin_layout Plain Layout
28370 shapepar
28371 \end_layout
28372
28373 \end_inset
28374 </cell>
28375 <cell alignment="center" valignment="top" usebox="none">
28376 \begin_inset Text
28377
28378 \begin_layout Plain Layout
28379 tone
28380 \end_layout
28381
28382 \end_inset
28383 </cell>
28384 <cell alignment="center" valignment="top" usebox="none">
28385 \begin_inset Text
28386
28387 \begin_layout Plain Layout
28388 xcolor
28389 \end_layout
28390
28391 \end_inset
28392 </cell>
28393 </row>
28394 <row>
28395 <cell alignment="left" valignment="top" usebox="none">
28396 \begin_inset Text
28397
28398 \begin_layout Plain Layout
28399 amssymb
28400 \end_layout
28401
28402 \end_inset
28403 </cell>
28404 <cell alignment="left" valignment="top" usebox="none">
28405 \begin_inset Text
28406
28407 \begin_layout Plain Layout
28408 covington
28409 \end_layout
28410
28411 \end_inset
28412 </cell>
28413 <cell alignment="left" valignment="top" usebox="none">
28414 \begin_inset Text
28415
28416 \begin_layout Plain Layout
28417 graphicx
28418 \end_layout
28419
28420 \end_inset
28421 </cell>
28422 <cell alignment="left" valignment="top" usebox="none">
28423 \begin_inset Text
28424
28425 \begin_layout Plain Layout
28426 marvosym
28427 \end_layout
28428
28429 \end_inset
28430 </cell>
28431 <cell alignment="center" valignment="top" usebox="none">
28432 \begin_inset Text
28433
28434 \begin_layout Plain Layout
28435 pifont
28436 \end_layout
28437
28438 \end_inset
28439 </cell>
28440 <cell alignment="center" valignment="top" usebox="none">
28441 \begin_inset Text
28442
28443 \begin_layout Plain Layout
28444 slashed
28445 \end_layout
28446
28447 \end_inset
28448 </cell>
28449 <cell alignment="center" valignment="top" usebox="none">
28450 \begin_inset Text
28451
28452 \begin_layout Plain Layout
28453 txfonts
28454 \end_layout
28455
28456 \end_inset
28457 </cell>
28458 <cell alignment="center" valignment="top" usebox="none">
28459 \begin_inset Text
28460
28461 \begin_layout Plain Layout
28462 xy
28463 \end_layout
28464
28465 \end_inset
28466 </cell>
28467 </row>
28468 <row>
28469 <cell alignment="left" valignment="top" usebox="none">
28470 \begin_inset Text
28471
28472 \begin_layout Plain Layout
28473 amstext
28474 \end_layout
28475
28476 \end_inset
28477 </cell>
28478 <cell alignment="left" valignment="top" usebox="none">
28479 \begin_inset Text
28480
28481 \begin_layout Plain Layout
28482 csquotes
28483 \end_layout
28484
28485 \end_inset
28486 </cell>
28487 <cell alignment="left" valignment="top" usebox="none">
28488 \begin_inset Text
28489
28490 \begin_layout Plain Layout
28491 hhline
28492 \end_layout
28493
28494 \end_inset
28495 </cell>
28496 <cell alignment="left" valignment="top" usebox="none">
28497 \begin_inset Text
28498
28499 \begin_layout Plain Layout
28500 mathdesign
28501 \end_layout
28502
28503 \end_inset
28504 </cell>
28505 <cell alignment="center" valignment="top" usebox="none">
28506 \begin_inset Text
28507
28508 \begin_layout Plain Layout
28509 pmboxdraw
28510 \end_layout
28511
28512 \end_inset
28513 </cell>
28514 <cell alignment="center" valignment="top" usebox="none">
28515 \begin_inset Text
28516
28517 \begin_layout Plain Layout
28518 soul
28519 \end_layout
28520
28521 \end_inset
28522 </cell>
28523 <cell alignment="center" valignment="top" usebox="none">
28524 \begin_inset Text
28525
28526 \begin_layout Plain Layout
28527 ulem
28528 \end_layout
28529
28530 \end_inset
28531 </cell>
28532 <cell alignment="center" valignment="top" usebox="none">
28533 \begin_inset Text
28534
28535 \begin_layout Plain Layout
28536 yhmath
28537 \end_layout
28538
28539 \end_inset
28540 </cell>
28541 </row>
28542 <row>
28543 <cell alignment="left" valignment="top" usebox="none">
28544 \begin_inset Text
28545
28546 \begin_layout Plain Layout
28547 amsthm
28548 \end_layout
28549
28550 \end_inset
28551 </cell>
28552 <cell alignment="left" valignment="top" usebox="none">
28553 \begin_inset Text
28554
28555 \begin_layout Plain Layout
28556 dvipost
28557 \end_layout
28558
28559 \end_inset
28560 </cell>
28561 <cell alignment="left" valignment="top" usebox="none">
28562 \begin_inset Text
28563
28564 \begin_layout Plain Layout
28565 hyperref
28566 \end_layout
28567
28568 \end_inset
28569 </cell>
28570 <cell alignment="left" valignment="top" usebox="none">
28571 \begin_inset Text
28572
28573 \begin_layout Plain Layout
28574 mathdots
28575 \end_layout
28576
28577 \end_inset
28578 </cell>
28579 <cell alignment="center" valignment="top" usebox="none">
28580 \begin_inset Text
28581
28582 \begin_layout Plain Layout
28583 polyglossia
28584 \end_layout
28585
28586 \end_inset
28587 </cell>
28588 <cell alignment="center" valignment="top" usebox="none">
28589 \begin_inset Text
28590
28591 \begin_layout Plain Layout
28592 splitidx
28593 \end_layout
28594
28595 \end_inset
28596 </cell>
28597 <cell alignment="center" valignment="top" usebox="none">
28598 \begin_inset Text
28599
28600 \begin_layout Plain Layout
28601 undertilde
28602 \end_layout
28603
28604 \end_inset
28605 </cell>
28606 <cell alignment="center" valignment="top" usebox="none">
28607 \begin_inset Text
28608
28609 \begin_layout Plain Layout
28610
28611 \end_layout
28612
28613 \end_inset
28614 </cell>
28615 </row>
28616 <row>
28617 <cell alignment="left" valignment="top" usebox="none">
28618 \begin_inset Text
28619
28620 \begin_layout Plain Layout
28621 array
28622 \end_layout
28623
28624 \end_inset
28625 </cell>
28626 <cell alignment="left" valignment="top" usebox="none">
28627 \begin_inset Text
28628
28629 \begin_layout Plain Layout
28630 endnotes
28631 \end_layout
28632
28633 \end_inset
28634 </cell>
28635 <cell alignment="left" valignment="top" usebox="none">
28636 \begin_inset Text
28637
28638 \begin_layout Plain Layout
28639 ifsym
28640 \end_layout
28641
28642 \end_inset
28643 </cell>
28644 <cell alignment="left" valignment="top" usebox="none">
28645 \begin_inset Text
28646
28647 \begin_layout Plain Layout
28648 mathrsfs
28649 \end_layout
28650
28651 \end_inset
28652 </cell>
28653 <cell alignment="center" valignment="top" usebox="none">
28654 \begin_inset Text
28655
28656 \begin_layout Plain Layout
28657 prettyref
28658 \end_layout
28659
28660 \end_inset
28661 </cell>
28662 <cell alignment="center" valignment="top" usebox="none">
28663 \begin_inset Text
28664
28665 \begin_layout Plain Layout
28666 subfig
28667 \end_layout
28668
28669 \end_inset
28670 </cell>
28671 <cell alignment="center" valignment="top" usebox="none">
28672 \begin_inset Text
28673
28674 \begin_layout Plain Layout
28675 units
28676 \end_layout
28677
28678 \end_inset
28679 </cell>
28680 <cell alignment="center" valignment="top" usebox="none">
28681 \begin_inset Text
28682
28683 \begin_layout Plain Layout
28684
28685 \end_layout
28686
28687 \end_inset
28688 </cell>
28689 </row>
28690 <row>
28691 <cell alignment="left" valignment="top" usebox="none">
28692 \begin_inset Text
28693
28694 \begin_layout Plain Layout
28695 ascii
28696 \end_layout
28697
28698 \end_inset
28699 </cell>
28700 <cell alignment="left" valignment="top" usebox="none">
28701 \begin_inset Text
28702
28703 \begin_layout Plain Layout
28704 enumitem
28705 \end_layout
28706
28707 \end_inset
28708 </cell>
28709 <cell alignment="left" valignment="top" usebox="none">
28710 \begin_inset Text
28711
28712 \begin_layout Plain Layout
28713 ifthen
28714 \end_layout
28715
28716 \end_inset
28717 </cell>
28718 <cell alignment="left" valignment="top" usebox="none">
28719 \begin_inset Text
28720
28721 \begin_layout Plain Layout
28722 mhchem
28723 \end_layout
28724
28725 \end_inset
28726 </cell>
28727 <cell alignment="center" valignment="top" usebox="none">
28728 \begin_inset Text
28729
28730 \begin_layout Plain Layout
28731 pxfonts
28732 \end_layout
28733
28734 \end_inset
28735 </cell>
28736 <cell alignment="center" valignment="top" usebox="none">
28737 \begin_inset Text
28738
28739 \begin_layout Plain Layout
28740 subscript
28741 \end_layout
28742
28743 \end_inset
28744 </cell>
28745 <cell alignment="center" valignment="top" usebox="none">
28746 \begin_inset Text
28747
28748 \begin_layout Plain Layout
28749 url
28750 \end_layout
28751
28752 \end_inset
28753 </cell>
28754 <cell alignment="center" valignment="top" usebox="none">
28755 \begin_inset Text
28756
28757 \begin_layout Plain Layout
28758
28759 \end_layout
28760
28761 \end_inset
28762 </cell>
28763 </row>
28764 <row>
28765 <cell alignment="left" valignment="top" usebox="none">
28766 \begin_inset Text
28767
28768 \begin_layout Plain Layout
28769 bbding
28770 \end_layout
28771
28772 \end_inset
28773 </cell>
28774 <cell alignment="left" valignment="top" usebox="none">
28775 \begin_inset Text
28776
28777 \begin_layout Plain Layout
28778 esint
28779 \end_layout
28780
28781 \end_inset
28782 </cell>
28783 <cell alignment="left" valignment="top" usebox="none">
28784 \begin_inset Text
28785
28786 \begin_layout Plain Layout
28787 jurabib
28788 \end_layout
28789
28790 \end_inset
28791 </cell>
28792 <cell alignment="left" valignment="top" usebox="none">
28793 \begin_inset Text
28794
28795 \begin_layout Plain Layout
28796 multicol
28797 \end_layout
28798
28799 \end_inset
28800 </cell>
28801 <cell alignment="center" valignment="top" usebox="none">
28802 \begin_inset Text
28803
28804 \begin_layout Plain Layout
28805 refstyle
28806 \end_layout
28807
28808 \end_inset
28809 </cell>
28810 <cell alignment="center" valignment="top" usebox="none">
28811 \begin_inset Text
28812
28813 \begin_layout Plain Layout
28814 textcomp
28815 \end_layout
28816
28817 \end_inset
28818 </cell>
28819 <cell alignment="center" valignment="top" usebox="none">
28820 \begin_inset Text
28821
28822 \begin_layout Plain Layout
28823 varioref
28824 \end_layout
28825
28826 \end_inset
28827 </cell>
28828 <cell alignment="center" valignment="top" usebox="none">
28829 \begin_inset Text
28830
28831 \begin_layout Plain Layout
28832
28833 \end_layout
28834
28835 \end_inset
28836 </cell>
28837 </row>
28838 <row>
28839 <cell alignment="center" valignment="top" usebox="none">
28840 \begin_inset Text
28841
28842 \begin_layout Plain Layout
28843 bm
28844 \end_layout
28845
28846 \end_inset
28847 </cell>
28848 <cell alignment="center" valignment="top" usebox="none">
28849 \begin_inset Text
28850
28851 \begin_layout Plain Layout
28852 fancybox
28853 \end_layout
28854
28855 \end_inset
28856 </cell>
28857 <cell alignment="center" valignment="top" usebox="none">
28858 \begin_inset Text
28859
28860 \begin_layout Plain Layout
28861 latexsym
28862 \end_layout
28863
28864 \end_inset
28865 </cell>
28866 <cell alignment="center" valignment="top" usebox="none">
28867 \begin_inset Text
28868
28869 \begin_layout Plain Layout
28870 multirow
28871 \end_layout
28872
28873 \end_inset
28874 </cell>
28875 <cell alignment="center" valignment="top" usebox="none">
28876 \begin_inset Text
28877
28878 \begin_layout Plain Layout
28879 rotating
28880 \end_layout
28881
28882 \end_inset
28883 </cell>
28884 <cell alignment="center" valignment="top" usebox="none">
28885 \begin_inset Text
28886
28887 \begin_layout Plain Layout
28888 textgreek
28889 \end_layout
28890
28891 \end_inset
28892 </cell>
28893 <cell alignment="center" valignment="top" usebox="none">
28894 \begin_inset Text
28895
28896 \begin_layout Plain Layout
28897 verbatim
28898 \end_layout
28899
28900 \end_inset
28901 </cell>
28902 <cell alignment="center" valignment="top" usebox="none">
28903 \begin_inset Text
28904
28905 \begin_layout Plain Layout
28906
28907 \end_layout
28908
28909 \end_inset
28910 </cell>
28911 </row>
28912 </lyxtabular>
28913
28914 \end_inset
28915
28916
28917 \end_layout
28918
28919 \begin_layout Chapter
28920 Names of available colors to be used in layouts
28921 \begin_inset CommandInset label
28922 LatexCommand label
28923 name "chap:Names-of-colors"
28924
28925 \end_inset
28926
28927
28928 \end_layout
28929
28930 \begin_layout Standard
28931 The colors listed below are the standard colors and those that you can adjust
28932  in the \SpecialChar LyX
28933  preferences.
28934 \end_layout
28935
28936 \begin_layout Section
28937 Color functions
28938 \end_layout
28939
28940 \begin_layout Standard
28941 The following are no real colors, but rather act on color definitions:
28942 \end_layout
28943
28944 \begin_layout Description
28945 ignore The color is ignored
28946 \end_layout
28947
28948 \begin_layout Description
28949 inherit The color is inherited
28950 \end_layout
28951
28952 \begin_layout Description
28953 none
28954 \family roman
28955 \series medium
28956 \shape up
28957 \size normal
28958 \emph off
28959 \bar no
28960 \strikeout off
28961 \uuline off
28962 \uwave off
28963 \noun off
28964 \color none
28965  No particular color – clear or default
28966 \end_layout
28967
28968 \begin_layout Section
28969 Static colors
28970 \end_layout
28971
28972 \begin_layout Standard
28973 These are fixed colors that cannot me customized:
28974 \end_layout
28975
28976 \begin_layout Description
28977 black
28978 \end_layout
28979
28980 \begin_layout Description
28981 white
28982 \end_layout
28983
28984 \begin_layout Description
28985 blue
28986 \end_layout
28987
28988 \begin_layout Description
28989 brown
28990 \end_layout
28991
28992 \begin_layout Description
28993 cyan
28994 \end_layout
28995
28996 \begin_layout Description
28997 darkgray
28998 \end_layout
28999
29000 \begin_layout Description
29001 gray
29002 \end_layout
29003
29004 \begin_layout Description
29005 green
29006 \end_layout
29007
29008 \begin_layout Description
29009 lightgray
29010 \end_layout
29011
29012 \begin_layout Description
29013 lime
29014 \end_layout
29015
29016 \begin_layout Description
29017 magenta
29018 \end_layout
29019
29020 \begin_layout Description
29021 olive
29022 \end_layout
29023
29024 \begin_layout Description
29025 orange
29026 \end_layout
29027
29028 \begin_layout Description
29029 pink
29030 \end_layout
29031
29032 \begin_layout Description
29033 purple
29034 \end_layout
29035
29036 \begin_layout Description
29037 red
29038 \end_layout
29039
29040 \begin_layout Description
29041 teal
29042 \end_layout
29043
29044 \begin_layout Description
29045 violet
29046 \end_layout
29047
29048 \begin_layout Description
29049 yellow
29050 \end_layout
29051
29052 \begin_layout Section
29053 Dynamic colors
29054 \end_layout
29055
29056 \begin_layout Standard
29057 These are the colors allocated to specific elements in 
29058 \begin_inset Info
29059 type  "menu"
29060 arg   "dialog-show prefs"
29061 \end_inset
29062
29063 :
29064 \end_layout
29065
29066 \begin_layout Description
29067 added_space Added space color
29068 \end_layout
29069
29070 \begin_layout Description
29071 addedtext Added text color
29072 \end_layout
29073
29074 \begin_layout Description
29075 appendix Appendix marker color
29076 \end_layout
29077
29078 \begin_layout Description
29079 background Background color
29080 \end_layout
29081
29082 \begin_layout Description
29083 bottomarea Bottom area color
29084 \end_layout
29085
29086 \begin_layout Description
29087 branchlabel Label color for branches
29088 \end_layout
29089
29090 \begin_layout Description
29091 buttonbg Color used for button background
29092 \end_layout
29093
29094 \begin_layout Description
29095 buttonframe Color for inset button frames
29096 \end_layout
29097
29098 \begin_layout Description
29099 buttonhoverbg Color used for button background under focus
29100 \end_layout
29101
29102 \begin_layout Description
29103 changebar Changebar color
29104 \end_layout
29105
29106 \begin_layout Description
29107 changedtextauthor1 Changed text color author 1
29108 \end_layout
29109
29110 \begin_layout Description
29111 changedtextauthor2 Changed text color author 2
29112 \end_layout
29113
29114 \begin_layout Description
29115 changedtextauthor3 Changed text color author 3
29116 \end_layout
29117
29118 \begin_layout Description
29119 changedtextauthor4 Changed text color author 4
29120 \end_layout
29121
29122 \begin_layout Description
29123 changedtextauthor5 Changed text color author 5
29124 \end_layout
29125
29126 \begin_layout Description
29127 collapsible Collapsible insets text color
29128 \end_layout
29129
29130 \begin_layout Description
29131 collapsibleframe Collapsible insets framecolor
29132 \end_layout
29133
29134 \begin_layout Description
29135 command Text color for command insets
29136 \end_layout
29137
29138 \begin_layout Description
29139 commandbg Background color for command insets
29140 \end_layout
29141
29142 \begin_layout Description
29143 commandframe Frame color for command insets
29144 \end_layout
29145
29146 \begin_layout Description
29147 comment Label color for comments
29148 \end_layout
29149
29150 \begin_layout Description
29151 commentbg Background color of comments
29152 \end_layout
29153
29154 \begin_layout Description
29155 cursor Cursor color
29156 \end_layout
29157
29158 \begin_layout Description
29159 deletedtext Deleted text color
29160 \end_layout
29161
29162 \begin_layout Description
29163 deletedtextmodifier Deleted text modifying color
29164 \end_layout
29165
29166 \begin_layout Description
29167 depthbar Color for the depth bars in the margin
29168 \end_layout
29169
29170 \begin_layout Description
29171 eolmarker End of line marker color
29172 \end_layout
29173
29174 \begin_layout Description
29175 error Color of the \SpecialChar LaTeX
29176  error box
29177 \end_layout
29178
29179 \begin_layout Description
29180 footlabel Label color for footnotes
29181 \end_layout
29182
29183 \begin_layout Description
29184 foreground Foreground color
29185 \end_layout
29186
29187 \begin_layout Description
29188 graphicsbg Graphics inset background color
29189 \end_layout
29190
29191 \begin_layout Description
29192 greyedoutbg Background color of greyedout inset
29193 \end_layout
29194
29195 \begin_layout Description
29196 greyedoutlabel Label color for greyedout insets
29197 \end_layout
29198
29199 \begin_layout Description
29200 greyedouttext Color for greyedout inset text
29201 \end_layout
29202
29203 \begin_layout Description
29204 indexlabel Label color for index insets
29205 \end_layout
29206
29207 \begin_layout Description
29208 inlinecompletion Inline completion color
29209 \end_layout
29210
29211 \begin_layout Description
29212 insetbg Inset marker background color
29213 \end_layout
29214
29215 \begin_layout Description
29216 insetframe Inset marker frame color
29217 \end_layout
29218
29219 \begin_layout Description
29220 language Color for marking foreign language words
29221 \end_layout
29222
29223 \begin_layout Description
29224 latex Text color in \SpecialChar LaTeX
29225  mode
29226 \end_layout
29227
29228 \begin_layout Description
29229 listingsbg Background color of listings inset
29230 \end_layout
29231
29232 \begin_layout Description
29233 marginlabel Label color for margin notes
29234 \end_layout
29235
29236 \begin_layout Description
29237 math Math inset text color
29238 \end_layout
29239
29240 \begin_layout Description
29241 mathbg Math inset background color
29242 \end_layout
29243
29244 \begin_layout Description
29245 mathcorners Math inset frame color not under focus
29246 \end_layout
29247
29248 \begin_layout Description
29249 mathframe Math inset frame color under focus
29250 \end_layout
29251
29252 \begin_layout Description
29253 mathline Math line color
29254 \end_layout
29255
29256 \begin_layout Description
29257 mathmacrobg Macro math inset background color
29258 \end_layout
29259
29260 \begin_layout Description
29261 mathmacroblend Macro math blended color
29262 \end_layout
29263
29264 \begin_layout Description
29265 mathmacroframe Macro math frame color
29266 \end_layout
29267
29268 \begin_layout Description
29269 mathmacrohoverbg Macro math inset background color hovered
29270 \end_layout
29271
29272 \begin_layout Description
29273 mathmacrolabel Macro math label color
29274 \end_layout
29275
29276 \begin_layout Description
29277 mathmacronewarg Macro template color for new parameters
29278 \end_layout
29279
29280 \begin_layout Description
29281 mathmacrooldarg Macro template color for old parameters
29282 \end_layout
29283
29284 \begin_layout Description
29285 newpage New page color
29286 \end_layout
29287
29288 \begin_layout Description
29289 nonunique_inlinecompletion Inline completion color for the non-unique part
29290 \end_layout
29291
29292 \begin_layout Description
29293 note Label color for notes
29294 \end_layout
29295
29296 \begin_layout Description
29297 notebg Background color of notes
29298 \end_layout
29299
29300 \begin_layout Description
29301 pagebreak Page break/line break color
29302 \end_layout
29303
29304 \begin_layout Description
29305 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29306 \end_layout
29307
29308 \begin_layout Description
29309 phantomtext Text color for phantom insets
29310 \end_layout
29311
29312 \begin_layout Description
29313 preview The color used for previews
29314 \end_layout
29315
29316 \begin_layout Description
29317 previewframe Preview frame color
29318 \end_layout
29319
29320 \begin_layout Description
29321 regexpframe Color for regexp frame
29322 \end_layout
29323
29324 \begin_layout Description
29325 scroll Color that indicates when a row can be scrolled 
29326 \end_layout
29327
29328 \begin_layout Description
29329 selection Background color of selected text
29330 \end_layout
29331
29332 \begin_layout Description
29333 selectiontext Foreground color of selected text
29334 \end_layout
29335
29336 \begin_layout Description
29337 shadedbg Background color of shaded box
29338 \end_layout
29339
29340 \begin_layout Description
29341 special Special chars text color
29342 \end_layout
29343
29344 \begin_layout Description
29345 tabularline Table line color
29346 \end_layout
29347
29348 \begin_layout Description
29349 tabularonoffline Table line color
29350 \end_layout
29351
29352 \begin_layout Description
29353 urllabel Label color for URL insets
29354 \end_layout
29355
29356 \begin_layout Description
29357 urltext Color for URL inset text
29358 \end_layout
29359
29360 \end_body
29361 \end_document